").append(ot.parseHTML(e)).find(r) : e)
}).complete(i && function(e, t) {
s.each(i, a || [e.responseText, t, e])
}), this
}, ot.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
ot.fn[t] = function(e) {
return this.on(t, e)
}
}), ot.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: sn,
type: "GET",
isLocal: hn.test(an[1]),
global: !0,
processData: !0,
async: !0,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
accepts: {
"*": xn,
text: "text/plain",
html: "text/html",
xml: "application/xml, text/xml",
json: "application/json, text/javascript"
},
contents: {
xml: /xml/,
html: /html/,
json: /json/
},
responseFields: {
xml: "responseXML",
text: "responseText",
json: "responseJSON"
},
converters: {
"* text": String,
"text html": !0,
"text json": ot.parseJSON,
"text xml": ot.parseXML
},
flatOptions: {
url: !0,
context: !0
}
},
ajaxSetup: function(e, t) {
return t ? D(D(e, ot.ajaxSettings), t) : D(ot.ajaxSettings, e)
},
ajaxPrefilter: I(bn),
ajaxTransport: I(yn),
ajax: function(e, n) {
function i(e, n, i, s) {
var c, d, b, y, w, C = n;
2 !== x && (x = 2, l && clearTimeout(l), r = t, a = s || "", S.readyState = e > 0 ? 4 : 0, c = e >= 200 && 300 > e || 304 === e, i && (y = L(p, S, i)), y = A(p, y, S, c), c ? (p.ifModified && (w = S.getResponseHeader("Last-Modified"), w && (ot.lastModified[o] = w), w = S.getResponseHeader("etag"), w && (ot.etag[o] = w)), 204 === e || "HEAD" === p.type ? C = "nocontent" : 304 === e ? C = "notmodified" : (C = y.state, d = y.data, b = y.error, c = !b)) : (b = C, (e || !C) && (C = "error", 0 > e && (e = 0))), S.status = e, S.statusText = (n || C) + "", c ? m.resolveWith(h, [d, C, S]) : m.rejectWith(h, [S, C, b]), S.statusCode(v), v = t, u && f.trigger(c ? "ajaxSuccess" : "ajaxError", [S, p, c ? d : b]), g.fireWith(h, [S, C]), u && (f.trigger("ajaxComplete", [S, p]), --ot.active || ot.event.trigger("ajaxStop")))
}
"object" == typeof e && (n = e, e = t), n = n || {};
var r, o, a, s, l, c, u, d, p = ot.ajaxSetup({}, n),
h = p.context || p,
f = p.context && (h.nodeType || h.jquery) ? ot(h) : ot.event,
m = ot.Deferred(),
g = ot.Callbacks("once memory"),
v = p.statusCode || {}, b = {}, y = {}, x = 0,
w = "canceled",
S = {
readyState: 0,
getResponseHeader: function(e) {
var t;
if(2 === x) {
if(!s)
for(s = {}; t = pn.exec(a);) s[t[1].toLowerCase()] = t[2];
t = s[e.toLowerCase()]
}
return null == t ? null : t
},
getAllResponseHeaders: function() {
return 2 === x ? a : null
},
setRequestHeader: function(e, t) {
var n = e.toLowerCase();
return x || (e = y[n] = y[n] || e, b[e] = t), this
},
overrideMimeType: function(e) {
return x || (p.mimeType = e), this
},
statusCode: function(e) {
var t;
if(e)
if(2 > x)
for(t in e) v[t] = [v[t], e[t]];
else S.always(e[S.status]);
return this
},
abort: function(e) {
var t = e || w;
return r && r.abort(t), i(0, t), this
}
};
if(m.promise(S).complete = g.add, S.success = S.done, S.error = S.fail, p.url = ((e || p.url || sn) + "").replace(un, "").replace(mn, an[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = ot.trim(p.dataType || "*").toLowerCase().match(st) || [""], null == p.crossDomain && (c = gn.exec(p.url.toLowerCase()), p.crossDomain = !(!c || c[1] === an[1] && c[2] === an[2] && (c[3] || ("http:" === c[1] ? "80" : "443")) === (an[3] || ("http:" === an[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = ot.param(p.data, p.traditional)), N(bn, p, n, S), 2 === x) return S;
u = p.global, u && 0 === ot.active++ && ot.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !fn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (cn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = dn.test(o) ? o.replace(dn, "$1_=" + ln++) : o + (cn.test(o) ? "&" : "?") + "_=" + ln++)), p.ifModified && (ot.lastModified[o] && S.setRequestHeader("If-Modified-Since", ot.lastModified[o]), ot.etag[o] && S.setRequestHeader("If-None-Match", ot.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && S.setRequestHeader("Content-Type", p.contentType), S.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + xn + "; q=0.01" : "") : p.accepts["*"]);
for(d in p.headers) S.setRequestHeader(d, p.headers[d]);
if(p.beforeSend && (p.beforeSend.call(h, S, p) === !1 || 2 === x)) return S.abort();
w = "abort";
for(d in {
success: 1,
error: 1,
complete: 1
}) S[d](p[d]);
if(r = N(yn, p, n, S)) {
S.readyState = 1, u && f.trigger("ajaxSend", [S, p]), p.async && p.timeout > 0 && (l = setTimeout(function() {
S.abort("timeout")
}, p.timeout));
try {
x = 1, r.send(b, i)
} catch(C) {
if(!(2 > x)) throw C;
i(-1, C)
}
} else i(-1, "No Transport");
return S
},
getJSON: function(e, t, n) {
return ot.get(e, t, n, "json")
},
getScript: function(e, n) {
return ot.get(e, t, n, "script")
}
}), ot.each(["get", "post"], function(e, n) {
ot[n] = function(e, i, r, o) {
return ot.isFunction(i) && (o = o || r, r = i, i = t), ot.ajax({
url: e,
type: n,
dataType: o,
data: i,
success: r
})
}
}), ot.ajaxSetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /(?:java|ecma)script/
},
converters: {
"text script": function(e) {
return ot.globalEval(e), e
}
}
}), ot.ajaxPrefilter("script", function(e) {
e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET")
}), ot.ajaxTransport("script", function(e) {
if(e.crossDomain) {
var t, n;
return {
send: function(i, r) {
t = ot("\n', "\n", '
<%= documentHTML %>
\n', ""].join(""),
pdfTemplate: ["\n", "\n", "\n", '
\n', "
<%= documentTitle %> \n", '
\n', '\n", '\n', "\n", '<%= documentHTML %>\n', ""].join(""),
pdfPageSize: "A4",
sshProxy: t.SSH_PROXY_URL,
extensionSettings: {}
};
try {
e.extend(i, JSON.parse(n.settings))
} catch(r) {}
return i
}), define("logger", [], function() {
var e = {
log: function() {},
info: function() {},
warn: function() {},
error: function() {}
};
return /(\?|&)console($|&)/.test(location.search) ? console : e
}), define("classes/Extension", [], function() {
function e(e, t, n, i) {
this.extensionId = e, this.extensionName = t, this.isOptional = n, this.disableInViewer = i
}
return e
}), define("text", ["module"], function(e) {
var t, n, i, r, o, a = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"],
s = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
l = /]*>\s*([\s\S]+)\s*<\/body>/im,
c = "undefined" != typeof location && location.href,
u = c && location.protocol && location.protocol.replace(/\:/, ""),
d = c && location.hostname,
p = c && (location.port || void 0),
h = {}, f = e.config && e.config() || {};
return t = {
version: "2.0.12",
strip: function(e) {
if(e) {
e = e.replace(s, "");
var t = e.match(l);
t && (e = t[1])
} else e = "";
return e
},
jsEscape: function(e) {
return e.replace(/(['\\])/g, "\\$1").replace(/[\f]/g, "\\f").replace(/[\b]/g, "\\b").replace(/[\n]/g, "\\n").replace(/[\t]/g, "\\t").replace(/[\r]/g, "\\r").replace(/[\u2028]/g, "\\u2028").replace(/[\u2029]/g, "\\u2029")
},
createXhr: f.createXhr || function() {
var e, t, n;
if("undefined" != typeof XMLHttpRequest) return new XMLHttpRequest;
if("undefined" != typeof ActiveXObject)
for(t = 0; 3 > t; t += 1) {
n = a[t];
try {
e = new ActiveXObject(n)
} catch(i) {}
if(e) {
a = [n];
break
}
}
return e
},
parseName: function(e) {
var t, n, i, r = !1,
o = e.indexOf("."),
a = 0 === e.indexOf("./") || 0 === e.indexOf("../");
return -1 !== o && (!a || o > 1) ? (t = e.substring(0, o), n = e.substring(o + 1, e.length)) : t = e, i = n || t, o = i.indexOf("!"), -1 !== o && (r = "strip" === i.substring(o + 1), i = i.substring(0, o), n ? n = i : t = i), {
moduleName: t,
ext: n,
strip: r
}
},
xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
useXhr: function(e, n, i, r) {
var o, a, s, l = t.xdRegExp.exec(e);
return l ? (o = l[2], a = l[3], a = a.split(":"), s = a[1], a = a[0], !(o && o !== n || a && a.toLowerCase() !== i.toLowerCase() || (s || a) && s !== r)) : !0
},
finishLoad: function(e, n, i, r) {
i = n ? t.strip(i) : i, f.isBuild && (h[e] = i), r(i)
},
load: function(e, n, i, r) {
if(r && r.isBuild && !r.inlineText) return void i();
f.isBuild = r && r.isBuild;
var o = t.parseName(e),
a = o.moduleName + (o.ext ? "." + o.ext : ""),
s = n.toUrl(a),
l = f.useXhr || t.useXhr;
return 0 === s.indexOf("empty:") ? void i() : void(!c || l(s, u, d, p) ? t.get(s, function(n) {
t.finishLoad(e, o.strip, n, i)
}, function(e) {
i.error && i.error(e)
}) : n([a], function(e) {
t.finishLoad(o.moduleName + "." + o.ext, o.strip, e, i)
}))
},
write: function(e, n, i) {
if(h.hasOwnProperty(n)) {
var r = t.jsEscape(h[n]);
i.asModule(e + "!" + n, "define(function () { return '" + r + "';});\n")
}
},
writeFile: function(e, n, i, r, o) {
var a = t.parseName(n),
s = a.ext ? "." + a.ext : "",
l = a.moduleName + s,
c = i.toUrl(a.moduleName + s) + ".js";
t.load(l, i, function() {
var n = function(e) {
return r(c, e)
};
n.asModule = function(e, t) {
return r.asModule(e, c, t)
}, t.write(e, l, n, o)
}, o)
}
}, "node" === f.env || !f.env && "undefined" != typeof process && process.versions && process.versions.node && !process.versions["node-webkit"] ? (n = require.nodeRequire("fs"), t.get = function(e, t, i) {
try {
var r = n.readFileSync(e, "utf8");
0 === r.indexOf("") && (r = r.substring(1)), t(r)
} catch(o) {
i && i(o)
}
}) : "xhr" === f.env || !f.env && t.createXhr() ? t.get = function(e, n, i, r) {
var o, a = t.createXhr();
if(a.open("GET", e, !0), r)
for(o in r) r.hasOwnProperty(o) && a.setRequestHeader(o.toLowerCase(), r[o]);
f.onXhr && f.onXhr(a, e), a.onreadystatechange = function() {
var t, r;
4 === a.readyState && (t = a.status || 0, t > 399 && 600 > t ? (r = new Error(e + " HTTP status: " + t), r.xhr = a, i && i(r)) : n(a.responseText), f.onXhrComplete && f.onXhrComplete(a, e))
}, a.send(null)
} : "rhino" === f.env || !f.env && "undefined" != typeof Packages && "undefined" != typeof java ? t.get = function(e, t) {
var n, i, r = "utf-8",
o = new java.io.File(e),
a = java.lang.System.getProperty("line.separator"),
s = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o), r)),
l = "";
try {
for(n = new java.lang.StringBuffer, i = s.readLine(), i && i.length() && 65279 === i.charAt(0) && (i = i.substring(1)), null !== i && n.append(i); null !== (i = s.readLine());) n.append(a), n.append(i);
l = String(n.toString())
} finally {
s.close()
}
t(l)
} : ("xpconnect" === f.env || !f.env && "undefined" != typeof Components && Components.classes && Components.interfaces) && (i = Components.classes, r = Components.interfaces, Components.utils["import"]("resource://gre/modules/FileUtils.jsm"), o = "@mozilla.org/windows-registry-key;1" in i, t.get = function(e, t) {
var n, a, s, l = {};
o && (e = e.replace(/\//g, "\\")), s = new FileUtils.File(e);
try {
n = i["@mozilla.org/network/file-input-stream;1"].createInstance(r.nsIFileInputStream), n.init(s, 1, 0, !1), a = i["@mozilla.org/intl/converter-input-stream;1"].createInstance(r.nsIConverterInputStream), a.init(n, "utf-8", n.available(), r.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER), a.readString(n.available(), l), a.close(), n.close(), t(l.value)
} catch(c) {
throw new Error((s && s.path || "") + ": " + c)
}
}), t
}), define("text!html/settingsExtensionsAccordion.html", [], function() {
return '
\n
\n
\n
<%= settingsBlock %>
\n
\n
\n'
}),
function() {
var e = function(e, t, n, i) {
this.rawMessage = e, this.parsedLine = void 0 !== t ? t : -1, this.snippet = void 0 !== n ? n : null, this.parsedFile = void 0 !== i ? i : null, this.updateRepr(), this.message = e
};
e.prototype = {
name: "YamlParseException",
message: null,
parsedFile: null,
parsedLine: -1,
snippet: null,
rawMessage: null,
isDefined: function(e) {
return void 0 != e && null != e
},
getSnippet: function() {
return this.snippet
},
setSnippet: function(e) {
this.snippet = e, this.updateRepr()
},
getParsedFile: function() {
return this.parsedFile
},
setParsedFile: function(e) {
this.parsedFile = e, this.updateRepr()
},
getParsedLine: function() {
return this.parsedLine
},
setParsedLine: function(e) {
this.parsedLine = e, this.updateRepr()
},
updateRepr: function() {
this.message = this.rawMessage;
var e = !1;
"." === this.message.charAt(this.message.length - 1) && (this.message = this.message.substring(0, this.message.length - 1), e = !0), null !== this.parsedFile && (this.message += " in " + JSON.stringify(this.parsedFile)), this.parsedLine >= 0 && (this.message += " at line " + this.parsedLine), this.snippet && (this.message += ' (near "' + this.snippet + '")'), e && (this.message += ".")
}
};
var t = !1,
n = function() {};
n.prototype = {
parseFile: function(t, i) {
if(null == i) {
var r = this.getFileContents(t),
o = null;
try {
o = this.parse(r)
} catch(a) {
throw a instanceof e && a.setParsedFile(t), a
}
return o
}
this.getFileContents(t, function(e) {
i((new n).parse(e))
})
},
parse: function(e) {
var t = new o;
return t.parse(e)
},
dump: function(e, t, n) {
null == t && (t = 2);
var i = new s;
return n && (i.numSpacesForIndentation = n), i.dump(e, t)
},
getXHR: function() {
if(window.XMLHttpRequest) return new XMLHttpRequest;
if(window.ActiveXObject)
for(var e = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"], t = 0; 4 > t; t++) try {
return new ActiveXObject(e[t])
} catch(n) {}
return null
},
getFileContents: function(e, n) {
if(t) {
var i = require("fs");
if(null == n) {
var r = i.readFileSync(e);
return null == r ? null : "" + r
}
i.readFile(e, function(e, t) {
n(e ? null : t)
})
} else {
var o = this.getXHR();
if(null == n) return o.open("GET", e, !1), o.send(null), 200 == o.status || 0 == o.status ? o.responseText : null;
o.onreadystatechange = function() {
4 == o.readyState && n(200 == o.status || 0 == o.status ? o.responseText : null)
}, o.open("GET", e, !0), o.send(null)
}
}
};
var i = {
stringify: function(e, t, i) {
return(new n).dump(e, t, i)
},
parse: function(e) {
return(new n).parse(e)
},
load: function(e, t) {
return(new n).parseFile(e, t)
}
};
"undefined" != typeof exports && "undefined" != typeof module && module.exports && (exports = module.exports = i, t = !0, function() {
var e = function(e, t) {
e.exports = i.load(t)
};
void 0 !== require.extensions && (require.extensions[".yml"] = e, require.extensions[".yaml"] = e)
}()), "undefined" != typeof window && (window.YAML = i);
var r = function() {};
r.prototype = {
i: null,
parse: function(t) {
var n = null;
if(t = this.trim(t), 0 == t.length) return "";
switch(t.charAt(0)) {
case "[":
n = this.parseSequence(t);
break;
case "{":
n = this.parseMapping(t);
break;
default:
n = this.parseScalar(t)
}
if("" != t.substr(this.i + 1).replace(/^\s*#.*$/, "")) throw console.log("oups " + t.substr(this.i + 1)), new e('Unexpected characters near "' + t.substr(this.i) + '".');
return n
},
dump: function(e) {
if(void 0 == e || null == e) return "null";
if(e instanceof Date) return e.toISOString();
if("object" == typeof e) return this.dumpObject(e);
if("boolean" == typeof e) return e ? "true" : "false";
if(/^\d+$/.test(e)) return "string" == typeof e ? "'" + e + "'" : parseInt(e);
if(this.isNumeric(e)) return "string" == typeof e ? "'" + e + "'" : parseFloat(e);
if("number" == typeof e) return 1 / 0 == e ? ".Inf" : e == -1 / 0 ? "-.Inf" : isNaN(e) ? ".NAN" : e;
var t = new YamlEscaper;
return t.requiresDoubleQuoting(e) ? t.escapeWithDoubleQuotes(e) : t.requiresSingleQuoting(e) ? t.escapeWithSingleQuotes(e) : "" == e ? "" : this.getTimestampRegex().test(e) ? "'" + e + "'" : this.inArray(e.toLowerCase(), ["null", "~", "true", "false"]) ? "'" + e + "'" : e
},
dumpObject: function(e) {
var t, n = this.getKeys(e),
i = null,
r = n.length;
if(e instanceof Array) {
for(i = [], t = 0; r > t; t++) i.push(this.dump(e[n[t]]));
return "[" + i.join(", ") + "]"
}
for(i = [], t = 0; r > t; t++) i.push(this.dump(n[t]) + ": " + this.dump(e[n[t]]));
return "{ " + i.join(", ") + " }"
},
parseScalar: function(t, n, i, r, o) {
void 0 == n && (n = null), void 0 == i && (i = ['"', "'"]), void 0 == r && (r = 0), void 0 == o && (o = !0);
var a = null,
s = null,
l = null;
if(this.inArray(t[r], i)) {
if(a = this.parseQuotedScalar(t, r), r = this.i, null !== n) {
var c = t.substr(r).replace(/^\s+/, "");
if(!this.inArray(c.charAt(0), n)) throw new e("Unexpected characters (" + t.substr(r) + ").")
}
} else {
if(n) {
if(!(l = new RegExp("^(.+?)(" + n.join("|") + ")").exec((t + "").substring(r)))) throw new e("Malformed inline YAML string (" + t + ").");
a = l[1], r += a.length
} else a = (t + "").substring(r), r += a.length, s = a.indexOf(" #"), -1 != s && (a = a.substr(0, s).replace(/\s+$/g, ""));
a = o ? this.evaluateScalar(a) : a
}
return this.i = r, a
},
parseQuotedScalar: function(t, n) {
var i = null;
if(!(i = new RegExp("^" + r.REGEX_QUOTED_STRING).exec((t + "").substring(n)))) throw new e("Malformed inline YAML string (" + (t + "").substring(n) + ").");
var o = i[0].substr(1, i[0].length - 2),
s = new a;
return o = '"' == (t + "").charAt(n) ? s.unescapeDoubleQuotedString(o) : s.unescapeSingleQuotedString(o), n += i[0].length, this.i = n, o
},
parseSequence: function(t, n) {
void 0 == n && (n = 0);
var i = [],
r = t.length;
for(n += 1; r > n;) {
switch(t.charAt(n)) {
case "[":
i.push(this.parseSequence(t, n)), n = this.i;
break;
case "{":
i.push(this.parseMapping(t, n)), n = this.i;
break;
case "]":
return this.i = n, i;
case ",":
case " ":
break;
default:
var o = this.inArray(t.charAt(n), ['"', "'"]),
a = this.parseScalar(t, [",", "]"], ['"', "'"], n);
if(n = this.i, !o && -1 != (a + "").indexOf(": ")) try {
a = this.parseMapping("{" + a + "}")
} catch(s) {
if(!(s instanceof e)) throw s
}
i.push(a), n--
}
n++
}
throw new e('Malformed inline YAML string "' + t + '"')
},
parseMapping: function(t, n) {
void 0 == n && (n = 0);
var i = {}, r = t.length;
n += 1;
for(var o = !1, a = !1; r > n;) {
switch(a = !1, t.charAt(n)) {
case " ":
case ",":
n++, a = !0;
break;
case "}":
return this.i = n, i
}
if(!a) {
var s = this.parseScalar(t, [":", " "], ['"', "'"], n, !1);
for(n = this.i, o = !1; r > n;) {
switch(t.charAt(n)) {
case "[":
i[s] = this.parseSequence(t, n), n = this.i, o = !0;
break;
case "{":
i[s] = this.parseMapping(t, n), n = this.i, o = !0;
break;
case ":":
case " ":
break;
default:
i[s] = this.parseScalar(t, [",", "}"], ['"', "'"], n), n = this.i, o = !0, n--
}
if(++n, o) {
a = !0;
break
}
}
}
}
throw new e('Malformed inline YAML string "' + t + '"')
},
evaluateScalar: function(e) {
e = this.trim(e);
var t = null,
n = null;
return "null" == e.toLowerCase() || "" == e || "~" == e ? null : 0 == (e + "").indexOf("!str ") ? ("" + e).substring(5) : 0 == (e + "").indexOf("! ") ? parseInt(this.parseScalar((e + "").substr(2))) : /^\d+$/.test(e) ? (t = e, n = parseInt(e), "0" == e.charAt(0) ? this.octdec(e) : "" + t == "" + n ? n : t) : "true" == (e + "").toLowerCase() ? !0 : "false" == (e + "").toLowerCase() ? !1 : this.isNumeric(e) ? "0x" == (e + "").substr(0, 2) ? this.hexdec(e) : parseFloat(e) : ".inf" == e.toLowerCase() ? 1 / 0 : ".nan" == e.toLowerCase() ? 0 / 0 : "-.inf" == e.toLowerCase() ? -1 / 0 : /^(-|\+)?[0-9,]+(\.[0-9]+)?$/.test(e) ? parseFloat(e.split(",").join("")) : this.getTimestampRegex().test(e) ? new Date(this.strtotime(e)) : "" + e
},
getTimestampRegex: function() {
return new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ ]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:.([0-9]*))?(?:[ ]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$", "gi")
},
trim: function(e) {
return(e + "").replace(/^\s+/, "").replace(/\s+$/, "")
},
isNumeric: function(e) {
return e - 0 == e && e.length > 0 && "" != e.replace(/\s+/g, "")
},
inArray: function(e, t) {
var n, i = t.length;
for(n = 0; i > n; n++)
if(e == t[n]) return !0;
return !1
},
getKeys: function(e) {
var t = [];
for(var n in e) e.hasOwnProperty(n) && t.push(n);
return t
},
octdec: function(e) {
return parseInt((e + "").replace(/[^0-7]/gi, ""), 8)
},
hexdec: function(e) {
return e = this.trim(e), "0x" == (e + "").substr(0, 2) && (e = (e + "").substring(2)), parseInt((e + "").replace(/[^a-f0-9]/gi, ""), 16)
},
strtotime: function(e, t) {
var n, i, r, o, a = "";
if(e = (e + "").replace(/\s{2,}|^\s|\s$/g, " ").replace(/[\t\r\n]/g, ""), "now" === e) return null === t || isNaN(t) ? (new Date).getTime() || 0 : t || 0;
if(!isNaN(a = Date.parse(e))) return a || 0;
t = t ? new Date(t) : new Date, e = e.toLowerCase();
var s = {
day: {
sun: 0,
mon: 1,
tue: 2,
wed: 3,
thu: 4,
fri: 5,
sat: 6
},
mon: ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]
}, l = function(e) {
var n = e[2] && "ago" === e[2],
i = (i = "last" === e[0] ? -1 : 1) * (n ? -1 : 1);
switch(e[0]) {
case "last":
case "next":
switch(e[1].substring(0, 3)) {
case "yea":
t.setFullYear(t.getFullYear() + i);
break;
case "wee":
t.setDate(t.getDate() + 7 * i);
break;
case "day":
t.setDate(t.getDate() + i);
break;
case "hou":
t.setHours(t.getHours() + i);
break;
case "min":
t.setMinutes(t.getMinutes() + i);
break;
case "sec":
t.setSeconds(t.getSeconds() + i);
break;
case "mon":
if("month" === e[1]) {
t.setMonth(t.getMonth() + i);
break
}
default:
var r = s.day[e[1].substring(0, 3)];
if("undefined" != typeof r) {
var o = r - t.getDay();
0 === o ? o = 7 * i : o > 0 ? "last" === e[0] && (o -= 7) : "next" === e[0] && (o += 7), t.setDate(t.getDate() + o), t.setHours(0, 0, 0, 0)
}
}
break;
default:
if(!/\d+/.test(e[0])) return !1;
switch(i *= parseInt(e[0], 10), e[1].substring(0, 3)) {
case "yea":
t.setFullYear(t.getFullYear() + i);
break;
case "mon":
t.setMonth(t.getMonth() + i);
break;
case "wee":
t.setDate(t.getDate() + 7 * i);
break;
case "day":
t.setDate(t.getDate() + i);
break;
case "hou":
t.setHours(t.getHours() + i);
break;
case "min":
t.setMinutes(t.getMinutes() + i);
break;
case "sec":
t.setSeconds(t.getSeconds() + i)
}
}
return !0
};
if(r = e.match(/^(\d{2,4}-\d{2}-\d{2})(?:\s(\d{1,2}:\d{2}(:\d{2})?)?(?:\.(\d+))?)?$/), null !== r) return r[2] ? r[3] || (r[2] += ":00") : r[2] = "00:00:00", o = r[1].split(/-/g), o[1] = s.mon[o[1] - 1] || o[1], o[0] = +o[0], o[0] = o[0] >= 0 && o[0] <= 69 ? "20" + (o[0] < 10 ? "0" + o[0] : o[0] + "") : o[0] >= 70 && o[0] <= 99 ? "19" + o[0] : o[0] + "", parseInt(this.strtotime(o[2] + " " + o[1] + " " + o[0] + " " + r[2]) + (r[4] ? r[4] : ""), 10);
var c = "([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday)|(last|next)\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday))(\\sago)?";
if(r = e.match(new RegExp(c, "gi")), null === r) return !1;
for(n = 0, i = r.length; i > n; n++)
if(!l(r[n].split(" "))) return !1;
return t.getTime() || 0
}
}, r.REGEX_QUOTED_STRING = "(?:\"(?:[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"|'(?:[^']*(?:''[^']*)*)')";
var o = function(e) {
this.offset = void 0 !== e ? e : 0
};
o.prototype = {
offset: 0,
lines: [],
currentLineNb: -1,
currentLine: "",
refs: {},
parse: function(t) {
this.currentLineNb = -1, this.currentLine = "", this.lines = this.cleanup(t).split("\n");
for(var n = null, i = null; this.moveToNextLine();)
if(!this.isCurrentLineEmpty()) {
if(" " == this.currentLine.charAt(0)) throw new e("A YAML file cannot contain tabs as indentation.", this.getRealCurrentLineNb() + 1, this.currentLine);
var a = !1,
s = !1,
l = !1,
c = null,
u = null,
d = null,
p = null,
h = null,
f = null,
m = null,
g = null,
v = null;
if(c = /^\-((\s+)(.+?))?\s*$/.exec(this.currentLine)) {
if(i && "mapping" == i) throw new e("You cannot define a sequence item when in a mapping", this.getRealCurrentLineNb() + 1, this.currentLine);
i = "sequence", this.isDefined(n) || (n = []), c = {
leadspaces: c[2],
value: c[3]
}, this.isDefined(c.value) && (u = /^&([^ ]+) *(.*)/.exec(c.value)) && (u = {
ref: u[1],
value: u[2]
}, a = u.ref, c.value = u.value), this.isDefined(c.value) && "" != this.trim(c.value) && "#" != c.value.replace(/^ +/, "").charAt(0) ? this.isDefined(c.leadspaces) && " " == c.leadspaces && (u = new RegExp("^(" + r.REGEX_QUOTED_STRING + "|[^ '\"{[].*?) *:(\\s+(.+?))?\\s*$").exec(c.value)) ? (u = {
key: u[1],
value: u[3]
}, d = this.getRealCurrentLineNb(), p = new o(d), p.refs = this.refs, h = c.value, this.isNextLineIndented() || (h += "\n" + this.getNextEmbedBlock(this.getCurrentLineIndentation() + 2)), n.push(p.parse(h)), this.refs = p.refs) : n.push(this.parseValue(c.value)) : (d = this.getRealCurrentLineNb() + 1, p = new o(d), p.refs = this.refs, n.push(p.parse(this.getNextEmbedBlock())), this.refs = p.refs)
} else {
if(!(c = new RegExp("^(" + r.REGEX_QUOTED_STRING + "|[^ '\"[{].*?) *:(\\s+(.+?))?\\s*$").exec(this.currentLine))) {
if(2 == this.lines.length && this.isEmpty(this.lines[1])) {
try {
t = (new r).parse(this.lines[0])
} catch(b) {
throw b instanceof e && (b.setParsedLine(this.getRealCurrentLineNb() + 1), b.setSnippet(this.currentLine)), b
}
if(this.isObject(t)) {
var y = t[0];
if("string" == typeof t && "*" == y.charAt(0)) {
n = [], g = t.length;
for(var x = 0; g > x; x++) n.push(this.refs[t[x].substr(1)]);
t = n
}
}
return t
}
throw new e("Unable to parse.", this.getRealCurrentLineNb() + 1, this.currentLine)
}
if(this.isDefined(n) || (n = {}), i && "sequence" == i) throw new e("You cannot define a mapping item when in a sequence", this.getRealCurrentLineNb() + 1, this.currentLine);
i = "mapping", c = {
key: c[1],
value: c[3]
};
try {
f = (new r).parseScalar(c.key)
} catch(b) {
throw b instanceof e && (b.setParsedLine(this.getRealCurrentLineNb() + 1), b.setSnippet(this.currentLine)), b
}
if("<<" == f)
if(this.isDefined(c.value) && "*" == (c.value + "").charAt(0)) {
if(s = c.value.substr(1), void 0 == this.refs[s]) throw new e('Reference "' + t + '" does not exist', this.getRealCurrentLineNb() + 1, this.currentLine)
} else {
t = this.isDefined(c.value) && "" != c.value ? c.value : this.getNextEmbedBlock(), d = this.getRealCurrentLineNb() + 1, p = new o(d), p.refs = this.refs, m = p.parse(t), this.refs = p.refs;
var w = [];
if(!this.isObject(m)) throw new e("YAML merge keys used with a scalar value instead of an array", this.getRealCurrentLineNb() + 1, this.currentLine);
if(this.isDefined(m[0])) {
v = this.reverseArray(m), g = v.length;
for(var x = 0; g > x; x++) {
{
v[x]
}
if(!this.isObject(v[x])) throw new e("Merge items must be arrays", this.getRealCurrentLineNb() + 1, this.currentLine);
w = this.mergeObject(v[x], w)
}
} else w = this.mergeObject(w, m);
l = w
} else this.isDefined(c.value) && (u = /^&([^ ]+) *(.*)/.exec(c.value)) && (u = {
ref: u[1],
value: u[2]
}, a = u.ref, c.value = u.value);
l ? n = l : this.isDefined(c.value) && "" != this.trim(c.value) && "#" != this.trim(c.value).charAt(0) ? s ? n = this.refs[s] : n[f] = this.parseValue(c.value) : this.isNextLineIndented() && !this.isNextLineUnIndentedCollection() ? n[f] = null : (d = this.getRealCurrentLineNb() + 1, p = new o(d), p.refs = this.refs, n[f] = p.parse(this.getNextEmbedBlock()), this.refs = p.refs)
} if(a)
if(n instanceof Array) this.refs[a] = n[n.length - 1];
else {
var S = null;
for(var C in n) n.hasOwnProperty(C) && (S = C);
this.refs[a] = n[C]
}
}
return this.isEmpty(n) ? null : n
},
getRealCurrentLineNb: function() {
return this.currentLineNb + this.offset
},
getCurrentLineIndentation: function() {
return this.currentLine.length - this.currentLine.replace(/^ +/g, "").length
},
getNextEmbedBlock: function(t) {
this.moveToNextLine();
var n = null,
i = null;
if(this.isDefined(t)) n = t;
else {
n = this.getCurrentLineIndentation();
var r = this.isStringUnIndentedCollectionItem(this.currentLine);
if(!this.isCurrentLineEmpty() && 0 == n && !r) throw new e("Indentation problem A", this.getRealCurrentLineNb() + 1, this.currentLine)
}
var o = [this.currentLine.substr(n)],
a = this.isStringUnIndentedCollectionItem(this.currentLine),
s = -1;
for(a === !0 && (s = 1 + /^\-((\s+)(.+?))?\s*$/.exec(this.currentLine)[2].length); this.moveToNextLine();) {
if(a && !this.isStringUnIndentedCollectionItem(this.currentLine) && this.getCurrentLineIndentation() != s) {
this.moveToPreviousLine();
break
}
if(this.isCurrentLineEmpty()) this.isCurrentLineBlank() && o.push(this.currentLine.substr(n));
else {
i = this.getCurrentLineIndentation();
var l;
if(l = /^( *)$/.exec(this.currentLine)) o.push(l[1]);
else {
if(!(i >= n)) {
if(0 == i) {
this.moveToPreviousLine();
break
}
throw new e("Indentation problem B", this.getRealCurrentLineNb() + 1, this.currentLine)
}
o.push(this.currentLine.substr(n))
}
}
}
return o.join("\n")
},
moveToNextLine: function() {
return this.currentLineNb >= this.lines.length - 1 ? !1 : (this.currentLineNb++, this.currentLine = this.lines[this.currentLineNb], !0)
},
moveToPreviousLine: function() {
this.currentLineNb--, this.currentLine = this.lines[this.currentLineNb]
},
parseValue: function(t) {
if("*" == (t + "").charAt(0)) {
if(t = "#" == this.trim(t).charAt(0) ? (t + "").substr(1, t.indexOf("#") - 2) : (t + "").substr(1), void 0 == this.refs[t]) throw new e('Reference "' + t + '" does not exist', this.getRealCurrentLineNb() + 1, this.currentLine);
return this.refs[t]
}
var n = null;
if(n = /^(\||>)(\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?( +#.*)?$/.exec(t)) {
n = {
separator: n[1],
modifiers: n[2],
comments: n[3]
};
var i = this.isDefined(n.modifiers) ? n.modifiers : "";
return this.parseFoldedScalar(n.separator, i.replace(/\d+/g, ""), Math.abs(parseInt(i)))
}
try {
return(new r).parse(t)
} catch(o) {
throw o instanceof e && (o.setParsedLine(this.getRealCurrentLineNb() + 1), o.setSnippet(this.currentLine)), o
}
},
parseFoldedScalar: function(e, t, n) {
void 0 == t && (t = ""), void 0 == n && (n = 0), e = "|" == e ? "\n" : " ";
for(var i = "", r = null, o = this.moveToNextLine(); o && this.isCurrentLineBlank();) i += "\n", o = this.moveToNextLine();
if(!o) return "";
var a = null;
if(!(a = new RegExp("^(" + (n ? this.strRepeat(" ", n) : " +") + ")(.*)$").exec(this.currentLine))) return this.moveToPreviousLine(), "";
a = {
indent: a[1],
text: a[2]
};
var s = a.indent,
l = 0;
for(i += a.text + e; this.currentLineNb + 1 < this.lines.length;)
if(this.moveToNextLine(), a = new RegExp("^( {" + s.length + ",})(.+)$").exec(this.currentLine)) a = {
indent: a[1],
text: a[2]
}, " " == e && l != a.indent && (i = i.substr(0, i.length - 1) + "\n"), l = a.indent, r = a.indent.length - s.length, i += this.strRepeat(" ", r) + a.text + (0 != r ? "\n" : e);
else {
if(!(a = /^( *)$/.exec(this.currentLine))) {
this.moveToPreviousLine();
break
}
i += a[1].replace(new RegExp("^ {1," + s.length + "}", "g"), "") + "\n"
}
switch(" " == e && (i = i.replace(/ (\n*)$/g, "\n$1")), t) {
case "":
i = i.replace(/\n+$/g, "\n");
break;
case "+":
break;
case "-":
i = i.replace(/\n+$/g, "")
}
return i
},
isNextLineIndented: function() {
for(var e = this.getCurrentLineIndentation(), t = this.moveToNextLine(); t && this.isCurrentLineEmpty();) t = this.moveToNextLine();
if(0 == t) return !1;
var n = !1;
return this.getCurrentLineIndentation() <= e && (n = !0), this.moveToPreviousLine(), n
},
isCurrentLineEmpty: function() {
return this.isCurrentLineBlank() || this.isCurrentLineComment()
},
isCurrentLineBlank: function() {
return "" == this.trim(this.currentLine)
},
isCurrentLineComment: function() {
var e = this.currentLine.replace(/^ +/g, "");
return "#" == e.charAt(0)
},
cleanup: function(e) {
e = e.split("\r\n").join("\n").split("\r").join("\n"), /\n$/.test(e) || (e += "\n");
for(var t = 0, n = /^\%YAML[: ][\d\.]+.*\n/; n.test(e);) e = e.replace(n, ""), t++;
if(this.offset += t, n = /^(#.*?\n)+/, n.test(e)) {
var i = e.replace(n, "");
this.offset += this.subStrCount(e, "\n") - this.subStrCount(i, "\n"), e = i
}
return n = /^\-\-\-.*?\n/, n.test(e) && (i = e.replace(n, ""), this.offset += this.subStrCount(e, "\n") - this.subStrCount(i, "\n"), e = i, e = e.replace(/\.\.\.\s*$/g, "")), e
},
isNextLineUnIndentedCollection: function() {
for(var e = this.getCurrentLineIndentation(), t = this.moveToNextLine(); t && this.isCurrentLineEmpty();) t = this.moveToNextLine();
if(!1 === t) return !1;
var n = !1;
return this.getCurrentLineIndentation() == e && this.isStringUnIndentedCollectionItem(this.currentLine) && (n = !0), this.moveToPreviousLine(), n
},
isStringUnIndentedCollectionItem: function() {
return 0 === this.currentLine.indexOf("- ")
},
isObject: function(e) {
return "object" == typeof e && this.isDefined(e)
},
isEmpty: function(e) {
return void 0 == e || null == e || "" == e || 0 == e || "0" == e || 0 == e
},
isDefined: function(e) {
return void 0 != e && null != e
},
reverseArray: function(e) {
for(var t = [], n = e.length, i = n - 1; i >= 0; i--) t.push(e[i]);
return t
},
merge: function(e, t) {
var n, i = {};
for(n in e) e.hasOwnProperty(n) && (/^\d+$/.test(n) ? i.push(e) : i[n] = e[n]);
for(n in t) t.hasOwnProperty(n) && (/^\d+$/.test(n) ? i.push(t) : i[n] = t[n]);
return i
},
strRepeat: function(e, t) {
var n, i = "";
for(n = 0; t > n; n++) i += e;
return i
},
subStrCount: function(e, t, n, i) {
var r = 0;
e = "" + e, t = "" + t, void 0 != n && (e = e.substr(n)), void 0 != i && (e = e.substr(0, i));
for(var o = e.length, a = t.length, s = 0; o > s; s++) t == e.substr(s, a) && r++, s += a - 1;
return r
},
trim: function(e) {
return(e + "").replace(/^ +/, "").replace(/ +$/, "")
}
}, YamlEscaper = function() {}, YamlEscaper.prototype = {
requiresDoubleQuoting: function(e) {
return new RegExp(YamlEscaper.REGEX_CHARACTER_TO_ESCAPE).test(e)
},
escapeWithDoubleQuotes: function(e) {
e += "";
for(var t = YamlEscaper.escapees.length, n = YamlEscaper.escaped.length, i = YamlEscaper.escaped, r = 0; t > r; ++r) r >= n && i.push("");
var o = "";
return o = e.replace(new RegExp(YamlEscaper.escapees.join("|"), "g"), function(e) {
for(var n = 0; t > n; ++n)
if(e == YamlEscaper.escapees[n]) return i[n]
}), '"' + o + '"'
},
requiresSingleQuoting: function(e) {
return /[\s'":{}[\],&*#?]|^[-?|<>=!%@`]/.test(e)
},
escapeWithSingleQuotes: function(e) {
return "'" + e.replace(/'/g, "''") + "'"
}
}, YamlEscaper.REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|Â
| |â¨|â©", YamlEscaper.escapees = ["\\\\", '\\"', '"', "\x00", "", "", "", "", "", "", "", "\b", " ", "\n", "", "\f", "\r", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Â
", " ", "â¨", "â©"], YamlEscaper.escaped = ['\\"', "\\\\", '\\"', "\\0", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\a", "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "\\x0e", "\\x0f", "\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17", "\\x18", "\\x19", "\\x1a", "\\e", "\\x1c", "\\x1d", "\\x1e", "\\x1f", "\\N", "\\_", "\\L", "\\P"];
var a = function() {};
a.prototype = {
unescapeSingleQuotedString: function(e) {
return e.replace(/''/g, "'")
},
unescapeDoubleQuotedString: function(e) {
var t = function(e) {
return(new a).unescapeCharacter(e)
};
return e.replace(new RegExp(a.REGEX_ESCAPED_CHARACTER, "g"), t)
},
unescapeCharacter: function(e) {
switch(e.charAt(1)) {
case "0":
return String.fromCharCode(0);
case "a":
return String.fromCharCode(7);
case "b":
return String.fromCharCode(8);
case "t":
return " ";
case " ":
return " ";
case "n":
return "\n";
case "v":
return String.fromCharCode(11);
case "f":
return String.fromCharCode(12);
case "r":
return String.fromCharCode(13);
case "e":
return "";
case " ":
return " ";
case '"':
return '"';
case "/":
return "/";
case "\\":
return "\\";
case "N":
return "\x00
";
case "_":
return "\x00 ";
case "L":
return " (";
case "P":
return " )";
case "x":
return this.pack("n", (new r).hexdec(e.substr(2, 2)));
case "u":
return this.pack("n", (new r).hexdec(e.substr(2, 4)));
case "U":
return this.pack("N", (new r).hexdec(e.substr(2, 8)))
}
},
pack: function(e) {
for(var t, n, i = 0, r = 1, o = "", a = 0; i < e.length;) {
for(t = e.charAt(i), n = "", i++; i < e.length && null !== e.charAt(i).match(/[\d\*]/);) n += e.charAt(i), i++;
switch("" === n && (n = "1"), t) {
case "n":
if("*" === n && (n = arguments.length - r), n > arguments.length - r) throw new Error("Warning: pack() Type " + t + ": too few arguments");
for(a = 0; n > a; a++) o += String.fromCharCode(arguments[r] >> 8 & 255), o += String.fromCharCode(255 & arguments[r]), r++;
break;
case "N":
if("*" === n && (n = arguments.length - r), n > arguments.length - r) throw new Error("Warning: pack() Type " + t + ": too few arguments");
for(a = 0; n > a; a++) o += String.fromCharCode(arguments[r] >> 24 & 255), o += String.fromCharCode(arguments[r] >> 16 & 255), o += String.fromCharCode(arguments[r] >> 8 & 255), o += String.fromCharCode(255 & arguments[r]), r++;
break;
default:
throw new Error("Warning: pack() Type " + t + ": unknown format code")
}
}
if(r < arguments.length) throw new Error("Warning: pack(): " + (arguments.length - r) + " arguments unused");
return o
}
}, a.REGEX_ESCAPED_CHARACTER = '\\\\([0abt nvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})';
var s = function() {};
s.prototype = {
dump: function(e, t, n) {
null == t && (t = 0), null == n && (n = 0);
var i, o = "",
a = n ? this.strRepeat(" ", n) : "";
if(this.numSpacesForIndentation || (this.numSpacesForIndentation = 2), 0 >= t || !this.isObject(e) || this.isEmpty(e)) i = new r, o += a + i.dump(e);
else {
var s, l = !this.arrayEquals(this.getKeys(e), this.range(0, e.length - 1));
for(var c in e) e.hasOwnProperty(c) && (s = 0 >= t - 1 || !this.isObject(e[c]) || this.isEmpty(e[c]), l && (i = new r), o += a + "" + (l ? i.dump(c) + ":" : "-") + (s ? " " : "\n") + this.dump(e[c], t - 1, s ? 0 : n + this.numSpacesForIndentation) + (s ? "\n" : ""))
}
return o
},
strRepeat: function(e, t) {
var n, i = "";
for(n = 0; t > n; n++) i += e;
return i
},
isObject: function(e) {
return this.isDefined(e) && "object" == typeof e
},
isEmpty: function(e) {
var t = void 0 == e || null == e || "" == e || 0 == e || "0" == e || 0 == e;
if(!(t || "object" != typeof e || e instanceof Array)) {
var n = 0;
for(var i in e) e.hasOwnProperty(i) && n++;
t = !n
}
return t
},
isDefined: function(e) {
return void 0 != e && null != e
},
getKeys: function(e) {
var t = [];
for(var n in e) e.hasOwnProperty(n) && t.push(n);
return t
},
range: function(e, t) {
if(e > t) return [];
for(var n = [], i = e; t >= i; i++) n.push(i);
return n
},
arrayEquals: function(e, t) {
if(e.length != t.length) return !1;
for(var n = e.length, i = 0; n > i; i++)
if(e[i] != t[i]) return !1;
return !0
}
}
}(), define("yaml-js", function(e) {
return function() {
var t;
return t || e.YAML
}
}(this)), define("extensions/yamlFrontMatterParser", ["underscore", "classes/Extension", "yaml-js"], function(e, t, n) {
function i(t, i) {
if(t === a) {
var r = s.exec(i),
o = r[1],
l = r[2];
if(l) {
if(!a.frontMatter || a.frontMatter._frontMatter != o) {
a.frontMatter = void 0;
try {
a.frontMatter = n.parse(l), e.isObject(a.frontMatter) || (a.frontMatter = void 0), a.frontMatter._yaml = l, a.frontMatter._frontMatter = o
} catch(c) {}
}
} else a.frontMatter = void 0
}
}
var r, o = new t("yamlFrontMatterParser", "YAML front matter");
o.onEventMgrCreated = function(e) {
r = e
};
var a;
o.onFileSelected = function(e) {
a = e
};
var s = /^(\s*-{3}\s*\n([\w\W]+?)\n\s*-{3}\s*?\n)?([\w\W]*)$/;
return o.onFileOpen = i, o.onContentChanged = i, o
}), define("text!html/markdownExtraSettingsBlock.html", [], function() {
return '
Adds extra features to the original Markdown syntax.
\n
\n
More info '
}), window.PR_SHOULD_USE_CONTINUATION = !0;
var prettyPrintOne, prettyPrint;
! function() {
function e(e) {
function t(e) {
var t = e.charCodeAt(0);
if(92 !== t) return t;
var n = e.charAt(1);
return t = d[n], t ? t : n >= "0" && "7" >= n ? parseInt(e.substring(1), 8) : "u" === n || "x" === n ? parseInt(e.substring(2), 16) : e.charCodeAt(1)
}
function n(e) {
if(32 > e) return(16 > e ? "\\x0" : "\\x") + e.toString(16);
var t = String.fromCharCode(e);
return "\\" === t || "-" === t || "]" === t || "^" === t ? "\\" + t : t
}
function i(e) {
var i = e.substring(1, e.length - 1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]", "g")),
r = [],
o = "^" === i[0],
a = ["["];
o && a.push("^");
for(var s = o ? 1 : 0, l = i.length; l > s; ++s) {
var c = i[s];
if(/\\[bdsw]/i.test(c)) a.push(c);
else {
var u, d = t(c);
l > s + 2 && "-" === i[s + 1] ? (u = t(i[s + 2]), s += 2) : u = d, r.push([d, u]), 65 > u || d > 122 || (65 > u || d > 90 || r.push([32 | Math.max(65, d), 32 | Math.min(u, 90)]), 97 > u || d > 122 || r.push([-33 & Math.max(97, d), -33 & Math.min(u, 122)]))
}
}
r.sort(function(e, t) {
return e[0] - t[0] || t[1] - e[1]
});
for(var p = [], h = [], s = 0; s < r.length; ++s) {
var f = r[s];
f[0] <= h[1] + 1 ? h[1] = Math.max(h[1], f[1]) : p.push(h = f)
}
for(var s = 0; s < p.length; ++s) {
var f = p[s];
a.push(n(f[0])), f[1] > f[0] && (f[1] + 1 > f[0] && a.push("-"), a.push(n(f[1])))
}
return a.push("]"), a.join("")
}
function r(e) {
for(var t = e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)", "g")), r = t.length, s = [], l = 0, c = 0; r > l; ++l) {
var u = t[l];
if("(" === u)++c;
else if("\\" === u.charAt(0)) {
var d = +u.substring(1);
d && (c >= d ? s[d] = -1 : t[l] = n(d))
}
}
for(var l = 1; l < s.length; ++l) - 1 === s[l] && (s[l] = ++o);
for(var l = 0, c = 0; r > l; ++l) {
var u = t[l];
if("(" === u)++c, s[c] || (t[l] = "(?:");
else if("\\" === u.charAt(0)) {
var d = +u.substring(1);
d && c >= d && (t[l] = "\\" + s[d])
}
}
for(var l = 0; r > l; ++l) "^" === t[l] && "^" !== t[l + 1] && (t[l] = "");
if(e.ignoreCase && a)
for(var l = 0; r > l; ++l) {
var u = t[l],
p = u.charAt(0);
u.length >= 2 && "[" === p ? t[l] = i(u) : "\\" !== p && (t[l] = u.replace(/[a-zA-Z]/g, function(e) {
var t = e.charCodeAt(0);
return "[" + String.fromCharCode(-33 & t, 32 | t) + "]"
}))
}
return t.join("")
}
for(var o = 0, a = !1, s = !1, l = 0, c = e.length; c > l; ++l) {
var u = e[l];
if(u.ignoreCase) s = !0;
else if(/[a-z]/i.test(u.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ""))) {
a = !0, s = !1;
break
}
}
for(var d = {
b: 8,
t: 9,
n: 10,
v: 11,
f: 12,
r: 13
}, p = [], l = 0, c = e.length; c > l; ++l) {
var u = e[l];
if(u.global || u.multiline) throw new Error("" + u);
p.push("(?:" + r(u) + ")")
}
return new RegExp(p.join("|"), s ? "gi" : "g")
}
function t(e, t) {
function n(e) {
switch(e.nodeType) {
case 1:
if(i.test(e.className)) return;
for(var l = e.firstChild; l; l = l.nextSibling) n(l);
var c = e.nodeName.toLowerCase();
("br" === c || "li" === c) && (r[s] = "\n", a[s << 1] = o++, a[s++ << 1 | 1] = e);
break;
case 3:
case 4:
var u = e.nodeValue;
u.length && (u = t ? u.replace(/\r\n?/g, "\n") : u.replace(/[ \t\r\n]+/g, " "), r[s] = u, a[s << 1] = o, o += u.length, a[s++ << 1 | 1] = e)
}
}
var i = /(?:^|\s)nocode(?:\s|$)/,
r = [],
o = 0,
a = [],
s = 0;
return n(e), {
sourceCode: r.join("").replace(/\n$/, ""),
spans: a
}
}
function n(e, t, n, i) {
if(t) {
var r = {
sourceCode: t,
basePos: e
};
n(r), i.push.apply(i, r.decorations)
}
}
function i(e) {
for(var t = void 0, n = e.firstChild; n; n = n.nextSibling) {
var i = n.nodeType;
t = 1 === i ? t ? e : n : 3 === i ? q.test(n.nodeValue) ? e : t : t
}
return t === e ? void 0 : t
}
function r(t, i) {
var r, o = {};
! function() {
for(var n = t.concat(i), a = [], s = {}, l = 0, c = n.length; c > l; ++l) {
var u = n[l],
d = u[3];
if(d)
for(var p = d.length; --p >= 0;) o[d.charAt(p)] = u;
var h = u[1],
f = "" + h;
s.hasOwnProperty(f) || (a.push(h), s[f] = null)
}
a.push(/[\0-\uffff]/), r = e(a)
}();
var a = i.length,
s = function(e) {
for(var t = e.sourceCode, l = e.basePos, u = [l, R], d = 0, p = t.match(r) || [], h = {}, f = 0, m = p.length; m > f; ++f) {
var g, v = p[f],
b = h[v],
y = void 0;
if("string" == typeof b) g = !1;
else {
var x = o[v.charAt(0)];
if(x) y = v.match(x[1]), b = x[0];
else {
for(var w = 0; a > w; ++w)
if(x = i[w], y = v.match(x[1])) {
b = x[0];
break
}
y || (b = R)
}
g = b.length >= 5 && "lang-" === b.substring(0, 5), !g || y && "string" == typeof y[1] || (g = !1, b = O), g || (h[v] = b)
}
var S = d;
if(d += v.length, g) {
var C = y[1],
_ = v.indexOf(C),
k = _ + C.length;
y[2] && (k = v.length - y[2].length, _ = k - C.length);
var T = b.substring(5);
n(l + S, v.substring(0, _), s, u), n(l + S + _, C, c(T, C), u), n(l + S + k, v.substring(k), s, u)
} else u.push(l + S, b)
}
e.decorations = u
};
return s
}
function o(e) {
var t = [],
n = [];
t.push(e.tripleQuotedStrings ? [I, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, "'\""] : e.multiLineStrings ? [I, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, "'\"`"] : [I, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, "\"'"]), e.verbatimStrings && n.push([I, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]);
var i = e.hashComments;
if(i && (e.cStyleComments ? (t.push(i > 1 ? [D, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, "#"] : [D, /^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/, null, "#"]), n.push([I, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/, null])) : t.push([D, /^#[^\r\n]*/, null, "#"])), e.cStyleComments && (n.push([D, /^\/\/[^\r\n]*/, null]), n.push([D, /^\/\*[\s\S]*?(?:\*\/|$)/, null])), e.regexLiterals) {
var o = "/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/";
n.push(["lang-regex", new RegExp("^" + G + "(" + o + ")")])
}
var a = e.types;
a && n.push([L, a]);
var s = ("" + e.keywords).replace(/^ | $/g, "");
s.length && n.push([N, new RegExp("^(?:" + s.replace(/[\s,]+/g, "|") + ")\\b"), null]), t.push([R, /^\s+/, null, " \r\n "]);
var l = /^.[^\s\w\.$@\'\"\`\/\\]*/;
return n.push([A, /^@[a-z_$][a-z_$@0-9]*/i, null], [L, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null], [R, /^[a-z_$][a-z_$@0-9]*/i, null], [A, new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*", "i"), null, "0123456789"], [R, /^\\[\s\S]?/, null], [M, l, null]), r(t, n)
}
function a(e, t, n) {
function i(e) {
switch(e.nodeType) {
case 1:
if(o.test(e.className)) break;
if("br" === e.nodeName) r(e), e.parentNode && e.parentNode.removeChild(e);
else
for(var t = e.firstChild; t; t = t.nextSibling) i(t);
break;
case 3:
case 4:
if(n) {
var l = e.nodeValue,
c = l.match(a);
if(c) {
var u = l.substring(0, c.index);
e.nodeValue = u;
var d = l.substring(c.index + c[0].length);
if(d) {
var p = e.parentNode;
p.insertBefore(s.createTextNode(d), e.nextSibling)
}
r(e), u || e.parentNode.removeChild(e)
}
}
}
}
function r(e) {
function t(e, n) {
var i = n ? e.cloneNode(!1) : e,
r = e.parentNode;
if(r) {
var o = t(r, 1),
a = e.nextSibling;
o.appendChild(i);
for(var s = a; s; s = a) a = s.nextSibling, o.appendChild(s)
}
return i
}
for(; !e.nextSibling;)
if(e = e.parentNode, !e) return;
for(var n, i = t(e.nextSibling, 0);
(n = i.parentNode) && 1 === n.nodeType;) i = n;
c.push(i)
}
for(var o = /(?:^|\s)nocode(?:\s|$)/, a = /\r\n?|\n/, s = e.ownerDocument, l = s.createElement("li"); e.firstChild;) l.appendChild(e.firstChild);
for(var c = [l], u = 0; u < c.length; ++u) i(c[u]);
t === (0 | t) && c[0].setAttribute("value", t);
var d = s.createElement("ol");
d.className = "linenums";
for(var p = Math.max(0, t - 1 | 0) || 0, u = 0, h = c.length; h > u; ++u) l = c[u], l.className = "L" + (u + p) % 10, l.firstChild || l.appendChild(s.createTextNode(" ")), d.appendChild(l);
e.appendChild(d)
}
function s(e) {
var t = /\bMSIE\s(\d+)/.exec(navigator.userAgent);
t = t && +t[1] <= 8;
var n = /\n/g,
i = e.sourceCode,
r = i.length,
o = 0,
a = e.spans,
s = a.length,
l = 0,
c = e.decorations,
u = c.length,
d = 0;
c[u] = r;
var p, h;
for(h = p = 0; u > h;) c[h] !== c[h + 2] ? (c[p++] = c[h++], c[p++] = c[h++]) : h += 2;
for(u = p, h = p = 0; u > h;) {
for(var f = c[h], m = c[h + 1], g = h + 2; u >= g + 2 && c[g + 1] === m;) g += 2;
c[p++] = f, c[p++] = m, h = g
}
u = c.length = p;
var v, b = e.sourceNode;
b && (v = b.style.display, b.style.display = "none");
try {
for(; s > l;) {
var y, x = (a[l], a[l + 2] || r),
w = c[d + 2] || r,
g = Math.min(x, w),
S = a[l + 1];
if(1 !== S.nodeType && (y = i.substring(o, g))) {
t && (y = y.replace(n, "\r")), S.nodeValue = y;
var C = S.ownerDocument,
_ = C.createElement("span");
_.className = c[d + 1];
var k = S.parentNode;
k.replaceChild(_, S), _.appendChild(S), x > o && (a[l + 1] = S = C.createTextNode(i.substring(g, x)), k.insertBefore(S, _.nextSibling))
}
o = g, o >= x && (l += 2), o >= w && (d += 2)
}
} finally {
b && (b.style.display = v)
}
}
function l(e, t) {
for(var n = t.length; --n >= 0;) {
var i = t[n];
U.hasOwnProperty(i) ? h.console && console.warn("cannot override language handler %s", i) : U[i] = e
}
}
function c(e, t) {
return e && U.hasOwnProperty(e) || (e = /^\s* l; ++l) o.push(r[s][l]);
r = null;
var d = Date;
d.now || (d = {
now: function() {
return +new Date
}
});
var p, f = 0,
m = /\blang(?:uage)?-([\w.]+)(?!\S)/,
g = /\bprettyprint\b/,
v = /\bprettyprinted\b/,
b = /pre|xmp/i,
y = /^code$/i,
x = /^(?:pre|code|xmp)$/i;
n()
}
var h = window,
f = ["break,continue,do,else,for,if,return,while"],
m = [f, "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
g = [m, "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],
v = [g, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],
b = [g, "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
y = [b, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],
x = "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",
w = [g, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],
S = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",
C = [f, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
_ = [f, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],
k = [f, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"],
T = [v, y, w, S + C, _, k],
E = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,
I = "str",
N = "kwd",
D = "com",
L = "typ",
A = "lit",
M = "pun",
R = "pln",
P = "tag",
F = "dec",
O = "src",
B = "atn",
j = "atv",
$ = "nocode",
G = "(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",
q = /\S/,
H = o({
keywords: T,
hashComments: !0,
cStyleComments: !0,
multiLineStrings: !0,
regexLiterals: !0
}),
U = {};
l(H, ["default-code"]), l(r([], [[R, /^[^]+/], [F, /^]*(?:>|$)/], [D, /^<\!--[\s\S]*?(?:-\->|$)/], ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], ["lang-", /^<%([\s\S]+?)(?:%>|$)/], [M, /^(?:<[%?]|[%?]>)/], ["lang-", /^
]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ["lang-js", /^",
rE: !0,
sL: "javascript"
}
}, {
b: "<%",
e: "%>",
sL: "vbscript"
},
t, {
cN: "pi",
b: /<\?\w+/,
e: /\?>/,
r: 10
}, {
cN: "tag",
b: "?",
e: "/?>",
c: [{
cN: "title",
b: "[^ /><]+",
r: 0
},
n]
}]
}
}), hljs.registerLanguage("markdown", function() {
return {
c: [{
cN: "header",
v: [{
b: "^#{1,6}",
e: "$"
}, {
b: "^.+?\\n[=-]{2,}$"
}]
}, {
b: "<",
e: ">",
sL: "xml",
r: 0
}, {
cN: "bullet",
b: "^([*+-]|(\\d+\\.))\\s+"
}, {
cN: "strong",
b: "[*_]{2}.+?[*_]{2}"
}, {
cN: "emphasis",
v: [{
b: "\\*.+?\\*"
}, {
b: "_.+?_",
r: 0
}]
}, {
cN: "blockquote",
b: "^>\\s+",
e: "$"
}, {
cN: "code",
v: [{
b: "`.+?`"
}, {
b: "^( {4}| )",
e: "$",
r: 0
}]
}, {
cN: "horizontal_rule",
b: "^[-\\*]{3,}",
e: "$"
}, {
b: "\\[.+?\\][\\(\\[].+?[\\)\\]]",
rB: !0,
c: [{
cN: "link_label",
b: "\\[",
e: "\\]",
eB: !0,
rE: !0,
r: 0
}, {
cN: "link_url",
b: "\\]\\(",
e: "\\)",
eB: !0,
eE: !0
}, {
cN: "link_reference",
b: "\\]\\[",
e: "\\]",
eB: !0,
eE: !0
}],
r: 10
}, {
b: "^\\[.+\\]:",
e: "$",
rB: !0,
c: [{
cN: "link_reference",
b: "\\[",
e: "\\]",
eB: !0,
eE: !0
}, {
cN: "link_url",
b: "\\s",
e: "$"
}]
}]
}
}), hljs.registerLanguage("css", function(e) {
var t = "[a-zA-Z-][a-zA-Z0-9_-]*",
n = {
cN: "function",
b: t + "\\(",
e: "\\)",
c: ["self", e.NM, e.ASM, e.QSM]
};
return {
cI: !0,
i: "[=/|']",
c: [e.CBLCLM, {
cN: "id",
b: "\\#[A-Za-z0-9_-]+"
}, {
cN: "class",
b: "\\.[A-Za-z0-9_-]+",
r: 0
}, {
cN: "attr_selector",
b: "\\[",
e: "\\]",
i: "$"
}, {
cN: "pseudo",
b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
}, {
cN: "at_rule",
b: "@(font-face|page)",
l: "[a-z-]+",
k: "font-face page"
}, {
cN: "at_rule",
b: "@",
e: "[{;]",
c: [{
cN: "keyword",
b: /\S+/
}, {
b: /\s/,
eW: !0,
eE: !0,
r: 0,
c: [n, e.ASM, e.QSM, e.NM]
}]
}, {
cN: "tag",
b: t,
r: 0
}, {
cN: "rules",
b: "{",
e: "}",
i: "[^\\s]",
r: 0,
c: [e.CBLCLM, {
cN: "rule",
b: "[^\\s]",
rB: !0,
e: ";",
eW: !0,
c: [{
cN: "attribute",
b: "[A-Z\\_\\.\\-]+",
e: ":",
eE: !0,
i: "[^\\s]",
starts: {
cN: "value",
eW: !0,
eE: !0,
c: [n, e.NM, e.QSM, e.ASM, e.CBLCLM, {
cN: "hexcolor",
b: "#[0-9A-Fa-f]+"
}, {
cN: "important",
b: "!important"
}]
}
}]
}]
}]
}
}), hljs.registerLanguage("lisp", function(e) {
var t = "[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",
n = "(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s)(\\+|\\-)?\\d+)?",
i = {
cN: "shebang",
b: "^#!",
e: "$"
}, r = {
cN: "literal",
b: "\\b(t{1}|nil)\\b"
}, o = {
cN: "number",
v: [{
b: n,
r: 0
}, {
b: "#b[0-1]+(/[0-1]+)?"
}, {
b: "#o[0-7]+(/[0-7]+)?"
}, {
b: "#x[0-9a-f]+(/[0-9a-f]+)?"
}, {
b: "#c\\(" + n + " +" + n,
e: "\\)"
}]
}, a = e.inherit(e.QSM, {
i: null
}),
s = {
cN: "comment",
b: ";",
e: "$"
}, l = {
cN: "variable",
b: "\\*",
e: "\\*"
}, c = {
cN: "keyword",
b: "[:&]" + t
}, u = {
b: "\\(",
e: "\\)",
c: ["self", r, a, o]
}, d = {
cN: "quoted",
c: [o, a, l, c, u],
v: [{
b: "['`]\\(",
e: "\\)"
}, {
b: "\\(quote ",
e: "\\)",
k: {
title: "quote"
}
}]
}, p = {
cN: "list",
b: "\\(",
e: "\\)"
}, h = {
eW: !0,
r: 0
};
return p.c = [{
cN: "title",
b: t
},
h], h.c = [d, p, r, o, a, s, l, c], {
i: /\S/,
c: [o, i, r, a, s, d, p]
}
}), hljs.registerLanguage("profile", function(e) {
return {
c: [e.CNM, {
cN: "built_in",
b: "{",
e: "}$",
eB: !0,
eE: !0,
c: [e.ASM, e.QSM],
r: 0
}, {
cN: "filename",
b: "[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",
e: ":",
eE: !0
}, {
cN: "header",
b: "(ncalls|tottime|cumtime)",
e: "$",
k: "ncalls tottime|10 cumtime|10 filename",
r: 10
}, {
cN: "summary",
b: "function calls",
e: "$",
c: [e.CNM],
r: 10
},
e.ASM, e.QSM, {
cN: "function",
b: "\\(",
e: "\\)$",
c: [e.UTM],
r: 0
}]
}
}), hljs.registerLanguage("http", function() {
return {
i: "\\S",
c: [{
cN: "status",
b: "^HTTP/[0-9\\.]+",
e: "$",
c: [{
cN: "number",
b: "\\b\\d{3}\\b"
}]
}, {
cN: "request",
b: "^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",
rB: !0,
e: "$",
c: [{
cN: "string",
b: " ",
e: " ",
eB: !0,
eE: !0
}]
}, {
cN: "attribute",
b: "^\\w",
e: ": ",
eE: !0,
i: "\\n|\\s|=",
starts: {
cN: "string",
e: "$"
}
}, {
b: "\\n\\n",
starts: {
sL: "",
eW: !0
}
}]
}
}), hljs.registerLanguage("java", function(e) {
var t = "false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws";
return {
k: t,
i: /<\//,
c: [{
cN: "javadoc",
b: "/\\*\\*",
e: "\\*/",
c: [{
cN: "javadoctag",
b: "(^|\\s)@[A-Za-z]+"
}],
r: 10
},
e.CLCM, e.CBLCLM, e.ASM, e.QSM, {
bK: "protected public private",
e: /[{;=]/,
k: t,
c: [{
cN: "class",
bK: "class interface",
eW: !0,
i: /[:"<>]/,
c: [{
bK: "extends implements",
r: 10
},
e.UTM]
}, {
b: e.UIR + "\\s*\\(",
rB: !0,
c: [e.UTM]
}]
},
e.CNM, {
cN: "annotation",
b: "@[A-Za-z]+"
}]
}
}), hljs.registerLanguage("fsharp", function(e) {
return {
k: "abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",
c: [{
cN: "string",
b: '@"',
e: '"',
c: [{
b: '""'
}]
}, {
cN: "string",
b: '"""',
e: '"""'
}, {
cN: "comment",
b: "\\(\\*",
e: "\\*\\)"
}, {
cN: "class",
bK: "type",
e: "\\(|=|$",
c: [e.UTM]
}, {
cN: "annotation",
b: "\\[<",
e: ">\\]"
}, {
cN: "attribute",
b: "\\B('[A-Za-z])\\b",
c: [e.BE]
},
e.CLCM, e.inherit(e.QSM, {
i: null
}), e.CNM]
}
}), hljs.registerLanguage("mathematica", function(e) {
return {
aliases: ["mma"],
l: "(\\$|\\b)" + e.IR + "\\b",
k: "AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber",
c: [{
cN: "comment",
b: /\(\*/,
e: /\*\)/
},
e.ASM, e.QSM, e.CNM, {
cN: "list",
b: /\{/,
e: /\}/,
i: /:/
}]
}
}), hljs.registerLanguage("php", function(e) {
var t = {
cN: "variable",
b: "\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"
}, n = {
cN: "preprocessor",
b: /<\?(php)?|\?>/
}, i = {
cN: "string",
c: [e.BE, n],
v: [{
b: 'b"',
e: '"'
}, {
b: "b'",
e: "'"
},
e.inherit(e.ASM, {
i: null
}), e.inherit(e.QSM, {
i: null
})]
}, r = {
v: [e.BNM, e.CNM]
};
return {
cI: !0,
k: "and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",
c: [e.CLCM, e.HCM, {
cN: "comment",
b: "/\\*",
e: "\\*/",
c: [{
cN: "phpdoc",
b: "\\s@[A-Za-z]+"
},
n]
}, {
cN: "comment",
b: "__halt_compiler.+?;",
eW: !0,
k: "__halt_compiler",
l: e.UIR
}, {
cN: "string",
b: "<<<['\"]?\\w+['\"]?$",
e: "^\\w+;",
c: [e.BE]
},
n, t, {
cN: "function",
bK: "function",
e: /[;{]/,
i: "\\$|\\[|%",
c: [e.UTM, {
cN: "params",
b: "\\(",
e: "\\)",
c: ["self", t, e.CBLCLM, i, r]
}]
}, {
cN: "class",
bK: "class interface",
e: "{",
i: /[:\(\$"]/,
c: [{
bK: "extends implements",
r: 10
},
e.UTM]
}, {
bK: "namespace",
e: ";",
i: /[\.']/,
c: [e.UTM]
}, {
bK: "use",
e: ";",
c: [e.UTM]
}, {
b: "=>"
},
i, r]
}
}), hljs.registerLanguage("haskell", function(e) {
var t = {
cN: "comment",
v: [{
b: "--",
e: "$"
}, {
b: "{-",
e: "-}",
c: ["self"]
}]
}, n = {
cN: "pragma",
b: "{-#",
e: "#-}"
}, i = {
cN: "preprocessor",
b: "^#",
e: "$"
}, r = {
cN: "type",
b: "\\b[A-Z][\\w']*",
r: 0
}, o = {
cN: "container",
b: "\\(",
e: "\\)",
i: '"',
c: [n, t, i, {
cN: "type",
b: "\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"
},
e.inherit(e.TM, {
b: "[_a-z][\\w']*"
})]
}, a = {
cN: "container",
b: "{",
e: "}",
c: o.c
};
return {
k: "let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",
c: [{
cN: "module",
b: "\\bmodule\\b",
e: "where",
k: "module where",
c: [o, t],
i: "\\W\\.|;"
}, {
cN: "import",
b: "\\bimport\\b",
e: "$",
k: "import|0 qualified as hiding",
c: [o, t],
i: "\\W\\.|;"
}, {
cN: "class",
b: "^(\\s*)?(class|instance)\\b",
e: "where",
k: "class family instance where",
c: [r, o, t]
}, {
cN: "typedef",
b: "\\b(data|(new)?type)\\b",
e: "$",
k: "data family type newtype deriving",
c: [n, t, r, o, a]
}, {
cN: "default",
bK: "default",
e: "$",
c: [r, o, t]
}, {
cN: "infix",
bK: "infix infixl infixr",
e: "$",
c: [e.CNM, t]
}, {
cN: "foreign",
b: "\\bforeign\\b",
e: "$",
k: "foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",
c: [r, e.QSM, t]
}, {
cN: "shebang",
b: "#!\\/usr\\/bin\\/env runhaskell",
e: "$"
},
n, t, i, e.QSM, e.CNM, r, e.inherit(e.TM, {
b: "^[_a-z][\\w']*"
}), {
b: "->|<-"
}]
}
}), hljs.registerLanguage("1c", function(e) {
var t = "[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",
n = "возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",
i = "ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",
r = {
cN: "dquote",
b: '""'
}, o = {
cN: "string",
b: '"',
e: '"|$',
c: [r]
}, a = {
cN: "string",
b: "\\|",
e: '"|$',
c: [r]
};
return {
cI: !0,
l: t,
k: {
keyword: n,
built_in: i
},
c: [e.CLCM, e.NM, o, a, {
cN: "function",
b: "(процедура|функция)",
e: "$",
l: t,
k: "процедура функция",
c: [e.inherit(e.TM, {
b: t
}), {
cN: "tail",
eW: !0,
c: [{
cN: "params",
b: "\\(",
e: "\\)",
l: t,
k: "знач",
c: [o, a]
}, {
cN: "export",
b: "экспорт",
eW: !0,
l: t,
k: "экспорт",
c: [e.CLCM]
}]
},
e.CLCM]
}, {
cN: "preprocessor",
b: "#",
e: "$"
}, {
cN: "date",
b: "'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"
}]
}
}), hljs.registerLanguage("python", function(e) {
var t = {
cN: "prompt",
b: /^(>>>|\.\.\.) /
}, n = {
cN: "string",
c: [e.BE],
v: [{
b: /(u|b)?r?'''/,
e: /'''/,
c: [t],
r: 10
}, {
b: /(u|b)?r?"""/,
e: /"""/,
c: [t],
r: 10
}, {
b: /(u|r|ur)'/,
e: /'/,
r: 10
}, {
b: /(u|r|ur)"/,
e: /"/,
r: 10
}, {
b: /(b|br)'/,
e: /'/
}, {
b: /(b|br)"/,
e: /"/
},
e.ASM, e.QSM]
}, i = {
cN: "number",
r: 0,
v: [{
b: e.BNR + "[lLjJ]?"
}, {
b: "\\b(0o[0-7]+)[lLjJ]?"
}, {
b: e.CNR + "[lLjJ]?"
}]
}, r = {
cN: "params",
b: /\(/,
e: /\)/,
c: ["self", t, i, n]
}, o = {
e: /:/,
i: /[${=;\n]/,
c: [e.UTM, r]
};
return {
k: {
keyword: "and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",
built_in: "Ellipsis NotImplemented"
},
i: /(<\/|->|\?)/,
c: [t, i, n, e.HCM, e.inherit(o, {
cN: "function",
bK: "def",
r: 10
}), e.inherit(o, {
cN: "class",
bK: "class"
}), {
cN: "decorator",
b: /@/,
e: /$/
}, {
b: /\b(print|exec)\(/
}]
}
}), hljs.registerLanguage("smalltalk", function(e) {
var t = "[a-z][a-zA-Z0-9_]*",
n = {
cN: "char",
b: "\\$.{1}"
}, i = {
cN: "symbol",
b: "#" + e.UIR
};
return {
k: "self super nil true false thisContext",
c: [{
cN: "comment",
b: '"',
e: '"'
},
e.ASM, {
cN: "class",
b: "\\b[A-Z][A-Za-z0-9_]*",
r: 0
}, {
cN: "method",
b: t + ":",
r: 0
},
e.CNM, i, n, {
cN: "localvars",
b: "\\|[ ]*" + t + "([ ]+" + t + ")*[ ]*\\|",
rB: !0,
e: /\|/,
i: /\S/,
c: [{
b: "(\\|[ ]*)?" + t
}]
}, {
cN: "array",
b: "\\#\\(",
e: "\\)",
c: [e.ASM, n, e.CNM, i]
}]
}
}), hljs.registerLanguage("tex", function() {
var e = {
cN: "command",
b: "\\\\[a-zA-Zа-яА-я]+[\\*]?"
}, t = {
cN: "command",
b: "\\\\[^a-zA-Zа-яА-я0-9]"
}, n = {
cN: "special",
b: "[{}\\[\\]\\~]",
r: 0
};
return {
c: [{
b: "\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",
rB: !0,
c: [e, t, {
cN: "number",
b: " *=",
e: "-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",
eB: !0
}],
r: 10
},
e, t, n, {
cN: "formula",
b: "\\$\\$",
e: "\\$\\$",
c: [e, t, n],
r: 0
}, {
cN: "formula",
b: "\\$",
e: "\\$",
c: [e, t, n],
r: 0
}, {
cN: "comment",
b: "%",
e: "$",
r: 0
}]
}
}), hljs.registerLanguage("actionscript", function(e) {
var t = "[a-zA-Z_$][a-zA-Z0-9_$]*",
n = "([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)",
i = {
cN: "rest_arg",
b: "[.]{3}",
e: t,
r: 10
};
return {
k: {
keyword: "as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",
literal: "true false null undefined"
},
c: [e.ASM, e.QSM, e.CLCM, e.CBLCLM, e.CNM, {
cN: "package",
bK: "package",
e: "{",
c: [e.TM]
}, {
cN: "class",
bK: "class interface",
e: "{",
c: [{
bK: "extends implements"
},
e.TM]
}, {
cN: "preprocessor",
bK: "import include",
e: ";"
}, {
cN: "function",
bK: "function",
e: "[{;]",
i: "\\S",
c: [e.TM, {
cN: "params",
b: "\\(",
e: "\\)",
c: [e.ASM, e.QSM, e.CLCM, e.CBLCLM, i]
}, {
cN: "type",
b: ":",
e: n,
r: 10
}]
}]
}
}), hljs.registerLanguage("sql", function(e) {
return {
cI: !0,
i: /[<>]/,
c: [{
cN: "operator",
b: "\\b(begin|end|start|commit|rollback|savepoint|lock|alter|create|drop|rename|call|delete|do|handler|insert|load|replace|select|truncate|update|set|show|pragma|grant|merge)\\b(?!:)",
e: ";",
eW: !0,
k: {
keyword: "all partial global month current_timestamp using go revoke smallint indicator end-exec disconnect zone with character assertion to add current_user usage input local alter match collate real then rollback get read timestamp session_user not integer bit unique day minute desc insert execute like ilike|2 level decimal drop continue isolation found where constraints domain right national some module transaction relative second connect escape close system_user for deferred section cast current sqlstate allocate intersect deallocate numeric public preserve full goto initially asc no key output collation group by union session both last language constraint column of space foreign deferrable prior connection unknown action commit view or first into float year primary cascaded except restrict set references names table outer open select size are rows from prepare distinct leading create only next inner authorization schema corresponding option declare precision immediate else timezone_minute external varying translation true case exception join hour default double scroll value cursor descriptor values dec fetch procedure delete and false int is describe char as at in varchar null trailing any absolute current_time end grant privileges when cross check write current_date pad begin temporary exec time update catalog user sql date on identity timezone_hour natural whenever interval work order cascade diagnostics nchar having left call do handler load replace truncate start lock show pragma exists number trigger if before after each row merge matched database",
aggregate: "count sum min max avg"
},
c: [{
cN: "string",
b: "'",
e: "'",
c: [e.BE, {
b: "''"
}]
}, {
cN: "string",
b: '"',
e: '"',
c: [e.BE, {
b: '""'
}]
}, {
cN: "string",
b: "`",
e: "`",
c: [e.BE]
},
e.CNM]
},
e.CBLCLM, {
cN: "comment",
b: "--",
e: "$"
}]
}
}), hljs.registerLanguage("handlebars", function() {
var e = "each in with if else unless bindattr action collection debugger log outlet template unbound view yield";
return {
cI: !0,
sL: "xml",
subLanguageMode: "continuous",
c: [{
cN: "expression",
b: "{{",
e: "}}",
c: [{
cN: "begin-block",
b: "#[a-zA-Z- .]+",
k: e
}, {
cN: "string",
b: '"',
e: '"'
}, {
cN: "end-block",
b: "\\/[a-zA-Z- .]+",
k: e
}, {
cN: "variable",
b: "[a-zA-Z-.]+",
k: e
}]
}]
}
}), hljs.registerLanguage("vala", function(e) {
return {
k: {
keyword: "char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",
built_in: "DBus GLib CCode Gee Object",
literal: "false true null"
},
c: [{
cN: "class",
bK: "class interface delegate namespace",
e: "{",
i: "[^,:\\n\\s\\.]",
c: [e.UTM]
},
e.CLCM, e.CBLCLM, {
cN: "string",
b: '"""',
e: '"""',
r: 5
},
e.ASM, e.QSM, e.CNM, {
cN: "preprocessor",
b: "^#",
e: "$",
r: 2
}, {
cN: "constant",
b: " [A-Z_]+ ",
r: 0
}]
}
}), hljs.registerLanguage("ini", function(e) {
return {
cI: !0,
i: /\S/,
c: [{
cN: "comment",
b: ";",
e: "$"
}, {
cN: "title",
b: "^\\[",
e: "\\]"
}, {
cN: "setting",
b: "^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",
e: "$",
c: [{
cN: "value",
eW: !0,
k: "on off true false yes no",
c: [e.QSM, e.NM],
r: 0
}]
}]
}
}), hljs.registerLanguage("livecodeserver", function(e) {
var t = {
cN: "variable",
b: "\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",
r: 0
}, n = {
cN: "comment",
e: "$",
v: [e.CBLCLM, e.HCM, {
b: "--"
}, {
b: "[^:]//"
}]
}, i = e.inherit(e.TM, {
v: [{
b: "\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"
}, {
b: "\\b_[a-z0-9\\-]+"
}]
}),
r = e.inherit(e.TM, {
b: "\\b([A-Za-z0-9_\\-]+)\\b"
});
return {
cI: !1,
k: {
keyword: "after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if",
constant: "SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",
operator: "div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",
built_in: "put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg base64Decode base64Encode baseConvert binaryDecode binaryEncode byteToNum cachedURL cachedURLs charToNum cipherNames commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames global globals hasMemory hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames num number numToByte numToChar offset open openfiles openProcesses openProcessIDs openSockets paramCount param params peerAddress pendingMessages platform processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_Execute revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sec secs seconds sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName tick ticks time to toLower toUpper transpose trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus value variableNames version waitDepth weekdayNames wordOffset add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket process post seek rel relative read from process rename replace require resetAll revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split subtract union unload wait write"
},
c: [t, {
cN: "keyword",
b: "\\bend\\sif\\b"
}, {
cN: "function",
bK: "function",
e: "$",
c: [t, r, e.ASM, e.QSM, e.BNM, e.CNM, i]
}, {
cN: "function",
bK: "end",
e: "$",
c: [r, i]
}, {
cN: "command",
bK: "command on",
e: "$",
c: [t, r, e.ASM, e.QSM, e.BNM, e.CNM, i]
}, {
cN: "command",
bK: "end",
e: "$",
c: [r, i]
}, {
cN: "preprocessor",
b: "<\\?rev|<\\?lc|<\\?livecode",
r: 10
}, {
cN: "preprocessor",
b: "<\\?"
}, {
cN: "preprocessor",
b: "\\?>"
},
n, e.ASM, e.QSM, e.BNM, e.CNM, i],
i: ";$|^\\[|^="
}
}), hljs.registerLanguage("d", function(e) {
var t = {
keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
built_in: "bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
literal: "false null true"
}, n = "(0|[1-9][\\d_]*)",
i = "(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",
r = "0[bB][01_]+",
o = "([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",
a = "0[xX]" + o,
s = "([eE][+-]?" + i + ")",
l = "(" + i + "(\\.\\d*|" + s + ")|\\d+\\." + i + i + "|\\." + n + s + "?)",
c = "(0[xX](" + o + "\\." + o + "|\\.?" + o + ")[pP][+-]?" + i + ")",
u = "(" + n + "|" + r + "|" + a + ")",
d = "(" + c + "|" + l + ")",
p = "\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",
h = {
cN: "number",
b: "\\b" + u + "(L|u|U|Lu|LU|uL|UL)?",
r: 0
}, f = {
cN: "number",
b: "\\b(" + d + "([fF]|L|i|[fF]i|Li)?|" + u + "(i|[fF]i|Li))",
r: 0
}, m = {
cN: "string",
b: "'(" + p + "|.)",
e: "'",
i: "."
}, g = {
b: p,
r: 0
}, v = {
cN: "string",
b: '"',
c: [g],
e: '"[cwd]?'
}, b = {
cN: "string",
b: '[rq]"',
e: '"[cwd]?',
r: 5
}, y = {
cN: "string",
b: "`",
e: "`[cwd]?"
}, x = {
cN: "string",
b: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',
r: 10
}, w = {
cN: "string",
b: 'q"\\{',
e: '\\}"'
}, S = {
cN: "shebang",
b: "^#!",
e: "$",
r: 5
}, C = {
cN: "preprocessor",
b: "#(line)",
e: "$",
r: 5
}, _ = {
cN: "keyword",
b: "@[a-zA-Z_][a-zA-Z_\\d]*"
}, k = {
cN: "comment",
b: "\\/\\+",
c: ["self"],
e: "\\+\\/",
r: 10
};
return {
l: e.UIR,
k: t,
c: [e.CLCM, e.CBLCLM, k, x, v, b, y, w, f, h, m, S, C, _]
}
}), hljs.registerLanguage("vbnet", function(e) {
return {
cI: !0,
k: {
keyword: "addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",
built_in: "boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",
literal: "true false nothing"
},
i: "//|{|}|endif|gosub|variant|wend",
c: [e.inherit(e.QSM, {
c: [{
b: '""'
}]
}), {
cN: "comment",
b: "'",
e: "$",
rB: !0,
c: [{
cN: "xmlDocTag",
b: "'''|"
}, {
cN: "xmlDocTag",
b: "?",
e: ">"
}]
},
e.CNM, {
cN: "preprocessor",
b: "#",
e: "$",
k: "if else elseif end region externalsource"
}]
}
}), hljs.registerLanguage("axapta", function(e) {
return {
k: "false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",
c: [e.CLCM, e.CBLCLM, e.ASM, e.QSM, e.CNM, {
cN: "preprocessor",
b: "#",
e: "$"
}, {
cN: "class",
bK: "class interface",
e: "{",
i: ":",
c: [{
cN: "inheritance",
bK: "extends implements",
r: 10
},
e.UTM]
}]
}
}), hljs.registerLanguage("perl", function(e) {
var t = "getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",
n = {
cN: "subst",
b: "[$@]\\{",
e: "\\}",
k: t
}, i = {
b: "->{",
e: "}"
}, r = {
cN: "variable",
v: [{
b: /\$\d/
}, {
b: /[\$\%\@\*](\^\w\b|#\w+(\:\:\w+)*|{\w+}|\w+(\:\:\w*)*)/
}, {
b: /[\$\%\@\*][^\s\w{]/,
r: 0
}]
}, o = {
cN: "comment",
b: "^(__END__|__DATA__)",
e: "\\n$",
r: 5
}, a = [e.BE, n, r],
s = [r, e.HCM, o, {
cN: "comment",
b: "^\\=\\w",
e: "\\=cut",
eW: !0
},
i, {
cN: "string",
c: a,
v: [{
b: "q[qwxr]?\\s*\\(",
e: "\\)",
r: 5
}, {
b: "q[qwxr]?\\s*\\[",
e: "\\]",
r: 5
}, {
b: "q[qwxr]?\\s*\\{",
e: "\\}",
r: 5
}, {
b: "q[qwxr]?\\s*\\|",
e: "\\|",
r: 5
}, {
b: "q[qwxr]?\\s*\\<",
e: "\\>",
r: 5
}, {
b: "qw\\s+q",
e: "q",
r: 5
}, {
b: "'",
e: "'",
c: [e.BE]
}, {
b: '"',
e: '"'
}, {
b: "`",
e: "`",
c: [e.BE]
}, {
b: "{\\w+}",
c: [],
r: 0
}, {
b: "-?\\w+\\s*\\=\\>",
c: [],
r: 0
}]
}, {
cN: "number",
b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
r: 0
}, {
b: "(\\/\\/|" + e.RSR + "|\\b(split|return|print|reverse|grep)\\b)\\s*",
k: "split return print reverse grep",
r: 0,
c: [e.HCM, o, {
cN: "regexp",
b: "(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",
r: 10
}, {
cN: "regexp",
b: "(m|qr)?/",
e: "/[a-z]*",
c: [e.BE],
r: 0
}]
}, {
cN: "sub",
bK: "sub",
e: "(\\s*\\(.*?\\))?[;{]",
r: 5
}, {
cN: "operator",
b: "-\\w\\b",
r: 0
}];
return n.c = s, i.c = s, {
k: t,
c: s
}
}), hljs.registerLanguage("scala", function(e) {
var t = {
cN: "annotation",
b: "@[A-Za-z]+"
}, n = {
cN: "string",
b: 'u?r?"""',
e: '"""',
r: 10
};
return {
k: "type yield lazy override def with val var false true sealed abstract private trait object null if for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws",
c: [{
cN: "javadoc",
b: "/\\*\\*",
e: "\\*/",
c: [{
cN: "javadoctag",
b: "@[A-Za-z]+"
}],
r: 10
},
e.CLCM, e.CBLCLM, n, e.ASM, e.QSM, {
cN: "class",
b: "((case )?class |object |trait )",
e: "({|$)",
i: ":",
k: "case class trait object",
c: [{
bK: "extends with",
r: 10
},
e.UTM, {
cN: "params",
b: "\\(",
e: "\\)",
c: [e.ASM, e.QSM, n, t]
}]
},
e.CNM, t]
}
}), hljs.registerLanguage("cmake", function(e) {
return {
cI: !0,
k: {
keyword: "add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or",
operator: "equal less greater strless strgreater strequal matches"
},
c: [{
cN: "envvar",
b: "\\${",
e: "}"
},
e.HCM, e.QSM, e.NM]
}
}), hljs.registerLanguage("ocaml", function(e) {
return {
k: {
keyword: "and as assert asr begin class constraint do done downto else end exception external false for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new object of open or private rec ref sig struct then to true try type val virtual when while with parser value",
built_in: "bool char float int list unit array exn option int32 int64 nativeint format4 format6 lazy_t in_channel out_channel string"
},
i: /\/\//,
c: [{
cN: "string",
b: '"""',
e: '"""'
}, {
cN: "comment",
b: "\\(\\*",
e: "\\*\\)",
c: ["self"]
}, {
cN: "class",
bK: "type",
e: "\\(|=|$",
c: [e.UTM]
}, {
cN: "annotation",
b: "\\[<",
e: ">\\]"
},
e.CBLCLM, e.inherit(e.ASM, {
i: null
}), e.inherit(e.QSM, {
i: null
}), e.CNM]
}
}), hljs.registerLanguage("autohotkey", function(e) {
var t = {
cN: "escape",
b: "`[\\s\\S]"
}, n = {
cN: "comment",
b: ";",
e: "$",
r: 0
}, i = [{
cN: "built_in",
b: "A_[a-zA-Z0-9]+"
}, {
cN: "built_in",
bK: "ComSpec Clipboard ClipboardAll ErrorLevel"
}];
return {
cI: !0,
k: {
keyword: "Break Continue Else Gosub If Loop Return While",
literal: "A true false NOT AND OR"
},
c: i.concat([t, e.inherit(e.QSM, {
c: [t]
}), n, {
cN: "number",
b: e.NR,
r: 0
}, {
cN: "var_expand",
b: "%",
e: "%",
i: "\\n",
c: [t]
}, {
cN: "label",
c: [t],
v: [{
b: '^[^\\n";]+::(?!=)'
}, {
b: '^[^\\n";]+:(?!=)',
r: 0
}]
}, {
b: ",\\s*,",
r: 10
}])
}
}), hljs.registerLanguage("objectivec", function(e) {
var t = {
keyword: "int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign self synchronized id nonatomic super unichar IBOutlet IBAction strong weak @private @protected @public @try @property @end @throw @catch @finally @synthesize @dynamic @selector @optional @required",
literal: "false true FALSE TRUE nil YES NO NULL",
built_in: "NSString NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection UIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"
}, n = /[a-zA-Z@][a-zA-Z0-9_]*/,
i = "@interface @class @protocol @implementation";
return {
k: t,
l: n,
i: "",
c: [e.CLCM, e.CBLCLM, e.CNM, e.QSM, {
cN: "string",
b: "'",
e: "[^\\\\]'",
i: "[^\\\\][^']"
}, {
cN: "preprocessor",
b: "#import",
e: "$",
c: [{
cN: "title",
b: '"',
e: '"'
}, {
cN: "title",
b: "<",
e: ">"
}]
}, {
cN: "preprocessor",
b: "#",
e: "$"
}, {
cN: "class",
b: "(" + i.split(" ").join("|") + ")\\b",
e: "({|$)",
k: i,
l: n,
c: [e.UTM]
}, {
cN: "variable",
b: "\\." + e.UIR,
r: 0
}]
}
}), hljs.registerLanguage("avrasm", function(e) {
return {
cI: !0,
k: {
keyword: "adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",
built_in: "r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf"
},
c: [e.CBLCLM, {
cN: "comment",
b: ";",
e: "$",
r: 0
},
e.CNM, e.BNM, {
cN: "number",
b: "\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"
},
e.QSM, {
cN: "string",
b: "'",
e: "[^\\\\]'",
i: "[^\\\\][^']"
}, {
cN: "label",
b: "^[A-Za-z0-9_.$]+:"
}, {
cN: "preprocessor",
b: "#",
e: "$"
}, {
cN: "preprocessor",
b: "\\.[a-zA-Z]+"
}, {
cN: "localvars",
b: "@[0-9]+"
}]
}
}), hljs.registerLanguage("vhdl", function(e) {
return {
cI: !0,
k: {
keyword: "abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",
typename: "boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"
},
i: "{",
c: [e.CBLCLM, {
cN: "comment",
b: "--",
e: "$"
},
e.QSM, e.CNM, {
cN: "literal",
b: "'(U|X|0|1|Z|W|L|H|-)'",
c: [e.BE]
}, {
cN: "attribute",
b: "'[A-Za-z](_?[A-Za-z0-9])*",
c: [e.BE]
}]
}
}), hljs.registerLanguage("coffeescript", function(e) {
var t = {
keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",
literal: "true false null undefined yes no on off",
reserved: "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",
built_in: "npm require console print module exports global window document"
}, n = "[A-Za-z$_][0-9A-Za-z$_]*",
i = e.inherit(e.TM, {
b: n
}),
r = {
cN: "subst",
b: /#\{/,
e: /}/,
k: t
}, o = [e.BNM, e.inherit(e.CNM, {
starts: {
e: "(\\s*/)?",
r: 0
}
}), {
cN: "string",
v: [{
b: /'''/,
e: /'''/,
c: [e.BE]
}, {
b: /'/,
e: /'/,
c: [e.BE]
}, {
b: /"""/,
e: /"""/,
c: [e.BE, r]
}, {
b: /"/,
e: /"/,
c: [e.BE, r]
}]
}, {
cN: "regexp",
v: [{
b: "///",
e: "///",
c: [r, e.HCM]
}, {
b: "//[gim]*",
r: 0
}, {
b: "/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)"
}]
}, {
cN: "property",
b: "@" + n
}, {
b: "`",
e: "`",
eB: !0,
eE: !0,
sL: "javascript"
}];
return r.c = o, {
k: t,
c: o.concat([{
cN: "comment",
b: "###",
e: "###"
},
e.HCM, {
cN: "function",
b: "(" + n + "\\s*=\\s*)?(\\(.*\\))?\\s*\\B[-=]>",
e: "[-=]>",
rB: !0,
c: [i, {
cN: "params",
b: "\\(",
rB: !0,
c: [{
b: /\(/,
e: /\)/,
k: t,
c: ["self"].concat(o)
}]
}]
}, {
cN: "class",
bK: "class",
e: "$",
i: /[:="\[\]]/,
c: [{
bK: "extends",
eW: !0,
i: /[:="\[\]]/,
c: [i]
},
i]
}, {
cN: "attribute",
b: n + ":",
e: ":",
rB: !0,
eE: !0,
r: 0
}])
}
}), hljs.registerLanguage("mizar", function() {
return {
k: ["environ vocabularies notations constructors definitions registrations theorems schemes requirements", "begin end definition registration cluster existence pred func defpred deffunc theorem proof", "let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from", "be being by means equals implies iff redefine define now not or attr is mode suppose per cases set", "thesis contradiction scheme reserve struct", "correctness compatibility coherence symmetry assymetry reflexivity irreflexivity", "connectedness uniqueness commutativity idempotence involutiveness projectivity"].join(" "),
c: [{
cN: "comment",
b: "::",
e: "$"
}]
}
}), hljs.registerLanguage("nginx", function(e) {
var t = {
cN: "variable",
v: [{
b: /\$\d+/
}, {
b: /\$\{/,
e: /}/
}, {
b: "[\\$\\@]" + e.UIR
}]
}, n = {
eW: !0,
l: "[a-z/_]+",
k: {
built_in: "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"
},
r: 0,
i: "=>",
c: [e.HCM, {
cN: "string",
c: [e.BE, t],
v: [{
b: /"/,
e: /"/
}, {
b: /'/,
e: /'/
}]
}, {
cN: "url",
b: "([a-z]+):/",
e: "\\s",
eW: !0,
eE: !0
}, {
cN: "regexp",
c: [e.BE, t],
v: [{
b: "\\s\\^",
e: "\\s|{|;",
rE: !0
}, {
b: "~\\*?\\s+",
e: "\\s|{|;",
rE: !0
}, {
b: "\\*(\\.[a-z\\-]+)+"
}, {
b: "([a-z\\-]+\\.)+\\*"
}]
}, {
cN: "number",
b: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
}, {
cN: "number",
b: "\\b\\d+[kKmMgGdshdwy]*\\b",
r: 0
},
t]
};
return {
c: [e.HCM, {
b: e.UIR + "\\s",
e: ";|{",
rB: !0,
c: [e.inherit(e.UTM, {
starts: n
})],
r: 0
}],
i: "[^\\s\\}]"
}
}), hljs.registerLanguage("erlang-repl", function(e) {
return {
k: {
special_functions: "spawn spawn_link self",
reserved: "after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
},
c: [{
cN: "prompt",
b: "^[0-9]+> ",
r: 10
}, {
cN: "comment",
b: "%",
e: "$"
}, {
cN: "number",
b: "\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",
r: 0
},
e.ASM, e.QSM, {
cN: "constant",
b: "\\?(::)?([A-Z]\\w*(::)?)+"
}, {
cN: "arrow",
b: "->"
}, {
cN: "ok",
b: "ok"
}, {
cN: "exclamation_mark",
b: "!"
}, {
cN: "function_or_atom",
b: "(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",
r: 0
}, {
cN: "variable",
b: "[A-Z][a-zA-Z0-9_']*",
r: 0
}]
}
}), hljs.registerLanguage("r", function(e) {
var t = "([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";
return {
c: [e.HCM, {
b: t,
l: t,
k: {
keyword: "function if in break next repeat else for return switch while try tryCatch|10 stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...|10",
literal: "NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"
},
r: 0
}, {
cN: "number",
b: "0[xX][0-9a-fA-F]+[Li]?\\b",
r: 0
}, {
cN: "number",
b: "\\d+(?:[eE][+\\-]?\\d*)?L\\b",
r: 0
}, {
cN: "number",
b: "\\d+\\.(?!\\d)(?:i\\b)?",
r: 0
}, {
cN: "number",
b: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",
r: 0
}, {
cN: "number",
b: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",
r: 0
}, {
b: "`",
e: "`",
r: 0
}, {
cN: "string",
c: [e.BE],
v: [{
b: '"',
e: '"'
}, {
b: "'",
e: "'"
}]
}]
}
}), hljs.registerLanguage("json", function(e) {
var t = {
literal: "true false null"
}, n = [e.QSM, e.CNM],
i = {
cN: "value",
e: ",",
eW: !0,
eE: !0,
c: n,
k: t
}, r = {
b: "{",
e: "}",
c: [{
cN: "attribute",
b: '\\s*"',
e: '"\\s*:\\s*',
eB: !0,
eE: !0,
c: [e.BE],
i: "\\n",
starts: i
}],
i: "\\S"
}, o = {
b: "\\[",
e: "\\]",
c: [e.inherit(i, {
cN: null
})],
i: "\\S"
};
return n.splice(n.length, 0, r, o), {
c: n,
k: t,
i: "\\S"
}
}), hljs.registerLanguage("django", function() {
var e = {
cN: "filter",
b: /\|[A-Za-z]+\:?/,
k: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone",
c: [{
cN: "argument",
b: /"/,
e: /"/
}, {
cN: "argument",
b: /'/,
e: /'/
}]
};
return {
cI: !0,
sL: "xml",
subLanguageMode: "continuous",
c: [{
cN: "template_comment",
b: /\{%\s*comment\s*%}/,
e: /\{%\s*endcomment\s*%}/
}, {
cN: "template_comment",
b: /\{#/,
e: /#}/
}, {
cN: "template_tag",
b: /\{%/,
e: /%}/,
k: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor in ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup by as ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim",
c: [e]
}, {
cN: "variable",
b: /\{\{/,
e: /}}/,
c: [e]
}]
}
}), hljs.registerLanguage("delphi", function(e) {
var t = "exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure",
n = {
cN: "comment",
v: [{
b: /\{/,
e: /\}/,
r: 0
}, {
b: /\(\*/,
e: /\*\)/,
r: 10
}]
}, i = {
cN: "string",
b: /'/,
e: /'/,
c: [{
b: /''/
}]
}, r = {
cN: "string",
b: /(#\d+)+/
}, o = {
b: e.IR + "\\s*=\\s*class\\s*\\(",
rB: !0,
c: [e.TM]
}, a = {
cN: "function",
bK: "function constructor destructor procedure",
e: /[:;]/,
k: "function constructor|10 destructor|10 procedure|10",
c: [e.TM, {
cN: "params",
b: /\(/,
e: /\)/,
k: t,
c: [i, r]
},
n]
};
return {
cI: !0,
k: t,
i: /("|\$[G-Zg-z]|\/\*|<\/)/,
c: [n, e.CLCM, i, r, e.NM, o, a]
}
}), hljs.registerLanguage("vbscript", function(e) {
return {
cI: !0,
k: {
keyword: "call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",
built_in: "lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",
literal: "true false null nothing empty"
},
i: "//",
c: [e.inherit(e.QSM, {
c: [{
b: '""'
}]
}), {
cN: "comment",
b: /'/,
e: /$/,
r: 0
},
e.CNM]
}
}), hljs.registerLanguage("oxygene", function(e) {
var t = "abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",
n = {
cN: "comment",
b: "{",
e: "}",
r: 0
}, i = {
cN: "comment",
b: "\\(\\*",
e: "\\*\\)",
r: 10
}, r = {
cN: "string",
b: "'",
e: "'",
c: [{
b: "''"
}]
}, o = {
cN: "string",
b: "(#\\d+)+"
}, a = {
cN: "function",
bK: "function constructor destructor procedure method",
e: "[:;]",
k: "function constructor|10 destructor|10 procedure|10 method|10",
c: [e.TM, {
cN: "params",
b: "\\(",
e: "\\)",
k: t,
c: [r, o]
},
n, i]
};
return {
cI: !0,
k: t,
i: '("|\\$[G-Zg-z]|\\/\\*|)',
c: [n, i, e.CLCM, r, o, e.NM, a, {
cN: "class",
b: "=\\bclass\\b",
e: "end;",
k: t,
c: [r, o, n, i, e.CLCM, a]
}]
}
}), hljs.registerLanguage("mel", function(e) {
return {
k: "int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",
i: "",
c: [e.CNM, e.ASM, e.QSM, {
cN: "string",
b: "`",
e: "`",
c: [e.BE]
}, {
cN: "variable",
v: [{
b: "\\$\\d"
}, {
b: "[\\$\\%\\@](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)"
}, {
b: "\\*(\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)",
r: 0
}]
},
e.CLCM, e.CBLCLM]
}
}), hljs.registerLanguage("dos", function() {
return {
cI: !0,
k: {
flow: "if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",
keyword: "shift cd dir echo setlocal endlocal set pause copy",
stream: "prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux",
winutils: "ping net ipconfig taskkill xcopy ren del"
},
c: [{
cN: "envvar",
b: "%%[^ ]"
}, {
cN: "envvar",
b: "%[^ ]+?%"
}, {
cN: "envvar",
b: "![^ ]+?!"
}, {
cN: "number",
b: "\\b\\d+",
r: 0
}, {
cN: "comment",
b: "@?rem",
e: "$"
}]
}
}), hljs.registerLanguage("apache", function(e) {
var t = {
cN: "number",
b: "[\\$%]\\d+"
};
return {
cI: !0,
c: [e.HCM, {
cN: "tag",
b: "?",
e: ">"
}, {
cN: "keyword",
b: /\w+/,
r: 0,
k: {
common: "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"
},
starts: {
e: /$/,
r: 0,
k: {
literal: "on off all"
},
c: [{
cN: "sqbracket",
b: "\\s\\[",
e: "\\]$"
}, {
cN: "cbracket",
b: "[\\$%]\\{",
e: "\\}",
c: ["self", t]
},
t, e.QSM]
}
}],
i: /\S/
}
}), hljs.registerLanguage("scss", function(e) {
{
var t = "[a-zA-Z-][a-zA-Z0-9_-]*",
n = {
cN: "function",
b: t + "\\(",
e: "\\)",
c: ["self", e.NM, e.ASM, e.QSM]
}, i = {
cN: "hexcolor",
b: "#[0-9A-Fa-f]+"
};
({
cN: "attribute",
b: "[A-Z\\_\\.\\-]+",
e: ":",
eE: !0,
i: "[^\\s]",
starts: {
cN: "value",
eW: !0,
eE: !0,
c: [n, i, e.NM, e.QSM, e.ASM, e.CBLCLM, {
cN: "important",
b: "!important"
}]
}
})
}
return {
cI: !0,
i: "[=/|']",
c: [e.CLCM, e.CBLCLM, {
cN: "function",
b: t + "\\(",
e: "\\)",
c: ["self", e.NM, e.ASM, e.QSM]
}, {
cN: "id",
b: "\\#[A-Za-z0-9_-]+",
r: 0
}, {
cN: "class",
b: "\\.[A-Za-z0-9_-]+",
r: 0
}, {
cN: "attr_selector",
b: "\\[",
e: "\\]",
i: "$"
}, {
cN: "tag",
b: "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",
r: 0
}, {
cN: "pseudo",
b: ":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"
}, {
cN: "pseudo",
b: "::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"
}, {
cN: "attribute",
b: "\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",
i: "[^\\s]"
}, {
cN: "value",
b: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"
}, {
cN: "value",
b: ":",
e: ";",
c: [i, e.NM, e.QSM, e.ASM, {
cN: "important",
b: "!important"
}]
}, {
cN: "at_rule",
b: "@",
e: "[{;]",
k: "mixin include extend for if else each while charset import debug media page content font-face namespace warn",
c: [n, e.QSM, e.ASM, i, e.NM, {
cN: "preprocessor",
b: "\\s[A-Za-z0-9_.-]+",
r: 0
}]
}]
}
}), hljs.registerLanguage("applescript", function(e) {
var t = e.inherit(e.QSM, {
i: ""
}),
n = {
cN: "params",
b: "\\(",
e: "\\)",
c: ["self", e.CNM, t]
}, i = [{
cN: "comment",
b: "--",
e: "$"
}, {
cN: "comment",
b: "\\(\\*",
e: "\\*\\)",
c: ["self", {
b: "--",
e: "$"
}]
},
e.HCM];
return {
k: {
keyword: "about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the then third through thru timeout times to transaction try until where while whose with without",
constant: "AppleScript false linefeed return pi quote result space tab true",
type: "alias application boolean class constant date file integer list number real record string text",
command: "activate beep count delay launch log offset read round run say summarize write",
property: "character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"
},
c: [t, e.CNM, {
cN: "type",
b: "\\bPOSIX file\\b"
}, {
cN: "command",
b: "\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"
}, {
cN: "constant",
b: "\\b(text item delimiters|current application|missing value)\\b"
}, {
cN: "keyword",
b: "\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"
}, {
cN: "property",
b: "\\b(POSIX path|(date|time) string|quoted form)\\b"
}, {
cN: "function_start",
bK: "on",
i: "[${=;\\n]",
c: [e.UTM, n]
}].concat(i),
i: "//"
}
}), hljs.registerLanguage("lasso", function(e) {
var t = "[a-zA-Z_][a-zA-Z0-9_.]*",
n = "<\\?(lasso(script)?|=)",
i = "\\]|\\?>",
r = {
literal: "true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",
built_in: "array date decimal duration integer map pair string tag xml null bytes list queue set stack staticarray tie local var variable global data self inherited",
keyword: "error_code error_msg error_pop error_push error_reset cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"
}, o = {
cN: "comment",
b: "",
r: 0
}, a = {
cN: "preprocessor",
b: "\\[noprocess\\]",
starts: {
cN: "markup",
e: "\\[/noprocess\\]",
rE: !0,
c: [o]
}
}, s = {
cN: "preprocessor",
b: "\\[/noprocess|" + n
}, l = {
cN: "variable",
b: "'" + t + "'"
}, c = [e.CLCM, {
cN: "javadoc",
b: "/\\*\\*!",
e: "\\*/"
},
e.CBLCLM, e.inherit(e.CNM, {
b: e.CNR + "|-?(infinity|nan)\\b"
}), e.inherit(e.ASM, {
i: null
}), e.inherit(e.QSM, {
i: null
}), {
cN: "string",
b: "`",
e: "`"
}, {
cN: "variable",
v: [{
b: "[#$]" + t
}, {
b: "#",
e: "\\d+",
i: "\\W"
}]
}, {
cN: "tag",
b: "::\\s*",
e: t,
i: "\\W"
}, {
cN: "attribute",
b: "\\.\\.\\.|-" + e.UIR
}, {
cN: "subst",
v: [{
b: "->\\s*",
c: [l]
}, {
b: ":=|/(?!\\w)=?|[-+*%=<>&|!?\\\\]+",
r: 0
}]
}, {
cN: "built_in",
b: "\\.\\.?",
r: 0,
c: [l]
}, {
cN: "class",
bK: "define",
rE: !0,
e: "\\(|=>",
c: [e.inherit(e.TM, {
b: e.UIR + "(=(?!>))?"
})]
}];
return {
aliases: ["ls", "lassoscript"],
cI: !0,
l: t + "|&[lg]t;",
k: r,
c: [{
cN: "preprocessor",
b: i,
r: 0,
starts: {
cN: "markup",
e: "\\[|" + n,
rE: !0,
r: 0,
c: [o]
}
},
a, s, {
cN: "preprocessor",
b: "\\[no_square_brackets",
starts: {
e: "\\[/no_square_brackets\\]",
l: t + "|&[lg]t;",
k: r,
c: [{
cN: "preprocessor",
b: i,
r: 0,
starts: {
cN: "markup",
e: n,
rE: !0,
c: [o]
}
},
a, s].concat(c)
}
}, {
cN: "preprocessor",
b: "\\[",
r: 0
}, {
cN: "shebang",
b: "^#!.+lasso9\\b",
r: 10
}].concat(c)
}
}), hljs.registerLanguage("cpp", function(e) {
var t = {
keyword: "false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary",
built_in: "std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"
};
return {
aliases: ["c"],
k: t,
i: "",
c: [e.CLCM, e.CBLCLM, e.QSM, {
cN: "string",
b: "'\\\\?.",
e: "'",
i: "."
}, {
cN: "number",
b: "\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"
},
e.CNM, {
cN: "preprocessor",
b: "#",
e: "$",
c: [{
b: "include\\s*<",
e: ">",
i: "\\n"
},
e.CLCM]
}, {
cN: "stl_container",
b: "\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
e: ">",
k: t,
r: 10,
c: ["self"]
}]
}
}), hljs.registerLanguage("matlab", function(e) {
var t = [e.CNM, {
cN: "string",
b: "'",
e: "'",
c: [e.BE, {
b: "''"
}]
}];
return {
k: {
keyword: "break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",
built_in: "sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"
},
i: '(//|"|#|/\\*|\\s+/\\w+)',
c: [{
cN: "function",
bK: "function",
e: "$",
c: [e.UTM, {
cN: "params",
b: "\\(",
e: "\\)"
}, {
cN: "params",
b: "\\[",
e: "\\]"
}]
}, {
cN: "transposed_variable",
b: "[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",
e: "",
r: 0
}, {
cN: "matrix",
b: "\\[",
e: "\\]'*[\\.']*",
c: t,
r: 0
}, {
cN: "cell",
b: "\\{",
e: "\\}'*[\\.']*",
c: t,
i: /:/
}, {
cN: "comment",
b: "\\%",
e: "$"
}].concat(t)
}
}), hljs.registerLanguage("scilab", function(e) {
var t = [e.CNM, {
cN: "string",
b: "'|\"",
e: "'|\"",
c: [e.BE, {
b: "''"
}]
}];
return {
k: {
keyword: "abort break case clear catch continue do elseif else endfunction end for functionglobal if pause return resume select try then while%f %F %t %T %pi %eps %inf %nan %e %i %z %s",
built_in: "abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp errorexec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isemptyisinfisnan isvector lasterror length load linspace list listfiles log10 log2 logmax min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand realround sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tantype typename warning zeros matrix"
},
i: '("|#|/\\*|\\s+/\\w+)',
c: [{
cN: "function",
bK: "function endfunction",
e: "$",
k: "function endfunction|10",
c: [e.UTM, {
cN: "params",
b: "\\(",
e: "\\)"
}]
}, {
cN: "transposed_variable",
b: "[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",
e: "",
r: 0
}, {
cN: "matrix",
b: "\\[",
e: "\\]'*[\\.']*",
r: 0,
c: t
}, {
cN: "comment",
b: "//",
e: "$"
}].concat(t)
}
}), hljs.registerLanguage("makefile", function(e) {
var t = {
cN: "variable",
b: /\$\(/,
e: /\)/,
c: [e.BE]
};
return {
c: [e.HCM, {
b: /^\w+\s*\W*=/,
rB: !0,
r: 0,
starts: {
cN: "constant",
e: /\s*\W*=/,
eE: !0,
starts: {
e: /$/,
r: 0,
c: [t]
}
}
}, {
cN: "title",
b: /^[\w]+:\s*$/
}, {
cN: "phony",
b: /^\.PHONY:/,
e: /$/,
k: ".PHONY",
l: /[\.\w]+/
}, {
b: /^\t+/,
e: /$/,
c: [e.QSM, t]
}]
}
}), hljs.registerLanguage("asciidoc", function() {
return {
c: [{
cN: "comment",
b: "^/{4,}\\n",
e: "\\n/{4,}$",
r: 10
}, {
cN: "comment",
b: "^//",
e: "$",
r: 0
}, {
cN: "title",
b: "^\\.\\w.*$"
}, {
b: "^[=\\*]{4,}\\n",
e: "\\n^[=\\*]{4,}$",
r: 10
}, {
cN: "header",
b: "^(={1,5}) .+?( \\1)?$",
r: 10
}, {
cN: "header",
b: "^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$",
r: 10
}, {
cN: "attribute",
b: "^:.+?:",
e: "\\s",
eE: !0,
r: 10
}, {
cN: "attribute",
b: "^\\[.+?\\]$",
r: 0
}, {
cN: "blockquote",
b: "^_{4,}\\n",
e: "\\n_{4,}$",
r: 10
}, {
cN: "code",
b: "^[\\-\\.]{4,}\\n",
e: "\\n[\\-\\.]{4,}$",
r: 10
}, {
b: "^\\+{4,}\\n",
e: "\\n\\+{4,}$",
c: [{
b: "<",
e: ">",
sL: "xml",
r: 0
}],
r: 10
}, {
cN: "bullet",
b: "^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"
}, {
cN: "label",
b: "^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",
r: 10
}, {
cN: "strong",
b: "\\B\\*(?![\\*\\s])",
e: "(\\n{2}|\\*)",
c: [{
b: "\\\\*\\w",
r: 0
}]
}, {
cN: "emphasis",
b: "\\B'(?!['\\s])",
e: "(\\n{2}|')",
c: [{
b: "\\\\'\\w",
r: 0
}],
r: 0
}, {
cN: "emphasis",
b: "_(?![_\\s])",
e: "(\\n{2}|_)",
r: 0
}, {
cN: "smartquote",
b: "``.+?''",
r: 10
}, {
cN: "smartquote",
b: "`.+?'",
r: 10
}, {
cN: "code",
b: "(`.+?`|\\+.+?\\+)",
r: 0
}, {
cN: "code",
b: "^[ \\t]",
e: "$",
r: 0
}, {
cN: "horizontal_rule",
b: "^'{3,}[ \\t]*$",
r: 10
}, {
b: "(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",
rB: !0,
c: [{
b: "(link|image:?):",
r: 0
}, {
cN: "link_url",
b: "\\w",
e: "[^\\[]+",
r: 0
}, {
cN: "link_label",
b: "\\[",
e: "\\]",
eB: !0,
eE: !0,
r: 0
}],
r: 10
}]
}
}), hljs.registerLanguage("parser3", function(e) {
return {
sL: "xml",
r: 0,
c: [{
cN: "comment",
b: "^#",
e: "$"
}, {
cN: "comment",
b: "\\^rem{",
e: "}",
r: 10,
c: [{
b: "{",
e: "}",
c: ["self"]
}]
}, {
cN: "preprocessor",
b: "^@(?:BASE|USE|CLASS|OPTIONS)$",
r: 10
}, {
cN: "title",
b: "@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"
}, {
cN: "variable",
b: "\\$\\{?[\\w\\-\\.\\:]+\\}?"
}, {
cN: "keyword",
b: "\\^[\\w\\-\\.\\:]+"
}, {
cN: "number",
b: "\\^#[0-9a-fA-F]+"
},
e.CNM]
}
}), hljs.registerLanguage("clojure", function(e) {
var t = {
built_in: "def cond apply if-not if-let if not not= = < < > <= <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
}, n = "[a-zA-Z_0-9\\!\\.\\?\\-\\+\\*\\/\\<\\=\\>\\&\\#\\$';]+",
i = "[\\s:\\(\\{]+\\d+(\\.\\d+)?",
r = {
cN: "number",
b: i,
r: 0
}, o = e.inherit(e.QSM, {
i: null
}),
a = {
cN: "comment",
b: ";",
e: "$",
r: 0
}, s = {
cN: "collection",
b: "[\\[\\{]",
e: "[\\]\\}]"
}, l = {
cN: "comment",
b: "\\^" + n
}, c = {
cN: "comment",
b: "\\^\\{",
e: "\\}"
}, u = {
cN: "attribute",
b: "[:]" + n
}, d = {
cN: "list",
b: "\\(",
e: "\\)"
}, p = {
eW: !0,
k: {
literal: "true false nil"
},
r: 0
}, h = {
k: t,
l: n,
cN: "title",
b: n,
starts: p
};
return d.c = [{
cN: "comment",
b: "comment"
},
h, p], p.c = [d, o, l, c, a, u, s, r], s.c = [d, o, l, a, u, s, r], {
i: /\S/,
c: [a, d, {
cN: "prompt",
b: /^=> /,
starts: {
e: /\n\n|\Z/
}
}]
}
}), hljs.registerLanguage("go", function(e) {
var t = {
keyword: "break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer",
constant: "true false iota nil",
typename: "bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",
built_in: "append cap close complex copy imag len make new panic print println real recover delete"
};
return {
aliases: ["golang"],
k: t,
i: "",
c: [e.CLCM, e.CBLCLM, e.QSM, {
cN: "string",
b: "'",
e: "[^\\\\]'"
}, {
cN: "string",
b: "`",
e: "`"
}, {
cN: "number",
b: "[^a-zA-Z_0-9](\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s)(\\+|\\-)?\\d+)?",
r: 0
},
e.CNM]
}
}), define("highlightjs", function(e) {
return function() {
var t;
return t || e.hljs
}
}(this));
var Markdown;
if(Markdown = "object" == typeof exports && "function" == typeof require ? exports : {}, function() {
function e(e) {
return e
}
function t() {
return !1
}
function n() {}
function i() {}
n.prototype = {
chain: function(t, n) {
var i = this[t];
if(!i) throw new Error("unknown hook " + t);
this[t] = i === e ? n : function() {
var e = Array.prototype.slice.call(arguments, 0);
return e[0] = i.apply(null, e), n.apply(null, e)
}
},
set: function(e, t) {
if(!this[e]) throw new Error("unknown hook " + e);
this[e] = t
},
addNoop: function(t) {
this[t] = e
},
addFalse: function(e) {
this[e] = t
}
}, Markdown.HookCollection = n, i.prototype = {
set: function(e, t) {
this["s_" + e] = t
},
get: function(e) {
return this["s_" + e]
}
}, Markdown.Converter = function() {
function e(e) {
return e = e.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm, function(e, t, n, i, r, o) {
return t = t.toLowerCase(), P.set(t, C(n)), r ? i : (o && F.set(t, o.replace(/"/g, """)), "")
})
}
function t(e) {
return e = e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm, r), e = e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?<\/\2>[ \t]*(?=\n+)\n)/gm, r), e = e.replace(/\n[ ]{0,3}((<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g, r), e = e.replace(/\n\n[ ]{0,3}(-]|-[^>])(?:[^-]|-[^-])*)--)>[ \t]*(?=\n{2,}))/g, r), e = e.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g, r)
}
function r(e, t) {
var n = t;
return n = n.replace(/^\n+/, ""), n = n.replace(/\n+$/g, ""), n = "\n\n~K" + (O.push(n) - 1) + "K\n\n"
}
function o(e, n) {
e = R.preBlockGamut(e, j), e = h(e);
var i = " \n";
return e = e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm, i), e = e.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm, i), e = e.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm, i), e = f(e), e = g(e), e = w(e), e = R.postBlockGamut(e, j), e = t(e), e = S(e, n)
}
function a(e) {
return e = R.preSpanGamut(e), e = b(e), e = s(e), e = _(e), e = u(e), e = l(e), e = T(e), e = e.replace(/~P/g, "://"), e = C(e), e = M._DoItalicsAndBold ? M._DoItalicsAndBold(e) : x(e), e = e.replace(/ +\n/g, " \n"), e = R.postSpanGamut(e)
}
function s(e) {
var t = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|-]|-[^>])(?:[^-]|-[^-])*)--)>)/gi;
return e = e.replace(t, function(e) {
var t = e.replace(/(.)<\/?code>(?=.)/g, "$1`");
return t = L(t, "!" == e.charAt(1) ? "\\`*_/" : "\\`*_")
})
}
function l(e) {
return e = e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g, c), e = e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()((?:\([^)]*\)|[^()\s])*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, c), e = e.replace(/(\[([^\[\]]+)\])()()()()()/g, c)
}
function c(e, t, n, i, r, o, a, s) {
void 0 == s && (s = "");
var l = t,
c = n.replace(/:\/\//g, "~P"),
u = i.toLowerCase(),
p = r,
h = s;
if("" == p)
if("" == u && (u = c.toLowerCase().replace(/ ?\n/g, " ")), p = "#" + u, void 0 != P.get(u)) p = P.get(u), void 0 != F.get(u) && (h = F.get(u));
else {
if(!(l.search(/\(\s*\)$/m) > -1)) return l;
p = ""
}
p = D(p), p = L(p, "*_");
var f = '" + c + " "
}
function u(e) {
return e = e.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g, p), e = e.replace(/(!\[(.*?)\]\s?\([ \t]*()(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, p)
}
function d(e) {
return e.replace(/>/g, ">").replace(/"
}
function h(e) {
return e = e.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm, function(e, t) {
return "" + a(t) + " \n\n"
}), e = e.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, function(e, t) {
return "" + a(t) + " \n\n"
}), e = e.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, function(e, t, n) {
var i = t.length;
return "" + a(n) + " \n\n"
})
}
function f(e, t) {
e += "~0";
var n = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;
return B ? e = e.replace(n, function(e, n, i) {
var r = n,
o = i.search(/[*+-]/g) > -1 ? "ul" : "ol",
a = m(r, o, t);
return a = a.replace(/\s+$/, ""), a = "<" + o + ">" + a + "" + o + ">\n"
}) : (n = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g, e = e.replace(n, function(e, t, n, i) {
var r = t,
o = n,
a = i.search(/[*+-]/g) > -1 ? "ul" : "ol",
s = m(o, a);
return s = r + "<" + a + ">\n" + s + "" + a + ">\n"
})), e = e.replace(/~0/, "")
}
function m(e, t, n) {
B++, e = e.replace(/\n{2,}$/, "\n"), e += "~0";
var i = $[t],
r = new RegExp("(^[ \\t]*)(" + i + ")[ \\t]+([^\\r]+?(\\n+))(?=(~0|\\1(" + i + ")[ \\t]+))", "gm"),
s = !1;
return e = e.replace(r, function(e, t, i, r) {
var l = r,
c = /\n\n$/.test(l),
u = c || l.search(/\n{2,}/) > -1;
return u || s ? l = o(I(l), !0) : (l = f(I(l), !0), l = l.replace(/\n$/, ""), n || (l = a(l))), s = c, " " + l + " \n"
}), e = e.replace(/~0/g, ""), B--, e
}
function g(e) {
return e += "~0", e = e.replace(/(?:\n\n|^\n?)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g, function(e, t, n) {
var i = t,
r = n;
return i = y(I(i)), i = N(i), i = i.replace(/^\n+/g, ""), i = i.replace(/\n+$/g, ""), i = "
" + i + "\n
", "\n\n" + i + "\n\n" + r
}), e = e.replace(/~0/, "")
}
function v(e) {
return e = e.replace(/(^\n+|\n+$)/g, ""), "\n\n~K" + (O.push(e) - 1) + "K\n\n"
}
function b(e) {
return e = e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, function(e, t, n, i) {
var r = i;
return r = r.replace(/^([ \t]*)/g, ""), r = r.replace(/[ \t]*$/g, ""), r = y(r), r = r.replace(/:\/\//g, "~P"), t + "
" + r + "
"
})
}
function y(e) {
return e = e.replace(/&/g, "&"), e = e.replace(//g, ">"), e = L(e, "*_{}[]\\", !1)
}
function x(e) {
return e = e.replace(/([\W_]|^)(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\2([\W_]|$)/g, "$1
$3 $4"), e = e.replace(/([\W_]|^)(\*|_)(?=\S)([^\r\*_]*?\S)\2([\W_]|$)/g, "$1
$3 $4")
}
function w(e) {
return e = e.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm, function(e, t) {
var n = t;
return n = n.replace(/^[ \t]*>[ \t]?/gm, "~0"), n = n.replace(/~0/g, ""), n = n.replace(/^[ \t]+$/gm, ""), n = o(n), n = n.replace(/(^|\n)/g, "$1 "), n = n.replace(/(\s*
[^\r]+?<\/pre>)/gm, function(e, t) {
var n = t;
return n = n.replace(/^ /gm, "~0"), n = n.replace(/~0/g, "")
}), v("\n" + n + "\n ")
})
}
function S(e, t) {
e = e.replace(/^\n+/g, ""), e = e.replace(/\n+$/g, "");
for(var n = e.split(/\n{2,}/g), i = [], r = /~K(\d+)K/, o = n.length, s = 0; o > s; s++) {
var l = n[s];
r.test(l) ? i.push(l) : /\S/.test(l) && (l = a(l), l = l.replace(/^([ \t]*)/g, ""), l += "
", i.push(l))
}
if(!t) {
o = i.length;
for(var s = 0; o > s; s++)
for(var c = !0; c;) c = !1, i[s] = i[s].replace(/~K(\d+)K/g, function(e, t) {
return c = !0, O[t]
})
}
return i.join("\n\n")
}
function C(e) {
return e = e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&"), e = e.replace(/<(?![a-z\/?!]|~D)/gi, "<")
}
function _(e) {
return e = e.replace(/\\(\\)/g, A), e = e.replace(/\\([`*_{}\[\]()>#+-.!])/g, A)
}
function k(e, t, n, i) {
if(t) return e;
if(")" !== i.charAt(i.length - 1)) return "<" + n + i + ">";
for(var r = i.match(/[()]/g), o = 0, a = 0; a < r.length; a++) "(" === r[a] ? 0 >= o ? o = 1 : o++ : o--;
var s = "";
if(0 > o) {
var l = new RegExp("\\){1," + -o + "}$");
i = i.replace(l, function(e) {
return s = e, ""
})
}
if(s) {
var c = i.charAt(i.length - 1);
U.test(c) || (s = c + s, i = i.substr(0, i.length - 1))
}
return "<" + n + i + ">" + s
}
function T(e) {
e = e.replace(H, k);
var t = function(e, t) {
return '' + R.plainLinkText(t) + " "
};
return e = e.replace(/<((https?|ftp):[^'">\s]+)>/gi, t)
}
function E(e) {
return e = e.replace(/~E(\d+)E/g, function(e, t) {
var n = parseInt(t);
return String.fromCharCode(n)
})
}
function I(e) {
return e = e.replace(/^(\t|[ ]{1,4})/gm, "~0"), e = e.replace(/~0/g, "")
}
function N(e) {
if(!/\t/.test(e)) return e;
var t, n = [" ", " ", " ", " "],
i = 0;
return e.replace(/[\n\t]/g, function(e, r) {
return "\n" === e ? (i = r + 1, e) : (t = (r - i) % 4, i = r + 1, n[t])
})
}
function D(e) {
if(!e) return "";
e.length;
return e.replace(z, function(e) {
return "~D" == e ? "%24" : ":" == e ? ":" : "%" + e.charCodeAt(0).toString(16)
})
}
function L(e, t, n) {
var i = "([" + t.replace(/([\[\]\\])/g, "\\$1") + "])";
n && (i = "\\\\" + i);
var r = new RegExp(i, "g");
return e = e.replace(r, A)
}
function A(e, t) {
var n = t.charCodeAt(0);
return "~E" + n + "E"
}
var M = {};
this.setOptions = function(e) {
M = e
};
var R = this.hooks = new n;
R.addNoop("plainLinkText"), R.addNoop("preConversion"), R.addNoop("postNormalization"), R.addNoop("preBlockGamut"), R.addNoop("postBlockGamut"), R.addNoop("preSpanGamut"), R.addNoop("postSpanGamut"), R.addNoop("postConversion");
var P, F, O, B;
this.makeHtml = function(n) {
if(P) throw new Error("Recursive call to converter.makeHtml");
return P = new i, F = new i, O = [], B = 0, n = R.preConversion(n), n = n.replace(/~/g, "~T"), n = n.replace(/\$/g, "~D"), n = n.replace(/\r\n/g, "\n"), n = n.replace(/\r/g, "\n"), n = "\n\n" + n + "\n\n", n = N(n), n = n.replace(/^[ \t]+$/gm, ""), n = R.postNormalization(n), n = t(n), n = e(n), n = o(n), n = E(n), n = n.replace(/~D/g, "$$"), n = n.replace(/~T/g, "~"), n = R.postConversion(n), O = F = P = null, n
};
var j = function(e) {
return o(e)
}, $ = {
ol: "\\d+[.]",
ul: "[*+-]"
}, G = "[-A-Z0-9+&@#/%?=~_|[\\]()!:,.;]",
q = "[-A-Z0-9+&@#/%=~_|[\\])]",
H = new RegExp('(="|<)?\\b(https?|ftp)(://' + G + "*" + q + ")(?=$|\\W)", "gi"),
U = new RegExp(q, "i"),
z = /(?:["'*()[\]:]|~D)/g
}
}(), define("libs/Markdown.Converter", function() {}), function() {
function e(e) {
return e.replace(/^\s+|\s+$/g, "")
}
function t(e) {
return e.replace(/\s+$/g, "")
}
function n(e) {
return e.replace(new RegExp("^(\\t|[ ]{1,4})", "gm"), "")
}
function i(e, t) {
return -1 != e.indexOf(t)
}
function r(e, t) {
return e.replace(/<[^>]*>?/gi, function(e) {
return e.match(t) ? e : ""
})
}
function o(e, t) {
for(var n = {}, i = 0; i < e.length; i++) n[e[i]] = e[i];
for(i = 0; i < t.length; i++) n[t[i]] = t[i];
var r = [];
for(var o in n) n.hasOwnProperty(o) && r.push(n[o]);
return r
}
function a(e) {
return "" != e.charAt(0) && (e = "" + e), "" != e.charAt(e.length - 1) && (e += ""), e
}
function s(e) {
return "" == e.charAt(0) && (e = e.substr(1)), "" == e.charAt(e.length - 1) && (e = e.substr(0, e.length - 1)), e
}
function l(e, t) {
return r(c(e, t), m)
}
function c(e, t) {
var n = t.blockGamutHookCallback(e);
return n = p(n), n = n.replace(/~D/g, "$$").replace(/~T/g, "~"), n = t.previousPostConversion(n)
}
function u(e) {
return e.replace(/\\\|/g, "~I").replace(/\\:/g, "~i")
}
function d(e) {
return e.replace(/~I/g, "|").replace(/~i/g, ":")
}
function p(e) {
return e = e.replace(/~E(\d+)E/g, function(e, t) {
var n = parseInt(t);
return String.fromCharCode(n)
})
}
function h(e) {
return e.toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
}
function f(e, t) {
var n = t;
return n = n.replace(/&\#8220;/g, '"'), n = n.replace(/&\#8221;/g, '"'), n = n.replace(/&\#8216;/g, "'"), n = n.replace(/&\#8217;/g, "'"), n = n.replace(/&\#8212;/g, "---"), n = n.replace(/&\#8211;/g, "--"), n = n.replace(/&\#8230;/g, "...")
}
var m = new RegExp(["^(<\\/?(a|abbr|acronym|applet|area|b|basefont|", "bdo|big|button|cite|code|del|dfn|em|figcaption|", "font|i|iframe|img|input|ins|kbd|label|map|", "mark|meter|object|param|progress|q|ruby|rp|rt|s|", "samp|script|select|small|span|strike|strong|", "sub|sup|textarea|time|tt|u|var|wbr)[^>]*>|", "<(br)\\s?\\/?>)$"].join(""), "i");
Array.indexOf || (Array.prototype.indexOf = function(e) {
for(var t = 0; t < this.length; t++)
if(this[t] == e) return t;
return -1
}), Markdown.Extra = function() {
this.converter = null, this.hashBlocks = [], this.footnotes = {}, this.usedFootnotes = [], this.attributeBlocks = !1, this.googleCodePrettify = !1, this.highlightJs = !1, this.tableClass = "", this.tabWidth = 4
}, Markdown.Extra.init = function(e, t) {
var n = new Markdown.Extra,
r = [],
o = [],
a = [],
s = ["unHashExtraBlocks"];
return t = t || {}, t.extensions = t.extensions || ["all"], i(t.extensions, "all") && (t.extensions = ["tables", "fenced_code_gfm", "def_list", "attr_list", "footnotes", "smartypants", "strikethrough", "newlines"]), o.push("wrapHeaders"), i(t.extensions, "attr_list") && (r.push("hashFcbAttributeBlocks"), o.push("hashHeaderAttributeBlocks"), s.push("applyAttributeBlocks"), n.attributeBlocks = !0), i(t.extensions, "fenced_code_gfm") && (o.push("fencedCodeBlocks"), r.push("fencedCodeBlocks")), i(t.extensions, "tables") && o.push("tables"), i(t.extensions, "def_list") && o.push("definitionLists"), i(t.extensions, "footnotes") && (r.push("stripFootnoteDefinitions"), o.push("doFootnotes"), s.push("printFootnotes")), i(t.extensions, "smartypants") && s.push("runSmartyPants"), i(t.extensions, "strikethrough") && a.push("strikethrough"), i(t.extensions, "newlines") && a.push("newlines"), e.hooks.chain("postNormalization", function(e) {
return n.doTransform(r, e) + "\n"
}), e.hooks.chain("preBlockGamut", function(e, t) {
return n.blockGamutHookCallback = t, e = u(e), e = n.doTransform(o, e) + "\n", e = d(e)
}), e.hooks.chain("postSpanGamut", function(e) {
return n.doTransform(a, e)
}), n.previousPostConversion = e.hooks.postConversion, e.hooks.chain("postConversion", function(e) {
return e = n.doTransform(s, e), n.hashBlocks = [], n.footnotes = {}, n.usedFootnotes = [], e
}), "highlighter" in t && (n.googleCodePrettify = "prettify" === t.highlighter, n.highlightJs = "highlight" === t.highlighter), "table_class" in t && (n.tableClass = t.table_class), n.converter = e, n
}, Markdown.Extra.prototype.doTransform = function(e, t) {
for(var n = 0; n < e.length; n++) t = this[e[n]](t);
return t
}, Markdown.Extra.prototype.hashExtraBlock = function(e) {
return "\n~X" + (this.hashBlocks.push(e) - 1) + "X
\n"
}, Markdown.Extra.prototype.hashExtraInline = function(e) {
return "~X" + (this.hashBlocks.push(e) - 1) + "X"
}, Markdown.Extra.prototype.unHashExtraBlocks = function(e) {
function t() {
var i = !1;
e = e.replace(/(?:)?~X(\d+)X(?:<\/p>)?/g, function(e, t) {
i = !0;
var r = parseInt(t, 10);
return n.hashBlocks[r]
}), i === !0 && t()
}
var n = this;
return t(), e
}, Markdown.Extra.prototype.wrapHeaders = function(e) {
function t(e) {
return "\n" + e + "\n"
}
return e = e.replace(/^.+[ \t]*\n=+[ \t]*\n+/gm, t), e = e.replace(/^.+[ \t]*\n-+[ \t]*\n+/gm, t), e = e.replace(/^\#{1,6}[ \t]*.+?[ \t]*\#*\n+/gm, t)
};
var g = "\\{[ \\t]*((?:[#.][-_:a-zA-Z0-9]+[ \\t]*)+)\\}",
v = new RegExp("^(#{1,6}.*#{0,6})[ \\t]+" + g + "[ \\t]*(?:\\n|0x03)", "gm"),
b = new RegExp("^(.*)[ \\t]+" + g + "[ \\t]*\\n(?=[\\-|=]+\\s*(?:\\n|0x03))", "gm"),
y = new RegExp("^(```[ \\t]*[^{\\s]*)[ \\t]+" + g + "[ \\t]*\\n(?=([\\s\\S]*?)\\n```[ \\t]*(\\n|0x03))", "gm");
Markdown.Extra.prototype.hashHeaderAttributeBlocks = function(e) {
function t(e, t, i) {
return "
~XX" + (n.hashBlocks.push(i) - 1) + "XX
\n" + t + "\n"
}
var n = this;
return e = e.replace(v, t), e = e.replace(b, t)
}, Markdown.Extra.prototype.hashFcbAttributeBlocks = function(e) {
function t(e, t, i) {
return "~XX" + (n.hashBlocks.push(i) - 1) + "XX
\n" + t + "\n"
}
var n = this;
return e.replace(y, t)
}, Markdown.Extra.prototype.applyAttributeBlocks = function(e) {
var t = this,
n = new RegExp('~XX(\\d+)XX
[\\s]*(?:<(h[1-6]|pre)(?: +class="(\\S+)")?(>[\\s\\S]*?\\2>))', "gm");
return e = e.replace(n, function(e, n, i, r, a) {
if(!i) return "";
for(var s = parseInt(n, 10), l = t.hashBlocks[s], c = l.match(/#[^\s#.]+/g) || [], u = c[0] ? ' id="' + c[0].substr(1, c[0].length - 1) + '"' : "", d = l.match(/\.[^\s#.]+/g) || [], p = 0; p < d.length; p++) d[p] = d[p].substr(1, d[p].length - 1);
var h = "";
return r && (d = o(d, [r])), d.length > 0 && (h = ' class="' + d.join(" ") + '"'), "<" + i + u + h + a
})
}, Markdown.Extra.prototype.tables = function(t) {
function n(t, n, r, o) {
n = n.replace(/^ *[|]/m, ""), r = r.replace(/^ *[|]/m, ""), o = o.replace(/^ *[|]/gm, ""), n = n.replace(/[|] *$/m, ""), r = r.replace(/[|] *$/m, ""), o = o.replace(/[|] *$/gm, ""), alignspecs = r.split(/ *[|] */), align = [];
for(var a = 0; a < alignspecs.length; a++) {
var s = alignspecs[a];
align[a] = s.match(/^ *-+: *$/m) ? ' style="text-align:right;"' : s.match(/^ *:-+: *$/m) ? ' style="text-align:center;"' : s.match(/^ *:-+ *$/m) ? ' style="text-align:left;"' : ""
}
var c = n.split(/ *[|] */),
u = c.length,
d = i.tableClass ? ' class="' + i.tableClass + '"' : "",
p = [" \n", "\n", "\n"].join("");
for(a = 0; u > a; a++) {
var h = l(e(c[a]), i);
p += [" ", h, " \n"].join("")
}
p += " \n \n";
var f = o.split("\n");
for(a = 0; a < f.length; a++)
if(!f[a].match(/^\s*$/)) {
for(var m = f[a].split(/ *[|] */), g = u - m.length, v = 0; g > v; v++) m.push("");
for(p += "\n", v = 0; u > v; v++) {
var b = l(e(m[v]), i);
p += [" ", b, " \n"].join("")
}
p += " \n"
}
return p += "
\n", i.hashExtraBlock(p)
}
var i = this,
r = new RegExp(["^", "[ ]{0,3}", "[|]", "(.+)\\n", "[ ]{0,3}", "[|]([ ]*[-:]+[-| :]*)\\n", "(", "(?:[ ]*[|].*\\n?)*", ")", "(?:\\n|$)"].join(""), "gm"),
o = new RegExp(["^", "[ ]{0,3}", "(\\S.*[|].*)\\n", "[ ]{0,3}", "([-:]+[ ]*[|][-| :]*)\\n", "(", "(?:.*[|].*\\n?)*", ")", "(?:\\n|$)"].join(""), "gm");
return t = t.replace(r, n), t = t.replace(o, n)
}, Markdown.Extra.prototype.stripFootnoteDefinitions = function(e) {
var t = this;
return e = e.replace(/\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/g, function(e, n, i) {
return n = h(n), i += "\n", i = i.replace(/^[ ]{0,3}/g, ""), t.footnotes[n] = i, "\n"
})
}, Markdown.Extra.prototype.doFootnotes = function(e) {
var t = this;
if(t.isConvertingFootnote === !0) return e;
var n = 0;
return e = e.replace(/\[\^(.+?)\]/g, function(e, i) {
var r = h(i),
o = t.footnotes[r];
if(void 0 === o) return e;
n++, t.usedFootnotes.push(r);
var a = '";
return t.hashExtraInline(a)
})
}, Markdown.Extra.prototype.printFootnotes = function(e) {
var t = this;
if(0 === t.usedFootnotes.length) return e;
e += '\n\n"
}, Markdown.Extra.prototype.fencedCodeBlocks = function(e) {
function t(e) {
return e = e.replace(/&/g, "&"), e = e.replace(//g, ">"), e = e.replace(/~D/g, "$$"), e = e.replace(/~T/g, "~")
}
var n = this;
return e = e.replace(/(?:^|\n)```[ \t]*(\S*)[ \t]*\n([\s\S]*?)\n```[ \t]*(?=\n)/g, function(e, i, r) {
var o = i,
a = r,
s = n.googleCodePrettify ? ' class="prettyprint"' : "",
l = "";
o && (l = n.googleCodePrettify || n.highlightJs ? ' class="language-' + o + '"' : ' class="' + o + '"');
var c = ["
", t(a), "
"].join("");
return n.hashExtraBlock(c)
})
}, Markdown.Extra.prototype.educatePants = function(e) {
var t = this,
n = "",
i = 0;
e.replace(/(?:)|(<)([a-zA-Z1-6]+)([^\n]*?>)([\s\S]*?)(<\/\2>)/g, function(r, o, a, s, l, c, u) {
var d = e.substring(i, u);
return n += t.applyPants(d), t.smartyPantsLastChar = n.substring(n.length - 1), i = u + r.length, o ? (/code|kbd|pre|script|noscript|iframe|math|ins|del|pre/i.test(a) ? t.smartyPantsLastChar = l.substring(l.length - 1) : l = t.educatePants(l), void(n += o + a + s + l + c)) : void(n += r)
});
var r = e.substring(i);
return n += t.applyPants(r), t.smartyPantsLastChar = n.substring(n.length - 1), n
}, Markdown.Extra.prototype.applyPants = function(e) {
return e = e.replace(/---/g, "—").replace(/--/g, "–"), e = e.replace(/\.\.\./g, "…").replace(/\.\s\.\s\./g, "…"), e = e.replace(/``/g, "“").replace(/''/g, "”"), /^'$/.test(e) ? /\S/.test(this.smartyPantsLastChar) ? "’" : "‘" : /^"$/.test(e) ? /\S/.test(this.smartyPantsLastChar) ? "”" : "“" : (e = e.replace(/^'(?=[!"#\$\%'()*+,\-.\/:;<=>?\@\[\\]\^_`{|}~]\B)/, "’"), e = e.replace(/^"(?=[!"#\$\%'()*+,\-.\/:;<=>?\@\[\\]\^_`{|}~]\B)/, "”"), e = e.replace(/"'(?=\w)/g, "“‘"), e = e.replace(/'"(?=\w)/g, "‘“"), e = e.replace(/'(?=\d{2}s)/g, "’"), e = e.replace(/(\s| |--|&[mn]dash;|&\#8211;|&\#8212;|&\#x201[34];)'(?=\w)/g, "$1‘"), e = e.replace(/([^\s\[\{\(\-])'/g, "$1’"), e = e.replace(/'(?=\s|s\b)/g, "’"), e = e.replace(/'/g, "‘"), e = e.replace(/(\s| |--|&[mn]dash;|&\#8211;|&\#8212;|&\#x201[34];)"(?=\w)/g, "$1“"), e = e.replace(/([^\s\[\{\(\-])"/g, "$1”"), e = e.replace(/"(?=\s)/g, "”"), e = e.replace(/"/gi, "“"))
}, Markdown.Extra.prototype.runSmartyPants = function(e) {
return this.smartyPantsLastChar = "", e = this.educatePants(e), e = e.replace(/(<([a-zA-Z1-6]+)\b([^\n>]*?)(\/)?>)/g, f)
}, Markdown.Extra.prototype.definitionLists = function(t) {
var n = new RegExp(["(\\x02\\n?|\\n\\n)", "(?:", "(", "(", "[ ]{0,3}", "((?:[ \\t]*\\S.*\\n)+)", "\\n?", "[ ]{0,3}:[ ]+", ")", "([\\s\\S]+?)", "(", "(?=\\0x03)", "|", "(?=", "\\n{2,}", "(?=\\S)", "(?!", "[ ]{0,3}", "(?:\\S.*\\n)+?", "\\n?", "[ ]{0,3}:[ ]+", ")", "(?!", "[ ]{0,3}:[ ]+", ")", ")", ")", ")", ")"].join(""), "gm"),
i = this;
return t = a(t), t = t.replace(n, function(t, n, r) {
var o = e(i.processDefListItems(r));
return o = "
\n" + o + "\n ", n + i.hashExtraBlock(o) + "\n\n"
}), s(t)
}, Markdown.Extra.prototype.processDefListItems = function(i) {
var r = this,
o = new RegExp(["(\\x02\\n?|\\n\\n+)", "(", "[ ]{0,3}", "(?![:][ ]|[ ])", "(?:\\S.*\\n)+?", ")", "(?=\\n?[ ]{0,3}:[ ])"].join(""), "gm"),
u = new RegExp(["\\n(\\n+)?", "(", "[ ]{0,3}", "[:][ ]+", ")", "([\\s\\S]+?)", "(?=\\n*", "(?:", "\\n[ ]{0,3}[:][ ]|", "
|\\x03", ")", ")"].join(""), "gm");
return i = a(i), i = i.replace(/\n{2,}(?=\\x03)/, "\n"), i = i.replace(o, function(t, n, i) {
for(var o = e(i).split("\n"), a = "", s = 0; s < o.length; s++) {
var c = o[s];
c = l(e(c), r), a += "\n" + c + " "
}
return a + "\n"
}), i = i.replace(u, function(e, i, o, a) {
return i || a.match(/\n{2,}/) ? (a = Array(o.length + 1).join(" ") + a, a = n(a) + "\n\n", a = "\n" + c(a, r) + "\n") : (a = t(a), a = l(n(a), r)), "\n " + a + " \n"
}), s(i)
}, Markdown.Extra.prototype.strikethrough = function(e) {
return e.replace(/([\W_]|^)~T~T(?=\S)([^\r]*?\S[\*_]*)~T~T([\W_]|$)/g, "$1
$2$3")
}, Markdown.Extra.prototype.newlines = function(e) {
return e.replace(/(<(?:br|\/li)>)?\n/g, function(e, t) {
return t ? e : "
\n"
})
}
}(), define("pagedown-extra", function() {}), define("extensions/markdownExtra", ["jquery", "underscore", "utils", "logger", "classes/Extension", "text!html/markdownExtraSettingsBlock.html", "google-code-prettify", "highlightjs", "crel", "pagedown-extra"], function(e, t, n, i, r, o, a, s) {
var l = new r("markdownExtra", "Markdown Extra", !0);
l.settingsBlock = o, l.defaultConfig = {
extensions: ["fenced_code_gfm", "tables", "def_list", "attr_list", "footnotes", "smartypants", "strikethrough", "newlines"],
intraword: !0,
comments: !0,
highlighter: "prettify"
}, l.onLoadSettings = function() {
function e(e) {
return t.some(l.config.extensions, function(t) {
return t == e
})
}
n.setInputChecked("#input-markdownextra-fencedcodegfm", e("fenced_code_gfm")), n.setInputChecked("#input-markdownextra-tables", e("tables")), n.setInputChecked("#input-markdownextra-deflist", e("def_list")), n.setInputChecked("#input-markdownextra-attrlist", e("attr_list")), n.setInputChecked("#input-markdownextra-footnotes", e("footnotes")), n.setInputChecked("#input-markdownextra-smartypants", e("smartypants")), n.setInputChecked("#input-markdownextra-strikethrough", e("strikethrough")), n.setInputChecked("#input-markdownextra-newlines", e("newlines")), n.setInputChecked("#input-markdownextra-intraword", l.config.intraword), n.setInputChecked("#input-markdownextra-comments", l.config.comments), n.setInputValue("#input-markdownextra-highlighter", l.config.highlighter), n.setInputChecked("#input-markdownextra-diagrams", l.config.diagrams)
}, l.onSaveSettings = function(e) {
e.extensions = [], n.getInputChecked("#input-markdownextra-fencedcodegfm") && e.extensions.push("fenced_code_gfm"), n.getInputChecked("#input-markdownextra-tables") && e.extensions.push("tables"), n.getInputChecked("#input-markdownextra-deflist") && e.extensions.push("def_list"), n.getInputChecked("#input-markdownextra-attrlist") && e.extensions.push("attr_list"), n.getInputChecked("#input-markdownextra-footnotes") && e.extensions.push("footnotes"), n.getInputChecked("#input-markdownextra-smartypants") && e.extensions.push("smartypants"), n.getInputChecked("#input-markdownextra-strikethrough") && e.extensions.push("strikethrough"), n.getInputChecked("#input-markdownextra-newlines") && e.extensions.push("newlines"), e.intraword = n.getInputChecked("#input-markdownextra-intraword"), e.comments = n.getInputChecked("#input-markdownextra-comments"), e.highlighter = n.getInputValue("#input-markdownextra-highlighter"), e.diagrams = n.getInputChecked("#input-markdownextra-diagrams")
};
var c;
l.onEventMgrCreated = function(e) {
c = e
};
var u;
return l.onReady = function() {
u = document.getElementById("preview-contents")
}, l.onPagedownConfigure = function(e) {
var n = e.getConverter(),
i = {
extensions: l.config.extensions,
highlighter: "prettify"
};
if(l.config.intraword === !0) {
var r = {
_DoItalicsAndBold: function(e) {
return e = e.replace(/([^\w*]|^)(\*\*|__)(?=\S)(.+?[*_]*)(?=\S)\2(?=[^\w*]|$)/g, "$1
$3 "), e = e.replace(/([^\w*]|^)(\*|_)(?=\S)(.+?)(?=\S)\2(?=[^\w*]|$)/g, "$1
$3 ")
}
};
n.setOptions(r)
}
if(l.config.comments === !0 && n.hooks.chain("postConversion", function(e) {
return e.replace(//g, function(e) {
return e.replace(/^$/, ' ')
})
}), "highlight" == l.config.highlighter) {
var o = document.getElementById("preview-contents");
e.hooks.chain("onPreviewRefresh", function() {
t.each(o.querySelectorAll(".prettyprint > code"), function(e) {
!e.highlighted && s.highlightBlock(e), e.highlighted = !0
})
})
} else "prettify" == l.config.highlighter && e.hooks.chain("onPreviewRefresh", a.prettyPrint);
Markdown.Extra.init(n, i)
}, l
}), define("text!html/mathJaxSettingsBlock.html", [], function() {
return '
Allows StackEdit to interpret LaTeX mathematical expressions.
\n
\n
More info '
}), define("text!libs/mathjax_config.js", [], function() {
return 'MathJax.Hub.Config({\n skipStartupTypeset: true,\n "HTML-CSS": {\n preferredFont: "TeX",\n availableFonts: [\n "STIX",\n "TeX"\n ],\n linebreaks: {\n automatic: true\n },\n EqnChunk: 10,\n imageFont: null\n },\n tex2jax: <%= tex2jax || \'{ inlineMath: [["$","$"],["\\\\\\\\\\\\\\\\(","\\\\\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\\\\\[","\\\\\\\\]"]], processEscapes: true }\' %>,\n TeX: $.extend({\n noUndefined: {\n attributes: {\n mathcolor: "red",\n mathbackground: "#FFEEEE",\n mathsize: "90%"\n }\n },\n Safe: {\n allow: {\n URLs: "safe",\n classes: "safe",\n cssIDs: "safe",\n styles: "safe",\n fontsize: "all"\n }\n }\n }, <%= tex %>),\n messageStyle: "none"\n});\n'
}), define("libs/mathjax_init", ["settings", "text!libs/mathjax_config.js"], function(e, t) {
var n = document.createElement("script");
n.type = "text/x-mathjax-config", n.innerHTML = _.template(t, {
tex: e.extensionSettings.mathJax ? e.extensionSettings.mathJax.tex : "undefined",
tex2jax: e.extensionSettings.mathJax ? e.extensionSettings.mathJax.tex2jax : void 0
}), document.getElementsByTagName("head")[0].appendChild(n)
}), define("extensions/mathJax", ["utils", "classes/Extension", "text!html/mathJaxSettingsBlock.html", "mathjax"], function(e, t, n) {
function i(e, t, n) {
var i = u.slice(e, t + 1).join("").replace(/&/g, "&").replace(//g, ">");
for(x.Browser.isMSIE && (i = i.replace(/(%[^\n]*)\n/g, "$1
\n")); t > e;) u[t] = "", t--;
u[e] = "@@" + m.length + "@@", n && (i = n(i)), m.push(i), d = p = h = null
}
function r(e) {
d = p = h = null, m = [];
var t;
/`/.test(e) ? (e = e.replace(/~/g, "~T").replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm, function(e) {
return e.replace(/\$/g, "~D")
}), t = function(e) {
return e.replace(/~([TD])/g, function(e, t) {
return {
T: "~",
D: "$"
}[t]
})
}) : t = function(e) {
return e
}, u = w(e.replace(/\r\n?/g, "\n"), S);
for(var e = 1, n = u.length; n > e; e += 2) {
var r = u[e];
"@" === r.charAt(0) ? (u[e] = "@@" + m.length + "@@", m.push(r)) : d ? r === p ? f ? h = e : i(d, e, t) : r.match(/\n.*\n/) ? (h && (e = h, i(d, e, t)), d = p = h = null, f = 0) : "{" === r ? f++ : "}" === r && f && f-- : r === y || "$$" === r ? (d = e, p = r, f = 0) : "begin" === r.substr(1, 5) && (d = e, p = "\\end" + r.substr(6), f = 0)
}
return h && i(d, h, t), t(u.join(""))
}
function o(e) {
return e = e.replace(/@@(\d+)@@/g, function(e, t) {
return m[t]
}), m = null, e
}
function a() {
v = !1, x.cancelTypeset = !1, x.Queue(["Typeset", x, b]), x.Queue(c)
}
function s() {
!v && (v = !0, x.Cancel(), x.Queue(a))
}
var l = new t("mathJax", "MathJax", !0);
l.settingsBlock = n, l.defaultConfig = {
tex: "{}",
tex2jax: '{ inlineMath: [["$","$"],["\\\\\\\\(","\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true }'
}, l.onLoadSettings = function() {
e.setInputValue("#input-mathjax-config-tex", l.config.tex), e.setInputValue("#input-mathjax-config-tex2jax", l.config.tex2jax)
}, l.onSaveSettings = function(t, n) {
t.tex = e.getInputJsValue("#input-mathjax-config-tex", n), t.tex2jax = e.getInputJsValue("#input-mathjax-config-tex2jax", n)
}, l.onPagedownConfigure = function(e) {
b = document.getElementById("preview-contents");
var t = e.getConverter();
t.hooks.chain("preConversion", r), t.hooks.chain("postConversion", o)
};
var c;
l.onAsyncPreview = function(e) {
c = e, s()
};
var u, d, p, h, f, m, g = !1,
v = !1,
b = null,
y = "$",
x = MathJax.Hub;
x.Queue(function() {
g = !0, x.processUpdateTime = 50, x.Config({
"HTML-CSS": {
EqnChunk: 10,
EqnChunkFactor: 1
},
SVG: {
EqnChunk: 10,
EqnChunkFactor: 1
}
})
});
var w, S = /(\$\$|\\(?:begin|end)\{[a-z]*\*?\}|\\[\\{}$]|[{}]|(?:\n\s*)+|@@\d+@@)/i;
return w = 3 === "aba".split(/(b)/).length ? function(e, t) {
return e.split(t)
} : function(e, t) {
var n, i = [];
if(!t.global) {
n = t.toString();
var r = "";
n = n.replace(/^\/(.*)\/([im]*)$/, function(e, t, n) {
return r = n, t
}), t = RegExp(n, r + "g")
}
for(var o = t.lastIndex = 0; n = t.exec(e);) i.push(e.substring(o, n.index)), i.push.apply(i, n.slice(1)), o = n.index + n[0].length;
return i.push(e.substring(o)), i
},
function() {
var e = MathJax.Hub;
if(!e.Cancel) {
e.cancelTypeset = !1, e.Register.StartupHook("HTML-CSS Jax Config", function() {
var t = MathJax.OutputJax["HTML-CSS"],
n = t.Translate;
t.Augment({
Translate: function(i, r) {
if(e.cancelTypeset || r.cancelled) throw Error("MathJax Canceled");
return n.call(t, i, r)
}
})
}), e.Register.StartupHook("SVG Jax Config", function() {
var t = MathJax.OutputJax.SVG,
n = t.Translate;
t.Augment({
Translate: function(i, r) {
if(e.cancelTypeset || r.cancelled) throw Error("MathJax Canceled");
return n.call(t, i, r)
}
})
}), e.Register.StartupHook("TeX Jax Config", function() {
var t = MathJax.InputJax.TeX,
n = t.Translate;
t.Augment({
Translate: function(i, r) {
if(e.cancelTypeset || r.cancelled) throw Error("MathJax Canceled");
return n.call(t, i, r)
}
})
});
var t = e.processError;
e.processError = function(n, i, r) {
return "MathJax Canceled" !== n.message ? t.call(e, n, i, r) : (MathJax.Message.Clear(0, 0), i.jaxIDs = [], i.jax = {}, i.scripts = [], i.i = i.j = 0, i.cancelled = !0, null)
}, e.Cancel = function() {
this.cancelTypeset = !0
}
}
}(), l
}), define("text!html/partialRenderingSettingsBlock.html", [], function() {
return "
Renders modified sections only.
\n
\n Note: Document sections are based on title elements (h1, h2...). Therefore if\n your document does not contain any title, performance will not be increased.\n "
}), define("extensions/partialRendering", ["underscore", "crel", "extensions/markdownExtra", "classes/Extension", "text!html/partialRenderingSettingsBlock.html"], function(e, t, n, i, r) {
function o() {
var t = [],
n = "\n";
if(m = !1, e.each(g, function(e) {
var i = '\n
\n\n' + e.text + "\n\n";
f && (i = i.replace(/^```.*\n[\s\S]*?\n```|\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/gm, function(e, t) {
return t ? (m = !0, n += e.replace(/^\s*\n/gm, "") + "\n", "") : e
})), i = i.replace(/^```.*\n[\s\S]*?\n```|^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm, function(e, t) {
return t ? (n += e.replace(/^\s*\n/gm, "") + "\n", "") : e
}), t.push({
id: e.id,
text: i + "\n"
})
}), y = [], b = [], d = void 0, x === !0 || u != n) return x = !1, u = n, b = v, v = t, void(y = t);
var i = v.length;
e.some(v, function(e, n) {
return n >= t.length || e.text != t[n].text ? (i = n, !0) : void 0
});
var r = -v.length;
e.some(v.slice().reverse(), function(e, n) {
return n >= t.length || e.text != t[t.length - n - 1].text ? (r = -n, !0) : void 0
}), i - r > v.length && (r = i - v.length);
var o = v.slice(0, i);
y = t.slice(i, t.length + r);
var a = v.slice(v.length + r, v.length);
d = e.first(a), b = v.slice(i, v.length + r), v = o.concat(y).concat(a)
}
function a(e) {
var t = e.id.substring(3);
w[t] = e
}
function s() {
function n(n) {
for(var i = t("div", {
id: "wmd-preview-section-" + n.id,
"class": "wmd-preview-section preview-content"
}), o = !1; r;) {
var s = r.nextSibling,
l = "se-preview-section-delimiter" == r.className;
if(o === !0 && "DIV" == r.tagName && l) break;
o = !0, "DIV" == r.tagName && "footnotes" == r.className ? e.each(r.querySelectorAll("ol > li"), a) : l || i.appendChild(r), r = s
}
return i
}
e.each(b, function(e) {
var t = document.getElementById("wmd-preview-section-" + e.id);
h.removeChild(t)
});
var i = document.getElementById("wmd-preview"),
r = i.firstChild,
o = document.createDocumentFragment();
e.each(y, function(e) {
o.appendChild(n(e))
}), i.innerHTML = "";
var s = p;
void 0 !== d && (s = document.getElementById("wmd-preview-section-" + d.id)), h.insertBefore(o, s), p.innerHTML = "";
var l = [];
if(m === !0) {
var c = t("ol");
e.each(h.querySelectorAll("a.footnote"), function(e, t) {
e.textContent = t + 1;
var n = e.id.substring(6);
l.push(n), c.appendChild(w[n].cloneNode(!0))
}), l.length > 0 && p.appendChild(t("div", {
"class": "footnotes"
}, t("hr"), c)), w = e.pick(w, l)
}
}
var l = new i("partialRendering", "Partial Rendering", !0);
l.settingsBlock = r;
var c, u, d, p, h, f = !1,
m = !1,
g = [],
v = [],
b = [],
y = [],
x = !1,
w = {};
return l.onSectionsCreated = function(e) {
g = e
}, l.onPagedownConfigure = function(t) {
c = t.getConverter(), c.hooks.chain("preConversion", function() {
o();
var t = e.map(y, function(e) {
return e.text
});
return t.push(u + "\n\n"), t.join("")
}), t.hooks.chain("onPreviewRefresh", function() {
s()
})
}, l.onInit = function() {
n.enabled && e.some(n.config.extensions, function(e) {
return "footnotes" == e
}) && (f = !0)
}, l.onReady = function() {
p = t("div", {
id: "wmd-preview-section-footnotes",
"class": "preview-content"
}), h = document.getElementById("preview-contents"), h.appendChild(p)
}, l.onFileSelected = function() {
x = !0
}, l
}), define("extensions/markdownSectionParser", ["underscore", "extensions/markdownExtra", "extensions/mathJax", "extensions/partialRendering", "classes/Extension", "crel"], function(e, t, n, i, r, o) {
function a(e, t) {
function n(e, t) {
var n = o.substring(a, t);
u.push({
id: ++h,
text: n,
textWithFrontMatter: i + n
}), i = ""
}
if(e === p) {
var i = (p.frontMatter || {})._frontMatter || "",
r = t.substring(i.length),
o = r + "\n\n";
u = [];
var a = 0;
o.replace(d, function(e, t) {
n(a, t), a = t
}), n(a, r.length), s.onSectionsCreated(u)
}
}
var s, l = new r("markdownSectionParser", "Markdown section parser");
l.onEventMgrCreated = function(e) {
s = e
};
var c, u = [],
d = "^.+[ \\t]*\\n=+[ \\t]*\\n+|^.+[ \\t]*\\n-+[ \\t]*\\n+|^\\#{1,6}[ \\t]*.+?[ \\t]*\\#*\\n+";
l.onPagedownConfigure = function(r) {
t.enabled && e.some(t.config.extensions, function(e) {
return "fenced_code_gfm" == e
}) && (d = "^```.*\\n[\\s\\S]*?\\n```|" + d), n.enabled && (d = "^[ \\t]*\\n\\$\\$[\\s\\S]*?\\$\\$|" + d, d = "^[ \\t]*\\n\\\\\\\\[[\\s\\S]*?\\\\\\\\]|" + d, d = "^[ \\t]*\\n\\\\?\\\\begin\\{[a-z]*\\*?\\}[\\s\\S]*?\\\\end\\{[a-z]*\\*?\\}|" + d), d = new RegExp(d, "gm");
var a = r.getConverter();
i.enabled || (a.hooks.chain("preConversion", function() {
return e.reduce(u, function(e, t) {
return e + '\n
\n\n' + t.text + "\n\n"
}, "")
}), r.hooks.chain("onPreviewRefresh", function() {
function e() {
for(var e = o("div", {
"class": "wmd-preview-section preview-content"
}), t = !1; n;) {
var i = n.nextSibling,
r = "se-preview-section-delimiter" == n.className;
if(t === !0 && "DIV" == n.tagName && r) break;
t = !0, r || e.appendChild(n), n = i
}
return e
}
var t = document.getElementById("wmd-preview"),
n = t.firstChild,
i = document.createDocumentFragment();
u.forEach(function(t) {
i.appendChild(e(t))
}), c.innerHTML = "", c.appendChild(t), c.appendChild(i)
}))
}, l.onReady = function() {
c = document.getElementById("preview-contents")
};
var p;
l.onFileSelected = function(e) {
p = e
};
var h = 0;
return l.onFileOpen = a, l.onContentChanged = a, l
}), define("text!html/buttonMarkdownSyntax.html", [], function() {
return '
\n \n \n\n'
}), define("extensions/buttonMarkdownSyntax", ["jquery", "classes/Extension", "text!html/buttonMarkdownSyntax.html"], function(e, t, n) {
var i = new t("buttonMarkdownSyntax", 'Button "Markdown syntax', !0, !0);
return i.settingsBlock = '
Adds a "Markdown syntax" button over the preview.
', i.onCreatePreviewButton = function() {
return n
}, i
}), define("extensions/googleAnalytics", ["jquery", "underscore", "constants", "utils", "classes/Extension", "settings"], function(e, t, n, i, r, o) {
function a() {
i.currentTime - d > 18e4 && (_gaq.push(["_trackPageview"]), d = i.currentTime)
}
var s = new r("googleAnalytics", "Google Analytics", !0);
s.settingsBlock = "
Sends anonymous statistics about usage and errors to help improve StackEdit.
";
var l = !1,
c = !1;
window._gaq = [];
var u = function() {
if(l === !1 && c === !1) {
var t = "/ga.js";
location.search.match(/(\?|&)console/) && (t = "/u/ga_debug.js"), e.ajax({
url: "https://ssl.google-analytics.com" + t,
dataType: "script"
}).done(function() {
l = !0
})
}
}, d = 0;
s.onPeriodicRun = function() {
a()
}, s.onReady = function() {
_gaq.push(["_setAccount", n.GOOGLE_ANALYTICS_ACCOUNT_ID]), a(), _gaq.push(["_trackEvent", "About", "version", n.VERSION]), _gaq.push(["_trackEvent", "Settings", "layoutOrientation", "" + o.layoutOrientation]), _gaq.push(["_trackEvent", "Settings", "theme", "" + window.theme]), _gaq.push(["_trackEvent", "Settings", "lazyRendering", "" + o.lazyRendering]), _gaq.push(["_trackEvent", "Settings", "editorFontFamily", "" + o.editorFontFamily]), _gaq.push(["_trackEvent", "Settings", "editorFontSize", "" + o.editorFontSize]), _gaq.push(["_trackEvent", "Settings", "defaultContent backlink", "" + (-1 !== o.defaultContent.indexOf(n.MAIN_URL))]), _gaq.push(["_trackEvent", "Settings", "commitMsg backlink", "" + (-1 !== o.commitMsg.indexOf(n.MAIN_URL))]), _gaq.push(["_trackEvent", "Settings", "sshProxy unchanged", "" + (o.sshProxy == n.SSH_PROXY_URL)]), t.each(o.extensionSettings, function(e, t) {
_gaq.push(["_trackEvent", "Extensions", t + " enabled", "" + (e.enabled === !0)])
}), window.onerror = function(e, t, n) {
_gaq.push(["_trackEvent", "Error", e, t + ":" + n + i.formatEventList()])
}, u()
}, s.onOfflineChanged = function(e) {
c = e, u()
};
var p = 0;
return s.onSyncRunning = function(e) {
e === !0 && (p = (new Date).getTime())
}, s.onPublishRunning = function(e) {
e === !0 && (p = (new Date).getTime())
}, s.onSyncSuccess = function() {
var e = (new Date).getTime();
_gaq.push(["_trackTiming", "Sync", "SyncTime", e - p])
}, s.onSyncImportSuccess = function(e, t) {
_gaq.push(["_trackEvent", "Sync", "SyncImport"]), _gaq.push(["_trackEvent", "Sync", "SyncImport provider", t.providerId])
}, s.onSyncExportSuccess = function(e, t) {
_gaq.push(["_trackEvent", "Sync", "SyncExport"]), _gaq.push(["_trackEvent", "Sync", "SyncExport provider", t.provider.providerId])
}, s.onPublishSuccess = function(e) {
var n = (new Date).getTime();
_gaq.push(["_trackTiming", "Publish", "PublishSuccess", n - p]), t.each(e.publishLocations, function(e) {
_gaq.push(["_trackEvent", "Publish", "PublishSuccess provider", e.provider.providerId])
})
}, s.onNewPublishSuccess = function(e, t) {
_gaq.push(["_trackEvent", "Publish", "NewPublish provider", t.provider.providerId])
}, s.onError = function(e) {
!t.isString(e) && e.message && _gaq.push(["_trackEvent", "Error", "message", e.message + i.formatEventList()])
}, s
}), define("extensions/twitter", ["jquery", "underscore", "constants", "utils", "classes/Extension"], function(e, t, n, i, r) {
var o = new r("twitter", "Twitter", !1, !0),
a = !1,
s = !1,
l = function() {
a === !1 && s === !1 && e.ajax({
url: "https://platform.twitter.com/widgets.js",
dataType: "script"
}).done(function() {
a = !0
})
};
return o.onReady = function() {
l()
}, o.onOfflineChanged = function(e) {
s = e, l()
}, o.onTweet = function() {
a && window.twttr.widgets.load()
}, o
}), define("text!html/dialogAbout.html", [], function() {
return '
\n'
}), define("extensions/dialogAbout", ["underscore", "constants", "utils", "classes/Extension", "text!html/dialogAbout.html"], function(e, t, n, i, r) {
var o = new i("dialogAbout", 'Dialog "About"'),
a = {
Bootstrap: "http://getbootstrap.com/",
"Bootstrap Tour": "http://bootstraptour.com/",
crel: "https://github.com/KoryNunn/crel",
"FileSaver.js": "https://github.com/eligrey/FileSaver.js/",
Fontello: "http://fontello.com/",
"Font Awesome and others...": "res/libs/fontello/LICENSE.txt",
Gatekeeper: "https://github.com/prose/gatekeeper",
"Github.js": "https://github.com/michael/github",
"Hammer.js": "http://eightmedia.github.io/hammer.js/",
"Highlight.js": "http://softwaremaniacs.org/soft/highlight/en/",
jGrowl: "https://github.com/stanlemon/jGrowl/",
jQuery: "http://jquery.com/",
jsondiffpatch: "https://github.com/benjamine/jsondiffpatch",
MathJax: "http://www.mathjax.org/",
Mousetrap: "http://craig.is/killing/mice",
PageDown: "https://code.google.com/p/pagedown/",
"PageDown Extra": "https://github.com/jmcmanus/pagedown-extra/",
Prettify: "https://code.google.com/p/google-code-prettify/",
Prism: "http://prismjs.com/",
Rangy: "https://code.google.com/p/rangy/",
RequireJS: "http://requirejs.org/",
"RequireJS LESS plugin": "https://github.com/guybedford/require-less",
"stacktrace.js": "http://stacktracejs.com/",
"to-markdown": "https://github.com/domchristie/to-markdown",
"Underscore.js": "http://underscorejs.org/",
waitForImages: "https://github.com/alexanderdickson/waitForImages",
XRegExp: "https://github.com/slevithan/xregexp",
"yaml.js": "https://github.com/jeremyfa/yaml.js"
}, s = {
"StackEdit Download Proxy": "https://github.com/benweet/stackedit-download-proxy",
"StackEdit HTMLtoPDF": "https://github.com/benweet/stackedit-htmltopdf",
"StackEdit Picasa Proxy": "https://github.com/benweet/stackedit-picasa-proxy",
"StackEdit SSH Proxy": "https://github.com/benweet/stackedit-ssh-proxy",
"StackEdit Tumblr Proxy": "https://github.com/benweet/stackedit-tumblr-proxy",
"StackEdit WordPress Proxy": "https://github.com/benweet/stackedit-wordpress-proxy"
};
return o.onReady = function() {
n.addModal("modal-about", e.template(r, {
libraries: a,
projects: s,
version: t.VERSION
}))
}, o
}), define("text!html/dialogManagePublicationLocation.html", [], function() {
return '
\n'
}), define("extensions/dialogManagePublication", ["jquery", "underscore", "classes/Extension", "text!html/dialogManagePublicationLocation.html"], function(e, t, n, i) {
var r, o = new n("dialogManagePublication", 'Dialog "Manage publication"', !1, !0);
o.onEventMgrCreated = function(e) {
r = e
};
var a, s, l, c = function(e) {
if(void 0 === e || e === a) {
l.toggleClass("hide", 0 === t.size(a.publishLocations));
var n = t.reduce(a.publishLocations, function(e, n) {
var r = t.omit(n, "provider", "publishIndex", "sharingLink");
return r.password && (r.password = "********"), r = JSON.stringify(r).replace(/{|}|"/g, "").replace(/,/g, ", "), e + t.template(i, {
publishAttributes: n,
publishDesc: r
})
}, "");
s.innerHTML = n
}
};
return o.onFileSelected = function(e) {
a = e, c(e)
}, o.onNewPublishSuccess = c, o.onPublishRemoved = c, o.onReady = function() {
var t = document.querySelector(".modal-manage-publish");
s = t.querySelector(".publish-list"), l = e(document.querySelectorAll(".show-already-published")), e(s).on("click", ".remove-button", function() {
var t = e(this),
n = a.publishLocations[t.data("publishIndex")];
a.removePublishLocation(n), r.onPublishRemoved(a, n)
})
}, o
}), define("text!html/dialogManageSynchronizationLocation.html", [], function() {
return '
\n'
}), define("extensions/dialogManageSynchronization", ["jquery", "underscore", "classes/Extension", "text!html/dialogManageSynchronizationLocation.html"], function(e, t, n, i) {
var r, o = new n("dialogManageSynchronization", 'Dialog "Manage synchronization"', !1, !0);
o.onEventMgrCreated = function(e) {
r = e
};
var a;
o.onSynchronizerCreated = function(e) {
a = e
};
var s, l, c, u = function(e) {
if(void 0 === e || e === s) {
c.toggleClass("hide", 0 === t.size(s.syncLocations));
var n = t.reduce(s.syncLocations, function(e, n) {
return e + t.template(i, {
syncAttributes: n,
syncDesc: n.id || n.path
})
}, "");
l.innerHTML = n
}
};
return o.onFileSelected = function(e) {
s = e, u(e)
}, o.onSyncExportSuccess = u, o.onSyncRemoved = u, o.onReady = function() {
var t = document.querySelector(".modal-manage-sync");
l = t.querySelector(".sync-list"), c = e(document.querySelectorAll(".show-already-synchronized")), e(l).on("click", ".remove-button", function() {
var t = e(this),
n = s.syncLocations[t.data("syncIndex")];
s.removeSyncLocation(n), r.onSyncRemoved(s, n)
})
}, o
}), define("text!html/dialogManageSharingLocation.html", [], function() {
return '\n
\n'
}), define("extensions/dialogManageSharing", ["jquery", "underscore", "classes/Extension", "text!html/dialogManageSharingLocation.html"], function(e, t, n, i) {
var r, o = new n("dialogManageSharing", 'Button "Share"', !1, !0);
o.onEventMgrCreated = function(e) {
r = e
};
var a, s, l, c, u = function(e) {
if(void 0 === e || e === a) {
var n = t.reduce(a.publishLocations, function(e, n) {
return n.sharingLink && (e += t.template(i, {
link: n.sharingLink,
title: a.title
})), e
}, "");
s.innerHTML = n, r.onTweet(), l.toggleClass("hide", 0 === n.length), c.toggleClass("hide", 0 !== n.length)
}
};
return o.onFileSelected = function(e) {
a = e, u(e)
}, o.onNewPublishSuccess = function(t, n) {
u(t), n.sharingLink && (e(".modal").modal("hide"), e(".modal-manage-sharing").modal("show"))
}, o.onPublishRemoved = u, o.onReady = function() {
var t = document.querySelector(".modal-manage-sharing");
s = t.querySelector(".share-list"), l = e(t.querySelectorAll(".msg-share-list")), c = e(t.querySelectorAll(".msg-no-share"))
}, o
}), function() {
var e = this,
t = {}, n = !1;
"undefined" != typeof module && module.exports ? (module.exports = t, e.toMarkdown = t, n = !0) : e.toMarkdown = t, t.converter = function(e) {
e && e.elements && $.isArray(e.elements) && (c = c.concat(e.elements)), this.makeMd = function(e, t) {
var r;
if(n) {
var o = require("jsdom");
o.env({
html: e,
scripts: ["http://code.jquery.com/jquery-1.6.4.min.js"],
done: function(n, r) {
"function" == typeof t && t(i(e, r.$))
}
})
} else r = i(e, $);
return r
}
};
var i = function(e, t) {
e = e.replace(/(\d+)\. /g, "$1\\. ");
var n = t("
"),
i = n.html(e);
i.find("*:not(pre, code)").contents().filter(function() {
return 3 === this.nodeType && /^\s+$/.test(this.nodeValue)
}).remove();
for(var r = [], o = 0, s = c.length; s > o; o++) r.push(c[o].selector);
for(r = r.join(","); i.find(r).length;)
for(var o = 0, s = c.length; s > o; o++) $matches = i.find(c[o].selector + ':not(:has("' + r + '"))'), $matches.each(function(e, n) {
var i = t(n);
i.before(c[o].replacement(i.html(), i)).remove()
});
return a(i.html())
}, r = function(e) {
return e.replace(/^[\n\r\f]+|[\n\r\f]+$/g, "")
}, o = function(e) {
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"')
}, a = function(e) {
return e = e.replace(/^[\t\r\n]+|[\t\r\n]+$/g, ""), e = e.replace(/\n\s+\n/g, "\n\n"), e = e.replace(/\n{3,}/g, "\n\n"), e = o(e)
}, s = function(e) {
return e = r(e), e ? "**" + e + "**" : ""
}, l = function(e) {
return e = r(e), e ? "_" + e + "_" : ""
}, c = [{
selector: "p",
replacement: function(e) {
return e = $.trim(e), e ? "\n\n" + e + "\n\n" : ""
}
}, {
selector: "br",
replacement: function() {
return "\n"
}
}, {
selector: "h1,h2,h3,h4,h5,h6",
replacement: function(e, t) {
e = $.trim(e);
for(var n = t.prop("nodeName").charAt(1), i = "", r = 0; n > r; r++) i += "#";
return e ? "\n\n" + i + " " + e + "\n\n" : ""
}
}, {
selector: "hr",
replacement: function() {
return "\n\n* * *\n\n"
}
}, {
selector: "a[href]",
replacement: function(e, t) {
if(e) {
e = r(e);
var n = t.attr("href"),
i = t.attr("title") || "";
return "[" + e + "](" + n + (i ? ' "' + i + '"' : "") + ")"
}
return !1
}
}, {
selector: "b",
replacement: s
}, {
selector: "strong",
replacement: s
}, {
selector: "i",
replacement: l
}, {
selector: "em",
replacement: l
}, {
selector: "code",
replacement: function(e) {
return e = r(e), e ? "`" + e + "`" : ""
}
}, {
selector: "img",
replacement: function(e, t) {
var n = t.attr("alt") || "",
i = t.attr("src") || "",
r = t.attr("title") || "";
return "![" + n + "](" + i + (r ? ' "' + r + '"' : "") + ")"
}
}, {
selector: "pre",
replacement: function(e) {
return /^\s*\`/.test(e) ? (e = e.replace(/\`/g, ""), " " + e.replace(/\n/g, "\n ")) : ""
}
}, {
selector: "li",
replacement: function(e, t) {
e = e.replace(/^\s+|\s+$/, "").replace(/\n/gm, "\n ");
var n = "* ",
i = "",
r = t.parent(),
o = r.contents().filter(function() {
return 1 === this.nodeType && "LI" === this.nodeName || 3 === this.nodeType
}),
a = o.index(t) + 1;
return n = r.is("ol") ? a + ". " : "* ", a == o.length && (t.parents("li").length || (i = "\n"), e = e.replace(/\s+$/, ""), t.unwrap()), n + e + i + "\n"
}
}, {
selector: "blockquote",
replacement: function(e) {
return e = e = $.trim(e).replace(/\n{3,}/g, "\n\n"), e = e.replace(/\n/g, "\n> "), "> " + e
}
}]
}(), define("toMarkdown", ["jquery"], function(e) {
return function() {
var t;
return t || e.toMarkdown
}
}(this)), define("extensions/dialogOpenHarddrive", ["jquery", "underscore", "constants", "utils", "classes/Extension", "toMarkdown"], function(e, t, n, i, r, o) {
function a(i) {
i.stopPropagation(), i.preventDefault();
var r = (i.dataTransfer || i.target).files;
e(".modal-import-harddrive-markdown, .modal-import-harddrive-html").modal("hide"), t.each(r, function(t) {
if(!e(i.target).is("#wmd-input *") || !t.name.match(/.(jpe?g|png|gif)$/i)) {
var r = new FileReader;
r.onload = function(e) {
return function(t) {
var n = t.target.result;
if(n.match(/\uFFFD/)) return void p.onError(e.name + " is a binary file.");
if(n = h ? h(n) : n, void 0 === n) return void p.onError(e.name + " is not a valid HTML file.");
var i = e.name,
r = i.lastIndexOf(".");
i = -1 !== r ? i.substring(0, r) : i;
var o = u.createFile(i, n);
u.selectFile(o)
}
}(t);
var o = t.slice(0, n.IMPORT_FILE_MAX_CONTENT_SIZE);
r.readAsText(o)
}
})
}
function s(e) {
h = void 0, a(e)
}
function l(e) {
h = m, a(e)
}
function c(e) {
e.stopPropagation(), e.preventDefault(), e.dataTransfer.dropEffect = "copy"
}
var u, d = new r("dialogOpenHarddrive", 'Dialog "Open from"');
d.onFileMgrCreated = function(e) {
u = e
};
var p;
d.onEventMgrCreated = function(e) {
p = e
};
var h, f, m = function(e) {
return f.makeMd(e)
};
return d.onReady = function() {
f = new o.converter, e("#input-file-import-harddrive-markdown").change(s), e("#dropzone-import-harddrive-markdown, #wmd-input").each(function() {
this.addEventListener("dragover", c, !1), this.addEventListener("drop", s, !1)
}), e("#input-file-import-harddrive-html").change(l), e("#dropzone-import-harddrive-html").each(function() {
this.addEventListener("dragover", c, !1), this.addEventListener("drop", l, !1)
}), e(".action-convert-html").click(function(e) {
var t = i.getInputTextValue("#input-convert-html", e);
if(void 0 !== t) {
if(t = f.makeMd(t), void 0 === t) return void p.onError("Invalid HTML code.");
var n = u.createFile(void 0, t);
u.selectFile(n)
}
})
}, d
}), define("extensions/documentTitle", ["jquery", "underscore", "classes/Extension"], function(e, t, n) {
var i, r, o = new n("documentTitle", "Document Title"),
a = t.debounce(function(t) {
if(t === i) {
var n = i.title;
document.title = "StackEdit – " + n, r.html(i.composeTitle()), e(".file-title").text(n), e(".input-file-title").val(n)
}
}, 50);
return o.onFileSelected = function(e) {
i = e, a(e)
}, o.onTitleChanged = a, o.onSyncExportSuccess = a, o.onSyncRemoved = a, o.onNewPublishSuccess = a, o.onPublishRemoved = a, o.onReady = a, o.onReady = function() {
r = e(".file-title-navbar"), r.hover(function() {
var e = r[0].scrollWidth - r.outerWidth();
r.stop(!0, !0).animate({
scrollLeft: e
}, 15 * e, "linear")
}, function() {
r.stop(!0, !0).scrollLeft(0)
}).click(function() {
r.stop(!0, !0).scrollLeft(0)
})
}, o
}), function(e, t) {
function n(e, t, n) {
return e.addEventListener ? void e.addEventListener(t, n, !1) : void e.attachEvent("on" + t, n)
}
function i(e) {
if("keypress" == e.type) {
var t = String.fromCharCode(e.which);
return e.shiftKey || (t = t.toLowerCase()), t
}
return _[e.which] ? _[e.which] : k[e.which] ? k[e.which] : String.fromCharCode(e.which).toLowerCase()
}
function r(e, t) {
return e.sort().join(",") === t.sort().join(",")
}
function o(e) {
e = e || {};
var t, n = !1;
for(t in D) e[t] ? n = !0 : D[t] = 0;
n || (M = !1)
}
function a(e, t, n, i, o, a) {
var s, l, c = [],
u = n.type;
if(!I[e]) return [];
for("keyup" == u && h(e) && (t = [e]), s = 0; s < I[e].length; ++s)
if(l = I[e][s], (i || !l.seq || D[l.seq] == l.level) && u == l.action && ("keypress" == u && !n.metaKey && !n.ctrlKey || r(t, l.modifiers))) {
var d = !i && l.combo == o,
p = i && l.seq == i && l.level == a;
(d || p) && I[e].splice(s, 1), c.push(l)
}
return c
}
function s(e) {
var t = [];
return e.shiftKey && t.push("shift"), e.altKey && t.push("alt"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), t
}
function l(e) {
return e.preventDefault ? void e.preventDefault() : void(e.returnValue = !1)
}
function c(e) {
return e.stopPropagation ? void e.stopPropagation() : void(e.cancelBubble = !0)
}
function u(e, t, n, i) {
P.stopCallback(t, t.target || t.srcElement, n, i) || e(t, n) === !1 && (l(t), c(t))
}
function d(e, t, n) {
var i, r = a(e, t, n),
s = {}, l = 0,
c = !1;
for(i = 0; i < r.length; ++i) r[i].seq && (l = Math.max(l, r[i].level));
for(i = 0; i < r.length; ++i)
if(r[i].seq) {
if(r[i].level != l) continue;
c = !0, s[r[i].seq] = 1, u(r[i].callback, n, r[i].combo, r[i].seq)
} else c || u(r[i].callback, n, r[i].combo);
var d = "keypress" == n.type && A;
n.type != M || h(e) || d || o(s), A = c && "keydown" == n.type
}
function p(e) {
"number" != typeof e.which && (e.which = e.keyCode);
var t = i(e);
if(t) return "keyup" == e.type && L === t ? void(L = !1) : void P.handleKey(t, s(e), e)
}
function h(e) {
return "shift" == e || "ctrl" == e || "alt" == e || "meta" == e
}
function f() {
clearTimeout(C), C = setTimeout(o, 1e3)
}
function m() {
if(!S) {
S = {};
for(var e in _) e > 95 && 112 > e || _.hasOwnProperty(e) && (S[_[e]] = e)
}
return S
}
function g(e, t, n) {
return n || (n = m()[e] ? "keydown" : "keypress"), "keypress" == n && t.length && (n = "keydown"), n
}
function v(e, t, n, r) {
function a(t) {
return function() {
M = t, ++D[e], f()
}
}
function s(t) {
u(n, t, e), "keyup" !== r && (L = i(t)), setTimeout(o, 10)
}
D[e] = 0;
for(var l = 0; l < t.length; ++l) {
var c = l + 1 === t.length,
d = c ? s : a(r || y(t[l + 1]).action);
x(t[l], d, r, e, l)
}
}
function b(e) {
return "+" === e ? ["+"] : e.split("+")
}
function y(e, t) {
var n, i, r, o = [];
for(n = b(e), r = 0; r < n.length; ++r) i = n[r], E[i] && (i = E[i]), t && "keypress" != t && T[i] && (i = T[i], o.push("shift")), h(i) && o.push(i);
return t = g(i, o, t), {
key: i,
modifiers: o,
action: t
}
}
function x(e, t, n, i, r) {
N[e + ":" + n] = t, e = e.replace(/\s+/g, " ");
var o, s = e.split(" ");
return s.length > 1 ? void v(e, s, t, n) : (o = y(e, n), I[o.key] = I[o.key] || [], a(o.key, o.modifiers, {
type: o.action
}, i, e, r), void I[o.key][i ? "unshift" : "push"]({
callback: t,
modifiers: o.modifiers,
action: o.action,
seq: i,
level: r,
combo: e
}))
}
function w(e, t, n) {
for(var i = 0; i < e.length; ++i) x(e[i], t, n)
}
for(var S, C, _ = {
8: "backspace",
9: "tab",
13: "enter",
16: "shift",
17: "ctrl",
18: "alt",
20: "capslock",
27: "esc",
32: "space",
33: "pageup",
34: "pagedown",
35: "end",
36: "home",
37: "left",
38: "up",
39: "right",
40: "down",
45: "ins",
46: "del",
91: "meta",
93: "meta",
224: "meta"
}, k = {
106: "*",
107: "+",
109: "-",
110: ".",
111: "/",
186: ";",
187: "=",
188: ",",
189: "-",
190: ".",
191: "/",
192: "`",
219: "[",
220: "\\",
221: "]",
222: "'"
}, T = {
"~": "`",
"!": "1",
"@": "2",
"#": "3",
$: "4",
"%": "5",
"^": "6",
"&": "7",
"*": "8",
"(": "9",
")": "0",
_: "-",
"+": "=",
":": ";",
'"': "'",
"<": ",",
">": ".",
"?": "/",
"|": "\\"
}, E = {
option: "alt",
command: "meta",
"return": "enter",
escape: "esc",
mod: /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? "meta" : "ctrl"
}, I = {}, N = {}, D = {}, L = !1, A = !1, M = !1, R = 1; 20 > R; ++R) _[111 + R] = "f" + R;
for(R = 0; 9 >= R; ++R) _[R + 96] = R;
n(t, "keypress", p), n(t, "keydown", p), n(t, "keyup", p);
var P = {
bind: function(e, t, n) {
return e = e instanceof Array ? e : [e], w(e, t, n), this
},
unbind: function(e, t) {
return P.bind(e, function() {}, t)
},
trigger: function(e, t) {
return N[e + ":" + t] && N[e + ":" + t]({}, e), this
},
reset: function() {
return I = {}, N = {}, this
},
stopCallback: function(e, t) {
return(" " + t.className + " ").indexOf(" mousetrap ") > -1 ? !1 : "INPUT" == t.tagName || "SELECT" == t.tagName || "TEXTAREA" == t.tagName || t.isContentEditable
},
handleKey: d
};
e.Mousetrap = P, "function" == typeof define && define.amd && define("mousetrap", P)
}(window, document), define("classes/FileDescriptor", ["underscore", "utils", "storage"], function(e, t, n) {
function i(e, t, i, r) {
this.fileIndex = e, this._title = t || n[e + ".title"], this._editorScrollTop = parseInt(n[e + ".editorScrollTop"]) || 0, this._editorStart = parseInt(n[e + ".editorEnd"]) || 0, this._editorEnd = parseInt(n[e + ".editorEnd"]) || 0, this._previewScrollTop = parseInt(n[e + ".previewScrollTop"]) || 0, this._selectTime = parseInt(n[e + ".selectTime"]) || 0, this._discussionList = JSON.parse(n[e + ".discussionList"] || "{}"), this.syncLocations = i || {}, this.publishLocations = r || {}, Object.defineProperty(this, "title", {
get: function() {
return this._title
},
set: function(e) {
this._title = e, n[this.fileIndex + ".title"] = e
}
}), Object.defineProperty(this, "content", {
get: function() {
return n[this.fileIndex + ".content"]
},
set: function(e) {
n[this.fileIndex + ".content"] = e
}
}), Object.defineProperty(this, "editorScrollTop", {
get: function() {
return this._editorScrollTop
},
set: function(e) {
this._editorScrollTop = e, n[this.fileIndex + ".editorScrollTop"] = e
}
}), Object.defineProperty(this, "editorStart", {
get: function() {
return this._editorStart
},
set: function(e) {
this._editorStart = e, n[this.fileIndex + ".editorStart"] = e
}
}), Object.defineProperty(this, "editorEnd", {
get: function() {
return this._editorEnd
},
set: function(e) {
this._editorEnd = e, n[this.fileIndex + ".editorEnd"] = e
}
}), Object.defineProperty(this, "previewScrollTop", {
get: function() {
return this._previewScrollTop
},
set: function(e) {
this._previewScrollTop = e, n[this.fileIndex + ".previewScrollTop"] = e
}
}), Object.defineProperty(this, "selectTime", {
get: function() {
return this._selectTime
},
set: function(e) {
this._selectTime = e, n[this.fileIndex + ".selectTime"] = e
}
}), Object.defineProperty(this, "discussionList", {
get: function() {
return this._discussionList
},
set: function(e) {
this._discussionList = e, n[this.fileIndex + ".discussionList"] = JSON.stringify(e)
}
}), Object.defineProperty(this, "discussionListJSON", {
get: function() {
return n[this.fileIndex + ".discussionList"] || "{}"
},
set: function(e) {
this._discussionList = JSON.parse(e), n[this.fileIndex + ".discussionList"] = e
}
})
}
return i.prototype.addSyncLocation = function(e) {
t.storeAttributes(e), t.appendIndexToArray(this.fileIndex + ".sync", e.syncIndex), this.syncLocations[e.syncIndex] = e
}, i.prototype.removeSyncLocation = function(e) {
t.removeIndexFromArray(this.fileIndex + ".sync", e.syncIndex), delete this.syncLocations[e.syncIndex]
}, i.prototype.addPublishLocation = function(e) {
t.storeAttributes(e), t.appendIndexToArray(this.fileIndex + ".publish", e.publishIndex), this.publishLocations[e.publishIndex] = e
}, i.prototype.removePublishLocation = function(e) {
t.removeIndexFromArray(this.fileIndex + ".publish", e.publishIndex), delete this.publishLocations[e.publishIndex]
}, i.prototype.composeTitle = function() {
var t = [];
return e.chain(this.syncLocations).sortBy(function(e) {
return e.provider.providerId
}).each(function(e) {
t.push('
')
}), 0 !== e.size(this.syncLocations) && t.push('
'), e.chain(this.publishLocations).sortBy(function(e) {
return e.provider.providerId
}).each(function(e) {
t.push('
')
}), 0 !== e.size(this.publishLocations) && t.push('
'), t.push(e.escape(this.title)), t.join("")
}, i
}), define("fileSystem", ["underscore", "utils", "classes/FileDescriptor", "storage"], function(e, t, n, i) {
var r = {};
return t.retrieveIndexArray("file.list").forEach(function(e) {
r[e] = new n(e)
}), Object.keys(i).forEach(function(e) {
var t = e.match(/(file\.\S+?)\.\S+/);
t && !r.hasOwnProperty(t[1]) && i.removeItem(e)
}), r
}), define("text!html/documentSelectorSettingsBlock.html", [], function() {
return '
Allows toggling document with keyboard shortcuts.
\n
'
}), define("extensions/documentSelector", ["jquery", "underscore", "crel", "utils", "classes/Extension", "mousetrap", "fileSystem", "text!html/documentSelectorSettingsBlock.html"], function(e, t, n, i, r, o, a, s) {
var l = new r("documentSelector", "Document Selector", !0);
l.settingsBlock = s, l.defaultConfig = {
orderBy: "mru",
shortcutPrevious: "Ctrl+[",
shortcutNext: "Ctrl+]"
}, l.onLoadSettings = function() {
i.setInputValue("#select-document-selector-orderby", l.config.orderBy), i.setInputValue("#input-document-selector-shortcut-previous", l.config.shortcutPrevious), i.setInputValue("#input-document-selector-shortcut-next", l.config.shortcutNext)
}, l.onSaveSettings = function(e, t) {
e.orderBy = i.getInputValue("#select-document-selector-orderby"), e.shortcutPrevious = i.getInputTextValue("#input-document-selector-shortcut-previous", t), e.shortcutNext = i.getInputTextValue("#input-document-selector-shortcut-next", t)
};
var c;
l.onFileMgrCreated = function(e) {
c = e
};
var u, d, p, h, f, m, g, v = ['
" data-file-index="<%= fileDesc.fileIndex %>">', ' ', " <%= fileDesc.composeTitle() %>", " ", " "].join(""),
b = t.debounce(function() {
var n = t.chain(a).sortBy(h).reduce(function(e, n) {
return e + t.template(v, {
fileDesc: n,
isCurrent: n === f
})
}, "").value();
u.innerHTML = n, p = [], d = {}, t.each(u.querySelectorAll("li"), function(t) {
var n = e(t);
p.push(n);
var i = a[n.data("fileIndex")];
d[i.fileIndex] = n
})
}, 50);
return l.onFileSelected = function(e) {
f = e, b()
}, l.onFileCreated = b, l.onFileDeleted = b, l.onTitleChanged = b, l.onSyncExportSuccess = b, l.onSyncRemoved = b, l.onNewPublishSuccess = b, l.onPublishRemoved = b, l.onReady = function() {
g = e("#wmd-input"), "title" == l.config.orderBy ? h = function(e) {
return e.title.toLowerCase()
} : "mru" == l.config.orderBy && (h = function(e) {
return -e.selectTime
}), u = n("ul", {
"class": "dropdown-menu dropdown-file-selector"
}), document.querySelector(".navbar").appendChild(n("div", n("div", {
"data-toggle": "dropdown"
}), u));
var i = e(u).dropdown(),
r = e(".document-panel .collapse-button");
r.prop("title", t.template("<%= title %> <%= shortcutPrevious %> <%= shortcutNext %>", {
title: r.prop("title"),
shortcutPrevious: l.config.shortcutPrevious,
shortcutNext: l.config.shortcutNext
}));
var s = l.config.shortcutPrevious.toLowerCase();
o.bind(s, function() {
void 0 === m && (i.dropdown("toggle"), m = d[f.fileIndex]);
var e = t.indexOf(p, m) - 1;
return -2 === e && (e = -1), m = p[(e + p.length) % p.length], setTimeout(function() {
m.find("a").focus()
}, 10), !1
});
var v = l.config.shortcutNext.toLowerCase();
o.bind(l.config.shortcutNext.toLowerCase(), function() {
void 0 === m && (i.dropdown("toggle"), m = d[f.fileIndex]);
var e = t.indexOf(p, m) + 1;
return m = p[e % p.length], setTimeout(function() {
m.find("a").focus()
}, 10), !1
});
var b = s.indexOf("+"),
y = -1 === b ? s : s.substring(0, b),
x = v.indexOf("+"),
w = -1 === x ? v : v.substring(0, x);
o.bind([y, w], function() {
void 0 !== m && m.find("a").click()
}, "keyup"), i.on("click", "a", function() {
m = void 0;
var t = e(this.parentNode),
n = a[t.data("fileIndex")];
t.hasClass("disabled") ? g.focus() : c.selectFile(n)
})
}, l
}), define("classes/FolderDescriptor", ["underscore", "utils", "storage", "fileSystem"], function(e, t, n, i) {
function r(r, o) {
this.folderIndex = r, this._name = o || n[r + ".name"], this.fileList = {}, e.each(t.retrieveIndexArray(r + ".files"), function(e) {
try {
var n = i[e];
n.folder = this, this.fileList[e] = n
} catch(o) {
t.removeIndexFromArray(r + ".files", e)
}
}, this), Object.defineProperty(this, "name", {
get: function() {
return this._name
},
set: function(e) {
this._name = e, n[this.folderIndex + ".name"] = e
}
})
}
return r.prototype.addFile = function(e) {
e.folder = this, t.appendIndexToArray(this.folderIndex + ".files", e.fileIndex), this.fileList[e.fileIndex] = e
}, r.prototype.removeFile = function(e) {
e.folder = void 0, t.removeIndexFromArray(this.folderIndex + ".files", e.fileIndex), delete this.fileList[e.fileIndex]
}, r
}), define("folderList", ["underscore", "utils", "storage", "classes/FolderDescriptor", "storage"], function(e, t, n, i) {
var r = {};
return t.retrieveIndexArray("folder.list").forEach(function(e) {
r[e] = new i(e)
}), Object.keys(n).forEach(function(e) {
var t = e.match(/(folder\.\S+?)\.\S+/);
t && !r.hasOwnProperty(t[1]) && n.removeItem(e)
}), r
}), define("extensions/documentPanel", ["jquery", "underscore", "utils", "classes/Extension", "folderList", "fileSystem"], function(e, t, n, i, r, o) {
function a(n) {
if(n != y) {
if(y = n, b.scrollTop = 0, !n) return h.addClass("hide"), void d.removeClass("hide");
var i = n.toLowerCase().split(/\s+/);
t.each(p.querySelectorAll(".file"), function(n) {
var r = e(n),
o = r.text().toLowerCase();
r.toggle(!t.some(i, function(e) {
return -1 === o.indexOf(e)
}))
}), h.removeClass("hide"), d.addClass("hide")
}
}
var s, l = new i("documentPanel", "Document Panel");
l.onFileMgrCreated = function(e) {
s = e
};
var c, u, d, p, h, f, m = ['
', ' ', " <%= _.size(folderDesc.fileList) %>", "
", ' <%= folderDesc.name %>', " ", '
', " <%= fileListHtml %>", "
"].join(""),
g = ['
"', ' data-file-index="<%= fileDesc.fileIndex %>">', " <%= fileDesc.composeTitle() %>", " "].join(""),
v = t.debounce(function() {
var e = t.filter(o, function(e) {
return void 0 === e.folder
}),
n = t.chain(e).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + "
" + t.template(g, {
fileDesc: n,
selectedFileDesc: f
}) + " "
}, "").value();
n = n && '
", t.chain(r).sortBy(function(e) {
return e.name.toLowerCase()
}).each(function(e) {
var i = t.chain(e.fileList).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + "
" + t.template(g, {
fileDesc: n,
selectedFileDesc: f
}) + " "
}, "").value();
i = i && '
", n += t.template(m, {
folderDesc: e,
fileListHtml: i,
id: e.folderIndex.replace(".", "")
})
}), u.innerHTML = n;
var i = t.chain(o).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + "
" + t.template(g, {
fileDesc: n,
selectedFileDesc: f
}) + " "
}, "").value();
i = '
", p.innerHTML = i
}, 50);
l.onFileSelected = function(e) {
f = e, v()
}, l.onFileCreated = v, l.onFileDeleted = v, l.onTitleChanged = v, l.onSyncExportSuccess = v, l.onSyncRemoved = v, l.onNewPublishSuccess = v, l.onPublishRemoved = v, l.onFoldersChanged = v;
var b, y = "";
return l.onReady = function() {
c = document.querySelector(".document-panel"), b = c.querySelector(".panel-content"), u = c.querySelector(".document-list"), d = e(u), p = c.querySelector(".document-list-filtered"), h = e(p), e(c).on("show.layout.toggle", function() {
var t = f.folder;
void 0 !== t && e(c.querySelector(".file-list." + t.folderIndex.replace(".", ""))).collapse("show")
}).on("shown.layout.toggle", function() {
var e = u.querySelector(".file.active");
e && (b.scrollTop += e.getBoundingClientRect().top - 240)
}).on("hidden.layout.toggle", function() {
t.val(""), a("")
}).on("click", ".file", function() {
var t = e(this),
n = o[t.data("fileIndex")];
n && n !== f && s.selectFile(n)
});
var t = e(c.querySelector(".search-bar .form-control"));
t.bind("propertychange keyup input paste", function() {
a(t.val())
})
}, l
}), define("extensions/documentManager", ["jquery", "underscore", "constants", "utils", "storage", "classes/Extension", "classes/FolderDescriptor", "folderList", "fileSystem"], function(e, t, n, i, r, o, a, s, l) {
function c() {
N = [], I = [], t.each(v.querySelectorAll('input[type="checkbox"]:checked'), function(t) {
var n = e(t.parentNode.parentNode),
i = s[n.data("folderIndex")],
r = l[n.data("fileIndex")];
void 0 !== i ? N.push(i) : void 0 !== r && I.push(r)
})
}
function u() {
if(0 === t.size(I)) return void d();
var n = t.chain(I).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + t.template(E, {
fileDesc: n
})
}, "").value();
b.innerHTML = '
", e(g.querySelectorAll(".document-list")).addClass("hide"), e(g.querySelectorAll(".confirm-delete, .selected-document-list")).removeClass("hide")
}
function d() {
t.each(I, function(e) {
e.folder && e.folder.removeFile(e), p.deleteFile(e)
}), t.each(N, function(e) {
i.removeIndexFromArray("folder.list", e.folderIndex), delete s[e.folderIndex]
}), f.onFoldersChanged()
}
var p, h = new o("documentManager", "Document Manager", !1, !0);
h.onFileMgrCreated = function(e) {
p = e
};
var f;
h.onEventMgrCreated = function(e) {
f = e
};
var m, g, v, b, y, x, w, S, C, _ = ['
', ' ', ' ', ' ', '<%= _.size(folderDesc.fileList) %>
', ' ', "<%= folderDesc.name %>
", ' ', '
<%= fileListHtml %>
'].join(""),
k = ['
', ' ', ' ', ' ', '<%= fileDesc.composeTitle() %>
', ' '].join(""),
T = ['
', '<%= _.size(folderDesc.fileList) %>
', ' ', "<%= folderDesc.name %>
"].join(""),
E = ['
', '<%= fileDesc.composeTitle() %>
'].join(""),
I = [],
N = [],
D = t.debounce(function() {
c(), y.toggleClass("disabled", 0 === t.size(s) || 0 === t.size(I)), x.toggleClass("disabled", 0 === t.size(N) && 0 === t.size(I))
}, 50),
L = t.debounce(function() {
if(m !== !1) {
D(), S.text(t.size(l)), C.text(t.size(s) + 1), w = t.filter(l, function(e) {
return void 0 === e.folder
});
var e = ['
', ' ', '', t.size(w), "
", ' ', "ROOT folder
"].join(""),
n = t.chain(w).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + t.template(k, {
fileDesc: n
})
}, "").value();
n = n && '
", e += '
' + n + "
", t.chain(s).sortBy(function(e) {
return e.name.toLowerCase()
}).each(function(n) {
var i = t.chain(n.fileList).sortBy(function(e) {
return e.title.toLowerCase()
}).reduce(function(e, n) {
return e + t.template(k, {
fileDesc: n
})
}, "").value();
i = i && '
", e += t.template(_, {
folderDesc: n,
fileListHtml: i,
id: n.folderIndex.replace(".", "")
})
}), v.innerHTML = e
}
}, 50);
return h.onFileCreated = L, h.onFileDeleted = L, h.onSyncExportSuccess = L, h.onSyncRemoved = L, h.onNewPublishSuccess = L, h.onPublishRemoved = L, h.onFoldersChanged = L, h.onTitleChanged = function(t) {
m !== !1 && (e(v).find('[data-file-index="' + t.fileIndex + '"] .name').html(t.composeTitle()).removeClass("hide"), e(v.querySelectorAll(".input-rename")).addClass("hide"))
}, h.onReady = function() {
g = document.querySelector(".modal-document-manager"), v = g.querySelector(".list-group.document-list"), S = e(g.querySelectorAll(".document-count")), C = e(g.querySelectorAll(".folder-count")), b = g.querySelector(".list-group.selected-document-list");
var o = g.querySelector(".list-group.select-folder-list");
e(g).on("show.bs.modal", function() {
m = !0, L(), setTimeout(function() {
e(v.querySelectorAll(".root-folder")).click()
}, 250)
}).on("hide.bs.modal", function() {
m = !1, v.innerHTML = ""
}), e(g.querySelectorAll(".action-create-folder")).click(function() {
var o;
do o = "folder." + i.randomString(); while (t.has(s, o));
r[o + ".name"] = n.DEFAULT_FOLDER_NAME;
var l = new a(o, n.DEFAULT_FOLDER_NAME);
i.appendIndexToArray("folder.list", o), s[o] = l, f.onFoldersChanged(), setTimeout(function() {
var t = e(g.querySelector('[data-folder-index="' + o + '"] .button-rename')).click();
g.scrollTop += t.offset().top - 50
}, 60)
}), e(g.querySelectorAll(".action-select-all")).click(function() {
e(v.querySelectorAll('input[type="checkbox"]')).prop("checked", !0).change()
}), e(g.querySelectorAll(".action-unselect-all")).click(function() {
e(v.querySelectorAll('input[type="checkbox"]')).prop("checked", !1).change()
});
var p = e(g.querySelectorAll(".action-delete-items")).click(function() {
x.hasClass("disabled") || (c(), u())
});
x = p.parent(), e(g.querySelectorAll(".action-delete-items-confirm")).click(function() {
d(), e(g.querySelectorAll(".document-list")).removeClass("hide"), e(g.querySelectorAll(".confirm-delete, .selected-document-list")).addClass("hide")
});
var h = e(g.querySelectorAll(".action-move-items")).click(function() {
if(!y.hasClass("disabled")) {
c();
var n = ['
', '', t.size(w), "
", ' ', "ROOT folder
"].join("");
n += t.chain(s).sortBy(function(e) {
return e.name.toLowerCase()
}).reduce(function(e, n) {
return e + t.template(T, {
folderDesc: n
})
}, "").value(), o.innerHTML = n, t.each(o.querySelectorAll(".folder"), function(n) {
n = e(n), n.click(function() {
var i = s[n.data("folderIndex")];
t.each(I, function(e) {
e.folder && e.folder.removeFile(e), i && i.addFile(e)
}), f.onFoldersChanged(), e(g.querySelectorAll(".document-list")).removeClass("hide"), e(g.querySelectorAll(".choose-folder, .select-folder-list")).addClass("hide")
})
}), e(g.querySelectorAll(".document-list")).addClass("hide"), e(g.querySelectorAll(".choose-folder, .select-folder-list")).removeClass("hide")
}
});
y = h.parent(), e(g.querySelectorAll(".action-cancel")).click(function() {
e(g.querySelectorAll(".document-list")).removeClass("hide"), e(g.querySelectorAll(".confirm-delete, .choose-folder, .selected-document-list, .select-folder-list")).addClass("hide")
}), e(v).on("click", ".button-delete", function(t) {
t.stopPropagation();
var n = e(this),
i = n.parent(),
r = s[i.data("folderIndex")],
o = l[i.data("fileIndex")];
I = [], N = [], r ? (N.push(r), I = r.fileList) : o && I.push(o), u()
}).on("click", ".button-rename", function(t) {
t.stopPropagation();
var n, i = e(this.parentNode),
r = s[i.data("folderIndex")],
o = l[i.data("fileIndex")];
r ? n = r.name : o && (n = o.title), i.find(".name").addClass("hide"), i.find(".input-rename").removeClass("hide").val(n)[0].select()
}).on("blur keyup", ".input-rename", function(t) {
function n() {
var t = i.parent(),
n = e.trim(i.val()),
r = s[t.data("folderIndex")],
o = l[t.data("fileIndex")];
n && r && n != r.name ? (r.name = n, f.onFoldersChanged()) : n && o && n != o.title ? (o.title = n, f.onTitleChanged(o)) : (i.addClass("hide"), t.find(".name").removeClass("hide"))
}
var i = e(this);
void 0 === t.keyCode ? n() : 13 == t.keyCode ? (n(), t.stopPropagation()) : 27 == t.keyCode && (i.val(""), n(), t.stopPropagation())
}).on("click", ".file .checkbox", function(e) {
e.stopPropagation()
}).on("change", ".file .checkbox input", function() {
e(this).parents(".file-list").prev().find(".checkbox input").prop("checked", !1), D()
}).on("click", ".folder .checkbox", function(e) {
e.stopPropagation()
}).on("change", ".folder .checkbox input", function() {
e(this).parents(".folder").next().find(".checkbox input").prop("checked", this.checked), D()
})
}, h
}), define("extensions/workingIndicator", ["jquery", "underscore", "crel", "classes/Extension"], function(e, t, n, i) {
var r, o, a = new i("workingIndicator", "Working Indicator"),
s = ["@<%= prefix %>keyframes <%= name %> {", " 0% { opacity:<%= z %>; }", " <%= start %>.01% { opacity:<%= alpha %>; }", " <%= start %>.02% { opacity:1; }", " <%= ((start + trail) % 100) %>.01% { opacity:<%= alpha %>; }", " 100% { opacity:<%= z %>; }", "}"].join("\n");
return a.onAsyncRunning = function(e) {
r.toggleClass("working", e), o.toggleClass("hide", !e)
}, a.onReady = function() {
function i(e) {
e.z = Math.max(1 - (1 - e.alpha) / e.trail * (100 - e.start), e.alpha), a += t.template(s, t.extend({
prefix: ""
}, e)), a += t.template(s, t.extend({
prefix: "-webkit-"
}, e))
}
var a = "";
r = e(document.body), o = e('
'), e(".working-indicator").append(o);
for(var l = 0; 3 > l; l++) {
var c = "working-indicator-bar" + l;
i({
name: c,
alpha: .25,
start: 20 * l,
trail: 50
});
var u = c + " 0.7s linear infinite";
o.append(e('
').css({
animation: u,
"-webkit-animation": u
}))
}
var d = n("style", {
type: "text/css"
});
document.head.appendChild(d), d.innerHTML = a
}, a
}), function(e) {
var t = function() {
return !1 === e.support.boxModel && e.support.objectAll && $support.leadingWhitespace
}();
e.jGrowl = function(t, n) {
0 == e("#jGrowl").size() && e('
').addClass(n && n.position ? n.position : e.jGrowl.defaults.position).appendTo("body"), e("#jGrowl").jGrowl(t, n)
}, e.fn.jGrowl = function(t, n) {
if(e.isFunction(this.each)) {
var i = arguments;
return this.each(function() {
void 0 == e(this).data("jGrowl.instance") && (e(this).data("jGrowl.instance", e.extend(new e.fn.jGrowl, {
notifications: [],
element: null,
interval: null
})), e(this).data("jGrowl.instance").startup(this)), e.isFunction(e(this).data("jGrowl.instance")[t]) ? e(this).data("jGrowl.instance")[t].apply(e(this).data("jGrowl.instance"), e.makeArray(i).slice(1)) : e(this).data("jGrowl.instance").create(t, n)
})
}
}, e.extend(e.fn.jGrowl.prototype, {
defaults: {
pool: 0,
header: "",
group: "",
sticky: !1,
position: "top-right",
glue: "after",
theme: "default",
themeState: "highlight",
corners: "10px",
check: 250,
life: 3e3,
closeDuration: "normal",
openDuration: "normal",
easing: "swing",
closer: !0,
closeTemplate: "×",
closerTemplate: "
[ close all ]
",
log: function() {},
beforeOpen: function() {},
afterOpen: function() {},
open: function() {},
beforeClose: function() {},
close: function() {},
animateOpen: {
opacity: "show"
},
animateClose: {
opacity: "hide"
}
},
notifications: [],
element: null,
interval: null,
create: function(t, n) {
var n = e.extend({}, this.defaults, n);
"undefined" != typeof n.speed && (n.openDuration = n.speed, n.closeDuration = n.speed), this.notifications.push({
message: t,
options: n
}), n.log.apply(this.element, [this.element, t, n])
},
render: function(t) {
var n = this,
i = t.message,
r = t.options;
r.themeState = "" == r.themeState ? "" : "ui-state-" + r.themeState;
var t = e('
' + r.closeTemplate + '
' + i + "
").data("jGrowl", r).addClass(r.theme).children("div.jGrowl-close").bind("click.jGrowl", function() {
e(this).parent().trigger("jGrowl.beforeClose")
}).parent();
e(t).bind("mouseover.jGrowl", function() {
e("div.jGrowl-notification", n.element).data("jGrowl.pause", !0)
}).bind("mouseout.jGrowl", function() {
e("div.jGrowl-notification", n.element).data("jGrowl.pause", !1)
}).bind("jGrowl.beforeOpen", function() {
0 != r.beforeOpen.apply(t, [t, i, r, n.element]) && e(this).trigger("jGrowl.open")
}).bind("jGrowl.open", function() {
0 != r.open.apply(t, [t, i, r, n.element]) && ("after" == r.glue ? e("div.jGrowl-notification:last", n.element).after(t) : e("div.jGrowl-notification:first", n.element).before(t), e(this).animate(r.animateOpen, r.openDuration, r.easing, function() {
e.support.opacity === !1 && this.style.removeAttribute("filter"), null != e(this).data("jGrowl") && (e(this).data("jGrowl").created = new Date), e(this).trigger("jGrowl.afterOpen")
}))
}).bind("jGrowl.afterOpen", function() {
r.afterOpen.apply(t, [t, i, r, n.element])
}).bind("jGrowl.beforeClose", function() {
0 != r.beforeClose.apply(t, [t, i, r, n.element]) && e(this).trigger("jGrowl.close")
}).bind("jGrowl.close", function() {
e(this).data("jGrowl.pause", !0), e(this).animate(r.animateClose, r.closeDuration, r.easing, function() {
e.isFunction(r.close) ? r.close.apply(t, [t, i, r, n.element]) !== !1 && e(this).remove() : e(this).remove()
})
}).trigger("jGrowl.beforeOpen"), "" != r.corners && void 0 != e.fn.corner && e(t).corner(r.corners), e("div.jGrowl-notification:parent", n.element).size() > 1 && 0 == e("div.jGrowl-closer", n.element).size() && 0 != this.defaults.closer && e(this.defaults.closerTemplate).addClass("jGrowl-closer " + this.defaults.themeState + " ui-corner-all").addClass(this.defaults.theme).appendTo(n.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing).bind("click.jGrowl", function() {
e(this).siblings().trigger("jGrowl.beforeClose"), e.isFunction(n.defaults.closer) && n.defaults.closer.apply(e(this).parent()[0], [e(this).parent()[0]])
})
},
update: function() {
e(this.element).find("div.jGrowl-notification:parent").each(function() {
void 0 != e(this).data("jGrowl") && void 0 != e(this).data("jGrowl").created && e(this).data("jGrowl").created.getTime() + parseInt(e(this).data("jGrowl").life) < (new Date).getTime() && 1 != e(this).data("jGrowl").sticky && (void 0 == e(this).data("jGrowl.pause") || 1 != e(this).data("jGrowl.pause")) && e(this).trigger("jGrowl.beforeClose")
}), this.notifications.length > 0 && (0 == this.defaults.pool || e(this.element).find("div.jGrowl-notification:parent").size() < this.defaults.pool) && this.render(this.notifications.shift()), e(this.element).find("div.jGrowl-notification:parent").size() < 2 && e(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose, this.defaults.speed, this.defaults.easing, function() {
e(this).remove()
})
},
startup: function(n) {
this.element = e(n).addClass("jGrowl").append('
'), this.interval = setInterval(function() {
e(n).data("jGrowl.instance").update()
}, parseInt(this.defaults.check)), t && e(this.element).addClass("ie6")
},
shutdown: function() {
e(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove(), clearInterval(this.interval)
},
close: function() {
e(this.element).find("div.jGrowl-notification").each(function() {
e(this).trigger("jGrowl.beforeClose")
})
}
}), e.jGrowl.defaults = e.fn.jGrowl.prototype.defaults
}(jQuery), define("jgrowl", ["jquery"], function(e) {
return function() {
var t;
return t || e.jQuery.jGrowl
}
}(this)), define("text!html/notificationsSettingsBlock.html", [], function() {
return '
Shows notification messages in the bottom-right corner of the\n screen.
\n
'
}), define("extensions/notifications", ["jquery", "underscore", "utils", "logger", "classes/Extension", "jgrowl", "text!html/notificationsSettingsBlock.html"], function(e, t, n, i, r, o, a) {
function s() {
h === !1 && (o.defaults.life = u.config.timeout, o.defaults.closer = !1, o.defaults.closeTemplate = "", o.defaults.position = "bottom-right", h = !0)
}
function l(e, n, r) {
if(i.info(e), s(), e) {
var a = e.indexOf("|");
(-1 === a || (e = e.substring(0, a))) && (r = r || {}, n = n || "icon-info-circled", o("
" + t.escape(e).replace(/\n/g, "
"), r))
}
}
function c() {
f !== !1 && (d.toggleClass("hide", !m), p.toggleClass("hide", m))
}
var u = new r("notifications", "Notifications");
u.settingsBlock = a, u.defaultConfig = {
timeout: 8e3
}, u.onLoadSettings = function() {
n.setInputValue("#input-notifications-timeout", u.config.timeout)
}, u.onSaveSettings = function(e, t) {
e.timeout = n.getInputIntValue("#input-notifications-timeout", t, 1, 6e4)
};
var d, p, h = !1,
f = !1;
u.onReady = function() {
f = !0, d = e(".navbar .offline-status"), p = e(".navbar .extension-buttons"), c()
}, u.onMessage = function(e) {
l(e)
}, u.onError = function(e) {
i.error(e), t.isString(e) ? l(e, "icon-attention") : t.isObject(e) && l(e.message, "icon-attention")
};
var m = !1;
return u.onOfflineChanged = function(e) {
m = e, c(), m === !0 ? l("You are offline.", "icon-attention-circled msg-offline") : l("You are back online!", "icon-signal")
}, u.onSyncImportSuccess = function(e, n) {
var i = t.map(e, function(e) {
return e.title
}).join(", ");
l(i + " imported successfully from " + n.providerName + ".")
}, u.onSyncExportSuccess = function(e, t) {
l('"' + e.title + '" will now be synchronized on ' + t.provider.providerName + ".")
}, u.onSyncRemoved = function(e, t) {
l(t.provider.providerName + " synchronized location has been removed.")
}, u.onPublishSuccess = function(e) {
l('"' + e.title + '" successfully published.')
}, u.onNewPublishSuccess = function(e, t) {
l('"' + e.title + '" is now published on ' + t.provider.providerName + ".")
}, u.onPublishRemoved = function(e, t) {
l(t.provider.providerName + " publish location has been removed.")
}, u
}), define("text!html/umlDiagramsSettingsBlock.html", [], function() {
return '
Creates UML diagrams from plain text description.
\n\n
Sequence diagrams:
\n
```sequence\nAlice->Bob: Hello Bob, how are you?\nBob-->Alice: I am good thanks!\n```
\n\n\n
Flow charts:
\n
```flow\nst=>start: Start\ne=>end\nop=>operation: My Operation\ncond=>condition: Yes or No?\nst->op->cond\ncond(yes)->e\ncond(no)->op\n```
\n\n
\n Note: Markdown Extra extension has to be enabled with GFM fenced code blocks option.\n \n\n'
}), define("text!bower-libs/js-sequence-diagrams/build/sequence-diagram-min.js", [], function() {
return '/** js sequence diagrams 1.0.4\n * http://bramp.github.io/js-sequence-diagrams/\n * (c) 2012-2013 Andrew Brampton (bramp.net)\n * @license Simplified BSD license.\n */\n!function(){function Diagram(){this.title=void 0,this.actors=[],this.signals=[]}function ParseError(message,hash){_.extend(this,hash),this.name="ParseError",this.message=message||""}Diagram.prototype.getActor=function(alias){var s=/^(.+) as (\\S+)$/i.exec(alias.trim());s?(name=s[1].trim(),alias=s[2].trim()):name=alias.trim(),name=name.replace(/\\\\n/gm,"\\n");var i,actors=this.actors;for(i in actors)if(actors[i].alias==alias)return actors[i];return i=actors.push(new Diagram.Actor(alias,name,actors.length)),actors[i-1]},Diagram.prototype.setTitle=function(title){this.title=title},Diagram.prototype.addSignal=function(signal){this.signals.push(signal)},Diagram.Actor=function(alias,name,index){this.alias=alias,this.name=name,this.index=index},Diagram.Signal=function(actorA,signaltype,actorB,message){this.type="Signal",this.actorA=actorA,this.actorB=actorB,this.linetype=3&signaltype,this.arrowtype=3&signaltype>>2,this.message=message},Diagram.Signal.prototype.isSelf=function(){return this.actorA.index==this.actorB.index},Diagram.Note=function(actor,placement,message){if(this.type="Note",this.actor=actor,this.placement=placement,this.message=message,this.hasManyActors()&&actor[0]==actor[1])throw new Error("Note should be over two different actors")},Diagram.Note.prototype.hasManyActors=function(){return _.isArray(this.actor)},Diagram.LINETYPE={SOLID:0,DOTTED:1},Diagram.ARROWTYPE={FILLED:0,OPEN:1},Diagram.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2};var grammar=function(){function Parser(){this.yy={}}var parser={trace:function(){},yy:{},symbols_:{error:2,start:3,document:4,EOF:5,line:6,statement:7,NL:8,participant:9,actor:10,signal:11,note_statement:12,title:13,message:14,note:15,placement:16,over:17,actor_pair:18,",":19,left_of:20,right_of:21,signaltype:22,ACTOR:23,linetype:24,arrowtype:25,LINE:26,DOTLINE:27,ARROW:28,OPENARROW:29,MESSAGE:30,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"NL",9:"participant",13:"title",15:"note",17:"over",19:",",20:"left_of",21:"right_of",23:"ACTOR",26:"LINE",27:"DOTLINE",28:"ARROW",29:"OPENARROW",30:"MESSAGE"},productions_:[0,[3,2],[4,0],[4,2],[6,1],[6,1],[7,2],[7,1],[7,1],[7,2],[12,4],[12,4],[18,1],[18,3],[16,1],[16,1],[11,4],[10,1],[22,2],[22,1],[24,1],[24,1],[25,1],[25,1],[14,1]],performAction:function(yytext,yyleng,yylineno,yy,yystate,$$){var $0=$$.length-1;switch(yystate){case 1:return yy;case 4:break;case 6:$$[$0];break;case 7:yy.addSignal($$[$0]);break;case 8:yy.addSignal($$[$0]);break;case 9:yy.setTitle($$[$0]);break;case 10:this.$=new Diagram.Note($$[$0-1],$$[$0-2],$$[$0]);break;case 11:this.$=new Diagram.Note($$[$0-1],Diagram.PLACEMENT.OVER,$$[$0]);break;case 12:this.$=$$[$0];break;case 13:this.$=[$$[$0-2],$$[$0]];break;case 14:this.$=Diagram.PLACEMENT.LEFTOF;break;case 15:this.$=Diagram.PLACEMENT.RIGHTOF;break;case 16:this.$=new Diagram.Signal($$[$0-3],$$[$0-2],$$[$0-1],$$[$0]);break;case 17:this.$=yy.getActor($$[$0]);break;case 18:this.$=$$[$0-1]|$$[$0]<<2;break;case 19:this.$=$$[$0];break;case 20:this.$=Diagram.LINETYPE.SOLID;break;case 21:this.$=Diagram.LINETYPE.DOTTED;break;case 22:this.$=Diagram.ARROWTYPE.FILLED;break;case 23:this.$=Diagram.ARROWTYPE.OPEN;break;case 24:this.$=$$[$0].substring(1).trim().replace(/\\\\n/gm,"\\n")}},table:[{3:1,4:2,5:[2,2],8:[2,2],9:[2,2],13:[2,2],15:[2,2],23:[2,2]},{1:[3]},{5:[1,3],6:4,7:5,8:[1,6],9:[1,7],10:11,11:8,12:9,13:[1,10],15:[1,12],23:[1,13]},{1:[2,1]},{5:[2,3],8:[2,3],9:[2,3],13:[2,3],15:[2,3],23:[2,3]},{5:[2,4],8:[2,4],9:[2,4],13:[2,4],15:[2,4],23:[2,4]},{5:[2,5],8:[2,5],9:[2,5],13:[2,5],15:[2,5],23:[2,5]},{10:14,23:[1,13]},{5:[2,7],8:[2,7],9:[2,7],13:[2,7],15:[2,7],23:[2,7]},{5:[2,8],8:[2,8],9:[2,8],13:[2,8],15:[2,8],23:[2,8]},{14:15,30:[1,16]},{22:17,24:18,26:[1,19],27:[1,20]},{16:21,17:[1,22],20:[1,23],21:[1,24]},{5:[2,17],8:[2,17],9:[2,17],13:[2,17],15:[2,17],19:[2,17],23:[2,17],26:[2,17],27:[2,17],30:[2,17]},{5:[2,6],8:[2,6],9:[2,6],13:[2,6],15:[2,6],23:[2,6]},{5:[2,9],8:[2,9],9:[2,9],13:[2,9],15:[2,9],23:[2,9]},{5:[2,24],8:[2,24],9:[2,24],13:[2,24],15:[2,24],23:[2,24]},{10:25,23:[1,13]},{23:[2,19],25:26,28:[1,27],29:[1,28]},{23:[2,20],28:[2,20],29:[2,20]},{23:[2,21],28:[2,21],29:[2,21]},{10:29,23:[1,13]},{10:31,18:30,23:[1,13]},{23:[2,14]},{23:[2,15]},{14:32,30:[1,16]},{23:[2,18]},{23:[2,22]},{23:[2,23]},{14:33,30:[1,16]},{14:34,30:[1,16]},{19:[1,35],30:[2,12]},{5:[2,16],8:[2,16],9:[2,16],13:[2,16],15:[2,16],23:[2,16]},{5:[2,10],8:[2,10],9:[2,10],13:[2,10],15:[2,10],23:[2,10]},{5:[2,11],8:[2,11],9:[2,11],13:[2,11],15:[2,11],23:[2,11]},{10:36,23:[1,13]},{30:[2,13]}],defaultActions:{3:[2,1],23:[2,14],24:[2,15],26:[2,18],27:[2,22],28:[2,23],36:[2,13]},parseError:function(str,hash){if(!hash.recoverable)throw new Error(str);this.trace(str)},parse:function(input){function lex(){var token;return token=self.lexer.lex()||EOF,"number"!=typeof token&&(token=self.symbols_[token]||token),token}var self=this,stack=[0],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,recovering=0,TERROR=2,EOF=1;this.lexer.setInput(input),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var yyloc=this.lexer.yylloc;lstack.push(yyloc);var ranges=this.lexer.options&&this.lexer.options.ranges;this.parseError="function"==typeof this.yy.parseError?this.yy.parseError:Object.getPrototypeOf(this).parseError;for(var symbol,preErrorSymbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((null===symbol||"undefined"==typeof symbol)&&(symbol=lex()),action=table[state]&&table[state][symbol]),"undefined"==typeof action||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("\'"+this.terminals_[p]+"\'");errStr=this.lexer.showPosition?"Parse error on line "+(yylineno+1)+":\\n"+this.lexer.showPosition()+"\\nExpecting "+expected.join(", ")+", got \'"+(this.terminals_[symbol]||symbol)+"\'":"Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"\'"+(this.terminals_[symbol]||symbol)+"\'"),this.parseError(errStr,{text:this.lexer.match,token:this.terminals_[symbol]||symbol,line:this.lexer.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(this.lexer.yytext),lstack.push(this.lexer.yylloc),stack.push(action[1]),symbol=null,preErrorSymbol?(symbol=preErrorSymbol,preErrorSymbol=null):(yyleng=this.lexer.yyleng,yytext=this.lexer.yytext,yylineno=this.lexer.yylineno,yyloc=this.lexer.yylloc,recovering>0&&recovering--);break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.call(yyval,yytext,yyleng,yylineno,this.yy,action[1],vstack,lstack),"undefined"!=typeof r)return r;len&&(stack=stack.slice(0,2*-1*len),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0}},lexer=function(){var lexer={EOF:1,parseError:function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},setInput:function(input){return this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\\r\\n?|\\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},unput:function(ch){var len=ch.length,lines=ch.split(/(?:\\r\\n?|\\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len-1),this.offset-=len;var oldLines=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\\n/g,"")},upcomingInput:function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\\n/g,"")},showPosition:function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\\n"+c+"^"},test_match:function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\\r\\n?|\\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i
match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r?r:this.lex()},begin:function(condition){this.conditionStack.push(condition)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(condition){this.begin(condition)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return 8;case 1:break;case 2:break;case 3:return 9;case 4:return 20;case 5:return 21;case 6:return 17;case 7:return 15;case 8:return 13;case 9:return 19;case 10:return 23;case 11:return 27;case 12:return 26;case 13:return 29;case 14:return 28;case 15:return 30;case 16:return 5;case 17:return"INVALID"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:title\\b)/i,/^(?:,)/i,/^(?:[^\\->:\\n,]+)/i,/^(?:--)/i,/^(?:-)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:[^#\\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return lexer}();return parser.lexer=lexer,Parser.prototype=parser,parser.Parser=Parser,new Parser}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=grammar,exports.Parser=grammar.Parser,exports.parse=function(){return grammar.parse.apply(grammar,arguments)},exports.main=function(args){args[1]||(console.log("Usage: "+args[0]+" FILE"),process.exit(1));var source=require("fs").readFileSync(require("path").normalize(args[1]),"utf8");return exports.parser.parse(source)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),ParseError.prototype=new Error,Diagram.ParseError=ParseError,grammar.parseError=function(message,hash){throw new ParseError(message,hash)},Diagram.parse=function(input){return grammar.yy=new Diagram,grammar.parse(input)},this.Diagram=Diagram}.call(this),"undefined"!=typeof jQuery&&function($){$.fn.sequenceDiagram=function(options){return this.each(function(){var $this=$(this),diagram=Diagram.parse($this.text());$this.html(""),diagram.drawSVG(this,options)})}}(jQuery),Raphael.registerFont({w:209,face:{"font-family":"daniel","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 8 0 0 0 0 0 0 0",ascent:"288",descent:"-72","x-height":"7",bbox:"-92.0373 -310.134 632 184.967","underline-thickness":"3.51562","underline-position":"-21.6211","unicode-range":"U+0009-U+F002"},glyphs:{" ":{w:179}," ":{w:179},"!":{d:"66,-306v9,3,18,11,19,24v-18,73,-20,111,-37,194v0,10,2,34,-12,34v-12,0,-18,-9,-18,-28v0,-85,23,-136,38,-214v1,-7,4,-10,10,-10xm25,-30v15,-1,28,34,5,35v-11,-1,-38,-36,-5,-35",w:115},\'"\':{d:"91,-214v-32,3,-25,-40,-20,-68v3,-16,7,-25,12,-27v35,13,14,56,8,95xm8,-231v4,-31,1,-40,18,-75v37,7,11,51,11,79v-3,3,-4,8,-5,13v-17,4,-16,-10,-24,-17",w:117},"#":{d:"271,-64v-30,26,-96,-7,-102,51v-6,2,-13,2,-24,-2v-2,-11,10,-21,2,-28v-14,5,-48,0,-48,22v0,23,-11,14,-29,10v-7,-6,6,-19,-1,-24r-32,4v-19,-8,-15,-24,5,-28r33,-6v4,0,24,-23,11,-27v-26,0,-63,14,-74,-10v3,-1,9,-17,16,-10v15,-8,81,4,89,-30v8,-14,16,-34,24,-38v23,9,24,38,5,49v37,24,55,-38,72,-43v19,10,20,23,-1,45v2,8,23,1,29,4v3,3,6,6,10,11v-14,13,-20,12,-45,12v-17,0,-16,17,-19,29v18,-7,49,3,67,-2v4,0,8,4,12,11xm161,-104v-30,-1,-44,10,-44,37v14,1,24,0,40,-5v0,-1,3,-10,8,-26v0,-4,-1,-6,-4,-6",w:285},$:{d:"164,-257v29,4,1,42,-3,50v5,5,38,13,41,24v8,4,6,15,-2,21v-18,3,-36,-17,-49,-17v-17,1,-31,40,-28,48v5,4,8,8,9,10v13,1,35,37,28,44v-10,21,-36,20,-65,28v-10,10,-12,40,-17,51v-9,-3,-28,1,-18,-17v0,-13,5,-24,-1,-35v-18,1,-59,-10,-42,-29v21,0,56,16,55,-16v5,-4,9,-18,9,-26v-14,-15,-55,-41,-53,-65v2,-33,56,-19,98,-26v10,-14,31,-43,38,-45xm93,-152v11,-10,15,-15,14,-29v-17,-3,-37,1,-43,6v10,12,20,19,29,23xm111,-103v-8,1,-11,12,-10,22v10,0,28,2,27,-8v0,-4,-13,-15,-17,-14",w:225},"%":{d:"181,-96v24,-7,67,-13,104,1v14,18,21,19,22,44v-13,43,-99,61,-146,36v-9,-9,-22,-11,-32,-29v0,-27,24,-53,52,-52xm139,-185v-9,68,-138,73,-131,-5v0,-3,3,-9,9,-17v13,1,27,1,17,-16v5,-39,63,0,93,-6v36,1,80,-9,102,11v15,32,12,32,-8,56v-16,21,-103,78,-152,125r-14,28v-23,11,-25,-7,-29,-20v34,-71,133,-98,171,-162v-13,-12,-52,-5,-61,1v0,1,1,3,3,5xm38,-190v0,34,55,29,70,8v0,-14,-20,-11,-32,-14v-14,-3,-24,-9,-40,-10v1,0,5,11,2,16xm172,-53v12,27,90,18,102,-5v-18,-7,-32,-10,-40,-10v-29,3,-57,-4,-62,15",w:308},"&":{d:"145,-82v17,-8,47,-15,71,-26v13,2,25,12,9,23v-23,7,-40,16,-53,27r0,6v13,8,30,21,36,38v0,8,-4,12,-11,12v-19,0,-43,-39,-59,-44v-30,12,-65,29,-97,32v-32,3,-45,-41,-23,-63v21,-20,52,-26,70,-48v-4,-31,-12,-47,9,-73v13,-16,20,-29,23,-39v15,-15,32,-22,51,-22v30,9,62,64,32,96v-2,3,-47,42,-69,48v-15,8,-11,9,0,22v6,7,10,11,11,11xm114,-138v25,-13,62,-38,74,-62v0,-9,-10,-31,-20,-29v-28,7,-60,42,-60,75v0,10,2,15,6,16xm99,-91v-18,10,-54,18,-59,45v26,5,61,-12,77,-22v-1,-5,-13,-23,-18,-23",w:253},"\'":{d:"36,-182v-36,7,-34,-61,-17,-80v15,1,21,19,21,20r-1,-1v0,0,-1,12,-5,35v1,5,3,17,2,26",w:63},"(":{d:"130,-306v13,2,23,43,-1,43v-49,43,-77,77,-90,148v5,49,27,67,64,101v4,14,5,6,2,19r-15,0v-35,-17,-79,-58,-79,-120v0,-58,66,-176,119,-191",w:120},")":{d:"108,-138v-2,73,-48,120,-98,153v-17,-5,-16,-20,-6,-31v52,-64,73,-62,74,-135v1,-42,-40,-98,-58,-128v0,-5,-1,-12,-2,-22v18,-18,25,0,42,27v25,39,50,66,48,136",w:120},"*":{d:"121,-271v15,-5,36,-8,40,9v-5,10,-31,19,-47,31v0,11,34,43,14,53v-18,8,-24,-24,-34,-20v-4,10,-4,19,-12,41v-25,7,-15,-30,-17,-47v-13,-1,-17,9,-46,30r-10,0v-20,-32,37,-43,54,-64v-10,-11,-36,-33,-16,-51v3,0,14,8,33,24v8,-10,26,-39,32,-42v14,7,15,23,9,36",w:177},"+":{d:"163,-64v-7,22,-65,2,-77,21v-2,10,-6,21,-11,35v-20,4,-21,-12,-19,-29v3,-23,-44,6,-39,-27v-8,-22,36,-8,49,-18v8,-13,6,-36,24,-40v19,-4,14,32,11,39v18,3,19,2,54,8v2,1,5,5,8,11",w:170},",":{d:"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102",w:97},"-":{d:"57,-94v19,4,55,-5,54,17v-15,23,-54,20,-91,15v-4,2,-13,-10,-11,-16v-1,-22,28,-15,48,-16",w:124},".":{d:"40,-48v21,20,21,44,-4,44v-33,0,-26,-24,-10,-44r14,0",w:67},"/":{d:"21,20v-22,-45,21,-95,41,-126v38,-57,115,-158,193,-201v2,0,4,3,7,11v11,29,-15,34,-25,55v-81,56,-189,208,-197,261r-19,0",w:275},0:{d:"78,-237v70,-47,269,-41,270,59v0,34,-11,53,-29,76v-13,35,-30,32,-85,64v-6,2,-10,6,-7,8v-73,14,-98,38,-173,1v-7,-13,-52,-48,-46,-88v9,-57,27,-75,70,-120xm123,-38v100,0,202,-46,195,-153v-32,-55,-144,-73,-211,-35v-16,34,-68,54,-53,108v6,25,1,22,-3,39v6,24,41,41,72,41",w:353},1:{d:"39,-208v0,-14,6,-59,29,-39v3,4,6,13,10,24r-22,128r8,87v-4,6,-9,3,-16,2v-44,-38,-9,-137,-9,-202",w:93},2:{d:"88,-35v47,-10,119,-24,168,-9v0,12,-23,13,-35,16v1,1,3,1,5,1v-74,8,-118,23,-194,23v-14,0,-20,-13,-21,-28v55,-40,83,-61,123,-104v26,-13,65,-67,71,-102v-1,-9,-11,-16,-22,-16v-20,-1,-120,29,-156,49v-10,-2,-30,-20,-10,-28v50,-21,111,-51,178,-48v25,10,44,22,36,39v12,30,-19,64,-34,83v-39,48,-37,39,-115,109v0,5,-3,8,-8,11v4,3,8,4,14,4",w:265},3:{d:"188,-282v34,-10,74,25,47,51v-19,32,-55,50,-92,70v28,14,116,25,108,70v8,14,-49,40,-63,48v-29,9,-130,22,-168,42v-6,-5,-19,-7,-12,-22v56,-36,175,-21,210,-76v-9,-20,-88,-42,-97,-33v-20,-1,-41,2,-56,-7r5,-21v56,-25,103,-36,137,-78v1,-1,2,-5,4,-11v-15,-14,-56,7,-79,0v-10,9,-73,22,-92,31v-11,-4,-28,-23,-13,-30v50,-22,96,-26,154,-37v0,-1,8,3,7,3",w:260},4:{d:"79,-249v-7,17,-29,75,-33,96v0,6,3,8,8,8v43,-2,111,6,141,-6v17,-47,20,-100,63,-148v9,4,16,7,21,10v-17,31,-44,95,-51,141v7,4,24,-4,23,10v-1,16,-29,12,-31,23v-10,22,-9,69,-7,103v-3,2,-7,5,-10,9v-47,-11,-23,-74,-16,-114v0,-4,-2,-6,-7,-6v-65,2,-89,13,-162,4v-22,-22,-2,-53,5,-76v16,-15,17,-57,35,-70v6,-1,21,11,21,16",w:267},5:{d:"185,-272v30,7,45,-8,53,18v1,16,-17,18,-34,14v0,0,-95,-11,-129,1v-6,9,-24,33,-29,54v76,10,171,5,214,47v11,11,22,30,5,52v-14,12,-30,14,-34,27v-26,11,-141,63,-157,60v-16,-2,-25,-19,-4,-27v48,-18,128,-39,170,-86v4,-14,-65,-41,-85,-41r-92,0v-10,-4,-66,-1,-57,-23v0,-23,23,-51,35,-83v11,-28,133,-10,144,-13",w:284},6:{d:"70,-64v9,-51,63,-74,123,-71v43,2,109,3,111,41r-25,47v0,1,1,2,2,3v-5,0,-39,10,-41,20v-15,3,-22,4,-22,11v-39,1,-77,20,-119,13v-42,-7,-35,-9,-77,-46v-56,-118,94,-201,176,-229v7,0,21,8,20,15v-2,17,-23,15,-43,24v-69,31,-119,72,-134,145v-5,25,36,68,78,64v59,-6,128,-18,153,-61v-7,-14,-13,-9,-32,-21v-67,-15,-118,-5,-150,43r0,12v-13,4,-17,-3,-20,-10",w:310},7:{d:"37,-228v33,-14,173,-17,181,-19v28,-1,24,31,9,45v-17,15,-45,49,-59,69v-17,26,-55,67,-61,113v-10,13,-9,14,-14,20v-33,-13,-20,-25,-11,-53v16,-48,73,-115,109,-156v2,-7,5,-14,-10,-12v-26,4,-54,6,-76,13v-23,-5,-83,31,-94,-9v2,-8,18,-19,26,-11",w:245},8:{d:"57,-236v40,-50,166,-51,213,-10v22,28,10,63,-22,78r-35,17v8,5,54,24,53,44v-5,14,-4,33,-18,42v-13,13,-35,18,-44,34v-60,27,-190,49,-194,-42v7,-41,17,-54,59,-70r0,-4v-32,-9,-73,-62,-26,-85v4,0,8,-2,14,-4xm142,-160v24,-2,160,-31,99,-72v-28,-18,-108,-33,-146,-5v-16,12,-28,30,-33,59v24,12,37,20,80,18xm41,-62v30,65,189,6,199,-37v3,-14,-60,-30,-74,-30v-70,0,-118,10,-125,67",w:290},9:{d:"11,-192v15,-49,119,-61,161,-23v16,15,27,55,11,79v-20,62,-51,79,-96,118v-10,4,-45,27,-50,6v9,-15,66,-52,98,-99v-7,-7,-8,-3,-25,0v-49,-11,-96,-25,-99,-81xm145,-131v7,-5,13,-34,13,-41v-2,-51,-104,-38,-114,-6v-2,10,37,35,46,35v23,1,43,-1,55,12",w:198},":":{d:"39,-125v15,-8,40,-1,40,15v0,15,-6,22,-19,22v-13,0,-29,-21,-21,-37xm66,-17v-8,27,-51,19,-46,-8v-1,-6,8,-22,14,-20v29,0,30,6,32,28",w:95},";":{d:"56,-93v2,-30,37,-22,40,2v0,2,-1,7,-3,15v-13,8,-15,6,-27,4xm64,-44v11,-11,30,-4,32,14v-21,39,-63,71,-92,85v-5,0,-11,-2,-18,-8v11,-23,36,-36,50,-61v11,-7,19,-20,28,-30",w:107},"<":{d:"166,-202v12,0,29,15,24,29v0,4,-119,64,-120,73v15,21,89,64,91,86v2,29,-18,12,-30,15v-27,-29,-59,-54,-95,-75v-18,-10,-25,-13,-24,-41",w:176},"=":{d:"125,-121v18,7,55,-9,69,14v0,17,-45,26,-135,26v-18,0,-27,-7,-27,-21v-1,-37,60,-5,93,-19xm138,-71v20,0,48,-1,50,16v-13,24,-86,32,-131,29v-29,-2,-43,-10,-43,-24v-7,-23,36,-14,39,-17v27,6,57,-4,85,-4",w:196},">":{d:"4,-14v20,-48,77,-59,118,-94v-16,-19,-58,-52,-81,-75v-11,-7,-15,-38,-1,-40v33,16,83,71,121,105v26,23,-6,35,-41,53v-29,16,-56,28,-73,54v-21,15,-16,20,-34,15v-3,0,-9,-16,-9,-18",w:174},"?":{d:"105,-291v57,-13,107,-4,107,39v0,67,-136,85,-155,137v-1,6,10,23,-4,23v-23,1,-33,-35,-23,-57v31,-41,124,-60,149,-103v-8,-21,-72,-5,-88,-1v-23,6,-59,39,-71,8v0,0,-1,0,1,-17v10,-4,45,-20,84,-29xm80,-25v-6,4,-8,39,-24,22v-24,3,-22,-21,-13,-35v17,-7,29,5,37,13",w:216},"@":{d:"218,-207v23,8,42,14,47,37v44,68,-27,137,-87,85r1,0v0,2,-59,19,-61,17v-35,0,-42,-47,-17,-68r0,-4v-19,-1,-45,37,-49,40v-37,76,58,72,121,62v11,-2,34,-13,36,3v-14,31,-69,31,-114,33v-51,2,-99,-41,-80,-92v2,-30,22,-40,42,-63v35,-20,91,-53,161,-50xm217,-101v23,0,35,-19,35,-41v0,-43,-75,-41,-102,-19v36,3,55,16,62,41v-6,5,-6,19,5,19xm127,-110v8,5,51,-15,28,-16v-4,0,-25,4,-28,16",w:291},A:{d:"97,-81v-23,-10,-39,38,-52,60v-8,6,-8,6,-22,18v-22,-7,-23,-37,-4,-49v7,-8,11,-15,15,-23r-1,1v-14,-26,23,-29,31,-40v1,-1,15,-29,26,-36v17,-31,39,-58,54,-92v16,-20,20,-51,41,-66v29,5,34,62,45,92v9,64,21,103,49,155v-3,25,-44,11,-54,0v-34,-12,-97,-29,-128,-20xm107,-118v20,6,80,10,111,17v6,-7,-4,-15,-7,-24v-11,-28,-9,-92,-30,-117v-9,9,-19,44,-34,55v-9,23,-27,40,-40,69",w:294},B:{d:"256,-179v41,10,115,34,91,91v-6,3,-14,12,-19,20v-37,19,-50,34,-63,25v-9,10,-12,11,-34,13r3,-3v-4,-4,-12,-4,-18,0v0,0,2,2,5,4v-21,14,-26,6,-44,15v-4,0,-7,-2,-8,-5v-6,11,-20,-5,-18,11v-36,4,-91,35,-114,4v-7,-62,-10,-138,4,-199v-1,-19,-37,2,-37,-27v0,-8,2,-13,6,-15v68,-31,231,-92,311,-39v8,12,12,20,12,25v-8,42,-32,49,-77,80xm79,-160v72,-17,135,-39,184,-70v20,-13,31,-23,31,-27v1,-6,-30,-13,-38,-12v-54,0,-116,13,-186,41v11,21,1,48,9,68xm262,-43v0,-4,3,-6,-4,-5v0,1,1,2,4,5xm211,-140v-34,7,-94,24,-139,15v-6,20,-4,56,-4,82v0,29,43,1,56,2v48,-11,108,-25,154,-48v20,-10,32,-17,32,-25v0,-18,-33,-26,-99,-26xm195,-20v6,1,6,-2,5,-7v-3,2,-7,2,-5,7",w:364},C:{d:"51,-114v-12,75,96,76,166,71r145,-10v9,2,9,5,9,18v-37,18,-85,28,-109,22v-18,10,-47,10,-71,10v-29,0,-68,1,-105,-11v-6,-1,-10,-3,-10,-8v-33,-13,-48,-33,-66,-59v-19,-114,146,-150,224,-177v35,0,88,-31,99,7v-1,29,-49,14,-76,28v-55,8,-115,35,-175,71v-13,8,-23,21,-31,38",w:376},D:{d:"312,-78v-2,1,-3,7,-10,5v6,-3,10,-4,10,-5xm4,-252v2,-27,83,-38,106,-39v130,-7,267,1,291,109v0,0,-2,8,-3,25v-5,9,-4,28,-23,34v-4,4,-2,5,-7,0v-3,3,-15,7,-5,10v0,0,-10,14,-13,2v-11,1,-8,5,-20,14v1,2,7,3,9,1v-4,13,-22,13,-11,4v0,-3,1,-6,-3,-5v-40,29,-103,38,-141,65v10,6,22,-7,34,-3v-41,20,-127,44,-171,46v-21,1,-47,-33,-11,-39v15,-2,43,-6,56,-11v-16,-101,-5,-130,9,-207v2,0,4,-1,6,-3v-16,-17,-91,38,-103,-3xm297,-69v-7,3,-17,8,-25,7v1,1,3,2,5,2v-4,2,-11,5,-23,9v4,-11,30,-21,43,-18xm240,-51v10,0,12,2,0,6r0,-6xm220,-36v-1,-3,4,-6,6,-3v0,1,-2,1,-6,3xm125,-48v16,6,137,-46,155,-53v29,-18,101,-44,82,-93v-21,-53,-84,-61,-168,-67v-20,7,-50,3,-77,8v33,54,-12,132,8,205xm159,-22v-4,-1,-15,-5,-15,2v7,-1,12,-2,15,-2",w:381},E:{d:"45,-219v-19,-36,34,-41,63,-36v44,-10,133,-8,194,-15v3,2,38,11,52,15v-73,19,-171,21,-246,38v-9,11,-16,32,-20,61v35,11,133,-6,183,3v1,6,2,7,3,14v-46,24,-118,16,-193,27v-15,13,-22,52,-22,66v60,1,121,-20,188,-20v22,10,53,-7,74,5v16,29,-23,26,-43,32v-73,4,-139,13,-216,27r-52,-10v-4,-22,23,-69,26,-98v-3,0,-10,-15,-12,-24v20,-12,34,-23,35,-67v2,-1,5,-5,5,-7v0,-4,-14,-11,-19,-11",w:353},F:{d:"270,-258v13,2,59,6,48,34v-78,-3,-143,1,-212,22v-10,16,-21,43,-24,69r145,-9v8,3,29,-3,16,21v-14,-1,-59,13,-60,7v-12,13,-67,18,-108,21v-2,1,-4,3,-7,6v-2,23,-8,43,-7,69v1,28,-30,11,-40,5r10,-80r-26,-14v5,-10,10,-33,28,-25v21,-3,15,-46,26,-59v-1,-3,-32,-13,-28,-24v2,-22,45,-16,59,-30v47,4,99,-14,151,-9v5,-3,25,-3,29,-4",w:236},G:{d:"311,-168v53,0,94,57,74,110v-31,37,-71,34,-136,52v-13,-7,-41,10,-57,7v-73,-1,-122,-17,-162,-59v-49,-51,-24,-80,5,-130v35,-61,138,-93,214,-106v16,4,42,-1,40,21v-5,40,-39,2,-73,21v-76,19,-162,65,-177,142v28,103,237,76,312,29v2,-3,3,-7,3,-13v-10,-35,-37,-43,-87,-45v-16,-13,-53,-9,-78,1v-4,-3,-5,-7,-5,-11v17,-29,73,-17,108,-24v12,4,18,5,19,5",w:391},H:{d:"300,-268v18,12,19,32,4,51v-35,44,-34,140,-46,217v-1,5,-5,13,-11,12v-6,1,-19,-14,-18,-27r7,-106v-28,7,-76,22,-116,14v-18,2,-36,6,-55,3v-43,-8,-14,53,-33,75v-29,1,-26,-67,-21,-97v5,-31,28,-73,43,-98v2,2,7,3,14,3v13,33,-11,48,-13,78v61,4,118,2,176,2v8,0,13,-6,15,-20v4,-47,21,-87,54,-107",w:288},I:{d:"63,-266v34,10,-4,105,-8,128r-24,126v-2,2,-3,1,-9,6v-12,-10,-12,-15,-12,-47v0,-93,9,-156,28,-188v10,-17,19,-25,25,-25",w:79},J:{d:"235,-291v26,11,31,104,31,142v0,37,-2,95,-32,126v-33,34,-121,26,-167,1v-18,-11,-54,-29,-59,-59v0,-3,5,-15,16,-14v31,36,90,57,162,51v63,-30,56,-148,32,-226v-1,-16,11,-13,17,-21",w:282},K:{d:"212,-219v17,-5,80,-60,80,-19v0,9,-2,14,-5,16r-132,78v-34,23,-54,32,-21,50v39,21,74,23,124,41v5,2,7,5,7,9v-4,24,-55,15,-79,8v-67,-19,-98,-36,-116,-83v9,-24,38,-35,66,-61v7,-4,49,-30,76,-39xm47,-194v11,-20,11,-45,31,-55v2,2,4,3,6,0v29,39,-21,96,-18,128v-17,24,-15,62,-29,113v-4,3,-10,7,-19,11v-12,-13,-10,-28,-8,-53v3,-31,17,-79,37,-144",w:270},L:{d:"84,-43v58,0,179,-27,242,-4v3,17,-29,24,-40,26v-85,-4,-202,46,-268,3v-24,-16,-2,-33,-4,-57v26,-76,38,-108,86,-191v14,-7,26,-50,45,-32v6,22,5,31,-12,46v-20,39,-50,82,-67,142v-7,6,-19,46,-19,54v0,9,12,13,37,13",w:331},M:{d:"174,-236v-1,52,-11,92,-7,143v10,5,15,-12,22,-18v42,-55,90,-130,136,-174r15,-18v42,2,32,53,11,80v-12,58,-54,143,-34,210v0,3,-3,12,-9,10v-31,-5,-32,-57,-27,-92v4,-27,12,-58,25,-93v-5,-10,5,-19,6,-30v-46,44,-66,110,-129,172v-11,10,-18,15,-22,15v-34,6,-28,-103,-28,-152v-28,22,-65,119,-96,170v-9,15,-34,3,-31,-19v30,-64,91,-177,139,-229v12,-1,29,13,29,25",w:343},N:{d:"248,-20v-3,17,-37,18,-43,3v-24,-35,-53,-145,-80,-203v-32,40,-55,120,-92,174v-13,3,-26,-13,-27,-22r87,-171v4,-13,20,-57,42,-32v42,48,46,139,82,198v29,-45,46,-88,65,-153v12,-19,23,-42,38,-60v27,-1,14,18,4,44v-6,46,-32,68,-37,121v-15,29,-33,69,-39,101",w:307},O:{d:"240,-268v85,1,163,29,150,125v13,7,-12,18,-5,26v-23,63,-133,112,-228,124v-80,-16,-171,-56,-148,-153v11,-47,20,-43,53,-83v17,-9,39,-22,73,-29v45,-10,81,-10,105,-10xm363,-156v16,-51,-62,-85,-111,-79v-25,-11,-50,8,-81,0v-15,10,-70,16,-85,31v6,20,-27,24,-39,45v-42,75,40,128,115,128v56,0,209,-71,201,-125",w:383},P:{d:"70,-225v-7,-12,-36,16,-49,19v-4,0,-9,-5,-14,-17v21,-47,114,-55,172,-59v41,-3,132,33,99,87v-21,34,-72,59,-144,80v-2,16,-79,3,-74,46v3,25,-5,47,-10,68v-22,-1,-23,-29,-22,-56v2,-25,-20,-32,-8,-50v21,-5,10,-35,25,-57v6,-28,14,-48,25,-61xm71,-229v47,14,-2,50,-1,99v41,-3,113,-37,173,-76v5,-9,8,-14,8,-15v-28,-47,-125,-29,-180,-8",w:252},Q:{d:"374,-217v20,59,-11,127,-48,156r30,38v-1,6,-8,16,-14,9v-3,0,-19,-9,-47,-26v-72,35,-173,75,-236,12v-70,-40,-67,-213,26,-217r8,5v24,-20,72,-48,112,-38v21,-4,22,-1,50,-2v66,-2,94,20,119,63xm296,-88v13,5,61,-49,63,-84v4,-62,-54,-78,-119,-76v-14,-6,-49,5,-71,3v-42,16,-89,41,-93,94v-9,11,1,25,-7,38v-12,-19,-7,-67,-1,-88v-56,30,-37,137,19,155v27,17,92,19,119,0v12,-2,29,-9,52,-20v2,-2,3,-3,3,-6v-11,-12,-46,-27,-54,-56v0,-13,3,-19,9,-19v18,1,60,52,80,59",w:379},R:{d:"100,-275v96,-23,196,-10,208,78v-3,18,-17,52,-49,62v-14,20,-54,23,-79,40v-2,0,-14,2,-36,6v-40,8,-30,14,-3,33v37,27,52,30,118,55v16,6,31,23,12,27v-58,-2,-104,-29,-143,-61v-14,-3,-16,-15,-39,-27v-23,-19,-28,-12,-15,-38v63,-19,111,-15,163,-53v27,-20,43,-36,43,-49v0,-64,-120,-62,-173,-38v-9,4,-38,9,-40,18v-10,32,-16,70,-13,116v-10,21,-8,47,-6,75v2,31,-9,29,-27,22v-9,-55,5,-140,15,-190v-8,-6,-24,10,-24,-11v0,-34,16,-34,42,-55v2,-1,17,-4,46,-10",w:297},S:{d:"13,-3v-7,-3,-22,-18,-5,-22v68,-15,119,-32,154,-45v51,-19,39,-34,3,-53v-46,-25,-82,-30,-121,-64v-33,-29,-50,-35,-25,-58v37,-20,119,-29,181,-29v29,0,44,6,44,18v-9,26,-62,6,-104,14v-17,2,-72,6,-92,16v37,53,132,58,180,111v8,9,11,20,11,30v-4,17,-23,35,-42,34v-21,16,-17,1,-49,17v-14,7,-41,9,-56,20v-25,-3,-49,10,-79,11",w:234},T:{d:"141,-3v-36,-6,1,-49,-3,-79v10,-19,6,-35,15,-64r26,-85v-51,-9,-100,10,-141,14v-16,2,-30,-26,-11,-32v26,-8,143,-8,179,-19r12,6v67,-2,142,-1,200,-1v8,0,14,3,19,10v-18,16,-74,3,-103,14v-48,-4,-60,4,-113,7v-42,22,-36,130,-58,187v1,12,-9,44,-22,42",w:277},U:{d:"365,-262v13,56,-22,104,-36,141v-19,22,-30,38,-57,56v-4,18,-60,35,-78,50v-53,28,-142,0,-161,-34v-31,-56,-37,-108,-11,-164v17,-33,29,-50,48,-29v-2,2,-3,7,-4,13v-44,36,-38,149,7,174v30,26,55,19,102,4v56,-17,66,-34,120,-76v12,-24,56,-68,46,-122r0,-16v0,1,-1,3,-1,6v4,-13,11,-10,25,-3",w:368},V:{d:"246,-258v21,-22,31,-26,44,-8v1,1,-12,22,-28,35v-15,25,-41,38,-56,69v-13,15,-20,31,-28,57v-15,13,-11,29,-27,72v3,21,-5,24,-27,27v-33,-45,-54,-118,-84,-167v-5,-26,-18,-50,-25,-76v-3,-12,24,-8,29,-5v8,13,18,52,26,70r52,115v9,-2,4,-9,10,-21r25,-47v25,-44,46,-76,89,-121",w:234},W:{d:"31,-213v16,46,17,106,41,151v31,-35,49,-89,76,-127v30,-15,39,27,52,56v10,22,21,48,35,67v2,0,4,-1,5,-3v16,-28,50,-76,79,-121v14,-21,40,-63,64,-83r5,8v-30,58,-76,110,-97,173v-18,28,-25,37,-33,63v-11,1,-16,25,-30,15v-21,-31,-44,-89,-62,-131v0,-2,-1,-3,-5,-5v-17,11,-16,36,-31,50v-20,33,-20,84,-68,94v-24,-19,-23,-81,-39,-111v-1,-15,-29,-94,-10,-108v9,2,12,5,18,12",w:331},X:{d:"143,-183v43,-25,69,-36,126,-62v22,-10,86,-10,56,21v-51,3,-158,61,-154,64v10,15,41,30,50,52v27,17,46,60,70,82v9,14,-6,30,-24,20v-35,-43,-75,-100,-116,-132v-48,13,-100,47,-118,94v-1,49,-26,34,-27,4v-1,-26,13,-27,17,-48v22,-27,68,-55,90,-77v-9,-12,-60,-39,-79,-57v-6,-10,-6,-25,12,-25",w:312},Y:{d:"216,-240v19,-14,42,10,22,26v-54,66,-121,109,-156,197v-8,21,-11,15,-30,4v3,-37,27,-61,33,-76v12,-12,15,-19,32,-42v-8,-6,-40,5,-45,5v-48,-6,-69,-65,-56,-113v14,0,13,-1,24,7v2,33,12,75,42,73v36,-2,102,-57,134,-81",w:189},Z:{d:"60,-255v66,12,200,-34,240,21v-13,42,-63,62,-98,89v-19,15,-47,33,-82,55v-25,16,-47,32,-66,47v58,24,129,-6,208,-6v23,0,36,12,13,19v-33,2,-53,5,-86,10v-32,18,-88,15,-135,15v-9,-1,-55,-1,-48,-29v1,-24,30,-24,40,-41v64,-50,151,-86,208,-147v-38,-17,-155,12,-198,-4v0,0,-11,-33,4,-29",w:310},"[":{d:"72,-258r-15,250v30,4,55,-3,80,-6v7,-1,8,17,9,23v-28,15,-73,23,-121,21v-7,0,-10,-6,-10,-17v0,-60,25,-193,22,-288v0,-16,13,-20,33,-19v9,-3,34,-12,51,-12v16,0,15,16,19,29v-16,7,-48,10,-68,19",w:151},"\\\\":{d:"21,38v-20,-21,9,-72,13,-90v44,-78,113,-189,200,-253v2,0,5,4,7,12v11,31,-13,36,-24,58v-74,61,-174,219,-180,273r-16,0",w:257},"]":{d:"133,-258v-23,-13,-84,6,-85,-32v0,-10,5,-15,14,-15v0,0,30,2,90,7v10,1,15,13,15,36v2,7,-8,59,-13,112r-11,125v-9,48,9,90,-59,71v-20,-4,-39,-1,-59,-4v-5,-10,-25,-12,-14,-30v8,-3,61,-13,78,-8v14,1,8,-7,10,-17v15,-69,21,-166,34,-245",w:171},"^":{d:"68,-306v20,15,47,36,58,60v-1,4,0,7,-9,7v-26,0,-47,-38,-49,-32v-15,9,-41,50,-54,30v-2,-31,17,-23,33,-51v8,-9,15,-14,21,-14",w:135},_:{d:"11,15v-8,33,18,45,50,34r205,2r197,-5v11,-5,14,-9,7,-28v-95,-21,-258,-10,-376,-10v-25,0,-72,-3,-83,7",w:485},"`":{d:"75,-264v16,8,56,14,39,43v-30,-8,-65,-23,-105,-44v-1,-3,-3,-28,5,-25v16,5,44,17,61,26",w:129},a:{d:"124,-56v10,4,59,41,65,50v1,7,-6,17,-12,17r-60,-30v-22,2,-42,21,-65,19v-33,4,-68,-67,-15,-81v41,-27,96,-39,110,9v0,6,-4,12,-11,16v-33,-25,-67,-5,-88,12v10,16,61,-18,76,-12",w:196},b:{d:"80,-140v69,1,123,0,134,52v5,26,-71,71,-97,70v-11,11,-88,22,-94,22v-11,-3,-26,-18,-6,-24v19,-5,-2,-19,-1,-35v1,-18,11,-36,-5,-47v-6,-17,-6,-21,14,-32v6,-45,18,-89,28,-124v2,-7,8,-12,17,-15v5,3,10,11,16,28v-12,27,-13,63,-23,96v0,6,6,9,17,9xm87,-107v-40,-9,-31,31,-39,54v8,15,0,25,12,22v30,-8,60,-18,88,-32v39,-18,49,-33,-1,-42v-20,-4,-45,-7,-60,-2",w:217},c:{d:"128,-123v29,-7,37,29,12,33v-27,-4,-40,6,-79,25v-8,4,-13,11,-16,22v30,32,91,3,134,11v5,13,-8,26,-22,19v-51,25,-139,28,-150,-30v6,-50,69,-82,121,-80",w:194},d:{d:"224,-201v0,-35,-17,-111,24,-94v7,86,-2,119,0,197v-4,2,-8,21,-18,16v-62,-7,-154,-8,-185,29v6,17,28,26,51,26v16,0,100,-15,132,-18v7,5,-6,20,-10,22v-24,8,-122,42,-163,25v-32,-5,-62,-53,-36,-80v35,-37,118,-46,198,-43v1,-22,7,-49,7,-80",w:265},e:{d:"4,-57v0,-58,51,-71,110,-74v33,-1,45,16,59,35v1,14,2,39,-7,42v-24,-2,-73,13,-99,11v-2,2,-2,3,-2,3v0,3,12,8,37,15v21,0,69,9,31,22v-9,14,-34,6,-56,6v-27,-5,-73,-28,-73,-60xm123,-102v-22,2,-68,5,-65,26v24,-2,66,5,79,-6v-5,-13,-1,-13,-14,-20",w:182},f:{d:"6,-59v6,-29,53,-4,53,-43v0,-64,29,-118,84,-150v45,-25,167,-24,155,51v-1,2,-7,6,0,6r-10,2v-45,-58,-165,-39,-186,39v-7,26,-11,42,-9,62v44,8,95,-21,135,-7v-12,25,-39,21,-76,30v-19,5,-18,7,-54,19v-2,8,15,32,17,35v-6,25,-26,26,-40,-5r-15,-24v-41,10,-44,12,-54,-15",w:234},g:{d:"132,-97v30,27,21,75,30,117v-12,31,-11,66,-36,103v-32,46,-105,83,-167,39v-31,-21,-49,-29,-51,-75v-2,-37,77,-50,121,-57v37,-6,68,-10,95,-11v7,-6,3,-32,4,-46v0,0,-1,1,-1,2v0,-18,-5,-31,-14,-45v-44,5,-79,20,-94,-18v3,-54,73,-54,125,-50v12,7,12,13,4,25v-30,-11,-76,8,-90,20v23,3,50,-16,74,-4xm-34,121v60,53,168,1,159,-86v-47,-7,-93,24,-142,30v-12,7,-45,19,-42,29v0,10,8,19,25,27",w:188},h:{d:"100,-310v11,-2,10,19,11,20v-11,52,-40,133,-53,189v-6,30,-9,37,-9,47v27,0,113,-34,143,-34v42,0,31,47,39,79v0,4,-5,17,-16,16v4,2,11,3,4,6v-24,-1,-28,-34,-25,-64v-1,-1,-2,-3,-5,-5v-51,0,-110,38,-162,51v-9,1,-15,-15,-16,-23v17,-89,39,-141,71,-264v0,-9,6,-19,18,-18",w:251},i:{d:"62,-209v7,18,9,23,-5,38v-23,-6,-21,-18,-11,-36v2,0,8,-1,16,-2xm34,-7v-18,-21,-8,-73,-1,-106v7,-10,20,-8,23,6v-1,36,7,72,-2,104v-8,2,-8,0,-20,-4",w:80},j:{d:"88,-191v5,28,-18,40,-28,21v0,-20,12,-29,28,-21xm82,-99v28,-1,16,35,16,61v0,60,-19,150,-35,202v-12,8,-19,31,-35,16v-32,-7,-43,-19,-56,-44r2,-17v11,4,49,45,61,18v10,-55,27,-107,30,-171v0,-16,0,-59,17,-65",w:120},k:{d:"59,-66v33,26,114,37,155,62v8,-4,22,-2,19,-17v0,-4,-12,-11,-30,-24v-36,-25,-54,-22,-99,-33v14,-21,119,-13,103,-63r-16,-7r-123,47r25,-93v-3,-15,16,-49,18,-81v1,-15,-21,-14,-25,-3v-31,82,-49,168,-75,257v2,2,22,30,27,10v2,-5,4,-9,9,-11v4,-16,4,-15,12,-44",w:236},l:{d:"66,-300v21,-6,37,23,30,55v-10,51,-28,135,-28,208v0,11,6,36,-13,37v-29,-5,-30,-48,-25,-83r28,-177v-6,-17,1,-29,8,-40",w:102},m:{d:"348,-59v-2,21,0,57,3,73v-17,3,-30,-1,-32,-16v-8,-7,-5,-44,-13,-70v-35,3,-82,49,-111,70v-12,8,-40,4,-39,-15r2,-56v-1,-13,4,-28,-8,-29v-35,8,-79,72,-115,87v-6,2,-20,-18,-21,-22v1,-20,14,-105,39,-64r8,15v17,-14,72,-56,93,-54v27,3,49,40,43,80v24,-2,66,-55,124,-53v11,14,28,23,27,54",w:368},n:{d:"121,-136v37,6,62,54,62,111v0,32,-16,25,-31,17v-18,-30,-5,-45,-22,-85v-37,-13,-71,55,-92,65v-20,-3,-39,-39,-21,-62v2,-12,3,-15,11,-30v12,-8,20,11,29,12",w:194},o:{d:"108,-139v52,-24,104,18,104,63v0,59,-66,67,-114,83v-52,-2,-115,-50,-80,-105v23,-18,52,-35,90,-41xm45,-60v16,54,125,16,131,-23v-12,-59,-129,-8,-131,23",w:217},p:{d:"82,14v-10,12,-8,117,-24,142v-15,2,-19,0,-29,-13v0,-76,9,-113,22,-192v14,-27,35,-6,37,13v0,8,-3,21,-7,38v2,2,3,2,4,2v26,-9,116,-33,126,-72v-7,-17,-24,-33,-49,-31v-40,3,-116,13,-116,47v-5,7,-2,17,-16,20v-17,-12,-18,-20,-12,-38v8,-25,74,-61,110,-59v55,-15,113,15,118,70v-15,52,-84,79,-146,83v-5,0,-11,-4,-18,-10",w:251},q:{d:"144,-147v27,-8,89,-3,97,31v-9,29,-42,-4,-73,1v-32,6,-118,20,-111,49v0,7,13,13,21,13v21,0,78,-24,104,-34v2,0,9,8,22,21v1,1,1,2,1,5v-27,90,-22,70,-43,203v11,15,-15,54,-33,33v-6,-8,-10,-20,-3,-28v1,-72,5,-114,15,-172v-35,3,-35,10,-59,8v-41,-4,-98,-41,-56,-85v33,-34,59,-27,118,-45",w:248},r:{d:"242,-117v2,22,5,10,-14,23v-73,-7,-166,-23,-174,56v-8,6,-3,20,-8,36v-29,10,-40,-9,-33,-46v6,-31,7,-69,32,-55v58,-37,66,-42,175,-19v3,5,15,4,22,5",w:229},s:{d:"154,-151v19,1,27,24,13,32v-4,1,-22,4,-53,7v-16,8,-22,-2,-39,9v23,21,89,16,96,62v-13,24,-85,35,-124,42v-9,-3,-18,-3,-27,0v-6,-4,-21,-16,-8,-25v30,-6,83,-13,102,-24v-17,-16,-80,-33,-97,-48v-3,-2,-4,-7,-4,-15v-6,-6,3,-13,15,-18v22,-9,94,-23,126,-22",w:188},t:{d:"85,-150v10,-41,35,-126,65,-134v4,1,24,19,11,36v-17,22,-29,57,-36,104v26,8,50,-7,73,5v14,0,22,3,22,9v-1,19,-44,18,-57,23v-10,1,-46,0,-54,10v-10,24,-4,67,-20,98v-21,-3,-26,1,-26,-20v0,-9,2,-36,8,-81v-15,-13,-81,9,-77,-27v4,-38,71,6,91,-23",w:194},u:{d:"207,-136v-1,-2,11,-14,14,-13v6,0,10,7,10,22v-3,40,-23,56,-40,82v-13,19,-62,43,-93,43v-67,-2,-111,-75,-71,-133v26,-3,21,29,19,49v-1,27,26,44,57,42v41,-2,93,-55,104,-92",w:242},v:{d:"24,-127r52,71v42,-16,70,-54,124,-65v5,4,8,7,8,11v-8,19,-4,8,-33,32v0,1,-1,3,-1,5v-61,45,-93,68,-97,68v-40,-15,-50,-72,-68,-100v6,-14,10,-22,15,-22",w:214},w:{d:"15,-139v38,-2,27,57,45,86v30,2,67,-66,101,-78v26,6,36,69,60,78v47,-35,51,-54,119,-104v3,0,7,-2,15,-4v19,23,-9,28,-21,49v-33,28,-68,90,-107,109v-10,6,-52,-47,-72,-71v-20,17,-85,74,-97,73v-38,7,-41,-98,-52,-122v0,-1,3,-7,9,-16",w:325},x:{d:"95,-124v22,-13,78,-32,99,-31v16,0,23,6,23,18v0,22,-17,11,-49,21v-3,0,-45,20,-42,24v0,1,2,4,8,10v20,24,49,41,44,80v-35,3,-27,-9,-60,-44v-40,-43,-37,-26,-79,9v-1,1,-2,3,-3,8v-12,8,-28,10,-27,-11v-6,-8,45,-65,48,-65v-17,-21,-61,-52,-24,-68v9,0,48,37,62,49",w:223},y:{d:"44,-65v22,33,70,4,99,-8v5,-4,28,-15,41,-31r17,0v25,47,-26,70,-40,114v-5,4,-9,8,-10,21v-16,12,-11,33,-27,51v-5,18,-12,43,-23,71v-1,-1,-2,34,-18,29v-12,1,-22,-12,-22,-23v20,-70,24,-65,68,-177v-47,16,-111,8,-116,-39v-11,-13,-7,-62,8,-62v18,0,22,26,23,54",w:216},z:{d:"189,-43v9,-1,46,-6,41,12v0,7,-5,13,-15,14v-45,6,-148,24,-181,13v0,-3,-5,-8,-14,-15v5,-44,66,-46,90,-85v-15,-18,-84,21,-84,-14v0,-10,5,-17,14,-18v33,-3,79,-13,109,-3v4,-2,14,11,12,15v0,23,-26,51,-78,84v28,10,73,-3,106,-3",w:244},"{":{d:"94,-303v27,-9,90,-14,79,26v-20,17,-55,-5,-87,13v-4,1,-6,4,-6,8v33,42,31,44,7,85v-6,10,-13,16,-13,13v5,6,17,17,15,31r-33,78v7,35,28,49,57,63r49,0v7,42,-51,41,-86,20v-43,-13,-51,-51,-56,-89v-2,-25,25,-54,27,-71v-3,-4,-46,-5,-41,-21v2,-10,-3,-29,11,-25v2,0,51,-17,52,-38v4,-3,-25,-23,-25,-49v0,-41,8,-30,50,-44",w:179},"|":{d:"30,-308v26,5,14,50,15,80v5,78,-8,153,-3,225v-2,15,-1,31,-11,36v-8,-3,-25,-22,-25,-32r9,-183v0,-40,0,-78,1,-112v0,-4,9,-15,14,-14",w:63},"}":{d:"47,-298v34,-17,118,-18,112,36v6,25,-76,98,-69,103v4,16,39,7,44,28v7,34,-34,17,-37,39v8,29,49,83,23,123v-15,23,-43,26,-73,46v-34,8,-43,11,-49,-17v1,-15,30,-15,33,-20v24,-12,70,-27,55,-61v-14,-33,-37,-68,-19,-103v-46,-50,46,-100,60,-141v-10,-16,-68,6,-77,-12",w:143},"~":{d:"7,-254v2,-6,59,-50,67,-46v11,-1,35,19,46,26v5,0,27,-10,66,-31v21,8,-1,25,-7,38v-27,21,-48,31,-65,31v-24,-11,-37,-39,-65,-9v-7,7,-26,36,-42,11v3,-5,-3,-17,0,-20",w:199},"Ä":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm187,-259v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm90,-284v7,3,28,11,28,18v0,9,-9,18,-18,17v-17,0,-25,-24,-10,-35"},"Å":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm112,-239v-31,-17,-9,-61,29,-56v12,2,22,3,33,12v24,39,-30,62,-62,44xm119,-262v2,14,41,8,41,-4v0,-4,-8,-6,-24,-9v-10,-2,-17,10,-17,13"},"Ç":{d:"48,-108v-12,70,90,71,159,67r138,-9v9,-1,7,9,7,17v-37,16,-80,27,-103,21v-14,9,-40,3,-67,9v-30,0,-64,1,-100,-10v-6,-1,-10,-4,-10,-8v-32,-12,-46,-31,-63,-56v-16,-61,47,-103,83,-121v82,-42,118,-45,200,-60v21,-4,36,34,11,37v-90,11,-148,31,-225,77v-12,8,-23,20,-30,36xm172,18v29,4,47,14,53,35v-2,7,-14,31,-27,31v-28,7,-55,9,-84,14v-18,-5,-13,-32,7,-32v21,0,55,-5,69,-13v-16,-14,-63,10,-50,-35v9,-10,1,-27,23,-29v7,8,11,16,9,29",w:331},"É":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm133,-248v27,-11,48,-32,59,-14v3,11,-79,52,-88,53v-14,1,-16,-11,-12,-21v10,-4,23,-11,41,-18",w:252},"Ñ":{d:"224,-182v1,-17,15,-24,22,-38v20,0,13,10,3,33v-3,36,-25,52,-28,94v-10,24,-30,55,-29,82r-19,7v-32,-8,-36,-70,-58,-111v-2,-23,-7,-27,-19,-54v-28,36,-41,93,-71,133v-9,5,-20,-9,-20,-17r73,-149v9,-24,31,-5,36,7v19,41,31,98,53,139v22,-35,34,-69,50,-118v2,-3,3,-3,7,-8xm203,-257v22,-8,41,-24,65,-26v3,11,-8,9,-7,21v-26,20,-46,31,-59,31v-2,3,-49,-27,-49,-29v-11,0,-32,31,-46,32v-11,-2,-12,-21,-4,-23v4,-6,28,-30,48,-34v17,-4,43,28,52,28",w:219},"Ö":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm197,-229v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm101,-254v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35",w:273},"Ü":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-29,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm197,-227v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm101,-252v7,3,27,10,27,18v0,8,-9,18,-18,17v-18,-1,-24,-25,-9,-35",w:262},"á":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm32,-117v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-13,2,-14,-10,-12,-21",w:173},"à":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm99,-137v7,6,56,14,37,40v-28,-7,-62,-21,-100,-41v-2,-3,-2,-26,5,-23v16,4,42,17,58,24",w:173},"â":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm147,-97v-27,-6,-39,-26,-60,-37v-21,7,-38,46,-65,23v-2,-5,-3,-10,-4,-14v18,-4,43,-31,61,-42v28,5,40,21,62,36v12,8,18,17,18,25v0,6,-4,9,-12,9",w:173},"ä":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-32,5,-66,-64,-15,-77v39,-26,92,-36,104,9v0,6,-3,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm142,-119v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm46,-144v7,3,28,9,27,18v1,8,-9,18,-18,17v-18,-1,-25,-25,-9,-35",w:173},"ã":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm114,-136v22,-8,41,-24,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-12,-32,8,-29,32,-51v24,-21,54,20,69,23",w:173},"å":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm54,-101v-37,-20,-9,-71,34,-65v13,1,25,3,38,13v27,45,-34,73,-72,52xm61,-128v4,20,48,7,49,-5v0,-5,-9,-7,-28,-10v-12,-2,-21,11,-21,15",w:173},"ç":{d:"108,-118v30,-6,56,21,25,33v-24,-6,-39,5,-75,23v-7,4,-12,12,-15,22v31,28,86,3,128,9v3,28,-29,16,-44,28v-53,15,-106,10,-120,-37v0,-48,62,-70,101,-78xm92,18v23,4,45,12,48,32v-2,6,-12,28,-25,28v-24,6,-50,10,-77,13v-16,-4,-11,-28,7,-29v17,-1,51,-4,63,-12v-14,-15,-57,10,-46,-32v9,-8,0,-25,21,-26v6,6,12,14,9,26",w:171},"é":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm76,-169v26,-11,48,-32,59,-14v3,10,-80,53,-89,53v-14,1,-14,-10,-12,-21v15,-7,16,-7,42,-18",w:161},"è":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm95,-166v7,6,54,14,37,40v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,18,58,25",w:161},"ê":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm145,-129v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-51,34,-56,0v17,-4,44,-32,61,-43v28,5,41,21,63,36v12,8,17,17,17,25v0,6,-3,9,-11,9",w:161},"ë":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10r-3,3v0,3,12,7,36,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-67,-27,-71,-58v7,-52,48,-65,105,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm140,-144v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm44,-169v7,3,28,9,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35",w:161},"í":{d:"59,-98v20,4,15,53,10,95v-6,1,-11,2,-19,-4v1,-7,-12,-18,-10,-24v4,-22,-4,-65,19,-67xm50,-139v27,-11,49,-32,59,-14v3,11,-80,53,-89,53v-14,1,-14,-12,-11,-22v15,-7,14,-6,41,-17",w:105},"ì":{d:"57,-98v22,5,13,50,11,95v-7,1,-11,2,-20,-4v1,-7,-12,-18,-10,-24v4,-22,-2,-64,19,-67xm70,-139v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-3,-25,5,-23v15,5,41,17,57,24",w:109},"î":{d:"72,-98v20,5,12,51,10,95v-6,2,-13,1,-20,-4v1,-8,-12,-18,-10,-24v4,-22,-3,-65,20,-67xm134,-94v-26,-7,-39,-25,-60,-37v-7,0,-9,4,-13,10v-14,15,-51,34,-56,-1v18,-4,45,-33,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-4,9,-12,9",w:143},"ï":{d:"55,-97v19,5,15,53,10,95v-17,5,-26,-14,-30,-28v6,-20,-3,-65,20,-67xm110,-118v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm14,-143v6,3,28,8,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35",w:107},"ñ":{d:"115,-129v34,6,59,50,59,105v0,31,-15,24,-30,17v-15,-29,-5,-42,-20,-81v-35,-13,-68,52,-88,61v-20,-4,-38,-36,-19,-59v0,-12,3,-14,10,-28v11,-8,18,11,27,12xm117,-166v22,-7,41,-23,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-5,-12,-8,-16,0,-23v4,-6,28,-29,48,-33v17,-3,43,28,53,28",w:171},"ó":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm49,-154v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-14,0,-13,-8,-12,-21",w:191},"ò":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm115,-181v14,10,51,13,37,40v-28,-7,-62,-21,-100,-41v-3,-2,-3,-26,5,-23v16,5,42,17,58,24",w:191},"ô":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm110,-177v-22,6,-38,45,-65,22v-2,-4,-3,-9,-4,-13v18,-4,43,-32,61,-43v27,6,40,21,62,36v12,9,18,17,18,25v1,11,-15,10,-23,7",w:191},"ö":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm161,-160v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm65,-185v7,3,28,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35",w:191},"õ":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm58,-199v26,-21,54,18,69,22v4,0,15,-5,34,-13v22,-9,21,-16,31,-13v3,11,-9,9,-7,22v-26,20,-46,30,-59,30v-2,4,-49,-28,-49,-29v-11,0,-32,31,-46,32v-12,-3,-13,-21,-4,-23v4,-6,14,-15,31,-28",w:191},"ú":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm106,-174v26,-11,48,-32,59,-14v3,11,-81,53,-89,54v-13,1,-15,-12,-11,-22v15,-7,14,-7,41,-18",w:213},"ù":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm126,-166v7,6,56,14,37,40v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,18,58,25",w:213},"û":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm172,-143v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-49,35,-56,0v17,-4,44,-32,61,-43v27,6,41,21,63,36v12,9,17,17,17,25v0,6,-3,9,-11,9",w:213},"ü":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm168,-161v0,8,-3,13,-11,13v-17,0,-20,-19,-17,-34v18,-1,29,1,28,21xm72,-186v7,3,29,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35",w:213},"†":{d:"22,-286v15,6,5,-20,19,-19v9,-3,15,21,17,22v6,1,12,3,20,6v3,10,5,16,-9,16v-34,-10,-6,51,-34,52v-20,-7,11,-47,-15,-49v-14,3,-25,-5,-17,-24v7,-2,14,-4,19,-4",w:77},"°":{d:"106,-268v0,36,-35,38,-51,46v-48,5,-60,-58,-25,-78v33,-11,76,-9,76,32xm38,-257v16,7,39,2,38,-17v-13,-9,-28,-1,-32,11v-5,3,-7,0,-6,6",w:114},"¢":{d:"105,-188v13,-12,14,-18,26,-15v7,23,7,15,-3,49v6,0,18,14,17,20v-3,5,-12,19,-26,13v-14,1,-14,5,-16,21v10,10,46,-13,38,18v-9,17,-23,16,-54,20v-17,16,-4,55,-29,60v-37,-10,19,-64,-24,-71v-20,-10,-37,-47,-6,-62v23,-20,73,-4,77,-53xm65,-101v4,-9,7,-8,3,-13v-14,4,-22,10,-3,13",w:154},"£":{d:"153,-170v3,22,62,0,49,39v-18,6,-31,12,-58,9v-12,-1,-17,30,-23,39v19,26,50,56,91,35v9,-2,27,-13,27,4v0,27,-27,39,-58,42v-32,-5,-59,-19,-78,-39v-6,1,-35,44,-57,39v-25,0,-37,-15,-37,-46v0,-41,43,-53,73,-50v4,1,12,-18,12,-21v-7,-15,-49,0,-44,-30v-2,-31,31,-16,60,-19v16,-30,25,-119,93,-113v16,2,75,16,50,44v-4,5,-7,7,-12,8v-18,-12,-32,-18,-41,-18v-35,-1,-38,52,-47,77xm43,-45v4,5,12,-2,11,-9v-1,2,-12,1,-11,9",w:242},"§":{d:"141,-115v12,10,29,36,28,56v-4,68,-129,69,-152,16v-1,-12,-10,-22,8,-23v17,3,47,21,67,23v16,1,40,-8,38,-21v-8,-49,-119,-30,-117,-85v1,-28,15,-45,-3,-64v-1,-53,55,-61,103,-62v15,-5,6,-5,20,-2v16,17,23,27,23,30v-1,26,-29,7,-45,7v-21,0,-51,2,-62,17v19,14,87,8,97,43v18,14,16,57,-5,65xm64,-147r57,17v10,-28,-22,-43,-47,-44v-25,-1,-35,19,-10,27",w:174},"•":{d:"130,-114v0,47,-124,54,-120,-8r6,-31v44,-28,64,-34,104,0v8,6,10,20,10,39",w:139},"¶":{d:"121,-237v21,-9,44,-13,63,-1v-1,7,5,6,7,11r-4,190v-2,33,4,39,-15,40v-16,1,-10,-20,-10,-33r4,-161v0,-17,-1,-34,-16,-25v2,10,1,23,1,35v-9,46,-6,75,-15,156v-3,4,-7,5,-12,5v-17,-10,-3,-89,-10,-115v-43,14,-98,10,-101,-29v-4,-53,59,-63,104,-75v3,1,4,2,4,2xm95,-204v2,9,-30,50,1,50v35,0,23,-13,29,-43v0,-1,-2,-7,-4,-15v-12,-1,-14,2,-26,8",w:206},"ß":{d:"33,10v-29,4,-28,-32,-16,-70v18,-58,17,-137,56,-176v12,-24,46,-58,82,-43v20,8,47,24,47,54v0,30,-62,59,-67,90v33,23,56,33,63,63v-18,21,-22,36,-48,54v-24,17,-27,41,-53,16v-2,-19,7,-35,24,-42v15,-13,26,-22,34,-40v-13,-17,-78,-29,-56,-70v-3,-27,64,-54,66,-86v-8,-25,-41,-4,-52,8v-29,30,-47,83,-51,141v-17,25,-8,71,-29,101"},"®":{d:"75,-194v78,-29,116,9,130,84v-2,42,-22,47,-57,67v-74,20,-161,-19,-129,-110v6,-18,29,-34,57,-40xm46,-86v51,36,84,21,129,-15v7,-15,0,-39,-10,-49v-13,-37,-49,-26,-86,-18v-28,7,-49,46,-33,82xm72,-123v-5,-43,68,-57,75,-14v-17,26,-18,17,3,32v2,25,-25,18,-45,7r-4,-4v-1,8,-3,20,-12,24v-10,-3,-21,-34,-17,-45xm112,-135v-10,-1,-20,13,-9,14v6,-6,9,-11,9,-14",w:217},"©":{d:"102,-29v-74,5,-124,-84,-70,-140v22,-22,53,-35,97,-38v46,-4,88,49,74,100v0,44,-51,75,-101,78xm96,-66v42,-3,75,-23,75,-69v0,-23,-4,-38,-44,-38v-16,0,-33,6,-49,20v36,-4,55,-12,62,20v-5,16,-49,1,-50,21v10,15,53,-14,54,11v0,18,-14,27,-42,27v-22,1,-46,-11,-46,-31v0,-25,7,-39,20,-44v-1,-1,-2,-2,-3,-2v-51,22,-32,89,23,85",w:217},"™":{d:"213,-307v28,9,11,49,7,75v-1,4,-4,6,-11,6v-7,1,-11,-14,-11,-34v-14,-6,-34,34,-46,28v-2,0,-10,-9,-24,-27v-10,7,-3,36,-27,31v-15,-24,-3,-27,1,-48v-6,-7,-27,-1,-31,3v-3,14,-7,30,-11,51v-5,10,-29,9,-24,-12v-5,-8,1,-18,3,-35v-13,6,-33,2,-29,-18v20,-17,64,-17,100,-19v28,-1,29,30,45,39v11,-6,35,-32,58,-40",w:239},"´":{d:"52,-284v29,-11,50,-34,62,-14v3,12,-86,54,-94,56v-14,0,-16,-12,-12,-23v11,-5,25,-11,44,-19",w:120},"¨":{d:"124,-259v0,9,-4,13,-12,13v-18,0,-22,-21,-17,-35v19,-1,30,1,29,22xm23,-285v7,2,30,9,29,18v1,10,-9,19,-18,19v-19,0,-28,-26,-11,-37",w:136},"≠":{d:"48,-130v29,11,49,-57,60,-50v25,6,7,27,-1,46v22,5,29,7,21,22v-18,2,-48,-1,-50,15v9,8,53,-7,54,10v-4,22,-46,20,-72,24v-7,13,-18,32,-34,57v-8,6,-15,-3,-13,-14v-1,-9,15,-39,14,-45v-30,5,-24,-17,-13,-25v12,-1,36,4,29,-13v-14,0,-47,6,-36,-12v0,-18,27,-13,41,-15",w:140},"Æ":{d:"335,-259v0,30,-102,12,-122,34v10,21,2,79,16,100v24,-6,59,-13,86,-16v23,-2,32,21,13,26r-103,29v-3,22,-4,38,8,43v28,-5,60,-6,86,-14v5,-1,14,7,14,11v6,16,-90,40,-107,40v-29,0,-39,-19,-32,-46v-2,-4,0,-26,-9,-28v-29,2,-58,6,-88,6v-31,0,-40,74,-82,73v-18,-23,4,-37,12,-50v40,-65,112,-126,165,-207v20,-17,69,-11,112,-13v21,0,31,4,31,12xm123,-111v28,1,44,-2,67,-10v-4,-22,5,-49,-7,-65v-3,6,-65,61,-60,75",w:348},"Ø":{d:"76,-211v41,-13,100,-22,140,-3v26,-19,40,-29,44,-29v10,0,15,7,15,20v0,15,-23,23,-30,35v23,39,29,114,-21,139v-36,19,-102,35,-147,18v-14,-5,-29,29,-46,35v-25,-13,-19,-24,3,-56v-9,-17,-28,-27,-28,-60v0,-38,23,-72,70,-99xm107,-66v55,15,125,-12,123,-70v0,-16,-5,-25,-13,-29r-110,95r0,4xm39,-108v-1,3,17,31,22,27v8,-6,109,-90,123,-106v-15,-11,-43,1,-63,2v-33,10,-80,35,-82,77",w:270},"∞":{d:"322,-72v-4,22,-54,41,-76,41v-43,0,-83,-17,-114,-35v-46,19,-125,53,-128,-18v-1,-14,10,-22,13,-35v29,-10,62,-31,97,-4v37,28,47,5,75,-8v40,-19,73,-10,114,1v13,1,18,55,19,58xm228,-69v15,0,62,-12,61,-25v-19,-23,-89,-10,-105,11v0,2,1,4,2,4v28,6,42,10,42,10xm75,-102v-13,2,-41,4,-44,19v0,4,3,7,10,7v21,0,40,-6,54,-17v-9,-6,-16,-9,-20,-9",w:330},"±":{d:"93,-163v-7,46,76,-4,46,47v-14,6,-27,13,-38,8v-24,2,-14,28,-28,44r-14,0v-7,-12,-5,-15,-7,-33v-12,-7,-41,-1,-37,-24v2,-11,23,-17,36,-14r28,-38v4,0,9,4,14,10xm113,-27v-12,18,-58,27,-85,24v-16,2,-22,-23,-13,-36v28,-7,85,-11,98,12",w:151},"≤":{d:"73,-109v10,15,87,16,87,42v0,11,-5,16,-13,16v-36,-11,-69,-24,-109,-31v-18,-8,-18,-13,-9,-36v59,-56,93,-83,101,-83v16,0,18,17,14,28v-27,24,-42,35,-71,64xm10,-29v35,-12,117,-26,148,-3v1,2,-5,19,-8,18r-124,15v-16,2,-26,-18,-16,-30",w:168},"≥":{d:"115,-174v20,7,53,36,20,57v-19,11,-91,68,-82,59v-18,3,-25,-22,-13,-31v15,-10,14,-10,70,-51r-50,-37v-5,-4,-5,-27,4,-28v16,7,40,17,51,31xm14,-32v33,-10,86,-14,127,-10v12,12,5,23,-11,27v-49,9,-82,13,-99,13v-22,0,-24,-16,-17,-30",w:163},"¥":{d:"31,-248v30,-3,64,64,74,59v37,-22,77,-65,107,-82v20,-11,34,18,21,32v-28,19,-52,38,-70,57v-18,8,-40,21,-35,60v2,19,39,7,64,7v25,0,16,21,2,27v-36,16,-46,8,-68,18v6,11,101,-20,66,24v-21,11,-42,12,-75,20v-2,1,-5,6,-10,18v-8,3,-11,10,-24,8v-7,-17,-2,-18,-9,-26v-13,5,-39,3,-53,-2v-10,-17,-7,-27,0,-34v23,-1,45,1,64,-5v-11,-7,-28,-4,-64,-6v-13,-8,-15,-24,-6,-35v33,-2,102,9,76,-37v-14,-14,-33,-38,-60,-66v-10,-10,-8,-28,0,-37",w:219},"µ":{d:"123,-114v41,0,54,-9,127,-17v12,-2,20,-6,25,-12v5,-78,43,-127,119,-138v38,-5,46,23,55,48v-5,5,2,4,2,12v-2,47,-72,81,-129,95v-17,4,-12,32,-2,39v30,-5,24,0,99,4v14,9,14,20,-1,23v-17,3,-71,-1,-85,13v1,19,18,35,-3,47v-1,-6,-10,-7,-16,-5v-3,-3,-20,-37,-29,-41v-15,8,-50,22,-49,-9v1,-19,2,-27,28,-26v24,1,13,-12,8,-30v-22,1,-64,16,-111,23v-50,7,-17,47,-17,57v0,10,-5,15,-13,15v-20,-9,-27,-30,-33,-55v-20,-17,-52,8,-85,-6v-2,-10,-13,-26,4,-29v32,-6,41,-1,65,-7v-17,-74,-4,-173,69,-180v55,-20,130,8,131,65v-11,9,-10,2,-29,-11v-33,-23,-37,-26,-76,-25v-41,13,-69,38,-67,100v0,34,4,50,13,50xm317,-152v29,-6,106,-43,106,-71v0,-23,-24,-25,-42,-17v-31,1,-74,48,-64,88",w:462},"∂":{d:"456,-113v55,-37,119,-8,176,5v-19,37,-104,-5,-144,18v-5,64,-45,87,-130,87v-43,0,-70,-8,-96,-21v-54,15,-146,29,-209,10v-18,-11,-43,-26,-46,-53v-1,-9,28,-48,51,-46v55,-10,55,-8,101,-8v29,0,17,-26,23,-56v4,-19,4,-74,34,-49v4,42,-7,83,-10,124v0,4,-11,10,-34,17v-29,-1,-45,-4,-74,1v-10,2,-57,3,-52,18v30,43,132,30,190,18v2,-10,-7,-19,-5,-28v5,-36,31,-59,74,-56v27,2,71,4,70,35v-1,30,-37,41,-58,57v35,13,131,15,135,-23v2,-19,-5,-36,4,-50xm262,-85v0,3,13,28,19,25v7,0,48,-13,61,-29v-10,-17,-71,-17,-80,4",w:640},"∑":{d:"235,-95v-3,-59,120,-41,160,-28v3,-2,15,-3,14,4v1,3,-16,19,-21,18r-97,4v-25,5,-18,18,-23,56v-16,14,-25,24,-36,18v-83,32,-154,29,-212,-17v-45,-68,41,-114,107,-119v50,-4,59,66,22,85v-16,8,-61,10,-79,15v36,27,185,24,165,-36xm128,-119v-23,-3,-43,4,-53,15v13,5,46,-4,53,-15",w:414},"∏":{d:"243,-190v7,-18,27,-19,38,6v0,2,-5,8,-14,16v-8,-9,-27,-4,-24,-22xm221,-111v55,-7,60,22,45,64v5,23,17,47,-22,47v-35,0,-18,-40,-15,-70v-2,-19,-35,-13,-52,-18v-2,0,-13,1,-34,3v-4,0,-10,11,-13,31v-3,20,1,43,-11,54v-12,-4,-13,-5,-21,-3v-13,-13,-3,-25,-12,-41v7,-6,12,-22,10,-39v-23,-8,-79,15,-87,-21v12,-28,78,-4,101,-20r36,-96v8,-19,17,-28,27,-28v10,0,15,6,15,18v-6,32,-31,62,-38,109v25,10,47,-1,71,10",w:282},"π":{d:"247,-240v-3,5,-14,12,-21,6v-41,5,-71,-4,-85,37v-6,7,-21,42,-25,61v28,12,104,-16,129,24v8,11,12,24,12,38v-7,17,-2,99,-40,68v-9,-23,-5,-47,-1,-73v3,-24,-40,-24,-50,-19v-4,0,-18,2,-44,6v-30,-6,-16,49,-33,58v-19,-11,-14,2,-29,-10v8,-71,20,-114,43,-170v-24,-2,-49,4,-73,7v-30,3,-32,-33,-7,-36r184,-22v17,-1,40,13,40,25",w:265},"∫":{d:"62,-151v-7,-70,20,-130,63,-150v28,1,39,10,70,23v20,8,6,33,-6,35v-29,-13,-45,-20,-49,-20v-20,-4,-45,51,-43,70v8,60,5,129,5,189v0,62,-27,93,-79,93v-37,-1,-71,-14,-63,-57v21,0,79,34,91,-2v16,-3,14,-64,21,-85v-2,-31,-1,-74,-10,-96",w:156},"ª":{d:"6,-265v1,-31,58,-53,80,-22v-11,14,25,28,25,36v-2,8,-15,12,-27,10v-22,-29,-68,19,-78,-24xm52,-281v-8,1,-24,10,-9,13v11,1,24,-10,9,-13",w:117},"º":{d:"13,-273v1,-31,56,-41,83,-18v36,8,14,48,-9,52v-35,6,-64,-5,-74,-34xm81,-269v-7,-7,-20,-11,-29,-6v5,13,13,11,29,6",w:128},"Ω":{d:"121,-111v9,16,43,-5,54,5v28,-4,62,8,81,-5v48,-33,166,-28,160,44v15,34,-51,53,-88,53v-34,0,-53,-21,-71,-37v-15,7,-32,-4,-28,-22v-26,-4,-93,-6,-108,8v8,17,5,37,12,54v-1,15,-18,15,-31,10v-9,-15,-20,-39,-19,-63v-20,-9,-73,15,-79,-18v4,-28,50,-11,77,-24v12,-99,36,-168,137,-178v35,5,64,20,67,57v0,13,-14,18,-20,5v-15,-35,-83,-31,-104,4v-26,20,-39,82,-40,107xm334,-45v15,2,51,-14,53,-22v-7,-20,-36,-31,-69,-29v-8,-1,-39,6,-37,14v-3,10,44,38,53,37",w:424},"æ":{d:"145,-44r33,7v2,42,-59,29,-85,16v-6,7,-35,24,-48,15v-19,2,-35,-21,-33,-37v2,-24,5,-19,28,-36v-6,-8,-45,3,-33,-21v21,-22,58,-12,85,-1v6,-5,35,-28,45,-15v20,-4,36,17,36,35v0,23,-4,21,-28,37xm111,-72v12,3,49,-16,19,-17v-5,0,-20,12,-19,17xm74,-50v-14,-4,-48,16,-19,17v4,1,19,-14,19,-17",w:184},"ø":{d:"76,-136v17,7,33,-8,51,0v9,-6,21,-13,36,-21v23,22,-13,31,3,50v11,13,4,21,14,35v-4,5,-1,14,-4,23v-14,23,-45,41,-84,39v-12,2,-29,28,-41,38v-2,-11,-34,-10,-15,-30v3,-7,5,-11,5,-11v-15,-24,-60,-54,-22,-89v23,-21,25,-32,57,-34xm102,-54v18,1,50,-19,30,-32v-12,7,-22,18,-30,32xm85,-92v-14,3,-26,8,-38,17v2,20,17,13,26,0v6,-8,12,-13,12,-17",w:188},"¿":{d:"181,-247v3,1,31,2,29,15v-4,22,-37,27,-41,4v1,-5,7,-20,12,-19xm161,-34v-45,-1,-105,19,-124,51v0,11,18,17,54,17v39,0,82,-13,112,4v-10,35,-58,31,-100,31v-47,0,-80,-10,-99,-31v-10,-56,22,-73,64,-90v8,-3,32,-9,74,-18v21,-15,7,-62,22,-92v-1,-5,-1,-11,4,-12v16,0,24,7,24,22v-8,30,-8,73,-17,111v-3,5,-7,7,-14,7",w:213},"¡":{d:"86,-197v8,16,-7,41,-24,25v-11,-11,-4,-16,-3,-29v13,0,15,-2,27,4xm46,-107v4,-8,11,-16,23,-7v19,26,-5,57,-6,87v-7,0,-5,18,-9,28v0,14,-17,52,-11,70v-2,7,-15,28,-25,12v-4,-6,-15,-7,-6,-16v2,-39,14,-96,34,-174",w:95},"¬":{d:"141,-99v47,7,103,-3,149,6v14,24,18,15,10,39v-10,34,-7,31,-26,76v-4,6,-15,8,-16,21v-4,2,-4,1,-13,5v-22,-33,-4,-33,16,-104v-5,-9,-28,-4,-38,-6r-183,4v-14,0,-41,-29,-17,-36v31,-9,82,5,118,-5",w:315},"√":{d:"364,-218v43,-21,80,-51,104,-32v-3,19,-24,21,-44,40v-41,15,-78,53,-136,78r-137,98v-20,16,-79,66,-91,68v-3,1,-25,-11,-24,-13v-4,-28,-43,-61,-30,-85v26,-15,42,19,58,32r295,-188v0,1,2,2,5,2",w:474},"ƒ":{d:"115,-262v-23,6,-39,63,-38,96v1,3,57,2,54,16v1,22,-45,15,-51,30v3,34,12,68,10,103v14,17,-18,53,-28,63v-48,8,-89,5,-95,-37v20,-5,77,21,83,-18v17,-29,-4,-61,0,-98v0,-5,-3,-10,-7,-17v-33,4,-43,-17,-25,-37v10,-4,27,5,27,-10v0,-43,15,-77,32,-109v12,-7,16,-22,38,-20v11,1,51,35,25,55v-9,1,-16,-17,-25,-17",w:145},"≈":{d:"133,-112v21,15,48,-30,78,-17v3,3,5,7,5,9v-8,30,-47,45,-76,45v-19,0,-64,-48,-90,-21r-29,20v-6,-1,-17,-16,-15,-32v24,-17,70,-42,107,-21v4,4,10,9,20,17xm138,-57v28,2,48,-25,76,-26v13,30,-21,42,-40,53v-41,24,-77,-15,-114,-23v-15,14,-46,32,-49,-1v-3,-9,27,-28,54,-30",w:223},"∆":{d:"18,-1v-24,-30,8,-48,25,-71v14,-19,34,-28,40,-56v20,-35,29,-14,57,4v9,39,43,62,57,102v0,16,-34,17,-50,14v-28,2,-72,4,-129,7xm139,-47r-22,-52v-12,-5,-12,15,-24,27v-7,6,-14,16,-23,28v23,1,36,-1,69,-3",w:199},"«":{d:"191,-64v16,6,87,37,53,63v-39,-9,-71,-28,-107,-40v-14,-13,-13,-34,10,-47v27,-15,48,-55,84,-62v9,-2,21,10,21,18r-13,21v-16,5,-44,22,-51,41v0,4,1,6,3,6xm71,-65v17,6,87,35,55,62v-39,-8,-66,-27,-108,-40v-14,-13,-13,-36,10,-46v23,-18,50,-56,84,-63v9,-2,21,10,21,18r-13,22v-20,6,-32,17,-51,37v0,3,-1,11,2,10",w:265},"»":{d:"120,-129v9,-33,48,-10,64,5v9,20,86,52,50,86v-36,11,-66,31,-107,40v-6,-7,-9,-13,-9,-17v-2,-13,50,-46,63,-46v11,-18,-33,-42,-48,-47xm1,-128v10,-33,46,-8,64,6v8,19,86,50,51,85v-40,13,-69,30,-108,40v-6,-7,-8,-12,-8,-16v-2,-14,50,-46,63,-47v7,-13,-9,-20,-19,-30v-10,-9,-20,-15,-30,-17",w:252},"…":{d:"244,-24v-1,21,-38,32,-41,3v-2,-19,23,-22,34,-17v0,7,0,15,7,14xm113,-24v0,-22,28,-21,38,-8v5,34,-39,40,-38,8xm35,-2v-10,-2,-36,-17,-18,-29v-1,-15,17,-17,31,-6v7,17,6,33,-13,35",w:258}," ":{w:179},"À":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm150,-268v14,10,54,14,37,41v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,17,58,24"},"Ã":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm100,-285v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-9,22,-17,31,-12v3,11,-9,9,-7,21v-26,20,-46,30,-59,30v-3,3,-50,-26,-49,-29v-12,1,-31,35,-51,32v-3,-8,-5,-14,-5,-18v10,-9,16,-17,37,-33"},"Õ":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm116,-270v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-10,22,-16,31,-12v3,11,-8,9,-7,21v-45,28,-47,42,-88,16v-29,-19,-12,-20,-43,2v-8,5,-12,18,-23,15v-13,-3,-12,-20,-4,-23v4,-6,14,-15,31,-28",w:273},"Œ":{d:"247,-243v71,4,161,-7,245,-8v17,0,27,6,27,17v-8,27,-70,14,-104,23v-3,1,-52,0,-65,7r0,4v16,16,17,29,17,65v32,10,74,-14,99,16v-14,25,-76,17,-127,24v-17,18,-55,32,-75,51v85,0,128,-3,204,-11v15,-2,21,11,20,29v-78,24,-177,12,-270,24v-24,3,-24,-29,-48,-15v-46,7,-70,4,-105,-4v-19,-18,-42,-22,-52,-55v-10,-34,0,-47,12,-78v-18,-59,48,-78,105,-84v17,-18,103,-13,117,-5xm125,-45v76,-9,186,-43,209,-105v-26,-67,-137,-83,-217,-54v3,34,-45,25,-60,58v-41,48,5,108,68,101",w:492},"œ":{d:"185,-54v25,28,107,-17,104,33v-12,12,-60,14,-87,14v0,0,1,1,2,1v-11,1,-39,-9,-50,-17v-28,17,-75,32,-114,7v-22,-14,-34,-11,-34,-41v0,-36,33,-49,48,-75v29,-16,72,-3,95,11v12,-9,48,-27,59,-26v30,0,64,15,65,40v0,7,-6,20,-20,37v-29,1,-44,11,-68,16xm226,-106v-21,-7,-41,-2,-48,13v14,1,42,-7,48,-13xm132,-87v-21,-35,-94,11,-92,24v-2,14,43,21,61,21v25,0,36,-20,31,-45",w:295},"–":{d:"6,-66v-8,-72,79,-21,146,-39v37,-10,79,7,111,0v9,8,14,13,14,17v2,26,-72,13,-99,21v-83,4,-124,21,-172,1",w:282},"—":{d:"175,-106v86,-9,201,1,286,-1v11,6,13,11,6,30v-118,15,-246,10,-377,10v-25,0,-73,3,-82,-8r-2,-26v11,-13,32,-9,52,-7v38,3,84,-5,117,2",w:485},"“":{d:"66,-261v-21,5,-37,51,-22,77v0,4,-2,6,-7,6v-31,-9,-38,-62,-12,-94v12,-15,21,-28,31,-34v16,-1,19,24,22,34v10,-11,22,-32,43,-23v-2,8,4,16,5,19v-6,11,-51,53,-29,74v-12,21,-30,5,-33,-17v-6,-13,9,-28,2,-42",w:118},"”":{d:"120,-294v12,3,30,26,19,34v2,15,-40,70,-55,66v-40,-10,10,-51,14,-64v3,-3,8,-31,22,-36xm70,-306v14,3,26,34,16,49v-19,30,-31,45,-58,59v-12,-11,-33,-17,-7,-36v13,-19,36,-27,36,-59v0,-5,9,-13,13,-13",w:148},"‘":{d:"73,-262v-10,7,-41,39,-38,69v-15,13,-27,-16,-28,-28v-2,-20,51,-83,66,-83v20,0,25,41,0,42",w:95},"’":{d:"74,-300v13,31,-1,99,-44,101v-13,0,-19,-5,-19,-15v6,-10,31,-34,35,-59v2,-11,1,-32,11,-32v6,0,11,2,17,5",w:90},"÷":{d:"167,-158v-4,3,-7,9,-10,20v-23,4,-34,-8,-29,-31v14,-6,18,1,39,11xm78,-72v-53,11,-53,12,-69,-15v-1,-12,11,-17,22,-14v71,-13,151,-18,230,-24v11,1,21,16,23,28v-28,20,-90,11,-126,16v-36,5,-62,5,-80,9xm123,-40v19,-17,41,-1,41,17v0,13,-6,19,-17,19v-15,0,-29,-14,-24,-36",w:293},"◊":{d:"76,-158v48,-8,64,11,100,36v28,19,-5,39,-22,54v-15,13,-40,32,-48,49v-17,5,-12,0,-27,-16v-6,-6,-86,-31,-68,-53r2,-9v27,-23,48,-44,63,-61xm93,-65v12,-2,35,-31,41,-38v-5,-10,-16,-14,-34,-24v-12,12,-36,29,-40,44v19,11,30,18,33,18",w:199},"ÿ":{d:"118,85v-11,11,-11,38,-22,61v-2,-1,-2,31,-17,27v-11,0,-21,-10,-21,-22v20,-66,23,-61,64,-168v-22,1,-38,16,-58,4v-22,4,-51,-16,-51,-42v-11,-13,-7,-59,7,-58v16,1,21,24,22,51v21,33,66,5,94,-7v4,-3,26,-14,38,-29r17,0v23,44,-23,59,-34,102v-6,9,-13,9,-13,26v-15,6,-12,33,-27,48v0,2,1,4,1,7xm158,-136v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,29,1,28,21xm62,-161v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35",w:190},"Ÿ":{d:"176,-189v35,20,-25,54,-39,72v-26,34,-57,57,-74,104v-10,15,-4,14,-23,3r0,-10v19,-44,27,-46,50,-81v-9,-5,-24,4,-34,4v-38,0,-54,-50,-44,-87v21,-5,18,19,22,35v4,18,15,27,29,27v41,0,60,-39,113,-67xm153,-222v0,8,-3,12,-11,12v-18,0,-21,-19,-16,-33v18,-1,28,2,27,21xm57,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18",w:135},"⁄":{d:"193,-305v7,6,17,31,3,41v-10,7,-12,13,-21,25v-79,56,-190,209,-197,260r-18,0v-23,-19,9,-70,15,-85v52,-83,121,-179,218,-241",w:120},"¤":{d:"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30",w:312},"€":{d:"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30",w:312},"‹":{d:"64,-107v9,17,86,17,87,43v0,11,-4,16,-13,16v-36,-11,-70,-22,-109,-31v-19,-4,-18,-14,-9,-36v59,-56,93,-84,101,-84v17,0,19,20,13,29",w:159},"›":{d:"41,-181v26,27,112,44,70,91r-82,60v-20,3,-25,-23,-13,-32r70,-51r-66,-46v-5,-6,-4,-28,5,-29v4,2,9,4,16,7",w:137},"":{d:"74,-74v-6,-24,-70,8,-68,-27v0,-6,6,-20,20,-18v44,6,45,-9,42,-49v7,-40,26,-114,90,-104v48,-2,63,-1,90,30v11,25,4,14,2,44v-7,17,-54,9,-49,-7r8,-21v-5,-13,-22,-9,-43,-11v-56,-6,-63,45,-67,92v-2,21,5,23,22,22v37,-1,80,-9,113,-1v13,31,-9,82,-22,106v-13,10,-26,-6,-22,-25r11,-46v0,-3,-2,-6,-6,-6v-19,0,-47,3,-83,9v-6,1,-9,4,-8,11r12,59v-1,9,-11,30,-23,18v-18,-18,-15,-59,-19,-76",w:272},"":{d:"43,-61v-21,4,-36,2,-39,-15v-4,-35,41,-8,34,-47v4,-59,12,-99,46,-124v11,-42,157,-47,149,13v1,7,-7,15,-13,15v-18,-7,-19,-26,-47,-23v-34,3,-65,6,-79,37v-12,27,-22,52,-21,91v13,9,31,-11,45,-4v32,-15,50,-6,94,-13v12,-30,19,-79,36,-133v1,-5,5,-8,12,-8v44,18,-18,106,-12,144v-9,22,-1,73,-16,104v2,28,-23,28,-37,16v1,-26,9,-48,11,-75v0,-6,-3,-9,-9,-9v-43,0,-83,8,-119,24v8,40,17,33,-7,56v-20,-9,-21,-19,-28,-49",w:283},"‡":{d:"102,-284v16,2,42,-2,33,18v-7,15,-42,1,-38,30v3,3,31,1,30,11v4,15,-29,19,-36,24v-2,18,-4,24,-16,29r-25,-26v-25,7,-53,3,-42,-25v4,-10,70,0,51,-22v-17,4,-41,12,-39,-15v-5,-16,39,-18,44,-20v4,-2,7,-10,10,-24v19,-3,23,6,28,20",w:145},"∙":{d:"57,-77v6,18,-7,21,-19,23v-34,6,-25,-40,-9,-43v18,-3,29,8,28,20",w:67},"‚":{d:"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102",w:97},"„":{d:"25,63v-26,21,-48,-2,-22,-24v11,-9,36,-41,35,-69v3,-2,4,-12,12,-9v36,14,5,89,-25,102xm84,64v-24,20,-45,-1,-21,-24v21,-20,32,-35,35,-69v3,-2,3,-11,12,-9v36,17,9,86,-26,102",w:135},"‰":{d:"398,-131v58,-1,87,13,72,65v-1,30,-66,63,-99,65v-56,3,-99,-58,-62,-102v2,2,5,2,8,2v20,-16,51,-17,81,-30xm202,-279v33,0,94,-24,95,18v-7,31,-33,27,-54,55v-36,32,-71,74,-112,99v-18,18,-40,34,-51,58v-19,14,-25,37,-56,40v-17,2,-25,-29,-10,-40v15,-11,40,-37,52,-52r87,-72v-51,13,-100,6,-116,-27v1,-5,-6,-30,-9,-36v-3,-5,22,-41,27,-39v29,2,16,34,5,49v0,15,14,23,42,23v42,0,59,-31,28,-38v-17,-4,-53,3,-50,-23v0,-7,1,-12,4,-16v16,-9,36,4,49,5v0,0,23,-4,69,-4xm222,-118v33,-2,55,18,50,57v-29,36,-48,45,-96,50v-27,-5,-56,-17,-58,-51v13,-37,64,-43,104,-56xm335,-61v13,44,101,7,108,-31v-11,-3,-20,-4,-30,-4v-18,-1,-82,18,-78,35xm225,-244v-18,0,-29,-1,-46,3v7,15,6,28,0,43v15,-14,34,-30,46,-46xm164,-53v26,5,59,-10,76,-26v-17,-16,-49,2,-67,14v1,8,-8,6,-9,12",w:485},"Â":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm202,-219v-27,-6,-40,-26,-61,-37v-21,7,-39,46,-65,23v-2,-4,-3,-10,-4,-14v19,-4,43,-32,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-3,9,-11,9"},"Ê":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm199,-211v-27,-6,-39,-26,-60,-37v-21,7,-40,47,-65,22v-2,-7,-2,-7,-4,-13v18,-5,44,-31,61,-43v27,6,41,22,62,37v12,9,18,17,18,25v0,6,-4,9,-12,9",w:252},"Á":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm84,-250v31,-5,83,-53,100,-31v0,5,-11,15,-35,28v-16,5,-51,28,-53,25v-14,1,-16,-11,-12,-22"},"Ë":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-17,41,-17,51v55,0,112,-21,169,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-3,-21,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm191,-236v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm95,-261v7,3,29,9,28,18v0,7,-9,17,-18,17v-18,0,-26,-25,-10,-35",w:252},"È":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm184,-236v6,9,5,13,0,23v-28,-7,-62,-21,-100,-41v-3,-2,-3,-27,5,-23v34,11,60,25,95,41",w:252},"Í":{d:"26,-5v-9,-6,-9,-12,-9,-36v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76v-2,1,-2,0,-7,4xm6,-233v31,-6,83,-53,101,-31v2,11,-80,53,-89,53v-14,1,-14,-11,-12,-22",w:104},"Î":{d:"53,-9v-15,7,-16,-3,-16,-32v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76xm137,-209v-27,-6,-40,-26,-61,-37v-8,0,-9,4,-13,10v-11,13,-50,37,-56,0v18,-5,43,-32,61,-43v28,5,40,21,62,36v12,9,18,17,18,25v0,6,-4,9,-11,9",w:144},"Ï":{d:"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm111,-222v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm15,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18",w:110},"Ì":{d:"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm72,-247v7,6,55,15,36,40v-28,-7,-61,-21,-99,-41v-3,-2,-3,-27,5,-23v18,3,41,17,58,24",w:111},"Ó":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm142,-250v27,-11,47,-32,59,-14v2,11,-80,53,-89,53v-13,1,-15,-11,-12,-21v10,-5,24,-11,42,-18",w:273},"Ô":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm157,-282v17,18,52,34,54,63v-24,12,-52,-36,-53,-29r-42,34v-23,-4,-6,-31,5,-34v1,1,27,-37,36,-34",w:273},"":{d:"231,-188v31,-74,91,-99,188,-116v28,1,6,39,1,51v-20,52,-100,91,-148,126v2,4,6,7,12,10v42,-42,181,-41,166,46v-1,8,-19,8,-28,5v-43,1,-168,42,-106,86v15,16,33,28,61,39v0,10,0,17,-6,22v-8,8,-35,26,-78,51v-52,7,-128,22,-154,-17v-23,-35,-99,-35,-117,-77v-29,-68,25,-149,75,-175v44,-23,89,5,135,13v14,-26,2,-39,-1,-64",w:461},"Ò":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm161,-262v14,10,52,13,37,41v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,17,58,24",w:273},"Ú":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm194,-265v3,-1,11,4,11,6v3,12,-81,52,-89,54v-14,0,-13,-9,-12,-22",w:262},"Û":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm150,-266v24,11,58,27,73,46v0,5,-3,6,-10,6v-28,2,-61,-30,-63,-25v-10,0,-57,40,-69,23v3,-10,-8,-15,8,-19v17,-1,34,-29,61,-31",w:262},"Ù":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm151,-243v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-4,-25,4,-23v16,5,42,17,58,24",w:262},"ı":{d:"43,-103v21,4,16,56,11,100v-7,2,-11,1,-20,-5v0,-7,-13,-18,-11,-25v4,-23,-3,-68,20,-70",w:80},"ˆ":{d:"144,-220v-29,0,-41,-27,-63,-39v-8,0,-11,5,-15,11v-17,12,-32,31,-54,13v-2,-5,-3,-9,-4,-14v20,-5,45,-33,64,-45v28,6,43,23,65,38v12,9,19,19,19,27v0,6,-4,9,-12,9",w:165},"˜":{d:"47,-300v26,-21,57,19,72,23v4,0,16,-5,36,-14v24,-10,22,-16,32,-13v3,12,-7,11,-7,23v-27,21,-48,32,-62,32v-3,2,-52,-27,-51,-31v-12,-2,-34,40,-54,33v-4,-13,-8,-18,1,-24v5,-7,16,-15,33,-29",w:186},"¯":{d:"63,-295v28,-7,73,10,105,7v11,1,6,8,5,19v-37,21,-72,11,-136,11v-23,0,-31,-14,-27,-36v12,-15,40,0,53,-1",w:183},"˘":{d:"65,-269v20,-11,45,-31,74,-36v20,30,-42,40,-59,66v-5,6,-11,8,-18,8v-8,-3,-45,-32,-51,-54v5,-24,14,-13,34,1",w:158},"˙":{d:"23,-302v15,-13,32,1,32,18v1,22,-36,29,-39,4v0,0,3,-7,7,-22",w:70},"˚":{d:"23,-225v-43,-24,-11,-85,41,-78v16,2,31,4,46,17v32,54,-41,86,-87,61xm33,-257v2,20,57,11,57,-6v0,-6,-11,-9,-33,-12v-14,-2,-24,13,-24,18",w:123},"¸":{d:"74,16v32,2,49,14,55,36v-3,7,-14,31,-29,33v-28,4,-57,11,-88,14v-19,-6,-13,-31,8,-33v20,-1,59,-5,73,-14v-17,-14,-68,8,-53,-37v9,-10,2,-28,24,-30v8,8,13,17,10,31",w:129},"˝":{d:"91,-249v15,-11,38,-53,57,-29v0,9,0,14,-3,23v-2,3,-20,22,-54,55v-5,5,-10,8,-16,8v-17,2,-6,-22,-7,-31v-1,0,-2,0,-4,1v-17,21,-29,31,-50,27v-5,-18,-3,-15,3,-27v23,-27,40,-46,48,-59v7,-12,31,3,29,9v-1,14,-3,24,-13,31v4,4,9,-1,10,-8",w:151},"˛":{d:"82,-5v-8,12,-16,55,-21,75v0,4,2,7,7,7v6,0,22,-7,50,-20v8,0,12,7,12,20v-2,22,-6,14,-27,30v-15,12,-26,16,-30,16v-47,-8,-59,-14,-56,-75v8,-27,12,-54,25,-77v19,-21,35,15,40,24",w:138},"ˇ":{d:"39,-286v33,46,63,-4,96,-16v6,0,9,6,9,19v0,24,-49,46,-77,46v-32,0,-52,-28,-59,-48v0,-25,23,-17,31,-1",w:153},"\\r":{w:179}}}),function(){\nfunction AssertException(message){this.message=message}function assert(exp,message){if(!exp)throw new AssertException(message)}function getCenterX(box){return box.x+box.width/2}function getCenterY(box){return box.y+box.height/2}var DIAGRAM_MARGIN=10,ACTOR_MARGIN=10,ACTOR_PADDING=10,SIGNAL_MARGIN=5,SIGNAL_PADDING=5,NOTE_MARGIN=10,NOTE_PADDING=5,NOTE_OVERLAP=15,TITLE_MARGIN=0,TITLE_PADDING=5,SELF_SIGNAL_WIDTH=20,PLACEMENT=Diagram.PLACEMENT,LINETYPE=Diagram.LINETYPE,ARROWTYPE=Diagram.ARROWTYPE,LINE={stroke:"#000","stroke-width":2},RECT={fill:"#fff"};AssertException.prototype.toString=function(){return"AssertException: "+this.message},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\\s+|\\s+$/g,"")}),Raphael.fn.line=function(x1,y1,x2,y2){return assert(_.all([x1,x2,y1,y2],_.isFinite),"x1,x2,y1,y2 must be numeric"),this.path("M{0},{1} L{2},{3}",x1,y1,x2,y2)},Raphael.fn.wobble=function(x1,y1,x2,y2){assert(_.all([x1,x2,y1,y2],_.isFinite),"x1,x2,y1,y2 must be numeric");var wobble=Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))/25,r1=Math.random(),r2=Math.random(),xfactor=Math.random()>.5?wobble:-wobble,yfactor=Math.random()>.5?wobble:-wobble,p1={x:(x2-x1)*r1+x1+xfactor,y:(y2-y1)*r1+y1+yfactor},p2={x:(x2-x1)*r2+x1-xfactor,y:(y2-y1)*r2+y1-yfactor};return"C"+p1.x+","+p1.y+" "+p2.x+","+p2.y+" "+x2+","+y2},Raphael.fn.text_bbox=function(text,font){var p;font._obj?p=this.print_center(0,0,text,font._obj,font["font-size"]):(p=this.text(0,0,text),p.attr(font));var bb=p.getBBox();return p.remove(),bb},Raphael.fn.handRect=function(x,y,w,h){return assert(_.all([x,y,w,h],_.isFinite),"x, y, w, h must be numeric"),this.path("M"+x+","+y+this.wobble(x,y,x+w,y)+this.wobble(x+w,y,x+w,y+h)+this.wobble(x+w,y+h,x,y+h)+this.wobble(x,y+h,x,y)).attr(RECT)},Raphael.fn.handLine=function(x1,y1,x2,y2){return assert(_.all([x1,x2,y1,y2],_.isFinite),"x1,x2,y1,y2 must be numeric"),this.path("M"+x1+","+y1+this.wobble(x1,y1,x2,y2))},Raphael.fn.print_center=function(x,y,string,font,size,letter_spacing){var path=this.print(x,y,string,font,size,"baseline",letter_spacing),bb=path.getBBox(),dx=x-bb.x-bb.width/2,dy=y-bb.y-bb.height/2,m=new Raphael.matrix;return m.translate(dx,dy),path.attr("path",Raphael.mapPath(path.attr("path"),m))};var BaseTheme=function(diagram){this.init(diagram)};_.extend(BaseTheme.prototype,{init:function(diagram){this.diagram=diagram,this._paper=void 0,this._font=void 0,this._title=void 0,this._actors_height=0,this._signals_height=0;var a=this.arrow_types={};a[ARROWTYPE.FILLED]="block",a[ARROWTYPE.OPEN]="open";var l=this.line_types={};l[LINETYPE.SOLID]="",l[LINETYPE.DOTTED]="-"},init_paper:function(container){this._paper=new Raphael(container,320,200)},init_font:function(){},draw_line:function(x1,y1,x2,y2){return this._paper.line(x1,y1,x2,y2)},draw_rect:function(x,y,w,h){return this._paper.rect(x,y,w,h)},draw:function(container){var diagram=this.diagram;this.init_paper(container),this.init_font(),this.layout();var title_height=this._title?this._title.height:0;this._paper.setStart(),this._paper.setSize(diagram.width,diagram.height);var y=DIAGRAM_MARGIN+title_height;this.draw_title(),this.draw_actors(y),this.draw_signals(y+this._actors_height),this._paper.setFinish()},layout:function(){function actor_ensure_distance(a,b,d){assert(b>a,"a must be less than or equal to b"),0>a?(b=actors[b],b.x=Math.max(d-b.width/2,b.x)):b>=actors.length?(a=actors[a],a.padding_right=Math.max(d,a.padding_right)):(a=actors[a],a.distances[b]=Math.max(d,a.distances[b]?a.distances[b]:0))}var diagram=this.diagram,paper=this._paper,font=this._font,actors=diagram.actors,signals=diagram.signals;if(diagram.width=0,diagram.height=0,diagram.title){var title=this._title={},bb=paper.text_bbox(diagram.title,font);title.text_bb=bb,title.message=diagram.title,title.width=bb.width+2*(TITLE_PADDING+TITLE_MARGIN),title.height=bb.height+2*(TITLE_PADDING+TITLE_MARGIN),title.x=DIAGRAM_MARGIN,title.y=DIAGRAM_MARGIN,diagram.width+=title.width,diagram.height+=title.height}_.each(actors,function(a){var bb=paper.text_bbox(a.name,font);a.text_bb=bb,a.x=0,a.y=0,a.width=bb.width+2*(ACTOR_PADDING+ACTOR_MARGIN),a.height=bb.height+2*(ACTOR_PADDING+ACTOR_MARGIN),a.distances=[],a.padding_right=0,this._actors_height=Math.max(a.height,this._actors_height)},this),_.each(signals,function(s){var a,b,bb=paper.text_bbox(s.message,font);s.text_bb=bb,s.width=bb.width,s.height=bb.height;var extra_width=0;if("Signal"==s.type)s.width+=2*(SIGNAL_MARGIN+SIGNAL_PADDING),s.height+=2*(SIGNAL_MARGIN+SIGNAL_PADDING),s.isSelf()?(a=s.actorA.index,b=a+1,s.width+=SELF_SIGNAL_WIDTH):(a=Math.min(s.actorA.index,s.actorB.index),b=Math.max(s.actorA.index,s.actorB.index));else{if("Note"!=s.type)throw new Error("Unhandled signal type:"+s.type);if(s.width+=2*(NOTE_MARGIN+NOTE_PADDING),s.height+=2*(NOTE_MARGIN+NOTE_PADDING),extra_width=2*ACTOR_MARGIN,s.placement==PLACEMENT.LEFTOF)b=s.actor.index,a=b-1;else if(s.placement==PLACEMENT.RIGHTOF)a=s.actor.index,b=a+1;else if(s.placement==PLACEMENT.OVER&&s.hasManyActors())a=Math.min(s.actor[0].index,s.actor[1].index),b=Math.max(s.actor[0].index,s.actor[1].index),extra_width=-(2*NOTE_PADDING+2*NOTE_OVERLAP);else if(s.placement==PLACEMENT.OVER)return a=s.actor.index,actor_ensure_distance(a-1,a,s.width/2),actor_ensure_distance(a,a+1,s.width/2),this._signals_height+=s.height,void 0}actor_ensure_distance(a,b,s.width+extra_width),this._signals_height+=s.height},this);var actors_x=0;return _.each(actors,function(a){a.x=Math.max(actors_x,a.x),_.each(a.distances,function(distance,b){"undefined"!=typeof distance&&(b=actors[b],distance=Math.max(distance,a.width/2,b.width/2),b.x=Math.max(b.x,a.x+a.width/2+distance-b.width/2))}),actors_x=a.x+a.width+a.padding_right},this),diagram.width=Math.max(actors_x,diagram.width),diagram.width+=2*DIAGRAM_MARGIN,diagram.height+=2*DIAGRAM_MARGIN+2*this._actors_height+this._signals_height,this},draw_title:function(){var title=this._title;title&&this.draw_text_box(title,title.message,TITLE_MARGIN,TITLE_PADDING,this._font)},draw_actors:function(offsetY){var y=offsetY;_.each(this.diagram.actors,function(a){this.draw_actor(a,y,this._actors_height),this.draw_actor(a,y+this._actors_height+this._signals_height,this._actors_height);var aX=getCenterX(a),line=this.draw_line(aX,y+this._actors_height-ACTOR_MARGIN,aX,y+this._actors_height+ACTOR_MARGIN+this._signals_height);line.attr(LINE)},this)},draw_actor:function(actor,offsetY,height){actor.y=offsetY,actor.height=height,this.draw_text_box(actor,actor.name,ACTOR_MARGIN,ACTOR_PADDING,this._font)},draw_signals:function(offsetY){var y=offsetY;_.each(this.diagram.signals,function(s){"Signal"==s.type?s.isSelf()?this.draw_self_signal(s,y):this.draw_signal(s,y):"Note"==s.type&&this.draw_note(s,y),y+=s.height},this)},draw_self_signal:function(signal,offsetY){assert(signal.isSelf(),"signal must be a self signal");var text_bb=signal.text_bb,aX=getCenterX(signal.actorA),x=aX+SELF_SIGNAL_WIDTH+SIGNAL_PADDING-text_bb.x,y=offsetY+signal.height/2;this.draw_text(x,y,signal.message,this._font);var line,attr=_.extend({},LINE,{"stroke-dasharray":this.line_types[signal.linetype]}),y1=offsetY+SIGNAL_MARGIN,y2=y1+signal.height-SIGNAL_MARGIN;line=this.draw_line(aX,y1,aX+SELF_SIGNAL_WIDTH,y1),line.attr(attr),line=this.draw_line(aX+SELF_SIGNAL_WIDTH,y1,aX+SELF_SIGNAL_WIDTH,y2),line.attr(attr),line=this.draw_line(aX+SELF_SIGNAL_WIDTH,y2,aX,y2),attr["arrow-end"]=this.arrow_types[signal.arrowtype]+"-wide-long",line.attr(attr)},draw_signal:function(signal,offsetY){var aX=getCenterX(signal.actorA),bX=getCenterX(signal.actorB),x=(bX-aX)/2+aX,y=offsetY+SIGNAL_MARGIN+2*SIGNAL_PADDING;this.draw_text(x,y,signal.message,this._font),y=offsetY+signal.height-SIGNAL_MARGIN-SIGNAL_PADDING;var line=this.draw_line(aX,y,bX,y);line.attr(LINE),line.attr({"arrow-end":this.arrow_types[signal.arrowtype]+"-wide-long","stroke-dasharray":this.line_types[signal.linetype]})},draw_note:function(note,offsetY){note.y=offsetY;var actorA=note.hasManyActors()?note.actor[0]:note.actor,aX=getCenterX(actorA);switch(note.placement){case PLACEMENT.RIGHTOF:note.x=aX+ACTOR_MARGIN;break;case PLACEMENT.LEFTOF:note.x=aX-ACTOR_MARGIN-note.width;break;case PLACEMENT.OVER:if(note.hasManyActors()){var bX=getCenterX(note.actor[1]),overlap=NOTE_OVERLAP+NOTE_PADDING;note.x=aX-overlap,note.width=bX+overlap-note.x}else note.x=aX-note.width/2;break;default:throw new Error("Unhandled note placement:"+note.placement)}this.draw_text_box(note,note.message,NOTE_MARGIN,NOTE_PADDING,this._font)},draw_text:function(x,y,text,font){var t,paper=this._paper,f=font||{};f._obj?t=paper.print_center(x,y,text,f._obj,f["font-size"]):(t=paper.text(x,y,text),t.attr(f));var bb=t.getBBox(),r=paper.rect(bb.x,bb.y,bb.width,bb.height);r.attr({fill:"#fff",stroke:"none"}),t.toFront()},draw_text_box:function(box,text,margin,padding,font){var x=box.x+margin,y=box.y+margin,w=box.width-2*margin,h=box.height-2*margin,rect=this.draw_rect(x,y,w,h);rect.attr(LINE),x=getCenterX(box),y=getCenterY(box),this.draw_text(x,y,text,font)}});var RaphaëlTheme=function(diagram){this.init(diagram)};_.extend(RaphaëlTheme.prototype,BaseTheme.prototype,{init_font:function(){this._font={"font-size":16,"font-family":"Andale Mono, monospace"}}});var HandRaphaëlTheme=function(diagram){this.init(diagram)};_.extend(HandRaphaëlTheme.prototype,BaseTheme.prototype,{init_font:function(){this._font={"font-size":16,"font-family":"daniel"},this._font._obj=this._paper.getFont("daniel")},draw_line:function(x1,y1,x2,y2){return this._paper.handLine(x1,y1,x2,y2)},draw_rect:function(x,y,w,h){return this._paper.handRect(x,y,w,h)}});var themes={simple:RaphaëlTheme,hand:HandRaphaëlTheme};Diagram.prototype.drawSVG=function(container,options){var default_options={theme:"hand"};if(options=_.defaults(options||{},default_options),!(options.theme in themes))throw new Error("Unsupported theme: "+options.theme);var drawing=new themes[options.theme](this);drawing.draw(container)}}();\n//# sourceMappingURL=build/sequence-diagram-min.js.map'
}), function(e) {
var t, n, i = "0.4.2",
r = "hasOwnProperty",
o = /[\.\/]/,
a = "*",
s = function() {}, l = function(e, t) {
return e - t
}, c = {
n: {}
}, u = function(e, i) {
e = String(e);
var r, o = n,
a = Array.prototype.slice.call(arguments, 2),
s = u.listeners(e),
c = 0,
d = [],
p = {}, h = [],
f = t;
t = e, n = 0;
for(var m = 0, g = s.length; g > m; m++) "zIndex" in s[m] && (d.push(s[m].zIndex), s[m].zIndex < 0 && (p[s[m].zIndex] = s[m]));
for(d.sort(l); d[c] < 0;)
if(r = p[d[c++]], h.push(r.apply(i, a)), n) return n = o, h;
for(m = 0; g > m; m++)
if(r = s[m], "zIndex" in r)
if(r.zIndex == d[c]) {
if(h.push(r.apply(i, a)), n) break;
do
if(c++, r = p[d[c]], r && h.push(r.apply(i, a)), n) break; while(r)
} else p[r.zIndex] = r;
else if(h.push(r.apply(i, a)), n) break;
return n = o, t = f, h.length ? h : null
};
u._events = c, u.listeners = function(e) {
var t, n, i, r, s, l, u, d, p = e.split(o),
h = c,
f = [h],
m = [];
for(r = 0, s = p.length; s > r; r++) {
for(d = [], l = 0, u = f.length; u > l; l++)
for(h = f[l].n, n = [h[p[r]], h[a]], i = 2; i--;) t = n[i], t && (d.push(t), m = m.concat(t.f || []));
f = d
}
return m
}, u.on = function(e, t) {
if(e = String(e), "function" != typeof t) return function() {};
for(var n = e.split(o), i = c, r = 0, a = n.length; a > r; r++) i = i.n, i = i.hasOwnProperty(n[r]) && i[n[r]] || (i[n[r]] = {
n: {}
});
for(i.f = i.f || [], r = 0, a = i.f.length; a > r; r++)
if(i.f[r] == t) return s;
return i.f.push(t),
function(e) {
+e == +e && (t.zIndex = +e)
}
}, u.f = function(e) {
var t = [].slice.call(arguments, 1);
return function() {
u.apply(null, [e, null].concat(t).concat([].slice.call(arguments, 0)))
}
}, u.stop = function() {
n = 1
}, u.nt = function(e) {
return e ? new RegExp("(?:\\.|\\/|^)" + e + "(?:\\.|\\/|$)").test(t) : t
}, u.nts = function() {
return t.split(o)
}, u.off = u.unbind = function(e, t) {
if(!e) return void(u._events = c = {
n: {}
});
var n, i, s, l, d, p, h, f = e.split(o),
m = [c];
for(l = 0, d = f.length; d > l; l++)
for(p = 0; p < m.length; p += s.length - 2) {
if(s = [p, 1], n = m[p].n, f[l] != a) n[f[l]] && s.push(n[f[l]]);
else
for(i in n) n[r](i) && s.push(n[i]);
m.splice.apply(m, s)
}
for(l = 0, d = m.length; d > l; l++)
for(n = m[l]; n.n;) {
if(t) {
if(n.f) {
for(p = 0, h = n.f.length; h > p; p++)
if(n.f[p] == t) {
n.f.splice(p, 1);
break
}!n.f.length && delete n.f
}
for(i in n.n)
if(n.n[r](i) && n.n[i].f) {
var g = n.n[i].f;
for(p = 0, h = g.length; h > p; p++)
if(g[p] == t) {
g.splice(p, 1);
break
}!g.length && delete n.n[i].f
}
} else {
delete n.f;
for(i in n.n) n.n[r](i) && n.n[i].f && delete n.n[i].f
}
n = n.n
}
}, u.once = function(e, t) {
var n = function() {
return u.unbind(e, n), t.apply(this, arguments)
};
return u.on(e, n)
}, u.version = i, u.toString = function() {
return "You are running Eve " + i
}, "undefined" != typeof module && module.exports ? module.exports = u : "undefined" != typeof define ? define("eve", [], function() {
return u
}) : e.eve = u
}(this), function(e, t) {
"function" == typeof define && define.amd ? define("raphael", ["eve"], function(n) {
return t(e, n)
}) : t(e, e.eve)
}(this, function(e, t) {
function n(e) {
if(n.is(e, "function")) return x ? e() : t.on("raphael.DOMload", e);
if(n.is(e, W)) return n._engine.create[N](n, e.splice(0, 3 + n.is(e[0], z))).add(e);
var i = Array.prototype.slice.call(arguments, 0);
if(n.is(i[i.length - 1], "function")) {
var r = i.pop();
return x ? r.call(n._engine.create[N](n, i)) : t.on("raphael.DOMload", function() {
r.call(n._engine.create[N](n, i))
})
}
return n._engine.create[N](n, arguments)
}
function i(e) {
if("function" == typeof e || Object(e) !== e) return e;
var t = new e.constructor;
for(var n in e) e[k](n) && (t[n] = i(e[n]));
return t
}
function r(e, t) {
for(var n = 0, i = e.length; i > n; n++)
if(e[n] === t) return e.push(e.splice(n, 1)[0])
}
function o(e, t, n) {
function i() {
var o = Array.prototype.slice.call(arguments, 0),
a = o.join("␀"),
s = i.cache = i.cache || {}, l = i.count = i.count || [];
return s[k](a) ? (r(l, a), n ? n(s[a]) : s[a]) : (l.length >= 1e3 && delete s[l.shift()], l.push(a), s[a] = e[N](t, o), n ? n(s[a]) : s[a])
}
return i
}
function a() {
return this.hex
}
function s(e, t) {
for(var n = [], i = 0, r = e.length; r - 2 * !t > i; i += 2) {
var o = [{
x: +e[i - 2],
y: +e[i - 1]
}, {
x: +e[i],
y: +e[i + 1]
}, {
x: +e[i + 2],
y: +e[i + 3]
}, {
x: +e[i + 4],
y: +e[i + 5]
}];
t ? i ? r - 4 == i ? o[3] = {
x: +e[0],
y: +e[1]
} : r - 2 == i && (o[2] = {
x: +e[0],
y: +e[1]
}, o[3] = {
x: +e[2],
y: +e[3]
}) : o[0] = {
x: +e[r - 2],
y: +e[r - 1]
} : r - 4 == i ? o[3] = o[2] : i || (o[0] = {
x: +e[i],
y: +e[i + 1]
}), n.push(["C", (-o[0].x + 6 * o[1].x + o[2].x) / 6, (-o[0].y + 6 * o[1].y + o[2].y) / 6, (o[1].x + 6 * o[2].x - o[3].x) / 6, (o[1].y + 6 * o[2].y - o[3].y) / 6, o[2].x, o[2].y])
}
return n
}
function l(e, t, n, i, r) {
var o = -3 * t + 9 * n - 9 * i + 3 * r,
a = e * o + 6 * t - 12 * n + 6 * i;
return e * a - 3 * t + 3 * n
}
function c(e, t, n, i, r, o, a, s, c) {
null == c && (c = 1), c = c > 1 ? 1 : 0 > c ? 0 : c;
for(var u = c / 2, d = 12, p = [-.1252, .1252, -.3678, .3678, -.5873, .5873, -.7699, .7699, -.9041, .9041, -.9816, .9816], h = [.2491, .2491, .2335, .2335, .2032, .2032, .1601, .1601, .1069, .1069, .0472, .0472], f = 0, m = 0; d > m; m++) {
var g = u * p[m] + u,
v = l(g, e, n, r, a),
b = l(g, t, i, o, s),
y = v * v + b * b;
f += h[m] * j.sqrt(y)
}
return u * f
}
function u(e, t, n, i, r, o, a, s, l) {
if(!(0 > l || c(e, t, n, i, r, o, a, s) < l)) {
var u, d = 1,
p = d / 2,
h = d - p,
f = .01;
for(u = c(e, t, n, i, r, o, a, s, h); q(u - l) > f;) p /= 2, h += (l > u ? 1 : -1) * p, u = c(e, t, n, i, r, o, a, s, h);
return h
}
}
function d(e, t, n, i, r, o, a, s) {
if(!($(e, n) < G(r, a) || G(e, n) > $(r, a) || $(t, i) < G(o, s) || G(t, i) > $(o, s))) {
var l = (e * i - t * n) * (r - a) - (e - n) * (r * s - o * a),
c = (e * i - t * n) * (o - s) - (t - i) * (r * s - o * a),
u = (e - n) * (o - s) - (t - i) * (r - a);
if(u) {
var d = l / u,
p = c / u,
h = +d.toFixed(2),
f = +p.toFixed(2);
if(!(h < +G(e, n).toFixed(2) || h > +$(e, n).toFixed(2) || h < +G(r, a).toFixed(2) || h > +$(r, a).toFixed(2) || f < +G(t, i).toFixed(2) || f > +$(t, i).toFixed(2) || f < +G(o, s).toFixed(2) || f > +$(o, s).toFixed(2))) return {
x: d,
y: p
}
}
}
}
function p(e, t, i) {
var r = n.bezierBBox(e),
o = n.bezierBBox(t);
if(!n.isBBoxIntersect(r, o)) return i ? 0 : [];
for(var a = c.apply(0, e), s = c.apply(0, t), l = $(~~(a / 5), 1), u = $(~~(s / 5), 1), p = [], h = [], f = {}, m = i ? 0 : [], g = 0; l + 1 > g; g++) {
var v = n.findDotsAtSegment.apply(n, e.concat(g / l));
p.push({
x: v.x,
y: v.y,
t: g / l
})
}
for(g = 0; u + 1 > g; g++) v = n.findDotsAtSegment.apply(n, t.concat(g / u)), h.push({
x: v.x,
y: v.y,
t: g / u
});
for(g = 0; l > g; g++)
for(var b = 0; u > b; b++) {
var y = p[g],
x = p[g + 1],
w = h[b],
S = h[b + 1],
C = q(x.x - y.x) < .001 ? "y" : "x",
_ = q(S.x - w.x) < .001 ? "y" : "x",
k = d(y.x, y.y, x.x, x.y, w.x, w.y, S.x, S.y);
if(k) {
if(f[k.x.toFixed(4)] == k.y.toFixed(4)) continue;
f[k.x.toFixed(4)] = k.y.toFixed(4);
var T = y.t + q((k[C] - y[C]) / (x[C] - y[C])) * (x.t - y.t),
E = w.t + q((k[_] - w[_]) / (S[_] - w[_])) * (S.t - w.t);
T >= 0 && 1.001 >= T && E >= 0 && 1.001 >= E && (i ? m++ : m.push({
x: k.x,
y: k.y,
t1: G(T, 1),
t2: G(E, 1)
}))
}
}
return m
}
function h(e, t, i) {
e = n._path2curve(e), t = n._path2curve(t);
for(var r, o, a, s, l, c, u, d, h, f, m = i ? 0 : [], g = 0, v = e.length; v > g; g++) {
var b = e[g];
if("M" == b[0]) r = l = b[1], o = c = b[2];
else {
"C" == b[0] ? (h = [r, o].concat(b.slice(1)), r = h[6], o = h[7]) : (h = [r, o, r, o, l, c, l, c], r = l, o = c);
for(var y = 0, x = t.length; x > y; y++) {
var w = t[y];
if("M" == w[0]) a = u = w[1], s = d = w[2];
else {
"C" == w[0] ? (f = [a, s].concat(w.slice(1)), a = f[6], s = f[7]) : (f = [a, s, a, s, u, d, u, d], a = u, s = d);
var S = p(h, f, i);
if(i) m += S;
else {
for(var C = 0, _ = S.length; _ > C; C++) S[C].segment1 = g, S[C].segment2 = y, S[C].bez1 = h, S[C].bez2 = f;
m = m.concat(S)
}
}
}
}
}
return m
}
function f(e, t, n, i, r, o) {
null != e ? (this.a = +e, this.b = +t, this.c = +n, this.d = +i, this.e = +r, this.f = +o) : (this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.e = 0, this.f = 0)
}
function m() {
return this.x + M + this.y + M + this.width + " × " + this.height
}
function g(e, t, n, i, r, o) {
function a(e) {
return((d * e + u) * e + c) * e
}
function s(e, t) {
var n = l(e, t);
return((f * n + h) * n + p) * n
}
function l(e, t) {
var n, i, r, o, s, l;
for(r = e, l = 0; 8 > l; l++) {
if(o = a(r) - e, q(o) < t) return r;
if(s = (3 * d * r + 2 * u) * r + c, q(s) < 1e-6) break;
r -= o / s
}
if(n = 0, i = 1, r = e, n > r) return n;
if(r > i) return i;
for(; i > n;) {
if(o = a(r), q(o - e) < t) return r;
e > o ? n = r : i = r, r = (i - n) / 2 + n
}
return r
}
var c = 3 * t,
u = 3 * (i - t) - c,
d = 1 - c - u,
p = 3 * n,
h = 3 * (r - n) - p,
f = 1 - p - h;
return s(e, 1 / (200 * o))
}
function v(e, t) {
var n = [],
i = {};
if(this.ms = t, this.times = 1, e) {
for(var r in e) e[k](r) && (i[Z(r)] = e[r], n.push(Z(r)));
n.sort(dt)
}
this.anim = i, this.top = n[n.length - 1], this.percents = n
}
function b(e, i, r, o, a, s) {
r = Z(r);
var l, c, u, d, p, h, m = e.ms,
v = {}, b = {}, y = {};
if(o)
for(w = 0, C = cn.length; C > w; w++) {
var x = cn[w];
if(x.el.id == i.id && x.anim == e) {
x.percent != r ? (cn.splice(w, 1), u = 1) : c = x, i.attr(x.totalOrigin);
break
}
} else o = +b;
for(var w = 0, C = e.percents.length; C > w; w++) {
if(e.percents[w] == r || e.percents[w] > o * e.top) {
r = e.percents[w], p = e.percents[w - 1] || 0, m = m / e.top * (r - p), d = e.percents[w + 1], l = e.anim[r];
break
}
o && i.attr(e.anim[e.percents[w]])
}
if(l) {
if(c) c.initstatus = o, c.start = new Date - c.ms * o;
else {
for(var _ in l)
if(l[k](_) && (it[k](_) || i.paper.customAttributes[k](_))) switch(v[_] = i.attr(_), null == v[_] && (v[_] = nt[_]), b[_] = l[_], it[_]) {
case z:
y[_] = (b[_] - v[_]) / m;
break;
case "colour":
v[_] = n.getRGB(v[_]);
var T = n.getRGB(b[_]);
y[_] = {
r: (T.r - v[_].r) / m,
g: (T.g - v[_].g) / m,
b: (T.b - v[_].b) / m
};
break;
case "path":
var E = Ft(v[_], b[_]),
I = E[1];
for(v[_] = E[0], y[_] = [], w = 0, C = v[_].length; C > w; w++) {
y[_][w] = [0];
for(var N = 1, L = v[_][w].length; L > N; N++) y[_][w][N] = (I[w][N] - v[_][w][N]) / m
}
break;
case "transform":
var A = i._,
M = Gt(A[_], b[_]);
if(M)
for(v[_] = M.from, b[_] = M.to, y[_] = [], y[_].real = !0, w = 0, C = v[_].length; C > w; w++)
for(y[_][w] = [v[_][w][0]], N = 1, L = v[_][w].length; L > N; N++) y[_][w][N] = (b[_][w][N] - v[_][w][N]) / m;
else {
var F = i.matrix || new f,
O = {
_: {
transform: A.transform
},
getBBox: function() {
return i.getBBox(1)
}
};
v[_] = [F.a, F.b, F.c, F.d, F.e, F.f], jt(O, b[_]), b[_] = O._.transform, y[_] = [(O.matrix.a - F.a) / m, (O.matrix.b - F.b) / m, (O.matrix.c - F.c) / m, (O.matrix.d - F.d) / m, (O.matrix.e - F.e) / m, (O.matrix.f - F.f) / m]
}
break;
case "csv":
var B = R(l[_])[P](S),
j = R(v[_])[P](S);
if("clip-rect" == _)
for(v[_] = j, y[_] = [], w = j.length; w--;) y[_][w] = (B[w] - v[_][w]) / m;
b[_] = B;
break;
default:
for(B = [][D](l[_]), j = [][D](v[_]), y[_] = [], w = i.paper.customAttributes[_].length; w--;) y[_][w] = ((B[w] || 0) - (j[w] || 0)) / m
}
var $ = l.easing, G = n.easing_formulas[$];
if(!G)
if(G = R($).match(K), G && 5 == G.length) {
var q = G;
G = function(e) {
return g(e, +q[1], +q[2], +q[3], +q[4], m)
}
} else G = ht;
if(h = l.start || e.start || +new Date, x = {
anim: e,
percent: r,
timestamp: h,
start: h + (e.del || 0),
status: 0,
initstatus: o || 0,
stop: !1,
ms: m,
easing: G,
from: v,
diff: y,
to: b,
el: i,
callback: l.callback,
prev: p,
next: d,
repeat: s || e.times,
origin: i.attr(),
totalOrigin: a
}, cn.push(x), o && !c && !u && (x.stop = !0, x.start = new Date - m * o, 1 == cn.length)) return dn();
u && (x.start = new Date - x.ms * o), 1 == cn.length && un(dn)
}
t("raphael.anim.start." + i.id, i, e)
}
}
function y(e) {
for(var t = 0; t < cn.length; t++) cn[t].el.paper == e && cn.splice(t--, 1)
}
n.version = "2.1.0", n.eve = t;
var x, w, S = /[, ]+/,
C = {
circle: 1,
rect: 1,
path: 1,
ellipse: 1,
text: 1,
image: 1
}, _ = /\{(\d+)\}/g,
k = "hasOwnProperty",
T = {
doc: document,
win: e
}, E = {
was: Object.prototype[k].call(T.win, "Raphael"),
is: T.win.Raphael
}, I = function() {
this.ca = this.customAttributes = {}
}, N = "apply",
D = "concat",
L = "ontouchstart" in T.win || T.win.DocumentTouch && T.doc instanceof DocumentTouch,
A = "",
M = " ",
R = String,
P = "split",
F = "click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel" [P](M),
O = {
mousedown: "touchstart",
mousemove: "touchmove",
mouseup: "touchend"
}, B = R.prototype.toLowerCase,
j = Math,
$ = j.max,
G = j.min,
q = j.abs,
H = j.pow,
U = j.PI,
z = "number",
V = "string",
W = "array",
X = Object.prototype.toString,
Q = (n._ISURL = /^url\(['"]?([^\)]+?)['"]?\)$/i, /^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),
Y = {
NaN: 1,
Infinity: 1,
"-Infinity": 1
}, K = /^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,
J = j.round,
Z = parseFloat,
et = parseInt,
tt = R.prototype.toUpperCase,
nt = n._availableAttrs = {
"arrow-end": "none",
"arrow-start": "none",
blur: 0,
"clip-rect": "0 0 1e9 1e9",
cursor: "default",
cx: 0,
cy: 0,
fill: "#fff",
"fill-opacity": 1,
font: '10px "Arial"',
"font-family": '"Arial"',
"font-size": "10",
"font-style": "normal",
"font-weight": 400,
gradient: 0,
height: 0,
href: "http://raphaeljs.com/",
"letter-spacing": 0,
opacity: 1,
path: "M0,0",
r: 0,
rx: 0,
ry: 0,
src: "",
stroke: "#000",
"stroke-dasharray": "",
"stroke-linecap": "butt",
"stroke-linejoin": "butt",
"stroke-miterlimit": 0,
"stroke-opacity": 1,
"stroke-width": 1,
target: "_blank",
"text-anchor": "middle",
title: "Raphael",
transform: "",
width: 0,
x: 0,
y: 0
}, it = n._availableAnimAttrs = {
blur: z,
"clip-rect": "csv",
cx: z,
cy: z,
fill: "colour",
"fill-opacity": z,
"font-size": z,
height: z,
opacity: z,
path: "path",
r: z,
rx: z,
ry: z,
stroke: "colour",
"stroke-opacity": z,
"stroke-width": z,
transform: "transform",
width: z,
x: z,
y: z
}, rt = /[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,
ot = {
hs: 1,
rg: 1
}, at = /,?([achlmqrstvxz]),?/gi,
st = /([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,
lt = /([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,
ct = /(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,
ut = (n._radial_gradient = /^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/, {}),
dt = function(e, t) {
return Z(e) - Z(t)
}, pt = function() {}, ht = function(e) {
return e
}, ft = n._rectPath = function(e, t, n, i, r) {
return r ? [["M", e + r, t], ["l", n - 2 * r, 0], ["a", r, r, 0, 0, 1, r, r], ["l", 0, i - 2 * r], ["a", r, r, 0, 0, 1, -r, r], ["l", 2 * r - n, 0], ["a", r, r, 0, 0, 1, -r, -r], ["l", 0, 2 * r - i], ["a", r, r, 0, 0, 1, r, -r], ["z"]] : [["M", e, t], ["l", n, 0], ["l", 0, i], ["l", -n, 0], ["z"]]
}, mt = function(e, t, n, i) {
return null == i && (i = n), [["M", e, t], ["m", 0, -i], ["a", n, i, 0, 1, 1, 0, 2 * i], ["a", n, i, 0, 1, 1, 0, -2 * i], ["z"]]
}, gt = n._getPath = {
path: function(e) {
return e.attr("path")
},
circle: function(e) {
var t = e.attrs;
return mt(t.cx, t.cy, t.r)
},
ellipse: function(e) {
var t = e.attrs;
return mt(t.cx, t.cy, t.rx, t.ry)
},
rect: function(e) {
var t = e.attrs;
return ft(t.x, t.y, t.width, t.height, t.r)
},
image: function(e) {
var t = e.attrs;
return ft(t.x, t.y, t.width, t.height)
},
text: function(e) {
var t = e._getBBox();
return ft(t.x, t.y, t.width, t.height)
},
set: function(e) {
var t = e._getBBox();
return ft(t.x, t.y, t.width, t.height)
}
}, vt = n.mapPath = function(e, t) {
if(!t) return e;
var n, i, r, o, a, s, l;
for(e = Ft(e), r = 0, a = e.length; a > r; r++)
for(l = e[r], o = 1, s = l.length; s > o; o += 2) n = t.x(l[o], l[o + 1]), i = t.y(l[o], l[o + 1]), l[o] = n, l[o + 1] = i;
return e
};
if(n._g = T, n.type = T.win.SVGAngle || T.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") ? "SVG" : "VML", "VML" == n.type) {
var bt, yt = T.doc.createElement("div");
if(yt.innerHTML = ' ', bt = yt.firstChild, bt.style.behavior = "url(#default#VML)", !bt || "object" != typeof bt.adj) return n.type = A;
yt = null
}
n.svg = !(n.vml = "VML" == n.type), n._Paper = I, n.fn = w = I.prototype = n.prototype, n._id = 0, n._oid = 0, n.is = function(e, t) {
return t = B.call(t), "finite" == t ? !Y[k](+e) : "array" == t ? e instanceof Array : "null" == t && null === e || t == typeof e && null !== e || "object" == t && e === Object(e) || "array" == t && Array.isArray && Array.isArray(e) || X.call(e).slice(8, -1).toLowerCase() == t
}, n.angle = function(e, t, i, r, o, a) {
if(null == o) {
var s = e - i,
l = t - r;
return s || l ? (180 + 180 * j.atan2(-l, -s) / U + 360) % 360 : 0
}
return n.angle(e, t, o, a) - n.angle(i, r, o, a)
}, n.rad = function(e) {
return e % 360 * U / 180
}, n.deg = function(e) {
return 180 * e / U % 360
}, n.snapTo = function(e, t, i) {
if(i = n.is(i, "finite") ? i : 10, n.is(e, W)) {
for(var r = e.length; r--;)
if(q(e[r] - t) <= i) return e[r]
} else {
e = +e;
var o = t % e;
if(i > o) return t - o;
if(o > e - i) return t - o + e
}
return t
};
n.createUUID = function(e, t) {
return function() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e, t).toUpperCase()
}
}(/[xy]/g, function(e) {
var t = 16 * j.random() | 0,
n = "x" == e ? t : 3 & t | 8;
return n.toString(16)
});
n.setWindow = function(e) {
t("raphael.setWindow", n, T.win, e), T.win = e, T.doc = T.win.document, n._engine.initWin && n._engine.initWin(T.win)
};
var xt = function(e) {
if(n.vml) {
var t, i = /^\s+|\s+$/g;
try {
var r = new ActiveXObject("htmlfile");
r.write(""), r.close(), t = r.body
} catch(a) {
t = createPopup().document.body
}
var s = t.createTextRange();
xt = o(function(e) {
try {
t.style.color = R(e).replace(i, A);
var n = s.queryCommandValue("ForeColor");
return n = (255 & n) << 16 | 65280 & n | (16711680 & n) >>> 16, "#" + ("000000" + n.toString(16)).slice(-6)
} catch(r) {
return "none"
}
})
} else {
var l = T.doc.createElement("i");
l.title = "Raphaël Colour Picker", l.style.display = "none", T.doc.body.appendChild(l), xt = o(function(e) {
return l.style.color = e, T.doc.defaultView.getComputedStyle(l, A).getPropertyValue("color")
})
}
return xt(e)
}, wt = function() {
return "hsb(" + [this.h, this.s, this.b] + ")"
}, St = function() {
return "hsl(" + [this.h, this.s, this.l] + ")"
}, Ct = function() {
return this.hex
}, _t = function(e, t, i) {
if(null == t && n.is(e, "object") && "r" in e && "g" in e && "b" in e && (i = e.b, t = e.g, e = e.r), null == t && n.is(e, V)) {
var r = n.getRGB(e);
e = r.r, t = r.g, i = r.b
}
return(e > 1 || t > 1 || i > 1) && (e /= 255, t /= 255, i /= 255), [e, t, i]
}, kt = function(e, t, i, r) {
e *= 255, t *= 255, i *= 255;
var o = {
r: e,
g: t,
b: i,
hex: n.rgb(e, t, i),
toString: Ct
};
return n.is(r, "finite") && (o.opacity = r), o
};
n.color = function(e) {
var t;
return n.is(e, "object") && "h" in e && "s" in e && "b" in e ? (t = n.hsb2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.hex = t.hex) : n.is(e, "object") && "h" in e && "s" in e && "l" in e ? (t = n.hsl2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.hex = t.hex) : (n.is(e, "string") && (e = n.getRGB(e)), n.is(e, "object") && "r" in e && "g" in e && "b" in e ? (t = n.rgb2hsl(e), e.h = t.h, e.s = t.s, e.l = t.l, t = n.rgb2hsb(e), e.v = t.b) : (e = {
hex: "none"
}, e.r = e.g = e.b = e.h = e.s = e.v = e.l = -1)), e.toString = Ct, e
}, n.hsb2rgb = function(e, t, n, i) {
this.is(e, "object") && "h" in e && "s" in e && "b" in e && (n = e.b, t = e.s, e = e.h, i = e.o), e *= 360;
var r, o, a, s, l;
return e = e % 360 / 60, l = n * t, s = l * (1 - q(e % 2 - 1)), r = o = a = n - l, e = ~~e, r += [l, s, 0, 0, s, l][e], o += [s, l, l, s, 0, 0][e], a += [0, 0, s, l, l, s][e], kt(r, o, a, i)
}, n.hsl2rgb = function(e, t, n, i) {
this.is(e, "object") && "h" in e && "s" in e && "l" in e && (n = e.l, t = e.s, e = e.h), (e > 1 || t > 1 || n > 1) && (e /= 360, t /= 100, n /= 100), e *= 360;
var r, o, a, s, l;
return e = e % 360 / 60, l = 2 * t * (.5 > n ? n : 1 - n), s = l * (1 - q(e % 2 - 1)), r = o = a = n - l / 2, e = ~~e, r += [l, s, 0, 0, s, l][e], o += [s, l, l, s, 0, 0][e], a += [0, 0, s, l, l, s][e], kt(r, o, a, i)
}, n.rgb2hsb = function(e, t, n) {
n = _t(e, t, n), e = n[0], t = n[1], n = n[2];
var i, r, o, a;
return o = $(e, t, n), a = o - G(e, t, n), i = 0 == a ? null : o == e ? (t - n) / a : o == t ? (n - e) / a + 2 : (e - t) / a + 4, i = (i + 360) % 6 * 60 / 360, r = 0 == a ? 0 : a / o, {
h: i,
s: r,
b: o,
toString: wt
}
}, n.rgb2hsl = function(e, t, n) {
n = _t(e, t, n), e = n[0], t = n[1], n = n[2];
var i, r, o, a, s, l;
return a = $(e, t, n), s = G(e, t, n), l = a - s, i = 0 == l ? null : a == e ? (t - n) / l : a == t ? (n - e) / l + 2 : (e - t) / l + 4, i = (i + 360) % 6 * 60 / 360, o = (a + s) / 2, r = 0 == l ? 0 : .5 > o ? l / (2 * o) : l / (2 - 2 * o), {
h: i,
s: r,
l: o,
toString: St
}
}, n._path2string = function() {
return this.join(",").replace(at, "$1")
};
n._preload = function(e, t) {
var n = T.doc.createElement("img");
n.style.cssText = "position:absolute;left:-9999em;top:-9999em", n.onload = function() {
t.call(this), this.onload = null, T.doc.body.removeChild(this)
}, n.onerror = function() {
T.doc.body.removeChild(this)
}, T.doc.body.appendChild(n), n.src = e
};
n.getRGB = o(function(e) {
if(!e || (e = R(e)).indexOf("-") + 1) return {
r: -1,
g: -1,
b: -1,
hex: "none",
error: 1,
toString: a
};
if("none" == e) return {
r: -1,
g: -1,
b: -1,
hex: "none",
toString: a
};
!(ot[k](e.toLowerCase().substring(0, 2)) || "#" == e.charAt()) && (e = xt(e));
var t, i, r, o, s, l, c = e.match(Q);
return c ? (c[2] && (r = et(c[2].substring(5), 16), i = et(c[2].substring(3, 5), 16), t = et(c[2].substring(1, 3), 16)), c[3] && (r = et((s = c[3].charAt(3)) + s, 16), i = et((s = c[3].charAt(2)) + s, 16), t = et((s = c[3].charAt(1)) + s, 16)), c[4] && (l = c[4][P](rt), t = Z(l[0]), "%" == l[0].slice(-1) && (t *= 2.55), i = Z(l[1]), "%" == l[1].slice(-1) && (i *= 2.55), r = Z(l[2]), "%" == l[2].slice(-1) && (r *= 2.55), "rgba" == c[1].toLowerCase().slice(0, 4) && (o = Z(l[3])), l[3] && "%" == l[3].slice(-1) && (o /= 100)), c[5] ? (l = c[5][P](rt), t = Z(l[0]), "%" == l[0].slice(-1) && (t *= 2.55), i = Z(l[1]), "%" == l[1].slice(-1) && (i *= 2.55), r = Z(l[2]), "%" == l[2].slice(-1) && (r *= 2.55), ("deg" == l[0].slice(-3) || "°" == l[0].slice(-1)) && (t /= 360), "hsba" == c[1].toLowerCase().slice(0, 4) && (o = Z(l[3])), l[3] && "%" == l[3].slice(-1) && (o /= 100), n.hsb2rgb(t, i, r, o)) : c[6] ? (l = c[6][P](rt), t = Z(l[0]), "%" == l[0].slice(-1) && (t *= 2.55), i = Z(l[1]), "%" == l[1].slice(-1) && (i *= 2.55), r = Z(l[2]), "%" == l[2].slice(-1) && (r *= 2.55), ("deg" == l[0].slice(-3) || "°" == l[0].slice(-1)) && (t /= 360), "hsla" == c[1].toLowerCase().slice(0, 4) && (o = Z(l[3])), l[3] && "%" == l[3].slice(-1) && (o /= 100), n.hsl2rgb(t, i, r, o)) : (c = {
r: t,
g: i,
b: r,
toString: a
}, c.hex = "#" + (16777216 | r | i << 8 | t << 16).toString(16).slice(1), n.is(o, "finite") && (c.opacity = o), c)) : {
r: -1,
g: -1,
b: -1,
hex: "none",
error: 1,
toString: a
}
}, n), n.hsb = o(function(e, t, i) {
return n.hsb2rgb(e, t, i).hex
}), n.hsl = o(function(e, t, i) {
return n.hsl2rgb(e, t, i).hex
}), n.rgb = o(function(e, t, n) {
return "#" + (16777216 | n | t << 8 | e << 16).toString(16).slice(1)
}), n.getColor = function(e) {
var t = this.getColor.start = this.getColor.start || {
h: 0,
s: 1,
b: e || .75
}, n = this.hsb2rgb(t.h, t.s, t.b);
return t.h += .075, t.h > 1 && (t.h = 0, t.s -= .2, t.s <= 0 && (this.getColor.start = {
h: 0,
s: 1,
b: t.b
})), n.hex
}, n.getColor.reset = function() {
delete this.start
}, n.parsePathString = function(e) {
if(!e) return null;
var t = Tt(e);
if(t.arr) return It(t.arr);
var i = {
a: 7,
c: 6,
h: 1,
l: 2,
m: 2,
r: 4,
q: 4,
s: 4,
t: 2,
v: 1,
z: 0
}, r = [];
return n.is(e, W) && n.is(e[0], W) && (r = It(e)), r.length || R(e).replace(st, function(e, t, n) {
var o = [],
a = t.toLowerCase();
if(n.replace(ct, function(e, t) {
t && o.push(+t)
}), "m" == a && o.length > 2 && (r.push([t][D](o.splice(0, 2))), a = "l", t = "m" == t ? "l" : "L"), "r" == a) r.push([t][D](o));
else
for(; o.length >= i[a] && (r.push([t][D](o.splice(0, i[a]))), i[a]););
}), r.toString = n._path2string, t.arr = It(r), r
}, n.parseTransformString = o(function(e) {
if(!e) return null;
var t = [];
return n.is(e, W) && n.is(e[0], W) && (t = It(e)), t.length || R(e).replace(lt, function(e, n, i) {
{
var r = [];
B.call(n)
}
i.replace(ct, function(e, t) {
t && r.push(+t)
}), t.push([n][D](r))
}), t.toString = n._path2string, t
});
var Tt = function(e) {
var t = Tt.ps = Tt.ps || {};
return t[e] ? t[e].sleep = 100 : t[e] = {
sleep: 100
}, setTimeout(function() {
for(var n in t) t[k](n) && n != e && (t[n].sleep--, !t[n].sleep && delete t[n])
}), t[e]
};
n.findDotsAtSegment = function(e, t, n, i, r, o, a, s, l) {
var c = 1 - l,
u = H(c, 3),
d = H(c, 2),
p = l * l,
h = p * l,
f = u * e + 3 * d * l * n + 3 * c * l * l * r + h * a,
m = u * t + 3 * d * l * i + 3 * c * l * l * o + h * s,
g = e + 2 * l * (n - e) + p * (r - 2 * n + e),
v = t + 2 * l * (i - t) + p * (o - 2 * i + t),
b = n + 2 * l * (r - n) + p * (a - 2 * r + n),
y = i + 2 * l * (o - i) + p * (s - 2 * o + i),
x = c * e + l * n,
w = c * t + l * i,
S = c * r + l * a,
C = c * o + l * s,
_ = 90 - 180 * j.atan2(g - b, v - y) / U;
return(g > b || y > v) && (_ += 180), {
x: f,
y: m,
m: {
x: g,
y: v
},
n: {
x: b,
y: y
},
start: {
x: x,
y: w
},
end: {
x: S,
y: C
},
alpha: _
}
}, n.bezierBBox = function(e, t, i, r, o, a, s, l) {
n.is(e, "array") || (e = [e, t, i, r, o, a, s, l]);
var c = Pt.apply(null, e);
return {
x: c.min.x,
y: c.min.y,
x2: c.max.x,
y2: c.max.y,
width: c.max.x - c.min.x,
height: c.max.y - c.min.y
}
}, n.isPointInsideBBox = function(e, t, n) {
return t >= e.x && t <= e.x2 && n >= e.y && n <= e.y2
}, n.isBBoxIntersect = function(e, t) {
var i = n.isPointInsideBBox;
return i(t, e.x, e.y) || i(t, e.x2, e.y) || i(t, e.x, e.y2) || i(t, e.x2, e.y2) || i(e, t.x, t.y) || i(e, t.x2, t.y) || i(e, t.x, t.y2) || i(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y)
}, n.pathIntersection = function(e, t) {
return h(e, t)
}, n.pathIntersectionNumber = function(e, t) {
return h(e, t, 1)
}, n.isPointInsidePath = function(e, t, i) {
var r = n.pathBBox(e);
return n.isPointInsideBBox(r, t, i) && h(e, [["M", t, i], ["H", r.x2 + 10]], 1) % 2 == 1
}, n._removedFactory = function(e) {
return function() {
t("raphael.log", null, "Raphaël: you are calling to method “" + e + "” of removed object", e)
}
};
var Et = n.pathBBox = function(e) {
var t = Tt(e);
if(t.bbox) return i(t.bbox);
if(!e) return {
x: 0,
y: 0,
width: 0,
height: 0,
x2: 0,
y2: 0
};
e = Ft(e);
for(var n, r = 0, o = 0, a = [], s = [], l = 0, c = e.length; c > l; l++)
if(n = e[l], "M" == n[0]) r = n[1], o = n[2], a.push(r), s.push(o);
else {
var u = Pt(r, o, n[1], n[2], n[3], n[4], n[5], n[6]);
a = a[D](u.min.x, u.max.x), s = s[D](u.min.y, u.max.y), r = n[5], o = n[6]
}
var d = G[N](0, a),
p = G[N](0, s),
h = $[N](0, a),
f = $[N](0, s),
m = h - d,
g = f - p,
v = {
x: d,
y: p,
x2: h,
y2: f,
width: m,
height: g,
cx: d + m / 2,
cy: p + g / 2
};
return t.bbox = i(v), v
}, It = function(e) {
var t = i(e);
return t.toString = n._path2string, t
}, Nt = n._pathToRelative = function(e) {
var t = Tt(e);
if(t.rel) return It(t.rel);
n.is(e, W) && n.is(e && e[0], W) || (e = n.parsePathString(e));
var i = [],
r = 0,
o = 0,
a = 0,
s = 0,
l = 0;
"M" == e[0][0] && (r = e[0][1], o = e[0][2], a = r, s = o, l++, i.push(["M", r, o]));
for(var c = l, u = e.length; u > c; c++) {
var d = i[c] = [],
p = e[c];
if(p[0] != B.call(p[0])) switch(d[0] = B.call(p[0]), d[0]) {
case "a":
d[1] = p[1], d[2] = p[2], d[3] = p[3], d[4] = p[4], d[5] = p[5], d[6] = +(p[6] - r).toFixed(3), d[7] = +(p[7] - o).toFixed(3);
break;
case "v":
d[1] = +(p[1] - o).toFixed(3);
break;
case "m":
a = p[1], s = p[2];
default:
for(var h = 1, f = p.length; f > h; h++) d[h] = +(p[h] - (h % 2 ? r : o)).toFixed(3)
} else {
d = i[c] = [], "m" == p[0] && (a = p[1] + r, s = p[2] + o);
for(var m = 0, g = p.length; g > m; m++) i[c][m] = p[m]
}
var v = i[c].length;
switch(i[c][0]) {
case "z":
r = a, o = s;
break;
case "h":
r += +i[c][v - 1];
break;
case "v":
o += +i[c][v - 1];
break;
default:
r += +i[c][v - 2], o += +i[c][v - 1]
}
}
return i.toString = n._path2string, t.rel = It(i), i
}, Dt = n._pathToAbsolute = function(e) {
var t = Tt(e);
if(t.abs) return It(t.abs);
if(n.is(e, W) && n.is(e && e[0], W) || (e = n.parsePathString(e)), !e || !e.length) return [["M", 0, 0]];
var i = [],
r = 0,
o = 0,
a = 0,
l = 0,
c = 0;
"M" == e[0][0] && (r = +e[0][1], o = +e[0][2], a = r, l = o, c++, i[0] = ["M", r, o]);
for(var u, d, p = 3 == e.length && "M" == e[0][0] && "R" == e[1][0].toUpperCase() && "Z" == e[2][0].toUpperCase(), h = c, f = e.length; f > h; h++) {
if(i.push(u = []), d = e[h], d[0] != tt.call(d[0])) switch(u[0] = tt.call(d[0]), u[0]) {
case "A":
u[1] = d[1], u[2] = d[2], u[3] = d[3], u[4] = d[4], u[5] = d[5], u[6] = +(d[6] + r), u[7] = +(d[7] + o);
break;
case "V":
u[1] = +d[1] + o;
break;
case "H":
u[1] = +d[1] + r;
break;
case "R":
for(var m = [r, o][D](d.slice(1)), g = 2, v = m.length; v > g; g++) m[g] = +m[g] + r, m[++g] = +m[g] + o;
i.pop(), i = i[D](s(m, p));
break;
case "M":
a = +d[1] + r, l = +d[2] + o;
default:
for(g = 1, v = d.length; v > g; g++) u[g] = +d[g] + (g % 2 ? r : o)
} else if("R" == d[0]) m = [r, o][D](d.slice(1)), i.pop(), i = i[D](s(m, p)), u = ["R"][D](d.slice(-2));
else
for(var b = 0, y = d.length; y > b; b++) u[b] = d[b];
switch(u[0]) {
case "Z":
r = a, o = l;
break;
case "H":
r = u[1];
break;
case "V":
o = u[1];
break;
case "M":
a = u[u.length - 2], l = u[u.length - 1];
default:
r = u[u.length - 2], o = u[u.length - 1]
}
}
return i.toString = n._path2string, t.abs = It(i), i
}, Lt = function(e, t, n, i) {
return [e, t, n, i, n, i]
}, At = function(e, t, n, i, r, o) {
var a = 1 / 3,
s = 2 / 3;
return [a * e + s * n, a * t + s * i, a * r + s * n, a * o + s * i, r, o]
}, Mt = function(e, t, n, i, r, a, s, l, c, u) {
var d, p = 120 * U / 180,
h = U / 180 * (+r || 0),
f = [],
m = o(function(e, t, n) {
var i = e * j.cos(n) - t * j.sin(n),
r = e * j.sin(n) + t * j.cos(n);
return {
x: i,
y: r
}
});
if(u) _ = u[0], k = u[1], S = u[2], C = u[3];
else {
d = m(e, t, -h), e = d.x, t = d.y, d = m(l, c, -h), l = d.x, c = d.y;
var g = (j.cos(U / 180 * r), j.sin(U / 180 * r), (e - l) / 2),
v = (t - c) / 2,
b = g * g / (n * n) + v * v / (i * i);
b > 1 && (b = j.sqrt(b), n = b * n, i = b * i);
var y = n * n,
x = i * i,
w = (a == s ? -1 : 1) * j.sqrt(q((y * x - y * v * v - x * g * g) / (y * v * v + x * g * g))),
S = w * n * v / i + (e + l) / 2,
C = w * -i * g / n + (t + c) / 2,
_ = j.asin(((t - C) / i).toFixed(9)),
k = j.asin(((c - C) / i).toFixed(9));
_ = S > e ? U - _ : _, k = S > l ? U - k : k, 0 > _ && (_ = 2 * U + _), 0 > k && (k = 2 * U + k), s && _ > k && (_ -= 2 * U), !s && k > _ && (k -= 2 * U)
}
var T = k - _;
if(q(T) > p) {
var E = k,
I = l,
N = c;
k = _ + p * (s && k > _ ? 1 : -1), l = S + n * j.cos(k), c = C + i * j.sin(k), f = Mt(l, c, n, i, r, 0, s, I, N, [k, E, S, C])
}
T = k - _;
var L = j.cos(_),
A = j.sin(_),
M = j.cos(k),
R = j.sin(k),
F = j.tan(T / 4),
O = 4 / 3 * n * F,
B = 4 / 3 * i * F,
$ = [e, t],
G = [e + O * A, t - B * L],
H = [l + O * R, c - B * M],
z = [l, c];
if(G[0] = 2 * $[0] - G[0], G[1] = 2 * $[1] - G[1], u) return [G, H, z][D](f);
f = [G, H, z][D](f).join()[P](",");
for(var V = [], W = 0, X = f.length; X > W; W++) V[W] = W % 2 ? m(f[W - 1], f[W], h).y : m(f[W], f[W + 1], h).x;
return V
}, Rt = function(e, t, n, i, r, o, a, s, l) {
var c = 1 - l;
return {
x: H(c, 3) * e + 3 * H(c, 2) * l * n + 3 * c * l * l * r + H(l, 3) * a,
y: H(c, 3) * t + 3 * H(c, 2) * l * i + 3 * c * l * l * o + H(l, 3) * s
}
}, Pt = o(function(e, t, n, i, r, o, a, s) {
var l, c = r - 2 * n + e - (a - 2 * r + n),
u = 2 * (n - e) - 2 * (r - n),
d = e - n,
p = (-u + j.sqrt(u * u - 4 * c * d)) / 2 / c,
h = (-u - j.sqrt(u * u - 4 * c * d)) / 2 / c,
f = [t, s],
m = [e, a];
return q(p) > "1e12" && (p = .5), q(h) > "1e12" && (h = .5), p > 0 && 1 > p && (l = Rt(e, t, n, i, r, o, a, s, p), m.push(l.x), f.push(l.y)), h > 0 && 1 > h && (l = Rt(e, t, n, i, r, o, a, s, h), m.push(l.x), f.push(l.y)), c = o - 2 * i + t - (s - 2 * o + i), u = 2 * (i - t) - 2 * (o - i), d = t - i, p = (-u + j.sqrt(u * u - 4 * c * d)) / 2 / c, h = (-u - j.sqrt(u * u - 4 * c * d)) / 2 / c, q(p) > "1e12" && (p = .5), q(h) > "1e12" && (h = .5), p > 0 && 1 > p && (l = Rt(e, t, n, i, r, o, a, s, p), m.push(l.x), f.push(l.y)), h > 0 && 1 > h && (l = Rt(e, t, n, i, r, o, a, s, h), m.push(l.x), f.push(l.y)), {
min: {
x: G[N](0, m),
y: G[N](0, f)
},
max: {
x: $[N](0, m),
y: $[N](0, f)
}
}
}),
Ft = n._path2curve = o(function(e, t) {
var n = !t && Tt(e);
if(!t && n.curve) return It(n.curve);
for(var i = Dt(e), r = t && Dt(t), o = {
x: 0,
y: 0,
bx: 0,
by: 0,
X: 0,
Y: 0,
qx: null,
qy: null
}, a = {
x: 0,
y: 0,
bx: 0,
by: 0,
X: 0,
Y: 0,
qx: null,
qy: null
}, s = (function(e, t, n) {
var i, r;
if(!e) return ["C", t.x, t.y, t.x, t.y, t.x, t.y];
switch(!(e[0] in {
T: 1,
Q: 1
}) && (t.qx = t.qy = null), e[0]) {
case "M":
t.X = e[1], t.Y = e[2];
break;
case "A":
e = ["C"][D](Mt[N](0, [t.x, t.y][D](e.slice(1))));
break;
case "S":
"C" == n || "S" == n ? (i = 2 * t.x - t.bx, r = 2 * t.y - t.by) : (i = t.x, r = t.y), e = ["C", i, r][D](e.slice(1));
break;
case "T":
"Q" == n || "T" == n ? (t.qx = 2 * t.x - t.qx, t.qy = 2 * t.y - t.qy) : (t.qx = t.x, t.qy = t.y), e = ["C"][D](At(t.x, t.y, t.qx, t.qy, e[1], e[2]));
break;
case "Q":
t.qx = e[1], t.qy = e[2], e = ["C"][D](At(t.x, t.y, e[1], e[2], e[3], e[4]));
break;
case "L":
e = ["C"][D](Lt(t.x, t.y, e[1], e[2]));
break;
case "H":
e = ["C"][D](Lt(t.x, t.y, e[1], t.y));
break;
case "V":
e = ["C"][D](Lt(t.x, t.y, t.x, e[1]));
break;
case "Z":
e = ["C"][D](Lt(t.x, t.y, t.X, t.Y))
}
return e
}), l = function(e, t) {
if(e[t].length > 7) {
e[t].shift();
for(var n = e[t]; n.length;) e.splice(t++, 0, ["C"][D](n.splice(0, 6)));
e.splice(t, 1), d = $(i.length, r && r.length || 0)
}
}, c = function(e, t, n, o, a) {
e && t && "M" == e[a][0] && "M" != t[a][0] && (t.splice(a, 0, ["M", o.x, o.y]), n.bx = 0, n.by = 0, n.x = e[a][1], n.y = e[a][2], d = $(i.length, r && r.length || 0))
}, u = 0, d = $(i.length, r && r.length || 0); d > u; u++) {
i[u] = s(i[u], o), l(i, u), r && (r[u] = s(r[u], a)), r && l(r, u), c(i, r, o, a, u), c(r, i, a, o, u);
var p = i[u],
h = r && r[u],
f = p.length,
m = r && h.length;
o.x = p[f - 2], o.y = p[f - 1], o.bx = Z(p[f - 4]) || o.x, o.by = Z(p[f - 3]) || o.y, a.bx = r && (Z(h[m - 4]) || a.x), a.by = r && (Z(h[m - 3]) || a.y), a.x = r && h[m - 2], a.y = r && h[m - 1]
}
return r || (n.curve = It(i)), r ? [i, r] : i
}, null, It),
Ot = (n._parseDots = o(function(e) {
for(var t = [], i = 0, r = e.length; r > i; i++) {
var o = {}, a = e[i].match(/^([^:]*):?([\d\.]*)/);
if(o.color = n.getRGB(a[1]), o.color.error) return null;
o.color = o.color.hex, a[2] && (o.offset = a[2] + "%"), t.push(o)
}
for(i = 1, r = t.length - 1; r > i; i++)
if(!t[i].offset) {
for(var s = Z(t[i - 1].offset || 0), l = 0, c = i + 1; r > c; c++)
if(t[c].offset) {
l = t[c].offset;
break
}
l || (l = 100, c = r), l = Z(l);
for(var u = (l - s) / (c - i + 1); c > i; i++) s += u, t[i].offset = s + "%"
}
return t
}), n._tear = function(e, t) {
e == t.top && (t.top = e.prev), e == t.bottom && (t.bottom = e.next), e.next && (e.next.prev = e.prev), e.prev && (e.prev.next = e.next)
}),
Bt = (n._tofront = function(e, t) {
t.top !== e && (Ot(e, t), e.next = null, e.prev = t.top, t.top.next = e, t.top = e)
}, n._toback = function(e, t) {
t.bottom !== e && (Ot(e, t), e.next = t.bottom, e.prev = null, t.bottom.prev = e, t.bottom = e)
}, n._insertafter = function(e, t, n) {
Ot(e, n), t == n.top && (n.top = e), t.next && (t.next.prev = e), e.next = t.next, e.prev = t, t.next = e
}, n._insertbefore = function(e, t, n) {
Ot(e, n), t == n.bottom && (n.bottom = e), t.prev && (t.prev.next = e), e.prev = t.prev, t.prev = e, e.next = t
}, n.toMatrix = function(e, t) {
var n = Et(e),
i = {
_: {
transform: A
},
getBBox: function() {
return n
}
};
return jt(i, t), i.matrix
}),
jt = (n.transformPath = function(e, t) {
return vt(e, Bt(e, t))
}, n._extractTransform = function(e, t) {
if(null == t) return e._.transform;
t = R(t).replace(/\.{3}|\u2026/g, e._.transform || A);
var i = n.parseTransformString(t),
r = 0,
o = 0,
a = 0,
s = 1,
l = 1,
c = e._,
u = new f;
if(c.transform = i || [], i)
for(var d = 0, p = i.length; p > d; d++) {
var h, m, g, v, b, y = i[d],
x = y.length,
w = R(y[0]).toLowerCase(),
S = y[0] != w,
C = S ? u.invert() : 0;
"t" == w && 3 == x ? S ? (h = C.x(0, 0), m = C.y(0, 0), g = C.x(y[1], y[2]), v = C.y(y[1], y[2]), u.translate(g - h, v - m)) : u.translate(y[1], y[2]) : "r" == w ? 2 == x ? (b = b || e.getBBox(1), u.rotate(y[1], b.x + b.width / 2, b.y + b.height / 2), r += y[1]) : 4 == x && (S ? (g = C.x(y[2], y[3]), v = C.y(y[2], y[3]), u.rotate(y[1], g, v)) : u.rotate(y[1], y[2], y[3]), r += y[1]) : "s" == w ? 2 == x || 3 == x ? (b = b || e.getBBox(1), u.scale(y[1], y[x - 1], b.x + b.width / 2, b.y + b.height / 2), s *= y[1], l *= y[x - 1]) : 5 == x && (S ? (g = C.x(y[3], y[4]), v = C.y(y[3], y[4]), u.scale(y[1], y[2], g, v)) : u.scale(y[1], y[2], y[3], y[4]), s *= y[1], l *= y[2]) : "m" == w && 7 == x && u.add(y[1], y[2], y[3], y[4], y[5], y[6]), c.dirtyT = 1, e.matrix = u
}
e.matrix = u, c.sx = s, c.sy = l, c.deg = r, c.dx = o = u.e, c.dy = a = u.f, 1 == s && 1 == l && !r && c.bbox ? (c.bbox.x += +o, c.bbox.y += +a) : c.dirtyT = 1
}),
$t = function(e) {
var t = e[0];
switch(t.toLowerCase()) {
case "t":
return [t, 0, 0];
case "m":
return [t, 1, 0, 0, 1, 0, 0];
case "r":
return 4 == e.length ? [t, 0, e[2], e[3]] : [t, 0];
case "s":
return 5 == e.length ? [t, 1, 1, e[3], e[4]] : 3 == e.length ? [t, 1, 1] : [t, 1]
}
}, Gt = n._equaliseTransform = function(e, t) {
t = R(t).replace(/\.{3}|\u2026/g, e), e = n.parseTransformString(e) || [], t = n.parseTransformString(t) || [];
for(var i, r, o, a, s = $(e.length, t.length), l = [], c = [], u = 0; s > u; u++) {
if(o = e[u] || $t(t[u]), a = t[u] || $t(o), o[0] != a[0] || "r" == o[0].toLowerCase() && (o[2] != a[2] || o[3] != a[3]) || "s" == o[0].toLowerCase() && (o[3] != a[3] || o[4] != a[4])) return;
for(l[u] = [], c[u] = [], i = 0, r = $(o.length, a.length); r > i; i++) i in o && (l[u][i] = o[i]), i in a && (c[u][i] = a[i])
}
return {
from: l,
to: c
}
};
n._getContainer = function(e, t, i, r) {
var o;
return o = null != r || n.is(e, "object") ? e : T.doc.getElementById(e), null != o ? o.tagName ? null == t ? {
container: o,
width: o.style.pixelWidth || o.offsetWidth,
height: o.style.pixelHeight || o.offsetHeight
} : {
container: o,
width: t,
height: i
} : {
container: 1,
x: e,
y: t,
width: i,
height: r
} : void 0
}, n.pathToRelative = Nt, n._engine = {}, n.path2curve = Ft, n.matrix = function(e, t, n, i, r, o) {
return new f(e, t, n, i, r, o)
},
function(e) {
function t(e) {
return e[0] * e[0] + e[1] * e[1]
}
function i(e) {
var n = j.sqrt(t(e));
e[0] && (e[0] /= n), e[1] && (e[1] /= n)
}
e.add = function(e, t, n, i, r, o) {
var a, s, l, c, u = [[], [], []],
d = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],
p = [[e, n, r], [t, i, o], [0, 0, 1]];
for(e && e instanceof f && (p = [[e.a, e.c, e.e], [e.b, e.d, e.f], [0, 0, 1]]), a = 0; 3 > a; a++)
for(s = 0; 3 > s; s++) {
for(c = 0, l = 0; 3 > l; l++) c += d[a][l] * p[l][s];
u[a][s] = c
}
this.a = u[0][0], this.b = u[1][0], this.c = u[0][1], this.d = u[1][1], this.e = u[0][2], this.f = u[1][2]
}, e.invert = function() {
var e = this,
t = e.a * e.d - e.b * e.c;
return new f(e.d / t, -e.b / t, -e.c / t, e.a / t, (e.c * e.f - e.d * e.e) / t, (e.b * e.e - e.a * e.f) / t)
}, e.clone = function() {
return new f(this.a, this.b, this.c, this.d, this.e, this.f)
}, e.translate = function(e, t) {
this.add(1, 0, 0, 1, e, t)
}, e.scale = function(e, t, n, i) {
null == t && (t = e), (n || i) && this.add(1, 0, 0, 1, n, i), this.add(e, 0, 0, t, 0, 0), (n || i) && this.add(1, 0, 0, 1, -n, -i)
}, e.rotate = function(e, t, i) {
e = n.rad(e), t = t || 0, i = i || 0;
var r = +j.cos(e).toFixed(9),
o = +j.sin(e).toFixed(9);
this.add(r, o, -o, r, t, i), this.add(1, 0, 0, 1, -t, -i)
}, e.x = function(e, t) {
return e * this.a + t * this.c + this.e
}, e.y = function(e, t) {
return e * this.b + t * this.d + this.f
}, e.get = function(e) {
return +this[R.fromCharCode(97 + e)].toFixed(4)
}, e.toString = function() {
return n.svg ? "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")" : [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join()
}, e.toFilter = function() {
return "progid:DXImageTransform.Microsoft.Matrix(M11=" + this.get(0) + ", M12=" + this.get(2) + ", M21=" + this.get(1) + ", M22=" + this.get(3) + ", Dx=" + this.get(4) + ", Dy=" + this.get(5) + ", sizingmethod='auto expand')"
}, e.offset = function() {
return [this.e.toFixed(4), this.f.toFixed(4)]
}, e.split = function() {
var e = {};
e.dx = this.e, e.dy = this.f;
var r = [[this.a, this.c], [this.b, this.d]];
e.scalex = j.sqrt(t(r[0])), i(r[0]), e.shear = r[0][0] * r[1][0] + r[0][1] * r[1][1], r[1] = [r[1][0] - r[0][0] * e.shear, r[1][1] - r[0][1] * e.shear], e.scaley = j.sqrt(t(r[1])), i(r[1]), e.shear /= e.scaley;
var o = -r[0][1],
a = r[1][1];
return 0 > a ? (e.rotate = n.deg(j.acos(a)), 0 > o && (e.rotate = 360 - e.rotate)) : e.rotate = n.deg(j.asin(o)), e.isSimple = !(+e.shear.toFixed(9) || e.scalex.toFixed(9) != e.scaley.toFixed(9) && e.rotate), e.isSuperSimple = !+e.shear.toFixed(9) && e.scalex.toFixed(9) == e.scaley.toFixed(9) && !e.rotate, e.noRotation = !+e.shear.toFixed(9) && !e.rotate, e
}, e.toTransformString = function(e) {
var t = e || this[P]();
return t.isSimple ? (t.scalex = +t.scalex.toFixed(4), t.scaley = +t.scaley.toFixed(4), t.rotate = +t.rotate.toFixed(4), (t.dx || t.dy ? "t" + [t.dx, t.dy] : A) + (1 != t.scalex || 1 != t.scaley ? "s" + [t.scalex, t.scaley, 0, 0] : A) + (t.rotate ? "r" + [t.rotate, 0, 0] : A)) : "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)]
}
}(f.prototype);
var qt = navigator.userAgent.match(/Version\/(.*?)\s/) || navigator.userAgent.match(/Chrome\/(\d+)/);
w.safari = "Apple Computer, Inc." == navigator.vendor && (qt && qt[1] < 4 || "iP" == navigator.platform.slice(0, 2)) || "Google Inc." == navigator.vendor && qt && qt[1] < 8 ? function() {
var e = this.rect(-99, -99, this.width + 99, this.height + 99).attr({
stroke: "none"
});
setTimeout(function() {
e.remove()
})
} : pt;
for(var Ht = function() {
this.returnValue = !1
}, Ut = function() {
return this.originalEvent.preventDefault()
}, zt = function() {
this.cancelBubble = !0
}, Vt = function() {
return this.originalEvent.stopPropagation()
}, Wt = function(e) {
var t = T.doc.documentElement.scrollTop || T.doc.body.scrollTop,
n = T.doc.documentElement.scrollLeft || T.doc.body.scrollLeft;
return {
x: e.clientX + n,
y: e.clientY + t
}
}, Xt = function() {
return T.doc.addEventListener ? function(e, t, n, i) {
var r = function(e) {
var t = Wt(e);
return n.call(i, e, t.x, t.y)
};
if(e.addEventListener(t, r, !1), L && O[t]) {
var o = function(t) {
for(var r = Wt(t), o = t, a = 0, s = t.targetTouches && t.targetTouches.length; s > a; a++)
if(t.targetTouches[a].target == e) {
t = t.targetTouches[a], t.originalEvent = o, t.preventDefault = Ut, t.stopPropagation = Vt;
break
}
return n.call(i, t, r.x, r.y)
};
e.addEventListener(O[t], o, !1)
}
return function() {
return e.removeEventListener(t, r, !1), L && O[t] && e.removeEventListener(O[t], r, !1), !0
}
} : T.doc.attachEvent ? function(e, t, n, i) {
var r = function(e) {
e = e || T.win.event;
var t = T.doc.documentElement.scrollTop || T.doc.body.scrollTop,
r = T.doc.documentElement.scrollLeft || T.doc.body.scrollLeft,
o = e.clientX + r,
a = e.clientY + t;
return e.preventDefault = e.preventDefault || Ht, e.stopPropagation = e.stopPropagation || zt, n.call(i, e, o, a)
};
e.attachEvent("on" + t, r);
var o = function() {
return e.detachEvent("on" + t, r), !0
};
return o
} : void 0
}(), Qt = [], Yt = function(e) {
for(var n, i = e.clientX, r = e.clientY, o = T.doc.documentElement.scrollTop || T.doc.body.scrollTop, a = T.doc.documentElement.scrollLeft || T.doc.body.scrollLeft, s = Qt.length; s--;) {
if(n = Qt[s], L && e.touches) {
for(var l, c = e.touches.length; c--;)
if(l = e.touches[c], l.identifier == n.el._drag.id) {
i = l.clientX, r = l.clientY, (e.originalEvent ? e.originalEvent : e).preventDefault();
break
}
} else e.preventDefault();
var u, d = n.el.node,
p = d.nextSibling,
h = d.parentNode,
f = d.style.display;
T.win.opera && h.removeChild(d), d.style.display = "none", u = n.el.paper.getElementByPoint(i, r), d.style.display = f, T.win.opera && (p ? h.insertBefore(d, p) : h.appendChild(d)), u && t("raphael.drag.over." + n.el.id, n.el, u), i += a, r += o, t("raphael.drag.move." + n.el.id, n.move_scope || n.el, i - n.el._drag.x, r - n.el._drag.y, i, r, e)
}
}, Kt = function(e) {
n.unmousemove(Yt).unmouseup(Kt);
for(var i, r = Qt.length; r--;) i = Qt[r], i.el._drag = {}, t("raphael.drag.end." + i.el.id, i.end_scope || i.start_scope || i.move_scope || i.el, e);
Qt = []
}, Jt = n.el = {}, Zt = F.length; Zt--;)! function(e) {
n[e] = Jt[e] = function(t, i) {
return n.is(t, "function") && (this.events = this.events || [], this.events.push({
name: e,
f: t,
unbind: Xt(this.shape || this.node || T.doc, e, t, i || this)
})), this
}, n["un" + e] = Jt["un" + e] = function(t) {
for(var i = this.events || [], r = i.length; r--;) i[r].name != e || !n.is(t, "undefined") && i[r].f != t || (i[r].unbind(), i.splice(r, 1), !i.length && delete this.events);
return this
}
}(F[Zt]);
Jt.data = function(e, i) {
var r = ut[this.id] = ut[this.id] || {};
if(0 == arguments.length) return r;
if(1 == arguments.length) {
if(n.is(e, "object")) {
for(var o in e) e[k](o) && this.data(o, e[o]);
return this
}
return t("raphael.data.get." + this.id, this, r[e], e), r[e]
}
return r[e] = i, t("raphael.data.set." + this.id, this, i, e), this
}, Jt.removeData = function(e) {
return null == e ? ut[this.id] = {} : ut[this.id] && delete ut[this.id][e], this
}, Jt.getData = function() {
return i(ut[this.id] || {})
}, Jt.hover = function(e, t, n, i) {
return this.mouseover(e, n).mouseout(t, i || n)
}, Jt.unhover = function(e, t) {
return this.unmouseover(e).unmouseout(t)
};
var en = [];
Jt.drag = function(e, i, r, o, a, s) {
function l(l) {
(l.originalEvent || l).preventDefault();
var c = l.clientX,
u = l.clientY,
d = T.doc.documentElement.scrollTop || T.doc.body.scrollTop,
p = T.doc.documentElement.scrollLeft || T.doc.body.scrollLeft;
if(this._drag.id = l.identifier, L && l.touches)
for(var h, f = l.touches.length; f--;)
if(h = l.touches[f], this._drag.id = h.identifier, h.identifier == this._drag.id) {
c = h.clientX, u = h.clientY;
break
}
this._drag.x = c + p, this._drag.y = u + d, !Qt.length && n.mousemove(Yt).mouseup(Kt), Qt.push({
el: this,
move_scope: o,
start_scope: a,
end_scope: s
}), i && t.on("raphael.drag.start." + this.id, i), e && t.on("raphael.drag.move." + this.id, e), r && t.on("raphael.drag.end." + this.id, r), t("raphael.drag.start." + this.id, a || o || this, l.clientX + p, l.clientY + d, l)
}
return this._drag = {}, en.push({
el: this,
start: l
}), this.mousedown(l), this
}, Jt.onDragOver = function(e) {
e ? t.on("raphael.drag.over." + this.id, e) : t.unbind("raphael.drag.over." + this.id)
}, Jt.undrag = function() {
for(var e = en.length; e--;) en[e].el == this && (this.unmousedown(en[e].start), en.splice(e, 1), t.unbind("raphael.drag.*." + this.id));
!en.length && n.unmousemove(Yt).unmouseup(Kt), Qt = []
}, w.circle = function(e, t, i) {
var r = n._engine.circle(this, e || 0, t || 0, i || 0);
return this.__set__ && this.__set__.push(r), r
}, w.rect = function(e, t, i, r, o) {
var a = n._engine.rect(this, e || 0, t || 0, i || 0, r || 0, o || 0);
return this.__set__ && this.__set__.push(a), a
}, w.ellipse = function(e, t, i, r) {
var o = n._engine.ellipse(this, e || 0, t || 0, i || 0, r || 0);
return this.__set__ && this.__set__.push(o), o
}, w.path = function(e) {
e && !n.is(e, V) && !n.is(e[0], W) && (e += A);
var t = n._engine.path(n.format[N](n, arguments), this);
return this.__set__ && this.__set__.push(t), t
}, w.image = function(e, t, i, r, o) {
var a = n._engine.image(this, e || "about:blank", t || 0, i || 0, r || 0, o || 0);
return this.__set__ && this.__set__.push(a), a
}, w.text = function(e, t, i) {
var r = n._engine.text(this, e || 0, t || 0, R(i));
return this.__set__ && this.__set__.push(r), r
}, w.set = function(e) {
!n.is(e, "array") && (e = Array.prototype.splice.call(arguments, 0, arguments.length));
var t = new hn(e);
return this.__set__ && this.__set__.push(t), t.paper = this, t.type = "set", t
}, w.setStart = function(e) {
this.__set__ = e || this.set()
}, w.setFinish = function() {
var e = this.__set__;
return delete this.__set__, e
}, w.setSize = function(e, t) {
return n._engine.setSize.call(this, e, t)
}, w.setViewBox = function(e, t, i, r, o) {
return n._engine.setViewBox.call(this, e, t, i, r, o)
}, w.top = w.bottom = null, w.raphael = n;
var tn = function(e) {
var t = e.getBoundingClientRect(),
n = e.ownerDocument,
i = n.body,
r = n.documentElement,
o = r.clientTop || i.clientTop || 0,
a = r.clientLeft || i.clientLeft || 0,
s = t.top + (T.win.pageYOffset || r.scrollTop || i.scrollTop) - o,
l = t.left + (T.win.pageXOffset || r.scrollLeft || i.scrollLeft) - a;
return {
y: s,
x: l
}
};
w.getElementByPoint = function(e, t) {
var n = this,
i = n.canvas,
r = T.doc.elementFromPoint(e, t);
if(T.win.opera && "svg" == r.tagName) {
var o = tn(i),
a = i.createSVGRect();
a.x = e - o.x, a.y = t - o.y, a.width = a.height = 1;
var s = i.getIntersectionList(a, null);
s.length && (r = s[s.length - 1])
}
if(!r) return null;
for(; r.parentNode && r != i.parentNode && !r.raphael;) r = r.parentNode;
return r == n.canvas.parentNode && (r = i), r = r && r.raphael ? n.getById(r.raphaelid) : null
}, w.getElementsByBBox = function(e) {
var t = this.set();
return this.forEach(function(i) {
n.isBBoxIntersect(i.getBBox(), e) && t.push(i)
}), t
}, w.getById = function(e) {
for(var t = this.bottom; t;) {
if(t.id == e) return t;
t = t.next
}
return null
}, w.forEach = function(e, t) {
for(var n = this.bottom; n;) {
if(e.call(t, n) === !1) return this;
n = n.next
}
return this
}, w.getElementsByPoint = function(e, t) {
var n = this.set();
return this.forEach(function(i) {
i.isPointInside(e, t) && n.push(i)
}), n
}, Jt.isPointInside = function(e, t) {
var i = this.realPath = gt[this.type](this);
return this.attr("transform") && this.attr("transform").length && (i = n.transformPath(i, this.attr("transform"))), n.isPointInsidePath(i, e, t)
}, Jt.getBBox = function(e) {
if(this.removed) return {};
var t = this._;
return e ? ((t.dirty || !t.bboxwt) && (this.realPath = gt[this.type](this), t.bboxwt = Et(this.realPath), t.bboxwt.toString = m, t.dirty = 0), t.bboxwt) : ((t.dirty || t.dirtyT || !t.bbox) && ((t.dirty || !this.realPath) && (t.bboxwt = 0, this.realPath = gt[this.type](this)), t.bbox = Et(vt(this.realPath, this.matrix)), t.bbox.toString = m, t.dirty = t.dirtyT = 0), t.bbox)
}, Jt.clone = function() {
if(this.removed) return null;
var e = this.paper[this.type]().attr(this.attr());
return this.__set__ && this.__set__.push(e), e
}, Jt.glow = function(e) {
if("text" == this.type) return null;
e = e || {};
var t = {
width: (e.width || 10) + (+this.attr("stroke-width") || 1),
fill: e.fill || !1,
opacity: e.opacity || .5,
offsetx: e.offsetx || 0,
offsety: e.offsety || 0,
color: e.color || "#000"
}, n = t.width / 2,
i = this.paper,
r = i.set(),
o = this.realPath || gt[this.type](this);
o = this.matrix ? vt(o, this.matrix) : o;
for(var a = 1; n + 1 > a; a++) r.push(i.path(o).attr({
stroke: t.color,
fill: t.fill ? t.color : "none",
"stroke-linejoin": "round",
"stroke-linecap": "round",
"stroke-width": +(t.width / n * a).toFixed(3),
opacity: +(t.opacity / n).toFixed(3)
}));
return r.insertBefore(this).translate(t.offsetx, t.offsety)
};
var nn = function(e, t, i, r, o, a, s, l, d) {
return null == d ? c(e, t, i, r, o, a, s, l) : n.findDotsAtSegment(e, t, i, r, o, a, s, l, u(e, t, i, r, o, a, s, l, d))
}, rn = function(e, t) {
return function(i, r, o) {
i = Ft(i);
for(var a, s, l, c, u, d = "", p = {}, h = 0, f = 0, m = i.length; m > f; f++) {
if(l = i[f], "M" == l[0]) a = +l[1], s = +l[2];
else {
if(c = nn(a, s, l[1], l[2], l[3], l[4], l[5], l[6]), h + c > r) {
if(t && !p.start) {
if(u = nn(a, s, l[1], l[2], l[3], l[4], l[5], l[6], r - h), d += ["C" + u.start.x, u.start.y, u.m.x, u.m.y, u.x, u.y], o) return d;
p.start = d, d = ["M" + u.x, u.y + "C" + u.n.x, u.n.y, u.end.x, u.end.y, l[5], l[6]].join(), h += c, a = +l[5], s = +l[6];
continue
}
if(!e && !t) return u = nn(a, s, l[1], l[2], l[3], l[4], l[5], l[6], r - h), {
x: u.x,
y: u.y,
alpha: u.alpha
}
}
h += c, a = +l[5], s = +l[6]
}
d += l.shift() + l
}
return p.end = d, u = e ? h : t ? p : n.findDotsAtSegment(a, s, l[0], l[1], l[2], l[3], l[4], l[5], 1), u.alpha && (u = {
x: u.x,
y: u.y,
alpha: u.alpha
}), u
}
}, on = rn(1),
an = rn(),
sn = rn(0, 1);
n.getTotalLength = on, n.getPointAtLength = an, n.getSubpath = function(e, t, n) {
if(this.getTotalLength(e) - n < 1e-6) return sn(e, t).end;
var i = sn(e, n, 1);
return t ? sn(i, t).end : i
}, Jt.getTotalLength = function() {
var e = this.getPath();
if(e) return this.node.getTotalLength ? this.node.getTotalLength() : on(e)
}, Jt.getPointAtLength = function(e) {
var t = this.getPath();
if(t) return an(t, e)
}, Jt.getPath = function() {
var e, t = n._getPath[this.type];
if("text" != this.type && "set" != this.type) return t && (e = t(this)), e
}, Jt.getSubpath = function(e, t) {
var i = this.getPath();
if(i) return n.getSubpath(i, e, t)
};
var ln = n.easing_formulas = {
linear: function(e) {
return e
},
"<": function(e) {
return H(e, 1.7)
},
">": function(e) {
return H(e, .48)
},
"<>": function(e) {
var t = .48 - e / 1.04,
n = j.sqrt(.1734 + t * t),
i = n - t,
r = H(q(i), 1 / 3) * (0 > i ? -1 : 1),
o = -n - t,
a = H(q(o), 1 / 3) * (0 > o ? -1 : 1),
s = r + a + .5;
return 3 * (1 - s) * s * s + s * s * s
},
backIn: function(e) {
var t = 1.70158;
return e * e * ((t + 1) * e - t)
},
backOut: function(e) {
e -= 1;
var t = 1.70158;
return e * e * ((t + 1) * e + t) + 1
},
elastic: function(e) {
return e == !! e ? e : H(2, -10 * e) * j.sin(2 * (e - .075) * U / .3) + 1
},
bounce: function(e) {
var t, n = 7.5625,
i = 2.75;
return 1 / i > e ? t = n * e * e : 2 / i > e ? (e -= 1.5 / i, t = n * e * e + .75) : 2.5 / i > e ? (e -= 2.25 / i, t = n * e * e + .9375) : (e -= 2.625 / i, t = n * e * e + .984375), t
}
};
ln.easeIn = ln["ease-in"] = ln["<"], ln.easeOut = ln["ease-out"] = ln[">"], ln.easeInOut = ln["ease-in-out"] = ln["<>"], ln["back-in"] = ln.backIn, ln["back-out"] = ln.backOut;
var cn = [],
un = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
setTimeout(e, 16)
}, dn = function() {
for(var e = +new Date, i = 0; i < cn.length; i++) {
var r = cn[i];
if(!r.el.removed && !r.paused) {
var o, a, s = e - r.start,
l = r.ms,
c = r.easing,
u = r.from,
d = r.diff,
p = r.to,
h = (r.t, r.el),
f = {}, m = {};
if(r.initstatus ? (s = (r.initstatus * r.anim.top - r.prev) / (r.percent - r.prev) * l, r.status = r.initstatus, delete r.initstatus, r.stop && cn.splice(i--, 1)) : r.status = (r.prev + (r.percent - r.prev) * (s / l)) / r.anim.top, !(0 > s))
if(l > s) {
var g = c(s / l);
for(var v in u)
if(u[k](v)) {
switch(it[v]) {
case z:
o = +u[v] + g * l * d[v];
break;
case "colour":
o = "rgb(" + [pn(J(u[v].r + g * l * d[v].r)), pn(J(u[v].g + g * l * d[v].g)), pn(J(u[v].b + g * l * d[v].b))].join(",") + ")";
break;
case "path":
o = [];
for(var y = 0, x = u[v].length; x > y; y++) {
o[y] = [u[v][y][0]];
for(var w = 1, S = u[v][y].length; S > w; w++) o[y][w] = +u[v][y][w] + g * l * d[v][y][w];
o[y] = o[y].join(M)
}
o = o.join(M);
break;
case "transform":
if(d[v].real)
for(o = [], y = 0, x = u[v].length; x > y; y++)
for(o[y] = [u[v][y][0]], w = 1, S = u[v][y].length; S > w; w++) o[y][w] = u[v][y][w] + g * l * d[v][y][w];
else {
var C = function(e) {
return +u[v][e] + g * l * d[v][e]
};
o = [["m", C(0), C(1), C(2), C(3), C(4), C(5)]]
}
break;
case "csv":
if("clip-rect" == v)
for(o = [], y = 4; y--;) o[y] = +u[v][y] + g * l * d[v][y];
break;
default:
var _ = [][D](u[v]);
for(o = [], y = h.paper.customAttributes[v].length; y--;) o[y] = +_[y] + g * l * d[v][y]
}
f[v] = o
}
h.attr(f),
function(e, n, i) {
setTimeout(function() {
t("raphael.anim.frame." + e, n, i)
})
}(h.id, h, r.anim)
} else {
if(function(e, i, r) {
setTimeout(function() {
t("raphael.anim.frame." + i.id, i, r), t("raphael.anim.finish." + i.id, i, r), n.is(e, "function") && e.call(i)
})
}(r.callback, h, r.anim), h.attr(p), cn.splice(i--, 1), r.repeat > 1 && !r.next) {
for(a in p) p[k](a) && (m[a] = r.totalOrigin[a]);
r.el.attr(m), b(r.anim, r.el, r.anim.percents[0], null, r.totalOrigin, r.repeat - 1)
}
r.next && !r.stop && b(r.anim, r.el, r.next, null, r.totalOrigin, r.repeat)
}
}
}
n.svg && h && h.paper && h.paper.safari(), cn.length && un(dn)
}, pn = function(e) {
return e > 255 ? 255 : 0 > e ? 0 : e
};
Jt.animateWith = function(e, t, i, r, o, a) {
var s = this;
if(s.removed) return a && a.call(s), s;
var l = i instanceof v ? i : n.animation(i, r, o, a);
b(l, s, l.percents[0], null, s.attr());
for(var c = 0, u = cn.length; u > c; c++)
if(cn[c].anim == t && cn[c].el == e) {
cn[u - 1].start = cn[c].start;
break
}
return s
}, Jt.onAnimation = function(e) {
return e ? t.on("raphael.anim.frame." + this.id, e) : t.unbind("raphael.anim.frame." + this.id), this
}, v.prototype.delay = function(e) {
var t = new v(this.anim, this.ms);
return t.times = this.times, t.del = +e || 0, t
}, v.prototype.repeat = function(e) {
var t = new v(this.anim, this.ms);
return t.del = this.del, t.times = j.floor($(e, 0)) || 1, t
}, n.animation = function(e, t, i, r) {
if(e instanceof v) return e;
(n.is(i, "function") || !i) && (r = r || i || null, i = null), e = Object(e), t = +t || 0;
var o, a, s = {};
for(a in e) e[k](a) && Z(a) != a && Z(a) + "%" != a && (o = !0, s[a] = e[a]);
return o ? (i && (s.easing = i), r && (s.callback = r), new v({
100: s
}, t)) : new v(e, t)
}, Jt.animate = function(e, t, i, r) {
var o = this;
if(o.removed) return r && r.call(o), o;
var a = e instanceof v ? e : n.animation(e, t, i, r);
return b(a, o, a.percents[0], null, o.attr()), o
}, Jt.setTime = function(e, t) {
return e && null != t && this.status(e, G(t, e.ms) / e.ms), this
}, Jt.status = function(e, t) {
var n, i, r = [],
o = 0;
if(null != t) return b(e, this, -1, G(t, 1)), this;
for(n = cn.length; n > o; o++)
if(i = cn[o], i.el.id == this.id && (!e || i.anim == e)) {
if(e) return i.status;
r.push({
anim: i.anim,
status: i.status
})
}
return e ? 0 : r
}, Jt.pause = function(e) {
for(var n = 0; n < cn.length; n++) cn[n].el.id != this.id || e && cn[n].anim != e || t("raphael.anim.pause." + this.id, this, cn[n].anim) !== !1 && (cn[n].paused = !0);
return this
}, Jt.resume = function(e) {
for(var n = 0; n < cn.length; n++)
if(cn[n].el.id == this.id && (!e || cn[n].anim == e)) {
var i = cn[n];
t("raphael.anim.resume." + this.id, this, i.anim) !== !1 && (delete i.paused, this.status(i.anim, i.status))
}
return this
}, Jt.stop = function(e) {
for(var n = 0; n < cn.length; n++) cn[n].el.id != this.id || e && cn[n].anim != e || t("raphael.anim.stop." + this.id, this, cn[n].anim) !== !1 && cn.splice(n--, 1);
return this
}, t.on("raphael.remove", y), t.on("raphael.clear", y), Jt.toString = function() {
return "Raphaël’s object"
};
var hn = function(e) {
if(this.items = [], this.length = 0, this.type = "set", e)
for(var t = 0, n = e.length; n > t; t++)!e[t] || e[t].constructor != Jt.constructor && e[t].constructor != hn || (this[this.items.length] = this.items[this.items.length] = e[t], this.length++)
}, fn = hn.prototype;
fn.push = function() {
for(var e, t, n = 0, i = arguments.length; i > n; n++) e = arguments[n], !e || e.constructor != Jt.constructor && e.constructor != hn || (t = this.items.length, this[t] = this.items[t] = e, this.length++);
return this
}, fn.pop = function() {
return this.length && delete this[this.length--], this.items.pop()
}, fn.forEach = function(e, t) {
for(var n = 0, i = this.items.length; i > n; n++)
if(e.call(t, this.items[n], n) === !1) return this;
return this
};
for(var mn in Jt) Jt[k](mn) && (fn[mn] = function(e) {
return function() {
var t = arguments;
return this.forEach(function(n) {
n[e][N](n, t)
})
}
}(mn));
return fn.attr = function(e, t) {
if(e && n.is(e, W) && n.is(e[0], "object"))
for(var i = 0, r = e.length; r > i; i++) this.items[i].attr(e[i]);
else
for(var o = 0, a = this.items.length; a > o; o++) this.items[o].attr(e, t);
return this
}, fn.clear = function() {
for(; this.length;) this.pop()
}, fn.splice = function(e, t) {
e = 0 > e ? $(this.length + e, 0) : e, t = $(0, G(this.length - e, t));
var n, i = [],
r = [],
o = [];
for(n = 2; n < arguments.length; n++) o.push(arguments[n]);
for(n = 0; t > n; n++) r.push(this[e + n]);
for(; n < this.length - e; n++) i.push(this[e + n]);
var a = o.length;
for(n = 0; n < a + i.length; n++) this.items[e + n] = this[e + n] = a > n ? o[n] : i[n - a];
for(n = this.items.length = this.length -= t - a; this[n];) delete this[n++];
return new hn(r)
}, fn.exclude = function(e) {
for(var t = 0, n = this.length; n > t; t++)
if(this[t] == e) return this.splice(t, 1), !0
}, fn.animate = function(e, t, i, r) {
(n.is(i, "function") || !i) && (r = i || null);
var o, a, s = this.items.length,
l = s,
c = this;
if(!s) return this;
r && (a = function() {
!--s && r.call(c)
}), i = n.is(i, V) ? i : a;
var u = n.animation(e, t, i, a);
for(o = this.items[--l].animate(u); l--;) this.items[l] && !this.items[l].removed && this.items[l].animateWith(o, u, u), this.items[l] && !this.items[l].removed || s--;
return this
}, fn.insertAfter = function(e) {
for(var t = this.items.length; t--;) this.items[t].insertAfter(e);
return this
}, fn.getBBox = function() {
for(var e = [], t = [], n = [], i = [], r = this.items.length; r--;)
if(!this.items[r].removed) {
var o = this.items[r].getBBox();
e.push(o.x), t.push(o.y), n.push(o.x + o.width), i.push(o.y + o.height)
}
return e = G[N](0, e), t = G[N](0, t), n = $[N](0, n), i = $[N](0, i), {
x: e,
y: t,
x2: n,
y2: i,
width: n - e,
height: i - t
}
}, fn.clone = function(e) {
e = this.paper.set();
for(var t = 0, n = this.items.length; n > t; t++) e.push(this.items[t].clone());
return e
}, fn.toString = function() {
return "Raphaël‘s set"
}, fn.glow = function(e) {
var t = this.paper.set();
return this.forEach(function(n) {
var i = n.glow(e);
null != i && i.forEach(function(e) {
t.push(e)
})
}), t
}, fn.isPointInside = function(e, t) {
var n = !1;
return this.forEach(function(i) {
return i.isPointInside(e, t) ? (console.log("runned"), n = !0, !1) : void 0
}), n
}, n.registerFont = function(e) {
if(!e.face) return e;
this.fonts = this.fonts || {};
var t = {
w: e.w,
face: {},
glyphs: {}
}, n = e.face["font-family"];
for(var i in e.face) e.face[k](i) && (t.face[i] = e.face[i]);
if(this.fonts[n] ? this.fonts[n].push(t) : this.fonts[n] = [t], !e.svg) {
t.face["units-per-em"] = et(e.face["units-per-em"], 10);
for(var r in e.glyphs)
if(e.glyphs[k](r)) {
var o = e.glyphs[r];
if(t.glyphs[r] = {
w: o.w,
k: {},
d: o.d && "M" + o.d.replace(/[mlcxtrv]/g, function(e) {
return {
l: "L",
c: "C",
x: "z",
t: "m",
r: "l",
v: "c"
}[e] || "M"
}) + "z"
}, o.k)
for(var a in o.k) o[k](a) && (t.glyphs[r].k[a] = o.k[a])
}
}
return e
}, w.getFont = function(e, t, i, r) {
if(r = r || "normal", i = i || "normal", t = +t || {
normal: 400,
bold: 700,
lighter: 300,
bolder: 800
}[t] || 400, n.fonts) {
var o = n.fonts[e];
if(!o) {
var a = new RegExp("(^|\\s)" + e.replace(/[^\w\d\s+!~.:_-]/g, A) + "(\\s|$)", "i");
for(var s in n.fonts)
if(n.fonts[k](s) && a.test(s)) {
o = n.fonts[s];
break
}
}
var l;
if(o)
for(var c = 0, u = o.length; u > c && (l = o[c], l.face["font-weight"] != t || l.face["font-style"] != i && l.face["font-style"] || l.face["font-stretch"] != r); c++);
return l
}
}, w.print = function(e, t, i, r, o, a, s, l) {
a = a || "middle", s = $(G(s || 0, 1), -1), l = $(G(l || 1, 3), 1);
var c, u = R(i)[P](A),
d = 0,
p = 0,
h = A;
if(n.is(r, "string") && (r = this.getFont(r)), r) {
c = (o || 16) / r.face["units-per-em"];
for(var f = r.face.bbox[P](S), m = +f[0], g = f[3] - f[1], v = 0, b = +f[1] + ("baseline" == a ? g + +r.face.descent : g / 2), y = 0, x = u.length; x > y; y++) {
if("\n" == u[y]) d = 0, C = 0, p = 0, v += g * l;
else {
var w = p && r.glyphs[u[y - 1]] || {}, C = r.glyphs[u[y]];
d += p ? (w.w || r.w) + (w.k && w.k[u[y]] || 0) + r.w * s : 0, p = 1
}
C && C.d && (h += n.transformPath(C.d, ["t", d * c, v * c, "s", c, c, m, b, "t", (e - m) / c, (t - b) / c]))
}
}
return this.path(h).attr({
fill: "#000",
stroke: "none"
})
}, w.add = function(e) {
if(n.is(e, "array"))
for(var t, i = this.set(), r = 0, o = e.length; o > r; r++) t = e[r] || {}, C[k](t.type) && i.push(this[t.type]().attr(t));
return i
}, n.format = function(e, t) {
var i = n.is(t, W) ? [0][D](t) : arguments;
return e && n.is(e, V) && i.length - 1 && (e = e.replace(_, function(e, t) {
return null == i[++t] ? A : i[t]
})), e || A
}, n.fullfill = function() {
var e = /\{([^\}]+)\}/g,
t = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,
n = function(e, n, i) {
var r = i;
return n.replace(t, function(e, t, n, i, o) {
t = t || i, r && (t in r && (r = r[t]), "function" == typeof r && o && (r = r()))
}), r = (null == r || r == i ? e : r) + ""
};
return function(t, i) {
return String(t).replace(e, function(e, t) {
return n(e, t, i)
})
}
}(), n.ninja = function() {
return E.was ? T.win.Raphael = E.is : delete Raphael, n
}, n.st = fn,
function(e, t, i) {
function r() {
/in/.test(e.readyState) ? setTimeout(r, 9) : n.eve("raphael.DOMload")
}
null == e.readyState && e.addEventListener && (e.addEventListener(t, i = function() {
e.removeEventListener(t, i, !1), e.readyState = "complete"
}, !1), e.readyState = "loading"), r()
}(document, "DOMContentLoaded"), t.on("raphael.DOMload", function() {
x = !0
}),
function() {
if(n.svg) {
var e = "hasOwnProperty",
t = String,
i = parseFloat,
r = parseInt,
o = Math,
a = o.max,
s = o.abs,
l = o.pow,
c = /[, ]+/,
u = n.eve,
d = "",
p = " ",
h = "http://www.w3.org/1999/xlink",
f = {
block: "M5,0 0,2.5 5,5z",
classic: "M5,0 0,2.5 5,5 3.5,3 3.5,2z",
diamond: "M2.5,0 5,2.5 2.5,5 0,2.5z",
open: "M6,1 1,3.5 6,6",
oval: "M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"
}, m = {};
n.toString = function() {
return "Your browser supports SVG.\nYou are running Raphaël " + this.version
};
var g = function(i, r) {
if(r) {
"string" == typeof i && (i = g(i));
for(var o in r) r[e](o) && ("xlink:" == o.substring(0, 6) ? i.setAttributeNS(h, o.substring(6), t(r[o])) : i.setAttribute(o, t(r[o])))
} else i = n._g.doc.createElementNS("http://www.w3.org/2000/svg", i), i.style && (i.style.webkitTapHighlightColor = "rgba(0,0,0,0)");
return i
}, v = function(e, r) {
var c = "linear",
u = e.id + r,
p = .5,
h = .5,
f = e.node,
m = e.paper,
v = f.style,
b = n._g.doc.getElementById(u);
if(!b) {
if(r = t(r).replace(n._radial_gradient, function(e, t, n) {
if(c = "radial", t && n) {
p = i(t), h = i(n);
var r = 2 * (h > .5) - 1;
l(p - .5, 2) + l(h - .5, 2) > .25 && (h = o.sqrt(.25 - l(p - .5, 2)) * r + .5) && .5 != h && (h = h.toFixed(5) - 1e-5 * r)
}
return d
}), r = r.split(/\s*\-\s*/), "linear" == c) {
var y = r.shift();
if(y = -i(y), isNaN(y)) return null;
var x = [0, 0, o.cos(n.rad(y)), o.sin(n.rad(y))],
w = 1 / (a(s(x[2]), s(x[3])) || 1);
x[2] *= w, x[3] *= w, x[2] < 0 && (x[0] = -x[2], x[2] = 0), x[3] < 0 && (x[1] = -x[3], x[3] = 0)
}
var S = n._parseDots(r);
if(!S) return null;
if(u = u.replace(/[\(\)\s,\xb0#]/g, "_"), e.gradient && u != e.gradient.id && (m.defs.removeChild(e.gradient), delete e.gradient), !e.gradient) {
b = g(c + "Gradient", {
id: u
}), e.gradient = b, g(b, "radial" == c ? {
fx: p,
fy: h
} : {
x1: x[0],
y1: x[1],
x2: x[2],
y2: x[3],
gradientTransform: e.matrix.invert()
}), m.defs.appendChild(b);
for(var C = 0, _ = S.length; _ > C; C++) b.appendChild(g("stop", {
offset: S[C].offset ? S[C].offset : C ? "100%" : "0%",
"stop-color": S[C].color || "#fff"
}))
}
}
return g(f, {
fill: "url(#" + u + ")",
opacity: 1,
"fill-opacity": 1
}), v.fill = d, v.opacity = 1, v.fillOpacity = 1, 1
}, b = function(e) {
var t = e.getBBox(1);
g(e.pattern, {
patternTransform: e.matrix.invert() + " translate(" + t.x + "," + t.y + ")"
})
}, y = function(i, r, o) {
if("path" == i.type) {
for(var a, s, l, c, u, p = t(r).toLowerCase().split("-"), h = i.paper, v = o ? "end" : "start", b = i.node, y = i.attrs, x = y["stroke-width"], w = p.length, S = "classic", C = 3, _ = 3, k = 5; w--;) switch(p[w]) {
case "block":
case "classic":
case "oval":
case "diamond":
case "open":
case "none":
S = p[w];
break;
case "wide":
_ = 5;
break;
case "narrow":
_ = 2;
break;
case "long":
C = 5;
break;
case "short":
C = 2
}
if("open" == S ? (C += 2, _ += 2, k += 2, l = 1, c = o ? 4 : 1, u = {
fill: "none",
stroke: y.stroke
}) : (c = l = C / 2, u = {
fill: y.stroke,
stroke: "none"
}), i._.arrows ? o ? (i._.arrows.endPath && m[i._.arrows.endPath]--, i._.arrows.endMarker && m[i._.arrows.endMarker]--) : (i._.arrows.startPath && m[i._.arrows.startPath]--, i._.arrows.startMarker && m[i._.arrows.startMarker]--) : i._.arrows = {}, "none" != S) {
var T = "raphael-marker-" + S,
E = "raphael-marker-" + v + S + C + _;
n._g.doc.getElementById(T) ? m[T]++ : (h.defs.appendChild(g(g("path"), {
"stroke-linecap": "round",
d: f[S],
id: T
})), m[T] = 1);
var I, N = n._g.doc.getElementById(E);
N ? (m[E]++, I = N.getElementsByTagName("use")[0]) : (N = g(g("marker"), {
id: E,
markerHeight: _,
markerWidth: C,
orient: "auto",
refX: c,
refY: _ / 2
}), I = g(g("use"), {
"xlink:href": "#" + T,
transform: (o ? "rotate(180 " + C / 2 + " " + _ / 2 + ") " : d) + "scale(" + C / k + "," + _ / k + ")",
"stroke-width": (1 / ((C / k + _ / k) / 2)).toFixed(4)
}), N.appendChild(I), h.defs.appendChild(N), m[E] = 1), g(I, u);
var D = l * ("diamond" != S && "oval" != S);
o ? (a = i._.arrows.startdx * x || 0, s = n.getTotalLength(y.path) - D * x) : (a = D * x, s = n.getTotalLength(y.path) - (i._.arrows.enddx * x || 0)), u = {}, u["marker-" + v] = "url(#" + E + ")", (s || a) && (u.d = n.getSubpath(y.path, a, s)), g(b, u), i._.arrows[v + "Path"] = T, i._.arrows[v + "Marker"] = E, i._.arrows[v + "dx"] = D, i._.arrows[v + "Type"] = S, i._.arrows[v + "String"] = r
} else o ? (a = i._.arrows.startdx * x || 0, s = n.getTotalLength(y.path) - a) : (a = 0, s = n.getTotalLength(y.path) - (i._.arrows.enddx * x || 0)), i._.arrows[v + "Path"] && g(b, {
d: n.getSubpath(y.path, a, s)
}), delete i._.arrows[v + "Path"], delete i._.arrows[v + "Marker"], delete i._.arrows[v + "dx"], delete i._.arrows[v + "Type"], delete i._.arrows[v + "String"];
for(u in m)
if(m[e](u) && !m[u]) {
var L = n._g.doc.getElementById(u);
L && L.parentNode.removeChild(L)
}
}
}, x = {
"": [0],
none: [0],
"-": [3, 1],
".": [1, 1],
"-.": [3, 1, 1, 1],
"-..": [3, 1, 1, 1, 1, 1],
". ": [1, 3],
"- ": [4, 3],
"--": [8, 3],
"- .": [4, 3, 1, 3],
"--.": [8, 3, 1, 3],
"--..": [8, 3, 1, 3, 1, 3]
}, w = function(e, n, i) {
if(n = x[t(n).toLowerCase()]) {
for(var r = e.attrs["stroke-width"] || "1", o = {
round: r,
square: r,
butt: 0
}[e.attrs["stroke-linecap"] || i["stroke-linecap"]] || 0, a = [], s = n.length; s--;) a[s] = n[s] * r + (s % 2 ? 1 : -1) * o;
g(e.node, {
"stroke-dasharray": a.join(",")
})
}
}, S = function(i, o) {
var l = i.node,
u = i.attrs,
p = l.style.visibility;
l.style.visibility = "hidden";
for(var f in o)
if(o[e](f)) {
if(!n._availableAttrs[e](f)) continue;
var m = o[f];
switch(u[f] = m, f) {
case "blur":
i.blur(m);
break;
case "href":
case "title":
var x = g("title"),
S = n._g.doc.createTextNode(m);
x.appendChild(S), l.appendChild(x);
break;
case "target":
var C = l.parentNode;
if("a" != C.tagName.toLowerCase()) {
var x = g("a");
C.insertBefore(x, l), x.appendChild(l), C = x
}
"target" == f ? C.setAttributeNS(h, "show", "blank" == m ? "new" : m) : C.setAttributeNS(h, f, m);
break;
case "cursor":
l.style.cursor = m;
break;
case "transform":
i.transform(m);
break;
case "arrow-start":
y(i, m);
break;
case "arrow-end":
y(i, m, 1);
break;
case "clip-rect":
var k = t(m).split(c);
if(4 == k.length) {
i.clip && i.clip.parentNode.parentNode.removeChild(i.clip.parentNode);
var T = g("clipPath"),
E = g("rect");
T.id = n.createUUID(), g(E, {
x: k[0],
y: k[1],
width: k[2],
height: k[3]
}), T.appendChild(E), i.paper.defs.appendChild(T), g(l, {
"clip-path": "url(#" + T.id + ")"
}), i.clip = E
}
if(!m) {
var I = l.getAttribute("clip-path");
if(I) {
var N = n._g.doc.getElementById(I.replace(/(^url\(#|\)$)/g, d));
N && N.parentNode.removeChild(N), g(l, {
"clip-path": d
}), delete i.clip
}
}
break;
case "path":
"path" == i.type && (g(l, {
d: m ? u.path = n._pathToAbsolute(m) : "M0,0"
}), i._.dirty = 1, i._.arrows && ("startString" in i._.arrows && y(i, i._.arrows.startString), "endString" in i._.arrows && y(i, i._.arrows.endString, 1)));
break;
case "width":
if(l.setAttribute(f, m), i._.dirty = 1, !u.fx) break;
f = "x", m = u.x;
case "x":
u.fx && (m = -u.x - (u.width || 0));
case "rx":
if("rx" == f && "rect" == i.type) break;
case "cx":
l.setAttribute(f, m), i.pattern && b(i), i._.dirty = 1;
break;
case "height":
if(l.setAttribute(f, m), i._.dirty = 1, !u.fy) break;
f = "y", m = u.y;
case "y":
u.fy && (m = -u.y - (u.height || 0));
case "ry":
if("ry" == f && "rect" == i.type) break;
case "cy":
l.setAttribute(f, m), i.pattern && b(i), i._.dirty = 1;
break;
case "r":
"rect" == i.type ? g(l, {
rx: m,
ry: m
}) : l.setAttribute(f, m), i._.dirty = 1;
break;
case "src":
"image" == i.type && l.setAttributeNS(h, "href", m);
break;
case "stroke-width":
(1 != i._.sx || 1 != i._.sy) && (m /= a(s(i._.sx), s(i._.sy)) || 1), i.paper._vbSize && (m *= i.paper._vbSize), l.setAttribute(f, m), u["stroke-dasharray"] && w(i, u["stroke-dasharray"], o), i._.arrows && ("startString" in i._.arrows && y(i, i._.arrows.startString), "endString" in i._.arrows && y(i, i._.arrows.endString, 1));
break;
case "stroke-dasharray":
w(i, m, o);
break;
case "fill":
var D = t(m).match(n._ISURL);
if(D) {
T = g("pattern");
var L = g("image");
T.id = n.createUUID(), g(T, {
x: 0,
y: 0,
patternUnits: "userSpaceOnUse",
height: 1,
width: 1
}), g(L, {
x: 0,
y: 0,
"xlink:href": D[1]
}), T.appendChild(L),
function(e) {
n._preload(D[1], function() {
var t = this.offsetWidth,
n = this.offsetHeight;
g(e, {
width: t,
height: n
}), g(L, {
width: t,
height: n
}), i.paper.safari()
})
}(T), i.paper.defs.appendChild(T), g(l, {
fill: "url(#" + T.id + ")"
}), i.pattern = T, i.pattern && b(i);
break
}
var A = n.getRGB(m);
if(A.error) {
if(("circle" == i.type || "ellipse" == i.type || "r" != t(m).charAt()) && v(i, m)) {
if("opacity" in u || "fill-opacity" in u) {
var M = n._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g, d));
if(M) {
var R = M.getElementsByTagName("stop");
g(R[R.length - 1], {
"stop-opacity": ("opacity" in u ? u.opacity : 1) * ("fill-opacity" in u ? u["fill-opacity"] : 1)
})
}
}
u.gradient = m, u.fill = "none";
break
}
} else delete o.gradient, delete u.gradient, !n.is(u.opacity, "undefined") && n.is(o.opacity, "undefined") && g(l, {
opacity: u.opacity
}), !n.is(u["fill-opacity"], "undefined") && n.is(o["fill-opacity"], "undefined") && g(l, {
"fill-opacity": u["fill-opacity"]
});
A[e]("opacity") && g(l, {
"fill-opacity": A.opacity > 1 ? A.opacity / 100 : A.opacity
});
case "stroke":
A = n.getRGB(m), l.setAttribute(f, A.hex), "stroke" == f && A[e]("opacity") && g(l, {
"stroke-opacity": A.opacity > 1 ? A.opacity / 100 : A.opacity
}), "stroke" == f && i._.arrows && ("startString" in i._.arrows && y(i, i._.arrows.startString), "endString" in i._.arrows && y(i, i._.arrows.endString, 1));
break;
case "gradient":
("circle" == i.type || "ellipse" == i.type || "r" != t(m).charAt()) && v(i, m);
break;
case "opacity":
u.gradient && !u[e]("stroke-opacity") && g(l, {
"stroke-opacity": m > 1 ? m / 100 : m
});
case "fill-opacity":
if(u.gradient) {
M = n._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g, d)), M && (R = M.getElementsByTagName("stop"), g(R[R.length - 1], {
"stop-opacity": m
}));
break
}
default:
"font-size" == f && (m = r(m, 10) + "px");
var P = f.replace(/(\-.)/g, function(e) {
return e.substring(1).toUpperCase()
});
l.style[P] = m, i._.dirty = 1, l.setAttribute(f, m)
}
}
_(i, o), l.style.visibility = p
}, C = 1.2,
_ = function(i, o) {
if("text" == i.type && (o[e]("text") || o[e]("font") || o[e]("font-size") || o[e]("x") || o[e]("y"))) {
var a = i.attrs,
s = i.node,
l = s.firstChild ? r(n._g.doc.defaultView.getComputedStyle(s.firstChild, d).getPropertyValue("font-size"), 10) : 10;
if(o[e]("text")) {
for(a.text = o.text; s.firstChild;) s.removeChild(s.firstChild);
for(var c, u = t(o.text).split("\n"), p = [], h = 0, f = u.length; f > h; h++) c = g("tspan"), h && g(c, {
dy: l * C,
x: a.x
}), c.appendChild(n._g.doc.createTextNode(u[h])), s.appendChild(c), p[h] = c
} else
for(p = s.getElementsByTagName("tspan"), h = 0, f = p.length; f > h; h++) h ? g(p[h], {
dy: l * C,
x: a.x
}) : g(p[0], {
dy: 0
});
g(s, {
x: a.x,
y: a.y
}), i._.dirty = 1;
var m = i._getBBox(),
v = a.y - (m.y + m.height / 2);
v && n.is(v, "finite") && g(p[0], {
dy: v
})
}
}, k = function(e, t) {
this[0] = this.node = e, e.raphael = !0, this.id = n._oid++, e.raphaelid = this.id, this.matrix = n.matrix(), this.realPath = null, this.paper = t, this.attrs = this.attrs || {}, this._ = {
transform: [],
sx: 1,
sy: 1,
deg: 0,
dx: 0,
dy: 0,
dirty: 1
}, !t.bottom && (t.bottom = this), this.prev = t.top, t.top && (t.top.next = this), t.top = this, this.next = null
}, T = n.el;
k.prototype = T, T.constructor = k, n._engine.path = function(e, t) {
var n = g("path");
t.canvas && t.canvas.appendChild(n);
var i = new k(n, t);
return i.type = "path", S(i, {
fill: "none",
stroke: "#000",
path: e
}), i
}, T.rotate = function(e, n, r) {
if(this.removed) return this;
if(e = t(e).split(c), e.length - 1 && (n = i(e[1]), r = i(e[2])), e = i(e[0]), null == r && (n = r), null == n || null == r) {
var o = this.getBBox(1);
n = o.x + o.width / 2, r = o.y + o.height / 2
}
return this.transform(this._.transform.concat([["r", e, n, r]])), this
}, T.scale = function(e, n, r, o) {
if(this.removed) return this;
if(e = t(e).split(c), e.length - 1 && (n = i(e[1]), r = i(e[2]), o = i(e[3])), e = i(e[0]), null == n && (n = e), null == o && (r = o), null == r || null == o) var a = this.getBBox(1);
return r = null == r ? a.x + a.width / 2 : r, o = null == o ? a.y + a.height / 2 : o, this.transform(this._.transform.concat([["s", e, n, r, o]])), this
}, T.translate = function(e, n) {
return this.removed ? this : (e = t(e).split(c), e.length - 1 && (n = i(e[1])), e = i(e[0]) || 0, n = +n || 0, this.transform(this._.transform.concat([["t", e, n]])), this)
}, T.transform = function(t) {
var i = this._;
if(null == t) return i.transform;
if(n._extractTransform(this, t), this.clip && g(this.clip, {
transform: this.matrix.invert()
}), this.pattern && b(this), this.node && g(this.node, {
transform: this.matrix
}), 1 != i.sx || 1 != i.sy) {
var r = this.attrs[e]("stroke-width") ? this.attrs["stroke-width"] : 1;
this.attr({
"stroke-width": r
})
}
return this
}, T.hide = function() {
return !this.removed && this.paper.safari(this.node.style.display = "none"), this
}, T.show = function() {
return !this.removed && this.paper.safari(this.node.style.display = ""), this
}, T.remove = function() {
if(!this.removed && this.node.parentNode) {
var e = this.paper;
e.__set__ && e.__set__.exclude(this), u.unbind("raphael.*.*." + this.id), this.gradient && e.defs.removeChild(this.gradient), n._tear(this, e), "a" == this.node.parentNode.tagName.toLowerCase() ? this.node.parentNode.parentNode.removeChild(this.node.parentNode) : this.node.parentNode.removeChild(this.node);
for(var t in this) this[t] = "function" == typeof this[t] ? n._removedFactory(t) : null;
this.removed = !0
}
}, T._getBBox = function() {
if("none" == this.node.style.display) {
this.show();
var e = !0
}
var t = {};
try {
t = this.node.getBBox()
} catch(n) {} finally {
t = t || {}
}
return e && this.hide(), t
}, T.attr = function(t, i) {
if(this.removed) return this;
if(null == t) {
var r = {};
for(var o in this.attrs) this.attrs[e](o) && (r[o] = this.attrs[o]);
return r.gradient && "none" == r.fill && (r.fill = r.gradient) && delete r.gradient, r.transform = this._.transform, r
}
if(null == i && n.is(t, "string")) {
if("fill" == t && "none" == this.attrs.fill && this.attrs.gradient) return this.attrs.gradient;
if("transform" == t) return this._.transform;
for(var a = t.split(c), s = {}, l = 0, d = a.length; d > l; l++) t = a[l], s[t] = t in this.attrs ? this.attrs[t] : n.is(this.paper.customAttributes[t], "function") ? this.paper.customAttributes[t].def : n._availableAttrs[t];
return d - 1 ? s : s[a[0]]
}
if(null == i && n.is(t, "array")) {
for(s = {}, l = 0, d = t.length; d > l; l++) s[t[l]] = this.attr(t[l]);
return s
}
if(null != i) {
var p = {};
p[t] = i
} else null != t && n.is(t, "object") && (p = t);
for(var h in p) u("raphael.attr." + h + "." + this.id, this, p[h]);
for(h in this.paper.customAttributes)
if(this.paper.customAttributes[e](h) && p[e](h) && n.is(this.paper.customAttributes[h], "function")) {
var f = this.paper.customAttributes[h].apply(this, [].concat(p[h]));
this.attrs[h] = p[h];
for(var m in f) f[e](m) && (p[m] = f[m])
}
return S(this, p), this
}, T.toFront = function() {
if(this.removed) return this;
"a" == this.node.parentNode.tagName.toLowerCase() ? this.node.parentNode.parentNode.appendChild(this.node.parentNode) : this.node.parentNode.appendChild(this.node);
var e = this.paper;
return e.top != this && n._tofront(this, e), this
}, T.toBack = function() {
if(this.removed) return this;
var e = this.node.parentNode;
"a" == e.tagName.toLowerCase() ? e.parentNode.insertBefore(this.node.parentNode, this.node.parentNode.parentNode.firstChild) : e.firstChild != this.node && e.insertBefore(this.node, this.node.parentNode.firstChild), n._toback(this, this.paper);
this.paper;
return this
}, T.insertAfter = function(e) {
if(this.removed) return this;
var t = e.node || e[e.length - 1].node;
return t.nextSibling ? t.parentNode.insertBefore(this.node, t.nextSibling) : t.parentNode.appendChild(this.node), n._insertafter(this, e, this.paper), this
}, T.insertBefore = function(e) {
if(this.removed) return this;
var t = e.node || e[0].node;
return t.parentNode.insertBefore(this.node, t), n._insertbefore(this, e, this.paper), this
}, T.blur = function(e) {
var t = this;
if(0 !== +e) {
var i = g("filter"),
r = g("feGaussianBlur");
t.attrs.blur = e, i.id = n.createUUID(), g(r, {
stdDeviation: +e || 1.5
}), i.appendChild(r), t.paper.defs.appendChild(i), t._blur = i, g(t.node, {
filter: "url(#" + i.id + ")"
})
} else t._blur && (t._blur.parentNode.removeChild(t._blur), delete t._blur, delete t.attrs.blur), t.node.removeAttribute("filter");
return t
}, n._engine.circle = function(e, t, n, i) {
var r = g("circle");
e.canvas && e.canvas.appendChild(r);
var o = new k(r, e);
return o.attrs = {
cx: t,
cy: n,
r: i,
fill: "none",
stroke: "#000"
}, o.type = "circle", g(r, o.attrs), o
}, n._engine.rect = function(e, t, n, i, r, o) {
var a = g("rect");
e.canvas && e.canvas.appendChild(a);
var s = new k(a, e);
return s.attrs = {
x: t,
y: n,
width: i,
height: r,
r: o || 0,
rx: o || 0,
ry: o || 0,
fill: "none",
stroke: "#000"
}, s.type = "rect", g(a, s.attrs), s
}, n._engine.ellipse = function(e, t, n, i, r) {
var o = g("ellipse");
e.canvas && e.canvas.appendChild(o);
var a = new k(o, e);
return a.attrs = {
cx: t,
cy: n,
rx: i,
ry: r,
fill: "none",
stroke: "#000"
}, a.type = "ellipse", g(o, a.attrs), a
}, n._engine.image = function(e, t, n, i, r, o) {
var a = g("image");
g(a, {
x: n,
y: i,
width: r,
height: o,
preserveAspectRatio: "none"
}), a.setAttributeNS(h, "href", t), e.canvas && e.canvas.appendChild(a);
var s = new k(a, e);
return s.attrs = {
x: n,
y: i,
width: r,
height: o,
src: t
}, s.type = "image", s
}, n._engine.text = function(e, t, i, r) {
var o = g("text");
e.canvas && e.canvas.appendChild(o);
var a = new k(o, e);
return a.attrs = {
x: t,
y: i,
"text-anchor": "middle",
text: r,
font: n._availableAttrs.font,
stroke: "none",
fill: "#000"
}, a.type = "text", S(a, a.attrs), a
}, n._engine.setSize = function(e, t) {
return this.width = e || this.width, this.height = t || this.height, this.canvas.setAttribute("width", this.width), this.canvas.setAttribute("height", this.height), this._viewBox && this.setViewBox.apply(this, this._viewBox), this
}, n._engine.create = function() {
var e = n._getContainer.apply(0, arguments),
t = e && e.container,
i = e.x,
r = e.y,
o = e.width,
a = e.height;
if(!t) throw new Error("SVG container not found.");
var s, l = g("svg"),
c = "overflow:hidden;";
return i = i || 0, r = r || 0, o = o || 512, a = a || 342, g(l, {
height: a,
version: 1.1,
width: o,
xmlns: "http://www.w3.org/2000/svg"
}), 1 == t ? (l.style.cssText = c + "position:absolute;left:" + i + "px;top:" + r + "px", n._g.doc.body.appendChild(l), s = 1) : (l.style.cssText = c + "position:relative", t.firstChild ? t.insertBefore(l, t.firstChild) : t.appendChild(l)), t = new n._Paper, t.width = o, t.height = a, t.canvas = l, t.clear(), t._left = t._top = 0, s && (t.renderfix = function() {}), t.renderfix(), t
}, n._engine.setViewBox = function(e, t, n, i, r) {
u("raphael.setViewBox", this, this._viewBox, [e, t, n, i, r]);
var o, s, l = a(n / this.width, i / this.height),
c = this.top,
d = r ? "meet" : "xMinYMin";
for(null == e ? (this._vbSize && (l = 1), delete this._vbSize, o = "0 0 " + this.width + p + this.height) : (this._vbSize = l, o = e + p + t + p + n + p + i), g(this.canvas, {
viewBox: o,
preserveAspectRatio: d
}); l && c;) s = "stroke-width" in c.attrs ? c.attrs["stroke-width"] : 1, c.attr({
"stroke-width": s
}), c._.dirty = 1, c._.dirtyT = 1, c = c.prev;
return this._viewBox = [e, t, n, i, !! r], this
}, n.prototype.renderfix = function() {
var e, t = this.canvas,
n = t.style;
try {
e = t.getScreenCTM() || t.createSVGMatrix()
} catch(i) {
e = t.createSVGMatrix()
}
var r = -e.e % 1,
o = -e.f % 1;
(r || o) && (r && (this._left = (this._left + r) % 1, n.left = this._left + "px"), o && (this._top = (this._top + o) % 1, n.top = this._top + "px"))
}, n.prototype.clear = function() {
n.eve("raphael.clear", this);
for(var e = this.canvas; e.firstChild;) e.removeChild(e.firstChild);
this.bottom = this.top = null, (this.desc = g("desc")).appendChild(n._g.doc.createTextNode("Created with Raphaël " + n.version)), e.appendChild(this.desc), e.appendChild(this.defs = g("defs"))
}, n.prototype.remove = function() {
u("raphael.remove", this), this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);
for(var e in this) this[e] = "function" == typeof this[e] ? n._removedFactory(e) : null
};
var E = n.st;
for(var I in T) T[e](I) && !E[e](I) && (E[I] = function(e) {
return function() {
var t = arguments;
return this.forEach(function(n) {
n[e].apply(n, t)
})
}
}(I))
}
}(),
function() {
if(n.vml) {
var e = "hasOwnProperty",
t = String,
i = parseFloat,
r = Math,
o = r.round,
a = r.max,
s = r.min,
l = r.abs,
c = "fill",
u = /[, ]+/,
d = n.eve,
p = " progid:DXImageTransform.Microsoft",
h = " ",
f = "",
m = {
M: "m",
L: "l",
C: "c",
Z: "x",
m: "t",
l: "r",
c: "v",
z: "x"
}, g = /([clmz]),?([^clmz]*)/gi,
v = / progid:\S+Blur\([^\)]+\)/g,
b = /-?[^,\s-]+/g,
y = "position:absolute;left:0;top:0;width:1px;height:1px",
x = 21600,
w = {
path: 1,
rect: 1,
image: 1
}, S = {
circle: 1,
ellipse: 1
}, C = function(e) {
var i = /[ahqstv]/gi,
r = n._pathToAbsolute;
if(t(e).match(i) && (r = n._path2curve), i = /[clmz]/g, r == n._pathToAbsolute && !t(e).match(i)) {
var a = t(e).replace(g, function(e, t, n) {
var i = [],
r = "m" == t.toLowerCase(),
a = m[t];
return n.replace(b, function(e) {
r && 2 == i.length && (a += i + m["m" == t ? "l" : "L"], i = []), i.push(o(e * x))
}), a + i
});
return a
}
var s, l, c = r(e);
a = [];
for(var u = 0, d = c.length; d > u; u++) {
s = c[u], l = c[u][0].toLowerCase(), "z" == l && (l = "x");
for(var p = 1, v = s.length; v > p; p++) l += o(s[p] * x) + (p != v - 1 ? "," : f);
a.push(l)
}
return a.join(h)
}, _ = function(e, t, i) {
var r = n.matrix();
return r.rotate(-e, .5, .5), {
dx: r.x(t, i),
dy: r.y(t, i)
}
}, k = function(e, t, n, i, r, o) {
var a = e._,
s = e.matrix,
u = a.fillpos,
d = e.node,
p = d.style,
f = 1,
m = "",
g = x / t,
v = x / n;
if(p.visibility = "hidden", t && n) {
if(d.coordsize = l(g) + h + l(v), p.rotation = o * (0 > t * n ? -1 : 1), o) {
var b = _(o, i, r);
i = b.dx, r = b.dy
}
if(0 > t && (m += "x"), 0 > n && (m += " y") && (f = -1), p.flip = m, d.coordorigin = i * -g + h + r * -v, u || a.fillsize) {
var y = d.getElementsByTagName(c);
y = y && y[0], d.removeChild(y), u && (b = _(o, s.x(u[0], u[1]), s.y(u[0], u[1])), y.position = b.dx * f + h + b.dy * f), a.fillsize && (y.size = a.fillsize[0] * l(t) + h + a.fillsize[1] * l(n)), d.appendChild(y)
}
p.visibility = "visible"
}
};
n.toString = function() {
return "Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël " + this.version
};
var T = function(e, n, i) {
for(var r = t(n).toLowerCase().split("-"), o = i ? "end" : "start", a = r.length, s = "classic", l = "medium", c = "medium"; a--;) switch(r[a]) {
case "block":
case "classic":
case "oval":
case "diamond":
case "open":
case "none":
s = r[a];
break;
case "wide":
case "narrow":
c = r[a];
break;
case "long":
case "short":
l = r[a]
}
var u = e.node.getElementsByTagName("stroke")[0];
u[o + "arrow"] = s, u[o + "arrowlength"] = l, u[o + "arrowwidth"] = c
}, E = function(r, l) {
r.attrs = r.attrs || {};
var d = r.node,
p = r.attrs,
m = d.style,
g = w[r.type] && (l.x != p.x || l.y != p.y || l.width != p.width || l.height != p.height || l.cx != p.cx || l.cy != p.cy || l.rx != p.rx || l.ry != p.ry || l.r != p.r),
v = S[r.type] && (p.cx != l.cx || p.cy != l.cy || p.r != l.r || p.rx != l.rx || p.ry != l.ry),
b = r;
for(var y in l) l[e](y) && (p[y] = l[y]);
if(g && (p.path = n._getPath[r.type](r), r._.dirty = 1), l.href && (d.href = l.href), l.title && (d.title = l.title), l.target && (d.target = l.target), l.cursor && (m.cursor = l.cursor), "blur" in l && r.blur(l.blur), (l.path && "path" == r.type || g) && (d.path = C(~t(p.path).toLowerCase().indexOf("r") ? n._pathToAbsolute(p.path) : p.path), "image" == r.type && (r._.fillpos = [p.x, p.y], r._.fillsize = [p.width, p.height], k(r, 1, 1, 0, 0, 0))), "transform" in l && r.transform(l.transform), v) {
var _ = +p.cx,
E = +p.cy,
N = +p.rx || +p.r || 0,
D = +p.ry || +p.r || 0;
d.path = n.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", o((_ - N) * x), o((E - D) * x), o((_ + N) * x), o((E + D) * x), o(_ * x)), r._.dirty = 1
}
if("clip-rect" in l) {
var A = t(l["clip-rect"]).split(u);
if(4 == A.length) {
A[2] = +A[2] + +A[0], A[3] = +A[3] + +A[1];
var M = d.clipRect || n._g.doc.createElement("div"),
R = M.style;
R.clip = n.format("rect({1}px {2}px {3}px {0}px)", A), d.clipRect || (R.position = "absolute", R.top = 0, R.left = 0, R.width = r.paper.width + "px", R.height = r.paper.height + "px", d.parentNode.insertBefore(M, d), M.appendChild(d), d.clipRect = M)
}
l["clip-rect"] || d.clipRect && (d.clipRect.style.clip = "auto")
}
if(r.textpath) {
var P = r.textpath.style;
l.font && (P.font = l.font), l["font-family"] && (P.fontFamily = '"' + l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g, f) + '"'), l["font-size"] && (P.fontSize = l["font-size"]), l["font-weight"] && (P.fontWeight = l["font-weight"]), l["font-style"] && (P.fontStyle = l["font-style"])
}
if("arrow-start" in l && T(b, l["arrow-start"]), "arrow-end" in l && T(b, l["arrow-end"], 1), null != l.opacity || null != l["stroke-width"] || null != l.fill || null != l.src || null != l.stroke || null != l["stroke-width"] || null != l["stroke-opacity"] || null != l["fill-opacity"] || null != l["stroke-dasharray"] || null != l["stroke-miterlimit"] || null != l["stroke-linejoin"] || null != l["stroke-linecap"]) {
var F = d.getElementsByTagName(c),
O = !1;
if(F = F && F[0], !F && (O = F = L(c)), "image" == r.type && l.src && (F.src = l.src), l.fill && (F.on = !0), (null == F.on || "none" == l.fill || null === l.fill) && (F.on = !1), F.on && l.fill) {
var B = t(l.fill).match(n._ISURL);
if(B) {
F.parentNode == d && d.removeChild(F), F.rotate = !0, F.src = B[1], F.type = "tile";
var j = r.getBBox(1);
F.position = j.x + h + j.y, r._.fillpos = [j.x, j.y], n._preload(B[1], function() {
r._.fillsize = [this.offsetWidth, this.offsetHeight]
})
} else F.color = n.getRGB(l.fill).hex, F.src = f, F.type = "solid", n.getRGB(l.fill).error && (b.type in {
circle: 1,
ellipse: 1
} || "r" != t(l.fill).charAt()) && I(b, l.fill, F) && (p.fill = "none", p.gradient = l.fill, F.rotate = !1)
}
if("fill-opacity" in l || "opacity" in l) {
var $ = ((+p["fill-opacity"] + 1 || 2) - 1) * ((+p.opacity + 1 || 2) - 1) * ((+n.getRGB(l.fill).o + 1 || 2) - 1);
$ = s(a($, 0), 1), F.opacity = $, F.src && (F.color = "none")
}
d.appendChild(F);
var G = d.getElementsByTagName("stroke") && d.getElementsByTagName("stroke")[0],
q = !1;
!G && (q = G = L("stroke")), (l.stroke && "none" != l.stroke || l["stroke-width"] || null != l["stroke-opacity"] || l["stroke-dasharray"] || l["stroke-miterlimit"] || l["stroke-linejoin"] || l["stroke-linecap"]) && (G.on = !0), ("none" == l.stroke || null === l.stroke || null == G.on || 0 == l.stroke || 0 == l["stroke-width"]) && (G.on = !1);
var H = n.getRGB(l.stroke);
G.on && l.stroke && (G.color = H.hex), $ = ((+p["stroke-opacity"] + 1 || 2) - 1) * ((+p.opacity + 1 || 2) - 1) * ((+H.o + 1 || 2) - 1);
var U = .75 * (i(l["stroke-width"]) || 1);
if($ = s(a($, 0), 1), null == l["stroke-width"] && (U = p["stroke-width"]), l["stroke-width"] && (G.weight = U), U && 1 > U && ($ *= U) && (G.weight = 1), G.opacity = $, l["stroke-linejoin"] && (G.joinstyle = l["stroke-linejoin"] || "miter"), G.miterlimit = l["stroke-miterlimit"] || 8, l["stroke-linecap"] && (G.endcap = "butt" == l["stroke-linecap"] ? "flat" : "square" == l["stroke-linecap"] ? "square" : "round"), l["stroke-dasharray"]) {
var z = {
"-": "shortdash",
".": "shortdot",
"-.": "shortdashdot",
"-..": "shortdashdotdot",
". ": "dot",
"- ": "dash",
"--": "longdash",
"- .": "dashdot",
"--.": "longdashdot",
"--..": "longdashdotdot"
};
G.dashstyle = z[e](l["stroke-dasharray"]) ? z[l["stroke-dasharray"]] : f
}
q && d.appendChild(G)
}
if("text" == b.type) {
b.paper.canvas.style.display = f;
var V = b.paper.span,
W = 100,
X = p.font && p.font.match(/\d+(?:\.\d*)?(?=px)/);
m = V.style, p.font && (m.font = p.font), p["font-family"] && (m.fontFamily = p["font-family"]), p["font-weight"] && (m.fontWeight = p["font-weight"]), p["font-style"] && (m.fontStyle = p["font-style"]), X = i(p["font-size"] || X && X[0]) || 10, m.fontSize = X * W + "px", b.textpath.string && (V.innerHTML = t(b.textpath.string).replace(/"));
var Q = V.getBoundingClientRect();
b.W = p.w = (Q.right - Q.left) / W, b.H = p.h = (Q.bottom - Q.top) / W, b.X = p.x, b.Y = p.y + b.H / 2, ("x" in l || "y" in l) && (b.path.v = n.format("m{0},{1}l{2},{1}", o(p.x * x), o(p.y * x), o(p.x * x) + 1));
for(var Y = ["x", "y", "text", "font", "font-family", "font-weight", "font-style", "font-size"], K = 0, J = Y.length; J > K; K++)
if(Y[K] in l) {
b._.dirty = 1;
break
}
switch(p["text-anchor"]) {
case "start":
b.textpath.style["v-text-align"] = "left", b.bbx = b.W / 2;
break;
case "end":
b.textpath.style["v-text-align"] = "right", b.bbx = -b.W / 2;
break;
default:
b.textpath.style["v-text-align"] = "center", b.bbx = 0
}
b.textpath.style["v-text-kern"] = !0
}
}, I = function(e, o, a) {
e.attrs = e.attrs || {};
var s = (e.attrs, Math.pow),
l = "linear",
c = ".5 .5";
if(e.attrs.gradient = o, o = t(o).replace(n._radial_gradient, function(e, t, n) {
return l = "radial", t && n && (t = i(t), n = i(n), s(t - .5, 2) + s(n - .5, 2) > .25 && (n = r.sqrt(.25 - s(t - .5, 2)) * (2 * (n > .5) - 1) + .5), c = t + h + n), f
}), o = o.split(/\s*\-\s*/), "linear" == l) {
var u = o.shift();
if(u = -i(u), isNaN(u)) return null
}
var d = n._parseDots(o);
if(!d) return null;
if(e = e.shape || e.node, d.length) {
e.removeChild(a), a.on = !0, a.method = "none", a.color = d[0].color, a.color2 = d[d.length - 1].color;
for(var p = [], m = 0, g = d.length; g > m; m++) d[m].offset && p.push(d[m].offset + h + d[m].color);
a.colors = p.length ? p.join() : "0% " + a.color, "radial" == l ? (a.type = "gradientTitle", a.focus = "100%", a.focussize = "0 0", a.focusposition = c, a.angle = 0) : (a.type = "gradient", a.angle = (270 - u) % 360), e.appendChild(a)
}
return 1
}, N = function(e, t) {
this[0] = this.node = e, e.raphael = !0, this.id = n._oid++, e.raphaelid = this.id, this.X = 0, this.Y = 0, this.attrs = {}, this.paper = t, this.matrix = n.matrix(), this._ = {
transform: [],
sx: 1,
sy: 1,
dx: 0,
dy: 0,
deg: 0,
dirty: 1,
dirtyT: 1
}, !t.bottom && (t.bottom = this), this.prev = t.top, t.top && (t.top.next = this), t.top = this, this.next = null
}, D = n.el;
N.prototype = D, D.constructor = N, D.transform = function(e) {
if(null == e) return this._.transform;
var i, r = this.paper._viewBoxShift,
o = r ? "s" + [r.scale, r.scale] + "-1-1t" + [r.dx, r.dy] : f;
r && (i = e = t(e).replace(/\.{3}|\u2026/g, this._.transform || f)), n._extractTransform(this, o + e);
var a, s = this.matrix.clone(),
l = this.skew,
c = this.node,
u = ~t(this.attrs.fill).indexOf("-"),
d = !t(this.attrs.fill).indexOf("url(");
if(s.translate(1, 1), d || u || "image" == this.type)
if(l.matrix = "1 0 0 1", l.offset = "0 0", a = s.split(), u && a.noRotation || !a.isSimple) {
c.style.filter = s.toFilter();
var p = this.getBBox(),
m = this.getBBox(1),
g = p.x - m.x,
v = p.y - m.y;
c.coordorigin = g * -x + h + v * -x, k(this, 1, 1, g, v, 0)
} else c.style.filter = f, k(this, a.scalex, a.scaley, a.dx, a.dy, a.rotate);
else c.style.filter = f, l.matrix = t(s), l.offset = s.offset();
return i && (this._.transform = i), this
}, D.rotate = function(e, n, r) {
if(this.removed) return this;
if(null != e) {
if(e = t(e).split(u), e.length - 1 && (n = i(e[1]), r = i(e[2])), e = i(e[0]), null == r && (n = r), null == n || null == r) {
var o = this.getBBox(1);
n = o.x + o.width / 2, r = o.y + o.height / 2
}
return this._.dirtyT = 1, this.transform(this._.transform.concat([["r", e, n, r]])), this
}
}, D.translate = function(e, n) {
return this.removed ? this : (e = t(e).split(u), e.length - 1 && (n = i(e[1])), e = i(e[0]) || 0, n = +n || 0, this._.bbox && (this._.bbox.x += e, this._.bbox.y += n), this.transform(this._.transform.concat([["t", e, n]])), this)
}, D.scale = function(e, n, r, o) {
if(this.removed) return this;
if(e = t(e).split(u), e.length - 1 && (n = i(e[1]), r = i(e[2]), o = i(e[3]), isNaN(r) && (r = null), isNaN(o) && (o = null)), e = i(e[0]), null == n && (n = e), null == o && (r = o), null == r || null == o) var a = this.getBBox(1);
return r = null == r ? a.x + a.width / 2 : r, o = null == o ? a.y + a.height / 2 : o, this.transform(this._.transform.concat([["s", e, n, r, o]])), this._.dirtyT = 1, this
}, D.hide = function() {
return !this.removed && (this.node.style.display = "none"), this
}, D.show = function() {
return !this.removed && (this.node.style.display = f), this
}, D._getBBox = function() {
return this.removed ? {} : {
x: this.X + (this.bbx || 0) - this.W / 2,
y: this.Y - this.H,
width: this.W,
height: this.H
}
}, D.remove = function() {
if(!this.removed && this.node.parentNode) {
this.paper.__set__ && this.paper.__set__.exclude(this), n.eve.unbind("raphael.*.*." + this.id), n._tear(this, this.paper), this.node.parentNode.removeChild(this.node), this.shape && this.shape.parentNode.removeChild(this.shape);
for(var e in this) this[e] = "function" == typeof this[e] ? n._removedFactory(e) : null;
this.removed = !0
}
}, D.attr = function(t, i) {
if(this.removed) return this;
if(null == t) {
var r = {};
for(var o in this.attrs) this.attrs[e](o) && (r[o] = this.attrs[o]);
return r.gradient && "none" == r.fill && (r.fill = r.gradient) && delete r.gradient, r.transform = this._.transform, r
}
if(null == i && n.is(t, "string")) {
if(t == c && "none" == this.attrs.fill && this.attrs.gradient) return this.attrs.gradient;
for(var a = t.split(u), s = {}, l = 0, p = a.length; p > l; l++) t = a[l], s[t] = t in this.attrs ? this.attrs[t] : n.is(this.paper.customAttributes[t], "function") ? this.paper.customAttributes[t].def : n._availableAttrs[t];
return p - 1 ? s : s[a[0]]
}
if(this.attrs && null == i && n.is(t, "array")) {
for(s = {}, l = 0, p = t.length; p > l; l++) s[t[l]] = this.attr(t[l]);
return s
}
var h;
null != i && (h = {}, h[t] = i), null == i && n.is(t, "object") && (h = t);
for(var f in h) d("raphael.attr." + f + "." + this.id, this, h[f]);
if(h) {
for(f in this.paper.customAttributes)
if(this.paper.customAttributes[e](f) && h[e](f) && n.is(this.paper.customAttributes[f], "function")) {
var m = this.paper.customAttributes[f].apply(this, [].concat(h[f]));
this.attrs[f] = h[f];
for(var g in m) m[e](g) && (h[g] = m[g])
}
h.text && "text" == this.type && (this.textpath.string = h.text), E(this, h)
}
return this
}, D.toFront = function() {
return !this.removed && this.node.parentNode.appendChild(this.node), this.paper && this.paper.top != this && n._tofront(this, this.paper), this
}, D.toBack = function() {
return this.removed ? this : (this.node.parentNode.firstChild != this.node && (this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild), n._toback(this, this.paper)), this)
}, D.insertAfter = function(e) {
return this.removed ? this : (e.constructor == n.st.constructor && (e = e[e.length - 1]), e.node.nextSibling ? e.node.parentNode.insertBefore(this.node, e.node.nextSibling) : e.node.parentNode.appendChild(this.node), n._insertafter(this, e, this.paper), this)
}, D.insertBefore = function(e) {
return this.removed ? this : (e.constructor == n.st.constructor && (e = e[0]), e.node.parentNode.insertBefore(this.node, e.node), n._insertbefore(this, e, this.paper), this)
}, D.blur = function(e) {
var t = this.node.runtimeStyle,
i = t.filter;
return i = i.replace(v, f), 0 !== +e ? (this.attrs.blur = e, t.filter = i + h + p + ".Blur(pixelradius=" + (+e || 1.5) + ")", t.margin = n.format("-{0}px 0 0 -{0}px", o(+e || 1.5))) : (t.filter = i, t.margin = 0, delete this.attrs.blur), this
}, n._engine.path = function(e, t) {
var n = L("shape");
n.style.cssText = y, n.coordsize = x + h + x, n.coordorigin = t.coordorigin;
var i = new N(n, t),
r = {
fill: "none",
stroke: "#000"
};
e && (r.path = e), i.type = "path", i.path = [], i.Path = f, E(i, r), t.canvas.appendChild(n);
var o = L("skew");
return o.on = !0, n.appendChild(o), i.skew = o, i.transform(f), i
}, n._engine.rect = function(e, t, i, r, o, a) {
var s = n._rectPath(t, i, r, o, a),
l = e.path(s),
c = l.attrs;
return l.X = c.x = t, l.Y = c.y = i, l.W = c.width = r, l.H = c.height = o, c.r = a, c.path = s, l.type = "rect", l
}, n._engine.ellipse = function(e, t, n, i, r) {
{
var o = e.path();
o.attrs
}
return o.X = t - i, o.Y = n - r, o.W = 2 * i, o.H = 2 * r, o.type = "ellipse", E(o, {
cx: t,
cy: n,
rx: i,
ry: r
}), o
}, n._engine.circle = function(e, t, n, i) {
{
var r = e.path();
r.attrs
}
return r.X = t - i, r.Y = n - i, r.W = r.H = 2 * i, r.type = "circle", E(r, {
cx: t,
cy: n,
r: i
}), r
}, n._engine.image = function(e, t, i, r, o, a) {
var s = n._rectPath(i, r, o, a),
l = e.path(s).attr({
stroke: "none"
}),
u = l.attrs,
d = l.node,
p = d.getElementsByTagName(c)[0];
return u.src = t, l.X = u.x = i, l.Y = u.y = r, l.W = u.width = o, l.H = u.height = a, u.path = s, l.type = "image", p.parentNode == d && d.removeChild(p), p.rotate = !0, p.src = t, p.type = "tile", l._.fillpos = [i, r], l._.fillsize = [o, a], d.appendChild(p), k(l, 1, 1, 0, 0, 0), l
}, n._engine.text = function(e, i, r, a) {
var s = L("shape"),
l = L("path"),
c = L("textpath");
i = i || 0, r = r || 0, a = a || "", l.v = n.format("m{0},{1}l{2},{1}", o(i * x), o(r * x), o(i * x) + 1), l.textpathok = !0, c.string = t(a), c.on = !0, s.style.cssText = y, s.coordsize = x + h + x, s.coordorigin = "0 0";
var u = new N(s, e),
d = {
fill: "#000",
stroke: "none",
font: n._availableAttrs.font,
text: a
};
u.shape = s, u.path = l, u.textpath = c, u.type = "text", u.attrs.text = t(a), u.attrs.x = i, u.attrs.y = r, u.attrs.w = 1, u.attrs.h = 1, E(u, d), s.appendChild(c), s.appendChild(l), e.canvas.appendChild(s);
var p = L("skew");
return p.on = !0, s.appendChild(p), u.skew = p, u.transform(f), u
}, n._engine.setSize = function(e, t) {
var i = this.canvas.style;
return this.width = e, this.height = t, e == +e && (e += "px"), t == +t && (t += "px"), i.width = e, i.height = t, i.clip = "rect(0 " + e + " " + t + " 0)", this._viewBox && n._engine.setViewBox.apply(this, this._viewBox), this
}, n._engine.setViewBox = function(e, t, i, r, o) {
n.eve("raphael.setViewBox", this, this._viewBox, [e, t, i, r, o]);
var s, l, c = this.width,
u = this.height,
d = 1 / a(i / c, r / u);
return o && (s = u / r, l = c / i, c > i * s && (e -= (c - i * s) / 2 / s), u > r * l && (t -= (u - r * l) / 2 / l)), this._viewBox = [e, t, i, r, !! o], this._viewBoxShift = {
dx: -e,
dy: -t,
scale: d
}, this.forEach(function(e) {
e.transform("...")
}), this
};
var L;
n._engine.initWin = function(e) {
var t = e.document;
t.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)");
try {
!t.namespaces.rvml && t.namespaces.add("rvml", "urn:schemas-microsoft-com:vml"), L = function(e) {
return t.createElement("')
}
} catch(n) {
L = function(e) {
return t.createElement("<" + e + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')
}
}
}, n._engine.initWin(n._g.win), n._engine.create = function() {
var e = n._getContainer.apply(0, arguments),
t = e.container,
i = e.height,
r = e.width,
o = e.x,
a = e.y;
if(!t) throw new Error("VML container not found.");
var s = new n._Paper,
l = s.canvas = n._g.doc.createElement("div"),
c = l.style;
return o = o || 0, a = a || 0, r = r || 512, i = i || 342, s.width = r, s.height = i, r == +r && (r += "px"), i == +i && (i += "px"), s.coordsize = 1e3 * x + h + 1e3 * x, s.coordorigin = "0 0", s.span = n._g.doc.createElement("span"), s.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;", l.appendChild(s.span), c.cssText = n.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden", r, i), 1 == t ? (n._g.doc.body.appendChild(l), c.left = o + "px", c.top = a + "px", c.position = "absolute") : t.firstChild ? t.insertBefore(l, t.firstChild) : t.appendChild(l), s.renderfix = function() {}, s
}, n.prototype.clear = function() {
n.eve("raphael.clear", this), this.canvas.innerHTML = f, this.span = n._g.doc.createElement("span"), this.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;", this.canvas.appendChild(this.span), this.bottom = this.top = null
}, n.prototype.remove = function() {
n.eve("raphael.remove", this), this.canvas.parentNode.removeChild(this.canvas);
for(var e in this) this[e] = "function" == typeof this[e] ? n._removedFactory(e) : null;
return !0
};
var A = n.st;
for(var M in D) D[e](M) && !A[e](M) && (A[M] = function(e) {
return function() {
var t = arguments;
return this.forEach(function(n) {
n[e].apply(n, t)
})
}
}(M))
}
}(), E.was ? T.win.Raphael = n : Raphael = n, n
}), define("sequence-diagram", ["text!bower-libs/js-sequence-diagrams/build/sequence-diagram-min.js", "raphael", "underscore"], function(sequenceDiagramMinJS) {
return eval(sequenceDiagramMinJS), window.Diagram
}), ! function(e, t) {
"object" == typeof exports ? module.exports = t() : "function" == typeof define && define.amd && define("flow-chart", [], t)
}(this, function() {
function e(t, n) {
if(!t || "function" == typeof t) return n;
var i = {};
for(var r in n) i[r] = n[r];
for(r in t) t[r] && (i[r] = "object" == typeof i[r] ? e(i[r], t[r]) : t[r]);
return i
}
function t(e, t) {
if("function" == typeof Object.create) e.super_ = t, e.prototype = Object.create(t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
});
else {
e.super_ = t;
var n = function() {};
n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
}
}
function n(e, t, n) {
var i, r, o = "M{0},{1}";
for(i = 2, r = 2 * n.length + 2; r > i; i += 2) o += " L{" + i + "},{" + (i + 1) + "}";
var a = [t.x, t.y];
for(i = 0, r = n.length; r > i; i++) a.push(n[i].x), a.push(n[i].y);
var s = e.paper.path(o, a);
s.attr("stroke", e.options["element-color"]), s.attr("stroke-width", e.options["line-width"]);
var l = e.options.font,
c = e.options["font-family"],
u = e.options["font-weight"];
return l && s.attr({
font: l
}), c && s.attr({
"font-family": c
}), u && s.attr({
"font-weight": u
}), s
}
function i(e, t, n, i) {
var r, o;
"[object Array]" !== Object.prototype.toString.call(n) && (n = [n]);
var a = "M{0},{1}";
for(r = 2, o = 2 * n.length + 2; o > r; r += 2) a += " L{" + r + "},{" + (r + 1) + "}";
var s = [t.x, t.y];
for(r = 0, o = n.length; o > r; r++) s.push(n[r].x), s.push(n[r].y);
var l = e.paper.path(a, s);
l.attr({
stroke: e.options["line-color"],
"stroke-width": e.options["line-width"],
"arrow-end": e.options["arrow-end"]
});
var c = e.options.font,
u = e.options["font-family"],
d = e.options["font-weight"];
if(c && l.attr({
font: c
}), u && l.attr({
"font-family": u
}), d && l.attr({
"font-weight": d
}), i) {
var p = !1,
h = e.paper.text(0, 0, i),
f = !1,
m = n[0];
t.y === m.y && (f = !0);
var g = 0,
v = 0;
p ? (g = t.x > m.x ? t.x - (t.x - m.x) / 2 : m.x - (m.x - t.x) / 2, v = t.y > m.y ? t.y - (t.y - m.y) / 2 : m.y - (m.y - t.y) / 2, f ? (g -= h.getBBox().width / 2, v -= e.options["text-margin"]) : (g += e.options["text-margin"], v -= h.getBBox().height / 2)) : (g = t.x, v = t.y, f ? (g += e.options["text-margin"] / 2, v -= e.options["text-margin"]) : (g += e.options["text-margin"] / 2, v += e.options["text-margin"])), h.attr({
"text-anchor": "start",
"font-size": e.options["font-size"],
stroke: e.options["font-color"],
x: g,
y: v
}), c && h.attr({
font: c
}), u && h.attr({
"font-family": u
}), d && h.attr({
"font-weight": d
})
}
return l
}
function r(e, t, n, i, r, o, a, s) {
var l, c, u, d, p, h = {
x: null,
y: null,
onLine1: !1,
onLine2: !1
};
return l = (s - o) * (n - e) - (a - r) * (i - t), 0 === l ? h : (c = t - o, u = e - r, d = (a - r) * c - (s - o) * u, p = (n - e) * c - (i - t) * u, c = d / l, u = p / l, h.x = e + c * (n - e), h.y = t + c * (i - t), c > 0 && 1 > c && (h.onLine1 = !0), u > 0 && 1 > u && (h.onLine2 = !0), h)
}
function o(e, t) {
t = t || {}, this.paper = new Raphael(e), this.options = g.defaults(t, m), this.symbols = [], this.lines = [], this.start = null
}
function a(e, t, n) {
this.chart = e, this.group = this.chart.paper.set(), this.connectedTo = [], this.symbolType = t.symbolType, this.next_direction = t.next && t.direction_next ? t.direction_next : void 0, this.text = this.chart.paper.text(0, 0, t.text), this.text.attr({
"text-anchor": "start",
"font-size": this.chart.options.symbols[this.symbolType]["font-size"] || this.chart.options["font-size"],
x: this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"],
stroke: this.chart.options.symbols[this.symbolType]["font-color"] || this.chart.options["font-color"]
});
var i = this.chart.options.symbols[this.symbolType].font || this.chart.options.font,
r = this.chart.options.symbols[this.symbolType]["font-family"] || this.chart.options["font-family"],
o = this.chart.options.symbols[this.symbolType]["font-weight"] || this.chart.options["font-weight"];
if(i && this.text.attr({
font: i
}), r && this.text.attr({
"font-family": r
}), o && this.text.attr({
"font-weight": o
}), t.link && this.text.attr("href", t.link), t.target && this.text.attr("target", t.target), this.chart.options.symbols[this.symbolType].maxWidth || this.chart.options.maxWidth) {
for(var a = this.chart.options.symbols[this.symbolType].maxWidth || this.chart.options.maxWidth, s = t.text.split(" "), l = "", c = 0, u = s.length; u > c; c++) {
var d = s[c];
this.text.attr("text", l + " " + d), l += this.text.getBBox().width > a ? "\n" + d : " " + d
}
this.text.attr("text", l.substring(1))
}
this.group.push(this.text), n && (n.attr({
stroke: this.chart.options.symbols[this.symbolType]["element-color"] || this.chart.options["element-color"],
"stroke-width": this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"],
width: this.text.getBBox().width + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
height: this.text.getBBox().height + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
fill: this.chart.options.symbols[this.symbolType].fill || this.chart.options.fill
}), t.link && n.attr("href", t.link), t.target && n.attr("target", t.target), this.group.push(n), n.insertBefore(this.text), this.text.attr({
y: n.getBBox().height / 2
}), this.initialize())
}
function s(e, t) {
var n = e.paper.rect(0, 0, 0, 0, 20);
t = t || {}, t.text = t.text || "Start", a.call(this, e, t, n)
}
function l(e, t) {
var n = e.paper.rect(0, 0, 0, 0, 20);
t = t || {}, t.text = t.text || "End", a.call(this, e, t, n)
}
function c(e, t) {
var n = e.paper.rect(0, 0, 0, 0);
t = t || {}, a.call(this, e, t, n)
}
function u(e, t) {
var n = e.paper.rect(0, 0, 0, 0);
t = t || {}, a.call(this, e, t, n), n.attr({
width: this.text.getBBox().width + 4 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"])
}), this.text.attr({
x: 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"])
});
var i = e.paper.rect(0, 0, 0, 0);
i.attr({
x: this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"],
stroke: this.chart.options.symbols[this.symbolType]["element-color"] || this.chart.options["element-color"],
"stroke-width": this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"],
width: this.text.getBBox().width + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
height: this.text.getBBox().height + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
fill: this.chart.options.symbols[this.symbolType].fill || this.chart.options.fill
});
var r = this.chart.options.symbols[this.symbolType].font || this.chart.options.font,
o = this.chart.options.symbols[this.symbolType]["font-family"] || this.chart.options["font-family"],
s = this.chart.options.symbols[this.symbolType]["font-weight"] || this.chart.options["font-weight"];
r && i.attr({
font: r
}), o && i.attr({
"font-family": o
}), s && i.attr({
"font-weight": s
}), t.link && i.attr("href", t.link), t.target && i.attr("target", t.target), this.group.push(i), i.insertBefore(this.text), this.initialize()
}
function d(e, t) {
t = t || {}, a.call(this, e, t), this.text.attr({
x: 3 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"])
});
var i = this.text.getBBox().width + 4 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
r = this.text.getBBox().height + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
o = this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"],
s = r / 2,
l = {
x: o,
y: s
}, c = [{
x: o - (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
y: r
}, {
x: o - (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]) + i,
y: r
}, {
x: o - (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]) + i + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
y: 0
}, {
x: o - (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]) + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]),
y: 0
}, {
x: o,
y: s
}],
u = n(e, l, c);
u.attr({
stroke: this.chart.options.symbols[this.symbolType]["element-color"] || this.chart.options["element-color"],
"stroke-width": this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"],
fill: this.chart.options.symbols[this.symbolType].fill || this.chart.options.fill
}), t.link && u.attr("href", t.link), t.target && u.attr("target", t.target), this.text.attr({
y: u.getBBox().height / 2
}), this.group.push(u), u.insertBefore(this.text), this.initialize()
}
function p(e, t) {
t = t || {}, a.call(this, e, t), this.yes_direction = "bottom", this.no_direction = "right", t.yes && t.direction_yes && t.no && !t.direction_no ? "right" === t.direction_yes ? (this.no_direction = "bottom", this.yes_direction = "right") : (this.no_direction = "right", this.yes_direction = "bottom") : t.yes && !t.direction_yes && t.no && t.direction_no ? "right" === t.direction_no ? (this.yes_direction = "bottom", this.no_direction = "right") : (this.yes_direction = "right", this.no_direction = "bottom") : (this.yes_direction = "bottom", this.no_direction = "right"), this.yes_direction = this.yes_direction || "bottom", this.no_direction = this.no_direction || "right", this.text.attr({
x: 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"])
});
var i = this.text.getBBox().width + 3 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]);
i += i / 2;
var r = this.text.getBBox().height + 2 * (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]);
r += r / 2, r = Math.max(.5 * i, r);
var o = i / 4,
s = r / 4;
this.text.attr({
x: o + (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]) / 2
});
var l = {
x: o,
y: s
}, c = [{
x: o - i / 4,
y: s + r / 4
}, {
x: o - i / 4 + i / 2,
y: s + r / 4 + r / 2
}, {
x: o - i / 4 + i,
y: s + r / 4
}, {
x: o - i / 4 + i / 2,
y: s + r / 4 - r / 2
}, {
x: o - i / 4,
y: s + r / 4
}],
u = n(e, l, c);
u.attr({
stroke: this.chart.options.symbols[this.symbolType]["element-color"] || this.chart.options["element-color"],
"stroke-width": this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"],
fill: this.chart.options.symbols[this.symbolType].fill || this.chart.options.fill
}), t.link && u.attr("href", t.link), t.target && u.attr("target", t.target), this.text.attr({
y: u.getBBox().height / 2
}), this.group.push(u), u.insertBefore(this.text), this.initialize()
}
function h(e) {
function t(e) {
var t = e.indexOf("(") + 1,
n = e.indexOf(")");
return t >= 0 && n >= 0 ? i.symbols[e.substring(0, t - 1)] : i.symbols[e]
}
function n(e) {
var t = "next",
n = e.indexOf("(") + 1,
i = e.indexOf(")");
return n >= 0 && i >= 0 && (t = I.substring(n, i), t.indexOf(",") < 0 && "yes" !== t && "no" !== t && (t = "next, " + t)), t
}
e = e || "", e = e.trim();
for(var i = {
symbols: {},
start: null,
drawSVG: function(e, t) {
function n(e) {
if(r[e.key]) return r[e.key];
switch(e.symbolType) {
case "start":
r[e.key] = new s(i, e);
break;
case "end":
r[e.key] = new l(i, e);
break;
case "operation":
r[e.key] = new c(i, e);
break;
case "inputoutput":
r[e.key] = new d(i, e);
break;
case "subroutine":
r[e.key] = new u(i, e);
break;
case "condition":
r[e.key] = new p(i, e);
break;
default:
return new Error("Wrong symbol type!")
}
return r[e.key]
}
this.diagram && this.diagram.clean();
var i = new o(e, t);
this.diagram = i;
var r = {}, a = this;
! function h(e, t, r) {
var o = n(e);
return a.start === e ? i.startWith(o) : t && r && !t.pathOk && (t instanceof p ? (r.yes === e && t.yes(o), r.no === e && t.no(o)) : t.then(o)), o.pathOk ? o : (o instanceof p ? (e.yes && h(e.yes, o, e), e.no && h(e.no, o, e)) : e.next && h(e.next, o, e), o)
}(this.start), i.render()
},
clean: function() {
this.diagram.clean()
}
}, r = [], a = 0, h = 1, f = e.length; f > h; h++)
if("\n" === e[h] && "\\" !== e[h - 1]) {
var m = e.substring(a, h);
a = h + 1, r.push(m.replace(/\\\n/g, "\n"))
}
a < e.length && r.push(e.substr(a));
for(var g = 1, v = r.length; v > g;) {
var b = r[g];
b.indexOf(": ") < 0 && b.indexOf("(") < 0 && b.indexOf(")") < 0 && b.indexOf("->") < 0 && b.indexOf("=>") < 0 ? (r[g - 1] += "\n" + b, r.splice(g, 1), v--) : g++
}
for(; r.length > 0;) {
var y = r.splice(0, 1)[0];
if(y.indexOf("=>") >= 0) {
var x, w = y.split("=>"),
S = {
key: w[0],
symbolType: w[1],
text: null,
link: null,
target: null
};
if(S.symbolType.indexOf(": ") >= 0 && (x = S.symbolType.split(": "), S.symbolType = x[0], S.text = x[1]), S.text && S.text.indexOf(":>") >= 0 ? (x = S.text.split(":>"), S.text = x[0], S.link = x[1]) : S.symbolType.indexOf(":>") >= 0 && (x = S.symbolType.split(":>"), S.symbolType = x[0], S.link = x[1]), S.symbolType.indexOf("\n") >= 0 && (S.symbolType = S.symbolType.split("\n")[0]), S.link) {
var C = S.link.indexOf("[") + 1,
_ = S.link.indexOf("]");
C >= 0 && _ >= 0 && (S.target = S.link.substring(C, _), S.link = S.link.substring(0, C - 1))
}
i.symbols[S.key] = S
} else if(y.indexOf("->") >= 0)
for(var k = y.split("->"), T = 0, E = k.length; E > T; T++) {
var I = k[T],
N = t(I),
D = n(I),
L = null;
if(D.indexOf(",") >= 0) {
var A = D.split(",");
D = A[0], L = A[1].trim()
}
if(i.start || (i.start = N), E > T + 1) {
var M = k[T + 1];
N[D] = t(M), N["direction_" + D] = L, L = null
}
}
}
return i
}
Array.prototype.indexOf || (Array.prototype.indexOf = function(e) {
if(null === this) throw new TypeError;
var t = Object(this),
n = t.length >>> 0;
if(0 === n) return -1;
var i = 0;
if(arguments.length > 0 && (i = Number(arguments[1]), i != i ? i = 0 : 0 !== i && 1 / 0 != i && i != -1 / 0 && (i = (i > 0 || -1) * Math.floor(Math.abs(i)))), i >= n) return -1;
for(var r = i >= 0 ? i : Math.max(n - Math.abs(i), 0); n > r; r++)
if(r in t && t[r] === e) return r;
return -1
}), Array.prototype.lastIndexOf || (Array.prototype.lastIndexOf = function(e) {
if(null === this) throw new TypeError;
var t = Object(this),
n = t.length >>> 0;
if(0 === n) return -1;
var i = n;
arguments.length > 1 && (i = Number(arguments[1]), i != i ? i = 0 : 0 !== i && i != 1 / 0 && i != -(1 / 0) && (i = (i > 0 || -1) * Math.floor(Math.abs(i))));
for(var r = i >= 0 ? Math.min(i, n - 1) : n - Math.abs(i); r >= 0; r--)
if(r in t && t[r] === e) return r;
return -1
}), String.prototype.trim || (String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "")
});
var f = {}, m = {
"line-width": 3,
"line-length": 50,
"text-margin": 10,
"font-size": 14,
"font-color": "black",
"line-color": "black",
"element-color": "black",
fill: "white",
"yes-text": "yes",
"no-text": "no",
"arrow-end": "block",
symbols: {
start: {},
end: {},
condition: {},
inputoutput: {},
operation: {},
subroutine: {}
}
}, g = {
defaults: e,
inherits: t
};
return o.prototype.handle = function(e) {
this.symbols.indexOf(e) <= -1 && this.symbols.push(e);
var t = this;
return e instanceof p ? (e.yes = function(n) {
return e.yes_symbol = n, e.no_symbol && (e.pathOk = !0), t.handle(n)
}, e.no = function(n) {
return e.no_symbol = n, e.yes_symbol && (e.pathOk = !0), t.handle(n)
}) : e.then = function(n) {
return e.next = n, e.pathOk = !0, t.handle(n)
}, e
}, o.prototype.startWith = function(e) {
return this.start = e, this.handle(e)
}, o.prototype.render = function() {
var e, t = 0,
n = 0,
i = 0,
r = 0,
o = 0;
for(n = 0, i = this.symbols.length; i > n; n++) e = this.symbols[n], e.width > t && (t = e.width);
for(n = 0, i = this.symbols.length; i > n; n++) e = this.symbols[n], e.shiftX((t - e.width) / 2);
for(this.start.render(), n = 0, i = this.symbols.length; i > n; n++) e = this.symbols[n], e.renderLines();
for(r = this.maxXFromLine, n = 0, i = this.symbols.length; i > n; n++) {
e = this.symbols[n];
var a = e.getX() + e.width,
s = e.getY() + e.height;
a > r && (r = a), s > o && (o = s)
}
this.paper.setSize(r + this.options["line-width"], o + this.options["line-width"])
}, o.prototype.clean = function() {
if(this.paper) {
var e = this.paper.canvas;
e.parentNode.removeChild(e)
}
}, a.prototype.initialize = function() {
this.group.transform("t" + (this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"]) + "," + (this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"])), this.width = this.group.getBBox().width, this.height = this.group.getBBox().height
}, a.prototype.getCenter = function() {
return {
x: this.getX() + this.width / 2,
y: this.getY() + this.height / 2
}
}, a.prototype.getX = function() {
return this.group.getBBox().x
}, a.prototype.getY = function() {
return this.group.getBBox().y
}, a.prototype.shiftX = function(e) {
this.group.transform("t" + (this.getX() + e) + "," + this.getY())
}, a.prototype.setX = function(e) {
this.group.transform("t" + e + "," + this.getY())
}, a.prototype.shiftY = function(e) {
this.group.transform("t" + this.getX() + "," + (this.getY() + e))
}, a.prototype.setY = function(e) {
this.group.transform("t" + this.getX() + "," + e)
}, a.prototype.getTop = function() {
var e = this.getY(),
t = this.getX() + this.width / 2;
return {
x: t,
y: e
}
}, a.prototype.getBottom = function() {
var e = this.getY() + this.height,
t = this.getX() + this.width / 2;
return {
x: t,
y: e
}
}, a.prototype.getLeft = function() {
var e = this.getY() + this.group.getBBox().height / 2,
t = this.getX();
return {
x: t,
y: e
}
}, a.prototype.getRight = function() {
var e = this.getY() + this.group.getBBox().height / 2,
t = this.getX() + this.group.getBBox().width;
return {
x: t,
y: e
}
}, a.prototype.render = function() {
if(this.next) {
var e = this.chart.options.symbols[this.symbolType]["line-length"] || this.chart.options["line-length"];
if("right" === this.next_direction) {
var t = this.getRight();
if(this.next.getLeft(), !this.next.isPositioned) {
this.next.setY(t.y - this.next.height / 2), this.next.shiftX(this.group.getBBox().x + this.width + e);
var n = this;
! function r() {
for(var t, i = !1, o = 0, a = n.chart.symbols.length; a > o; o++) {
t = n.chart.symbols[o];
var s = Math.abs(t.getCenter().x - n.next.getCenter().x);
if(t.getCenter().y > n.next.getCenter().y && s <= n.next.width / 2) {
i = !0;
break
}
}
i && (n.next.setX(t.getX() + t.width + e), r())
}(), this.next.isPositioned = !0, this.next.render()
}
} else {
var i = this.getBottom();
this.next.getTop(), this.next.isPositioned || (this.next.shiftY(this.getY() + this.height + e), this.next.setX(i.x - this.next.width / 2), this.next.isPositioned = !0, this.next.render())
}
}
}, a.prototype.renderLines = function() {
this.next && (this.next_direction ? this.drawLineTo(this.next, "", this.next_direction) : this.drawLineTo(this.next))
}, a.prototype.drawLineTo = function(e, t, n) {
this.connectedTo.indexOf(e) < 0 && this.connectedTo.push(e);
var o, a = this.getCenter().x,
s = this.getCenter().y,
l = (this.getTop(), this.getRight()),
c = this.getBottom(),
u = this.getLeft(),
d = e.getCenter().x,
p = e.getCenter().y,
h = e.getTop(),
f = e.getRight(),
m = (e.getBottom(), e.getLeft()),
g = a === d,
v = s === p,
b = p > s,
y = s > p,
x = a > d,
w = d > a,
S = 0,
C = this.chart.options.symbols[this.symbolType]["line-length"] || this.chart.options["line-length"],
_ = this.chart.options.symbols[this.symbolType]["line-width"] || this.chart.options["line-width"];
if(n && "bottom" !== n || !g || !b ? n && "right" !== n || !v || !w ? n && "left" !== n || !v || !x ? n && "right" !== n || !g || !y ? n && "right" !== n || !g || !b ? n && "bottom" !== n || !x ? n && "bottom" !== n || !w ? n && "right" === n && x ? (o = i(this.chart, l, [{
x: l.x + C / 2,
y: l.y
}, {
x: l.x + C / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.rightStart = !0, e.topEnd = !0, S = l.x + C / 2) : n && "right" === n && w ? (o = i(this.chart, l, [{
x: h.x,
y: l.y
}, {
x: h.x,
y: h.y
}], t), this.rightStart = !0, e.topEnd = !0, S = l.x + C / 2) : n && "bottom" === n && g && y ? (o = i(this.chart, c, [{
x: c.x,
y: c.y + C / 2
}, {
x: l.x + C / 2,
y: c.y + C / 2
}, {
x: l.x + C / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.bottomStart = !0, e.topEnd = !0, S = c.x + C / 2) : "left" === n && (o = i(this.chart, u, [{
x: h.x + (u.x - h.x) / 2,
y: u.y
}, {
x: h.x + (u.x - h.x) / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.leftStart = !0, e.topEnd = !0, S = u.x) : (o = i(this.chart, c, [{
x: c.x,
y: c.y + C / 2
}, {
x: c.x + (c.x - h.x) / 2,
y: c.y + C / 2
}, {
x: c.x + (c.x - h.x) / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.bottomStart = !0, e.topEnd = !0, S = c.x + (c.x - h.x) / 2) : (o = this.leftEnd && y ? i(this.chart, c, [{
x: c.x,
y: c.y + C / 2
}, {
x: c.x + (c.x - h.x) / 2,
y: c.y + C / 2
}, {
x: c.x + (c.x - h.x) / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t) : i(this.chart, c, [{
x: c.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.bottomStart = !0, e.topEnd = !0, S = c.x + (c.x - h.x) / 2) : (o = i(this.chart, l, [{
x: l.x + C / 2,
y: l.y
}, {
x: l.x + C / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.rightStart = !0, e.topEnd = !0, S = l.x + C / 2) : (o = i(this.chart, l, [{
x: l.x + C / 2,
y: l.y
}, {
x: l.x + C / 2,
y: h.y - C / 2
}, {
x: h.x,
y: h.y - C / 2
}, {
x: h.x,
y: h.y
}], t), this.rightStart = !0, e.topEnd = !0, S = l.x + C / 2) : (o = i(this.chart, u, f, t), this.leftStart = !0, e.rightEnd = !0, S = f.x) : (o = i(this.chart, l, m, t), this.rightStart = !0, e.leftEnd = !0, S = m.x) : (o = i(this.chart, c, h, t), this.bottomStart = !0, e.topEnd = !0, S = c.x), o) {
for(var k = 0, T = this.chart.lines.length; T > k; k++)
for(var E, I = this.chart.lines[k], N = I.attr("path"), D = o.attr("path"), L = 0, A = N.length - 1; A > L; L++) {
var M = [];
M.push(["M", N[L][1], N[L][2]]), M.push(["L", N[L + 1][1], N[L + 1][2]]);
for(var R = M[0][1], P = M[0][2], F = M[1][1], O = M[1][2], B = 0, j = D.length - 1; j > B; B++) {
var $ = [];
$.push(["M", D[B][1], D[B][2]]), $.push(["L", D[B + 1][1], D[B + 1][2]]);
var G = $[0][1],
q = $[0][2],
H = $[1][1],
U = $[1][2],
z = r(R, P, F, O, G, q, H, U);
if(z.onLine1 && z.onLine2) {
var V;
q === U ? G > H ? (V = ["L", z.x + 2 * _, q], D.splice(B + 1, 0, V), V = ["C", z.x + 2 * _, q, z.x, q - 4 * _, z.x - 2 * _, q], D.splice(B + 2, 0, V), o.attr("path", D)) : (V = ["L", z.x - 2 * _, q], D.splice(B + 1, 0, V), V = ["C", z.x - 2 * _, q, z.x, q - 4 * _, z.x + 2 * _, q], D.splice(B + 2, 0, V), o.attr("path", D)) : q > U ? (V = ["L", G, z.y + 2 * _], D.splice(B + 1, 0, V), V = ["C", G, z.y + 2 * _, G + 4 * _, z.y, G, z.y - 2 * _], D.splice(B + 2, 0, V), o.attr("path", D)) : (V = ["L", G, z.y - 2 * _], D.splice(B + 1, 0, V), V = ["C", G, z.y - 2 * _, G + 4 * _, z.y, G, z.y + 2 * _], D.splice(B + 2, 0, V), o.attr("path", D)), B += 2, E += 2
}
}
}
this.chart.lines.push(o)
}(!this.chart.maxXFromLine || this.chart.maxXFromLine && S > this.chart.maxXFromLine) && (this.chart.maxXFromLine = S)
}, g.inherits(s, a), s.prototype.render = function() {
if(this.next) {
var e = this.chart.options.symbols[this.symbolType]["line-length"] || this.chart.options["line-length"],
t = this.getBottom();
this.next.getTop(), this.next.isPositioned || (this.next.shiftY(this.getY() + this.height + e), this.next.setX(t.x - this.next.width / 2), this.next.isPositioned = !0, this.next.render())
}
}, s.prototype.renderLines = function() {
this.next && this.drawLineTo(this.next)
}, g.inherits(l, a), g.inherits(c, a), g.inherits(u, a), g.inherits(d, a), d.prototype.getLeft = function() {
var e = this.getY() + this.group.getBBox().height / 2,
t = this.getX() + (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]);
return {
x: t,
y: e
}
}, d.prototype.getRight = function() {
var e = this.getY() + this.group.getBBox().height / 2,
t = this.getX() + this.group.getBBox().width - (this.chart.options.symbols[this.symbolType]["text-margin"] || this.chart.options["text-margin"]);
return {
x: t,
y: e
}
}, g.inherits(p, a), p.prototype.render = function() {
this.yes_direction && (this[this.yes_direction + "_symbol"] = this.yes_symbol), this.no_direction && (this[this.no_direction + "_symbol"] = this.no_symbol);
var e = this.chart.options.symbols[this.symbolType]["line-length"] || this.chart.options["line-length"];
if(this.bottom_symbol) {
var t = this.getBottom();
this.bottom_symbol.getTop(), this.bottom_symbol.isPositioned || (this.bottom_symbol.shiftY(this.getY() + this.height + e), this.bottom_symbol.setX(t.x - this.bottom_symbol.width / 2), this.bottom_symbol.isPositioned = !0, this.bottom_symbol.render())
}
if(this.right_symbol) {
var n = this.getRight();
if(this.right_symbol.getLeft(), !this.right_symbol.isPositioned) {
this.right_symbol.setY(n.y - this.right_symbol.height / 2), this.right_symbol.shiftX(this.group.getBBox().x + this.width + e);
var i = this;
! function r() {
for(var t, n = !1, o = 0, a = i.chart.symbols.length; a > o; o++) {
t = i.chart.symbols[o];
var s = Math.abs(t.getCenter().x - i.right_symbol.getCenter().x);
if(t.getCenter().y > i.right_symbol.getCenter().y && s <= i.right_symbol.width / 2) {
n = !0;
break
}
}
n && (i.right_symbol.setX(t.getX() + t.width + e), r())
}(), this.right_symbol.isPositioned = !0, this.right_symbol.render()
}
}
}, p.prototype.renderLines = function() {
this.yes_symbol && this.drawLineTo(this.yes_symbol, this.chart.options["yes-text"], this.yes_direction), this.no_symbol && this.drawLineTo(this.no_symbol, this.chart.options["no-text"], this.no_direction)
}, f.parse = h, f
}), define("extensions/umlDiagrams", ["jquery", "underscore", "utils", "logger", "classes/Extension", "text!html/umlDiagramsSettingsBlock.html", "crel", "sequence-diagram", "flow-chart"], function(e, t, n, i, r, o, a, s, l) {
var c = new r("umlDiagrams", "UML Diagrams", !0);
c.settingsBlock = o;
var u;
c.onEventMgrCreated = function(e) {
u = e
};
var d;
c.onReady = function() {
d = document.getElementById("preview-contents")
};
var p = function(e) {
e()
};
return c.onAsyncPreview = function(e) {
p(e)
}, c.onInit = function() {
function e(n) {
if(0 === i.length) return n();
var r = i.pop();
try {
var o = s.parse(r.textContent),
l = r.parentNode,
c = a("div", {
"class": "sequence-diagram"
});
l.parentNode.replaceChild(c, l), o.drawSVG(c, {
theme: "simple"
})
} catch(u) {}
t.delay(e, 0, n)
}
function n(e) {
if(0 === r.length) return e();
var i = r.pop();
try {
var o = l.parse(i.textContent),
s = i.parentNode,
c = a("div", {
"class": "flow-chart"
});
s.parentNode.replaceChild(c, s), o.drawSVG(c, {
"line-width": 2
})
} catch(u) {}
t.delay(n, 0, e)
}
var i, r, o = p;
p = function(a) {
i = Array.prototype.slice.call(d.querySelectorAll(".prettyprint > .language-sequence")), r = Array.prototype.slice.call(d.querySelectorAll(".prettyprint > .language-flow")), t.delay(e, 0, function() {
t.delay(n, 0, function() {
o(a)
})
})
}
}, c
}), define("text!html/buttonToc.html", [], function() {
return '\n \n \n\n'
}), define("text!html/tocSettingsBlock.html", [], function() {
return 'Generates a table of contents when a [TOC] marker is found.
\n'
}), define("extensions/toc", ["jquery", "underscore", "utils", "classes/Extension", "text!html/buttonToc.html", "text!html/tocSettingsBlock.html"], function(e, t, n, i, r, o) {
function a(e, t, n) {
this.tagName = e, this.anchor = t, this.text = n, this.children = []
}
function s(e, n) {
function i() {
void 0 !== r && (r.children.length > 0 && (r.children = s(r.children, n + 1)), l.push(r))
}
n = n || 1;
var r, o = "H" + n,
l = [];
return t.each(e, function(e) {
e.tagName != o ? n !== c.config.maxDepth && (void 0 === r && (r = new a), r.children.push(e)) : (i(), r = e)
}), i(), l
}
function l() {
function e(e) {
for(var r = e.id || n.slugify(e.textContent) || "title", o = r, a = 0; t.has(i, o);) o = r + "-" + ++a;
return i[o] = !0, e.id = o, o
}
var i = {}, r = [];
return t.each(u.querySelectorAll("h1, h2, h3, h4, h5, h6"), function(t) {
r.push(new a(t.tagName, e(t), t.textContent))
}), r = s(r), '\n"
}
var c = new i("toc", "Table of Contents", !0);
c.settingsBlock = o, c.defaultConfig = {
marker: "\\[(TOC|toc)\\]",
maxDepth: 6,
button: !0
}, c.onLoadSettings = function() {
n.setInputValue("#input-toc-marker", c.config.marker), n.setInputValue("#input-toc-maxdepth", c.config.maxDepth), n.setInputChecked("#input-toc-button", c.config.button)
}, c.onSaveSettings = function(e, t) {
e.marker = n.getInputRegExpValue("#input-toc-marker", t), e.maxDepth = n.getInputIntValue("#input-toc-maxdepth"), e.button = n.getInputChecked("#input-toc-button")
}, c.onCreatePreviewButton = function() {
return c.config.button ? r : void 0
}, a.prototype.childrenToString = function() {
if(0 === this.children.length) return "";
var e = "\n";
return t.each(this.children, function(t) {
e += t.toString()
}), e += " \n"
}, a.prototype.toString = function() {
var e = "";
return this.anchor && this.text && (e += '' + this.text + " "), e += this.childrenToString() + " \n"
};
var u;
return c.onPagedownConfigure = function(e) {
u = document.getElementById("preview-contents");
var n = new RegExp("^\\s*" + c.config.marker + "\\s*$");
e.hooks.chain("onPreviewRefresh", function() {
var e = document.querySelectorAll(".table-of-contents, .toc"),
i = l();
t.each(u.getElementsByTagName("p"), function(e) {
n.test(e.innerHTML) && (e.innerHTML = i)
}), t.each(e, function(e) {
e.innerHTML = i
})
})
}, c.onReady = function() {
var t = !0;
e(".preview-panel").on("hide.layout.toggle", function() {
t = !1
}).on("shown.layout.toggle", function() {
t = !0
}), e(".extension-preview-buttons .table-of-contents").on("click", "a", function(e) {
!t && e.preventDefault()
})
}, c
}), define("extensions/emailConverter", ["classes/Extension"], function(e) {
var t = new e("emailConverter", "Markdown Email", !0);
return t.settingsBlock = "Converts email adresses in the form <email@example.com> into clickable links.
", t.onPagedownConfigure = function(e) {
e.getConverter().hooks.chain("postConversion", function(e) {
return e.replace(/<(mailto\:)?([^\s>]+@[^\s>]+\.\S+?)>/g, function(e, t, n) {
return '' + n + " "
})
})
}, t
}), define("text!html/scrollSyncSettingsBlock.html", [], function() {
return "Binds together editor and preview scrollbars.
\n\n Note: The mapping between Markdown and HTML is based on the\n position of the title elements (h1, h2...) in the page. Therefore if\n your document does not contain any title, the mapping will be linear and\n consequently less accurate.\n "
}), define("extensions/scrollSync", ["jquery", "underscore", "classes/Extension", "text!html/scrollSyncSettingsBlock.html"], function(e, t, n, i) {
function r(e, n, i) {
var r, o = t.find(n, function(t, n) {
return r = n, e < t.endOffset
});
if(void 0 !== o) {
var a = (e - o.startOffset) / (o.height || 1),
s = i[r];
return s.startOffset + s.height * a
}
}
var o = new n("scrollSync", "Scroll Sync", !0, !0);
o.settingsBlock = i, e.easing.easeOutSine = function(e) {
return Math.cos((1 - e) * Math.PI / 2)
};
var a;
o.onSectionsCreated = function(e) {
a = e
};
var s, l, c, u, d = [],
p = [],
h = t.debounce(function() {
d = [];
var t, n, i = s.scrollTop();
s.find(".wmd-input-section").each(function() {
if(void 0 === t) return void(t = 0);
var n = e(this.firstChild),
r = n.position().top + i;
d.push({
startOffset: t,
endOffset: r,
height: r - t
}), t = r
}), n = s.prop("scrollHeight"), d.push({
startOffset: t,
endOffset: n,
height: n - t
}), p = [];
var r, o = l.scrollTop();
l.find(".wmd-preview-section").each(function() {
if(void 0 === r) return void(r = 0);
var t = e(this),
n = t.position().top + o;
p.push({
startOffset: r,
endOffset: n,
height: n - r
}), r = n
}), n = l.prop("scrollHeight"), p.push({
startOffset: r,
endOffset: n,
height: n - r
}), c = -10, u = -10, x()
}, 500),
f = !0,
m = !1,
g = !1,
v = !1,
b = !1,
y = e(""),
x = t.throttle(function() {
if(f && 0 !== d.length && d.length === p.length) {
var e = s.scrollTop();
0 > e && (e = 0);
var n, i = l.scrollTop();
if(m === !0) {
if(Math.abs(e - c) <= 9) return;
if(m = !1, c = e, n = r(e, d, p), n = t.min([n, l.prop("scrollHeight") - l.outerHeight()]), Math.abs(n - i) <= 9) return void(u = i);
y.stop("scrollSyncFx", !0).css("value", 0).animate({
value: n - i
}, {
easing: "easeOutSine",
duration: 200,
queue: "scrollSyncFx",
step: function(e) {
b = !0, u = i + e, l.scrollTop(u)
},
done: function() {
setTimeout(function() {
b = !1
}, 10)
}
}).dequeue("scrollSyncFx")
} else if(g === !0) {
if(Math.abs(i - u) <= 9) return;
if(g = !1, u = i, n = r(i, p, d), n = t.min([n, s.prop("scrollHeight") - s.outerHeight()]), Math.abs(n - e) <= 9) return void(c = e);
y.stop("scrollSyncFx", !0).css("value", 0).animate({
value: n - e
}, {
easing: "easeOutSine",
duration: 200,
queue: "scrollSyncFx",
step: function(t) {
v = !0, c = e + t, s.scrollTop(c)
},
done: function() {
setTimeout(function() {
v = !1
}, 10)
}
}).dequeue("scrollSyncFx")
}
}
}, 100);
o.onLayoutResize = function() {
m = !0, h()
}, o.onFileClosed = function() {
d = []
};
var w = !1;
o.onReady = function() {
l = e(".preview-container"), s = e("#wmd-input"), l.scroll(function() {
b === !1 && w === !1 && (g = !0, m = !1, x()), w = !1
}), s.scroll(function() {
v === !1 && (m = !0, g = !1, x())
}), e(".preview-panel").on("hide.layout.toggle", function() {
f = !1
}).on("shown.layout.toggle", function() {
f = !0
}), e(".extension-preview-buttons .table-of-contents").on("click", "a", function(e) {
e.preventDefault();
var t = this.hash,
n = l.find(t);
if(n.length) {
var i = n.offset().top - l.offset().top + l.scrollTop();
l.scrollTop(i);
var o = r(i, p, d);
s.scrollTop(o)
}
})
};
var S;
return o.onPagedownConfigure = function(t) {
S = e("#preview-contents"), t.getConverter().hooks.chain("postConversion", function(e) {
return S.height(S.height()), e
})
}, o.onPreviewFinished = function() {
var e = S.height();
S.height("auto");
var t = S.height();
m = !0, e > t && (w = !0), h()
}, o
}), define("text!html/buttonSyncSettingsBlock.html", [], function() {
return '
Adds a "Synchronize documents" button in the navigation bar.
\n
'
}), define("extensions/buttonSync", ["jquery", "underscore", "crel", "utils", "classes/Extension", "mousetrap", "text!html/buttonSyncSettingsBlock.html"], function(e, t, n, i, r, o, a) {
var s = new r("buttonSync", 'Button "Synchronize"', !1, !0);
s.settingsBlock = a, s.defaultConfig = {
syncPeriod: 18e4,
syncShortcut: "mod+s"
}, s.onLoadSettings = function() {
i.setInputValue("#input-sync-period", s.config.syncPeriod), i.setInputValue("#input-sync-shortcut", s.config.syncShortcut)
}, s.onSaveSettings = function(e, t) {
e.syncPeriod = i.getInputIntValue("#input-sync-period", t, 0), e.syncShortcut = i.getInputTextValue("#input-sync-shortcut", t)
};
var l;
s.onSynchronizerCreated = function(e) {
l = e
};
var c, u = !1,
d = !1,
p = function() {
void 0 !== c && (u === !0 || l.hasSync() === !1 || d ? c.addClass("disabled") : c.removeClass("disabled"))
}, h = 0;
return s.onPeriodicRun = function() {
!s.config.syncPeriod || h + s.config.syncPeriod > i.currentTime || l.sync() && (h = i.currentTime)
}, s.onCreateButton = function() {
var t = n("a", {
"class": "btn btn-success button-synchronize",
title: "Force synchronization Ctrl/Cmd+S"
}, n("i", {
"class": "icon-refresh"
}));
return c = e(t), c.click(function() {
c.hasClass("disabled") || l.sync() && (h = i.currentTime)
}), t
}, s.onReady = p, s.onFileCreated = p, s.onFileDeleted = p, s.onSyncImportSuccess = p, s.onSyncExportSuccess = p, s.onSyncRemoved = p, s.onSyncRunning = function(e) {
u = e, p()
}, s.onOfflineChanged = function(e) {
d = e, p()
}, s.onReady = function() {
o.bind(s.config.syncShortcut, function(e) {
l.sync() && (h = i.currentTime), e.preventDefault()
}), e(".action-force-synchronization").click(function() {
l.sync() && (h = i.currentTime)
})
}, s
}), define("extensions/buttonPublish", ["jquery", "underscore", "crel", "classes/Extension"], function(e, t, n, i) {
function r() {
void 0 !== o && (c === !0 || u === !1 || d === !0 ? o.addClass("disabled") : o.removeClass("disabled"))
}
var o, a, s, l = new i("buttonPublish", 'Button "Publish"'),
c = !1,
u = !1,
d = !1;
l.onPublisherCreated = function(e) {
s = e
}, l.onCreateButton = function() {
var t = n("a", {
"class": "btn btn-success button-publish",
title: "Update document publication"
}, n("i", {
"class": "icon-upload"
}));
return o = e(t).click(function() {
o.hasClass("disabled") || s.publish()
}), t
}, l.onPublishRunning = function(e) {
c = e, r()
}, l.onOfflineChanged = function(e) {
d = e, r()
};
var p = function() {
u = 0 === t.size(a.publishLocations) ? !1 : !0, r()
};
return l.onFileSelected = function(e) {
a = e, p()
}, l.onReady = function() {
e(".action-update-publication").click(s.publish)
}, l.onPublishRemoved = p, l.onNewPublishSuccess = p, l
}), define("text!html/buttonStat.html", [], function() {
return '
\n \n \n \n\n'
}), define("text!html/buttonStatSettingsBlock.html", [], function() {
return '
Adds a "Document statistics" button over the preview.
\n
\n'
}), define("extensions/buttonStat", ["jquery", "underscore", "utils", "classes/Extension", "text!html/buttonStat.html", "text!html/buttonStatSettingsBlock.html"], function(e, t, n, i, r, o) {
var a = new i("buttonStat", 'Button "Statistics"', !0, !0);
a.settingsBlock = o, a.defaultConfig = {
name1: "Characters",
value1: "\\S",
name2: "Words",
value2: "\\S+",
name3: "Paragraphs",
value3: "\\S.*"
}, a.onLoadSettings = function() {
t.each([1, 2, 3], function(e) {
n.setInputValue("#input-stat-name" + e, a.config["name" + e]), n.setInputValue("#input-stat-value" + e, a.config["value" + e])
})
}, a.onSaveSettings = function(e, i) {
t.each([1, 2, 3], function(t) {
e["name" + t] = n.getInputTextValue("#input-stat-name" + t, i), e["value" + t] = n.getInputRegExpValue("#input-stat-value" + t, i)
})
}, a.onCreatePreviewButton = function() {
return t.template(r, a.config)
};
var s, l, c, u, d;
a.onReady = function() {
s = document.getElementById("preview-contents"), l = document.querySelector(".stat-button .value"), c = document.querySelector(".stat-button-dropdown .value1"), u = document.querySelector(".stat-button-dropdown .value2"), d = document.querySelector(".stat-button-dropdown .value3")
};
var p, h, f;
return a.onInit = function() {
p = new RegExp(a.config.value1, "g"), h = new RegExp(a.config.value2, "g"), f = new RegExp(a.config.value3, "g")
}, a.onPreviewFinished = function() {
for(var e = s.cloneNode(!0), t = e.getElementsByTagName("script"), n = t.length - 1; n >= 0; n--) {
var i = t[n];
i.parentNode.removeChild(i)
}
var r = e.textContent;
l.textContent = c.textContent = (r.match(p) || []).length, u.textContent = (r.match(h) || []).length, d.textContent = (r.match(f) || []).length
}, a
}), define("text!html/buttonHtmlCode.html", [], function() {
return '
\n \n \n\n'
}), define("text!html/buttonHtmlCodeSettingsBlock.html", [], function() {
return '
Adds a "HTML code" button over the preview.
\n
'
}), define("extensions/buttonHtmlCode", ["jquery", "underscore", "utils", "classes/Extension", "text!html/buttonHtmlCode.html", "text!html/buttonHtmlCodeSettingsBlock.html"], function(e, t, n, i, r, o) {
var a = new i("buttonHtmlCode", 'Button "HTML code"', !0, !0);
a.settingsBlock = o, a.defaultConfig = {
template: "<%= documentHTML %>"
}, a.onLoadSettings = function() {
n.setInputValue("#textarea-html-code-template", a.config.template)
}, a.onSaveSettings = function(e) {
e.template = n.getInputValue("#textarea-html-code-template")
};
var s;
a.onEventMgrCreated = function(e) {
s = e
}, a.onCreatePreviewButton = function() {
return r
};
var l;
a.onFileSelected = function(e) {
l = e
};
var c, u;
return a.onPreviewFinished = function(e, t) {
c = e, u = t
}, a.onReady = function() {
var n = document.getElementById("input-html-code");
e(".action-html-code").click(function() {
setTimeout(function() {
e("#input-html-code").each(function() {
e(this).is(":hidden") || this.select()
})
}, 10)
}).parent().on("show.bs.dropdown", function() {
try {
var e = t.template(a.config.template, {
documentTitle: l.title,
documentMarkdown: l.content,
strippedDocumentMarkdown: l.content.substring(l.frontMatter ? l.frontMatter._frontMatter.length : 0),
documentHTML: u,
documentHTMLWithComments: c,
frontMatter: l.frontMatter,
publishAttributes: void 0
});
n.value = e
} catch(i) {
s.onError(i)
}
})
}, a
}), define("text!html/buttonViewer.html", [], function() {
return '
\n \n \n'
}), define("extensions/buttonViewer", ["jquery", "classes/Extension", "text!html/buttonViewer.html"], function(e, t, n) {
var i = new t("buttonViewer", 'Button "Viewer"', !0, !0);
return i.settingsBlock = '
Adds a "Viewer" button over the preview.
', i.onCreatePreviewButton = function() {
return n
}, i
}), "undefined" == typeof jQuery) throw new Error("Bootstrap requires jQuery"); + function(e) {
function t() {
var e = document.createElement("bootstrap"),
t = {
WebkitTransition: "webkitTransitionEnd",
MozTransition: "transitionend",
OTransition: "oTransitionEnd otransitionend",
transition: "transitionend"
};
for(var n in t)
if(void 0 !== e.style[n]) return {
end: t[n]
}
}
e.fn.emulateTransitionEnd = function(t) {
var n = !1,
i = this;
e(this).one(e.support.transition.end, function() {
n = !0
});
var r = function() {
n || e(i).trigger(e.support.transition.end)
};
return setTimeout(r, t), this
}, e(function() {
e.support.transition = t()
})
}(jQuery), + function(e) {
var t = '[data-dismiss="alert"]',
n = function(n) {
e(n).on("click", t, this.close)
};
n.prototype.close = function(t) {
function n() {
o.trigger("closed.bs.alert").remove()
}
var i = e(this),
r = i.attr("data-target");
r || (r = i.attr("href"), r = r && r.replace(/.*(?=#[^\s]*$)/, ""));
var o = e(r);
t && t.preventDefault(), o.length || (o = i.hasClass("alert") ? i : i.parent()), o.trigger(t = e.Event("close.bs.alert")), t.isDefaultPrevented() || (o.removeClass("in"), e.support.transition && o.hasClass("fade") ? o.one(e.support.transition.end, n).emulateTransitionEnd(150) : n())
};
var i = e.fn.alert;
e.fn.alert = function(t) {
return this.each(function() {
var i = e(this),
r = i.data("bs.alert");
r || i.data("bs.alert", r = new n(this)), "string" == typeof t && r[t].call(i)
})
}, e.fn.alert.Constructor = n, e.fn.alert.noConflict = function() {
return e.fn.alert = i, this
}, e(document).on("click.bs.alert.data-api", t, n.prototype.close)
}(jQuery), + function(e) {
var t = function(n, i) {
this.$element = e(n), this.options = e.extend({}, t.DEFAULTS, i)
};
t.DEFAULTS = {
loadingText: "loading..."
}, t.prototype.setState = function(e) {
var t = "disabled",
n = this.$element,
i = n.is("input") ? "val" : "html",
r = n.data();
e += "Text", r.resetText || n.data("resetText", n[i]()), n[i](r[e] || this.options[e]), setTimeout(function() {
"loadingText" == e ? n.addClass(t).attr(t, t) : n.removeClass(t).removeAttr(t)
}, 0)
}, t.prototype.toggle = function() {
var e = this.$element.closest('[data-toggle="buttons"]'),
t = !0;
if(e.length) {
var n = this.$element.find("input");
"radio" === n.prop("type") && (n.prop("checked") && this.$element.hasClass("active") ? t = !1 : e.find(".active").removeClass("active")), t && n.prop("checked", !this.$element.hasClass("active")).trigger("change")
}
t && this.$element.toggleClass("active")
};
var n = e.fn.button;
e.fn.button = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.button"),
o = "object" == typeof n && n;
r || i.data("bs.button", r = new t(this, o)), "toggle" == n ? r.toggle() : n && r.setState(n)
})
}, e.fn.button.Constructor = t, e.fn.button.noConflict = function() {
return e.fn.button = n, this
}, e(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(t) {
var n = e(t.target);
n.hasClass("btn") || (n = n.closest(".btn")), n.button("toggle"), t.preventDefault()
})
}(jQuery), + function(e) {
var t = function(t, n) {
this.$element = e(t), this.$indicators = this.$element.find(".carousel-indicators"), this.options = n, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter", e.proxy(this.pause, this)).on("mouseleave", e.proxy(this.cycle, this))
};
t.DEFAULTS = {
interval: 5e3,
pause: "hover",
wrap: !0
}, t.prototype.cycle = function(t) {
return t || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(e.proxy(this.next, this), this.options.interval)), this
}, t.prototype.getActiveIndex = function() {
return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active)
}, t.prototype.to = function(t) {
var n = this,
i = this.getActiveIndex();
return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {
n.to(t)
}) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", e(this.$items[t]))
}, t.prototype.pause = function(t) {
return t || (this.paused = !0), this.$element.find(".next, .prev").length && e.support.transition.end && (this.$element.trigger(e.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
}, t.prototype.next = function() {
return this.sliding ? void 0 : this.slide("next")
}, t.prototype.prev = function() {
return this.sliding ? void 0 : this.slide("prev")
}, t.prototype.slide = function(t, n) {
var i = this.$element.find(".item.active"),
r = n || i[t](),
o = this.interval,
a = "next" == t ? "left" : "right",
s = "next" == t ? "first" : "last",
l = this;
if(!r.length) {
if(!this.options.wrap) return;
r = this.$element.find(".item")[s]()
}
this.sliding = !0, o && this.pause();
var c = e.Event("slide.bs.carousel", {
relatedTarget: r[0],
direction: a
});
if(!r.hasClass("active")) {
if(this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), this.$element.one("slid.bs.carousel", function() {
var t = e(l.$indicators.children()[l.getActiveIndex()]);
t && t.addClass("active")
})), e.support.transition && this.$element.hasClass("slide")) {
if(this.$element.trigger(c), c.isDefaultPrevented()) return;
r.addClass(t), r[0].offsetWidth, i.addClass(a), r.addClass(a), i.one(e.support.transition.end, function() {
r.removeClass([t, a].join(" ")).addClass("active"), i.removeClass(["active", a].join(" ")), l.sliding = !1, setTimeout(function() {
l.$element.trigger("slid.bs.carousel")
}, 0)
}).emulateTransitionEnd(600)
} else {
if(this.$element.trigger(c), c.isDefaultPrevented()) return;
i.removeClass("active"), r.addClass("active"), this.sliding = !1, this.$element.trigger("slid.bs.carousel")
}
return o && this.cycle(), this
}
};
var n = e.fn.carousel;
e.fn.carousel = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.carousel"),
o = e.extend({}, t.DEFAULTS, i.data(), "object" == typeof n && n),
a = "string" == typeof n ? n : o.slide;
r || i.data("bs.carousel", r = new t(this, o)), "number" == typeof n ? r.to(n) : a ? r[a]() : o.interval && r.pause().cycle()
})
}, e.fn.carousel.Constructor = t, e.fn.carousel.noConflict = function() {
return e.fn.carousel = n, this
}, e(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(t) {
var n, i = e(this),
r = e(i.attr("data-target") || (n = i.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, "")),
o = e.extend({}, r.data(), i.data()),
a = i.attr("data-slide-to");
a && (o.interval = !1), r.carousel(o), (a = i.attr("data-slide-to")) && r.data("bs.carousel").to(a), t.preventDefault()
}), e(window).on("load", function() {
e('[data-ride="carousel"]').each(function() {
var t = e(this);
t.carousel(t.data())
})
})
}(jQuery), + function(e) {
var t = function(n, i) {
this.$element = e(n), this.options = e.extend({}, t.DEFAULTS, i), this.transitioning = null, this.options.parent && (this.$parent = e(this.options.parent)), this.options.toggle && this.toggle()
};
t.DEFAULTS = {
toggle: !0
}, t.prototype.dimension = function() {
var e = this.$element.hasClass("width");
return e ? "width" : "height"
}, t.prototype.show = function() {
if(!this.transitioning && !this.$element.hasClass("in")) {
var t = e.Event("show.bs.collapse");
if(this.$element.trigger(t), !t.isDefaultPrevented()) {
var n = this.$parent && this.$parent.find("> .panel > .in");
if(n && n.length) {
var i = n.data("bs.collapse");
if(i && i.transitioning) return;
n.collapse("hide"), i || n.data("bs.collapse", null)
}
var r = this.dimension();
this.$element.removeClass("collapse").addClass("collapsing")[r](0), this.transitioning = 1;
var o = function() {
this.$element.removeClass("collapsing").addClass("in")[r]("auto"), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
};
if(!e.support.transition) return o.call(this);
var a = e.camelCase(["scroll", r].join("-"));
this.$element.one(e.support.transition.end, e.proxy(o, this)).emulateTransitionEnd(350)[r](this.$element[0][a])
}
}
}, t.prototype.hide = function() {
if(!this.transitioning && this.$element.hasClass("in")) {
var t = e.Event("hide.bs.collapse");
if(this.$element.trigger(t), !t.isDefaultPrevented()) {
var n = this.dimension();
this.$element[n](this.$element[n]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1;
var i = function() {
this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")
};
return e.support.transition ? void this.$element[n](0).one(e.support.transition.end, e.proxy(i, this)).emulateTransitionEnd(350) : i.call(this)
}
}
}, t.prototype.toggle = function() {
this[this.$element.hasClass("in") ? "hide" : "show"]()
};
var n = e.fn.collapse;
e.fn.collapse = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.collapse"),
o = e.extend({}, t.DEFAULTS, i.data(), "object" == typeof n && n);
r || i.data("bs.collapse", r = new t(this, o)), "string" == typeof n && r[n]()
})
}, e.fn.collapse.Constructor = t, e.fn.collapse.noConflict = function() {
return e.fn.collapse = n, this
}, e(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(t) {
var n, i = e(this),
r = i.attr("data-target") || t.preventDefault() || (n = i.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, ""),
o = e(r),
a = o.data("bs.collapse"),
s = a ? "toggle" : i.data(),
l = i.attr("data-parent"),
c = l && e(l);
a && a.transitioning || (c && c.find('[data-toggle=collapse][data-parent="' + l + '"]').not(i).addClass("collapsed"), i[o.hasClass("in") ? "addClass" : "removeClass"]("collapsed")), o.collapse(s)
})
}(jQuery), + function(e) {
function t() {
e(i).remove(), e(r).each(function(t) {
var i = n(e(this));
i.hasClass("open") && (i.trigger(t = e.Event("hide.bs.dropdown")), t.isDefaultPrevented() || i.removeClass("open").trigger("hidden.bs.dropdown"))
})
}
function n(t) {
var n = t.attr("data-target");
n || (n = t.attr("href"), n = n && /#/.test(n) && n.replace(/.*(?=#[^\s]*$)/, ""));
var i = n && e(n);
return i && i.length ? i : t.parent()
}
var i = ".dropdown-backdrop",
r = "[data-toggle=dropdown]",
o = function(t) {
e(t).on("click.bs.dropdown", this.toggle)
};
o.prototype.toggle = function(i) {
var r = e(this);
if(!r.is(".disabled, :disabled")) {
var o = n(r),
a = o.hasClass("open");
if(t(), !a) {
if("ontouchstart" in document.documentElement && !o.closest(".navbar-nav").length && e('
').insertAfter(e(this)).on("click", t), o.trigger(i = e.Event("show.bs.dropdown")), i.isDefaultPrevented()) return;
o.toggleClass("open").trigger("shown.bs.dropdown"), r.focus()
}
return !1
}
}, o.prototype.keydown = function(t) {
if(/(38|40|27)/.test(t.keyCode)) {
var i = e(this);
if(t.preventDefault(), t.stopPropagation(), !i.is(".disabled, :disabled")) {
var o = n(i),
a = o.hasClass("open");
if(!a || a && 27 == t.keyCode) return 27 == t.which && o.find(r).focus(), i.click();
var s = e("[role=menu] li:not(.divider):visible a", o);
if(s.length) {
var l = s.index(s.filter(":focus"));
38 == t.keyCode && l > 0 && l--, 40 == t.keyCode && l < s.length - 1 && l++, ~l || (l = 0), s.eq(l).focus()
}
}
}
};
var a = e.fn.dropdown;
e.fn.dropdown = function(t) {
return this.each(function() {
var n = e(this),
i = n.data("bs.dropdown");
i || n.data("bs.dropdown", i = new o(this)), "string" == typeof t && i[t].call(n)
})
}, e.fn.dropdown.Constructor = o, e.fn.dropdown.noConflict = function() {
return e.fn.dropdown = a, this
}, e(document).on("click.bs.dropdown.data-api", t).on("click.bs.dropdown.data-api", ".dropdown form", function(e) {
e.stopPropagation()
}).on("click.bs.dropdown.data-api", r, o.prototype.toggle).on("keydown.bs.dropdown.data-api", r + ", [role=menu]", o.prototype.keydown)
}(jQuery), + function(e) {
var t = function(t, n) {
this.options = n, this.$element = e(t), this.$backdrop = this.isShown = null, this.options.remote && this.$element.load(this.options.remote)
};
t.DEFAULTS = {
backdrop: !0,
keyboard: !0,
show: !0
}, t.prototype.toggle = function(e) {
return this[this.isShown ? "hide" : "show"](e)
}, t.prototype.show = function(t) {
var n = this,
i = e.Event("show.bs.modal", {
relatedTarget: t
});
this.$element.trigger(i), this.isShown || i.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.$element.on("click.dismiss.modal", '[data-dismiss="modal"]', e.proxy(this.hide, this)), this.backdrop(function() {
var i = e.support.transition && n.$element.hasClass("fade");
n.$element.parent().length || n.$element.appendTo(document.body), n.$element.show(), i && n.$element[0].offsetWidth, n.$element.addClass("in").attr("aria-hidden", !1), n.enforceFocus();
var r = e.Event("shown.bs.modal", {
relatedTarget: t
});
i ? n.$element.find(".modal-dialog").one(e.support.transition.end, function() {
n.$element.focus().trigger(r)
}).emulateTransitionEnd(300) : n.$element.focus().trigger(r)
}))
}, t.prototype.hide = function(t) {
t && t.preventDefault(), t = e.Event("hide.bs.modal"), this.$element.trigger(t), this.isShown && !t.isDefaultPrevented() && (this.isShown = !1, this.escape(), e(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0).off("click.dismiss.modal"), e.support.transition && this.$element.hasClass("fade") ? this.$element.one(e.support.transition.end, e.proxy(this.hideModal, this)).emulateTransitionEnd(300) : this.hideModal())
}, t.prototype.enforceFocus = function() {
e(document).off("focusin.bs.modal").on("focusin.bs.modal", e.proxy(function(e) {
this.$element[0] === e.target || this.$element.has(e.target).length || this.$element.focus()
}, this))
}, t.prototype.escape = function() {
this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.bs.modal", e.proxy(function(e) {
27 == e.which && this.hide()
}, this)) : this.isShown || this.$element.off("keyup.dismiss.bs.modal")
}, t.prototype.hideModal = function() {
var e = this;
this.$element.hide(), this.backdrop(function() {
e.removeBackdrop(), e.$element.trigger("hidden.bs.modal")
})
}, t.prototype.removeBackdrop = function() {
this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
}, t.prototype.backdrop = function(t) {
var n = this.$element.hasClass("fade") ? "fade" : "";
if(this.isShown && this.options.backdrop) {
var i = e.support.transition && n;
if(this.$backdrop = e('
').appendTo(document.body), this.$element.on("click.dismiss.modal", e.proxy(function(e) {
e.target === e.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this))
}, this)), i && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !t) return;
i ? this.$backdrop.one(e.support.transition.end, t).emulateTransitionEnd(150) : t()
} else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), e.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(e.support.transition.end, t).emulateTransitionEnd(150) : t()) : t && t()
};
var n = e.fn.modal;
e.fn.modal = function(n, i) {
return this.each(function() {
var r = e(this),
o = r.data("bs.modal"),
a = e.extend({}, t.DEFAULTS, r.data(), "object" == typeof n && n);
o || r.data("bs.modal", o = new t(this, a)), "string" == typeof n ? o[n](i) : a.show && o.show(i)
})
}, e.fn.modal.Constructor = t, e.fn.modal.noConflict = function() {
return e.fn.modal = n, this
}, e(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(t) {
var n = e(this),
i = n.attr("href"),
r = e(n.attr("data-target") || i && i.replace(/.*(?=#[^\s]+$)/, "")),
o = r.data("modal") ? "toggle" : e.extend({
remote: !/#/.test(i) && i
}, r.data(), n.data());
t.preventDefault(), r.modal(o, this).one("hide", function() {
n.is(":visible") && n.focus()
})
}), e(document).on("show.bs.modal", ".modal", function() {
e(document.body).addClass("modal-open")
}).on("hidden.bs.modal", ".modal", function() {
e(document.body).removeClass("modal-open")
})
}(jQuery), + function(e) {
var t = function(e, t) {
this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", e, t)
};
t.DEFAULTS = {
animation: !0,
placement: "top",
selector: !1,
template: '
',
trigger: "hover focus",
title: "",
delay: 0,
html: !1,
container: !1
}, t.prototype.init = function(t, n, i) {
this.enabled = !0, this.type = t, this.$element = e(n), this.options = this.getOptions(i);
for(var r = this.options.trigger.split(" "), o = r.length; o--;) {
var a = r[o];
if("click" == a) this.$element.on("click." + this.type, this.options.selector, e.proxy(this.toggle, this));
else if("manual" != a) {
var s = "hover" == a ? "mouseenter" : "focus",
l = "hover" == a ? "mouseleave" : "blur";
this.$element.on(s + "." + this.type, this.options.selector, e.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, e.proxy(this.leave, this))
}
}
this.options.selector ? this._options = e.extend({}, this.options, {
trigger: "manual",
selector: ""
}) : this.fixTitle()
}, t.prototype.getDefaults = function() {
return t.DEFAULTS
}, t.prototype.getOptions = function(t) {
return t = e.extend({}, this.getDefaults(), this.$element.data(), t), t.delay && "number" == typeof t.delay && (t.delay = {
show: t.delay,
hide: t.delay
}), t
}, t.prototype.getDelegateOptions = function() {
var t = {}, n = this.getDefaults();
return this._options && e.each(this._options, function(e, i) {
n[e] != i && (t[e] = i)
}), t
}, t.prototype.enter = function(t) {
var n = t instanceof this.constructor ? t : e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
return clearTimeout(n.timeout), n.hoverState = "in", n.options.delay && n.options.delay.show ? void(n.timeout = setTimeout(function() {
"in" == n.hoverState && n.show()
}, n.options.delay.show)) : n.show()
}, t.prototype.leave = function(t) {
var n = t instanceof this.constructor ? t : e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
return clearTimeout(n.timeout), n.hoverState = "out", n.options.delay && n.options.delay.hide ? void(n.timeout = setTimeout(function() {
"out" == n.hoverState && n.hide()
}, n.options.delay.hide)) : n.hide()
}, t.prototype.show = function() {
var t = e.Event("show.bs." + this.type);
if(this.hasContent() && this.enabled) {
if(this.$element.trigger(t), t.isDefaultPrevented()) return;
var n = this.tip();
this.setContent(), this.options.animation && n.addClass("fade");
var i = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement,
r = /\s?auto?\s?/i,
o = r.test(i);
o && (i = i.replace(r, "") || "top"), n.detach().css({
top: 0,
left: 0,
display: "block"
}).addClass(i), this.options.container ? n.appendTo(this.options.container) : n.insertAfter(this.$element);
var a = this.getPosition(),
s = n[0].offsetWidth,
l = n[0].offsetHeight;
if(o) {
var c = this.$element.parent(),
u = i,
d = document.documentElement.scrollTop || document.body.scrollTop,
p = "body" == this.options.container ? window.innerWidth : c.outerWidth(),
h = "body" == this.options.container ? window.innerHeight : c.outerHeight(),
f = "body" == this.options.container ? 0 : c.offset().left;
i = "bottom" == i && a.top + a.height + l - d > h ? "top" : "top" == i && a.top - d - l < 0 ? "bottom" : "right" == i && a.right + s > p ? "left" : "left" == i && a.left - s < f ? "right" : i, n.removeClass(u).addClass(i)
}
var m = this.getCalculatedOffset(i, a, s, l);
this.applyPlacement(m, i), this.$element.trigger("shown.bs." + this.type)
}
}, t.prototype.applyPlacement = function(e, t) {
var n, i = this.tip(),
r = i[0].offsetWidth,
o = i[0].offsetHeight,
a = parseInt(i.css("margin-top"), 10),
s = parseInt(i.css("margin-left"), 10);
isNaN(a) && (a = 0), isNaN(s) && (s = 0), e.top = e.top + a, e.left = e.left + s, i.offset(e).addClass("in");
var l = i[0].offsetWidth,
c = i[0].offsetHeight;
if("top" == t && c != o && (n = !0, e.top = e.top + o - c), /bottom|top/.test(t)) {
var u = 0;
e.left < 0 && (u = -2 * e.left, e.left = 0, i.offset(e), l = i[0].offsetWidth, c = i[0].offsetHeight), this.replaceArrow(u - r + l, l, "left")
} else this.replaceArrow(c - o, c, "top");
n && i.offset(e)
}, t.prototype.replaceArrow = function(e, t, n) {
this.arrow().css(n, e ? 50 * (1 - e / t) + "%" : "")
}, t.prototype.setContent = function() {
var e = this.tip(),
t = this.getTitle();
e.find(".tooltip-inner")[this.options.html ? "html" : "text"](t), e.removeClass("fade in top bottom left right")
}, t.prototype.hide = function() {
function t() {
"in" != n.hoverState && i.detach()
}
var n = this,
i = this.tip(),
r = e.Event("hide.bs." + this.type);
return this.$element.trigger(r), r.isDefaultPrevented() ? void 0 : (i.removeClass("in"), e.support.transition && this.$tip.hasClass("fade") ? i.one(e.support.transition.end, t).emulateTransitionEnd(150) : t(), this.$element.trigger("hidden.bs." + this.type), this)
}, t.prototype.fixTitle = function() {
var e = this.$element;
(e.attr("title") || "string" != typeof e.attr("data-original-title")) && e.attr("data-original-title", e.attr("title") || "").attr("title", "")
}, t.prototype.hasContent = function() {
return this.getTitle()
}, t.prototype.getPosition = function() {
var t = this.$element[0];
return e.extend({}, "function" == typeof t.getBoundingClientRect ? t.getBoundingClientRect() : {
width: t.offsetWidth,
height: t.offsetHeight
}, this.$element.offset())
}, t.prototype.getCalculatedOffset = function(e, t, n, i) {
return "bottom" == e ? {
top: t.top + t.height,
left: t.left + t.width / 2 - n / 2
} : "top" == e ? {
top: t.top - i,
left: t.left + t.width / 2 - n / 2
} : "left" == e ? {
top: t.top + t.height / 2 - i / 2,
left: t.left - n
} : {
top: t.top + t.height / 2 - i / 2,
left: t.left + t.width
}
}, t.prototype.getTitle = function() {
var e, t = this.$element,
n = this.options;
return e = t.attr("data-original-title") || ("function" == typeof n.title ? n.title.call(t[0]) : n.title)
}, t.prototype.tip = function() {
return this.$tip = this.$tip || e(this.options.template)
}, t.prototype.arrow = function() {
return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
}, t.prototype.validate = function() {
this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
}, t.prototype.enable = function() {
this.enabled = !0
}, t.prototype.disable = function() {
this.enabled = !1
}, t.prototype.toggleEnabled = function() {
this.enabled = !this.enabled
}, t.prototype.toggle = function(t) {
var n = t ? e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type) : this;
n.tip().hasClass("in") ? n.leave(n) : n.enter(n)
}, t.prototype.destroy = function() {
this.hide().$element.off("." + this.type).removeData("bs." + this.type)
};
var n = e.fn.tooltip;
e.fn.tooltip = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.tooltip"),
o = "object" == typeof n && n;
r || i.data("bs.tooltip", r = new t(this, o)), "string" == typeof n && r[n]()
})
}, e.fn.tooltip.Constructor = t, e.fn.tooltip.noConflict = function() {
return e.fn.tooltip = n, this
}
}(jQuery), + function(e) {
var t = function(e, t) {
this.init("popover", e, t)
};
if(!e.fn.tooltip) throw new Error("Popover requires tooltip.js");
t.DEFAULTS = e.extend({}, e.fn.tooltip.Constructor.DEFAULTS, {
placement: "right",
trigger: "click",
content: "",
template: '
'
}), t.prototype = e.extend({}, e.fn.tooltip.Constructor.prototype), t.prototype.constructor = t, t.prototype.getDefaults = function() {
return t.DEFAULTS
}, t.prototype.setContent = function() {
var e = this.tip(),
t = this.getTitle(),
n = this.getContent();
e.find(".popover-title")[this.options.html ? "html" : "text"](t), e.find(".popover-content")[this.options.html ? "html" : "text"](n), e.removeClass("fade top bottom left right in"), e.find(".popover-title").html() || e.find(".popover-title").hide()
}, t.prototype.hasContent = function() {
return this.getTitle() || this.getContent()
}, t.prototype.getContent = function() {
var e = this.$element,
t = this.options;
return e.attr("data-content") || ("function" == typeof t.content ? t.content.call(e[0]) : t.content)
}, t.prototype.arrow = function() {
return this.$arrow = this.$arrow || this.tip().find(".arrow")
}, t.prototype.tip = function() {
return this.$tip || (this.$tip = e(this.options.template)), this.$tip
};
var n = e.fn.popover;
e.fn.popover = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.popover"),
o = "object" == typeof n && n;
r || i.data("bs.popover", r = new t(this, o)), "string" == typeof n && r[n]()
})
}, e.fn.popover.Constructor = t, e.fn.popover.noConflict = function() {
return e.fn.popover = n, this
}
}(jQuery), + function(e) {
function t(n, i) {
var r, o = e.proxy(this.process, this);
this.$element = e(e(n).is("body") ? window : n), this.$body = e("body"), this.$scrollElement = this.$element.on("scroll.bs.scroll-spy.data-api", o), this.options = e.extend({}, t.DEFAULTS, i), this.selector = (this.options.target || (r = e(n).attr("href")) && r.replace(/.*(?=#[^\s]+$)/, "") || "") + " .nav li > a", this.offsets = e([]), this.targets = e([]), this.activeTarget = null, this.refresh(), this.process()
}
t.DEFAULTS = {
offset: 10
}, t.prototype.refresh = function() {
var t = this.$element[0] == window ? "offset" : "position";
this.offsets = e([]), this.targets = e([]); {
var n = this;
this.$body.find(this.selector).map(function() {
var i = e(this),
r = i.data("target") || i.attr("href"),
o = /^#\w/.test(r) && e(r);
return o && o.length && [[o[t]().top + (!e.isWindow(n.$scrollElement.get(0)) && n.$scrollElement.scrollTop()), r]] || null
}).sort(function(e, t) {
return e[0] - t[0]
}).each(function() {
n.offsets.push(this[0]), n.targets.push(this[1])
})
}
}, t.prototype.process = function() {
var e, t = this.$scrollElement.scrollTop() + this.options.offset,
n = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight,
i = n - this.$scrollElement.height(),
r = this.offsets,
o = this.targets,
a = this.activeTarget;
if(t >= i) return a != (e = o.last()[0]) && this.activate(e);
for(e = r.length; e--;) a != o[e] && t >= r[e] && (!r[e + 1] || t <= r[e + 1]) && this.activate(o[e])
}, t.prototype.activate = function(t) {
this.activeTarget = t, e(this.selector).parents(".active").removeClass("active");
var n = this.selector + '[data-target="' + t + '"],' + this.selector + '[href="' + t + '"]',
i = e(n).parents("li").addClass("active");
i.parent(".dropdown-menu").length && (i = i.closest("li.dropdown").addClass("active")), i.trigger("activate.bs.scrollspy")
};
var n = e.fn.scrollspy;
e.fn.scrollspy = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.scrollspy"),
o = "object" == typeof n && n;
r || i.data("bs.scrollspy", r = new t(this, o)), "string" == typeof n && r[n]()
})
}, e.fn.scrollspy.Constructor = t, e.fn.scrollspy.noConflict = function() {
return e.fn.scrollspy = n, this
}, e(window).on("load", function() {
e('[data-spy="scroll"]').each(function() {
var t = e(this);
t.scrollspy(t.data())
})
})
}(jQuery), + function(e) {
var t = function(t) {
this.element = e(t)
};
t.prototype.show = function() {
var t = this.element,
n = t.closest("ul:not(.dropdown-menu)"),
i = t.data("target");
if(i || (i = t.attr("href"), i = i && i.replace(/.*(?=#[^\s]*$)/, "")), !t.parent("li").hasClass("active")) {
var r = n.find(".active:last a")[0],
o = e.Event("show.bs.tab", {
relatedTarget: r
});
if(t.trigger(o), !o.isDefaultPrevented()) {
var a = e(i);
this.activate(t.parent("li"), n), this.activate(a, a.parent(), function() {
t.trigger({
type: "shown.bs.tab",
relatedTarget: r
})
})
}
}
}, t.prototype.activate = function(t, n, i) {
function r() {
o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), t.addClass("active"), a ? (t[0].offsetWidth, t.addClass("in")) : t.removeClass("fade"), t.parent(".dropdown-menu") && t.closest("li.dropdown").addClass("active"), i && i()
}
var o = n.find("> .active"),
a = i && e.support.transition && o.hasClass("fade");
a ? o.one(e.support.transition.end, r).emulateTransitionEnd(150) : r(), o.removeClass("in")
};
var n = e.fn.tab;
e.fn.tab = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.tab");
r || i.data("bs.tab", r = new t(this)), "string" == typeof n && r[n]()
})
}, e.fn.tab.Constructor = t, e.fn.tab.noConflict = function() {
return e.fn.tab = n, this
}, e(document).on("click.bs.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function(t) {
t.preventDefault(), e(this).tab("show")
})
}(jQuery), + function(e) {
var t = function(n, i) {
this.options = e.extend({}, t.DEFAULTS, i), this.$window = e(window).on("scroll.bs.affix.data-api", e.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", e.proxy(this.checkPositionWithEventLoop, this)), this.$element = e(n), this.affixed = this.unpin = null, this.checkPosition()
};
t.RESET = "affix affix-top affix-bottom", t.DEFAULTS = {
offset: 0
}, t.prototype.checkPositionWithEventLoop = function() {
setTimeout(e.proxy(this.checkPosition, this), 1)
}, t.prototype.checkPosition = function() {
if(this.$element.is(":visible")) {
var n = e(document).height(),
i = this.$window.scrollTop(),
r = this.$element.offset(),
o = this.options.offset,
a = o.top,
s = o.bottom;
"object" != typeof o && (s = a = o), "function" == typeof a && (a = o.top()), "function" == typeof s && (s = o.bottom());
var l = null != this.unpin && i + this.unpin <= r.top ? !1 : null != s && r.top + this.$element.height() >= n - s ? "bottom" : null != a && a >= i ? "top" : !1;
this.affixed !== l && (this.unpin && this.$element.css("top", ""), this.affixed = l, this.unpin = "bottom" == l ? r.top - i : null, this.$element.removeClass(t.RESET).addClass("affix" + (l ? "-" + l : "")), "bottom" == l && this.$element.offset({
top: document.body.offsetHeight - s - this.$element.height()
}))
}
};
var n = e.fn.affix;
e.fn.affix = function(n) {
return this.each(function() {
var i = e(this),
r = i.data("bs.affix"),
o = "object" == typeof n && n;
r || i.data("bs.affix", r = new t(this, o)), "string" == typeof n && r[n]()
})
}, e.fn.affix.Constructor = t, e.fn.affix.noConflict = function() {
return e.fn.affix = n, this
}, e(window).on("load", function() {
e('[data-spy="affix"]').each(function() {
var t = e(this),
n = t.data();
n.offset = n.offset || {}, n.offsetBottom && (n.offset.bottom = n.offsetBottom), n.offsetTop && (n.offset.top = n.offsetTop), t.affix(n)
})
})
}(jQuery), define("bootstrap", function() {}),
function(e, t) {
var n, i;
return i = t.document, n = function() {
function n(n) {
this._options = e.extend({
name: "tour",
container: "body",
keyboard: !0,
storage: t.localStorage,
debug: !1,
backdrop: !1,
redirect: !0,
orphan: !1,
duration: !1,
basePath: "",
template: "
« Prev Next » Pause
End tour ",
afterSetState: function() {},
afterGetState: function() {},
afterRemoveState: function() {},
onStart: function() {},
onEnd: function() {},
onShow: function() {},
onShown: function() {},
onHide: function() {},
onHidden: function() {},
onNext: function() {},
onPrev: function() {},
onPause: function() {},
onResume: function() {}
}, n), this._force = !1, this._inited = !1, this._steps = [], this.backdrop = {
overlay: null,
$element: null,
$background: null,
backgroundShown: !1,
overlayElementShown: !1
}
}
return n.prototype.setState = function(e, t) {
var n, i;
if(this._options.storage) {
i = "" + this._options.name + "_" + e;
try {
this._options.storage.setItem(i, t)
} catch(r) {
n = r, n.code === DOMException.QUOTA_EXCEEDED_ERR && this.debug("LocalStorage quota exceeded. setState failed.")
}
return this._options.afterSetState(i, t)
}
return null == this._state && (this._state = {}), this._state[e] = t
}, n.prototype.removeState = function(e) {
var t;
return this._options.storage ? (t = "" + this._options.name + "_" + e, this._options.storage.removeItem(t), this._options.afterRemoveState(t)) : null != this._state ? delete this._state[e] : void 0
}, n.prototype.getState = function(e) {
var t, n;
return this._options.storage ? (t = "" + this._options.name + "_" + e, n = this._options.storage.getItem(t)) : null != this._state && (n = this._state[e]), (void 0 === n || "null" === n) && (n = null), this._options.afterGetState(e, n), n
}, n.prototype.addSteps = function(e) {
var t, n, i, r;
for(r = [], n = 0, i = e.length; i > n; n++) t = e[n], r.push(this.addStep(t));
return r
}, n.prototype.addStep = function(e) {
return this._steps.push(e)
}, n.prototype.getStep = function(t) {
return null != this._steps[t] ? e.extend({
id: "step-" + t,
path: "",
placement: "right",
title: "",
content: "
",
next: t === this._steps.length - 1 ? -1 : t + 1,
prev: t - 1,
animation: !0,
container: this._options.container,
backdrop: this._options.backdrop,
redirect: this._options.redirect,
orphan: this._options.orphan,
duration: this._options.duration,
template: this._options.template,
onShow: this._options.onShow,
onShown: this._options.onShown,
onHide: this._options.onHide,
onHidden: this._options.onHidden,
onNext: this._options.onNext,
onPrev: this._options.onPrev,
onPause: this._options.onPause,
onResume: this._options.onResume
}, this._steps[t]) : void 0
}, n.prototype.init = function(e) {
var t = this;
return this._force = e, this.ended() ? this._debug("Tour ended, init prevented.") : (this.setCurrentStep(), this._setupMouseNavigation(), this._setupKeyboardNavigation(), this._onResize(function() {
return t.showStep(t._current)
}), null !== this._current && this.showStep(this._current), this._inited = !0, this)
}, n.prototype.start = function(e) {
var t;
return null == e && (e = !1), this._inited || this.init(e), null === this._current ? (t = this._makePromise(null != this._options.onStart ? this._options.onStart(this) : void 0), this._callOnPromiseDone(t, this.showStep, 0)) : void 0
}, n.prototype.next = function() {
var e;
return this.ended() ? this._debug("Tour ended, next prevented.") : (e = this.hideStep(this._current), this._callOnPromiseDone(e, this._showNextStep))
}, n.prototype.prev = function() {
var e;
return this.ended() ? this._debug("Tour ended, prev prevented.") : (e = this.hideStep(this._current), this._callOnPromiseDone(e, this._showPrevStep))
}, n.prototype.goTo = function(e) {
var t;
return this.ended() ? this._debug("Tour ended, goTo prevented.") : (t = this.hideStep(this._current), this._callOnPromiseDone(t, this.showStep, e))
}, n.prototype.end = function() {
var n, r, o = this;
return n = function() {
return e(i).off("click.tour-" + o._options.name), e(i).off("keyup.tour-" + o._options.name), e(t).off("resize.tour-" + o._options.name), o.setState("end", "yes"), o._inited = !1, o._force = !1, o._clearTimer(), null != o._options.onEnd ? o._options.onEnd(o) : void 0
}, r = this.hideStep(this._current), this._callOnPromiseDone(r, n)
}, n.prototype.ended = function() {
return !this.force && !! this.getState("end")
}, n.prototype.restart = function() {
return this.removeState("current_step"), this.removeState("end"), this.setCurrentStep(0), this.start()
}, n.prototype.pause = function() {
var e;
return e = this.getStep(this._current), e && e.duration ? (this._paused = !0, this._duration -= (new Date).getTime() - this._start, t.clearTimeout(this._timer), this._debug("Paused/Stopped step " + (this._current + 1) + " timer (" + this._duration + " remaining)."), null != e.onPause ? e.onPause(this, this._duration) : void 0) : void 0
}, n.prototype.resume = function() {
var e, n = this;
return e = this.getStep(this._current), e && e.duration ? (this._paused = !1, this._start = (new Date).getTime(), this._duration = this._duration || e.duration, this._timer = t.setTimeout(function() {
return n._isLast() ? n.next() : n.end()
}, this._duration), this._debug("Started step " + (this._current + 1) + " timer with duration " + this._duration), null != e.onResume && this._duration !== e.duration ? e.onResume(this, this._duration) : void 0) : void 0
}, n.prototype.hideStep = function(t) {
var n, i, r, o = this;
return(r = this.getStep(t)) ? (this._clearTimer(), i = this._makePromise(null != r.onHide ? r.onHide(this, t) : void 0), n = function() {
var t;
return t = e(r.element), t.data("bs.popover") || t.data("popover") || (t = e("body")), t.popover("destroy"), r.reflex && t.css("cursor", "").off("click.tour-" + o._options.name), r.backdrop && o._hideBackdrop(), null != r.onHidden ? r.onHidden(o) : void 0
}, this._callOnPromiseDone(i, n), i) : void 0
}, n.prototype.showStep = function(t) {
var n, r, o, a, s = this;
return(a = this.getStep(t)) ? (o = t < this._current, n = this._makePromise(null != a.onShow ? a.onShow(this, t) : void 0), r = function() {
var n, r;
if(s.setCurrentStep(t), r = e.isFunction(a.path) ? a.path.call() : s._options.basePath + a.path, n = [i.location.pathname, i.location.hash].join(""), s._isRedirect(r, n)) return void s._redirect(a, r);
if(s._isOrphan(a)) {
if(!a.orphan) return s._debug("Skip the orphan step " + (s._current + 1) + ". Orphan option is false and the element doesn't exist or is hidden."), void(o ? s._showPrevStep() : s._showNextStep());
s._debug("Show the orphan step " + (s._current + 1) + ". Orphans option is true.")
}
return a.backdrop && s._showBackdrop(s._isOrphan(a) ? void 0 : a.element), s._scrollIntoView(a.element, function() {
return null != a.element && a.backdrop && s._showOverlayElement(a.element), s._showPopover(a, t), null != a.onShown && a.onShown(s), s._debug("Step " + (s._current + 1) + " of " + s._steps.length)
}), a.duration ? s.resume() : void 0
}, this._callOnPromiseDone(n, r), n) : void 0
}, n.prototype.setCurrentStep = function(e) {
return null != e ? (this._current = e, this.setState("current_step", e)) : (this._current = this.getState("current_step"), this._current = null === this._current ? null : parseInt(this._current, 10)), this
}, n.prototype._showNextStep = function() {
var e, t, n, i = this;
return n = this.getStep(this._current), t = function() {
return i.showStep(n.next)
}, e = this._makePromise(null != n.onNext ? n.onNext(this) : void 0), this._callOnPromiseDone(e, t)
}, n.prototype._showPrevStep = function() {
var e, t, n, i = this;
return n = this.getStep(this._current), t = function() {
return i.showStep(n.prev)
}, e = this._makePromise(null != n.onPrev ? n.onPrev(this) : void 0), this._callOnPromiseDone(e, t)
}, n.prototype._debug = function(e) {
return this._options.debug ? t.console.log("Bootstrap Tour '" + this._options.name + "' | " + e) : void 0
}, n.prototype._isRedirect = function(e, t) {
return null != e && "" !== e && e.replace(/\?.*$/, "").replace(/\/?$/, "") !== t.replace(/\/?$/, "")
}, n.prototype._redirect = function(t, n) {
return e.isFunction(t.redirect) ? t.redirect.call(this, n) : t.redirect === !0 ? (this._debug("Redirect to " + n), i.location.href = n) : void 0
}, n.prototype._isOrphan = function(t) {
return null == t.element || !e(t.element).length || e(t.element).is(":hidden") && "http://www.w3.org/2000/svg" !== e(t.element)[0].namespaceURI
}, n.prototype._isLast = function() {
return this._current < this._steps.length - 1
}, n.prototype._showPopover = function(t, n) {
var i, r, o, a, s, l, c = this;
return l = e.extend({}, this._options), o = e(e.isFunction(t.template) ? t.template(n, t) : t.template), r = o.find(".popover-navigation"), s = this._isOrphan(t), s && (t.element = "body", t.placement = "top", o = o.addClass("orphan")), i = e(t.element), o.addClass("tour-" + this._options.name), t.options && e.extend(l, t.options), t.reflex && i.css("cursor", "pointer").on("click.tour-" + this._options.name, function() {
return c._isLast() ? c.next() : c.end()
}), t.prev < 0 && r.find("*[data-role=prev]").addClass("disabled"), t.next < 0 && r.find("*[data-role=next]").addClass("disabled"), t.duration || r.find("*[data-role='pause-resume']").remove(), t.template = o.clone().wrap("
").parent().html(), i.popover({
placement: t.placement,
trigger: "manual",
title: t.title,
content: t.content,
html: !0,
animation: t.animation,
container: t.container,
template: t.template,
selector: t.element
}).popover("show"), a = i.data("bs.popover") ? i.data("bs.popover").tip() : i.data("popover").tip(), a.attr("id", t.id), this._reposition(a, t), s ? this._center(a) : void 0
}, n.prototype._reposition = function(t, n) {
var r, o, a, s, l, c, u;
if(s = t[0].offsetWidth, o = t[0].offsetHeight, u = t.offset(), l = u.left, c = u.top, r = e(i).outerHeight() - u.top - t.outerHeight(), 0 > r && (u.top = u.top + r), a = e("html").outerWidth() - u.left - t.outerWidth(), 0 > a && (u.left = u.left + a), u.top < 0 && (u.top = 0), u.left < 0 && (u.left = 0), t.offset(u), "bottom" === n.placement || "top" === n.placement) {
if(l !== u.left) return this._replaceArrow(t, 2 * (u.left - l), s, "left")
} else if(c !== u.top) return this._replaceArrow(t, 2 * (u.top - c), o, "top")
}, n.prototype._center = function(n) {
return n.css("top", e(t).outerHeight() / 2 - n.outerHeight() / 2)
}, n.prototype._replaceArrow = function(e, t, n, i) {
return e.find(".arrow").css(i, t ? 50 * (1 - t / n) + "%" : "")
}, n.prototype._scrollIntoView = function(n, i) {
var r, o, a, s, l, c = this;
return n ? (r = e(n), o = e(t), a = r.offset().top, l = o.height(), s = Math.max(0, a - l / 2), this._debug("Scroll into view. ScrollTop: " + s + ". Element offset: " + a + ". Window height: " + l + "."), e("body").stop().animate({
scrollTop: Math.ceil(s)
}, function() {
return i(), c._debug("Scroll into view. Animation end element offset: " + r.offset().top + ". Window height: " + o.height() + ".")
})) : i()
}, n.prototype._onResize = function(n, i) {
return e(t).on("resize.tour-" + this._options.name, function() {
return clearTimeout(i), i = setTimeout(n, 100)
})
}, n.prototype._setupMouseNavigation = function() {
var t = this;
return t = this, e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=next]:not(.disabled)").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=next]:not(.disabled)", function(e) {
return e.preventDefault(), t.next()
}), e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=prev]:not(.disabled)").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=prev]:not(.disabled)", function(e) {
return e.preventDefault(), t.prev()
}), e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=end]").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=end]", function(e) {
return e.preventDefault(), t.end()
}), e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=pause-resume]").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=pause-resume]", function(n) {
var i;
return n.preventDefault(), i = e(this), i.text(i.data(t._paused ? "pause-text" : "resume-text")), t._paused ? t.resume() : t.pause()
})
}, n.prototype._setupKeyboardNavigation = function() {
var t = this;
if(this._options.keyboard) return e(i).on("keyup.tour-" + this._options.name, function(e) {
if(e.which) switch(e.which) {
case 39:
return e.preventDefault(), t._isLast() ? t.next() : t.end();
case 37:
if(e.preventDefault(), t._current > 0) return t.prev();
break;
case 27:
return e.preventDefault(), t.end()
}
})
}, n.prototype._makePromise = function(t) {
return t && e.isFunction(t.then) ? t : null
}, n.prototype._callOnPromiseDone = function(e, t, n) {
var i = this;
return e ? e.then(function() {
return t.call(i, n)
}) : t.call(this, n)
}, n.prototype._showBackdrop = function() {
return this.backdrop.backgroundShown ? void 0 : (this.backdrop = e("
", {
"class": "tour-backdrop"
}), this.backdrop.backgroundShown = !0, e("body").append(this.backdrop))
}, n.prototype._hideBackdrop = function() {
return this._hideOverlayElement(), this._hideBackground()
}, n.prototype._hideBackground = function() {
return this.backdrop.remove(), this.backdrop.overlay = null, this.backdrop.backgroundShown = !1
}, n.prototype._showOverlayElement = function(t) {
var n, i, r;
if(!this.backdrop.overlayElementShown) return this.backdrop.overlayElementShown = !0, i = e(t), n = e("
"), r = i.offset(), r.top = r.top, r.left = r.left, n.width(i.innerWidth()).height(i.innerHeight()).addClass("tour-step-background").offset(r), i.addClass("tour-step-backdrop"), e("body").append(n), this.backdrop.$element = i, this.backdrop.$background = n
}, n.prototype._hideOverlayElement = function() {
return this.backdrop.overlayElementShown ? (this.backdrop.$element.removeClass("tour-step-backdrop"), this.backdrop.$background.remove(), this.backdrop.$element = null, this.backdrop.$background = null, this.backdrop.overlayElementShown = !1) : void 0
}, n.prototype._clearTimer = function() {
return t.clearTimeout(this._timer), this._timer = null, this._duration = null
}, n
}(), t.Tour = n
}(jQuery, window), define("bootstrap-tour", ["bootstrap"], function(e) {
return function() {
var t;
return t || e.Tour
}
}(this)), define("extensions/welcomeTour", ["underscore", "jquery", "storage", "classes/Extension", "bootstrap-tour"], function(e, t, n, i, r) {
var o, a = new i("welcomeTour", "Welcome tour", !1, !0);
return a.onEventMgrCreated = function(e) {
o = e
}, a.onReady = function() {
function i(e, n, i) {
var r = t(e).tooltip({
html: !0,
placement: i,
trigger: "manual",
title: n
}).tooltip("show").addClass("info-tooltip");
r.one("click", function() {
r.tooltip("hide").removeClass("info-tooltip")
}), setTimeout(function() {
r.tooltip("hide").removeClass("info-tooltip")
}, 2e4)
}
var a = new r({
keyboard: !1,
storage: {
getItem: function() {},
setItem: function() {},
removeItem: function() {}
},
onEnd: function() {
n.welcomeTour = "done", i(".menu-panel .toggle-button *", "Synchronize, publish...", "right"), i(".document-panel .toggle-button *", "Create, manage documents", "left"), i(".drag-me", "Drag me!", "left"), i(".layout-toggler-preview", "Toggle preview", "right")
},
template: ['
', '
', '
', '
', '
', ' Next ', ' Got it! ', " ", "
"].join("")
});
a.addSteps([{
element: ".navbar-inner",
title: "StackEdit 4 beta preview!",
content: ["
What's new?
", "
", " New contenteditable based editor (credit to Dabblet, Editorially...) ", " New layout with CSS3 transitions (lighter supposedly) ", " Comments/discussions support (see the new icon in the navigation bar) ", " UML diagrams support ", " Auto-merge and conflict detection using standard synchronization ", " Dropped real time sync support :( since you can collaborate simultaneously using standard synchronization ", " ", '
Please provide your feedback here ... Thanks!
', ''].join(""),
placement: "bottom",
onShown: function() {
o.onTweet()
}
}]), e.has(n, "welcomeTour") || a.start(), t(".action-welcome-tour").click(function() {
a.restart()
})
}, a
}), define("text!extensions/shortcutsDefaultMapping.settings", [], function() {
return "{\n 'mod+b': bindPagedownButton('bold'),\n 'mod+i': bindPagedownButton('italic'),\n 'mod+l': bindPagedownButton('link'),\n 'mod+q': bindPagedownButton('quote'),\n 'mod+k': bindPagedownButton('code'),\n 'mod+g': bindPagedownButton('image'),\n 'mod+o': bindPagedownButton('olist'),\n 'mod+u': bindPagedownButton('ulist'),\n 'mod+h': bindPagedownButton('heading'),\n 'mod+r': bindPagedownButton('hr'),\n 'mod+z': bindPagedownButton('undo'),\n 'mod+y': bindPagedownButton('redo'),\n 'mod+shift+z': bindPagedownButton('redo'),\n 'mod+m': function(evt) {\n $('.button-open-discussion').click();\n evt.preventDefault();\n },\n '= = > space': function() {\n expand('==> ', '⇒ ');\n },\n '< = = space': function() {\n expand('<== ', '⇐ ');\n },\n 'S t a c k E d i t': function() {\n eventMgr.onMessage(\"You are stunned!!! Aren't you?\");\n }\n}\n"
}), define("text!html/shortcutsSettingsBlock.html", [], function() {
return '
Maps keyboard shortcuts to JavaScript functions.
\n
\n'
}), define("text!html/tooltipSettingsShortcutsExtension.html", [], function() {
return 'You can create expanding macros like this:\n
\n
\n\'- - > space\': function() {\n
\n expand(\'--> \', \'→ \');\n
\n}\n
\n
\n
More\n info \n
\n
\n
Careful! This is subject to malicious code. Don\'t copy/paste untrusted content.\n'
}), define("extensions/shortcuts", ["jquery", "underscore", "utils", "mousetrap", "classes/Extension", "text!extensions/shortcutsDefaultMapping.settings", "text!html/shortcutsSettingsBlock.html", "text!html/tooltipSettingsShortcutsExtension.html"], function($, _, utils, mousetrap, Extension, shortcutsDefaultMapping, shortcutsSettingsBlockHTML, tooltipSettingsShortcutsExtensionHTML) {
function bindPagedownButton(e) {
return function(t) {
pagedownEditor.uiManager.doClick(pagedownEditor.uiManager.buttons[e]), t.preventDefault()
}
}
function expand(e, t) {
utils.defer(function() {
require("editor").replacePreviousText(e, t)
})
}
var shortcuts = new Extension("shortcuts", "Shortcuts", !0, !0);
shortcuts.settingsBlock = shortcutsSettingsBlockHTML, shortcuts.defaultConfig = {
mapping: shortcutsDefaultMapping
};
var eventMgr, pagedownEditor;
return shortcuts.onEventMgrCreated = function(e) {
eventMgr = e, eventMgr.addListener("onPagedownConfigure", function(e) {
pagedownEditor = e
})
}, shortcuts.onLoadSettings = function() {
utils.setInputValue("#textarea-shortcuts-mapping", shortcuts.config.mapping)
}, shortcuts.onSaveSettings = function(newConfig, event) {
newConfig.code = utils.getInputValue("#textarea-shortcuts-mapping");
try {
eval("var test = " + newConfig.code)
} catch(e) {
eventMgr.onError(e), utils.getInputTextValue("#textarea-shortcuts-mapping", event, /^$/)
}
}, shortcuts.onInit = function() {
try {
var shortcutMap;
eval("shortcutMap = " + shortcuts.config.mapping), _.each(shortcutMap, function(e, t) {
mousetrap.bind(t, e)
})
} catch(e) {
console.error(e)
}
}, shortcuts.onReady = function() {
utils.createTooltip(".tooltip-shortcuts-extension", tooltipSettingsShortcutsExtensionHTML)
}, shortcuts
}), define("text!html/userCustomSettingsBlock.html", [], function() {
return '
Allows users to implement their own extension.
\n
\n
More info '
}), define("text!html/tooltipUserCustomExtension.html", [], function() {
return 'Extension variable name:\n
userCustom \n
\n
\n
Example: \n
\nuserCustom.onPreviewFinished = function() {\n
\n eventMgr.onMessage("Finished!");\n
\n};\n
\n
\n
More\n info \n
\n
\n
Careful! This is subject to malicious code. Don\'t copy/paste untrusted content.'
}), define("extensions/userCustom", ["jquery", "underscore", "utils", "classes/Extension", "fileSystem", "settings", "text!html/userCustomSettingsBlock.html", "text!html/tooltipUserCustomExtension.html"], function($, _, utils, Extension, fileSystem, settings, userCustomSettingsBlockHTML, tooltipUserCustomExtensionHTML) {
var userCustom = new Extension("userCustom", "UserCustom extension", !0);
userCustom.settingsBlock = userCustomSettingsBlockHTML, userCustom.defaultConfig = {
code: ""
};
var fileMgr;
userCustom.onFileMgrCreated = function(e) {
fileMgr = e
};
var synchronizer;
userCustom.onSynchronizerCreated = function(e) {
synchronizer = e
};
var publisher;
userCustom.onPublisherCreated = function(e) {
publisher = e
};
var eventMgr;
return userCustom.onEventMgrCreated = function(e) {
eventMgr = e
}, userCustom.onLoadSettings = function() {
utils.setInputValue("#textarea-usercustom-code", userCustom.config.code)
}, userCustom.onSaveSettings = function(newConfig, event) {
newConfig.code = utils.getInputValue("#textarea-usercustom-code");
try {
eval(newConfig.code)
} catch(e) {
eventMgr.onError(e), utils.getInputTextValue("#textarea-usercustom-code", event, /^$/)
}
}, userCustom.onInit = function() {
try {
eval(userCustom.config.code)
} catch(e) {
console.error(e)
}
}, userCustom.onReady = function() {
utils.createTooltip(".tooltip-usercustom-extension", tooltipUserCustomExtensionHTML)
}, userCustom
}), define("text!html/commentsPopoverContent.html", [], function() {
return '
\n \n \n
\n
\n'
}), define("extensions/comments", ["jquery", "underscore", "utils", "storage", "crel", "rangy", "classes/Extension", "text!html/commentsPopoverContent.html", "bootstrap"], function(e, t, n, i, r, o, a, s) {
function l(e, t, n) {
t = Math.round(t);
for(var i = t - 21; t + 22 > i;) w[i] && (t = i + 22), i++;
!n && (w[t] = 1);
var r = -8; - 1 !== e.className.indexOf(" icon-split") && (r = -12);
var o = t + r;
e.style.top = o + "px", e.style.right = "12px"
}
function c(t, n) {
this.commentElt = t, this.$commentElt = e(t).addClass("active"), this.fileDesc = n, this.discussionIndex = t.discussionIndex
}
function u(e) {
var t = C.getPopoverElt(),
n = 0;
t.offsetWidth < x.offsetWidth - 10 && (n = x.offsetWidth - 10 - t.offsetWidth), t.style.left = n + "px", t.querySelector(".arrow").style.left = x.offsetWidth - parseInt(e.style.right) - e.offsetWidth / 2 - n + "px";
var i = window.innerHeight - C.hr.getBoundingClientRect().top;
0 > i && (t.style.top = parseInt(t.style.top) + i + "px")
}
function d() {
C && C.$commentElt.popover("toggle").popover("destroy")
}
function p() {
var e = C.getDiscussion(),
n = i["author.name"],
r = [];
return e.commentList && (r = e.commentList.map(function(e) {
var i = e.author || "Anonymous";
return t.template(m, {
author: i,
content: e.content,
reply: e.author != n
})
})), "conflict" == e.type && r.unshift(t.template(m, {
author: "StackEdit",
content: "Multiple users have made conflicting modifications.",
reply: !0
})), r.join("")
}
var h, f = new a("comments", "Comments", !1, !0),
m = [""].join(""),
g = ['
', ' ', ' ', " ", " “<%- title %>”", " "].join("");
f.onEventMgrCreated = function(e) {
h = e
};
var v, b;
f.onEditorCreated = function(e) {
v = e, b = v.selectionMgr
};
var y, x, w = [],
S = r("a", {
"class": "discussion icon-comment new"
});
c.prototype.getDiscussion = function() {
return this.discussionIndex ? this.fileDesc.discussionList[this.discussionIndex] : this.fileDesc.newDiscussion
}, c.prototype.getPopoverElt = function() {
return document.querySelector(".comments-popover .popover:last-child")
};
var C, _, k, T, E, I, N = {}, D = [],
L = !1,
A = t.debounce(function() {
function e() {
var i;
if(0 === o.length) return t.filter(N, function(e, n) {
return !t.has(k.discussionList, n)
}).forEach(function(e) {
x.removeChild(e), delete N[e.discussionIndex]
}), C && !C.discussionIndex && (i = b.getCoordinates(C.getDiscussion().selectionEnd), l(S, i.y, !0), y.scrollTop += parseInt(S.style.top) - y.scrollTop - 3 * y.offsetHeight / 4, u(S)), D = t.sortBy(N, function(e) {
return e.selectionEnd
}), E.toggleClass("some", 0 !== D.length), E.toggleClass("replied", L), void I.toggleClass("icon-chat", 0 !== D.length);
var a = o.shift(),
s = N[a.discussionIndex];
s || (s = r("a"));
var c = "discussion",
d = !a.commentList || !n || t.last(a.commentList).author != n;
d && (L = !0), c += "conflict" == a.type ? " icon-split" : " icon-comment", c += d ? " replied" : " added", s.className = c, s.discussionIndex = a.discussionIndex, s.selectionEnd = a.selectionEnd, i = b.getCoordinates(a.selectionEnd), l(s, i.y), x.appendChild(s), N[a.discussionIndex] = s, C && C.getDiscussion() === a && (y.scrollTop += parseInt(s.style.top) - y.scrollTop - 3 * y.offsetHeight / 4, u(s)), T = setTimeout(e, 5)
}
if(void 0 !== k) {
L = !1, D = [];
var n = i["author.name"];
w = [];
var o = t.sortBy(k.discussionList, function(e) {
return e.selectionEnd
});
clearTimeout(T), T = setTimeout(e, 5)
}
}, 50);
return f.onLayoutResize = A, f.onFileOpen = function(e) {
k = e, A()
}, f.onContentChanged = function(e) {
k === e && A()
}, f.onCommentsChanged = function(e) {
if(k === e) {
if(void 0 !== C) {
var t = C;
t.discussionIndex && (t.getPopoverElt().querySelector(".discussion-comment-list").innerHTML = p());
try {
_.undoToRange(t.rangyRange)
} catch(n) {}
var i = t.getDiscussion();
t.selectionRange = b.createRange(i.selectionStart, i.selectionEnd), t.rangyRange = o.createRange(), t.rangyRange.setStart(t.selectionRange.startContainer, t.selectionRange.startOffset), t.rangyRange.setEnd(t.selectionRange.endContainer, t.selectionRange.endOffset), setTimeout(function() {
C === t && _.applyToRange(t.rangyRange)
}, 50)
}
A()
}
}, f.onDiscussionCreated = function(e) {
k === e && A()
}, f.onDiscussionRemoved = function(e, t) {
k === e && (void 0 !== C && C.discussionIndex == t.discussionIndex && d(), A())
}, f.onReady = function() {
_ = o.createCssClassApplier("comment-highlight", {
normalize: !1
});
var a = "";
y = document.getElementById("wmd-input"), x = document.querySelector("#wmd-input > .editor-margin"), x.appendChild(S);
var f = e(r("div", {
"class": "comments-popover"
}));
e(document.body).append(f).on("click", function(e) {
C && C.$commentElt[0] !== e.target && d()
}).popover({
placement: "auto top",
container: ".comments-popover",
html: !0,
title: function() {
if(!C) return !0;
var e = C.getDiscussion(),
n = e.selectionEnd - e.selectionStart,
i = v.getValue().substr(e.selectionStart, n > 20 ? 20 : n);
return n > 20 && (i += "..."), t.template(g, {
title: i
})
},
content: function() {
var e = t.template(s, {
commentList: p()
});
return e
},
selector: "#wmd-input > .editor-margin > .discussion"
}), e(x).on("show.bs.popover", function(e) {
d();
var t = new c(e.target, k);
C = t;
var n = t.getDiscussion();
if(!n) {
var i = Math.min(b.selectionStart, b.selectionEnd),
r = Math.max(b.selectionStart, b.selectionEnd);
if(i === r) {
var o = b.getClosestWordOffset(i);
i = o.start, r = o.end
}
n = {
selectionStart: i,
selectionEnd: r,
commentList: []
}, k.newDiscussion = n;
var a = b.getCoordinates(i);
l(S, a.y, !0)
}
t.selectionRange = b.createRange(n.selectionStart, n.selectionEnd), y.scrollTop += parseInt(e.target.style.top) - y.scrollTop - 3 * y.offsetHeight / 4
}).on("shown.bs.popover", function(r) {
var s = C,
l = s.getPopoverElt();
s.$authorInputElt = e(l.querySelector(".input-comment-author")).val(i["author.name"]), s.$contentInputElt = e(l.querySelector(".input-comment-content")), s.hr = l.querySelector("hr"), u(s.commentElt), l.querySelector(".scrollport").scrollTop = 9999999;
var c = e(l.querySelector(".action-add-comment"));
e().add(s.$contentInputElt).add(s.$authorInputElt).keydown(function(e) {
switch(e.which) {
case 13:
return e.preventDefault(), void c.click();
case 27:
return e.preventDefault(), d(), v.focus(), void v.adjustCursorPosition()
}
}), c.click(function(e) {
var i = n.getInputTextValue(s.$authorInputElt),
r = n.getInputTextValue(s.$contentInputElt, e);
if(!e.isPropagationStopped()) {
var o = s.getDiscussion();
s.$contentInputElt.val(""), d(), o.commentList = o.commentList || [], o.commentList.push({
author: i,
content: r
});
var a = s.fileDesc.discussionList || {};
if(o.discussionIndex) s.fileDesc.discussionList = a, h.onCommentsChanged(s.fileDesc);
else {
var l;
do l = n.randomString(); while (t.has(a, l));
o.discussionIndex = l, a[l] = o, s.fileDesc.discussionList = a, h.onDiscussionCreated(s.fileDesc, o)
}
y.focus()
}
});
var p = e(l.querySelector(".action-remove-discussion"));
r.target.discussionIndex ? p.click(function() {
d();
var e = s.getDiscussion();
delete s.fileDesc.discussionList[e.discussionIndex], s.fileDesc.discussionList = s.fileDesc.discussionList, h.onDiscussionRemoved(s.fileDesc, e), y.focus()
}) : p.hide(), s.rangyRange = o.createRange(), s.rangyRange.setStart(s.selectionRange.startContainer, s.selectionRange.startOffset), s.rangyRange.setEnd(s.selectionRange.endContainer, s.selectionRange.endOffset), setTimeout(function() {
C === s && _.applyToRange(s.rangyRange)
}, 50), s.$contentInputElt.focus().val(a)
}).on("hide.bs.popover", function() {
C && (C.$commentElt.removeClass("active"), a = C.$contentInputElt.val(), i["author.name"] = C.$authorInputElt.val(), _.undoToRange(C.rangyRange), C = void 0, delete k.newDiscussion)
}), f.on("click", ".popover", function(e) {
e.stopPropagation()
});
var m = e(S);
E = e(".button-open-discussion").click(function(n) {
var i = m;
if(C)
if(C.discussionIndex) {
var r = -1;
D.some(function(e, t) {
return e === C.commentElt ? (r = t, !0) : void 0
}), i = e(D[r + 1])
} else i = e(t.first(D));
0 === i.length ? (d(), v.focus(), v.adjustCursorPosition()) : i.click(), n.stopPropagation()
}), I = E.find("i")
}, f
}),
function(e) {
var t = "waitForImages";
e.waitForImages = {
hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage"]
}, e.expr[":"].uncached = function(t) {
if(!e(t).is('img[src!=""]')) return !1;
var n = new Image;
return n.src = t.src, !n.complete
}, e.fn.waitForImages = function(n, i, r) {
var o = 0,
a = 0;
if(e.isPlainObject(arguments[0]) && (r = arguments[0].waitForAll, i = arguments[0].each, n = arguments[0].finished), n = n || e.noop, i = i || e.noop, r = !! r, !e.isFunction(n) || !e.isFunction(i)) throw new TypeError("An invalid callback was supplied.");
return this.each(function() {
var s = e(this),
l = [],
c = e.waitForImages.hasImageProperties || [],
u = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
r ? s.find("*").andSelf().each(function() {
var t = e(this);
t.is("img:uncached") && l.push({
src: t.attr("src"),
element: t[0]
}), e.each(c, function(e, n) {
var i, r = t.css(n);
if(!r) return !0;
for(; i = u.exec(r);) l.push({
src: i[2],
element: t[0]
})
})
}) : s.find("img:uncached").each(function() {
l.push({
src: this.src,
element: this
})
}), o = l.length, a = 0, 0 === o && n.call(s[0]), e.each(l, function(r, l) {
var c = new Image;
e(c).bind("load." + t + " error." + t, function(e) {
return a++, i.call(l.element, a, o, "load" == e.type), a == o ? (n.call(s[0]), !1) : void 0
}), c.src = l.src
})
})
}
}(jQuery), define("jquery-waitforimages", function() {}), define("eventMgr", ["jquery", "underscore", "crel", "utils", "logger", "classes/Extension", "settings", "text!html/settingsExtensionsAccordion.html", "extensions/yamlFrontMatterParser", "extensions/markdownSectionParser", "extensions/partialRendering", "extensions/buttonMarkdownSyntax", "extensions/googleAnalytics", "extensions/twitter", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", "extensions/dialogManageSharing", "extensions/dialogOpenHarddrive", "extensions/documentTitle", "extensions/documentSelector", "extensions/documentPanel", "extensions/documentManager", "extensions/workingIndicator", "extensions/notifications", "extensions/markdownExtra", "extensions/umlDiagrams", "extensions/toc", "extensions/mathJax", "extensions/emailConverter", "extensions/scrollSync", "extensions/buttonSync", "extensions/buttonPublish", "extensions/buttonStat", "extensions/buttonHtmlCode", "extensions/buttonViewer", "extensions/welcomeTour", "extensions/shortcuts", "extensions/userCustom", "extensions/comments", "bootstrap", "jquery-waitforimages"], function(e, t, n, i, r, o, a, s) {
function l(e) {
return t.chain(p).map(function(t) {
return t.enabled && t[e]
}).compact().value()
}
function c(e) {
return f[e] = l(e),
function() {
r.log(e, arguments);
var n = arguments;
t.each(f[e], function(e) {
try {
e.apply(null, n)
} catch(i) {
console.error(t.isObject(i) ? i.stack : i)
}
})
}
}
function u(e) {
d[e] = c(e)
}
var d = {}, p = t.chain(arguments).map(function(e) {
return e instanceof o && e
}).compact().value(),
h = a.extensionSettings || {};
t.each(p, function(e) {
e.config = t.extend({}, e.defaultConfig, h[e.extensionId]), e.enabled = window.viewerMode === !0 && e.disableInViewer === !0 ? !1 : !e.isOptional || void 0 === e.config.enabled || e.config.enabled === !0
});
var f = {};
d.addListener = function(e, t) {
try {
f[e].push(t)
} catch(n) {
console.error("No event listener called " + e)
}
}, c("onInit")(), d.onLoadSettings = function() {
r.log("onLoadSettings"), t.each(p, function(e) {
var t = !e.isOptional || void 0 === e.config.enabled || e.config.enabled === !0;
i.setInputChecked("#input-enable-extension-" + e.extensionId, t), "markdownExtra" == e.extensionId ? i.setInputChecked("#input-settings-markdown-extra", t) : "mathJax" == e.extensionId && i.setInputChecked("#input-settings-mathjax", t);
var n = e.onLoadSettings;
n && n()
})
}, d.onSaveSettings = function(e, n) {
r.log("onSaveSettings"), t.each(p, function(r) {
var o = t.extend({}, r.defaultConfig);
o.enabled = i.getInputChecked("#input-enable-extension-" + r.extensionId);
var a;
"markdownExtra" == r.extensionId ? (a = i.getInputChecked("#input-settings-markdown-extra"), a != r.enabled && (o.enabled = a)) : "mathJax" == r.extensionId && (a = i.getInputChecked("#input-settings-mathjax"), a != r.enabled && (o.enabled = a));
var s = r.onSaveSettings;
s && s(o, n), e[r.extensionId] = o
})
}, u("onMessage"), u("onError"), u("onOfflineChanged"), u("onUserActive"), u("onAsyncRunning"), u("onPeriodicRun"), u("onEditorCreated"), u("onFileMgrCreated"), u("onSynchronizerCreated"), u("onPublisherCreated"), u("onEventMgrCreated"), u("onFileCreated"), u("onFileDeleted"), u("onFileSelected"), u("onFileOpen"), u("onFileClosed"), u("onContentChanged"), u("onTitleChanged"), u("onFoldersChanged"), u("onSyncRunning"), u("onSyncSuccess"), u("onSyncImportSuccess"), u("onSyncExportSuccess"), u("onSyncRemoved"), u("onPublishRunning"), u("onPublishSuccess"), u("onNewPublishSuccess"), u("onPublishRemoved"), u("onLayoutCreated"), u("onLayoutResize"), u("onPagedownConfigure"), u("onSectionsCreated"), u("onCursorCoordinates"), u("onDiscussionCreated"), u("onDiscussionRemoved"), u("onCommentsChanged"), u("onTweet");
var m, g, v = c("onPreviewFinished"),
b = l("onAsyncPreview");
d.onAsyncPreview = function() {
function e(n) {
var r = n.length ? n.shift() : function() {
setTimeout(function() {
var e = "";
t.each(m.children, function(t) {
e += t.innerHTML
});
var n = i.trim(e),
r = n.replace(/