diff --git "a/static/_next/static/chunks/524-05696a2671cf01d2.js" "b/static/_next/static/chunks/524-05696a2671cf01d2.js" new file mode 100644--- /dev/null +++ "b/static/_next/static/chunks/524-05696a2671cf01d2.js" @@ -0,0 +1,26995 @@ +(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ + [524], { + 13599: function(e, t, n) { + "use strict"; + n.d(t, { + S0: function() { + return p + }, + UK: function() { + return u + }, + _: function() { + return g + }, + sd: function() { + return v + }, + wc: function() { + return d + } + }); + var r = n(20640), + i = n.n(r), + a = n(35530), + o = n.n(a), + s = n(69590), + l = n.n(s), + c = n(67294); + + function u(e) { + var t = c.useState(null), + n = t[0], + r = t[1], + i = c.useState(null), + a = i[0], + o = i[1], + s = c.useState(null), + l = s[0], + u = s[1]; + return [c.useCallback((function() { + for (var t = [], n = arguments.length; n--;) t[n] = arguments[n]; + try { + return r(!0), o(null), Promise.resolve(function(n, r) { + try { + var i = function(n, r) { + try { + var i = Promise.resolve(e.apply(void 0, t)).then((function(e) { + return u(e), e + })) + } catch (e) { + return r(e) + } + return i && i.then ? i.then(void 0, r) : i + }(0, (function(e) { + o(e) + })) + } catch (e) { + return r(!0, e) + } + return i && i.then ? i.then(r.bind(null, !1), r.bind(null, !0)) : r(!1, i) + }(0, (function(e, t) { + if (r(!1), e) throw t; + return t + }))) + } catch (e) { + return Promise.reject(e) + } + }), [e]), { + data: l, + loading: n, + error: a + }] + } + "undefined" != typeof Symbol && (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))), "undefined" != typeof Symbol && (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))), c.memo((function(e) { + var t = u(e.onClick), + n = t[1]; + return e.children({ + data: n.data, + loading: n.loading, + error: n.error, + onClick: t[0] + }) + })).displayName = "AsyncButton"; + + function d(e, t) { + void 0 === t && (t = {}); + var n = t.interval, + r = function(e, t) { + var n = {}; + for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && -1 === t.indexOf(r) && (n[r] = e[r]); + return n + }(t, ["interval"]), + a = u((function() { + try { + i()(e, r); + var t = function() { + if (0 !== n) return Promise.resolve((e = null == n ? 1e3 : n, new Promise((function(t) { + return setTimeout(t, e) + })))).then((function() {})); + var e + }(); + return Promise.resolve(t && t.then ? t.then((function() {})) : void 0) + } catch (a) { + return Promise.reject(a) + } + })); + return { + onClick: a[0], + copied: a[1].loading + } + } + c.memo((function(e) { + return e.children(d(e.text, e)) + })).displayName = "CopyButton"; + var p = function(e, t) { + ! function(e, t) { + c.useEffect((function() { + return document.addEventListener(e, t, !1), + function() { + return document.removeEventListener(e, t, !1) + } + })) + }("keydown", c.useCallback((function(n) { + if (e.split("-").pop() === n.key) { + var r = e.toLowerCase(); + if ((r.indexOf("\u2318") > -1 || r.indexOf("cmd") > -1) && !n.metaKey) return; + if ((r.indexOf("\u2303") > -1 || r.indexOf("ctrl") > -1) && !n.ctrlKey) return; + if ((r.indexOf("\u21e7") > -1 || r.indexOf("shift") > -1) && !n.shiftKey) return; + if ((r.indexOf("\u2325") > -1 || r.indexOf("option") > -1 || r.indexOf("opt") > -1 || r.indexOf("alt") > -1) && !n.altKey) return; + return t(n) + } + }), [e, t])) + }, + f = o()(function(e) { + function t() { + e.apply(this, arguments) + } + return e && (t.__proto__ = e), (t.prototype = Object.create(e && e.prototype)).constructor = t, t.prototype.handleClickOutside = function(e) { + this.props.onClickAway(e) + }, t.prototype.render = function() { + return this.props.children + }, t + }(c.PureComponent)); + c.memo((function(e) { + return p("Escape", e.onClickAway), c.createElement(f, { + onClickAway: e.onClickAway + }, e.open ? e.children : null) + })).displayName = "Modal"; + var m = c.memo((function(e) { + var t = function(e, t) { + void 0 === t && (t = {}); + var n = t.onSubmit, + r = t.onReset, + i = c.useState(e), + a = i[0], + o = i[1], + s = c.useState(e), + d = s[0], + p = s[1], + f = !c.useMemo((function() { + return l()(d, a) + }), [d, a]), + m = c.useCallback((function(e) { + return o(e.target.value) + }), [o]), + h = u((function() { + try { + function e() { + p(a) + } + var t = function() { + if (n) return Promise.resolve(n(a)).then((function() {})) + }(); + return Promise.resolve(t && t.then ? t.then(e) : e()) + } catch (e) { + return Promise.reject(e) + } + })), + g = h[1]; + return { + value: a, + hasChanged: f, + data: g.data, + loading: g.loading, + error: g.error, + onChange: o, + onInputChange: m, + reset: function() { + r && r(a), o(d) + }, + submit: h[0] + } + }(e.initialValue, e); + return e.children(t) + })); + + function h() {} + m.displayName = "TempValue", m.defaultProps = { + onReset: h, + onSubmit: h + }; + + function g(e) { + var t = c.useState(null), + n = t[0], + r = t[1]; + return c.useEffect((function() { + if (Object.prototype.hasOwnProperty.call(localStorage, e)) { + var t = localStorage.getItem(e); + r(function(e) { + try { + return JSON.parse(e) + } catch (t) { + return e + } + }(t)) + } + }), [e]), c.useEffect((function() { + function e(e) { + e.isTrusted && r(e.newValue) + } + return window.addEventListener("storage", e), + function() { + return window.removeEventListener("storage", e) + } + }), []), c.useEffect((function() { + null == n ? localStorage.removeItem(e) : localStorage.setItem(e, function(e) { + return "string" == typeof e ? e : JSON.stringify(e) + }(n)) + }), [e, n]), [n, r] + } + + function b(e, t) { + var n = c.useRef(t); + c.useEffect((function() { + var t = n.current; + return window.addEventListener(e, t), + function() { + return window.removeEventListener(e, t) + } + }), [e]) + } + + function v() { + var e = c.useState(!0), + t = e[0], + n = e[1]; + return c.useEffect((function() { + n("undefined" == typeof navigator || "boolean" != typeof navigator.onLine || navigator.onLine) + }), []), b("offline", (function() { + return n(!1) + })), b("online", (function() { + return n(!0) + })), t + } + }, + 94269: function(e, t, n) { + "use strict"; + (e => { + function t() { + return [".cm-whitespace::before {", "position: absolute;", "pointer-events: none;", "color: #404F7D;", "}"].join("") + } + + function n() { + return [".CodeMirror-code > div > pre > span::after, .CodeMirror-line > span::after {", " pointer-events: none;", " color: #404F7D;", ' content: "\xac"', "}", ".CodeMirror-code > div:last-child > pre > span::after {", " display: none;", "}"].join("") + } + e.defineOption("showInvisibles", !1, ((r, i, a) => { + let o = 0; + const s = r.getOption("maxInvisibles") || 16; + if (a === e.Init && (a = !1), a && !i) return r.removeOverlay("invisibles"), + function() { + const e = document.querySelector('[data-name="js-show-invisibles"]'); + document.head.removeChild(e) + }(); + !a && i && (function(e) { + const r = ".CodeMirror .cm-whitespace-", + i = "\xb7", + a = document.createElement("style"); + a.setAttribute("data-name", "js-show-invisibles"); + let o = "", + s = ""; + for (let t = 1; t <= e; ++t) s += i, o += r + t + `:not([class*="cm-trailing-space-"])::before { content: "${s}";}\n`; + const l = '[class*=cm-trailing-space]::before{content: "\xb7";}'; + a.textContent = [t(), n(), o, l].join("\n"), document.head.appendChild(a) + }(s), r.addOverlay({ + name: "invisibles", + token: function(e) { + let t = 0, + n = " " === e.peek(); + if (n) { + for (; n && t < s;) ++t, e.next(), n = " " === e.peek(); + let r = "whitespace whitespace-" + t; + return t === s && (r += " whitespace-rand-" + o++), r + } + for (; !e.eol() && !n;) e.next(), n = " " === e.peek(); + return "cm-eol" + } + })) + })) + })(n(4631)) + }, + 59229: function(e, t, n) { + "use strict"; + var r = this && this.__importDefault || function(e) { + return e && e.__esModule ? e : { + default: e + } + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var i = r(n(4631)), + a = r(n(20088)); + i.default.defineMode("graphql", a.default) + }, + 20088: function(e, t, n) { + "use strict"; + var r = this && this.__importDefault || function(e) { + return e && e.__esModule ? e : { + default: e + } + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var i = n(79073), + a = r(n(39655)); + t.default = function(e) { + var t = i.onlineParser({ + eatWhitespace: function(e) { + return e.eatWhile(i.isIgnored) + }, + lexRules: i.LexRules, + parseRules: i.ParseRules, + editorConfig: { + tabSize: e.tabSize + } + }); + return { + config: e, + startState: t.startState, + token: t.token, + indent: a.default, + electricInput: /^\s*[})\]]/, + fold: "brace", + lineComment: "#", + closeBrackets: { + pairs: '()[]{}""', + explode: "()[]{}" + } + } + } + }, + 39655: function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = function(e, t) { + var n, r, i = e.levels; + return ((i && 0 !== i.length ? i[i.length - 1] - ((null === (n = this.electricInput) || void 0 === n ? void 0 : n.test(t)) ? 1 : 0) : e.indentLevel) || 0) * ((null === (r = this.config) || void 0 === r ? void 0 : r.indentUnit) || 0) + } + }, + 10167: function(e, t, n) { + "use strict"; + var r = n(4631), + i = n.n(r); + i().defineMode("elixir", (function(e) { + var t, n = function(e) { + for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0; + return t + }, + r = n(["alias", "case", "cond", "def", "defmodule", "defp", "defstruct", "defprotocol", "defimpl", "defmacro", "quote", "unquote", "receive", "fn", "do", "else", "else if", "end", "false", "if", "in", "next", "rescue", "for", "true", "unless", "when", "nil", "raise", "throw", "try", "catch", "after", "with", "require", "use", "__MODULE__", "__FILE__", "__DIR__", "__ENV__", "__CALLER__"]), + i = n(["def", "defmodule", "defp", "case", "cond", "rescue", "try", "catch", "->"]), + a = n(["end"]), + o = { + "[": "]", + "{": "}", + "(": ")" + }, + s = function(e, t, n) { + return n.tokenize.push(e), e(t, n) + }, + l = function(e, n) { + if (e.sol() && e.match('"""') && e.eol()) return n.tokenize.push(f), "comment"; + if (e.eatSpace()) return null; + var r, i = e.next(); + if ("'" === i || '"' === i) return s(d(i, "string", '"' === i), e, n); + if ("/" === i) { + var a = e.current().length; + if (e.skipTo("/")) { + var l = e.current().length, + c = 0; + for (e.backUp(e.current().length - a); e.current().length < l;) { + var u = e.next(); + if ("(" === u ? c += 1 : ")" === u && (c -= 1), c < 0) break + } + if (e.backUp(e.current().length - a), 0 === c) return s(d(i, "string-2", !0), e, n) + } + return "operator" + } + if ("%" === i) { + var m = "string", + h = !0; + e.eat("s") ? m = "atom" : e.eat(/[WQ]/) ? m = "string" : e.eat(/[r]/) ? m = "string-2" : e.eat(/[wxq]/) && (m = "string", h = !1); + var g = e.eat(/[^\w\s=]/); + return g ? (o.propertyIsEnumerable(g) && (g = o[g]), s(d(g, m, h, !0), e, n)) : "operator" + } + if ("#" === i) return e.skipToEnd(), "comment"; + if ("<" === i && (r = e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) return s(p(r[1]), e, n); + if ("0" === i) return e.eat("x") ? e.eatWhile(/[\da-fA-F]/) : e.eat("b") ? e.eatWhile(/[01]/) : e.eatWhile(/[0-7]/), "number"; + if (/\d/.test(i)) return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number"; + if ("?" === i) { + for (; e.match(/^\\[CM]-/);); + return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string" + } + return ":" === i ? e.eat("'") ? s(d("'", "atom", !1), e, n) : e.eat('"') ? s(d('"', "atom", !0), e, n) : e.eat(/[\<\>]/) ? (e.eat(/[\<\>]/), "atom") : e.eat(/[\+\-\*\/\&\|\:\!]/) ? "atom" : e.eat(/[a-zA-Z$@_\xa1-\uffff]/) ? (e.eatWhile(/[\w$\xa1-\uffff]/), e.eat(/[\?\!\=]/), "atom") : "operator" : "@" === i && e.match(/^@?[a-zA-Z_\xa1-\uffff]/) ? (e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "variable-2") : "$" === i ? (e.eat(/[a-zA-Z_]/) ? e.eatWhile(/[\w]/) : e.eat(/\d/) ? e.eat(/\d/) : e.next(), "variable-3") : /[a-zA-Z_\xa1-\uffff]/.test(i) ? (e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "ident") : "|" !== i || !n.varList && "{" !== n.lastTok && "do" !== n.lastTok ? /[\(\)\[\]{}\\;]/.test(i) ? (t = i, null) : "-" === i && e.eat(">") ? "arrow" : "|" === i && e.eat(">") ? "pipe" : /[=+\-\/*:\.^%<>~|]/.test(i) ? ("." !== i || e.eatWhile(/[=+\-\/*:\.^%<>~|]/) || (t = "."), "operator") : null : (t = "|", null) + }, + c = function(e) { + return e || (e = 1), + function(t, n) { + if ("}" === t.peek()) { + if (1 === e) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n); + n.tokenize[n.tokenize.length - 1] = c(e - 1) + } else "{" === t.peek() && (n.tokenize[n.tokenize.length - 1] = c(e + 1)); + return l(t, n) + } + }, + u = function() { + var e = !1; + return function(t, n) { + return e ? (n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n)) : (e = !0, l(t, n)) + } + }, + d = function(e, t, n, r) { + return function(i, a) { + var o, s = !1; + for ("read-quoted-paused" === a.context.type && (a.context = a.context.prev, i.eat("}")); null != (o = i.next());) { + if (o === e && (r || !s)) { + a.tokenize.pop(); + break + } + if (n && "#" === o && !s) { + if (i.eat("{")) { + "}" === e && (a.context = { + prev: a.context, + type: "read-quoted-paused" + }), a.tokenize.push(c()); + break + } + if (/[@\$]/.test(i.peek())) { + a.tokenize.push(u()); + break + } + } + s = !s && "\\" === o + } + return t + } + }, + p = function(e) { + return function(t, n) { + return t.match(e) ? n.tokenize.pop() : t.skipToEnd(), "string" + } + }, + f = function(e, t) { + return e.sol() && e.match('"""') && e.eol() && t.tokenize.pop(), e.skipToEnd(), "comment" + }; + return { + startState: function() { + return { + tokenize: [l], + indented: 0, + context: { + type: "top", + indented: -e.indentUnit + }, + continuedLine: !1, + lastTok: null, + varList: !1 + } + }, + token: function(e, n) { + t = null; + var o, s = n.tokenize[n.tokenize.length - 1](e, n), + l = t; + if ("ident" === s) { + var c = e.current(); + s = "." === n.lastTok ? "property" : r.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(c) ? "tag" : "def" === n.lastTok || "class" === n.lastTok || n.varList ? "def" : "variable"; + var u = e.column() === e.indentation(); + "keyword" === s && (l = c, i.propertyIsEnumerable(c) ? o = "indent" : a.propertyIsEnumerable(c) ? o = "dedent" : "if" !== c && "unless" !== c || !u ? "do" === c && n.context.indented < n.indented && (o = "indent") : o = "indent") + } + return (t || s && "comment" !== s) && (n.lastTok = l), "|" === t && (n.varList = !n.varList), "indent" === o || /[\(\[\{]/.test(t) ? n.context = { + prev: n.context, + type: t || s, + indented: n.indented + } : ("dedent" === o || /[\)\]\}]/.test(t)) && n.context.prev && (n.context = n.context.prev), e.eol() && (n.continuedLine = "\\" === t || "operator" === s), s + }, + electricInput: /^\s*(?:end|rescue|else if|else|catch\})$/, + lineComment: "#" + } + })), i().defineMIME("text/x-elixir", "elixir") + }, + 87093: function(e, t, n) { + ! function(e) { + "use strict"; + e.multiplexingMode = function(t) { + var n = Array.prototype.slice.call(arguments, 1); + + function r(e, t, n, r) { + if ("string" == typeof t) { + var i = e.indexOf(t, n); + return r && i > -1 ? i + t.length : i + } + var a = t.exec(n ? e.slice(n) : e); + return a ? a.index + n + (r ? a[0].length : 0) : -1 + } + return { + startState: function() { + return { + outer: e.startState(t), + innerActive: null, + inner: null, + startingInner: !1 + } + }, + copyState: function(n) { + return { + outer: e.copyState(t, n.outer), + innerActive: n.innerActive, + inner: n.innerActive && e.copyState(n.innerActive.mode, n.inner), + startingInner: n.startingInner + } + }, + token: function(i, a) { + if (a.innerActive) { + var o = a.innerActive; + if (c = i.string, !o.close && i.sol()) return a.innerActive = a.inner = null, this.token(i, a); + if ((d = o.close && !a.startingInner ? r(c, o.close, i.pos, o.parseDelimiters) : -1) == i.pos && !o.parseDelimiters) return i.match(o.close), a.innerActive = a.inner = null, o.delimStyle && o.delimStyle + " " + o.delimStyle + "-close"; + d > -1 && (i.string = c.slice(0, d)); + var s = o.mode.token(i, a.inner); + return d > -1 ? i.string = c : i.pos > i.start && (a.startingInner = !1), d == i.pos && o.parseDelimiters && (a.innerActive = a.inner = null), o.innerStyle && (s = s ? s + " " + o.innerStyle : o.innerStyle), s + } + for (var l = 1 / 0, c = i.string, u = 0; u < n.length; ++u) { + var d, p = n[u]; + if ((d = r(c, p.open, i.pos)) == i.pos) { + p.parseDelimiters || i.match(p.open), a.startingInner = !!p.parseDelimiters, a.innerActive = p; + var f = 0; + if (t.indent) { + var m = t.indent(a.outer, "", ""); + m !== e.Pass && (f = m) + } + return a.inner = e.startState(p.mode, f), p.delimStyle && p.delimStyle + " " + p.delimStyle + "-open" + } - 1 != d && d < l && (l = d) + } + l != 1 / 0 && (i.string = c.slice(0, l)); + var h = t.token(i, a.outer); + return l != 1 / 0 && (i.string = c), h + }, + indent: function(n, r, i) { + var a = n.innerActive ? n.innerActive.mode : t; + return a.indent ? a.indent(n.innerActive ? n.inner : n.outer, r, i) : e.Pass + }, + blankLine: function(r) { + var i = r.innerActive ? r.innerActive.mode : t; + if (i.blankLine && i.blankLine(r.innerActive ? r.inner : r.outer), r.innerActive) "\n" === r.innerActive.close && (r.innerActive = r.inner = null); + else + for (var a = 0; a < n.length; ++a) { + var o = n[a]; + "\n" === o.open && (r.innerActive = o, r.inner = e.startState(o.mode, i.indent ? i.indent(r.outer, "", "") : 0)) + } + }, + electricChars: t.electricChars, + innerMode: function(e) { + return e.inner ? { + state: e.inner, + mode: e.innerActive.mode + } : { + state: e.outer, + mode: t + } + } + } + } + }(n(4631)) + }, + 14146: function(e, t, n) { + ! function(e) { + "use strict"; + e.overlayMode = function(t, n, r) { + return { + startState: function() { + return { + base: e.startState(t), + overlay: e.startState(n), + basePos: 0, + baseCur: null, + overlayPos: 0, + overlayCur: null, + streamSeen: null + } + }, + copyState: function(r) { + return { + base: e.copyState(t, r.base), + overlay: e.copyState(n, r.overlay), + basePos: r.basePos, + baseCur: null, + overlayPos: r.overlayPos, + overlayCur: null + } + }, + token: function(e, i) { + return (e != i.streamSeen || Math.min(i.basePos, i.overlayPos) < e.start) && (i.streamSeen = e, i.basePos = i.overlayPos = e.start), e.start == i.basePos && (i.baseCur = t.token(e, i.base), i.basePos = e.pos), e.start == i.overlayPos && (e.pos = e.start, i.overlayCur = n.token(e, i.overlay), i.overlayPos = e.pos), e.pos = Math.min(i.basePos, i.overlayPos), null == i.overlayCur ? i.baseCur : null != i.baseCur && i.overlay.combineTokens || r && null == i.overlay.combineTokens ? i.baseCur + " " + i.overlayCur : i.overlayCur + }, + indent: t.indent && function(e, n, r) { + return t.indent(e.base, n, r) + }, + electricChars: t.electricChars, + innerMode: function(e) { + return { + state: e.base, + mode: t + } + }, + blankLine: function(e) { + var i, a; + return t.blankLine && (i = t.blankLine(e.base)), n.blankLine && (a = n.blankLine(e.overlay)), null == a ? i : r && null != i ? i + " " + a : a + } + } + } + }(n(4631)) + }, + 40790: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e, t) { + if (!e.hasOwnProperty(t)) throw new Error("Undefined state " + t + " in simple mode") + } + + function n(e, t) { + if (!e) return /(?:)/; + var n = ""; + return e instanceof RegExp ? (e.ignoreCase && (n = "i"), e.unicode && (n += "u"), e = e.source) : e = String(e), new RegExp((!1 === t ? "" : "^") + "(?:" + e + ")", n) + } + + function r(e) { + if (!e) return null; + if (e.apply) return e; + if ("string" == typeof e) return e.replace(/\./g, " "); + for (var t = [], n = 0; n < e.length; n++) t.push(e[n] && e[n].replace(/\./g, " ")); + return t + } + + function i(e, i) { + (e.next || e.push) && t(i, e.next || e.push), this.regex = n(e.regex), this.token = r(e.token), this.data = e + } + + function a(e, t) { + return function(n, r) { + if (r.pending) { + var i = r.pending.shift(); + return 0 == r.pending.length && (r.pending = null), n.pos += i.text.length, i.token + } + if (r.local) { + if (r.local.end && n.match(r.local.end)) { + var a = r.local.endToken || null; + return r.local = r.localState = null, a + } + var o; + return a = r.local.mode.token(n, r.localState), r.local.endScan && (o = r.local.endScan.exec(n.current())) && (n.pos = n.start + o.index), a + } + for (var l = e[r.state], c = 0; c < l.length; c++) { + var u = l[c], + d = (!u.data.sol || n.sol()) && n.match(u.regex); + if (d) { + u.data.next ? r.state = u.data.next : u.data.push ? ((r.stack || (r.stack = [])).push(r.state), r.state = u.data.push) : u.data.pop && r.stack && r.stack.length && (r.state = r.stack.pop()), u.data.mode && s(t, r, u.data.mode, u.token), u.data.indent && r.indent.push(n.indentation() + t.indentUnit), u.data.dedent && r.indent.pop(); + var p = u.token; + if (p && p.apply && (p = p(d)), d.length > 2 && u.token && "string" != typeof u.token) { + for (var f = 2; f < d.length; f++) d[f] && (r.pending || (r.pending = [])).push({ + text: d[f], + token: u.token[f - 1] + }); + return n.backUp(d[0].length - (d[1] ? d[1].length : 0)), p[0] + } + return p && p.join ? p[0] : p + } + } + return n.next(), null + } + } + + function o(e, t) { + if (e === t) return !0; + if (!e || "object" != typeof e || !t || "object" != typeof t) return !1; + var n = 0; + for (var r in e) + if (e.hasOwnProperty(r)) { + if (!t.hasOwnProperty(r) || !o(e[r], t[r])) return !1; + n++ + } + for (var r in t) t.hasOwnProperty(r) && n--; + return 0 == n + } + + function s(t, r, i, a) { + var s; + if (i.persistent) + for (var l = r.persistentStates; l && !s; l = l.next)(i.spec ? o(i.spec, l.spec) : i.mode == l.mode) && (s = l); + var c = s ? s.mode : i.mode || e.getMode(t, i.spec), + u = s ? s.state : e.startState(c); + i.persistent && !s && (r.persistentStates = { + mode: c, + spec: i.spec, + state: u, + next: r.persistentStates + }), r.localState = u, r.local = { + mode: c, + end: i.end && n(i.end), + endScan: i.end && !1 !== i.forceEnd && n(i.end, !1), + endToken: a && a.join ? a[a.length - 1] : a + } + } + + function l(e, t) { + for (var n = 0; n < t.length; n++) + if (t[n] === e) return !0 + } + + function c(t, n) { + return function(r, i, a) { + if (r.local && r.local.mode.indent) return r.local.mode.indent(r.localState, i, a); + if (null == r.indent || r.local || n.dontIndentStates && l(r.state, n.dontIndentStates) > -1) return e.Pass; + var o = r.indent.length - 1, + s = t[r.state]; + e: for (;;) { + for (var c = 0; c < s.length; c++) { + var u = s[c]; + if (u.data.dedent && !1 !== u.data.dedentIfLineStart) { + var d = u.regex.exec(i); + if (d && d[0]) { + o--, (u.next || u.push) && (s = t[u.next || u.push]), i = i.slice(d[0].length); + continue e + } + } + } + break + } + return o < 0 ? 0 : r.indent[o] + } + } + e.defineSimpleMode = function(t, n) { + e.defineMode(t, (function(t) { + return e.simpleMode(t, n) + })) + }, e.simpleMode = function(n, r) { + t(r, "start"); + var o = {}, + s = r.meta || {}, + l = !1; + for (var u in r) + if (u != s && r.hasOwnProperty(u)) + for (var d = o[u] = [], p = r[u], f = 0; f < p.length; f++) { + var m = p[f]; + d.push(new i(m, r)), (m.indent || m.dedent) && (l = !0) + } + var h = { + startState: function() { + return { + state: "start", + pending: null, + local: null, + localState: null, + indent: l ? [] : null + } + }, + copyState: function(t) { + var n = { + state: t.state, + pending: t.pending, + local: t.local, + localState: null, + indent: t.indent && t.indent.slice(0) + }; + t.localState && (n.localState = e.copyState(t.local.mode, t.localState)), t.stack && (n.stack = t.stack.slice(0)); + for (var r = t.persistentStates; r; r = r.next) n.persistentStates = { + mode: r.mode, + spec: r.spec, + state: r.state == t.localState ? n.localState : e.copyState(r.mode, r.state), + next: n.persistentStates + }; + return n + }, + token: a(o, n), + innerMode: function(e) { + return e.local && { + mode: e.local.mode, + state: e.localState + } + }, + indent: c(o, s) + }; + if (s) + for (var g in s) s.hasOwnProperty(g) && (h[g] = s[g]); + return h + } + }(n(4631)) + }, + 29483: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("apl", (function() { + var e = { + ".": "innerProduct", + "\\": "scan", + "/": "reduce", + "\u233f": "reduce1Axis", + "\u2340": "scan1Axis", + "\xa8": "each", + "\u2363": "power" + }, + t = { + "+": ["conjugate", "add"], + "\u2212": ["negate", "subtract"], + "\xd7": ["signOf", "multiply"], + "\xf7": ["reciprocal", "divide"], + "\u2308": ["ceiling", "greaterOf"], + "\u230a": ["floor", "lesserOf"], + "\u2223": ["absolute", "residue"], + "\u2373": ["indexGenerate", "indexOf"], + "?": ["roll", "deal"], + "\u22c6": ["exponentiate", "toThePowerOf"], + "\u235f": ["naturalLog", "logToTheBase"], + "\u25cb": ["piTimes", "circularFuncs"], + "!": ["factorial", "binomial"], + "\u2339": ["matrixInverse", "matrixDivide"], + "<": [null, "lessThan"], + "\u2264": [null, "lessThanOrEqual"], + "=": [null, "equals"], + ">": [null, "greaterThan"], + "\u2265": [null, "greaterThanOrEqual"], + "\u2260": [null, "notEqual"], + "\u2261": ["depth", "match"], + "\u2262": [null, "notMatch"], + "\u2208": ["enlist", "membership"], + "\u2377": [null, "find"], + "\u222a": ["unique", "union"], + "\u2229": [null, "intersection"], + "\u223c": ["not", "without"], + "\u2228": [null, "or"], + "\u2227": [null, "and"], + "\u2371": [null, "nor"], + "\u2372": [null, "nand"], + "\u2374": ["shapeOf", "reshape"], + ",": ["ravel", "catenate"], + "\u236a": [null, "firstAxisCatenate"], + "\u233d": ["reverse", "rotate"], + "\u2296": ["axis1Reverse", "axis1Rotate"], + "\u2349": ["transpose", null], + "\u2191": ["first", "take"], + "\u2193": [null, "drop"], + "\u2282": ["enclose", "partitionWithAxis"], + "\u2283": ["diclose", "pick"], + "\u2337": [null, "index"], + "\u234b": ["gradeUp", null], + "\u2352": ["gradeDown", null], + "\u22a4": ["encode", null], + "\u22a5": ["decode", null], + "\u2355": ["format", "formatByExample"], + "\u234e": ["execute", null], + "\u22a3": ["stop", "left"], + "\u22a2": ["pass", "right"] + }, + n = /[\.\/\u233f\u2340\xa8\u2363]/, + r = /\u236c/, + i = /[\+\u2212\xd7\xf7\u2308\u230a\u2223\u2373\?\u22c6\u235f\u25cb!\u2339<\u2264=>\u2265\u2260\u2261\u2262\u2208\u2377\u222a\u2229\u223c\u2228\u2227\u2371\u2372\u2374,\u236a\u233d\u2296\u2349\u2191\u2193\u2282\u2283\u2337\u234b\u2352\u22a4\u22a5\u2355\u234e\u22a3\u22a2]/, + a = /\u2190/, + o = /[\u235d#].*$/, + s = function(e) { + var t; + return t = !1, + function(n) { + return t = n, n !== e || "\\" === t + } + }; + return { + startState: function() { + return { + prev: !1, + func: !1, + op: !1, + string: !1, + escape: !1 + } + }, + token: function(l, c) { + var u, d; + return l.eatSpace() ? null : '"' === (u = l.next()) || "'" === u ? (l.eatWhile(s(u)), l.next(), c.prev = !0, "string") : /[\[{\(]/.test(u) ? (c.prev = !1, null) : /[\]}\)]/.test(u) ? (c.prev = !0, null) : r.test(u) ? (c.prev = !1, "niladic") : /[\xaf\d]/.test(u) ? (c.func ? (c.func = !1, c.prev = !1) : c.prev = !0, l.eatWhile(/[\w\.]/), "number") : n.test(u) ? "operator apl-" + e[u] : a.test(u) ? "apl-arrow" : i.test(u) ? (d = "apl-", null != t[u] && (c.prev ? d += t[u][1] : d += t[u][0]), c.func = !0, c.prev = !1, "function " + d) : o.test(u) ? (l.skipToEnd(), "comment") : "\u2218" === u && "." === l.peek() ? (l.next(), "function jot-dot") : (l.eatWhile(/[\w\$_]/), c.prev = !0, "keyword") + } + } + })), e.defineMIME("text/apl", "apl") + }(n(4631)) + }, + 95637: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + var t = e.match(/^\s*\S/); + return e.skipToEnd(), t ? "error" : null + } + e.defineMode("asciiarmor", (function() { + return { + token: function(e, n) { + var r; + if ("top" == n.state) return e.sol() && (r = e.match(/^-----BEGIN (.*)?-----\s*$/)) ? (n.state = "headers", n.type = r[1], "tag") : t(e); + if ("headers" == n.state) { + if (e.sol() && e.match(/^\w+:/)) return n.state = "header", "atom"; + var i = t(e); + return i && (n.state = "body"), i + } + return "header" == n.state ? (e.skipToEnd(), n.state = "headers", "string") : "body" == n.state ? e.sol() && (r = e.match(/^-----END (.*)?-----\s*$/)) ? r[1] != n.type ? "error" : (n.state = "end", "tag") : e.eatWhile(/[A-Za-z0-9+\/=]/) ? null : (e.next(), "error") : "end" == n.state ? t(e) : void 0 + }, + blankLine: function(e) { + "headers" == e.state && (e.state = "body") + }, + startState: function() { + return { + state: "top", + type: null + } + } + } + })), e.defineMIME("application/pgp", "asciiarmor"), e.defineMIME("application/pgp-encrypted", "asciiarmor"), e.defineMIME("application/pgp-keys", "asciiarmor"), e.defineMIME("application/pgp-signature", "asciiarmor") + }(n(4631)) + }, + 97922: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + e.defineMode("asn.1", (function(e, t) { + var n, r = e.indentUnit, + i = t.keywords || {}, + a = t.cmipVerbs || {}, + o = t.compareTypes || {}, + s = t.status || {}, + l = t.tags || {}, + c = t.storage || {}, + u = t.modifier || {}, + d = t.accessTypes || {}, + p = t.multiLineStrings, + f = !1 !== t.indentStatements, + m = /[\|\^]/; + + function h(e, t) { + var r = e.next(); + if ('"' == r || "'" == r) return t.tokenize = g(r), t.tokenize(e, t); + if (/[\[\]\(\){}:=,;]/.test(r)) return n = r, "punctuation"; + if ("-" == r && e.eat("-")) return e.skipToEnd(), "comment"; + if (/\d/.test(r)) return e.eatWhile(/[\w\.]/), "number"; + if (m.test(r)) return e.eatWhile(m), "operator"; + e.eatWhile(/[\w\-]/); + var p = e.current(); + return i.propertyIsEnumerable(p) ? "keyword" : a.propertyIsEnumerable(p) ? "variable cmipVerbs" : o.propertyIsEnumerable(p) ? "atom compareTypes" : s.propertyIsEnumerable(p) ? "comment status" : l.propertyIsEnumerable(p) ? "variable-3 tags" : c.propertyIsEnumerable(p) ? "builtin storage" : u.propertyIsEnumerable(p) ? "string-2 modifier" : d.propertyIsEnumerable(p) ? "atom accessTypes" : "variable" + } + + function g(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + var o = t.peek(); + o && ("b" != (o = o.toLowerCase()) && "h" != o && "o" != o || t.next()), a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !p) && (n.tokenize = null), "string" + } + } + + function b(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function v(e, t, n) { + var r = e.indented; + return e.context && "statement" == e.context.type && (r = e.context.indented), e.context = new b(r, t, n, null, e.context) + } + + function y(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new b((e || 0) - r, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + n = null; + var i = (t.tokenize || h)(e, t); + if ("comment" == i) return i; + if (null == r.align && (r.align = !0), ";" != n && ":" != n && "," != n || "statement" != r.type) + if ("{" == n) v(t, e.column(), "}"); + else if ("[" == n) v(t, e.column(), "]"); + else if ("(" == n) v(t, e.column(), ")"); + else if ("}" == n) { + for (; + "statement" == r.type;) r = y(t); + for ("}" == r.type && (r = y(t)); + "statement" == r.type;) r = y(t) + } else n == r.type ? y(t) : f && (("}" == r.type || "top" == r.type) && ";" != n || "statement" == r.type && "newstatement" == n) && v(t, e.column(), "statement"); + else y(t); + return t.startOfLine = !1, i + }, + electricChars: "{}", + lineComment: "--", + fold: "brace" + } + })), e.defineMIME("text/x-ttcn-asn", { + name: "asn.1", + keywords: t("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"), + cmipVerbs: t("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"), + compareTypes: t("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"), + status: t("current deprecated mandatory obsolete"), + tags: t("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"), + storage: t("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"), + modifier: t("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"), + accessTypes: t("not-accessible accessible-for-notify read-only read-create read-write"), + multiLineStrings: !0 + }) + }(n(4631)) + }, + 31881: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("asterisk", (function() { + var e = ["exten", "same", "include", "ignorepat", "switch"], + t = ["#include", "#exec"], + n = ["addqueuemember", "adsiprog", "aelsub", "agentlogin", "agentmonitoroutgoing", "agi", "alarmreceiver", "amd", "answer", "authenticate", "background", "backgrounddetect", "bridge", "busy", "callcompletioncancel", "callcompletionrequest", "celgenuserevent", "changemonitor", "chanisavail", "channelredirect", "chanspy", "clearhash", "confbridge", "congestion", "continuewhile", "controlplayback", "dahdiacceptr2call", "dahdibarge", "dahdiras", "dahdiscan", "dahdisendcallreroutingfacility", "dahdisendkeypadfacility", "datetime", "dbdel", "dbdeltree", "deadagi", "dial", "dictate", "directory", "disa", "dumpchan", "eagi", "echo", "endwhile", "exec", "execif", "execiftime", "exitwhile", "extenspy", "externalivr", "festival", "flash", "followme", "forkcdr", "getcpeid", "gosub", "gosubif", "goto", "gotoif", "gotoiftime", "hangup", "iax2provision", "ices", "importvar", "incomplete", "ivrdemo", "jabberjoin", "jabberleave", "jabbersend", "jabbersendgroup", "jabberstatus", "jack", "log", "macro", "macroexclusive", "macroexit", "macroif", "mailboxexists", "meetme", "meetmeadmin", "meetmechanneladmin", "meetmecount", "milliwatt", "minivmaccmess", "minivmdelete", "minivmgreet", "minivmmwi", "minivmnotify", "minivmrecord", "mixmonitor", "monitor", "morsecode", "mp3player", "mset", "musiconhold", "nbscat", "nocdr", "noop", "odbc", "odbc", "odbcfinish", "originate", "ospauth", "ospfinish", "osplookup", "ospnext", "page", "park", "parkandannounce", "parkedcall", "pausemonitor", "pausequeuemember", "pickup", "pickupchan", "playback", "playtones", "privacymanager", "proceeding", "progress", "queue", "queuelog", "raiseexception", "read", "readexten", "readfile", "receivefax", "receivefax", "receivefax", "record", "removequeuemember", "resetcdr", "retrydial", "return", "ringing", "sayalpha", "saycountedadj", "saycountednoun", "saycountpl", "saydigits", "saynumber", "sayphonetic", "sayunixtime", "senddtmf", "sendfax", "sendfax", "sendfax", "sendimage", "sendtext", "sendurl", "set", "setamaflags", "setcallerpres", "setmusiconhold", "sipaddheader", "sipdtmfmode", "sipremoveheader", "skel", "slastation", "slatrunk", "sms", "softhangup", "speechactivategrammar", "speechbackground", "speechcreate", "speechdeactivategrammar", "speechdestroy", "speechloadgrammar", "speechprocessingsound", "speechstart", "speechunloadgrammar", "stackpop", "startmusiconhold", "stopmixmonitor", "stopmonitor", "stopmusiconhold", "stopplaytones", "system", "testclient", "testserver", "transfer", "tryexec", "trysystem", "unpausemonitor", "unpausequeuemember", "userevent", "verbose", "vmauthenticate", "vmsayname", "voicemail", "voicemailmain", "wait", "waitexten", "waitfornoise", "waitforring", "waitforsilence", "waitmusiconhold", "waituntil", "while", "zapateller"]; + + function r(n, r) { + var i = "", + a = n.next(); + if (r.blockComment) return "-" == a && n.match("-;", !0) ? r.blockComment = !1 : n.skipTo("--;") ? (n.next(), n.next(), n.next(), r.blockComment = !1) : n.skipToEnd(), "comment"; + if (";" == a) return n.match("--", !0) && !n.match("-", !1) ? (r.blockComment = !0, "comment") : (n.skipToEnd(), "comment"); + if ("[" == a) return n.skipTo("]"), n.eat("]"), "header"; + if ('"' == a) return n.skipTo('"'), "string"; + if ("'" == a) return n.skipTo("'"), "string-2"; + if ("#" == a && (n.eatWhile(/\w/), i = n.current(), -1 !== t.indexOf(i))) return n.skipToEnd(), "strong"; + if ("$" == a && "{" == n.peek()) return n.skipTo("}"), n.eat("}"), "variable-3"; + if (n.eatWhile(/\w/), i = n.current(), -1 !== e.indexOf(i)) { + switch (r.extenStart = !0, i) { + case "same": + r.extenSame = !0; + break; + case "include": + case "switch": + case "ignorepat": + r.extenInclude = !0 + } + return "atom" + } + } + return { + startState: function() { + return { + blockComment: !1, + extenStart: !1, + extenSame: !1, + extenInclude: !1, + extenExten: !1, + extenPriority: !1, + extenApplication: !1 + } + }, + token: function(e, t) { + var i = ""; + return e.eatSpace() ? null : t.extenStart ? (e.eatWhile(/[^\s]/), i = e.current(), /^=>?$/.test(i) ? (t.extenExten = !0, t.extenStart = !1, "strong") : (t.extenStart = !1, e.skipToEnd(), "error")) : t.extenExten ? (t.extenExten = !1, t.extenPriority = !0, e.eatWhile(/[^,]/), t.extenInclude && (e.skipToEnd(), t.extenPriority = !1, t.extenInclude = !1), t.extenSame && (t.extenPriority = !1, t.extenSame = !1, t.extenApplication = !0), "tag") : t.extenPriority ? (t.extenPriority = !1, t.extenApplication = !0, e.next(), t.extenSame ? null : (e.eatWhile(/[^,]/), "number")) : t.extenApplication ? (e.eatWhile(/,/), "," === (i = e.current()) ? null : (e.eatWhile(/\w/), i = e.current().toLowerCase(), t.extenApplication = !1, -1 !== n.indexOf(i) ? "def strong" : null)) : r(e, t) + }, + blockCommentStart: ";--", + blockCommentEnd: "--;", + lineComment: ";" + } + })), e.defineMIME("text/x-asterisk", "asterisk") + }(n(4631)) + }, + 9460: function(e, t, n) { + ! function(e) { + "use strict"; + var t = "><+-.,[]".split(""); + e.defineMode("brainfuck", (function() { + return { + startState: function() { + return { + commentLine: !1, + left: 0, + right: 0, + commentLoop: !1 + } + }, + token: function(e, n) { + if (e.eatSpace()) return null; + e.sol() && (n.commentLine = !1); + var r = e.next().toString(); + return -1 === t.indexOf(r) ? (n.commentLine = !0, e.eol() && (n.commentLine = !1), "comment") : !0 === n.commentLine ? (e.eol() && (n.commentLine = !1), "comment") : "]" === r || "[" === r ? ("[" === r ? n.left++ : n.right++, "bracket") : "+" === r || "-" === r ? "keyword" : "<" === r || ">" === r ? "atom" : "." === r || "," === r ? "def" : void(e.eol() && (n.commentLine = !1)) + } + } + })), e.defineMIME("text/x-brainfuck", "brainfuck") + }(n(4631)) + }, + 99762: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e, t, n, r, i, a) { + this.indented = e, this.column = t, this.type = n, this.info = r, this.align = i, this.prev = a + } + + function n(e, n, r, i) { + var a = e.indented; + return e.context && "statement" == e.context.type && "statement" != r && (a = e.context.indented), e.context = new t(a, n, r, i, null, e.context) + } + + function r(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + + function i(e, t, n) { + return "variable" == t.prevToken || "type" == t.prevToken || !!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0, n)) || !(!t.typeAtEndOfLine || e.column() != e.indentation()) || void 0 + } + + function a(e) { + for (;;) { + if (!e || "top" == e.type) return !0; + if ("}" == e.type && "namespace" != e.prev.info) return !1; + e = e.prev + } + } + + function o(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + + function s(e, t) { + return "function" === typeof e ? e(t) : e.propertyIsEnumerable(t) + } + e.defineMode("clike", (function(o, l) { + var c, u, d = o.indentUnit, + p = l.statementIndentUnit || d, + f = l.dontAlignCalls, + m = l.keywords || {}, + h = l.types || {}, + g = l.builtin || {}, + b = l.blockKeywords || {}, + v = l.defKeywords || {}, + y = l.atoms || {}, + k = l.hooks || {}, + x = l.multiLineStrings, + _ = !1 !== l.indentStatements, + w = !1 !== l.indentSwitch, + E = l.namespaceSeparator, + T = l.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, + S = l.numberStart || /[\d\.]/, + I = l.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, + N = l.isOperatorChar || /[+\-*&%=<>!?|\/]/, + A = l.isIdentifierChar || /[\w\$_\xa1-\uffff]/, + O = l.isReservedIdentifier || !1; + + function C(e, t) { + var n = e.next(); + if (k[n]) { + var r = k[n](e, t); + if (!1 !== r) return r + } + if ('"' == n || "'" == n) return t.tokenize = D(n), t.tokenize(e, t); + if (S.test(n)) { + if (e.backUp(1), e.match(I)) return "number"; + e.next() + } + if (T.test(n)) return c = n, null; + if ("/" == n) { + if (e.eat("*")) return t.tokenize = R, R(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (N.test(n)) { + for (; !e.match(/^\/[\/*]/, !1) && e.eat(N);); + return "operator" + } + if (e.eatWhile(A), E) + for (; e.match(E);) e.eatWhile(A); + var i = e.current(); + return s(m, i) ? (s(b, i) && (c = "newstatement"), s(v, i) && (u = !0), "keyword") : s(h, i) ? "type" : s(g, i) || O && O(i) ? (s(b, i) && (c = "newstatement"), "builtin") : s(y, i) ? "atom" : "variable" + } + + function D(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !x) && (n.tokenize = null), "string" + } + } + + function R(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = null; + break + } + r = "*" == n + } + return "comment" + } + + function M(e, t) { + l.typeFirstDefinitions && e.eol() && a(t.context) && (t.typeAtEndOfLine = i(e, t, e.pos)) + } + return { + startState: function(e) { + return { + tokenize: null, + context: new t((e || 0) - d, 0, "top", null, !1), + indented: 0, + startOfLine: !0, + prevToken: null + } + }, + token: function(e, t) { + var o = t.context; + if (e.sol() && (null == o.align && (o.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return M(e, t), null; + c = u = null; + var s = (t.tokenize || C)(e, t); + if ("comment" == s || "meta" == s) return s; + if (null == o.align && (o.align = !0), ";" == c || ":" == c || "," == c && e.match(/^\s*(?:\/\/.*)?$/, !1)) + for (; + "statement" == t.context.type;) r(t); + else if ("{" == c) n(t, e.column(), "}"); + else if ("[" == c) n(t, e.column(), "]"); + else if ("(" == c) n(t, e.column(), ")"); + else if ("}" == c) { + for (; + "statement" == o.type;) o = r(t); + for ("}" == o.type && (o = r(t)); + "statement" == o.type;) o = r(t) + } else c == o.type ? r(t) : _ && (("}" == o.type || "top" == o.type) && ";" != c || "statement" == o.type && "newstatement" == c) && n(t, e.column(), "statement", e.current()); + if ("variable" == s && ("def" == t.prevToken || l.typeFirstDefinitions && i(e, t, e.start) && a(t.context) && e.match(/^\s*\(/, !1)) && (s = "def"), k.token) { + var d = k.token(e, t, s); + void 0 !== d && (s = d) + } + return "def" == s && !1 === l.styleDefs && (s = "variable"), t.startOfLine = !1, t.prevToken = u ? "def" : s || c, M(e, t), s + }, + indent: function(t, n) { + if (t.tokenize != C && null != t.tokenize || t.typeAtEndOfLine) return e.Pass; + var r = t.context, + i = n && n.charAt(0), + a = i == r.type; + if ("statement" == r.type && "}" == i && (r = r.prev), l.dontIndentStatements) + for (; + "statement" == r.type && l.dontIndentStatements.test(r.info);) r = r.prev; + if (k.indent) { + var o = k.indent(t, r, n, d); + if ("number" == typeof o) return o + } + var s = r.prev && "switch" == r.prev.info; + if (l.allmanIndentation && /[{(]/.test(i)) { + for (; + "top" != r.type && "}" != r.type;) r = r.prev; + return r.indented + } + return "statement" == r.type ? r.indented + ("{" == i ? 0 : p) : !r.align || f && ")" == r.type ? ")" != r.type || a ? r.indented + (a ? 0 : d) + (a || !s || /^(?:case|default)\b/.test(n) ? 0 : d) : r.indented + p : r.column + (a ? 0 : 1) + }, + electricInput: w ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/, + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + lineComment: "//", + fold: "brace" + } + })); + var l = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran", + c = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq", + u = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available", + d = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT", + p = o("int long char short double float unsigned signed void bool"), + f = o("SEL instancetype id Class Protocol BOOL"); + + function m(e) { + return s(p, e) || /.+_t$/.test(e) + } + + function h(e) { + return m(e) || s(f, e) + } + var g = "case do else for if switch while struct enum union", + b = "struct enum union"; + + function v(e, t) { + if (!t.startOfLine) return !1; + for (var n, r = null; n = e.peek();) { + if ("\\" == n && e.match(/^.$/)) { + r = v; + break + } + if ("/" == n && e.match(/^\/[\/\*]/, !1)) break; + e.next() + } + return t.tokenize = r, "meta" + } + + function y(e, t) { + return "type" == t.prevToken && "type" + } + + function k(e) { + return !(!e || e.length < 2) && "_" == e[0] && ("_" == e[1] || e[1] !== e[1].toLowerCase()) + } + + function x(e) { + return e.eatWhile(/[\w\.']/), "number" + } + + function _(e, t) { + if (e.backUp(1), e.match(/^(?:R|u8R|uR|UR|LR)/)) { + var n = e.match(/^"([^\s\\()]{0,16})\(/); + return !!n && (t.cpp11RawStringDelim = n[1], t.tokenize = T, T(e, t)) + } + return e.match(/^(?:u8|u|U|L)/) ? !!e.match(/^["']/, !1) && "string" : (e.next(), !1) + } + + function w(e) { + var t = /(\w+)::~?(\w+)$/.exec(e); + return t && t[1] == t[2] + } + + function E(e, t) { + for (var n; null != (n = e.next());) + if ('"' == n && !e.eat('"')) { + t.tokenize = null; + break + } + return "string" + } + + function T(e, t) { + var n = t.cpp11RawStringDelim.replace(/[^\w\s]/g, "\\$&"); + return e.match(new RegExp(".*?\\)" + n + '"')) ? t.tokenize = null : e.skipToEnd(), "string" + } + + function S(t, n) { + "string" == typeof t && (t = [t]); + var r = []; + + function i(e) { + if (e) + for (var t in e) e.hasOwnProperty(t) && r.push(t) + } + i(n.keywords), i(n.types), i(n.builtin), i(n.atoms), r.length && (n.helperType = t[0], e.registerHelper("hintWords", t[0], r)); + for (var a = 0; a < t.length; ++a) e.defineMIME(t[a], n) + } + + function I(e, t) { + for (var n = !1; !e.eol();) { + if (!n && e.match('"""')) { + t.tokenize = null; + break + } + n = "\\" == e.next() && !n + } + return "string" + } + + function N(e) { + return function(t, n) { + for (var r; r = t.next();) { + if ("*" == r && t.eat("/")) { + if (1 == e) { + n.tokenize = null; + break + } + return n.tokenize = N(e - 1), n.tokenize(t, n) + } + if ("/" == r && t.eat("*")) return n.tokenize = N(e + 1), n.tokenize(t, n) + } + return "comment" + } + } + + function A(e) { + return function(t, n) { + for (var r, i = !1, a = !1; !t.eol();) { + if (!e && !i && t.match('"')) { + a = !0; + break + } + if (e && t.match('"""')) { + a = !0; + break + } + r = t.next(), !i && "$" == r && t.match("{") && t.skipTo("}"), i = !i && "\\" == r && !e + } + return !a && e || (n.tokenize = null), "string" + } + } + S(["text/x-csrc", "text/x-c", "text/x-chdr"], { + name: "clike", + keywords: o(l), + types: m, + blockKeywords: o(g), + defKeywords: o(b), + typeFirstDefinitions: !0, + atoms: o("NULL true false"), + isReservedIdentifier: k, + hooks: { + "#": v, + "*": y + }, + modeProps: { + fold: ["brace", "include"] + } + }), S(["text/x-c++src", "text/x-c++hdr"], { + name: "clike", + keywords: o(l + " " + c), + types: m, + blockKeywords: o(g + " class try catch"), + defKeywords: o(b + " class namespace"), + typeFirstDefinitions: !0, + atoms: o("true false NULL nullptr"), + dontIndentStatements: /^template$/, + isIdentifierChar: /[\w\$_~\xa1-\uffff]/, + isReservedIdentifier: k, + hooks: { + "#": v, + "*": y, + u: _, + U: _, + L: _, + R: _, + 0: x, + 1: x, + 2: x, + 3: x, + 4: x, + 5: x, + 6: x, + 7: x, + 8: x, + 9: x, + token: function(e, t, n) { + if ("variable" == n && "(" == e.peek() && (";" == t.prevToken || null == t.prevToken || "}" == t.prevToken) && w(e.current())) return "def" + } + }, + namespaceSeparator: "::", + modeProps: { + fold: ["brace", "include"] + } + }), S("text/x-java", { + name: "clike", + keywords: o("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"), + types: o("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"), + blockKeywords: o("catch class do else finally for if switch try while"), + defKeywords: o("class interface enum @interface"), + typeFirstDefinitions: !0, + atoms: o("true false null"), + number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i, + hooks: { + "@": function(e) { + return !e.match("interface", !1) && (e.eatWhile(/[\w\$_]/), "meta") + }, + '"': function(e, t) { + return !!e.match(/""$/) && (t.tokenize = I, t.tokenize(e, t)) + } + }, + modeProps: { + fold: ["brace", "import"] + } + }), S("text/x-csharp", { + name: "clike", + keywords: o("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"), + types: o("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"), + blockKeywords: o("catch class do else finally for foreach if struct switch try while"), + defKeywords: o("class interface namespace struct var"), + typeFirstDefinitions: !0, + atoms: o("true false null"), + hooks: { + "@": function(e, t) { + return e.eat('"') ? (t.tokenize = E, E(e, t)) : (e.eatWhile(/[\w\$_]/), "meta") + } + } + }), S("text/x-scala", { + name: "clike", + keywords: o("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"), + types: o("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"), + multiLineStrings: !0, + blockKeywords: o("catch class enum do else finally for forSome if match switch try while"), + defKeywords: o("class enum def object package trait type val var"), + atoms: o("true false null"), + indentStatements: !1, + indentSwitch: !1, + isOperatorChar: /[+\-*&%=<>!?|\/#:@]/, + hooks: { + "@": function(e) { + return e.eatWhile(/[\w\$_]/), "meta" + }, + '"': function(e, t) { + return !!e.match('""') && (t.tokenize = I, t.tokenize(e, t)) + }, + "'": function(e) { + return e.eatWhile(/[\w\$_\xa1-\uffff]/), "atom" + }, + "=": function(e, n) { + var r = n.context; + return !("}" != r.type || !r.align || !e.eat(">")) && (n.context = new t(r.indented, r.column, r.type, r.info, null, r.prev), "operator") + }, + "/": function(e, t) { + return !!e.eat("*") && (t.tokenize = N(1), t.tokenize(e, t)) + } + }, + modeProps: { + closeBrackets: { + pairs: '()[]{}""', + triples: '"' + } + } + }), S("text/x-kotlin", { + name: "clike", + keywords: o("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"), + types: o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"), + intendSwitch: !1, + indentStatements: !1, + multiLineStrings: !0, + number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i, + blockKeywords: o("catch class do else finally for if where try while enum"), + defKeywords: o("class val var object interface fun"), + atoms: o("true false null this"), + hooks: { + "@": function(e) { + return e.eatWhile(/[\w\$_]/), "meta" + }, + "*": function(e, t) { + return "." == t.prevToken ? "variable" : "operator" + }, + '"': function(e, t) { + return t.tokenize = A(e.match('""')), t.tokenize(e, t) + }, + "/": function(e, t) { + return !!e.eat("*") && (t.tokenize = N(1), t.tokenize(e, t)) + }, + indent: function(e, t, n, r) { + var i = n && n.charAt(0); + return "}" != e.prevToken && ")" != e.prevToken || "" != n ? "operator" == e.prevToken && "}" != n && "}" != e.context.type || "variable" == e.prevToken && "." == i || ("}" == e.prevToken || ")" == e.prevToken) && "." == i ? 2 * r + t.indented : t.align && "}" == t.type ? t.indented + (e.context.type == (n || "").charAt(0) ? 0 : r) : void 0 : e.indented + } + }, + modeProps: { + closeBrackets: { + triples: '"' + } + } + }), S(["x-shader/x-vertex", "x-shader/x-fragment"], { + name: "clike", + keywords: o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"), + types: o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"), + blockKeywords: o("for while do if else struct"), + builtin: o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"), + atoms: o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"), + indentSwitch: !1, + hooks: { + "#": v + }, + modeProps: { + fold: ["brace", "include"] + } + }), S("text/x-nesc", { + name: "clike", + keywords: o(l + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"), + types: m, + blockKeywords: o(g), + atoms: o("null true false"), + hooks: { + "#": v + }, + modeProps: { + fold: ["brace", "include"] + } + }), S("text/x-objectivec", { + name: "clike", + keywords: o(l + " " + u), + types: h, + builtin: o(d), + blockKeywords: o(g + " @synthesize @try @catch @finally @autoreleasepool @synchronized"), + defKeywords: o(b + " @interface @implementation @protocol @class"), + dontIndentStatements: /^@.*$/, + typeFirstDefinitions: !0, + atoms: o("YES NO NULL Nil nil true false nullptr"), + isReservedIdentifier: k, + hooks: { + "#": v, + "*": y + }, + modeProps: { + fold: ["brace", "include"] + } + }), S("text/x-objectivec++", { + name: "clike", + keywords: o(l + " " + u + " " + c), + types: h, + builtin: o(d), + blockKeywords: o(g + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"), + defKeywords: o(b + " @interface @implementation @protocol @class class namespace"), + dontIndentStatements: /^@.*$|^template$/, + typeFirstDefinitions: !0, + atoms: o("YES NO NULL Nil nil true false nullptr"), + isReservedIdentifier: k, + hooks: { + "#": v, + "*": y, + u: _, + U: _, + L: _, + R: _, + 0: x, + 1: x, + 2: x, + 3: x, + 4: x, + 5: x, + 6: x, + 7: x, + 8: x, + 9: x, + token: function(e, t, n) { + if ("variable" == n && "(" == e.peek() && (";" == t.prevToken || null == t.prevToken || "}" == t.prevToken) && w(e.current())) return "def" + } + }, + namespaceSeparator: "::", + modeProps: { + fold: ["brace", "include"] + } + }), S("text/x-squirrel", { + name: "clike", + keywords: o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"), + types: m, + blockKeywords: o("case catch class else for foreach if switch try while"), + defKeywords: o("function local class"), + typeFirstDefinitions: !0, + atoms: o("true false null"), + hooks: { + "#": v + }, + modeProps: { + fold: ["brace", "include"] + } + }); + var O = null; + + function C(e) { + return function(t, n) { + for (var r, i = !1, a = !1; !t.eol();) { + if (!i && t.match('"') && ("single" == e || t.match('""'))) { + a = !0; + break + } + if (!i && t.match("``")) { + O = C(e), a = !0; + break + } + r = t.next(), i = "single" == e && !i && "\\" == r + } + return a && (n.tokenize = null), "string" + } + } + S("text/x-ceylon", { + name: "clike", + keywords: o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"), + types: function(e) { + var t = e.charAt(0); + return t === t.toUpperCase() && t !== t.toLowerCase() + }, + blockKeywords: o("case catch class dynamic else finally for function if interface module new object switch try while"), + defKeywords: o("class dynamic function interface module object package value"), + builtin: o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"), + isPunctuationChar: /[\[\]{}\(\),;\:\.`]/, + isOperatorChar: /[+\-*&%=<>!?|^~:\/]/, + numberStart: /[\d#$]/, + number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i, + multiLineStrings: !0, + typeFirstDefinitions: !0, + atoms: o("true false null larger smaller equal empty finished"), + indentSwitch: !1, + styleDefs: !1, + hooks: { + "@": function(e) { + return e.eatWhile(/[\w\$_]/), "meta" + }, + '"': function(e, t) { + return t.tokenize = C(e.match('""') ? "triple" : "single"), t.tokenize(e, t) + }, + "`": function(e, t) { + return !(!O || !e.match("`")) && (t.tokenize = O, O = null, t.tokenize(e, t)) + }, + "'": function(e) { + return e.eatWhile(/[\w\$_\xa1-\uffff]/), "atom" + }, + token: function(e, t, n) { + if (("variable" == n || "type" == n) && "." == t.prevToken) return "variable-2" + } + }, + modeProps: { + fold: ["brace", "import"], + closeBrackets: { + triples: '"' + } + } + }) + }(n(4631)) + }, + 63693: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("clojure", (function(t) { + var n = ["false", "nil", "true"], + r = [".", "catch", "def", "do", "if", "monitor-enter", "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"], + i = ["*", "*'", "*1", "*2", "*3", "*agent*", "*allow-unresolved-vars*", "*assert*", "*clojure-version*", "*command-line-args*", "*compile-files*", "*compile-path*", "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e", "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*", "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*", "*print-level*", "*print-meta*", "*print-namespace-maps*", "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*", "*suppress-read*", "*unchecked-math*", "*use-context-classloader*", "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'", "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode", "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=", "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec", "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch", "agent", "agent-error", "agent-errors", "aget", "alength", "alias", "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors", "and", "any?", "apply", "areduce", "array-map", "as->", "aset", "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float", "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!", "assoc-in", "associative?", "atom", "await", "await-for", "await1", "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and", "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set", "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean", "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*", "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes", "bytes?", "case", "cast", "cat", "char", "char-array", "char-escape-string", "char-name-string", "char?", "chars", "chunk", "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next", "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors", "clojure-version", "coll?", "comment", "commute", "comp", "comparator", "compare", "compare-and-set!", "compile", "complement", "completing", "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons", "constantly", "construct-proxy", "contains?", "count", "counted?", "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?", "declare", "dedupe", "default-data-readers", "definline", "definterface", "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce", "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?", "deliver", "denominator", "deref", "derive", "descendants", "destructure", "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall", "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array", "double?", "doubles", "drop", "drop-last", "drop-while", "eduction", "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq", "error-handler", "error-mode", "eval", "even?", "every-pred", "every?", "ex-data", "ex-info", "extend", "extend-protocol", "extend-type", "extenders", "extends?", "false?", "ffirst", "file-seq", "filter", "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl", "find-protocol-method", "find-var", "first", "flatten", "float", "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil", "for", "force", "format", "frequencies", "future", "future-call", "future-cancel", "future-cancelled?", "future-done?", "future?", "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method", "get-proxy-class", "get-thread-bindings", "get-validator", "group-by", "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll", "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity", "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'", "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?", "int", "int-array", "int?", "integer?", "interleave", "intern", "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate", "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword", "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq", "list", "list*", "list?", "load", "load-file", "load-reader", "load-string", "loaded-libs", "locking", "long", "long-array", "longs", "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy", "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max", "max-key", "memfn", "memoize", "merge", "merge-with", "meta", "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod", "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?", "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?", "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports", "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers", "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest", "num", "number?", "numerator", "object-array", "odd?", "or", "parents", "partial", "partition", "partition-all", "partition-by", "pcalls", "peek", "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?", "pos?", "pr", "pr-str", "prefer-method", "prefers", "primitives-classnames", "print", "print-ctor", "print-dup", "print-method", "print-simple", "print-str", "printf", "println", "println-str", "prn", "prn-str", "promise", "proxy", "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super", "push-thread-bindings", "pvalues", "qualified-ident?", "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int", "rand-nth", "random-sample", "range", "ratio?", "rational?", "rationalize", "re-find", "re-groups", "re-matcher", "re-matches", "re-pattern", "re-seq", "read", "read-line", "read-string", "reader-conditional", "reader-conditional?", "realized?", "record?", "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref", "ref-history-count", "ref-max-history", "ref-min-history", "ref-set", "refer", "refer-clojure", "reify", "release-pending-sends", "rem", "remove", "remove-all-methods", "remove-method", "remove-ns", "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require", "reset!", "reset-meta!", "reset-vals!", "resolve", "rest", "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq", "rsubseq", "run!", "satisfies?", "second", "select-keys", "send", "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence", "sequential?", "set", "set-agent-send-executor!", "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!", "set-validator!", "set?", "short", "short-array", "shorts", "shuffle", "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?", "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort", "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by", "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str", "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers", "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal", "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test", "the-ns", "thread-bound?", "time", "to-array", "to-array-2d", "trampoline", "transduce", "transient", "tree-seq", "true?", "type", "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char", "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int", "unchecked-double", "unchecked-float", "unchecked-inc", "unchecked-inc-int", "unchecked-int", "unchecked-long", "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate", "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short", "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote", "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update", "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals", "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of", "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?", "zipmap"], + a = ["->", "->>", "as->", "binding", "bound-fn", "case", "catch", "comment", "cond", "cond->", "cond->>", "condp", "def", "definterface", "defmethod", "defn", "defmacro", "defprotocol", "defrecord", "defstruct", "deftype", "do", "doseq", "dotimes", "doto", "extend", "extend-protocol", "extend-type", "fn", "for", "future", "if", "if-let", "if-not", "if-some", "let", "letfn", "locking", "loop", "ns", "proxy", "reify", "struct-map", "some->", "some->>", "try", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn"]; + e.registerHelper("hintWords", "clojure", [].concat(n, r, i)); + var o = b(n), + s = b(r), + l = b(i), + c = b(a), + u = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/, + d = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, + p = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, + f = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/; + + function m(e, t) { + if (e.eatSpace() || e.eat(",")) return ["space", null]; + if (e.match(d)) return [null, "number"]; + if (e.match(p)) return [null, "string-2"]; + if (e.eat(/^"/)) return (t.tokenize = h)(e, t); + if (e.eat(/^[(\[{]/)) return ["open", "bracket"]; + if (e.eat(/^[)\]}]/)) return ["close", "bracket"]; + if (e.eat(/^;/)) return e.skipToEnd(), ["space", "comment"]; + if (e.eat(/^[#'@^`~]/)) return [null, "meta"]; + var n = e.match(f), + r = n && n[0]; + return r ? "comment" === r && "(" === t.lastToken ? (t.tokenize = g)(e, t) : v(r, o) || ":" === r.charAt(0) ? ["symbol", "atom"] : v(r, s) || v(r, l) ? ["symbol", "keyword"] : "(" === t.lastToken ? ["symbol", "builtin"] : ["symbol", "variable"] : (e.next(), e.eatWhile((function(e) { + return !v(e, u) + })), [null, "error"]) + } + + function h(e, t) { + for (var n, r = !1; n = e.next();) { + if ('"' === n && !r) { + t.tokenize = m; + break + } + r = !r && "\\" === n + } + return [null, "string"] + } + + function g(e, t) { + for (var n, r = 1; n = e.next();) + if (")" === n && r--, "(" === n && r++, 0 === r) { + e.backUp(1), t.tokenize = m; + break + } + return ["space", "comment"] + } + + function b(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0; + return t + } + + function v(e, t) { + return t instanceof RegExp ? t.test(e) : t instanceof Object ? t.propertyIsEnumerable(e) : void 0 + } + return { + startState: function() { + return { + ctx: { + prev: null, + start: 0, + indentTo: 0 + }, + lastToken: null, + tokenize: m + } + }, + token: function(e, n) { + e.sol() && "number" !== typeof n.ctx.indentTo && (n.ctx.indentTo = n.ctx.start + 1); + var r = n.tokenize(e, n), + i = r[0], + a = r[1], + o = e.current(); + return "space" !== i && ("(" === n.lastToken && null === n.ctx.indentTo ? "symbol" === i && v(o, c) ? n.ctx.indentTo = n.ctx.start + t.indentUnit : n.ctx.indentTo = "next" : "next" === n.ctx.indentTo && (n.ctx.indentTo = e.column()), n.lastToken = o), "open" === i ? n.ctx = { + prev: n.ctx, + start: e.column(), + indentTo: null + } : "close" === i && (n.ctx = n.ctx.prev || n.ctx), a + }, + indent: function(e) { + var t = e.ctx.indentTo; + return "number" === typeof t ? t : e.ctx.start + 1 + }, + closeBrackets: { + pairs: '()[]{}""' + }, + lineComment: ";;" + } + })), e.defineMIME("text/x-clojure", "clojure"), e.defineMIME("text/x-clojurescript", "clojure"), e.defineMIME("application/edn", "clojure") + }(n(4631)) + }, + 33160: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("cmake", (function() { + var e = /({)?[a-zA-Z0-9_]+(})?/; + + function t(e, t) { + for (var n, r, i = !1; !e.eol() && (n = e.next()) != t.pending;) { + if ("$" === n && "\\" != r && '"' == t.pending) { + i = !0; + break + } + r = n + } + return i && e.backUp(1), n == t.pending ? t.continueString = !1 : t.continueString = !0, "string" + } + + function n(n, r) { + var i = n.next(); + return "$" === i ? n.match(e) ? "variable-2" : "variable" : r.continueString ? (n.backUp(1), t(n, r)) : n.match(/(\s+)?\w+\(/) || n.match(/(\s+)?\w+\ \(/) ? (n.backUp(1), "def") : "#" == i ? (n.skipToEnd(), "comment") : "'" == i || '"' == i ? (r.pending = i, t(n, r)) : "(" == i || ")" == i ? "bracket" : i.match(/[0-9]/) ? "number" : (n.eatWhile(/[\w-]/), null) + } + return { + startState: function() { + var e = { + inDefinition: !1, + inInclude: !1, + continueString: !1, + pending: !1 + }; + return e + }, + token: function(e, t) { + return e.eatSpace() ? null : n(e, t) + } + } + })), e.defineMIME("text/x-cmake", "cmake") + }(n(4631)) + }, + 65542: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("cobol", (function() { + var e = "builtin", + t = "comment", + n = "string", + r = "atom", + i = "number", + a = "keyword", + o = "header", + s = "def", + l = "link"; + + function c(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var u = c("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "), + d = c("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "), + p = c("- * ** / + < <= = > >= "), + f = { + digit: /\d/, + digit_or_colon: /[\d:]/, + hex: /[0-9a-f]/i, + sign: /[+-]/, + exponent: /e/i, + keyword_char: /[^\s\(\[\;\)\]]/, + symbol: /[\w*+\-]/ + }; + + function m(e, t) { + return "0" === e && t.eat(/x/i) ? (t.eatWhile(f.hex), !0) : ("+" != e && "-" != e || !f.digit.test(t.peek()) || (t.eat(f.sign), e = t.next()), !!f.digit.test(e) && (t.eat(e), t.eatWhile(f.digit), "." == t.peek() && (t.eat("."), t.eatWhile(f.digit)), t.eat(f.exponent) && (t.eat(f.sign), t.eatWhile(f.digit)), !0)) + } + return { + startState: function() { + return { + indentStack: null, + indentation: 0, + mode: !1 + } + }, + token: function(c, h) { + if (null == h.indentStack && c.sol() && (h.indentation = 6), c.eatSpace()) return null; + var g = null; + if ("string" === h.mode) { + for (var b = !1; null != (b = c.next());) + if (('"' == b || "'" == b) && !c.match(/['"]/, !1)) { + h.mode = !1; + break + } + g = n + } else { + var v = c.next(), + y = c.column(); + if (y >= 0 && y <= 5) g = s; + else if (y >= 72 && y <= 79) c.skipToEnd(), g = o; + else if ("*" == v && 6 == y) c.skipToEnd(), g = t; + else if ('"' == v || "'" == v) h.mode = "string", g = n; + else if ("'" != v || f.digit_or_colon.test(c.peek())) + if ("." == v) g = l; + else if (m(v, c)) g = i; + else { + if (c.current().match(f.symbol)) + for (; y < 71 && void 0 !== c.eat(f.symbol);) y++; + g = d && d.propertyIsEnumerable(c.current().toUpperCase()) ? a : p && p.propertyIsEnumerable(c.current().toUpperCase()) ? e : u && u.propertyIsEnumerable(c.current().toUpperCase()) ? r : null + } else g = r + } + return g + }, + indent: function(e) { + return null == e.indentStack ? e.indentation : e.indentStack.indent + } + } + })), e.defineMIME("text/x-cobol", "cobol") + }(n(4631)) + }, + 90044: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("coffeescript", (function(e, t) { + var n = "error"; + + function r(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + } + var i = /^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/, + a = /^(?:[()\[\]{},:`=;]|\.\.?\.?)/, + o = /^[_A-Za-z$][_A-Za-z$0-9]*/, + s = /^@[_A-Za-z$][_A-Za-z$0-9]*/, + l = r(["and", "or", "not", "is", "isnt", "in", "instanceof", "typeof"]), + c = ["for", "while", "loop", "if", "unless", "else", "switch", "try", "catch", "finally", "class"], + u = ["break", "by", "continue", "debugger", "delete", "do", "in", "of", "new", "return", "then", "this", "@", "throw", "when", "until", "extends"], + d = r(c.concat(u)); + c = r(c); + var p = /^('{3}|\"{3}|['\"])/, + f = /^(\/{3}|\/)/, + m = r(["Infinity", "NaN", "undefined", "null", "true", "false", "on", "off", "yes", "no"]); + + function h(e, t) { + if (e.sol()) { + null === t.scope.align && (t.scope.align = !1); + var r = t.scope.offset; + if (e.eatSpace()) { + var c = e.indentation(); + return c > r && "coffee" == t.scope.type ? "indent" : c < r ? "dedent" : null + } + r > 0 && y(e, t) + } + if (e.eatSpace()) return null; + var u = e.peek(); + if (e.match("####")) return e.skipToEnd(), "comment"; + if (e.match("###")) return t.tokenize = b, t.tokenize(e, t); + if ("#" === u) return e.skipToEnd(), "comment"; + if (e.match(/^-?[0-9\.]/, !1)) { + var h = !1; + if (e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i) && (h = !0), e.match(/^-?\d+\.\d*/) && (h = !0), e.match(/^-?\.\d+/) && (h = !0), h) return "." == e.peek() && e.backUp(1), "number"; + var v = !1; + if (e.match(/^-?0x[0-9a-f]+/i) && (v = !0), e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/) && (v = !0), e.match(/^-?0(?![\dx])/i) && (v = !0), v) return "number" + } + if (e.match(p)) return t.tokenize = g(e.current(), !1, "string"), t.tokenize(e, t); + if (e.match(f)) { + if ("/" != e.current() || e.match(/^.*\//, !1)) return t.tokenize = g(e.current(), !0, "string-2"), t.tokenize(e, t); + e.backUp(1) + } + return e.match(i) || e.match(l) ? "operator" : e.match(a) ? "punctuation" : e.match(m) ? "atom" : e.match(s) || t.prop && e.match(o) ? "property" : e.match(d) ? "keyword" : e.match(o) ? "variable" : (e.next(), n) + } + + function g(e, r, i) { + return function(a, o) { + for (; !a.eol();) + if (a.eatWhile(/[^'"\/\\]/), a.eat("\\")) { + if (a.next(), r && a.eol()) return i + } else { + if (a.match(e)) return o.tokenize = h, i; + a.eat(/['"\/]/) + } + return r && (t.singleLineStringErrors ? i = n : o.tokenize = h), i + } + } + + function b(e, t) { + for (; !e.eol();) { + if (e.eatWhile(/[^#]/), e.match("###")) { + t.tokenize = h; + break + } + e.eatWhile("#") + } + return "comment" + } + + function v(t, n, r) { + r = r || "coffee"; + for (var i = 0, a = !1, o = null, s = n.scope; s; s = s.prev) + if ("coffee" === s.type || "}" == s.type) { + i = s.offset + e.indentUnit; + break + } + "coffee" !== r ? (a = null, o = t.column() + t.current().length) : n.scope.align && (n.scope.align = !1), n.scope = { + offset: i, + type: r, + prev: n.scope, + align: a, + alignOffset: o + } + } + + function y(e, t) { + if (t.scope.prev) { + if ("coffee" === t.scope.type) { + for (var n = e.indentation(), r = !1, i = t.scope; i; i = i.prev) + if (n === i.offset) { + r = !0; + break + } + if (!r) return !0; + for (; t.scope.prev && t.scope.offset !== n;) t.scope = t.scope.prev; + return !1 + } + return t.scope = t.scope.prev, !1 + } + } + + function k(e, t) { + var r = t.tokenize(e, t), + i = e.current(); + "return" === i && (t.dedent = !0), (("->" === i || "=>" === i) && e.eol() || "indent" === r) && v(e, t); + var a = "[({".indexOf(i); + if (-1 !== a && v(e, t, "])}".slice(a, a + 1)), c.exec(i) && v(e, t), "then" == i && y(e, t), "dedent" === r && y(e, t)) return n; + if (-1 !== (a = "])}".indexOf(i))) { + for (; + "coffee" == t.scope.type && t.scope.prev;) t.scope = t.scope.prev; + t.scope.type == i && (t.scope = t.scope.prev) + } + return t.dedent && e.eol() && ("coffee" == t.scope.type && t.scope.prev && (t.scope = t.scope.prev), t.dedent = !1), r + } + return { + startState: function(e) { + return { + tokenize: h, + scope: { + offset: e || 0, + type: "coffee", + prev: null, + align: !1 + }, + prop: !1, + dedent: 0 + } + }, + token: function(e, t) { + var n = null === t.scope.align && t.scope; + n && e.sol() && (n.align = !1); + var r = k(e, t); + return r && "comment" != r && (n && (n.align = !0), t.prop = "punctuation" == r && "." == e.current()), r + }, + indent: function(e, t) { + if (e.tokenize != h) return 0; + var n = e.scope, + r = t && "])}".indexOf(t.charAt(0)) > -1; + if (r) + for (; + "coffee" == n.type && n.prev;) n = n.prev; + var i = r && n.type === t.charAt(0); + return n.align ? n.alignOffset - (i ? 1 : 0) : (i ? n.prev : n).offset + }, + lineComment: "#", + fold: "indent" + } + })), e.defineMIME("application/vnd.coffeescript", "coffeescript"), e.defineMIME("text/x-coffeescript", "coffeescript"), e.defineMIME("text/coffeescript", "coffeescript") + }(n(4631)) + }, + 29073: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("commonlisp", (function(e) { + var t, n = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/, + r = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/, + i = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/, + a = /[^\s'`,@()\[\]";]/; + + function o(e) { + for (var t; t = e.next();) + if ("\\" == t) e.next(); + else if (!a.test(t)) { + e.backUp(1); + break + } + return e.current() + } + + function s(e, a) { + if (e.eatSpace()) return t = "ws", null; + if (e.match(i)) return "number"; + var s; + if ("\\" == (s = e.next()) && (s = e.next()), '"' == s) return (a.tokenize = l)(e, a); + if ("(" == s) return t = "open", "bracket"; + if (")" == s || "]" == s) return t = "close", "bracket"; + if (";" == s) return e.skipToEnd(), t = "ws", "comment"; + if (/['`,@]/.test(s)) return null; + if ("|" == s) return e.skipTo("|") ? (e.next(), "symbol") : (e.skipToEnd(), "error"); + if ("#" == s) return "(" == (s = e.next()) ? (t = "open", "bracket") : /[+\-=\.']/.test(s) || /\d/.test(s) && e.match(/^\d*#/) ? null : "|" == s ? (a.tokenize = c)(e, a) : ":" == s ? (o(e), "meta") : "\\" == s ? (e.next(), o(e), "string-2") : "error"; + var u = o(e); + return "." == u ? null : (t = "symbol", "nil" == u || "t" == u || ":" == u.charAt(0) ? "atom" : "open" == a.lastType && (n.test(u) || r.test(u)) ? "keyword" : "&" == u.charAt(0) ? "variable-2" : "variable") + } + + function l(e, t) { + for (var n, r = !1; n = e.next();) { + if ('"' == n && !r) { + t.tokenize = s; + break + } + r = !r && "\\" == n + } + return "string" + } + + function c(e, n) { + for (var r, i; r = e.next();) { + if ("#" == r && "|" == i) { + n.tokenize = s; + break + } + i = r + } + return t = "ws", "comment" + } + return { + startState: function() { + return { + ctx: { + prev: null, + start: 0, + indentTo: 0 + }, + lastType: null, + tokenize: s + } + }, + token: function(n, i) { + n.sol() && "number" != typeof i.ctx.indentTo && (i.ctx.indentTo = i.ctx.start + 1), t = null; + var a = i.tokenize(n, i); + return "ws" != t && (null == i.ctx.indentTo ? "symbol" == t && r.test(n.current()) ? i.ctx.indentTo = i.ctx.start + e.indentUnit : i.ctx.indentTo = "next" : "next" == i.ctx.indentTo && (i.ctx.indentTo = n.column()), i.lastType = t), "open" == t ? i.ctx = { + prev: i.ctx, + start: n.column(), + indentTo: null + } : "close" == t && (i.ctx = i.ctx.prev || i.ctx), a + }, + indent: function(e, t) { + var n = e.ctx.indentTo; + return "number" == typeof n ? n : e.ctx.start + 1 + }, + closeBrackets: { + pairs: '()[]{}""' + }, + lineComment: ";;", + fold: "brace-paren", + blockCommentStart: "#|", + blockCommentEnd: "|#" + } + })), e.defineMIME("text/x-common-lisp", "commonlisp") + }(n(4631)) + }, + 76149: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("crystal", (function(e) { + function t(e, t) { + return new RegExp((t ? "" : "^") + "(?:" + e.join("|") + ")" + (t ? "$" : "\\b")) + } + + function n(e, t, n) { + return n.tokenize.push(e), e(t, n) + } + var r = /^(?:[-+/%|&^]|\*\*?|[<>]{2})/, + i = /^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/, + a = /^(?:\[\][?=]?)/, + o = /^(?:\.(?:\.{2})?|->|[?:])/, + s = /^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/, + l = /^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/, + c = t(["abstract", "alias", "as", "asm", "begin", "break", "case", "class", "def", "do", "else", "elsif", "end", "ensure", "enum", "extend", "for", "fun", "if", "include", "instance_sizeof", "lib", "macro", "module", "next", "of", "out", "pointerof", "private", "protected", "rescue", "return", "require", "select", "sizeof", "struct", "super", "then", "type", "typeof", "uninitialized", "union", "unless", "until", "when", "while", "with", "yield", "__DIR__", "__END_LINE__", "__FILE__", "__LINE__"]), + u = t(["true", "false", "nil", "self"]), + d = t(["def", "fun", "macro", "class", "module", "struct", "lib", "enum", "union", "do", "for"]), + p = t(["if", "unless", "case", "while", "until", "begin", "then"]), + f = ["end", "else", "elsif", "rescue", "ensure"], + m = t(f), + h = ["\\)", "\\}", "\\]"], + g = new RegExp("^(?:" + h.join("|") + ")$"), + b = { + def: w, + fun: w, + macro: _, + class: E, + module: E, + struct: E, + lib: E, + enum: E, + union: E + }, + v = { + "[": "]", + "{": "}", + "(": ")", + "<": ">" + }; + + function y(e, t) { + if (e.eatSpace()) return null; + if ("\\" != t.lastToken && e.match("{%", !1)) return n(x("%", "%"), e, t); + if ("\\" != t.lastToken && e.match("{{", !1)) return n(x("{", "}"), e, t); + if ("#" == e.peek()) return e.skipToEnd(), "comment"; + var f; + if (e.match(s)) return e.eat(/[?!]/), f = e.current(), e.eat(":") ? "atom" : "." == t.lastToken ? "property" : c.test(f) ? (d.test(f) ? "fun" == f && t.blocks.indexOf("lib") >= 0 || "def" == f && "abstract" == t.lastToken || (t.blocks.push(f), t.currentIndent += 1) : "operator" != t.lastStyle && t.lastStyle || !p.test(f) ? "end" == f && (t.blocks.pop(), t.currentIndent -= 1) : (t.blocks.push(f), t.currentIndent += 1), b.hasOwnProperty(f) && t.tokenize.push(b[f]), "keyword") : u.test(f) ? "atom" : "variable"; + if (e.eat("@")) return "[" == e.peek() ? n(k("[", "]", "meta"), e, t) : (e.eat("@"), e.match(s) || e.match(l), "variable-2"); + if (e.match(l)) return "tag"; + if (e.eat(":")) return e.eat('"') ? n(T('"', "atom", !1), e, t) : e.match(s) || e.match(l) || e.match(r) || e.match(i) || e.match(a) ? "atom" : (e.eat(":"), "operator"); + if (e.eat('"')) return n(T('"', "string", !0), e, t); + if ("%" == e.peek()) { + var m, h = "string", + g = !0; + if (e.match("%r")) h = "string-2", m = e.next(); + else if (e.match("%w")) g = !1, m = e.next(); + else if (e.match("%q")) g = !1, m = e.next(); + else if (m = e.match(/^%([^\w\s=])/)) m = m[1]; + else { + if (e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)) return "meta"; + if (e.eat("%")) return "operator" + } + return v.hasOwnProperty(m) && (m = v[m]), n(T(m, h, g), e, t) + } + return (f = e.match(/^<<-('?)([A-Z]\w*)\1/)) ? n(S(f[2], !f[1]), e, t) : e.eat("'") ? (e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/), e.eat("'"), "atom") : e.eat("0") ? (e.eat("x") ? e.match(/^[0-9a-fA-F_]+/) : e.eat("o") ? e.match(/^[0-7_]+/) : e.eat("b") && e.match(/^[01_]+/), "number") : e.eat(/^\d/) ? (e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/), "number") : e.match(r) ? (e.eat("="), "operator") : e.match(i) || e.match(o) ? "operator" : (f = e.match(/[({[]/, !1)) ? n(k(f = f[0], v[f], null), e, t) : e.eat("\\") ? (e.next(), "meta") : (e.next(), null) + } + + function k(e, t, n, r) { + return function(i, a) { + if (!r && i.match(e)) return a.tokenize[a.tokenize.length - 1] = k(e, t, n, !0), a.currentIndent += 1, n; + var o = y(i, a); + return i.current() === t && (a.tokenize.pop(), a.currentIndent -= 1, o = n), o + } + } + + function x(e, t, n) { + return function(r, i) { + return !n && r.match("{" + e) ? (i.currentIndent += 1, i.tokenize[i.tokenize.length - 1] = x(e, t, !0), "meta") : r.match(t + "}") ? (i.currentIndent -= 1, i.tokenize.pop(), "meta") : y(r, i) + } + } + + function _(e, t) { + if (e.eatSpace()) return null; + var n; + if (n = e.match(s)) { + if ("def" == n) return "keyword"; + e.eat(/[?!]/) + } + return t.tokenize.pop(), "def" + } + + function w(e, t) { + return e.eatSpace() ? null : (e.match(s) ? e.eat(/[!?]/) : e.match(r) || e.match(i) || e.match(a), t.tokenize.pop(), "def") + } + + function E(e, t) { + return e.eatSpace() ? null : (e.match(l), t.tokenize.pop(), "def") + } + + function T(e, t, n) { + return function(r, i) { + for (var a = !1; r.peek();) + if (a) r.next(), a = !1; + else { + if (r.match("{%", !1)) return i.tokenize.push(x("%", "%")), t; + if (r.match("{{", !1)) return i.tokenize.push(x("{", "}")), t; + if (n && r.match("#{", !1)) return i.tokenize.push(k("#{", "}", "meta")), t; + var o = r.next(); + if (o == e) return i.tokenize.pop(), t; + a = n && "\\" == o + } + return t + } + } + + function S(e, t) { + return function(n, r) { + if (n.sol() && (n.eatSpace(), n.match(e))) return r.tokenize.pop(), "string"; + for (var i = !1; n.peek();) + if (i) n.next(), i = !1; + else { + if (n.match("{%", !1)) return r.tokenize.push(x("%", "%")), "string"; + if (n.match("{{", !1)) return r.tokenize.push(x("{", "}")), "string"; + if (t && n.match("#{", !1)) return r.tokenize.push(k("#{", "}", "meta")), "string"; + i = t && "\\" == n.next() + } + return "string" + } + } + return { + startState: function() { + return { + tokenize: [y], + currentIndent: 0, + lastToken: null, + lastStyle: null, + blocks: [] + } + }, + token: function(e, t) { + var n = t.tokenize[t.tokenize.length - 1](e, t), + r = e.current(); + return n && "comment" != n && (t.lastToken = r, t.lastStyle = n), n + }, + indent: function(t, n) { + return n = n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g, ""), m.test(n) || g.test(n) ? e.indentUnit * (t.currentIndent - 1) : e.indentUnit * t.currentIndent + }, + fold: "indent", + electricInput: t(h.concat(f), !0), + lineComment: "#" + } + })), e.defineMIME("text/x-crystal", "crystal") + }(n(4631)) + }, + 36629: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n].toLowerCase()] = !0; + return t + } + e.defineMode("css", (function(t, n) { + var r = n.inline; + n.propertyKeywords || (n = e.resolveMode("text/css")); + var i, a, o = t.indentUnit, + s = n.tokenHooks, + l = n.documentTypes || {}, + c = n.mediaTypes || {}, + u = n.mediaFeatures || {}, + d = n.mediaValueKeywords || {}, + p = n.propertyKeywords || {}, + f = n.nonStandardPropertyKeywords || {}, + m = n.fontProperties || {}, + h = n.counterDescriptors || {}, + g = n.colorKeywords || {}, + b = n.valueKeywords || {}, + v = n.allowNested, + y = n.lineComment, + k = !0 === n.supportsAtComponent, + x = !1 !== t.highlightNonStandardPropertyKeywords; + + function _(e, t) { + return i = t, e + } + + function w(e, t) { + var n = e.next(); + if (s[n]) { + var r = s[n](e, t); + if (!1 !== r) return r + } + return "@" == n ? (e.eatWhile(/[\w\\\-]/), _("def", e.current())) : "=" == n || ("~" == n || "|" == n) && e.eat("=") ? _(null, "compare") : '"' == n || "'" == n ? (t.tokenize = E(n), t.tokenize(e, t)) : "#" == n ? (e.eatWhile(/[\w\\\-]/), _("atom", "hash")) : "!" == n ? (e.match(/^\s*\w*/), _("keyword", "important")) : /\d/.test(n) || "." == n && e.eat(/\d/) ? (e.eatWhile(/[\w.%]/), _("number", "unit")) : "-" !== n ? /[,+>*\/]/.test(n) ? _(null, "select-op") : "." == n && e.match(/^-?[_a-z][_a-z0-9-]*/i) ? _("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(n) ? _(null, n) : e.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(e.current()) && (t.tokenize = T), _("variable callee", "variable")) : /[\w\\\-]/.test(n) ? (e.eatWhile(/[\w\\\-]/), _("property", "word")) : _(null, null) : /[\d.]/.test(e.peek()) ? (e.eatWhile(/[\w.%]/), _("number", "unit")) : e.match(/^-[\w\\\-]*/) ? (e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? _("variable-2", "variable-definition") : _("variable-2", "variable")) : e.match(/^\w+-/) ? _("meta", "meta") : void 0 + } + + function E(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next());) { + if (r == e && !i) { + ")" == e && t.backUp(1); + break + } + i = !i && "\\" == r + } + return (r == e || !i && ")" != e) && (n.tokenize = null), _("string", "string") + } + } + + function T(e, t) { + return e.next(), e.match(/^\s*[\"\')]/, !1) ? t.tokenize = null : t.tokenize = E(")"), _(null, "(") + } + + function S(e, t, n) { + this.type = e, this.indent = t, this.prev = n + } + + function I(e, t, n, r) { + return e.context = new S(n, t.indentation() + (!1 === r ? 0 : o), e.context), n + } + + function N(e) { + return e.context.prev && (e.context = e.context.prev), e.context.type + } + + function A(e, t, n) { + return D[n.context.type](e, t, n) + } + + function O(e, t, n, r) { + for (var i = r || 1; i > 0; i--) n.context = n.context.prev; + return A(e, t, n) + } + + function C(e) { + var t = e.current().toLowerCase(); + a = b.hasOwnProperty(t) ? "atom" : g.hasOwnProperty(t) ? "keyword" : "variable" + } + var D = { + top: function(e, t, n) { + if ("{" == e) return I(n, t, "block"); + if ("}" == e && n.context.prev) return N(n); + if (k && /@component/i.test(e)) return I(n, t, "atComponentBlock"); + if (/^@(-moz-)?document$/i.test(e)) return I(n, t, "documentTypes"); + if (/^@(media|supports|(-moz-)?document|import)$/i.test(e)) return I(n, t, "atBlock"); + if (/^@(font-face|counter-style)/i.test(e)) return n.stateArg = e, "restricted_atBlock_before"; + if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)) return "keyframes"; + if (e && "@" == e.charAt(0)) return I(n, t, "at"); + if ("hash" == e) a = "builtin"; + else if ("word" == e) a = "tag"; + else { + if ("variable-definition" == e) return "maybeprop"; + if ("interpolation" == e) return I(n, t, "interpolation"); + if (":" == e) return "pseudo"; + if (v && "(" == e) return I(n, t, "parens") + } + return n.context.type + }, + block: function(e, t, n) { + if ("word" == e) { + var r = t.current().toLowerCase(); + return p.hasOwnProperty(r) ? (a = "property", "maybeprop") : f.hasOwnProperty(r) ? (a = x ? "string-2" : "property", "maybeprop") : v ? (a = t.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (a += " error", "maybeprop") + } + return "meta" == e ? "block" : v || "hash" != e && "qualifier" != e ? D.top(e, t, n) : (a = "error", "block") + }, + maybeprop: function(e, t, n) { + return ":" == e ? I(n, t, "prop") : A(e, t, n) + }, + prop: function(e, t, n) { + if (";" == e) return N(n); + if ("{" == e && v) return I(n, t, "propBlock"); + if ("}" == e || "{" == e) return O(e, t, n); + if ("(" == e) return I(n, t, "parens"); + if ("hash" != e || /^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())) { + if ("word" == e) C(t); + else if ("interpolation" == e) return I(n, t, "interpolation") + } else a += " error"; + return "prop" + }, + propBlock: function(e, t, n) { + return "}" == e ? N(n) : "word" == e ? (a = "property", "maybeprop") : n.context.type + }, + parens: function(e, t, n) { + return "{" == e || "}" == e ? O(e, t, n) : ")" == e ? N(n) : "(" == e ? I(n, t, "parens") : "interpolation" == e ? I(n, t, "interpolation") : ("word" == e && C(t), "parens") + }, + pseudo: function(e, t, n) { + return "meta" == e ? "pseudo" : "word" == e ? (a = "variable-3", n.context.type) : A(e, t, n) + }, + documentTypes: function(e, t, n) { + return "word" == e && l.hasOwnProperty(t.current()) ? (a = "tag", n.context.type) : D.atBlock(e, t, n) + }, + atBlock: function(e, t, n) { + if ("(" == e) return I(n, t, "atBlock_parens"); + if ("}" == e || ";" == e) return O(e, t, n); + if ("{" == e) return N(n) && I(n, t, v ? "block" : "top"); + if ("interpolation" == e) return I(n, t, "interpolation"); + if ("word" == e) { + var r = t.current().toLowerCase(); + a = "only" == r || "not" == r || "and" == r || "or" == r ? "keyword" : c.hasOwnProperty(r) ? "attribute" : u.hasOwnProperty(r) ? "property" : d.hasOwnProperty(r) ? "keyword" : p.hasOwnProperty(r) ? "property" : f.hasOwnProperty(r) ? x ? "string-2" : "property" : b.hasOwnProperty(r) ? "atom" : g.hasOwnProperty(r) ? "keyword" : "error" + } + return n.context.type + }, + atComponentBlock: function(e, t, n) { + return "}" == e ? O(e, t, n) : "{" == e ? N(n) && I(n, t, v ? "block" : "top", !1) : ("word" == e && (a = "error"), n.context.type) + }, + atBlock_parens: function(e, t, n) { + return ")" == e ? N(n) : "{" == e || "}" == e ? O(e, t, n, 2) : D.atBlock(e, t, n) + }, + restricted_atBlock_before: function(e, t, n) { + return "{" == e ? I(n, t, "restricted_atBlock") : "word" == e && "@counter-style" == n.stateArg ? (a = "variable", "restricted_atBlock_before") : A(e, t, n) + }, + restricted_atBlock: function(e, t, n) { + return "}" == e ? (n.stateArg = null, N(n)) : "word" == e ? (a = "@font-face" == n.stateArg && !m.hasOwnProperty(t.current().toLowerCase()) || "@counter-style" == n.stateArg && !h.hasOwnProperty(t.current().toLowerCase()) ? "error" : "property", "maybeprop") : "restricted_atBlock" + }, + keyframes: function(e, t, n) { + return "word" == e ? (a = "variable", "keyframes") : "{" == e ? I(n, t, "top") : A(e, t, n) + }, + at: function(e, t, n) { + return ";" == e ? N(n) : "{" == e || "}" == e ? O(e, t, n) : ("word" == e ? a = "tag" : "hash" == e && (a = "builtin"), "at") + }, + interpolation: function(e, t, n) { + return "}" == e ? N(n) : "{" == e || ";" == e ? O(e, t, n) : ("word" == e ? a = "variable" : "variable" != e && "(" != e && ")" != e && (a = "error"), "interpolation") + } + }; + return { + startState: function(e) { + return { + tokenize: null, + state: r ? "block" : "top", + stateArg: null, + context: new S(r ? "block" : "top", e || 0, null) + } + }, + token: function(e, t) { + if (!t.tokenize && e.eatSpace()) return null; + var n = (t.tokenize || w)(e, t); + return n && "object" == typeof n && (i = n[1], n = n[0]), a = n, "comment" != i && (t.state = D[t.state](i, e, t)), a + }, + indent: function(e, t) { + var n = e.context, + r = t && t.charAt(0), + i = n.indent; + return "prop" != n.type || "}" != r && ")" != r || (n = n.prev), n.prev && ("}" != r || "block" != n.type && "top" != n.type && "interpolation" != n.type && "restricted_atBlock" != n.type ? (")" != r || "parens" != n.type && "atBlock_parens" != n.type) && ("{" != r || "at" != n.type && "atBlock" != n.type) || (i = Math.max(0, n.indent - o)) : i = (n = n.prev).indent), i + }, + electricChars: "}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + lineComment: y, + fold: "brace" + } + })); + var n = ["domain", "regexp", "url", "url-prefix"], + r = t(n), + i = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], + a = t(i), + o = ["width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "orientation", "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio", "pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme", "dynamic-range", "video-dynamic-range"], + s = t(o), + l = ["landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover", "interlace", "progressive", "dark", "light", "standard", "high"], + c = t(l), + u = ["align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "all", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "block-size", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "gap", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "left", "letter-spacing", "line-break", "line-height", "line-height-step", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotate", "rotation", "rotation-point", "row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-type", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-orientation", "text-outline", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index", "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode"], + d = t(u), + p = ["accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "content-visibility", "margin-block", "margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end", "margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end", "padding-block-start", "padding-inline", "padding-inline-end", "padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color", "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"], + f = t(p), + m = t(["font-display", "font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"]), + h = t(["additive-symbols", "fallback", "negative", "pad", "prefix", "range", "speak-as", "suffix", "symbols", "system"]), + g = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"], + b = t(g), + v = ["above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse", "compact", "condensed", "conic-gradient", "contain", "content", "contents", "content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "difference", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew", "help", "hidden", "hide", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d", "media-play-button", "media-slider", "media-sliderthumb", "media-volume-slider", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"], + y = t(v), + k = n.concat(i).concat(o).concat(l).concat(u).concat(p).concat(g).concat(v); + + function x(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (r && "/" == n) { + t.tokenize = null; + break + } + r = "*" == n + } + return ["comment", "comment"] + } + e.registerHelper("hintWords", "css", k), e.defineMIME("text/css", { + documentTypes: r, + mediaTypes: a, + mediaFeatures: s, + mediaValueKeywords: c, + propertyKeywords: d, + nonStandardPropertyKeywords: f, + fontProperties: m, + counterDescriptors: h, + colorKeywords: b, + valueKeywords: y, + tokenHooks: { + "/": function(e, t) { + return !!e.eat("*") && (t.tokenize = x, x(e, t)) + } + }, + name: "css" + }), e.defineMIME("text/x-scss", { + mediaTypes: a, + mediaFeatures: s, + mediaValueKeywords: c, + propertyKeywords: d, + nonStandardPropertyKeywords: f, + colorKeywords: b, + valueKeywords: y, + fontProperties: m, + allowNested: !0, + lineComment: "//", + tokenHooks: { + "/": function(e, t) { + return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = x, x(e, t)) : ["operator", "operator"] + }, + ":": function(e) { + return !!e.match(/^\s*\{/, !1) && [null, null] + }, + $: function(e) { + return e.match(/^[\w-]+/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"] + }, + "#": function(e) { + return !!e.eat("{") && [null, "interpolation"] + } + }, + name: "css", + helperType: "scss" + }), e.defineMIME("text/x-less", { + mediaTypes: a, + mediaFeatures: s, + mediaValueKeywords: c, + propertyKeywords: d, + nonStandardPropertyKeywords: f, + colorKeywords: b, + valueKeywords: y, + fontProperties: m, + allowNested: !0, + lineComment: "//", + tokenHooks: { + "/": function(e, t) { + return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = x, x(e, t)) : ["operator", "operator"] + }, + "@": function(e) { + return e.eat("{") ? [null, "interpolation"] : !e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, !1) && (e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"]) + }, + "&": function() { + return ["atom", "atom"] + } + }, + name: "css", + helperType: "less" + }), e.defineMIME("text/x-gss", { + documentTypes: r, + mediaTypes: a, + mediaFeatures: s, + propertyKeywords: d, + nonStandardPropertyKeywords: f, + fontProperties: m, + counterDescriptors: h, + colorKeywords: b, + valueKeywords: y, + supportsAtComponent: !0, + tokenHooks: { + "/": function(e, t) { + return !!e.eat("*") && (t.tokenize = x, x(e, t)) + } + }, + name: "css", + helperType: "gss" + }) + }(n(4631)) + }, + 88441: function(e, t, n) { + ! function(e) { + "use strict"; + var t = function(e) { + return new RegExp("^(?:" + e.join("|") + ")$", "i") + }; + e.defineMode("cypher", (function(n) { + var r, i = function(e) { + r = null; + var t = e.next(); + if ('"' === t) return e.match(/^[^"]*"/), "string"; + if ("'" === t) return e.match(/^[^']*'/), "string"; + if (/[{}\(\),\.;\[\]]/.test(t)) return r = t, "node"; + if ("/" === t && e.eat("/")) return e.skipToEnd(), "comment"; + if (p.test(t)) return e.eatWhile(p), null; + if (e.eatWhile(/[_\w\d]/), e.eat(":")) return e.eatWhile(/[\w\d_\-]/), "atom"; + var n = e.current(); + return l.test(n) ? "builtin" : c.test(n) ? "def" : u.test(n) || d.test(n) ? "keyword" : "variable" + }, + a = function(e, t, n) { + return e.context = { + prev: e.context, + indent: e.indent, + col: n, + type: t + } + }, + o = function(e) { + return e.indent = e.context.indent, e.context = e.context.prev + }, + s = n.indentUnit, + l = t(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]), + c = t(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]), + u = t(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]), + d = t(["access", "active", "assign", "all", "alter", "as", "catalog", "change", "copy", "create", "constraint", "constraints", "current", "database", "databases", "dbms", "default", "deny", "drop", "element", "elements", "exists", "from", "grant", "graph", "graphs", "if", "index", "indexes", "label", "labels", "management", "match", "name", "names", "new", "node", "nodes", "not", "of", "on", "or", "password", "populated", "privileges", "property", "read", "relationship", "relationships", "remove", "replace", "required", "revoke", "role", "roles", "set", "show", "start", "status", "stop", "suspended", "to", "traverse", "type", "types", "user", "users", "with", "write"]), + p = /[*+\-<>=&|~%^]/; + return { + startState: function() { + return { + tokenize: i, + context: null, + indent: 0, + col: 0 + } + }, + token: function(e, t) { + if (e.sol() && (t.context && null == t.context.align && (t.context.align = !1), t.indent = e.indentation()), e.eatSpace()) return null; + var n = t.tokenize(e, t); + if ("comment" !== n && t.context && null == t.context.align && "pattern" !== t.context.type && (t.context.align = !0), "(" === r) a(t, ")", e.column()); + else if ("[" === r) a(t, "]", e.column()); + else if ("{" === r) a(t, "}", e.column()); + else if (/[\]\}\)]/.test(r)) { + for (; t.context && "pattern" === t.context.type;) o(t); + t.context && r === t.context.type && o(t) + } else "." === r && t.context && "pattern" === t.context.type ? o(t) : /atom|string|variable/.test(n) && t.context && (/[\}\]]/.test(t.context.type) ? a(t, "pattern", e.column()) : "pattern" !== t.context.type || t.context.align || (t.context.align = !0, t.context.col = e.column())); + return n + }, + indent: function(t, n) { + var r = n && n.charAt(0), + i = t.context; + if (/[\]\}]/.test(r)) + for (; i && "pattern" === i.type;) i = i.prev; + var a = i && r === i.type; + return i ? "keywords" === i.type ? e.commands.newlineAndIndent : i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : s) : 0 + } + } + })), e.modeExtensions.cypher = { + autoFormatLineBreaks: function(e) { + for (var t = e.split("\n"), n = /\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g, r = 0; r < t.length; r++) t[r] = t[r].replace(n, " \n$1 ").trim(); + return t.join("\n") + } + }, e.defineMIME("application/x-cypher-query", "cypher") + }(n(4631)) + }, + 49570: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + e.defineMode("d", (function(t, n) { + var r, i = t.indentUnit, + a = n.statementIndentUnit || i, + o = n.keywords || {}, + s = n.builtin || {}, + l = n.blockKeywords || {}, + c = n.atoms || {}, + u = n.hooks || {}, + d = n.multiLineStrings, + p = /[+\-*&%=<>!?|\/]/; + + function f(e, t) { + var n = e.next(); + if (u[n]) { + var i = u[n](e, t); + if (!1 !== i) return i + } + if ('"' == n || "'" == n || "`" == n) return t.tokenize = m(n), t.tokenize(e, t); + if (/[\[\]{}\(\),;\:\.]/.test(n)) return r = n, null; + if (/\d/.test(n)) return e.eatWhile(/[\w\.]/), "number"; + if ("/" == n) { + if (e.eat("+")) return t.tokenize = g, g(e, t); + if (e.eat("*")) return t.tokenize = h, h(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (p.test(n)) return e.eatWhile(p), "operator"; + e.eatWhile(/[\w\$_\xa1-\uffff]/); + var a = e.current(); + return o.propertyIsEnumerable(a) ? (l.propertyIsEnumerable(a) && (r = "newstatement"), "keyword") : s.propertyIsEnumerable(a) ? (l.propertyIsEnumerable(a) && (r = "newstatement"), "builtin") : c.propertyIsEnumerable(a) ? "atom" : "variable" + } + + function m(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !d) && (n.tokenize = null), "string" + } + } + + function h(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = null; + break + } + r = "*" == n + } + return "comment" + } + + function g(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = null; + break + } + r = "+" == n + } + return "comment" + } + + function b(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function v(e, t, n) { + var r = e.indented; + return e.context && "statement" == e.context.type && (r = e.context.indented), e.context = new b(r, t, n, null, e.context) + } + + function y(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new b((e || 0) - i, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var n = t.context; + if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + r = null; + var i = (t.tokenize || f)(e, t); + if ("comment" == i || "meta" == i) return i; + if (null == n.align && (n.align = !0), ";" != r && ":" != r && "," != r || "statement" != n.type) + if ("{" == r) v(t, e.column(), "}"); + else if ("[" == r) v(t, e.column(), "]"); + else if ("(" == r) v(t, e.column(), ")"); + else if ("}" == r) { + for (; + "statement" == n.type;) n = y(t); + for ("}" == n.type && (n = y(t)); + "statement" == n.type;) n = y(t) + } else r == n.type ? y(t) : (("}" == n.type || "top" == n.type) && ";" != r || "statement" == n.type && "newstatement" == r) && v(t, e.column(), "statement"); + else y(t); + return t.startOfLine = !1, i + }, + indent: function(t, n) { + if (t.tokenize != f && null != t.tokenize) return e.Pass; + var r = t.context, + o = n && n.charAt(0); + "statement" == r.type && "}" == o && (r = r.prev); + var s = o == r.type; + return "statement" == r.type ? r.indented + ("{" == o ? 0 : a) : r.align ? r.column + (s ? 0 : 1) : r.indented + (s ? 0 : i) + }, + electricChars: "{}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + lineComment: "//", + fold: "brace" + } + })); + var n = "body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with"; + e.defineMIME("text/x-d", { + name: "d", + keywords: t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters " + n), + blockKeywords: t(n), + builtin: t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"), + atoms: t("exit failure success true false null"), + hooks: { + "@": function(e, t) { + return e.eatWhile(/[\w\$_]/), "meta" + } + } + }) + }(n(4631)) + }, + 20842: function(e, t, n) { + ! function(e) { + "use strict"; + var t = "this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "), + n = "try catch finally do else for if switch while".split(" "), + r = "true false null".split(" "), + i = "void bool num int double dynamic var String Null Never".split(" "); + + function a(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0; + return t + } + + function o(e) { + (e.interpolationStack || (e.interpolationStack = [])).push(e.tokenize) + } + + function s(e) { + return (e.interpolationStack || (e.interpolationStack = [])).pop() + } + + function l(e) { + return e.interpolationStack ? e.interpolationStack.length : 0 + } + + function c(e, t, n, r) { + var i = !1; + if (t.eat(e)) { + if (!t.eat(e)) return "string"; + i = !0 + } + + function a(t, n) { + for (var a = !1; !t.eol();) { + if (!r && !a && "$" == t.peek()) return o(n), n.tokenize = u, "string"; + var s = t.next(); + if (s == e && !a && (!i || t.match(e + e))) { + n.tokenize = null; + break + } + a = !r && !a && "\\" == s + } + return "string" + } + return n.tokenize = a, a(t, n) + } + + function u(e, t) { + return e.eat("$"), e.eat("{") ? t.tokenize = null : t.tokenize = d, null + } + + function d(e, t) { + return e.eatWhile(/[\w_]/), t.tokenize = s(t), "variable" + } + + function p(e) { + return function(t, n) { + for (var r; r = t.next();) { + if ("*" == r && t.eat("/")) { + if (1 == e) { + n.tokenize = null; + break + } + return n.tokenize = p(e - 1), n.tokenize(t, n) + } + if ("/" == r && t.eat("*")) return n.tokenize = p(e + 1), n.tokenize(t, n) + } + return "comment" + } + } + e.defineMIME("application/dart", { + name: "clike", + keywords: a(t), + blockKeywords: a(n), + builtin: a(i), + atoms: a(r), + hooks: { + "@": function(e) { + return e.eatWhile(/[\w\$_\.]/), "meta" + }, + "'": function(e, t) { + return c("'", e, t, !1) + }, + '"': function(e, t) { + return c('"', e, t, !1) + }, + r: function(e, t) { + var n = e.peek(); + return ("'" == n || '"' == n) && c(e.next(), e, t, !0) + }, + "}": function(e, t) { + return l(t) > 0 && (t.tokenize = s(t), null) + }, + "/": function(e, t) { + return !!e.eat("*") && (t.tokenize = p(1), t.tokenize(e, t)) + }, + token: function(e, t, n) { + if ("variable" == n && RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$", "g").test(e.current())) return "variable-2" + } + } + }), e.registerHelper("hintWords", "application/dart", t.concat(r).concat(i)), e.defineMode("dart", (function(t) { + return e.getMode(t, "application/dart") + }), "clike") + }(n(4631), n(99762)) + }, + 1715: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("diff", (function() { + var e = { + "+": "positive", + "-": "negative", + "@": "meta" + }; + return { + token: function(t) { + var n = t.string.search(/[\t ]+?$/); + if (!t.sol() || 0 === n) return t.skipToEnd(), ("error " + (e[t.string.charAt(0)] || "")).replace(/ $/, ""); + var r = e[t.peek()] || t.skipToEnd(); + return -1 === n ? t.skipToEnd() : t.pos = n, r + } + } + })), e.defineMIME("text/x-diff", "diff") + }(n(4631)) + }, + 75288: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("django:inner", (function() { + var e = ["block", "endblock", "for", "endfor", "true", "false", "filter", "endfilter", "loop", "none", "self", "super", "if", "elif", "endif", "as", "else", "import", "with", "endwith", "without", "context", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "extends", "include", "load", "comment", "endcomment", "empty", "url", "static", "trans", "blocktrans", "endblocktrans", "now", "regroup", "lorem", "ifchanged", "endifchanged", "firstof", "debug", "cycle", "csrf_token", "autoescape", "endautoescape", "spaceless", "endspaceless", "ssi", "templatetag", "verbatim", "endverbatim", "widthratio"], + t = ["add", "addslashes", "capfirst", "center", "cut", "date", "default", "default_if_none", "dictsort", "dictsortreversed", "divisibleby", "escape", "escapejs", "filesizeformat", "first", "floatformat", "force_escape", "get_digit", "iriencode", "join", "last", "length", "length_is", "linebreaks", "linebreaksbr", "linenumbers", "ljust", "lower", "make_list", "phone2numeric", "pluralize", "pprint", "random", "removetags", "rjust", "safe", "safeseq", "slice", "slugify", "stringformat", "striptags", "time", "timesince", "timeuntil", "title", "truncatechars", "truncatechars_html", "truncatewords", "truncatewords_html", "unordered_list", "upper", "urlencode", "urlize", "urlizetrunc", "wordcount", "wordwrap", "yesno"], + n = ["==", "!=", "<", ">", "<=", ">="], + r = ["in", "not", "or", "and"]; + + function i(e, t) { + if (e.match("{{")) return t.tokenize = o, "tag"; + if (e.match("{%")) return t.tokenize = s, "tag"; + if (e.match("{#")) return t.tokenize = l, "comment"; + for (; null != e.next() && !e.match(/\{[{%#]/, !1);); + return null + } + + function a(e, t) { + return function(n, r) { + return !r.escapeNext && n.eat(e) ? r.tokenize = t : (r.escapeNext && (r.escapeNext = !1), "\\" == n.next() && (r.escapeNext = !0)), "string" + } + } + + function o(e, n) { + if (n.waitDot) { + if (n.waitDot = !1, "." != e.peek()) return "null"; + if (e.match(/\.\W+/)) return "error"; + if (e.eat(".")) return n.waitProperty = !0, "null"; + throw Error("Unexpected error while waiting for property.") + } + if (n.waitPipe) { + if (n.waitPipe = !1, "|" != e.peek()) return "null"; + if (e.match(/\.\W+/)) return "error"; + if (e.eat("|")) return n.waitFilter = !0, "null"; + throw Error("Unexpected error while waiting for filter.") + } + return n.waitProperty && (n.waitProperty = !1, e.match(/\b(\w+)\b/)) ? (n.waitDot = !0, n.waitPipe = !0, "property") : n.waitFilter && (n.waitFilter = !1, e.match(t)) ? "variable-2" : e.eatSpace() ? (n.waitProperty = !1, "null") : e.match(/\b\d+(\.\d+)?\b/) ? "number" : e.match("'") ? (n.tokenize = a("'", n.tokenize), "string") : e.match('"') ? (n.tokenize = a('"', n.tokenize), "string") : e.match(/\b(\w+)\b/) && !n.foundVariable ? (n.waitDot = !0, n.waitPipe = !0, "variable") : e.match("}}") ? (n.waitProperty = null, n.waitFilter = null, n.waitDot = null, n.waitPipe = null, n.tokenize = i, "tag") : (e.next(), "null") + } + + function s(o, s) { + if (s.waitDot) { + if (s.waitDot = !1, "." != o.peek()) return "null"; + if (o.match(/\.\W+/)) return "error"; + if (o.eat(".")) return s.waitProperty = !0, "null"; + throw Error("Unexpected error while waiting for property.") + } + if (s.waitPipe) { + if (s.waitPipe = !1, "|" != o.peek()) return "null"; + if (o.match(/\.\W+/)) return "error"; + if (o.eat("|")) return s.waitFilter = !0, "null"; + throw Error("Unexpected error while waiting for filter.") + } + if (s.waitProperty && (s.waitProperty = !1, o.match(/\b(\w+)\b/))) return s.waitDot = !0, s.waitPipe = !0, "property"; + if (s.waitFilter && (s.waitFilter = !1, o.match(t))) return "variable-2"; + if (o.eatSpace()) return s.waitProperty = !1, "null"; + if (o.match(/\b\d+(\.\d+)?\b/)) return "number"; + if (o.match("'")) return s.tokenize = a("'", s.tokenize), "string"; + if (o.match('"')) return s.tokenize = a('"', s.tokenize), "string"; + if (o.match(n)) return "operator"; + if (o.match(r)) return "keyword"; + var l = o.match(e); + return l ? ("comment" == l[0] && (s.blockCommentTag = !0), "keyword") : o.match(/\b(\w+)\b/) ? (s.waitDot = !0, s.waitPipe = !0, "variable") : o.match("%}") ? (s.waitProperty = null, s.waitFilter = null, s.waitDot = null, s.waitPipe = null, s.blockCommentTag ? (s.blockCommentTag = !1, s.tokenize = c) : s.tokenize = i, "tag") : (o.next(), "null") + } + + function l(e, t) { + return e.match(/^.*?#\}/) ? t.tokenize = i : e.skipToEnd(), "comment" + } + + function c(e, t) { + return e.match(/\{%\s*endcomment\s*%\}/, !1) ? (t.tokenize = s, e.match("{%"), "tag") : (e.next(), "comment") + } + return e = new RegExp("^\\b(" + e.join("|") + ")\\b"), t = new RegExp("^\\b(" + t.join("|") + ")\\b"), n = new RegExp("^\\b(" + n.join("|") + ")\\b"), r = new RegExp("^\\b(" + r.join("|") + ")\\b"), { + startState: function() { + return { + tokenize: i + } + }, + token: function(e, t) { + return t.tokenize(e, t) + }, + blockCommentStart: "{% comment %}", + blockCommentEnd: "{% endcomment %}" + } + })), e.defineMode("django", (function(t) { + var n = e.getMode(t, "text/html"), + r = e.getMode(t, "django:inner"); + return e.overlayMode(n, r) + })), e.defineMIME("text/x-django", "django") + }(n(4631), n(16531), n(14146)) + }, + 75258: function(e, t, n) { + ! function(e) { + "use strict"; + var t = "from", + n = new RegExp("^(\\s*)\\b(" + t + ")\\b", "i"), + r = ["run", "cmd", "entrypoint", "shell"], + i = new RegExp("^(\\s*)(" + r.join("|") + ")(\\s+\\[)", "i"), + a = "expose", + o = new RegExp("^(\\s*)(" + a + ")(\\s+)", "i"), + s = ["arg", "from", "maintainer", "label", "env", "add", "copy", "volume", "user", "workdir", "onbuild", "stopsignal", "healthcheck", "shell"], + l = "(" + [t, a].concat(r).concat(s).join("|") + ")", + c = new RegExp("^(\\s*)" + l + "(\\s*)(#.*)?$", "i"), + u = new RegExp("^(\\s*)" + l + "(\\s+)", "i"); + e.defineSimpleMode("dockerfile", { + start: [{ + regex: /^\s*#.*$/, + sol: !0, + token: "comment" + }, { + regex: n, + token: [null, "keyword"], + sol: !0, + next: "from" + }, { + regex: c, + token: [null, "keyword", null, "error"], + sol: !0 + }, { + regex: i, + token: [null, "keyword", null], + sol: !0, + next: "array" + }, { + regex: o, + token: [null, "keyword", null], + sol: !0, + next: "expose" + }, { + regex: u, + token: [null, "keyword", null], + sol: !0, + next: "arguments" + }, { + regex: /./, + token: null + }], + from: [{ + regex: /\s*$/, + token: null, + next: "start" + }, { + regex: /(\s*)(#.*)$/, + token: [null, "error"], + next: "start" + }, { + regex: /(\s*\S+\s+)(as)/i, + token: [null, "keyword"], + next: "start" + }, { + token: null, + next: "start" + }], + single: [{ + regex: /(?:[^\\']|\\.)/, + token: "string" + }, { + regex: /'/, + token: "string", + pop: !0 + }], + double: [{ + regex: /(?:[^\\"]|\\.)/, + token: "string" + }, { + regex: /"/, + token: "string", + pop: !0 + }], + array: [{ + regex: /\]/, + token: null, + next: "start" + }, { + regex: /"(?:[^\\"]|\\.)*"?/, + token: "string" + }], + expose: [{ + regex: /\d+$/, + token: "number", + next: "start" + }, { + regex: /[^\d]+$/, + token: null, + next: "start" + }, { + regex: /\d+/, + token: "number" + }, { + regex: /[^\d]+/, + token: null + }, { + token: null, + next: "start" + }], + arguments: [{ + regex: /^\s*#.*$/, + sol: !0, + token: "comment" + }, { + regex: /"(?:[^\\"]|\\.)*"?$/, + token: "string", + next: "start" + }, { + regex: /"/, + token: "string", + push: "double" + }, { + regex: /'(?:[^\\']|\\.)*'?$/, + token: "string", + next: "start" + }, { + regex: /'/, + token: "string", + push: "single" + }, { + regex: /[^#"']+[\\`]$/, + token: null + }, { + regex: /[^#"']+$/, + token: null, + next: "start" + }, { + regex: /[^#"']+/, + token: null + }, { + token: null, + next: "start" + }], + meta: { + lineComment: "#" + } + }), e.defineMIME("text/x-dockerfile", "dockerfile") + }(n(4631), n(40790)) + }, + 70655: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("dtd", (function(e) { + var t, n = e.indentUnit; + + function r(e, n) { + return t = n, e + } + + function i(e, t) { + var n = e.next(); + if ("<" != n || !e.eat("!")) { + if ("<" == n && e.eat("?")) return t.tokenize = s("meta", "?>"), r("meta", n); + if ("#" == n && e.eatWhile(/[\w]/)) return r("atom", "tag"); + if ("|" == n) return r("keyword", "separator"); + if (n.match(/[\(\)\[\]\-\.,\+\?>]/)) return r(null, n); + if (n.match(/[\[\]]/)) return r("rule", n); + if ('"' == n || "'" == n) return t.tokenize = o(n), t.tokenize(e, t); + if (e.eatWhile(/[a-zA-Z\?\+\d]/)) { + var i = e.current(); + return null !== i.substr(i.length - 1, i.length).match(/\?|\+/) && e.backUp(1), r("tag", "tag") + } + return "%" == n || "*" == n ? r("number", "number") : (e.eatWhile(/[\w\\\-_%.{,]/), r(null, null)) + } + return e.eatWhile(/[\-]/) ? (t.tokenize = a, a(e, t)) : e.eatWhile(/[\w]/) ? r("keyword", "doindent") : void 0 + } + + function a(e, t) { + for (var n, a = 0; null != (n = e.next());) { + if (a >= 2 && ">" == n) { + t.tokenize = i; + break + } + a = "-" == n ? a + 1 : 0 + } + return r("comment", "comment") + } + + function o(e) { + return function(t, n) { + for (var a, o = !1; null != (a = t.next());) { + if (a == e && !o) { + n.tokenize = i; + break + } + o = !o && "\\" == a + } + return r("string", "tag") + } + } + + function s(e, t) { + return function(n, r) { + for (; !n.eol();) { + if (n.match(t)) { + r.tokenize = i; + break + } + n.next() + } + return e + } + } + return { + startState: function(e) { + return { + tokenize: i, + baseIndent: e || 0, + stack: [] + } + }, + token: function(e, n) { + if (e.eatSpace()) return null; + var r = n.tokenize(e, n), + i = n.stack[n.stack.length - 1]; + return "[" == e.current() || "doindent" === t || "[" == t ? n.stack.push("rule") : "endtag" === t ? n.stack[n.stack.length - 1] = "endtag" : "]" == e.current() || "]" == t || ">" == t && "rule" == i ? n.stack.pop() : "[" == t && n.stack.push("["), r + }, + indent: function(e, r) { + var i = e.stack.length; + return "]" === r.charAt(0) ? i-- : ">" === r.substr(r.length - 1, r.length) && ("<" === r.substr(0, 1) || "doindent" == t && r.length > 1 || ("doindent" == t ? i-- : ">" == t && r.length > 1 || "tag" == t && ">" !== r || ("tag" == t && "rule" == e.stack[e.stack.length - 1] ? i-- : "tag" == t ? i++ : ">" === r && "rule" == e.stack[e.stack.length - 1] && ">" === t ? i-- : ">" === r && "rule" == e.stack[e.stack.length - 1] || ("<" !== r.substr(0, 1) && ">" === r.substr(0, 1) ? i -= 1 : ">" === r || (i -= 1)))), null != t && "]" != t || i--), e.baseIndent + i * n + }, + electricChars: "]>" + } + })), e.defineMIME("application/xml-dtd", "dtd") + }(n(4631)) + }, + 25184: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e, t) { + for (var n = 0; n < e.length; n++) t(e[n], n) + } + + function n(e, t) { + for (var n = 0; n < e.length; n++) + if (t(e[n], n)) return !0; + return !1 + } + e.defineMode("dylan", (function(e) { + var r = { + unnamedDefinition: ["interface"], + namedDefinition: ["module", "library", "macro", "C-struct", "C-union", "C-function", "C-callable-wrapper"], + typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"], + otherParameterizedDefinition: ["method", "function", "C-variable", "C-address"], + constantSimpleDefinition: ["constant"], + variableSimpleDefinition: ["variable"], + otherSimpleDefinition: ["generic", "domain", "C-pointer-type", "table"], + statement: ["if", "block", "begin", "method", "case", "for", "select", "when", "unless", "until", "while", "iterate", "profiling", "dynamic-bind"], + separator: ["finally", "exception", "cleanup", "else", "elseif", "afterwards"], + other: ["above", "below", "by", "from", "handler", "in", "instance", "let", "local", "otherwise", "slot", "subclass", "then", "to", "keyed-by", "virtual"], + signalingCalls: ["signal", "error", "cerror", "break", "check-type", "abort"] + }; + r.otherDefinition = r.unnamedDefinition.concat(r.namedDefinition).concat(r.otherParameterizedDefinition), r.definition = r.typeParameterizedDefinition.concat(r.otherDefinition), r.parameterizedDefinition = r.typeParameterizedDefinition.concat(r.otherParameterizedDefinition), r.simpleDefinition = r.constantSimpleDefinition.concat(r.variableSimpleDefinition).concat(r.otherSimpleDefinition), r.keyword = r.statement.concat(r.separator).concat(r.other); + var i = "[-_a-zA-Z?!*@<>$%]+", + a = new RegExp("^" + i), + o = { + symbolKeyword: i + ":", + symbolClass: "<" + i + ">", + symbolGlobal: "\\*" + i + "\\*", + symbolConstant: "\\$" + i + }, + s = { + symbolKeyword: "atom", + symbolClass: "tag", + symbolGlobal: "variable-2", + symbolConstant: "variable-3" + }; + for (var l in o) o.hasOwnProperty(l) && (o[l] = new RegExp("^" + o[l])); + o.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/]; + var c = { + keyword: "keyword", + definition: "def", + simpleDefinition: "def", + signalingCalls: "builtin" + }, + u = {}, + d = {}; + + function p(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function f(e, t) { + var r = e.peek(); + if ("'" == r || '"' == r) return e.next(), p(e, t, h(r, "string")); + if ("/" == r) { + if (e.next(), e.eat("*")) return p(e, t, m); + if (e.eat("/")) return e.skipToEnd(), "comment"; + e.backUp(1) + } else if (/[+\-\d\.]/.test(r)) { + if (e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || e.match(/^[+-]?\d+/)) return "number" + } else { + if ("#" == r) return e.next(), '"' == (r = e.peek()) ? (e.next(), p(e, t, h('"', "string"))) : "b" == r ? (e.next(), e.eatWhile(/[01]/), "number") : "x" == r ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : "o" == r ? (e.next(), e.eatWhile(/[0-7]/), "number") : "#" == r ? (e.next(), "punctuation") : "[" == r || "(" == r ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error"); + if ("~" == r) return e.next(), "=" == (r = e.peek()) ? (e.next(), "=" == (r = e.peek()) ? (e.next(), "operator") : "operator") : "operator"; + if (":" == r) { + if (e.next(), "=" == (r = e.peek())) return e.next(), "operator"; + if (":" == r) return e.next(), "punctuation" + } else { + if (-1 != "[](){}".indexOf(r)) return e.next(), "bracket"; + if (-1 != ".,".indexOf(r)) return e.next(), "punctuation"; + if (e.match("end")) return "keyword" + } + } + for (var i in o) + if (o.hasOwnProperty(i)) { + var l = o[i]; + if (l instanceof Array && n(l, (function(t) { + return e.match(t) + })) || e.match(l)) return s[i] + } + return /[+\-*\/^=<>&|]/.test(r) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), u.hasOwnProperty(e.current()) ? d[e.current()] : e.current().match(a) ? "variable" : (e.next(), "variable-2")) + } + + function m(e, t) { + for (var n, r = !1, i = !1, a = 0; n = e.next();) { + if ("/" == n && r) { + if (!(a > 0)) { + t.tokenize = f; + break + } + a-- + } else "*" == n && i && a++; + r = "*" == n, i = "/" == n + } + return "comment" + } + + function h(e, t) { + return function(n, r) { + for (var i, a = !1, o = !1; null != (i = n.next());) { + if (i == e && !a) { + o = !0; + break + } + a = !a && "\\" == i + } + return !o && a || (r.tokenize = f), t + } + } + return t(["keyword", "definition", "simpleDefinition", "signalingCalls"], (function(e) { + t(r[e], (function(t) { + u[t] = e, d[t] = c[e] + })) + })), { + startState: function() { + return { + tokenize: f, + currentIndent: 0 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + })), e.defineMIME("text/x-dylan", "dylan") + }(n(4631)) + }, + 84134: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("ebnf", (function(t) { + var n = { + slash: 0, + parenthesis: 1 + }, + r = { + comment: 0, + _string: 1, + characterClass: 2 + }, + i = null; + return t.bracesMode && (i = e.getMode(t, t.bracesMode)), { + startState: function() { + return { + stringType: null, + commentType: null, + braced: 0, + lhs: !0, + localState: null, + stack: [], + inDefinition: !1 + } + }, + token: function(t, a) { + if (t) { + switch (0 === a.stack.length && ('"' == t.peek() || "'" == t.peek() ? (a.stringType = t.peek(), t.next(), a.stack.unshift(r._string)) : t.match("/*") ? (a.stack.unshift(r.comment), a.commentType = n.slash) : t.match("(*") && (a.stack.unshift(r.comment), a.commentType = n.parenthesis)), a.stack[0]) { + case r._string: + for (; a.stack[0] === r._string && !t.eol();) t.peek() === a.stringType ? (t.next(), a.stack.shift()) : "\\" === t.peek() ? (t.next(), t.next()) : t.match(/^.[^\\\"\']*/); + return a.lhs ? "property string" : "string"; + case r.comment: + for (; a.stack[0] === r.comment && !t.eol();) a.commentType === n.slash && t.match("*/") || a.commentType === n.parenthesis && t.match("*)") ? (a.stack.shift(), a.commentType = null) : t.match(/^.[^\*]*/); + return "comment"; + case r.characterClass: + for (; a.stack[0] === r.characterClass && !t.eol();) t.match(/^[^\]\\]+/) || t.match(".") || a.stack.shift(); + return "operator" + } + var o = t.peek(); + if (null !== i && (a.braced || "{" === o)) { + null === a.localState && (a.localState = e.startState(i)); + var s = i.token(t, a.localState), + l = t.current(); + if (!s) + for (var c = 0; c < l.length; c++) "{" === l[c] ? (0 === a.braced && (s = "matchingbracket"), a.braced++) : "}" === l[c] && (a.braced--, 0 === a.braced && (s = "matchingbracket")); + return s + } + switch (o) { + case "[": + return t.next(), a.stack.unshift(r.characterClass), "bracket"; + case ":": + case "|": + case ";": + return t.next(), "operator"; + case "%": + if (t.match("%%")) return "header"; + if (t.match(/[%][A-Za-z]+/)) return "keyword"; + if (t.match(/[%][}]/)) return "matchingbracket"; + break; + case "/": + if (t.match(/[\/][A-Za-z]+/)) return "keyword"; + case "\\": + if (t.match(/[\][a-z]+/)) return "string-2"; + case ".": + if (t.match(".")) return "atom"; + case "*": + case "-": + case "+": + case "^": + if (t.match(o)) return "atom"; + case "$": + if (t.match("$$")) return "builtin"; + if (t.match(/[$][0-9]+/)) return "variable-3"; + case "<": + if (t.match(/<<[a-zA-Z_]+>>/)) return "builtin" + } + return t.match("//") ? (t.skipToEnd(), "comment") : t.match("return") ? "operator" : t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) ? t.match(/(?=[\(.])/) ? "variable" : t.match(/(?=[\s\n]*[:=])/) ? "def" : "variable-2" : -1 != ["[", "]", "(", ")"].indexOf(t.peek()) ? (t.next(), "bracket") : (t.eatSpace() || t.next(), null) + } + } + } + })), e.defineMIME("text/x-ebnf", "ebnf") + }(n(4631)) + }, + 60427: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("ecl", (function(e) { + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + + function n(e, t) { + return !!t.startOfLine && (e.skipToEnd(), "meta") + } + var r, i = e.indentUnit, + a = t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"), + o = t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"), + s = t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"), + l = t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"), + c = t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"), + u = t("catch class do else finally for if switch try while"), + d = t("true false null"), + p = { + "#": n + }, + f = /[+\-*&%=<>!?|\/]/; + + function m(e, t) { + var n = e.next(); + if (p[n]) { + var i = p[n](e, t); + if (!1 !== i) return i + } + if ('"' == n || "'" == n) return t.tokenize = h(n), t.tokenize(e, t); + if (/[\[\]{}\(\),;\:\.]/.test(n)) return r = n, null; + if (/\d/.test(n)) return e.eatWhile(/[\w\.]/), "number"; + if ("/" == n) { + if (e.eat("*")) return t.tokenize = g, g(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (f.test(n)) return e.eatWhile(f), "operator"; + e.eatWhile(/[\w\$_]/); + var m = e.current().toLowerCase(); + if (a.propertyIsEnumerable(m)) return u.propertyIsEnumerable(m) && (r = "newstatement"), "keyword"; + if (o.propertyIsEnumerable(m)) return u.propertyIsEnumerable(m) && (r = "newstatement"), "variable"; + if (s.propertyIsEnumerable(m)) return u.propertyIsEnumerable(m) && (r = "newstatement"), "variable-2"; + if (l.propertyIsEnumerable(m)) return u.propertyIsEnumerable(m) && (r = "newstatement"), "variable-3"; + if (c.propertyIsEnumerable(m)) return u.propertyIsEnumerable(m) && (r = "newstatement"), "builtin"; + for (var b = m.length - 1; b >= 0 && (!isNaN(m[b]) || "_" == m[b]);) --b; + if (b > 0) { + var v = m.substr(0, b + 1); + if (l.propertyIsEnumerable(v)) return u.propertyIsEnumerable(v) && (r = "newstatement"), "variable-3" + } + return d.propertyIsEnumerable(m) ? "atom" : null + } + + function h(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return !a && i || (n.tokenize = m), "string" + } + } + + function g(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = m; + break + } + r = "*" == n + } + return "comment" + } + + function b(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function v(e, t, n) { + return e.context = new b(e.indented, t, n, null, e.context) + } + + function y(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new b((e || 0) - i, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var n = t.context; + if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + r = null; + var i = (t.tokenize || m)(e, t); + if ("comment" == i || "meta" == i) return i; + if (null == n.align && (n.align = !0), ";" != r && ":" != r || "statement" != n.type) + if ("{" == r) v(t, e.column(), "}"); + else if ("[" == r) v(t, e.column(), "]"); + else if ("(" == r) v(t, e.column(), ")"); + else if ("}" == r) { + for (; + "statement" == n.type;) n = y(t); + for ("}" == n.type && (n = y(t)); + "statement" == n.type;) n = y(t) + } else r == n.type ? y(t) : ("}" == n.type || "top" == n.type || "statement" == n.type && "newstatement" == r) && v(t, e.column(), "statement"); + else y(t); + return t.startOfLine = !1, i + }, + indent: function(e, t) { + if (e.tokenize != m && null != e.tokenize) return 0; + var n = e.context, + r = t && t.charAt(0); + "statement" == n.type && "}" == r && (n = n.prev); + var a = r == n.type; + return "statement" == n.type ? n.indented + ("{" == r ? 0 : i) : n.align ? n.column + (a ? 0 : 1) : n.indented + (a ? 0 : i) + }, + electricChars: "{}" + } + })), e.defineMIME("text/x-ecl", "ecl") + }(n(4631)) + }, + 34717: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("eiffel", (function() { + function e(e) { + for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0; + return t + } + var t = e(["note", "across", "when", "variant", "until", "unique", "undefine", "then", "strip", "select", "retry", "rescue", "require", "rename", "reference", "redefine", "prefix", "once", "old", "obsolete", "loop", "local", "like", "is", "inspect", "infix", "include", "if", "frozen", "from", "external", "export", "ensure", "end", "elseif", "else", "do", "creation", "create", "check", "alias", "agent", "separate", "invariant", "inherit", "indexing", "feature", "expanded", "deferred", "class", "Void", "True", "Result", "Precursor", "False", "Current", "create", "attached", "detachable", "as", "and", "implies", "not", "or"]), + n = e([":=", "and then", "and", "or", "<<", ">>"]); + + function r(e, t, n) { + return n.tokenize.push(e), e(t, n) + } + + function i(e, t) { + if (e.eatSpace()) return null; + var n = e.next(); + return '"' == n || "'" == n ? r(a(n, "string"), e, t) : "-" == n && e.eat("-") ? (e.skipToEnd(), "comment") : ":" == n && e.eat("=") ? "operator" : /[0-9]/.test(n) ? (e.eatWhile(/[xXbBCc0-9\.]/), e.eat(/[\?\!]/), "ident") : /[a-zA-Z_0-9]/.test(n) ? (e.eatWhile(/[a-zA-Z_0-9]/), e.eat(/[\?\!]/), "ident") : /[=+\-\/*^%<>~]/.test(n) ? (e.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null + } + + function a(e, t, n) { + return function(r, i) { + for (var a, o = !1; null != (a = r.next());) { + if (a == e && (n || !o)) { + i.tokenize.pop(); + break + } + o = !o && "%" == a + } + return t + } + } + return { + startState: function() { + return { + tokenize: [i] + } + }, + token: function(e, r) { + var i = r.tokenize[r.tokenize.length - 1](e, r); + if ("ident" == i) { + var a = e.current(); + i = t.propertyIsEnumerable(e.current()) ? "keyword" : n.propertyIsEnumerable(e.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(a) ? "tag" : /^0[bB][0-1]+$/g.test(a) || /^0[cC][0-7]+$/g.test(a) || /^0[xX][a-fA-F0-9]+$/g.test(a) || /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(a) || /^[0-9]+$/g.test(a) ? "number" : "variable" + } + return i + }, + lineComment: "--" + } + })), e.defineMIME("text/x-eiffel", "eiffel") + }(n(4631)) + }, + 78919: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("elm", (function() { + function e(e, t, n) { + return t(n), n(e, t) + } + var t = /[a-z]/, + n = /[A-Z]/, + r = /[a-zA-Z0-9_]/, + i = /[0-9]/, + a = /[0-9A-Fa-f]/, + o = /[-&*+.\\/<>=?^|:]/, + s = /[(),[\]{}]/, + l = /[ \v\f]/; + + function c() { + return function(c, h) { + if (c.eatWhile(l)) return null; + var g = c.next(); + if (s.test(g)) return "{" === g && c.eat("-") ? e(c, h, u(1)) : "[" === g && c.match("glsl|") ? e(c, h, m) : "builtin"; + if ("'" === g) return e(c, h, f); + if ('"' === g) return c.eat('"') ? c.eat('"') ? e(c, h, d) : "string" : e(c, h, p); + if (n.test(g)) return c.eatWhile(r), "variable-2"; + if (t.test(g)) { + var b = 1 === c.pos; + return c.eatWhile(r), b ? "def" : "variable" + } + if (i.test(g)) { + if ("0" === g) { + if (c.eat(/[xX]/)) return c.eatWhile(a), "number" + } else c.eatWhile(i); + return c.eat(".") && c.eatWhile(i), c.eat(/[eE]/) && (c.eat(/[-+]/), c.eatWhile(i)), "number" + } + return o.test(g) ? "-" === g && c.eat("-") ? (c.skipToEnd(), "comment") : (c.eatWhile(o), "keyword") : "_" === g ? "keyword" : "error" + } + } + + function u(e) { + return 0 == e ? c() : function(t, n) { + for (; !t.eol();) { + var r = t.next(); + if ("{" == r && t.eat("-")) ++e; + else if ("-" == r && t.eat("}") && 0 === --e) return n(c()), "comment" + } + return n(u(e)), "comment" + } + } + + function d(e, t) { + for (; !e.eol();) + if ('"' === e.next() && e.eat('"') && e.eat('"')) return t(c()), "string"; + return "string" + } + + function p(e, t) { + for (; e.skipTo('\\"');) e.next(), e.next(); + return e.skipTo('"') ? (e.next(), t(c()), "string") : (e.skipToEnd(), t(c()), "error") + } + + function f(e, t) { + for (; e.skipTo("\\'");) e.next(), e.next(); + return e.skipTo("'") ? (e.next(), t(c()), "string") : (e.skipToEnd(), t(c()), "error") + } + + function m(e, t) { + for (; !e.eol();) + if ("|" === e.next() && e.eat("]")) return t(c()), "string"; + return "string" + } + var h = { + case: 1, + of: 1, + as: 1, + if: 1, + then: 1, + else: 1, + let: 1, + in: 1, + type: 1, + alias: 1, + module: 1, + where: 1, + import: 1, + exposing: 1, + port: 1 + }; + return { + startState: function() { + return { + f: c() + } + }, + copyState: function(e) { + return { + f: e.f + } + }, + token: function(e, t) { + var n = t.f(e, (function(e) { + t.f = e + })), + r = e.current(); + return h.hasOwnProperty(r) ? "keyword" : n + } + } + })), e.defineMIME("text/x-elm", "elm") + }(n(4631)) + }, + 76392: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMIME("text/x-erlang", "erlang"), e.defineMode("erlang", (function(t) { + var n = ["-type", "-spec", "-export_type", "-opaque"], + r = ["after", "begin", "catch", "case", "cond", "end", "fun", "if", "let", "of", "query", "receive", "try", "when"], + i = /[\->,;]/, + a = ["->", ";", ","], + o = ["and", "andalso", "band", "bnot", "bor", "bsl", "bsr", "bxor", "div", "not", "or", "orelse", "rem", "xor"], + s = /[\+\-\*\/<>=\|:!]/, + l = ["=", "+", "-", "*", "/", ">", ">=", "<", "=<", "=:=", "==", "=/=", "/=", "||", "<-", "!"], + c = /[<\(\[\{]/, + u = ["<<", "(", "[", "{"], + d = /[>\)\]\}]/, + p = ["}", "]", ")", ">>"], + f = ["is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function", "is_integer", "is_list", "is_number", "is_pid", "is_port", "is_record", "is_reference", "is_tuple", "atom", "binary", "bitstring", "boolean", "function", "integer", "list", "number", "pid", "port", "record", "reference", "tuple"], + m = ["abs", "adler32", "adler32_combine", "alive", "apply", "atom_to_binary", "atom_to_list", "binary_to_atom", "binary_to_existing_atom", "binary_to_list", "binary_to_term", "bit_size", "bitstring_to_list", "byte_size", "check_process_code", "contact_binary", "crc32", "crc32_combine", "date", "decode_packet", "delete_module", "disconnect_node", "element", "erase", "exit", "float", "float_to_list", "garbage_collect", "get", "get_keys", "group_leader", "halt", "hd", "integer_to_list", "internal_bif", "iolist_size", "iolist_to_binary", "is_alive", "is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function", "is_integer", "is_list", "is_number", "is_pid", "is_port", "is_process_alive", "is_record", "is_reference", "is_tuple", "length", "link", "list_to_atom", "list_to_binary", "list_to_bitstring", "list_to_existing_atom", "list_to_float", "list_to_integer", "list_to_pid", "list_to_tuple", "load_module", "make_ref", "module_loaded", "monitor_node", "node", "node_link", "node_unlink", "nodes", "notalive", "now", "open_port", "pid_to_list", "port_close", "port_command", "port_connect", "port_control", "pre_loaded", "process_flag", "process_info", "processes", "purge_module", "put", "register", "registered", "round", "self", "setelement", "size", "spawn", "spawn_link", "spawn_monitor", "spawn_opt", "split_binary", "statistics", "term_to_binary", "time", "throw", "tl", "trunc", "tuple_size", "tuple_to_list", "unlink", "unregister", "whereis"], + h = /[\w@\xd8-\xde\xc0-\xd6\xdf-\xf6\xf8-\xff]/, + g = /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/; + + function b(e, t) { + if (t.in_string) return t.in_string = !k(e), T(t, e, "string"); + if (t.in_atom) return t.in_atom = !x(e), T(t, e, "atom"); + if (e.eatSpace()) return T(t, e, "whitespace"); + if (!A(t) && e.match(/-\s*[a-z\xdf-\xf6\xf8-\xff][\w\xd8-\xde\xc0-\xd6\xdf-\xf6\xf8-\xff]*/)) return E(e.current(), n) ? T(t, e, "type") : T(t, e, "attribute"); + var b = e.next(); + if ("%" == b) return e.skipToEnd(), T(t, e, "comment"); + if (":" == b) return T(t, e, "colon"); + if ("?" == b) return e.eatSpace(), e.eatWhile(h), T(t, e, "macro"); + if ("#" == b) return e.eatSpace(), e.eatWhile(h), T(t, e, "record"); + if ("$" == b) return "\\" != e.next() || e.match(g) ? T(t, e, "number") : T(t, e, "error"); + if ("." == b) return T(t, e, "dot"); + if ("'" == b) { + if (!(t.in_atom = !x(e))) { + if (e.match(/\s*\/\s*[0-9]/, !1)) return e.match(/\s*\/\s*[0-9]/, !0), T(t, e, "fun"); + if (e.match(/\s*\(/, !1) || e.match(/\s*:/, !1)) return T(t, e, "function") + } + return T(t, e, "atom") + } + if ('"' == b) return t.in_string = !k(e), T(t, e, "string"); + if (/[A-Z_\xd8-\xde\xc0-\xd6]/.test(b)) return e.eatWhile(h), T(t, e, "variable"); + if (/[a-z_\xdf-\xf6\xf8-\xff]/.test(b)) { + if (e.eatWhile(h), e.match(/\s*\/\s*[0-9]/, !1)) return e.match(/\s*\/\s*[0-9]/, !0), T(t, e, "fun"); + var _ = e.current(); + return E(_, r) ? T(t, e, "keyword") : E(_, o) ? T(t, e, "operator") : e.match(/\s*\(/, !1) ? !E(_, m) || ":" == A(t).token && "erlang" != A(t, 2).token ? E(_, f) ? T(t, e, "guard") : T(t, e, "function") : T(t, e, "builtin") : ":" == w(e) ? T(t, e, "erlang" == _ ? "builtin" : "function") : E(_, ["true", "false"]) ? T(t, e, "boolean") : T(t, e, "atom") + } + var S = /[0-9]/, + I = /[0-9a-zA-Z]/; + return S.test(b) ? (e.eatWhile(S), e.eat("#") ? e.eatWhile(I) || e.backUp(1) : e.eat(".") && (e.eatWhile(S) ? e.eat(/[eE]/) && (e.eat(/[-+]/) ? e.eatWhile(S) || e.backUp(2) : e.eatWhile(S) || e.backUp(1)) : e.backUp(1)), T(t, e, "number")) : v(e, c, u) ? T(t, e, "open_paren") : v(e, d, p) ? T(t, e, "close_paren") : y(e, i, a) ? T(t, e, "separator") : y(e, s, l) ? T(t, e, "operator") : T(t, e, null) + } + + function v(e, t, n) { + if (1 == e.current().length && t.test(e.current())) { + for (e.backUp(1); t.test(e.peek());) + if (e.next(), E(e.current(), n)) return !0; + e.backUp(e.current().length - 1) + } + return !1 + } + + function y(e, t, n) { + if (1 == e.current().length && t.test(e.current())) { + for (; t.test(e.peek());) e.next(); + for (; 0 < e.current().length;) { + if (E(e.current(), n)) return !0; + e.backUp(1) + } + e.next() + } + return !1 + } + + function k(e) { + return _(e, '"', "\\") + } + + function x(e) { + return _(e, "'", "\\") + } + + function _(e, t, n) { + for (; !e.eol();) { + var r = e.next(); + if (r == t) return !0; + r == n && e.next() + } + return !1 + } + + function w(e) { + var t = e.match(/^\s*([^\s%])/, !1); + return t ? t[1] : "" + } + + function E(e, t) { + return -1 < t.indexOf(e) + } + + function T(e, t, n) { + switch (O(e, I(n, t)), n) { + case "atom": + case "boolean": + return "atom"; + case "attribute": + return "attribute"; + case "builtin": + return "builtin"; + case "close_paren": + case "colon": + case "dot": + case "open_paren": + case "separator": + default: + return null; + case "comment": + return "comment"; + case "error": + return "error"; + case "fun": + return "meta"; + case "function": + return "tag"; + case "guard": + return "property"; + case "keyword": + return "keyword"; + case "macro": + return "variable-2"; + case "number": + return "number"; + case "operator": + return "operator"; + case "record": + return "bracket"; + case "string": + return "string"; + case "type": + return "def"; + case "variable": + return "variable" + } + } + + function S(e, t, n, r) { + return { + token: e, + column: t, + indent: n, + type: r + } + } + + function I(e, t) { + return S(t.current(), t.column(), t.indentation(), e) + } + + function N(e) { + return S(e, 0, 0, e) + } + + function A(e, t) { + var n = e.tokenStack.length, + r = t || 1; + return !(n < r) && e.tokenStack[n - r] + } + + function O(e, t) { + "comment" != t.type && "whitespace" != t.type && (e.tokenStack = C(e.tokenStack, t), e.tokenStack = D(e.tokenStack)) + } + + function C(e, t) { + var n = e.length - 1; + return 0 < n && "record" === e[n].type && "dot" === t.type ? e.pop() : 0 < n && "group" === e[n].type ? (e.pop(), e.push(t)) : e.push(t), e + } + + function D(e) { + if (!e.length) return e; + var t = e.length - 1; + if ("dot" === e[t].type) return []; + if (t > 1 && "fun" === e[t].type && "fun" === e[t - 1].token) return e.slice(0, t - 1); + switch (e[t].token) { + case "}": + return R(e, { + g: ["{"] + }); + case "]": + return R(e, { + i: ["["] + }); + case ")": + return R(e, { + i: ["("] + }); + case ">>": + return R(e, { + i: ["<<"] + }); + case "end": + return R(e, { + i: ["begin", "case", "fun", "if", "receive", "try"] + }); + case ",": + return R(e, { + e: ["begin", "try", "when", "->", ",", "(", "[", "{", "<<"] + }); + case "->": + return R(e, { + r: ["when"], + m: ["try", "if", "case", "receive"] + }); + case ";": + return R(e, { + E: ["case", "fun", "if", "receive", "try", "when"] + }); + case "catch": + return R(e, { + e: ["try"] + }); + case "of": + return R(e, { + e: ["case"] + }); + case "after": + return R(e, { + e: ["receive", "try"] + }); + default: + return e + } + } + + function R(e, t) { + for (var n in t) + for (var r = e.length - 1, i = t[n], a = r - 1; - 1 < a; a--) + if (E(e[a].token, i)) { + var o = e.slice(0, a); + switch (n) { + case "m": + return o.concat(e[a]).concat(e[r]); + case "r": + return o.concat(e[r]); + case "i": + return o; + case "g": + return o.concat(N("group")); + case "E": + case "e": + return o.concat(e[a]) + } + } + return "E" == n ? [] : e + } + + function M(n, r) { + var i, a = t.indentUnit, + o = L(r), + s = A(n, 1), + l = A(n, 2); + return n.in_string || n.in_atom ? e.Pass : l ? "when" == s.token ? s.column + a : "when" === o && "function" === l.type ? l.indent + a : "(" === o && "fun" === s.token ? s.column + 3 : "catch" === o && (i = $(n, ["try"])) ? i.column : E(o, ["end", "after", "of"]) ? (i = $(n, ["begin", "case", "fun", "if", "receive", "try"])) ? i.column : e.Pass : E(o, p) ? (i = $(n, u)) ? i.column : e.Pass : E(s.token, [",", "|", "||"]) || E(o, [",", "|", "||"]) ? (i = z(n)) ? i.column + i.token.length : a : "->" == s.token ? E(l.token, ["receive", "case", "if", "try"]) ? l.column + a + a : l.column + a : E(s.token, u) ? s.column + s.token.length : U(i = F(n)) ? i.column + a : 0 : 0 + } + + function L(e) { + var t = e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/); + return U(t) && 0 === t.index ? t[0] : "" + } + + function z(e) { + var t = e.tokenStack.slice(0, -1), + n = P(t, "type", ["open_paren"]); + return !!U(t[n]) && t[n] + } + + function F(e) { + var t = e.tokenStack, + n = P(t, "type", ["open_paren", "separator", "keyword"]), + r = P(t, "type", ["operator"]); + return U(n) && U(r) && n < r ? t[n + 1] : !!U(n) && t[n] + } + + function $(e, t) { + var n = e.tokenStack, + r = P(n, "token", t); + return !!U(n[r]) && n[r] + } + + function P(e, t, n) { + for (var r = e.length - 1; - 1 < r; r--) + if (E(e[r][t], n)) return r; + return !1 + } + + function U(e) { + return !1 !== e && null != e + } + return { + startState: function() { + return { + tokenStack: [], + in_string: !1, + in_atom: !1 + } + }, + token: function(e, t) { + return b(e, t) + }, + indent: function(e, t) { + return M(e, t) + }, + lineComment: "%" + } + })) + }(n(4631)) + }, + 27566: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineSimpleMode("factor", { + start: [{ + regex: /#?!.*/, + token: "comment" + }, { + regex: /"""/, + token: "string", + next: "string3" + }, { + regex: /(STRING:)(\s)/, + token: ["keyword", null], + next: "string2" + }, { + regex: /\S*?"/, + token: "string", + next: "string" + }, { + regex: /(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/, + token: "number" + }, { + regex: /((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/, + token: ["keyword", null, "def", null, "bracket"], + next: "stack" + }, { + regex: /(M\:)(\s+)(\S+)(\s+)(\S+)/, + token: ["keyword", null, "def", null, "tag"] + }, { + regex: /USING\:/, + token: "keyword", + next: "vocabulary" + }, { + regex: /(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/, + token: ["keyword", null, "tag"] + }, { + regex: /(\S+\:)(\s+)(\S+)(?=\s|$)/, + token: ["keyword", null, "def"] + }, { + regex: /(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/, + token: "builtin" + }, { + regex: /[\)><]+\S+(?=\s|$)/, + token: "builtin" + }, { + regex: /(?:[\+\-\=\/\*<>])(?=\s|$)/, + token: "keyword" + }, { + regex: /\S+/, + token: "variable" + }, { + regex: /\s+|./, + token: null + }], + vocabulary: [{ + regex: /;/, + token: "keyword", + next: "start" + }, { + regex: /\S+/, + token: "tag" + }, { + regex: /\s+|./, + token: null + }], + string: [{ + regex: /(?:[^\\]|\\.)*?"/, + token: "string", + next: "start" + }, { + regex: /.*/, + token: "string" + }], + string2: [{ + regex: /^;/, + token: "keyword", + next: "start" + }, { + regex: /.*/, + token: "string" + }], + string3: [{ + regex: /(?:[^\\]|\\.)*?"""/, + token: "string", + next: "start" + }, { + regex: /.*/, + token: "string" + }], + stack: [{ + regex: /\)/, + token: "bracket", + next: "start" + }, { + regex: /--/, + token: "bracket" + }, { + regex: /\S+/, + token: "meta" + }, { + regex: /\s+|./, + token: null + }], + meta: { + dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"], + lineComment: "!" + } + }), e.defineMIME("text/x-factor", "factor") + }(n(4631), n(40790)) + }, + 15300: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("fcl", (function(e) { + var t = e.indentUnit, + n = { + term: !0, + method: !0, + accu: !0, + rule: !0, + then: !0, + is: !0, + and: !0, + or: !0, + if: !0, + default: !0 + }, + r = { + var_input: !0, + var_output: !0, + fuzzify: !0, + defuzzify: !0, + function_block: !0, + ruleblock: !0 + }, + i = { + end_ruleblock: !0, + end_defuzzify: !0, + end_function_block: !0, + end_fuzzify: !0, + end_var: !0 + }, + a = { + true: !0, + false: !0, + nan: !0, + real: !0, + min: !0, + max: !0, + cog: !0, + cogs: !0 + }, + o = /[+\-*&^%:=<>!|\/]/; + + function s(e, t) { + var s = e.next(); + if (/[\d\.]/.test(s)) return "." == s ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" == s ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number"; + if ("/" == s || "(" == s) { + if (e.eat("*")) return t.tokenize = l, l(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (o.test(s)) return e.eatWhile(o), "operator"; + e.eatWhile(/[\w\$_\xa1-\uffff]/); + var c = e.current().toLowerCase(); + return n.propertyIsEnumerable(c) || r.propertyIsEnumerable(c) || i.propertyIsEnumerable(c) ? "keyword" : a.propertyIsEnumerable(c) ? "atom" : "variable" + } + + function l(e, t) { + for (var n, r = !1; n = e.next();) { + if (("/" == n || ")" == n) && r) { + t.tokenize = s; + break + } + r = "*" == n + } + return "comment" + } + + function c(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function u(e, t, n) { + return e.context = new c(e.indented, t, n, null, e.context) + } + + function d(e) { + if (e.context.prev) return "end_block" == e.context.type && (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new c((e || 0) - t, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var n = t.context; + if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + var a = (t.tokenize || s)(e, t); + if ("comment" == a) return a; + null == n.align && (n.align = !0); + var o = e.current().toLowerCase(); + return r.propertyIsEnumerable(o) ? u(t, e.column(), "end_block") : i.propertyIsEnumerable(o) && d(t), t.startOfLine = !1, a + }, + indent: function(e, n) { + if (e.tokenize != s && null != e.tokenize) return 0; + var r = e.context, + a = i.propertyIsEnumerable(n); + return r.align ? r.column + (a ? 0 : 1) : r.indented + (a ? 0 : t) + }, + electricChars: "ryk", + fold: "brace", + blockCommentStart: "(*", + blockCommentEnd: "*)", + lineComment: "//" + } + })), e.defineMIME("text/x-fcl", "fcl") + }(n(4631)) + }, + 88859: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + var t = []; + return e.split(" ").forEach((function(e) { + t.push({ + name: e + }) + })), t + } + var n = t("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"), + r = t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE"); + e.defineMode("forth", (function() { + function e(e, t) { + var n; + for (n = e.length - 1; n >= 0; n--) + if (e[n].name === t.toUpperCase()) return e[n] + } + return { + startState: function() { + return { + state: "", + base: 10, + coreWordList: n, + immediateWordList: r, + wordList: [] + } + }, + token: function(t, n) { + var r; + if (t.eatSpace()) return null; + if ("" === n.state) { + if (t.match(/^(\]|:NONAME)(\s|$)/i)) return n.state = " compilation", "builtin compilation"; + if (r = t.match(/^(\:)\s+(\S+)(\s|$)+/)) return n.wordList.push({ + name: r[2].toUpperCase() + }), n.state = " compilation", "def" + n.state; + if (r = t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i)) return n.wordList.push({ + name: r[2].toUpperCase() + }), "def" + n.state; + if (r = t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/)) return "builtin" + n.state + } else { + if (t.match(/^(\;|\[)(\s)/)) return n.state = "", t.backUp(1), "builtin compilation"; + if (t.match(/^(\;|\[)($)/)) return n.state = "", "builtin compilation"; + if (t.match(/^(POSTPONE)\s+\S+(\s|$)+/)) return "builtin" + } + return (r = t.match(/^(\S+)(\s+|$)/)) ? void 0 !== e(n.wordList, r[1]) ? "variable" + n.state : "\\" === r[1] ? (t.skipToEnd(), "comment" + n.state) : void 0 !== e(n.coreWordList, r[1]) ? "builtin" + n.state : void 0 !== e(n.immediateWordList, r[1]) ? "keyword" + n.state : "(" === r[1] ? (t.eatWhile((function(e) { + return ")" !== e + })), t.eat(")"), "comment" + n.state) : ".(" === r[1] ? (t.eatWhile((function(e) { + return ")" !== e + })), t.eat(")"), "string" + n.state) : 'S"' === r[1] || '."' === r[1] || 'C"' === r[1] ? (t.eatWhile((function(e) { + return '"' !== e + })), t.eat('"'), "string" + n.state) : r[1] - 68719476735 ? "number" + n.state : "atom" + n.state : void 0 + } + } + })), e.defineMIME("text/x-forth", "forth") + }(n(4631)) + }, + 44874: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("fortran", (function() { + function e(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0; + return t + } + var t = e(["abstract", "accept", "allocatable", "allocate", "array", "assign", "asynchronous", "backspace", "bind", "block", "byte", "call", "case", "class", "close", "common", "contains", "continue", "cycle", "data", "deallocate", "decode", "deferred", "dimension", "do", "elemental", "else", "encode", "end", "endif", "entry", "enumerator", "equivalence", "exit", "external", "extrinsic", "final", "forall", "format", "function", "generic", "go", "goto", "if", "implicit", "import", "include", "inquire", "intent", "interface", "intrinsic", "module", "namelist", "non_intrinsic", "non_overridable", "none", "nopass", "nullify", "open", "optional", "options", "parameter", "pass", "pause", "pointer", "print", "private", "program", "protected", "public", "pure", "read", "recursive", "result", "return", "rewind", "save", "select", "sequence", "stop", "subroutine", "target", "then", "to", "type", "use", "value", "volatile", "where", "while", "write"]), + n = e(["abort", "abs", "access", "achar", "acos", "adjustl", "adjustr", "aimag", "aint", "alarm", "all", "allocated", "alog", "amax", "amin", "amod", "and", "anint", "any", "asin", "associated", "atan", "besj", "besjn", "besy", "besyn", "bit_size", "btest", "cabs", "ccos", "ceiling", "cexp", "char", "chdir", "chmod", "clog", "cmplx", "command_argument_count", "complex", "conjg", "cos", "cosh", "count", "cpu_time", "cshift", "csin", "csqrt", "ctime", "c_funloc", "c_loc", "c_associated", "c_null_ptr", "c_null_funptr", "c_f_pointer", "c_null_char", "c_alert", "c_backspace", "c_form_feed", "c_new_line", "c_carriage_return", "c_horizontal_tab", "c_vertical_tab", "dabs", "dacos", "dasin", "datan", "date_and_time", "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy", "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf", "derfc", "dexp", "digits", "dim", "dint", "dlog", "dlog", "dmax", "dmin", "dmod", "dnint", "dot_product", "dprod", "dsign", "dsinh", "dsin", "dsqrt", "dtanh", "dtan", "dtime", "eoshift", "epsilon", "erf", "erfc", "etime", "exit", "exp", "exponent", "extends_type_of", "fdate", "fget", "fgetc", "float", "floor", "flush", "fnum", "fputc", "fput", "fraction", "fseek", "fstat", "ftell", "gerror", "getarg", "get_command", "get_command_argument", "get_environment_variable", "getcwd", "getenv", "getgid", "getlog", "getpid", "getuid", "gmtime", "hostnm", "huge", "iabs", "iachar", "iand", "iargc", "ibclr", "ibits", "ibset", "ichar", "idate", "idim", "idint", "idnint", "ieor", "ierrno", "ifix", "imag", "imagpart", "index", "int", "ior", "irand", "isatty", "ishft", "ishftc", "isign", "iso_c_binding", "is_iostat_end", "is_iostat_eor", "itime", "kill", "kind", "lbound", "len", "len_trim", "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc", "log", "logical", "long", "lshift", "lstat", "ltime", "matmul", "max", "maxexponent", "maxloc", "maxval", "mclock", "merge", "move_alloc", "min", "minexponent", "minloc", "minval", "mod", "modulo", "mvbits", "nearest", "new_line", "nint", "not", "or", "pack", "perror", "precision", "present", "product", "radix", "rand", "random_number", "random_seed", "range", "real", "realpart", "rename", "repeat", "reshape", "rrspacing", "rshift", "same_type_as", "scale", "scan", "second", "selected_int_kind", "selected_real_kind", "set_exponent", "shape", "short", "sign", "signal", "sinh", "sin", "sleep", "sngl", "spacing", "spread", "sqrt", "srand", "stat", "sum", "symlnk", "system", "system_clock", "tan", "tanh", "time", "tiny", "transfer", "transpose", "trim", "ttynam", "ubound", "umask", "unlink", "unpack", "verify", "xor", "zabs", "zcos", "zexp", "zlog", "zsin", "zsqrt"]), + r = e(["c_bool", "c_char", "c_double", "c_double_complex", "c_float", "c_float_complex", "c_funptr", "c_int", "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t", "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t", "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t", "c_int_least64_t", "c_int_least8_t", "c_intmax_t", "c_intptr_t", "c_long", "c_long_double", "c_long_double_complex", "c_long_long", "c_ptr", "c_short", "c_signed_char", "c_size_t", "character", "complex", "double", "integer", "logical", "real"]), + i = /[+\-*&=<>\/\:]/, + a = /^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i; + + function o(e, o) { + if (e.match(a)) return "operator"; + var l = e.next(); + if ("!" == l) return e.skipToEnd(), "comment"; + if ('"' == l || "'" == l) return o.tokenize = s(l), o.tokenize(e, o); + if (/[\[\]\(\),]/.test(l)) return null; + if (/\d/.test(l)) return e.eatWhile(/[\w\.]/), "number"; + if (i.test(l)) return e.eatWhile(i), "operator"; + e.eatWhile(/[\w\$_]/); + var c = e.current().toLowerCase(); + return t.hasOwnProperty(c) ? "keyword" : n.hasOwnProperty(c) || r.hasOwnProperty(c) ? "builtin" : "variable" + } + + function s(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return !a && i || (n.tokenize = null), "string" + } + } + return { + startState: function() { + return { + tokenize: null + } + }, + token: function(e, t) { + if (e.eatSpace()) return null; + var n = (t.tokenize || o)(e, t); + return n + } + } + })), e.defineMIME("text/x-fortran", "fortran") + }(n(4631)) + }, + 28902: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("gas", (function(e, t) { + var n = [], + r = "", + i = { + ".abort": "builtin", + ".align": "builtin", + ".altmacro": "builtin", + ".ascii": "builtin", + ".asciz": "builtin", + ".balign": "builtin", + ".balignw": "builtin", + ".balignl": "builtin", + ".bundle_align_mode": "builtin", + ".bundle_lock": "builtin", + ".bundle_unlock": "builtin", + ".byte": "builtin", + ".cfi_startproc": "builtin", + ".comm": "builtin", + ".data": "builtin", + ".def": "builtin", + ".desc": "builtin", + ".dim": "builtin", + ".double": "builtin", + ".eject": "builtin", + ".else": "builtin", + ".elseif": "builtin", + ".end": "builtin", + ".endef": "builtin", + ".endfunc": "builtin", + ".endif": "builtin", + ".equ": "builtin", + ".equiv": "builtin", + ".eqv": "builtin", + ".err": "builtin", + ".error": "builtin", + ".exitm": "builtin", + ".extern": "builtin", + ".fail": "builtin", + ".file": "builtin", + ".fill": "builtin", + ".float": "builtin", + ".func": "builtin", + ".global": "builtin", + ".gnu_attribute": "builtin", + ".hidden": "builtin", + ".hword": "builtin", + ".ident": "builtin", + ".if": "builtin", + ".incbin": "builtin", + ".include": "builtin", + ".int": "builtin", + ".internal": "builtin", + ".irp": "builtin", + ".irpc": "builtin", + ".lcomm": "builtin", + ".lflags": "builtin", + ".line": "builtin", + ".linkonce": "builtin", + ".list": "builtin", + ".ln": "builtin", + ".loc": "builtin", + ".loc_mark_labels": "builtin", + ".local": "builtin", + ".long": "builtin", + ".macro": "builtin", + ".mri": "builtin", + ".noaltmacro": "builtin", + ".nolist": "builtin", + ".octa": "builtin", + ".offset": "builtin", + ".org": "builtin", + ".p2align": "builtin", + ".popsection": "builtin", + ".previous": "builtin", + ".print": "builtin", + ".protected": "builtin", + ".psize": "builtin", + ".purgem": "builtin", + ".pushsection": "builtin", + ".quad": "builtin", + ".reloc": "builtin", + ".rept": "builtin", + ".sbttl": "builtin", + ".scl": "builtin", + ".section": "builtin", + ".set": "builtin", + ".short": "builtin", + ".single": "builtin", + ".size": "builtin", + ".skip": "builtin", + ".sleb128": "builtin", + ".space": "builtin", + ".stab": "builtin", + ".string": "builtin", + ".struct": "builtin", + ".subsection": "builtin", + ".symver": "builtin", + ".tag": "builtin", + ".text": "builtin", + ".title": "builtin", + ".type": "builtin", + ".uleb128": "builtin", + ".val": "builtin", + ".version": "builtin", + ".vtable_entry": "builtin", + ".vtable_inherit": "builtin", + ".warning": "builtin", + ".weak": "builtin", + ".weakref": "builtin", + ".word": "builtin" + }, + a = {}; + + function o(e) { + r = "#", a.al = "variable", a.ah = "variable", a.ax = "variable", a.eax = "variable-2", a.rax = "variable-3", a.bl = "variable", a.bh = "variable", a.bx = "variable", a.ebx = "variable-2", a.rbx = "variable-3", a.cl = "variable", a.ch = "variable", a.cx = "variable", a.ecx = "variable-2", a.rcx = "variable-3", a.dl = "variable", a.dh = "variable", a.dx = "variable", a.edx = "variable-2", a.rdx = "variable-3", a.si = "variable", a.esi = "variable-2", a.rsi = "variable-3", a.di = "variable", a.edi = "variable-2", a.rdi = "variable-3", a.sp = "variable", a.esp = "variable-2", a.rsp = "variable-3", a.bp = "variable", a.ebp = "variable-2", a.rbp = "variable-3", a.ip = "variable", a.eip = "variable-2", a.rip = "variable-3", a.cs = "keyword", a.ds = "keyword", a.ss = "keyword", a.es = "keyword", a.fs = "keyword", a.gs = "keyword" + } + + function s(e) { + r = "@", i.syntax = "builtin", a.r0 = "variable", a.r1 = "variable", a.r2 = "variable", a.r3 = "variable", a.r4 = "variable", a.r5 = "variable", a.r6 = "variable", a.r7 = "variable", a.r8 = "variable", a.r9 = "variable", a.r10 = "variable", a.r11 = "variable", a.r12 = "variable", a.sp = "variable-2", a.lr = "variable-2", a.pc = "variable-2", a.r13 = a.sp, a.r14 = a.lr, a.r15 = a.pc, n.push((function(e, t) { + if ("#" === e) return t.eatWhile(/\w/), "number" + })) + } + var l = (t.architecture || "x86").toLowerCase(); + + function c(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (n === t && !r) return !1; + r = !r && "\\" === n + } + return r + } + + function u(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if ("/" === n && r) { + t.tokenize = null; + break + } + r = "*" === n + } + return "comment" + } + return "x86" === l ? o(t) : "arm" !== l && "armv6" !== l || s(t), { + startState: function() { + return { + tokenize: null + } + }, + token: function(e, t) { + if (t.tokenize) return t.tokenize(e, t); + if (e.eatSpace()) return null; + var o, s, l = e.next(); + if ("/" === l && e.eat("*")) return t.tokenize = u, u(e, t); + if (l === r) return e.skipToEnd(), "comment"; + if ('"' === l) return c(e, '"'), "string"; + if ("." === l) return e.eatWhile(/\w/), s = e.current().toLowerCase(), (o = i[s]) || null; + if ("=" === l) return e.eatWhile(/\w/), "tag"; + if ("{" === l) return "bracket"; + if ("}" === l) return "bracket"; + if (/\d/.test(l)) return "0" === l && e.eat("x") ? (e.eatWhile(/[0-9a-fA-F]/), "number") : (e.eatWhile(/\d/), "number"); + if (/\w/.test(l)) return e.eatWhile(/\w/), e.eat(":") ? "tag" : (s = e.current().toLowerCase(), (o = a[s]) || null); + for (var d = 0; d < n.length; d++) + if (o = n[d](l, e, t)) return o + }, + lineComment: r, + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + })) + }(n(4631)) + }, + 42425: function(e, t, n) { + ! function(e) { + "use strict"; + var t = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/i; + e.defineMode("gfm", (function(n, r) { + var i = 0; + + function a(e) { + return e.code = !1, null + } + var o = { + startState: function() { + return { + code: !1, + codeBlock: !1, + ateSpace: !1 + } + }, + copyState: function(e) { + return { + code: e.code, + codeBlock: e.codeBlock, + ateSpace: e.ateSpace + } + }, + token: function(e, n) { + if (n.combineTokens = null, n.codeBlock) return e.match(/^```+/) ? (n.codeBlock = !1, null) : (e.skipToEnd(), null); + if (e.sol() && (n.code = !1), e.sol() && e.match(/^```+/)) return e.skipToEnd(), n.codeBlock = !0, null; + if ("`" === e.peek()) { + e.next(); + var a = e.pos; + e.eatWhile("`"); + var o = 1 + e.pos - a; + return n.code ? o === i && (n.code = !1) : (i = o, n.code = !0), null + } + if (n.code) return e.next(), null; + if (e.eatSpace()) return n.ateSpace = !0, null; + if ((e.sol() || n.ateSpace) && (n.ateSpace = !1, !1 !== r.gitHubSpice)) { + if (e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)) return n.combineTokens = !0, "link"; + if (e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) return n.combineTokens = !0, "link" + } + return e.match(t) && "](" != e.string.slice(e.start - 2, e.start) && (0 == e.start || /\W/.test(e.string.charAt(e.start - 1))) ? (n.combineTokens = !0, "link") : (e.next(), null) + }, + blankLine: a + }, + s = { + taskLists: !0, + strikethrough: !0, + emoji: !0 + }; + for (var l in r) s[l] = r[l]; + return s.name = "markdown", e.overlayMode(e.getMode(n, s), o) + }), "markdown"), e.defineMIME("text/x-gfm", "gfm") + }(n(4631), n(49047), n(14146)) + }, + 85546: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("gherkin", (function() { + return { + startState: function() { + return { + lineNumber: 0, + tableHeaderLine: !1, + allowFeature: !0, + allowBackground: !1, + allowScenario: !1, + allowSteps: !1, + allowPlaceholders: !1, + allowMultilineArgument: !1, + inMultilineString: !1, + inMultilineTable: !1, + inKeywordLine: !1 + } + }, + token: function(e, t) { + if (e.sol() && (t.lineNumber++, t.inKeywordLine = !1, t.inMultilineTable && (t.tableHeaderLine = !1, e.match(/\s*\|/, !1) || (t.allowMultilineArgument = !1, t.inMultilineTable = !1))), e.eatSpace(), t.allowMultilineArgument) { + if (t.inMultilineString) return e.match('"""') ? (t.inMultilineString = !1, t.allowMultilineArgument = !1) : e.match(/.*/), "string"; + if (t.inMultilineTable) return e.match(/\|\s*/) ? "bracket" : (e.match(/[^\|]*/), t.tableHeaderLine ? "header" : "string"); + if (e.match('"""')) return t.inMultilineString = !0, "string"; + if (e.match("|")) return t.inMultilineTable = !0, t.tableHeaderLine = !0, "bracket" + } + return e.match(/#.*/) ? "comment" : !t.inKeywordLine && e.match(/@\S+/) ? "tag" : !t.inKeywordLine && t.allowFeature && e.match(/(\u6a5f\u80fd|\u529f\u80fd|\u30d5\u30a3\u30fc\u30c1\u30e3|\uae30\ub2a5|\u0e42\u0e04\u0e23\u0e07\u0e2b\u0e25\u0e31\u0e01|\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16|\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e32\u0e07\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08|\u0cb9\u0cc6\u0c9a\u0ccd\u0c9a\u0cb3|\u0c17\u0c41\u0c23\u0c2e\u0c41|\u0a2e\u0a41\u0a39\u0a3e\u0a02\u0a26\u0a30\u0a3e|\u0a28\u0a15\u0a36 \u0a28\u0a41\u0a39\u0a3e\u0a30|\u0a16\u0a3e\u0a38\u0a40\u0a05\u0a24|\u0930\u0942\u092a \u0932\u0947\u0916|\u0648\u0650\u06cc\u0698\u06af\u06cc|\u062e\u0627\u0635\u064a\u0629|\u05ea\u05db\u05d5\u05e0\u05d4|\u0424\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b|\u0424\u0443\u043d\u043a\u0446\u0438\u044f|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b|\u04ae\u0437\u0435\u043d\u0447\u04d9\u043b\u0435\u043a\u043b\u0435\u043b\u0435\u043a|\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e|\u041e\u0441\u043e\u0431\u0438\u043d\u0430|\u041c\u04e9\u043c\u043a\u0438\u043d\u043b\u0435\u043a|\u041c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442|\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1|\u0394\u03c5\u03bd\u03b1\u03c4\u03cc\u03c4\u03b7\u03c4\u03b1|W\u0142a\u015bciwo\u015b\u0107|Vlastnos\u0165|Trajto|T\xednh n\u0103ng|Savyb\u0117|Pretty much|Po\u017eiadavka|Po\u017eadavek|Potrzeba biznesowa|\xd6zellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogu\u0107nost|Mogucnost|Jellemz\u0151|Hw\xe6t|Hwaet|Funzionalit\xe0|Funktionalit\xe9it|Funktionalit\xe4t|Funkcja|Funkcionalnost|Funkcionalit\u0101te|Funkcia|Fungsi|Functionaliteit|Func\u021bionalitate|Func\u0163ionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalit\xe9|Fitur|F\u012b\u010da|Feature|Eiginleiki|Egenskap|Egenskab|Caracter\xedstica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/) ? (t.allowScenario = !0, t.allowBackground = !0, t.allowPlaceholders = !1, t.allowSteps = !1, t.allowMultilineArgument = !1, t.inKeywordLine = !0, "keyword") : !t.inKeywordLine && t.allowBackground && e.match(/(\u80cc\u666f|\ubc30\uacbd|\u0e41\u0e19\u0e27\u0e04\u0e34\u0e14|\u0cb9\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6\u0cb2\u0cc6|\u0c28\u0c47\u0c2a\u0c25\u0c4d\u0c2f\u0c02|\u0a2a\u0a3f\u0a1b\u0a4b\u0a15\u0a5c|\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f|\u0632\u0645\u06cc\u0646\u0647|\u0627\u0644\u062e\u0644\u0641\u064a\u0629|\u05e8\u05e7\u05e2|\u0422\u0430\u0440\u0438\u0445|\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0435\u0434\u0438\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u043e\u0437\u0430\u0434\u0438\u043d\u0430|\u041f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0430|\u041e\u0441\u043d\u043e\u0432\u0430|\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442|\u041a\u0435\u0440\u0435\u0448|\u03a5\u03c0\u03cc\u03b2\u03b1\u03b8\u03c1\u03bf|Za\u0142o\u017cenia|Yo\-ho\-ho|Tausta|Taust|Situ\u0101cija|Rerefons|Pozadina|Pozadie|Pozad\xed|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|H\xe1tt\xe9r|Hannergrond|Grundlage|Ge\xe7mi\u015f|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cen\xe1rio de Fundo|Cenario de Fundo|Cefndir|B\u1ed1i c\u1ea3nh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|\xc6r|Aer|Achtergrond):/) ? (t.allowPlaceholders = !1, t.allowSteps = !0, t.allowBackground = !1, t.allowMultilineArgument = !1, t.inKeywordLine = !0, "keyword") : !t.inKeywordLine && t.allowScenario && e.match(/(\u5834\u666f\u5927\u7db1|\u573a\u666f\u5927\u7eb2|\u5287\u672c\u5927\u7db1|\u5267\u672c\u5927\u7eb2|\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3|\uc2dc\ub098\ub9ac\uc624 \uac1c\uc694|\u0e2a\u0e23\u0e38\u0e1b\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0cb5\u0cbf\u0cb5\u0cb0\u0ca3\u0cc6|\u0c15\u0c25\u0c28\u0c02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a30\u0a42\u0a2a \u0a30\u0a47\u0a16\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a22\u0a3e\u0a02\u0a1a\u0a3e|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u0930\u0947\u0916\u093e|\u0633\u064a\u0646\u0627\u0631\u064a\u0648 \u0645\u062e\u0637\u0637|\u0627\u0644\u06af\u0648\u06cc \u0633\u0646\u0627\u0631\u06cc\u0648|\u05ea\u05d1\u05e0\u05d9\u05ea \u05ea\u05e8\u05d7\u05d9\u05e9|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u043d\u044b\u04a3 \u0442\u04e9\u0437\u0435\u043b\u0435\u0448\u0435|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0441\u0438|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0430|\u0421\u043a\u0438\u0446\u0430|\u0420\u0430\u043c\u043a\u0430 \u043d\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u041a\u043e\u043d\u0446\u0435\u043f\u0442|\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae \u03a3\u03b5\u03bd\u03b1\u03c1\u03af\u03bf\u03c5|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hw\xe6r swa|Swa hwaer swa|Struktura scenarija|Structur\u0103 scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo tasla\u011f\u0131|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scen\u0101rijs p\u0113c parauga|Scenarijaus \u0161ablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Sc\xe9nario|Plan du sc\xe9nario|Osnova sc\xe9n\xe1\u0159e|Osnova Scen\xe1ra|N\xe1\u010drt Scen\xe1ru|N\xe1\u010drt Sc\xe9n\xe1\u0159e|N\xe1\u010drt Scen\xe1ra|MISHUN SRSLY|Menggariskan Senario|L\xfdsing D\xe6ma|L\xfdsing Atbur\xf0ar\xe1sar|Konturo de la scenaro|Koncept|Khung t\xecnh hu\u1ed1ng|Khung k\u1ecbch b\u1ea3n|Forgat\xf3k\xf6nyv v\xe1zlat|Esquema do Cen\xe1rio|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delinea\xe7\xe3o do Cen\xe1rio|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/) ? (t.allowPlaceholders = !0, t.allowSteps = !0, t.allowMultilineArgument = !1, t.inKeywordLine = !0, "keyword") : t.allowScenario && e.match(/(\u4f8b\u5b50|\u4f8b|\u30b5\u30f3\u30d7\u30eb|\uc608|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07|\u0c89\u0ca6\u0cbe\u0cb9\u0cb0\u0ca3\u0cc6\u0c97\u0cb3\u0cc1|\u0c09\u0c26\u0c3e\u0c39\u0c30\u0c23\u0c32\u0c41|\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a28\u0a3e\u0a02|\u0909\u0926\u093e\u0939\u0930\u0923|\u0646\u0645\u0648\u0646\u0647 \u0647\u0627|\u0627\u0645\u062b\u0644\u0629|\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea|\u04ae\u0440\u043d\u04d9\u043a\u043b\u04d9\u0440|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0438|\u041f\u0440\u0438\u043c\u0435\u0440\u044b|\u041f\u0440\u0438\u043c\u0435\u0440\u0438|\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438|\u041c\u0438\u0441\u043e\u043b\u043b\u0430\u0440|\u041c\u0438\u0441\u0430\u043b\u043b\u0430\u0440|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03b1|\u03a0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se \xfee|Se the|Se \xf0e|Scenarios|Scenariji|Scenarijai|Przyk\u0142ady|Primjeri|Primeri|P\u0159\xedklady|Pr\xedklady|Piem\u0113ri|P\xe9ld\xe1k|Pavyzd\u017eiai|Paraugs|\xd6rnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|D\u1eef li\u1ec7u|Dead men tell no tales|D\xe6mi|Contoh|Cen\xe1rios|Cenarios|Beispiller|Beispiele|Atbur\xf0ar\xe1sir):/) ? (t.allowPlaceholders = !1, t.allowSteps = !0, t.allowBackground = !1, t.allowMultilineArgument = !0, "keyword") : !t.inKeywordLine && t.allowScenario && e.match(/(\u5834\u666f|\u573a\u666f|\u5287\u672c|\u5267\u672c|\u30b7\u30ca\u30ea\u30aa|\uc2dc\ub098\ub9ac\uc624|\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0c95\u0ca5\u0cbe\u0cb8\u0cbe\u0cb0\u0cbe\u0c82\u0cb6|\u0c38\u0c28\u0c4d\u0c28\u0c3f\u0c35\u0c47\u0c36\u0c02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f|\u0633\u064a\u0646\u0627\u0631\u064a\u0648|\u0633\u0646\u0627\u0631\u06cc\u0648|\u05ea\u05e8\u05d7\u05d9\u05e9|\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u043e|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u041f\u0440\u0438\u043c\u0435\u0440|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03bf|T\xecnh hu\u1ed1ng|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Sc\xe9nario|Scenario|Scenarijus|Scen\u0101rijs|Scenarij|Scenarie|Sc\xe9n\xe1\u0159|Scen\xe1r|Primer|MISHUN|K\u1ecbch b\u1ea3n|Keadaan|Heave to|Forgat\xf3k\xf6nyv|Escenario|Escenari|Cen\xe1rio|Cenario|Awww, look mate|Atbur\xf0ar\xe1s):/) ? (t.allowPlaceholders = !1, t.allowSteps = !0, t.allowBackground = !1, t.allowMultilineArgument = !1, t.inKeywordLine = !0, "keyword") : !t.inKeywordLine && t.allowSteps && e.match(/(\u90a3\u9ebc|\u90a3\u4e48|\u800c\u4e14|\u7576|\u5f53|\u5e76\u4e14|\u540c\u6642|\u540c\u65f6|\u524d\u63d0|\u5047\u8bbe|\u5047\u8a2d|\u5047\u5b9a|\u5047\u5982|\u4f46\u662f|\u4f46\u3057|\u4e26\u4e14|\u3082\u3057|\u306a\u3089\u3070|\u305f\u3060\u3057|\u3057\u304b\u3057|\u304b\u3064|\ud558\uc9c0\ub9cc|\uc870\uac74|\uba3c\uc800|\ub9cc\uc77c|\ub9cc\uc57d|\ub2e8|\uadf8\ub9ac\uace0|\uadf8\ub7ec\uba74|\u0e41\u0e25\u0e30 |\u0e40\u0e21\u0e37\u0e48\u0e2d |\u0e41\u0e15\u0e48 |\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 |\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49 |\u0cb8\u0ccd\u0ca5\u0cbf\u0ca4\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 |\u0cae\u0ca4\u0ccd\u0ca4\u0cc1 |\u0ca8\u0cbf\u0cd5\u0ca1\u0cbf\u0ca6 |\u0ca8\u0c82\u0ca4\u0cb0 |\u0c86\u0ca6\u0cb0\u0cc6 |\u0c2e\u0c30\u0c3f\u0c2f\u0c41 |\u0c1a\u0c46\u0c2a\u0c4d\u0c2a\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f |\u0c15\u0c3e\u0c28\u0c3f |\u0c08 \u0c2a\u0c30\u0c3f\u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f\u0c32\u0c4b |\u0c05\u0c2a\u0c4d\u0c2a\u0c41\u0c21\u0c41 |\u0a2a\u0a30 |\u0a24\u0a26 |\u0a1c\u0a47\u0a15\u0a30 |\u0a1c\u0a3f\u0a35\u0a47\u0a02 \u0a15\u0a3f |\u0a1c\u0a26\u0a4b\u0a02 |\u0a05\u0a24\u0a47 |\u092f\u0926\u093f |\u092a\u0930\u0928\u094d\u0924\u0941 |\u092a\u0930 |\u0924\u092c |\u0924\u0926\u093e |\u0924\u0925\u093e |\u091c\u092c |\u091a\u0942\u0902\u0915\u093f |\u0915\u093f\u0928\u094d\u0924\u0941 |\u0915\u0926\u093e |\u0914\u0930 |\u0905\u0917\u0930 |\u0648 |\u0647\u0646\u06af\u0627\u0645\u06cc |\u0645\u062a\u0649 |\u0644\u0643\u0646 |\u0639\u0646\u062f\u0645\u0627 |\u062b\u0645 |\u0628\u0641\u0631\u0636 |\u0628\u0627 \u0641\u0631\u0636 |\u0627\u0645\u0627 |\u0627\u0630\u0627\u064b |\u0622\u0646\u06af\u0627\u0647 |\u05db\u05d0\u05e9\u05e8 |\u05d5\u05d2\u05dd |\u05d1\u05d4\u05d9\u05e0\u05ea\u05df |\u05d0\u05d6\u05d9 |\u05d0\u05d6 |\u05d0\u05d1\u05dc |\u042f\u043a\u0449\u043e |\u04ba\u04d9\u043c |\u0423\u043d\u0434\u0430 |\u0422\u043e\u0434\u0456 |\u0422\u043e\u0433\u0434\u0430 |\u0422\u043e |\u0422\u0430\u043a\u0436\u0435 |\u0422\u0430 |\u041f\u0443\u0441\u0442\u044c |\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u0449\u043e |\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e |\u041e\u043d\u0434\u0430 |\u041d\u043e |\u041d\u0435\u0445\u0430\u0439 |\u041d\u04d9\u0442\u0438\u0497\u04d9\u0434\u04d9 |\u041b\u0435\u043a\u0438\u043d |\u041b\u04d9\u043a\u0438\u043d |\u041a\u043e\u043b\u0438 |\u041a\u043e\u0433\u0434\u0430 |\u041a\u043e\u0433\u0430\u0442\u043e |\u041a\u0430\u0434\u0430 |\u041a\u0430\u0434 |\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 |\u0406 |\u0418 |\u0417\u0430\u0434\u0430\u0442\u043e |\u0417\u0430\u0434\u0430\u0442\u0438 |\u0417\u0430\u0434\u0430\u0442\u0435 |\u0415\u0441\u043b\u0438 |\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c |\u0414\u0430\u043d\u043e |\u0414\u0430\u0434\u0435\u043d\u043e |\u0412\u04d9 |\u0412\u0430 |\u0411\u0438\u0440\u043e\u043a |\u04d8\u043c\u043c\u0430 |\u04d8\u0439\u0442\u0438\u043a |\u04d8\u0433\u04d9\u0440 |\u0410\u043c\u043c\u043e |\u0410\u043b\u0438 |\u0410\u043b\u0435 |\u0410\u0433\u0430\u0440 |\u0410 \u0442\u0430\u043a\u043e\u0436 |\u0410 |\u03a4\u03cc\u03c4\u03b5 |\u038c\u03c4\u03b1\u03bd |\u039a\u03b1\u03b9 |\u0394\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5 |\u0391\u03bb\u03bb\u03ac |\xdeurh |\xdeegar |\xdea \xfee |\xde\xe1 |\xdea |Zatati |Zak\u0142adaj\u0105c |Zadato |Zadate |Zadano |Zadani |Zadan |Za p\u0159edpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |V\xe0 |Und |Un |ugeholl |Too right |Thurh |Th\xec |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |\u0218i |\u015ei |Si |Sed |Se |S\xe5 |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokia\u013e |Per\xf2 |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nh\u01b0ng |N\xe4r |N\xe5r |Mutta |Men |Mas |Maka |Majd |Maj\u0105c |Mais |Maar |m\xe4 |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Ke\u010f |Kdy\u017e |Kaj |Kai |Kada |Kad |Je\u017celi |Je\u015bli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |\xc9tant donn\xe9s |Etant donn\xe9s |\xc9tant donn\xe9es |Etant donn\xe9es |\xc9tant donn\xe9e |Etant donn\xe9e |\xc9tant donn\xe9 |Etant donn\xe9 |Et |\xc9s |Entonces |Ent\xf3n |Ent\xe3o |Entao |En |E\u011fer ki |Ef |Eeldades |E |\xd0urh |Duota |Dun |Donita\u0135o |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Da\u021bi fiind |Da\u0163i fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |\xd0a \xf0e |\xd0a |Cuando |Cho |Cando |C\xe2nd |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Bi\u1ebft |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |At\xe8s |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A z\xe1rove\u0148 |A tie\u017e |A taktie\u017e |A tak\xe9 |A |a |7 |\* )/) ? (t.inStep = !0, t.allowPlaceholders = !0, t.allowMultilineArgument = !0, t.inKeywordLine = !0, "keyword") : e.match(/"[^"]*"?/) ? "string" : t.allowPlaceholders && e.match(/<[^>]*>?/) ? "variable" : (e.next(), e.eatWhile(/[^@"<#]/), null) + } + } + })), e.defineMIME("text/x-feature", "gherkin") + }(n(4631)) + }, + 94750: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("go", (function(t) { + var n, r = t.indentUnit, + i = { + break: !0, + case: !0, + chan: !0, + const: !0, + continue: !0, + default: !0, + defer: !0, + else: !0, + fallthrough: !0, + for: !0, + func: !0, + go: !0, + goto: !0, + if: !0, + import: !0, + interface: !0, + map: !0, + package: !0, + range: !0, + return: !0, + select: !0, + struct: !0, + switch: !0, + type: !0, + var: !0, + bool: !0, + byte: !0, + complex64: !0, + complex128: !0, + float32: !0, + float64: !0, + int8: !0, + int16: !0, + int32: !0, + int64: !0, + string: !0, + uint8: !0, + uint16: !0, + uint32: !0, + uint64: !0, + int: !0, + uint: !0, + uintptr: !0, + error: !0, + rune: !0 + }, + a = { + true: !0, + false: !0, + iota: !0, + nil: !0, + append: !0, + cap: !0, + close: !0, + complex: !0, + copy: !0, + delete: !0, + imag: !0, + len: !0, + make: !0, + new: !0, + panic: !0, + print: !0, + println: !0, + real: !0, + recover: !0 + }, + o = /[+\-*&^%:=<>!|\/]/; + + function s(e, t) { + var r = e.next(); + if ('"' == r || "'" == r || "`" == r) return t.tokenize = l(r), t.tokenize(e, t); + if (/[\d\.]/.test(r)) return "." == r ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" == r ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number"; + if (/[\[\]{}\(\),;\:\.]/.test(r)) return n = r, null; + if ("/" == r) { + if (e.eat("*")) return t.tokenize = c, c(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (o.test(r)) return e.eatWhile(o), "operator"; + e.eatWhile(/[\w\$_\xa1-\uffff]/); + var s = e.current(); + return i.propertyIsEnumerable(s) ? ("case" != s && "default" != s || (n = "case"), "keyword") : a.propertyIsEnumerable(s) ? "atom" : "variable" + } + + function l(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "`" != e && "\\" == r + } + return (a || !i && "`" != e) && (n.tokenize = s), "string" + } + } + + function c(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = s; + break + } + r = "*" == n + } + return "comment" + } + + function u(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function d(e, t, n) { + return e.context = new u(e.indented, t, n, null, e.context) + } + + function p(e) { + if (e.context.prev) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + } + return { + startState: function(e) { + return { + tokenize: null, + context: new u((e || 0) - r, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0, "case" == r.type && (r.type = "}")), e.eatSpace()) return null; + n = null; + var i = (t.tokenize || s)(e, t); + return "comment" == i || (null == r.align && (r.align = !0), "{" == n ? d(t, e.column(), "}") : "[" == n ? d(t, e.column(), "]") : "(" == n ? d(t, e.column(), ")") : "case" == n ? r.type = "case" : ("}" == n && "}" == r.type || n == r.type) && p(t), t.startOfLine = !1), i + }, + indent: function(t, n) { + if (t.tokenize != s && null != t.tokenize) return e.Pass; + var i = t.context, + a = n && n.charAt(0); + if ("case" == i.type && /^(?:case|default)\b/.test(n)) return t.context.type = "}", i.indented; + var o = a == i.type; + return i.align ? i.column + (o ? 0 : 1) : i.indented + (o ? 0 : r) + }, + electricChars: "{}):", + closeBrackets: "()[]{}''\"\"``", + fold: "brace", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })), e.defineMIME("text/x-go", "go") + }(n(4631)) + }, + 53123: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("groovy", (function(t) { + function n(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var r, i = n("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"), + a = n("catch class def do else enum finally for if interface switch trait try while"), + o = n("return break continue"), + s = n("null true false this"); + + function l(e, t) { + var n = e.next(); + if ('"' == n || "'" == n) return c(n, e, t); + if (/[\[\]{}\(\),;\:\.]/.test(n)) return r = n, null; + if (/\d/.test(n)) return e.eatWhile(/[\w\.]/), e.eat(/eE/) && (e.eat(/\+\-/), e.eatWhile(/\d/)), "number"; + if ("/" == n) { + if (e.eat("*")) return t.tokenize.push(p), p(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment"; + if (f(t.lastToken, !1)) return c(n, e, t) + } + if ("-" == n && e.eat(">")) return r = "->", null; + if (/[+\-*&%=<>!?|\/~]/.test(n)) return e.eatWhile(/[+\-*&%=<>|~]/), "operator"; + if (e.eatWhile(/[\w\$_]/), "@" == n) return e.eatWhile(/[\w\$_\.]/), "meta"; + if ("." == t.lastToken) return "property"; + if (e.eat(":")) return r = "proplabel", "property"; + var l = e.current(); + return s.propertyIsEnumerable(l) ? "atom" : i.propertyIsEnumerable(l) ? (a.propertyIsEnumerable(l) ? r = "newstatement" : o.propertyIsEnumerable(l) && (r = "standalone"), "keyword") : "variable" + } + + function c(e, t, n) { + var r = !1; + if ("/" != e && t.eat(e)) { + if (!t.eat(e)) return "string"; + r = !0 + } + + function i(t, n) { + for (var i, a = !1, o = !r; null != (i = t.next());) { + if (i == e && !a) { + if (!r) break; + if (t.match(e + e)) { + o = !0; + break + } + } + if ('"' == e && "$" == i && !a) { + if (t.eat("{")) return n.tokenize.push(u()), "string"; + if (t.match(/^\w/, !1)) return n.tokenize.push(d), "string" + } + a = !a && "\\" == i + } + return o && n.tokenize.pop(), "string" + } + return n.tokenize.push(i), i(t, n) + } + + function u() { + var e = 1; + + function t(t, n) { + if ("}" == t.peek()) { + if (0 == --e) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n) + } else "{" == t.peek() && e++; + return l(t, n) + } + return t.isBase = !0, t + } + + function d(e, t) { + var n = e.match(/^(\.|[\w\$_]+)/); + return n ? "." == n[0] ? null : "variable" : (t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t)) + } + + function p(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize.pop(); + break + } + r = "*" == n + } + return "comment" + } + + function f(e, t) { + return !e || "operator" == e || "->" == e || /[\.\[\{\(,;:]/.test(e) || "newstatement" == e || "keyword" == e || "proplabel" == e || "standalone" == e && !t + } + + function m(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function h(e, t, n) { + return e.context = new m(e.indented, t, n, null, e.context) + } + + function g(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return l.isBase = !0, { + startState: function(e) { + return { + tokenize: [l], + context: new m((e || 0) - t.indentUnit, 0, "top", !1), + indented: 0, + startOfLine: !0, + lastToken: null + } + }, + token: function(e, t) { + var n = t.context; + if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0, "statement" != n.type || f(t.lastToken, !0) || (g(t), n = t.context)), e.eatSpace()) return null; + r = null; + var i = t.tokenize[t.tokenize.length - 1](e, t); + if ("comment" == i) return i; + if (null == n.align && (n.align = !0), ";" != r && ":" != r || "statement" != n.type) + if ("->" == r && "statement" == n.type && "}" == n.prev.type) g(t), t.context.align = !1; + else if ("{" == r) h(t, e.column(), "}"); + else if ("[" == r) h(t, e.column(), "]"); + else if ("(" == r) h(t, e.column(), ")"); + else if ("}" == r) { + for (; + "statement" == n.type;) n = g(t); + for ("}" == n.type && (n = g(t)); + "statement" == n.type;) n = g(t) + } else r == n.type ? g(t) : ("}" == n.type || "top" == n.type || "statement" == n.type && "newstatement" == r) && h(t, e.column(), "statement"); + else g(t); + return t.startOfLine = !1, t.lastToken = r || i, i + }, + indent: function(n, r) { + if (!n.tokenize[n.tokenize.length - 1].isBase) return e.Pass; + var i = r && r.charAt(0), + a = n.context; + "statement" != a.type || f(n.lastToken, !0) || (a = a.prev); + var o = i == a.type; + return "statement" == a.type ? a.indented + ("{" == i ? 0 : t.indentUnit) : a.align ? a.column + (o ? 0 : 1) : a.indented + (o ? 0 : t.indentUnit) + }, + electricChars: "{}", + closeBrackets: { + triples: "'\"" + }, + fold: "brace", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })), e.defineMIME("text/x-groovy", "groovy") + }(n(4631)) + }, + 20147: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("haml", (function(t) { + var n = e.getMode(t, { + name: "htmlmixed" + }), + r = e.getMode(t, "ruby"); + + function i(e) { + return function(t, n) { + return t.peek() == e && 1 == n.rubyState.tokenize.length ? (t.next(), n.tokenize = o, "closeAttributeTag") : a(t, n) + } + } + + function a(e, t) { + return e.match("-#") ? (e.skipToEnd(), "comment") : r.token(e, t.rubyState) + } + + function o(e, t) { + var r = e.peek(); + if ("comment" == t.previousToken.style && t.indented > t.previousToken.indented) return e.skipToEnd(), "commentLine"; + if (t.startOfLine) { + if ("!" == r && e.match("!!")) return e.skipToEnd(), "tag"; + if (e.match(/^%[\w:#\.]+=/)) return t.tokenize = a, "hamlTag"; + if (e.match(/^%[\w:]+/)) return "hamlTag"; + if ("/" == r) return e.skipToEnd(), "comment" + } + if ((t.startOfLine || "hamlTag" == t.previousToken.style) && ("#" == r || "." == r)) return e.match(/[\w-#\.]*/), "hamlAttribute"; + if (t.startOfLine && !e.match("--\x3e", !1) && ("=" == r || "-" == r)) return t.tokenize = a, t.tokenize(e, t); + if ("hamlTag" == t.previousToken.style || "closeAttributeTag" == t.previousToken.style || "hamlAttribute" == t.previousToken.style) { + if ("(" == r) return t.tokenize = i(")"), t.tokenize(e, t); + if ("{" == r && !e.match(/^\{%.*/)) return t.tokenize = i("}"), t.tokenize(e, t) + } + return n.token(e, t.htmlState) + } + return { + startState: function() { + return { + htmlState: e.startState(n), + rubyState: e.startState(r), + indented: 0, + previousToken: { + style: null, + indented: 0 + }, + tokenize: o + } + }, + copyState: function(t) { + return { + htmlState: e.copyState(n, t.htmlState), + rubyState: e.copyState(r, t.rubyState), + indented: t.indented, + previousToken: t.previousToken, + tokenize: t.tokenize + } + }, + token: function(e, t) { + if (e.sol() && (t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + var n = t.tokenize(e, t); + if (t.startOfLine = !1, n && "commentLine" != n && (t.previousToken = { + style: n, + indented: t.indented + }), e.eol() && t.tokenize == a) { + e.backUp(1); + var r = e.peek(); + e.next(), r && "," != r && (t.tokenize = o) + } + return "hamlTag" == n ? n = "tag" : "commentLine" == n ? n = "comment" : "hamlAttribute" == n ? n = "attribute" : "closeAttributeTag" == n && (n = null), n + } + } + }), "htmlmixed", "ruby"), e.defineMIME("text/x-haml", "haml") + }(n(4631), n(16531), n(80853)) + }, + 62101: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineSimpleMode("handlebars-tags", { + start: [{ + regex: /\{\{\{/, + push: "handlebars_raw", + token: "tag" + }, { + regex: /\{\{!--/, + push: "dash_comment", + token: "comment" + }, { + regex: /\{\{!/, + push: "comment", + token: "comment" + }, { + regex: /\{\{/, + push: "handlebars", + token: "tag" + }], + handlebars_raw: [{ + regex: /\}\}\}/, + pop: !0, + token: "tag" + }], + handlebars: [{ + regex: /\}\}/, + pop: !0, + token: "tag" + }, { + regex: /"(?:[^\\"]|\\.)*"?/, + token: "string" + }, { + regex: /'(?:[^\\']|\\.)*'?/, + token: "string" + }, { + regex: />|[#\/]([A-Za-z_]\w*)/, + token: "keyword" + }, { + regex: /(?:else|this)\b/, + token: "keyword" + }, { + regex: /\d+/i, + token: "number" + }, { + regex: /=|~|@|true|false/, + token: "atom" + }, { + regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, + token: "variable-2" + }], + dash_comment: [{ + regex: /--\}\}/, + pop: !0, + token: "comment" + }, { + regex: /./, + token: "comment" + }], + comment: [{ + regex: /\}\}/, + pop: !0, + token: "comment" + }, { + regex: /./, + token: "comment" + }], + meta: { + blockCommentStart: "{{--", + blockCommentEnd: "--}}" + } + }), e.defineMode("handlebars", (function(t, n) { + var r = e.getMode(t, "handlebars-tags"); + return n && n.base ? e.multiplexingMode(e.getMode(t, n.base), { + open: "{{", + close: /\}\}\}?/, + mode: r, + parseDelimiters: !0 + }) : r + })), e.defineMIME("text/x-handlebars-template", "handlebars") + }(n(4631), n(40790), n(87093)) + }, + 28510: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("haskell-literate", (function(t, n) { + var r = e.getMode(t, n && n.base || "haskell"); + return { + startState: function() { + return { + inCode: !1, + baseState: e.startState(r) + } + }, + token: function(e, t) { + return e.sol() && (t.inCode = e.eat(">")) ? "meta" : t.inCode ? r.token(e, t.baseState) : (e.skipToEnd(), "comment") + }, + innerMode: function(e) { + return e.inCode ? { + state: e.baseState, + mode: r + } : null + } + } + }), "haskell"), e.defineMIME("text/x-literate-haskell", "haskell-literate") + }(n(4631), n(18176)) + }, + 18176: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("haskell", (function(e, t) { + function n(e, t, n) { + return t(n), n(e, t) + } + var r = /[a-z_]/, + i = /[A-Z]/, + a = /\d/, + o = /[0-9A-Fa-f]/, + s = /[0-7]/, + l = /[a-z_A-Z0-9'\xa1-\uffff]/, + c = /[-!#$%&*+.\/<=>?@\\^|~:]/, + u = /[(),;[\]`{}]/, + d = /[ \t\v\f]/; + + function p(e, t) { + if (e.eatWhile(d)) return null; + var p = e.next(); + if (u.test(p)) { + if ("{" == p && e.eat("-")) { + var h = "comment"; + return e.eat("#") && (h = "meta"), n(e, t, f(h, 1)) + } + return null + } + if ("'" == p) return e.eat("\\"), e.next(), e.eat("'") ? "string" : "string error"; + if ('"' == p) return n(e, t, m); + if (i.test(p)) return e.eatWhile(l), e.eat(".") ? "qualifier" : "variable-2"; + if (r.test(p)) return e.eatWhile(l), "variable"; + if (a.test(p)) { + if ("0" == p) { + if (e.eat(/[xX]/)) return e.eatWhile(o), "integer"; + if (e.eat(/[oO]/)) return e.eatWhile(s), "number" + } + return e.eatWhile(a), h = "number", e.match(/^\.\d+/) && (h = "number"), e.eat(/[eE]/) && (h = "number", e.eat(/[-+]/), e.eatWhile(a)), h + } + return "." == p && e.eat(".") ? "keyword" : c.test(p) ? "-" == p && e.eat(/-/) && (e.eatWhile(/-/), !e.eat(c)) ? (e.skipToEnd(), "comment") : (h = "variable", ":" == p && (h = "variable-2"), e.eatWhile(c), h) : "error" + } + + function f(e, t) { + return 0 == t ? p : function(n, r) { + for (var i = t; !n.eol();) { + var a = n.next(); + if ("{" == a && n.eat("-")) ++i; + else if ("-" == a && n.eat("}") && 0 == --i) return r(p), e + } + return r(f(e, i)), e + } + } + + function m(e, t) { + for (; !e.eol();) { + var n = e.next(); + if ('"' == n) return t(p), "string"; + if ("\\" == n) { + if (e.eol() || e.eat(d)) return t(h), "string"; + e.eat("&") || e.next() + } + } + return t(p), "string error" + } + + function h(e, t) { + return e.eat("\\") ? n(e, t, m) : (e.next(), t(p), "error") + } + var g = function() { + var e = {}; + + function n(t) { + return function() { + for (var n = 0; n < arguments.length; n++) e[arguments[n]] = t + } + } + n("keyword")("case", "class", "data", "default", "deriving", "do", "else", "foreign", "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", "module", "newtype", "of", "then", "type", "where", "_"), n("keyword")("..", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>"), n("builtin")("!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<*", "<=", "<$>", "<*>", "=<<", "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "*>", "**"), n("builtin")("Applicative", "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", "String", "True"), n("builtin")("abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", "otherwise", "pi", "pred", "print", "product", "properFraction", "pure", "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", "sequence", "sequence_", "show", "showChar", "showList", "showParen", "showString", "shows", "showsPrec", "significand", "signum", "sin", "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", "toRational", "truncate", "uncurry", "undefined", "unlines", "until", "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", "zip3", "zipWith", "zipWith3"); + var r = t.overrideKeywords; + if (r) + for (var i in r) r.hasOwnProperty(i) && (e[i] = r[i]); + return e + }(); + return { + startState: function() { + return { + f: p + } + }, + copyState: function(e) { + return { + f: e.f + } + }, + token: function(e, t) { + var n = t.f(e, (function(e) { + t.f = e + })), + r = e.current(); + return g.hasOwnProperty(r) ? g[r] : n + }, + blockCommentStart: "{-", + blockCommentEnd: "-}", + lineComment: "--" + } + })), e.defineMIME("text/x-haskell", "haskell") + }(n(4631)) + }, + 19889: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("haxe", (function(e, t) { + var n = e.indentUnit; + + function r(e) { + return { + type: e, + style: "keyword" + } + } + var i, a = r("keyword a"), + o = r("keyword b"), + s = r("keyword c"), + l = r("operator"), + c = { + type: "atom", + style: "atom" + }, + u = { + type: "attribute", + style: "attribute" + }, + d = r("typedef"), + p = { + if: a, + while: a, + else: o, + do: o, + try: o, + return: s, + break: s, + continue: s, + new: s, + throw: s, + var: r("var"), + inline: u, + static: u, + using: r("import"), + public: u, + private: u, + cast: r("cast"), + import: r("import"), + macro: r("macro"), + function: r("function"), + catch: r("catch"), + untyped: r("untyped"), + callback: r("cb"), + for: r("for"), + switch: r("switch"), + case: r("case"), + default: r("default"), + in: l, + never: r("property_access"), + trace: r("trace"), + class: d, + abstract: d, + enum: d, + interface: d, + typedef: d, + extends: d, + implements: d, + dynamic: d, + true: c, + false: c, + null: c + }, + f = /[+\-*&%=<>!?|]/; + + function m(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function h(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (n == t && !r) return !0; + r = !r && "\\" == n + } + } + + function g(e, t, n) { + return d = e, i = n, t + } + + function b(e, t) { + var n = e.next(); + if ('"' == n || "'" == n) return m(e, t, v(n)); + if (/[\[\]{}\(\),;\:\.]/.test(n)) return g(n); + if ("0" == n && e.eat(/x/i)) return e.eatWhile(/[\da-f]/i), g("number", "number"); + if (/\d/.test(n) || "-" == n && e.eat(/\d/)) return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), g("number", "number"); + if (t.reAllowed && "~" == n && e.eat(/\//)) return h(e, "/"), e.eatWhile(/[gimsu]/), g("regexp", "string-2"); + if ("/" == n) return e.eat("*") ? m(e, t, y) : e.eat("/") ? (e.skipToEnd(), g("comment", "comment")) : (e.eatWhile(f), g("operator", null, e.current())); + if ("#" == n) return e.skipToEnd(), g("conditional", "meta"); + if ("@" == n) return e.eat(/:/), e.eatWhile(/[\w_]/), g("metadata", "meta"); + if (f.test(n)) return e.eatWhile(f), g("operator", null, e.current()); + if (/[A-Z]/.test(n)) return e.eatWhile(/[\w_<>]/), g("type", "variable-3", r = e.current()); + e.eatWhile(/[\w_]/); + var r = e.current(), + i = p.propertyIsEnumerable(r) && p[r]; + return i && t.kwAllowed ? g(i.type, i.style, r) : g("variable", "variable", r) + } + + function v(e) { + return function(t, n) { + return h(t, e) && (n.tokenize = b), g("string", "string") + } + } + + function y(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = b; + break + } + r = "*" == n + } + return g("comment", "comment") + } + var k = { + atom: !0, + number: !0, + variable: !0, + string: !0, + regexp: !0 + }; + + function x(e, t, n, r, i, a) { + this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = a, null != r && (this.align = r) + } + + function _(e, t) { + for (var n = e.localVars; n; n = n.next) + if (n.name == t) return !0 + } + + function w(e, t, n, r, i) { + var a = e.cc; + for (S.state = e, S.stream = i, S.marked = null, S.cc = a, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0);;) + if ((a.length ? a.pop() : F)(n, r)) { + for (; a.length && a[a.length - 1].lex;) a.pop()(); + return S.marked ? S.marked : "variable" == n && _(e, r) ? "variable-2" : "variable" == n && E(e, r) ? "variable-3" : t + } + } + + function E(e, t) { + if (/[a-z]/.test(t.charAt(0))) return !1; + for (var n = e.importedtypes.length, r = 0; r < n; r++) + if (e.importedtypes[r] == t) return !0 + } + + function T(e) { + for (var t = S.state, n = t.importedtypes; n; n = n.next) + if (n.name == e) return; + t.importedtypes = { + name: e, + next: t.importedtypes + } + } + var S = { + state: null, + column: null, + marked: null, + cc: null + }; + + function I() { + for (var e = arguments.length - 1; e >= 0; e--) S.cc.push(arguments[e]) + } + + function N() { + return I.apply(null, arguments), !0 + } + + function A(e, t) { + for (var n = t; n; n = n.next) + if (n.name == e) return !0; + return !1 + } + + function O(e) { + var t = S.state; + if (t.context) { + if (S.marked = "def", A(e, t.localVars)) return; + t.localVars = { + name: e, + next: t.localVars + } + } else if (t.globalVars) { + if (A(e, t.globalVars)) return; + t.globalVars = { + name: e, + next: t.globalVars + } + } + } + var C = { + name: "this", + next: null + }; + + function D() { + S.state.context || (S.state.localVars = C), S.state.context = { + prev: S.state.context, + vars: S.state.localVars + } + } + + function R() { + S.state.localVars = S.state.context.vars, S.state.context = S.state.context.prev + } + + function M(e, t) { + var n = function() { + var n = S.state; + n.lexical = new x(n.indented, S.stream.column(), e, null, n.lexical, t) + }; + return n.lex = !0, n + } + + function L() { + var e = S.state; + e.lexical.prev && (")" == e.lexical.type && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev) + } + + function z(e) { + function t(n) { + return n == e ? N() : ";" == e ? I() : N(t) + } + return t + } + + function F(e) { + return "@" == e ? N(q) : "var" == e ? N(M("vardef"), X, z(";"), L) : "keyword a" == e ? N(M("form"), $, F, L) : "keyword b" == e ? N(M("form"), F, L) : "{" == e ? N(M("}"), D, Z, L, R) : ";" == e ? N() : "attribute" == e ? N(j) : "function" == e ? N(te) : "for" == e ? N(M("form"), z("("), M(")"), J, z(")"), L, F, L) : "variable" == e ? N(M("stat"), G) : "switch" == e ? N(M("form"), $, M("}", "switch"), z("{"), Z, L, L) : "case" == e ? N($, z(":")) : "default" == e ? N(z(":")) : "catch" == e ? N(M("form"), D, z("("), ae, z(")"), F, L, R) : "import" == e ? N(V, z(";")) : "typedef" == e ? N(W) : I(M("stat"), $, z(";"), L) + } + + function $(e) { + return k.hasOwnProperty(e) || "type" == e ? N(U) : "function" == e ? N(te) : "keyword c" == e ? N(P) : "(" == e ? N(M(")"), P, z(")"), L, U) : "operator" == e ? N($) : "[" == e ? N(M("]"), Y(P, "]"), L, U) : "{" == e ? N(M("}"), Y(K, "}"), L, U) : N() + } + + function P(e) { + return e.match(/[;\}\)\],]/) ? I() : I($) + } + + function U(e, t) { + return "operator" == e && /\+\+|--/.test(t) ? N(U) : "operator" == e || ":" == e ? N($) : ";" != e ? "(" == e ? N(M(")"), Y($, ")"), L, U) : "." == e ? N(H, U) : "[" == e ? N(M("]"), $, z("]"), L, U) : void 0 : void 0 + } + + function j(e) { + return "attribute" == e ? N(j) : "function" == e ? N(te) : "var" == e ? N(X) : void 0 + } + + function q(e) { + return ":" == e || "variable" == e ? N(q) : "(" == e ? N(M(")"), Y(B, ")"), L, F) : void 0 + } + + function B(e) { + if ("variable" == e) return N() + } + + function V(e, t) { + return "variable" == e && /[A-Z]/.test(t.charAt(0)) ? (T(t), N()) : "variable" == e || "property" == e || "." == e || "*" == t ? N(V) : void 0 + } + + function W(e, t) { + return "variable" == e && /[A-Z]/.test(t.charAt(0)) ? (T(t), N()) : "type" == e && /[A-Z]/.test(t.charAt(0)) ? N() : void 0 + } + + function G(e) { + return ":" == e ? N(L, F) : I(U, z(";"), L) + } + + function H(e) { + if ("variable" == e) return S.marked = "property", N() + } + + function K(e) { + if ("variable" == e && (S.marked = "property"), k.hasOwnProperty(e)) return N(z(":"), $) + } + + function Y(e, t) { + function n(r) { + return "," == r ? N(e, n) : r == t ? N() : N(z(t)) + } + return function(r) { + return r == t ? N() : I(e, n) + } + } + + function Z(e) { + return "}" == e ? N() : I(F, Z) + } + + function X(e, t) { + return "variable" == e ? (O(t), N(ne, Q)) : N() + } + + function Q(e, t) { + return "=" == t ? N($, Q) : "," == e ? N(X) : void 0 + } + + function J(e, t) { + return "variable" == e ? (O(t), N(ee, $)) : I() + } + + function ee(e, t) { + if ("in" == t) return N() + } + + function te(e, t) { + return "variable" == e || "type" == e ? (O(t), N(te)) : "new" == t ? N(te) : "(" == e ? N(M(")"), D, Y(ae, ")"), L, ne, F, R) : void 0 + } + + function ne(e) { + if (":" == e) return N(re) + } + + function re(e) { + return "type" == e || "variable" == e ? N() : "{" == e ? N(M("}"), Y(ie, "}"), L) : void 0 + } + + function ie(e) { + if ("variable" == e) return N(ne) + } + + function ae(e, t) { + if ("variable" == e) return O(t), N(ne) + } + return R.lex = !0, L.lex = !0, { + startState: function(e) { + var r = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], + i = { + tokenize: b, + reAllowed: !0, + kwAllowed: !0, + cc: [], + lexical: new x((e || 0) - n, 0, "block", !1), + localVars: t.localVars, + importedtypes: r, + context: t.localVars && { + vars: t.localVars + }, + indented: 0 + }; + return t.globalVars && "object" == typeof t.globalVars && (i.globalVars = t.globalVars), i + }, + token: function(e, t) { + if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation()), e.eatSpace()) return null; + var n = t.tokenize(e, t); + return "comment" == d ? n : (t.reAllowed = !("operator" != d && "keyword c" != d && !d.match(/^[\[{}\(,;:]$/)), t.kwAllowed = "." != d, w(t, n, d, i, e)) + }, + indent: function(e, t) { + if (e.tokenize != b) return 0; + var r = t && t.charAt(0), + i = e.lexical; + "stat" == i.type && "}" == r && (i = i.prev); + var a = i.type, + o = r == a; + return "vardef" == a ? i.indented + 4 : "form" == a && "{" == r ? i.indented : "stat" == a || "form" == a ? i.indented + n : "switch" != i.info || o ? i.align ? i.column + (o ? 0 : 1) : i.indented + (o ? 0 : n) : i.indented + (/^(?:case|default)\b/.test(t) ? n : 2 * n) + }, + electricChars: "{}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })), e.defineMIME("text/x-haxe", "haxe"), e.defineMode("hxml", (function() { + return { + startState: function() { + return { + define: !1, + inString: !1 + } + }, + token: function(e, t) { + var n = e.peek(), + r = e.sol(); + if ("#" == n) return e.skipToEnd(), "comment"; + if (r && "-" == n) { + var i = "variable-2"; + return e.eat(/-/), "-" == e.peek() && (e.eat(/-/), i = "keyword a"), "D" == e.peek() && (e.eat(/[D]/), i = "keyword c", t.define = !0), e.eatWhile(/[A-Z]/i), i + } + return n = e.peek(), 0 == t.inString && "'" == n && (t.inString = !0, e.next()), 1 == t.inString ? (e.skipTo("'") || e.skipToEnd(), "'" == e.peek() && (e.next(), t.inString = !1), "string") : (e.next(), null) + }, + lineComment: "#" + } + })), e.defineMIME("text/x-hxml", "hxml") + }(n(4631)) + }, + 79820: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("htmlembedded", (function(t, n) { + var r = n.closeComment || "--%>"; + return e.multiplexingMode(e.getMode(t, "htmlmixed"), { + open: n.openComment || "<%--", + close: r, + delimStyle: "comment", + mode: { + token: function(e) { + return e.skipTo(r) || e.skipToEnd(), "comment" + } + } + }, { + open: n.open || n.scriptStartRegex || "<%", + close: n.close || n.scriptEndRegex || "%>", + mode: e.getMode(t, n.scriptingModeSpec) + }) + }), "htmlmixed"), e.defineMIME("application/x-ejs", { + name: "htmlembedded", + scriptingModeSpec: "javascript" + }), e.defineMIME("application/x-aspx", { + name: "htmlembedded", + scriptingModeSpec: "text/x-csharp" + }), e.defineMIME("application/x-jsp", { + name: "htmlembedded", + scriptingModeSpec: "text/x-java" + }), e.defineMIME("application/x-erb", { + name: "htmlembedded", + scriptingModeSpec: "ruby" + }) + }(n(4631), n(16531), n(87093)) + }, + 16531: function(e, t, n) { + ! function(e) { + "use strict"; + var t = { + script: [ + ["lang", /(javascript|babel)/i, "javascript"], + ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"], + ["type", /./, "text/plain"], + [null, null, "javascript"] + ], + style: [ + ["lang", /^css$/i, "css"], + ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], + ["type", /./, "text/plain"], + [null, null, "css"] + ] + }; + + function n(e, t, n) { + var r = e.current(), + i = r.search(t); + return i > -1 ? e.backUp(r.length - i) : r.match(/<\/?$/) && (e.backUp(r.length), e.match(t, !1) || e.match(r)), n + } + var r = {}; + + function i(e) { + var t = r[e]; + return t || (r[e] = new RegExp("\\s+" + e + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")) + } + + function a(e, t) { + var n = e.match(i(t)); + return n ? /^\s*(.*?)\s*$/.exec(n[2])[1] : "" + } + + function o(e, t) { + return new RegExp((t ? "^" : "") + "", "i") + } + + function s(e, t) { + for (var n in e) + for (var r = t[n] || (t[n] = []), i = e[n], a = i.length - 1; a >= 0; a--) r.unshift(i[a]) + } + + function l(e, t) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + if (!r[0] || r[1].test(a(t, r[0]))) return r[2] + } + } + e.defineMode("htmlmixed", (function(r, i) { + var a = e.getMode(r, { + name: "xml", + htmlMode: !0, + multilineTagIndentFactor: i.multilineTagIndentFactor, + multilineTagIndentPastTag: i.multilineTagIndentPastTag, + allowMissingTagName: i.allowMissingTagName + }), + c = {}, + u = i && i.tags, + d = i && i.scriptTypes; + if (s(t, c), u && s(u, c), d) + for (var p = d.length - 1; p >= 0; p--) c.script.unshift(["type", d[p].matches, d[p].mode]); + + function f(t, i) { + var s, u = a.token(t, i.htmlState), + d = /\btag\b/.test(u); + if (d && !/[<>\s\/]/.test(t.current()) && (s = i.htmlState.tagName && i.htmlState.tagName.toLowerCase()) && c.hasOwnProperty(s)) i.inTag = s + " "; + else if (i.inTag && d && />$/.test(t.current())) { + var p = /^([\S]+) (.*)/.exec(i.inTag); + i.inTag = null; + var m = ">" == t.current() && l(c[p[1]], p[2]), + h = e.getMode(r, m), + g = o(p[1], !0), + b = o(p[1], !1); + i.token = function(e, t) { + return e.match(g, !1) ? (t.token = f, t.localState = t.localMode = null, null) : n(e, b, t.localMode.token(e, t.localState)) + }, i.localMode = h, i.localState = e.startState(h, a.indent(i.htmlState, "", "")) + } else i.inTag && (i.inTag += t.current(), t.eol() && (i.inTag += " ")); + return u + } + return { + startState: function() { + return { + token: f, + inTag: null, + localMode: null, + localState: null, + htmlState: e.startState(a) + } + }, + copyState: function(t) { + var n; + return t.localState && (n = e.copyState(t.localMode, t.localState)), { + token: t.token, + inTag: t.inTag, + localMode: t.localMode, + localState: n, + htmlState: e.copyState(a, t.htmlState) + } + }, + token: function(e, t) { + return t.token(e, t) + }, + indent: function(t, n, r) { + return !t.localMode || /^\s*<\//.test(n) ? a.indent(t.htmlState, n, r) : t.localMode.indent ? t.localMode.indent(t.localState, n, r) : e.Pass + }, + innerMode: function(e) { + return { + state: e.localState || e.htmlState, + mode: e.localMode || a + } + } + } + }), "xml", "javascript", "css"), e.defineMIME("text/html", "htmlmixed") + }(n(4631), n(29589), n(96876), n(36629)) + }, + 98411: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("http", (function() { + function e(e, t) { + return e.skipToEnd(), t.cur = o, "error" + } + + function t(t, r) { + return t.match(/^HTTP\/\d\.\d/) ? (r.cur = n, "keyword") : t.match(/^[A-Z]+/) && /[ \t]/.test(t.peek()) ? (r.cur = i, "keyword") : e(t, r) + } + + function n(t, n) { + var i = t.match(/^\d+/); + if (!i) return e(t, n); + n.cur = r; + var a = Number(i[0]); + return a >= 100 && a < 200 ? "positive informational" : a >= 200 && a < 300 ? "positive success" : a >= 300 && a < 400 ? "positive redirect" : a >= 400 && a < 500 ? "negative client-error" : a >= 500 && a < 600 ? "negative server-error" : "error" + } + + function r(e, t) { + return e.skipToEnd(), t.cur = o, null + } + + function i(e, t) { + return e.eatWhile(/\S/), t.cur = a, "string-2" + } + + function a(t, n) { + return t.match(/^HTTP\/\d\.\d$/) ? (n.cur = o, "keyword") : e(t, n) + } + + function o(e) { + return e.sol() && !e.eat(/[ \t]/) ? e.match(/^.*?:/) ? "atom" : (e.skipToEnd(), "error") : (e.skipToEnd(), "string") + } + + function s(e) { + return e.skipToEnd(), null + } + return { + token: function(e, t) { + var n = t.cur; + return n != o && n != s && e.eatSpace() ? null : n(e, t) + }, + blankLine: function(e) { + e.cur = s + }, + startState: function() { + return { + cur: t + } + } + } + })), e.defineMIME("message/http", "http") + }(n(4631)) + }, + 41797: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b", "i") + } + var n = ["a_correlate", "abs", "acos", "adapt_hist_equal", "alog", "alog2", "alog10", "amoeba", "annotate", "app_user_dir", "app_user_dir_query", "arg_present", "array_equal", "array_indices", "arrow", "ascii_template", "asin", "assoc", "atan", "axis", "axis", "bandpass_filter", "bandreject_filter", "barplot", "bar_plot", "beseli", "beselj", "beselk", "besely", "beta", "biginteger", "bilinear", "bin_date", "binary_template", "bindgen", "binomial", "bit_ffs", "bit_population", "blas_axpy", "blk_con", "boolarr", "boolean", "boxplot", "box_cursor", "breakpoint", "broyden", "bubbleplot", "butterworth", "bytarr", "byte", "byteorder", "bytscl", "c_correlate", "calendar", "caldat", "call_external", "call_function", "call_method", "call_procedure", "canny", "catch", "cd", "cdf", "ceil", "chebyshev", "check_math", "chisqr_cvf", "chisqr_pdf", "choldc", "cholsol", "cindgen", "cir_3pnt", "clipboard", "close", "clust_wts", "cluster", "cluster_tree", "cmyk_convert", "code_coverage", "color_convert", "color_exchange", "color_quan", "color_range_map", "colorbar", "colorize_sample", "colormap_applicable", "colormap_gradient", "colormap_rotation", "colortable", "comfit", "command_line_args", "common", "compile_opt", "complex", "complexarr", "complexround", "compute_mesh_normals", "cond", "congrid", "conj", "constrained_min", "contour", "contour", "convert_coord", "convol", "convol_fft", "coord2to3", "copy_lun", "correlate", "cos", "cosh", "cpu", "cramer", "createboxplotdata", "create_cursor", "create_struct", "create_view", "crossp", "crvlength", "ct_luminance", "cti_test", "cursor", "curvefit", "cv_coord", "cvttobm", "cw_animate", "cw_animate_getp", "cw_animate_load", "cw_animate_run", "cw_arcball", "cw_bgroup", "cw_clr_index", "cw_colorsel", "cw_defroi", "cw_field", "cw_filesel", "cw_form", "cw_fslider", "cw_light_editor", "cw_light_editor_get", "cw_light_editor_set", "cw_orient", "cw_palette_editor", "cw_palette_editor_get", "cw_palette_editor_set", "cw_pdmenu", "cw_rgbslider", "cw_tmpl", "cw_zoom", "db_exists", "dblarr", "dcindgen", "dcomplex", "dcomplexarr", "define_key", "define_msgblk", "define_msgblk_from_file", "defroi", "defsysv", "delvar", "dendro_plot", "dendrogram", "deriv", "derivsig", "determ", "device", "dfpmin", "diag_matrix", "dialog_dbconnect", "dialog_message", "dialog_pickfile", "dialog_printersetup", "dialog_printjob", "dialog_read_image", "dialog_write_image", "dictionary", "digital_filter", "dilate", "dindgen", "dissolve", "dist", "distance_measure", "dlm_load", "dlm_register", "doc_library", "double", "draw_roi", "edge_dog", "efont", "eigenql", "eigenvec", "ellipse", "elmhes", "emboss", "empty", "enable_sysrtn", "eof", "eos", "erase", "erf", "erfc", "erfcx", "erode", "errorplot", "errplot", "estimator_filter", "execute", "exit", "exp", "expand", "expand_path", "expint", "extract", "extract_slice", "f_cvf", "f_pdf", "factorial", "fft", "file_basename", "file_chmod", "file_copy", "file_delete", "file_dirname", "file_expand_path", "file_gunzip", "file_gzip", "file_info", "file_lines", "file_link", "file_mkdir", "file_move", "file_poll_input", "file_readlink", "file_same", "file_search", "file_tar", "file_test", "file_untar", "file_unzip", "file_which", "file_zip", "filepath", "findgen", "finite", "fix", "flick", "float", "floor", "flow3", "fltarr", "flush", "format_axis_values", "forward_function", "free_lun", "fstat", "fulstr", "funct", "function", "fv_test", "fx_root", "fz_roots", "gamma", "gamma_ct", "gauss_cvf", "gauss_pdf", "gauss_smooth", "gauss2dfit", "gaussfit", "gaussian_function", "gaussint", "get_drive_list", "get_dxf_objects", "get_kbrd", "get_login_info", "get_lun", "get_screen_size", "getenv", "getwindows", "greg2jul", "grib", "grid_input", "grid_tps", "grid3", "griddata", "gs_iter", "h_eq_ct", "h_eq_int", "hanning", "hash", "hdf", "hdf5", "heap_free", "heap_gc", "heap_nosave", "heap_refcount", "heap_save", "help", "hilbert", "hist_2d", "hist_equal", "histogram", "hls", "hough", "hqr", "hsv", "i18n_multibytetoutf8", "i18n_multibytetowidechar", "i18n_utf8tomultibyte", "i18n_widechartomultibyte", "ibeta", "icontour", "iconvertcoord", "idelete", "identity", "idl_base64", "idl_container", "idl_validname", "idlexbr_assistant", "idlitsys_createtool", "idlunit", "iellipse", "igamma", "igetcurrent", "igetdata", "igetid", "igetproperty", "iimage", "image", "image_cont", "image_statistics", "image_threshold", "imaginary", "imap", "indgen", "int_2d", "int_3d", "int_tabulated", "intarr", "interpol", "interpolate", "interval_volume", "invert", "ioctl", "iopen", "ir_filter", "iplot", "ipolygon", "ipolyline", "iputdata", "iregister", "ireset", "iresolve", "irotate", "isa", "isave", "iscale", "isetcurrent", "isetproperty", "ishft", "isocontour", "isosurface", "isurface", "itext", "itranslate", "ivector", "ivolume", "izoom", "journal", "json_parse", "json_serialize", "jul2greg", "julday", "keyword_set", "krig2d", "kurtosis", "kw_test", "l64indgen", "la_choldc", "la_cholmprove", "la_cholsol", "la_determ", "la_eigenproblem", "la_eigenql", "la_eigenvec", "la_elmhes", "la_gm_linear_model", "la_hqr", "la_invert", "la_least_square_equality", "la_least_squares", "la_linear_equation", "la_ludc", "la_lumprove", "la_lusol", "la_svd", "la_tridc", "la_trimprove", "la_triql", "la_trired", "la_trisol", "label_date", "label_region", "ladfit", "laguerre", "lambda", "lambdap", "lambertw", "laplacian", "least_squares_filter", "leefilt", "legend", "legendre", "linbcg", "lindgen", "linfit", "linkimage", "list", "ll_arc_distance", "lmfit", "lmgr", "lngamma", "lnp_test", "loadct", "locale_get", "logical_and", "logical_or", "logical_true", "lon64arr", "lonarr", "long", "long64", "lsode", "lu_complex", "ludc", "lumprove", "lusol", "m_correlate", "machar", "make_array", "make_dll", "make_rt", "map", "mapcontinents", "mapgrid", "map_2points", "map_continents", "map_grid", "map_image", "map_patch", "map_proj_forward", "map_proj_image", "map_proj_info", "map_proj_init", "map_proj_inverse", "map_set", "matrix_multiply", "matrix_power", "max", "md_test", "mean", "meanabsdev", "mean_filter", "median", "memory", "mesh_clip", "mesh_decimate", "mesh_issolid", "mesh_merge", "mesh_numtriangles", "mesh_obj", "mesh_smooth", "mesh_surfacearea", "mesh_validate", "mesh_volume", "message", "min", "min_curve_surf", "mk_html_help", "modifyct", "moment", "morph_close", "morph_distance", "morph_gradient", "morph_hitormiss", "morph_open", "morph_thin", "morph_tophat", "multi", "n_elements", "n_params", "n_tags", "ncdf", "newton", "noise_hurl", "noise_pick", "noise_scatter", "noise_slur", "norm", "obj_class", "obj_destroy", "obj_hasmethod", "obj_isa", "obj_new", "obj_valid", "objarr", "on_error", "on_ioerror", "online_help", "openr", "openu", "openw", "oplot", "oploterr", "orderedhash", "p_correlate", "parse_url", "particle_trace", "path_cache", "path_sep", "pcomp", "plot", "plot3d", "plot", "plot_3dbox", "plot_field", "ploterr", "plots", "polar_contour", "polar_surface", "polyfill", "polyshade", "pnt_line", "point_lun", "polarplot", "poly", "poly_2d", "poly_area", "poly_fit", "polyfillv", "polygon", "polyline", "polywarp", "popd", "powell", "pref_commit", "pref_get", "pref_set", "prewitt", "primes", "print", "printf", "printd", "pro", "product", "profile", "profiler", "profiles", "project_vol", "ps_show_fonts", "psafm", "pseudo", "ptr_free", "ptr_new", "ptr_valid", "ptrarr", "pushd", "qgrid3", "qhull", "qromb", "qromo", "qsimp", "query_*", "query_ascii", "query_bmp", "query_csv", "query_dicom", "query_gif", "query_image", "query_jpeg", "query_jpeg2000", "query_mrsid", "query_pict", "query_png", "query_ppm", "query_srf", "query_tiff", "query_video", "query_wav", "r_correlate", "r_test", "radon", "randomn", "randomu", "ranks", "rdpix", "read", "readf", "read_ascii", "read_binary", "read_bmp", "read_csv", "read_dicom", "read_gif", "read_image", "read_interfile", "read_jpeg", "read_jpeg2000", "read_mrsid", "read_pict", "read_png", "read_ppm", "read_spr", "read_srf", "read_sylk", "read_tiff", "read_video", "read_wav", "read_wave", "read_x11_bitmap", "read_xwd", "reads", "readu", "real_part", "rebin", "recall_commands", "recon3", "reduce_colors", "reform", "region_grow", "register_cursor", "regress", "replicate", "replicate_inplace", "resolve_all", "resolve_routine", "restore", "retall", "return", "reverse", "rk4", "roberts", "rot", "rotate", "round", "routine_filepath", "routine_info", "rs_test", "s_test", "save", "savgol", "scale3", "scale3d", "scatterplot", "scatterplot3d", "scope_level", "scope_traceback", "scope_varfetch", "scope_varname", "search2d", "search3d", "sem_create", "sem_delete", "sem_lock", "sem_release", "set_plot", "set_shading", "setenv", "sfit", "shade_surf", "shade_surf_irr", "shade_volume", "shift", "shift_diff", "shmdebug", "shmmap", "shmunmap", "shmvar", "show3", "showfont", "signum", "simplex", "sin", "sindgen", "sinh", "size", "skewness", "skip_lun", "slicer3", "slide_image", "smooth", "sobel", "socket", "sort", "spawn", "sph_4pnt", "sph_scat", "spher_harm", "spl_init", "spl_interp", "spline", "spline_p", "sprsab", "sprsax", "sprsin", "sprstp", "sqrt", "standardize", "stddev", "stop", "strarr", "strcmp", "strcompress", "streamline", "streamline", "stregex", "stretch", "string", "strjoin", "strlen", "strlowcase", "strmatch", "strmessage", "strmid", "strpos", "strput", "strsplit", "strtrim", "struct_assign", "struct_hide", "strupcase", "surface", "surface", "surfr", "svdc", "svdfit", "svsol", "swap_endian", "swap_endian_inplace", "symbol", "systime", "t_cvf", "t_pdf", "t3d", "tag_names", "tan", "tanh", "tek_color", "temporary", "terminal_size", "tetra_clip", "tetra_surface", "tetra_volume", "text", "thin", "thread", "threed", "tic", "time_test2", "timegen", "timer", "timestamp", "timestamptovalues", "tm_test", "toc", "total", "trace", "transpose", "tri_surf", "triangulate", "trigrid", "triql", "trired", "trisol", "truncate_lun", "ts_coef", "ts_diff", "ts_fcast", "ts_smooth", "tv", "tvcrs", "tvlct", "tvrd", "tvscl", "typename", "uindgen", "uint", "uintarr", "ul64indgen", "ulindgen", "ulon64arr", "ulonarr", "ulong", "ulong64", "uniq", "unsharp_mask", "usersym", "value_locate", "variance", "vector", "vector_field", "vel", "velovect", "vert_t3d", "voigt", "volume", "voronoi", "voxel_proj", "wait", "warp_tri", "watershed", "wdelete", "wf_draw", "where", "widget_base", "widget_button", "widget_combobox", "widget_control", "widget_displaycontextmenu", "widget_draw", "widget_droplist", "widget_event", "widget_info", "widget_label", "widget_list", "widget_propertysheet", "widget_slider", "widget_tab", "widget_table", "widget_text", "widget_tree", "widget_tree_move", "widget_window", "wiener_filter", "window", "window", "write_bmp", "write_csv", "write_gif", "write_image", "write_jpeg", "write_jpeg2000", "write_nrif", "write_pict", "write_png", "write_ppm", "write_spr", "write_srf", "write_sylk", "write_tiff", "write_video", "write_wav", "write_wave", "writeu", "wset", "wshow", "wtn", "wv_applet", "wv_cwt", "wv_cw_wavelet", "wv_denoise", "wv_dwt", "wv_fn_coiflet", "wv_fn_daubechies", "wv_fn_gaussian", "wv_fn_haar", "wv_fn_morlet", "wv_fn_paul", "wv_fn_symlet", "wv_import_data", "wv_import_wavelet", "wv_plot3d_wps", "wv_plot_multires", "wv_pwt", "wv_tool_denoise", "xbm_edit", "xdisplayfile", "xdxf", "xfont", "xinteranimate", "xloadct", "xmanager", "xmng_tmpl", "xmtool", "xobjview", "xobjview_rotate", "xobjview_write_image", "xpalette", "xpcolor", "xplot3d", "xregistered", "xroi", "xsq_test", "xsurface", "xvaredit", "xvolume", "xvolume_rotate", "xvolume_write_image", "xyouts", "zlib_compress", "zlib_uncompress", "zoom", "zoom_24"], + r = t(n), + i = ["begin", "end", "endcase", "endfor", "endwhile", "endif", "endrep", "endforeach", "break", "case", "continue", "for", "foreach", "goto", "if", "then", "else", "repeat", "until", "switch", "while", "do", "pro", "function"], + a = t(i); + e.registerHelper("hintWords", "idl", n.concat(i)); + var o = new RegExp("^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*", "i"), + s = /[+\-*&=<>\/@#~$]/, + l = new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)", "i"); + + function c(e) { + if (e.eatSpace()) return null; + if (e.match(";")) return e.skipToEnd(), "comment"; + if (e.match(/^[0-9\.+-]/, !1)) { + if (e.match(/^[+-]?0x[0-9a-fA-F]+/)) return "number"; + if (e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return "number"; + if (e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return "number" + } + return e.match(/^"([^"]|(""))*"/) || e.match(/^'([^']|(''))*'/) ? "string" : e.match(a) ? "keyword" : e.match(r) ? "builtin" : e.match(o) ? "variable" : e.match(s) || e.match(l) ? "operator" : (e.next(), null) + } + e.defineMode("idl", (function() { + return { + token: function(e) { + return c(e) + } + } + })), e.defineMIME("text/x-idl", "idl") + }(n(4631)) + }, + 96876: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("javascript", (function(t, n) { + var r, i, a = t.indentUnit, + o = n.statementIndent, + s = n.jsonld, + l = n.json || s, + c = !1 !== n.trackScope, + u = n.typescript, + d = n.wordCharacters || /[\w$\xa1-\uffff]/, + p = function() { + function e(e) { + return { + type: e, + style: "keyword" + } + } + var t = e("keyword a"), + n = e("keyword b"), + r = e("keyword c"), + i = e("keyword d"), + a = e("operator"), + o = { + type: "atom", + style: "atom" + }; + return { + if: e("if"), + while: t, + with: t, + else: n, + do: n, + try: n, + finally: n, + return: i, + break: i, + continue: i, + new: e("new"), + delete: r, + void: r, + throw: r, + debugger: e("debugger"), + var: e("var"), + const: e("var"), + let: e("var"), + function: e("function"), + catch: e("catch"), + for: e("for"), + switch: e("switch"), + case: e("case"), + default: e("default"), + in: a, + typeof: a, + instanceof: a, + true: o, + false: o, + null: o, + undefined: o, + NaN: o, + Infinity: o, + this: e("this"), + class: e("class"), + super: e("atom"), + yield: r, + export: e("export"), + import: e("import"), + extends: r, + await: r + } + }(), + f = /[+\-*&%=<>!?|~^@]/, + m = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; + + function h(e) { + for (var t, n = !1, r = !1; null != (t = e.next());) { + if (!n) { + if ("/" == t && !r) return; + "[" == t ? r = !0 : r && "]" == t && (r = !1) + } + n = !n && "\\" == t + } + } + + function g(e, t, n) { + return r = e, i = n, t + } + + function b(e, t) { + var n = e.next(); + if ('"' == n || "'" == n) return t.tokenize = v(n), t.tokenize(e, t); + if ("." == n && e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) return g("number", "number"); + if ("." == n && e.match("..")) return g("spread", "meta"); + if (/[\[\]{}\(\),;\:\.]/.test(n)) return g(n); + if ("=" == n && e.eat(">")) return g("=>", "operator"); + if ("0" == n && e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) return g("number", "number"); + if (/\d/.test(n)) return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), g("number", "number"); + if ("/" == n) return e.eat("*") ? (t.tokenize = y, y(e, t)) : e.eat("/") ? (e.skipToEnd(), g("comment", "comment")) : it(e, t, 1) ? (h(e), e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), g("regexp", "string-2")) : (e.eat("="), g("operator", "operator", e.current())); + if ("`" == n) return t.tokenize = k, k(e, t); + if ("#" == n && "!" == e.peek()) return e.skipToEnd(), g("meta", "meta"); + if ("#" == n && e.eatWhile(d)) return g("variable", "property"); + if ("<" == n && e.match("!--") || "-" == n && e.match("->") && !/\S/.test(e.string.slice(0, e.start))) return e.skipToEnd(), g("comment", "comment"); + if (f.test(n)) return ">" == n && t.lexical && ">" == t.lexical.type || (e.eat("=") ? "!" != n && "=" != n || e.eat("=") : /[<>*+\-|&?]/.test(n) && (e.eat(n), ">" == n && e.eat(n))), "?" == n && e.eat(".") ? g(".") : g("operator", "operator", e.current()); + if (d.test(n)) { + e.eatWhile(d); + var r = e.current(); + if ("." != t.lastType) { + if (p.propertyIsEnumerable(r)) { + var i = p[r]; + return g(i.type, i.style, r) + } + if ("async" == r && e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1)) return g("async", "keyword", r) + } + return g("variable", "variable", r) + } + } + + function v(e) { + return function(t, n) { + var r, i = !1; + if (s && "@" == t.peek() && t.match(m)) return n.tokenize = b, g("jsonld-keyword", "meta"); + for (; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.tokenize = b), g("string", "string") + } + } + + function y(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = b; + break + } + r = "*" == n + } + return g("comment", "comment") + } + + function k(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (!r && ("`" == n || "$" == n && e.eat("{"))) { + t.tokenize = b; + break + } + r = !r && "\\" == n + } + return g("quasi", "string-2", e.current()) + } + var x = "([{}])"; + + function _(e, t) { + t.fatArrowAt && (t.fatArrowAt = null); + var n = e.string.indexOf("=>", e.start); + if (!(n < 0)) { + if (u) { + var r = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start, n)); + r && (n = r.index) + } + for (var i = 0, a = !1, o = n - 1; o >= 0; --o) { + var s = e.string.charAt(o), + l = x.indexOf(s); + if (l >= 0 && l < 3) { + if (!i) { + ++o; + break + } + if (0 == --i) { + "(" == s && (a = !0); + break + } + } else if (l >= 3 && l < 6) ++i; + else if (d.test(s)) a = !0; + else if (/["'\/`]/.test(s)) + for (;; --o) { + if (0 == o) return; + if (e.string.charAt(o - 1) == s && "\\" != e.string.charAt(o - 2)) { + o--; + break + } + } else if (a && !i) { + ++o; + break + } + } + a && !i && (t.fatArrowAt = o) + } + } + var w = { + atom: !0, + number: !0, + variable: !0, + string: !0, + regexp: !0, + this: !0, + import: !0, + "jsonld-keyword": !0 + }; + + function E(e, t, n, r, i, a) { + this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = a, null != r && (this.align = r) + } + + function T(e, t) { + if (!c) return !1; + for (var n = e.localVars; n; n = n.next) + if (n.name == t) return !0; + for (var r = e.context; r; r = r.prev) + for (n = r.vars; n; n = n.next) + if (n.name == t) return !0 + } + + function S(e, t, n, r, i) { + var a = e.cc; + for (I.state = e, I.stream = i, I.marked = null, I.cc = a, I.style = t, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0);;) + if ((a.length ? a.pop() : l ? W : B)(n, r)) { + for (; a.length && a[a.length - 1].lex;) a.pop()(); + return I.marked ? I.marked : "variable" == n && T(e, r) ? "variable-2" : t + } + } + var I = { + state: null, + column: null, + marked: null, + cc: null + }; + + function N() { + for (var e = arguments.length - 1; e >= 0; e--) I.cc.push(arguments[e]) + } + + function A() { + return N.apply(null, arguments), !0 + } + + function O(e, t) { + for (var n = t; n; n = n.next) + if (n.name == e) return !0; + return !1 + } + + function C(e) { + var t = I.state; + if (I.marked = "def", c) { + if (t.context) + if ("var" == t.lexical.info && t.context && t.context.block) { + var r = D(e, t.context); + if (null != r) return void(t.context = r) + } else if (!O(e, t.localVars)) return void(t.localVars = new L(e, t.localVars)); + n.globalVars && !O(e, t.globalVars) && (t.globalVars = new L(e, t.globalVars)) + } + } + + function D(e, t) { + if (t) { + if (t.block) { + var n = D(e, t.prev); + return n ? n == t.prev ? t : new M(n, t.vars, !0) : null + } + return O(e, t.vars) ? t : new M(t.prev, new L(e, t.vars), !1) + } + return null + } + + function R(e) { + return "public" == e || "private" == e || "protected" == e || "abstract" == e || "readonly" == e + } + + function M(e, t, n) { + this.prev = e, this.vars = t, this.block = n + } + + function L(e, t) { + this.name = e, this.next = t + } + var z = new L("this", new L("arguments", null)); + + function F() { + I.state.context = new M(I.state.context, I.state.localVars, !1), I.state.localVars = z + } + + function $() { + I.state.context = new M(I.state.context, I.state.localVars, !0), I.state.localVars = null + } + + function P() { + I.state.localVars = I.state.context.vars, I.state.context = I.state.context.prev + } + + function U(e, t) { + var n = function() { + var n = I.state, + r = n.indented; + if ("stat" == n.lexical.type) r = n.lexical.indented; + else + for (var i = n.lexical; i && ")" == i.type && i.align; i = i.prev) r = i.indented; + n.lexical = new E(r, I.stream.column(), e, null, n.lexical, t) + }; + return n.lex = !0, n + } + + function j() { + var e = I.state; + e.lexical.prev && (")" == e.lexical.type && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev) + } + + function q(e) { + function t(n) { + return n == e ? A() : ";" == e || "}" == n || ")" == n || "]" == n ? N() : A(t) + } + return t + } + + function B(e, t) { + return "var" == e ? A(U("vardef", t), Ne, q(";"), j) : "keyword a" == e ? A(U("form"), H, B, j) : "keyword b" == e ? A(U("form"), B, j) : "keyword d" == e ? I.stream.match(/^\s*$/, !1) ? A() : A(U("stat"), Y, q(";"), j) : "debugger" == e ? A(q(";")) : "{" == e ? A(U("}"), $, pe, j, P) : ";" == e ? A() : "if" == e ? ("else" == I.state.lexical.info && I.state.cc[I.state.cc.length - 1] == j && I.state.cc.pop()(), A(U("form"), H, B, j, Me)) : "function" == e ? A($e) : "for" == e ? A(U("form"), $, Le, B, P, j) : "class" == e || u && "interface" == t ? (I.marked = "keyword", A(U("form", "class" == e ? e : t), Be, j)) : "variable" == e ? u && "declare" == t ? (I.marked = "keyword", A(B)) : u && ("module" == t || "enum" == t || "type" == t) && I.stream.match(/^\s*\w/, !1) ? (I.marked = "keyword", "enum" == t ? A(tt) : "type" == t ? A(Ue, q("operator"), be, q(";")) : A(U("form"), Ae, q("{"), U("}"), pe, j, j)) : u && "namespace" == t ? (I.marked = "keyword", A(U("form"), W, B, j)) : u && "abstract" == t ? (I.marked = "keyword", A(B)) : A(U("stat"), ae) : "switch" == e ? A(U("form"), H, q("{"), U("}", "switch"), $, pe, j, j, P) : "case" == e ? A(W, q(":")) : "default" == e ? A(q(":")) : "catch" == e ? A(U("form"), F, V, B, j, P) : "export" == e ? A(U("stat"), He, j) : "import" == e ? A(U("stat"), Ye, j) : "async" == e ? A(B) : "@" == t ? A(W, B) : N(U("stat"), W, q(";"), j) + } + + function V(e) { + if ("(" == e) return A(je, q(")")) + } + + function W(e, t) { + return K(e, t, !1) + } + + function G(e, t) { + return K(e, t, !0) + } + + function H(e) { + return "(" != e ? N() : A(U(")"), Y, q(")"), j) + } + + function K(e, t, n) { + if (I.state.fatArrowAt == I.stream.start) { + var r = n ? te : ee; + if ("(" == e) return A(F, U(")"), ue(je, ")"), j, q("=>"), r, P); + if ("variable" == e) return N(F, Ae, q("=>"), r, P) + } + var i = n ? X : Z; + return w.hasOwnProperty(e) ? A(i) : "function" == e ? A($e, i) : "class" == e || u && "interface" == t ? (I.marked = "keyword", A(U("form"), qe, j)) : "keyword c" == e || "async" == e ? A(n ? G : W) : "(" == e ? A(U(")"), Y, q(")"), j, i) : "operator" == e || "spread" == e ? A(n ? G : W) : "[" == e ? A(U("]"), et, j, i) : "{" == e ? de(se, "}", null, i) : "quasi" == e ? N(Q, i) : "new" == e ? A(ne(n)) : A() + } + + function Y(e) { + return e.match(/[;\}\)\],]/) ? N() : N(W) + } + + function Z(e, t) { + return "," == e ? A(Y) : X(e, t, !1) + } + + function X(e, t, n) { + var r = 0 == n ? Z : X, + i = 0 == n ? W : G; + return "=>" == e ? A(F, n ? te : ee, P) : "operator" == e ? /\+\+|--/.test(t) || u && "!" == t ? A(r) : u && "<" == t && I.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? A(U(">"), ue(be, ">"), j, r) : "?" == t ? A(W, q(":"), i) : A(i) : "quasi" == e ? N(Q, r) : ";" != e ? "(" == e ? de(G, ")", "call", r) : "." == e ? A(oe, r) : "[" == e ? A(U("]"), Y, q("]"), j, r) : u && "as" == t ? (I.marked = "keyword", A(be, r)) : "regexp" == e ? (I.state.lastType = I.marked = "operator", I.stream.backUp(I.stream.pos - I.stream.start - 1), A(i)) : void 0 : void 0 + } + + function Q(e, t) { + return "quasi" != e ? N() : "${" != t.slice(t.length - 2) ? A(Q) : A(Y, J) + } + + function J(e) { + if ("}" == e) return I.marked = "string-2", I.state.tokenize = k, A(Q) + } + + function ee(e) { + return _(I.stream, I.state), N("{" == e ? B : W) + } + + function te(e) { + return _(I.stream, I.state), N("{" == e ? B : G) + } + + function ne(e) { + return function(t) { + return "." == t ? A(e ? ie : re) : "variable" == t && u ? A(Te, e ? X : Z) : N(e ? G : W) + } + } + + function re(e, t) { + if ("target" == t) return I.marked = "keyword", A(Z) + } + + function ie(e, t) { + if ("target" == t) return I.marked = "keyword", A(X) + } + + function ae(e) { + return ":" == e ? A(j, B) : N(Z, q(";"), j) + } + + function oe(e) { + if ("variable" == e) return I.marked = "property", A() + } + + function se(e, t) { + return "async" == e ? (I.marked = "property", A(se)) : "variable" == e || "keyword" == I.style ? (I.marked = "property", "get" == t || "set" == t ? A(le) : (u && I.state.fatArrowAt == I.stream.start && (n = I.stream.match(/^\s*:\s*/, !1)) && (I.state.fatArrowAt = I.stream.pos + n[0].length), A(ce))) : "number" == e || "string" == e ? (I.marked = s ? "property" : I.style + " property", A(ce)) : "jsonld-keyword" == e ? A(ce) : u && R(t) ? (I.marked = "keyword", A(se)) : "[" == e ? A(W, fe, q("]"), ce) : "spread" == e ? A(G, ce) : "*" == t ? (I.marked = "keyword", A(se)) : ":" == e ? N(ce) : void 0; + var n + } + + function le(e) { + return "variable" != e ? N(ce) : (I.marked = "property", A($e)) + } + + function ce(e) { + return ":" == e ? A(G) : "(" == e ? N($e) : void 0 + } + + function ue(e, t, n) { + function r(i, a) { + if (n ? n.indexOf(i) > -1 : "," == i) { + var o = I.state.lexical; + return "call" == o.info && (o.pos = (o.pos || 0) + 1), A((function(n, r) { + return n == t || r == t ? N() : N(e) + }), r) + } + return i == t || a == t ? A() : n && n.indexOf(";") > -1 ? N(e) : A(q(t)) + } + return function(n, i) { + return n == t || i == t ? A() : N(e, r) + } + } + + function de(e, t, n) { + for (var r = 3; r < arguments.length; r++) I.cc.push(arguments[r]); + return A(U(t, n), ue(e, t), j) + } + + function pe(e) { + return "}" == e ? A() : N(B, pe) + } + + function fe(e, t) { + if (u) { + if (":" == e) return A(be); + if ("?" == t) return A(fe) + } + } + + function me(e, t) { + if (u && (":" == e || "in" == t)) return A(be) + } + + function he(e) { + if (u && ":" == e) return I.stream.match(/^\s*\w+\s+is\b/, !1) ? A(W, ge, be) : A(be) + } + + function ge(e, t) { + if ("is" == t) return I.marked = "keyword", A() + } + + function be(e, t) { + return "keyof" == t || "typeof" == t || "infer" == t || "readonly" == t ? (I.marked = "keyword", A("typeof" == t ? G : be)) : "variable" == e || "void" == t ? (I.marked = "type", A(Ee)) : "|" == t || "&" == t ? A(be) : "string" == e || "number" == e || "atom" == e ? A(Ee) : "[" == e ? A(U("]"), ue(be, "]", ","), j, Ee) : "{" == e ? A(U("}"), ye, j, Ee) : "(" == e ? A(ue(we, ")"), ve, Ee) : "<" == e ? A(ue(be, ">"), be) : "quasi" == e ? N(xe, Ee) : void 0 + } + + function ve(e) { + if ("=>" == e) return A(be) + } + + function ye(e) { + return e.match(/[\}\)\]]/) ? A() : "," == e || ";" == e ? A(ye) : N(ke, ye) + } + + function ke(e, t) { + return "variable" == e || "keyword" == I.style ? (I.marked = "property", A(ke)) : "?" == t || "number" == e || "string" == e ? A(ke) : ":" == e ? A(be) : "[" == e ? A(q("variable"), me, q("]"), ke) : "(" == e ? N(Pe, ke) : e.match(/[;\}\)\],]/) ? void 0 : A() + } + + function xe(e, t) { + return "quasi" != e ? N() : "${" != t.slice(t.length - 2) ? A(xe) : A(be, _e) + } + + function _e(e) { + if ("}" == e) return I.marked = "string-2", I.state.tokenize = k, A(xe) + } + + function we(e, t) { + return "variable" == e && I.stream.match(/^\s*[?:]/, !1) || "?" == t ? A(we) : ":" == e ? A(be) : "spread" == e ? A(we) : N(be) + } + + function Ee(e, t) { + return "<" == t ? A(U(">"), ue(be, ">"), j, Ee) : "|" == t || "." == e || "&" == t ? A(be) : "[" == e ? A(be, q("]"), Ee) : "extends" == t || "implements" == t ? (I.marked = "keyword", A(be)) : "?" == t ? A(be, q(":"), be) : void 0 + } + + function Te(e, t) { + if ("<" == t) return A(U(">"), ue(be, ">"), j, Ee) + } + + function Se() { + return N(be, Ie) + } + + function Ie(e, t) { + if ("=" == t) return A(be) + } + + function Ne(e, t) { + return "enum" == t ? (I.marked = "keyword", A(tt)) : N(Ae, fe, De, Re) + } + + function Ae(e, t) { + return u && R(t) ? (I.marked = "keyword", A(Ae)) : "variable" == e ? (C(t), A()) : "spread" == e ? A(Ae) : "[" == e ? de(Ce, "]") : "{" == e ? de(Oe, "}") : void 0 + } + + function Oe(e, t) { + return "variable" != e || I.stream.match(/^\s*:/, !1) ? ("variable" == e && (I.marked = "property"), "spread" == e ? A(Ae) : "}" == e ? N() : "[" == e ? A(W, q("]"), q(":"), Oe) : A(q(":"), Ae, De)) : (C(t), A(De)) + } + + function Ce() { + return N(Ae, De) + } + + function De(e, t) { + if ("=" == t) return A(G) + } + + function Re(e) { + if ("," == e) return A(Ne) + } + + function Me(e, t) { + if ("keyword b" == e && "else" == t) return A(U("form", "else"), B, j) + } + + function Le(e, t) { + return "await" == t ? A(Le) : "(" == e ? A(U(")"), ze, j) : void 0 + } + + function ze(e) { + return "var" == e ? A(Ne, Fe) : "variable" == e ? A(Fe) : N(Fe) + } + + function Fe(e, t) { + return ")" == e ? A() : ";" == e ? A(Fe) : "in" == t || "of" == t ? (I.marked = "keyword", A(W, Fe)) : N(W, Fe) + } + + function $e(e, t) { + return "*" == t ? (I.marked = "keyword", A($e)) : "variable" == e ? (C(t), A($e)) : "(" == e ? A(F, U(")"), ue(je, ")"), j, he, B, P) : u && "<" == t ? A(U(">"), ue(Se, ">"), j, $e) : void 0 + } + + function Pe(e, t) { + return "*" == t ? (I.marked = "keyword", A(Pe)) : "variable" == e ? (C(t), A(Pe)) : "(" == e ? A(F, U(")"), ue(je, ")"), j, he, P) : u && "<" == t ? A(U(">"), ue(Se, ">"), j, Pe) : void 0 + } + + function Ue(e, t) { + return "keyword" == e || "variable" == e ? (I.marked = "type", A(Ue)) : "<" == t ? A(U(">"), ue(Se, ">"), j) : void 0 + } + + function je(e, t) { + return "@" == t && A(W, je), "spread" == e ? A(je) : u && R(t) ? (I.marked = "keyword", A(je)) : u && "this" == e ? A(fe, De) : N(Ae, fe, De) + } + + function qe(e, t) { + return "variable" == e ? Be(e, t) : Ve(e, t) + } + + function Be(e, t) { + if ("variable" == e) return C(t), A(Ve) + } + + function Ve(e, t) { + return "<" == t ? A(U(">"), ue(Se, ">"), j, Ve) : "extends" == t || "implements" == t || u && "," == e ? ("implements" == t && (I.marked = "keyword"), A(u ? be : W, Ve)) : "{" == e ? A(U("}"), We, j) : void 0 + } + + function We(e, t) { + return "async" == e || "variable" == e && ("static" == t || "get" == t || "set" == t || u && R(t)) && I.stream.match(/^\s+[\w$\xa1-\uffff]/, !1) ? (I.marked = "keyword", A(We)) : "variable" == e || "keyword" == I.style ? (I.marked = "property", A(Ge, We)) : "number" == e || "string" == e ? A(Ge, We) : "[" == e ? A(W, fe, q("]"), Ge, We) : "*" == t ? (I.marked = "keyword", A(We)) : u && "(" == e ? N(Pe, We) : ";" == e || "," == e ? A(We) : "}" == e ? A() : "@" == t ? A(W, We) : void 0 + } + + function Ge(e, t) { + if ("!" == t) return A(Ge); + if ("?" == t) return A(Ge); + if (":" == e) return A(be, De); + if ("=" == t) return A(G); + var n = I.state.lexical.prev; + return N(n && "interface" == n.info ? Pe : $e) + } + + function He(e, t) { + return "*" == t ? (I.marked = "keyword", A(Je, q(";"))) : "default" == t ? (I.marked = "keyword", A(W, q(";"))) : "{" == e ? A(ue(Ke, "}"), Je, q(";")) : N(B) + } + + function Ke(e, t) { + return "as" == t ? (I.marked = "keyword", A(q("variable"))) : "variable" == e ? N(G, Ke) : void 0 + } + + function Ye(e) { + return "string" == e ? A() : "(" == e ? N(W) : "." == e ? N(Z) : N(Ze, Xe, Je) + } + + function Ze(e, t) { + return "{" == e ? de(Ze, "}") : ("variable" == e && C(t), "*" == t && (I.marked = "keyword"), A(Qe)) + } + + function Xe(e) { + if ("," == e) return A(Ze, Xe) + } + + function Qe(e, t) { + if ("as" == t) return I.marked = "keyword", A(Ze) + } + + function Je(e, t) { + if ("from" == t) return I.marked = "keyword", A(W) + } + + function et(e) { + return "]" == e ? A() : N(ue(G, "]")) + } + + function tt() { + return N(U("form"), Ae, q("{"), U("}"), ue(nt, "}"), j, j) + } + + function nt() { + return N(Ae, De) + } + + function rt(e, t) { + return "operator" == e.lastType || "," == e.lastType || f.test(t.charAt(0)) || /[,.]/.test(t.charAt(0)) + } + + function it(e, t, n) { + return t.tokenize == b && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType) || "quasi" == t.lastType && /\{\s*$/.test(e.string.slice(0, e.pos - (n || 0))) + } + return F.lex = $.lex = !0, P.lex = !0, j.lex = !0, { + startState: function(e) { + var t = { + tokenize: b, + lastType: "sof", + cc: [], + lexical: new E((e || 0) - a, 0, "block", !1), + localVars: n.localVars, + context: n.localVars && new M(null, null, !1), + indented: e || 0 + }; + return n.globalVars && "object" == typeof n.globalVars && (t.globalVars = n.globalVars), t + }, + token: function(e, t) { + if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation(), _(e, t)), t.tokenize != y && e.eatSpace()) return null; + var n = t.tokenize(e, t); + return "comment" == r ? n : (t.lastType = "operator" != r || "++" != i && "--" != i ? r : "incdec", S(t, n, r, i, e)) + }, + indent: function(t, r) { + if (t.tokenize == y || t.tokenize == k) return e.Pass; + if (t.tokenize != b) return 0; + var i, s = r && r.charAt(0), + l = t.lexical; + if (!/^\s*else\b/.test(r)) + for (var c = t.cc.length - 1; c >= 0; --c) { + var u = t.cc[c]; + if (u == j) l = l.prev; + else if (u != Me && u != P) break + } + for (; + ("stat" == l.type || "form" == l.type) && ("}" == s || (i = t.cc[t.cc.length - 1]) && (i == Z || i == X) && !/^[,\.=+\-*:?[\(]/.test(r));) l = l.prev; + o && ")" == l.type && "stat" == l.prev.type && (l = l.prev); + var d = l.type, + p = s == d; + return "vardef" == d ? l.indented + ("operator" == t.lastType || "," == t.lastType ? l.info.length + 1 : 0) : "form" == d && "{" == s ? l.indented : "form" == d ? l.indented + a : "stat" == d ? l.indented + (rt(t, r) ? o || a : 0) : "switch" != l.info || p || 0 == n.doubleIndentSwitch ? l.align ? l.column + (p ? 0 : 1) : l.indented + (p ? 0 : a) : l.indented + (/^(?:case|default)\b/.test(r) ? a : 2 * a) + }, + electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, + blockCommentStart: l ? null : "/*", + blockCommentEnd: l ? null : "*/", + blockCommentContinue: l ? null : " * ", + lineComment: l ? null : "//", + fold: "brace", + closeBrackets: "()[]{}''\"\"``", + helperType: l ? "json" : "javascript", + jsonldMode: s, + jsonMode: l, + expressionAllowed: it, + skipExpression: function(t) { + S(t, "atom", "atom", "true", new e.StringStream("", 2, null)) + } + } + })), e.registerHelper("wordChars", "javascript", /[\w$]/), e.defineMIME("text/javascript", "javascript"), e.defineMIME("text/ecmascript", "javascript"), e.defineMIME("application/javascript", "javascript"), e.defineMIME("application/x-javascript", "javascript"), e.defineMIME("application/ecmascript", "javascript"), e.defineMIME("application/json", { + name: "javascript", + json: !0 + }), e.defineMIME("application/x-json", { + name: "javascript", + json: !0 + }), e.defineMIME("application/manifest+json", { + name: "javascript", + json: !0 + }), e.defineMIME("application/ld+json", { + name: "javascript", + jsonld: !0 + }), e.defineMIME("text/typescript", { + name: "javascript", + typescript: !0 + }), e.defineMIME("application/typescript", { + name: "javascript", + typescript: !0 + }) + }(n(4631)) + }, + 74670: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("jinja2", (function() { + var e = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif", "extends", "filter", "endfilter", "firstof", "for", "endfor", "if", "endif", "ifchanged", "endifchanged", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "in", "include", "load", "not", "now", "or", "parsed", "regroup", "reversed", "spaceless", "endspaceless", "ssi", "templatetag", "openblock", "closeblock", "openvariable", "closevariable", "openbrace", "closebrace", "opencomment", "closecomment", "widthratio", "url", "with", "endwith", "get_current_language", "trans", "endtrans", "noop", "blocktrans", "endblocktrans", "get_available_languages", "get_current_language_bidi", "plural"], + t = /^[+\-*&%=<>!?|~^]/, + n = /^[:\[\(\{]/, + r = ["true", "false"], + i = /^(\d[+\-\*\/])?\d+(\.\d+)?/; + + function a(a, o) { + var s = a.peek(); + if (o.incomment) return a.skipTo("#}") ? (a.eatWhile(/\#|}/), o.incomment = !1) : a.skipToEnd(), "comment"; + if (o.intag) { + if (o.operator) { + if (o.operator = !1, a.match(r)) return "atom"; + if (a.match(i)) return "number" + } + if (o.sign) { + if (o.sign = !1, a.match(r)) return "atom"; + if (a.match(i)) return "number" + } + if (o.instring) return s == o.instring && (o.instring = !1), a.next(), "string"; + if ("'" == s || '"' == s) return o.instring = s, a.next(), "string"; + if (a.match(o.intag + "}") || a.eat("-") && a.match(o.intag + "}")) return o.intag = !1, "tag"; + if (a.match(t)) return o.operator = !0, "operator"; + if (a.match(n)) o.sign = !0; + else if (a.eat(" ") || a.sol()) { + if (a.match(e)) return "keyword"; + if (a.match(r)) return "atom"; + if (a.match(i)) return "number"; + a.sol() && a.next() + } else a.next(); + return "variable" + } + if (a.eat("{")) { + if (a.eat("#")) return o.incomment = !0, a.skipTo("#}") ? (a.eatWhile(/\#|}/), o.incomment = !1) : a.skipToEnd(), "comment"; + if (s = a.eat(/\{|%/)) return o.intag = s, "{" == s && (o.intag = "}"), a.eat("-"), "tag" + } + a.next() + } + return e = new RegExp("((" + e.join(")|(") + "))\\b"), r = new RegExp("((" + r.join(")|(") + "))\\b"), { + startState: function() { + return { + tokenize: a + } + }, + token: function(e, t) { + return t.tokenize(e, t) + }, + blockCommentStart: "{#", + blockCommentEnd: "#}" + } + })), e.defineMIME("text/jinja2", "jinja2") + }(n(4631)) + }, + 71548: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e, t, n, r) { + this.state = e, this.mode = t, this.depth = n, this.prev = r + } + + function n(r) { + return new t(e.copyState(r.mode, r.state), r.mode, r.depth, r.prev && n(r.prev)) + } + e.defineMode("jsx", (function(r, i) { + var a = e.getMode(r, { + name: "xml", + allowMissing: !0, + multilineTagIndentPastTag: !1, + allowMissingTagName: !0 + }), + o = e.getMode(r, i && i.base || "javascript"); + + function s(e) { + var t = e.tagName; + e.tagName = null; + var n = a.indent(e, "", ""); + return e.tagName = t, n + } + + function l(e, t) { + return t.context.mode == a ? c(e, t, t.context) : u(e, t, t.context) + } + + function c(n, i, c) { + if (2 == c.depth) return n.match(/^.*?\*\//) ? c.depth = 1 : n.skipToEnd(), "comment"; + if ("{" == n.peek()) { + a.skipAttribute(c.state); + var u = s(c.state), + d = c.state.context; + if (d && n.match(/^[^>]*>\s*$/, !1)) { + for (; d.prev && !d.startOfLine;) d = d.prev; + d.startOfLine ? u -= r.indentUnit : c.prev.state.lexical && (u = c.prev.state.lexical.indented) + } else 1 == c.depth && (u += r.indentUnit); + return i.context = new t(e.startState(o, u), o, 0, i.context), null + } + if (1 == c.depth) { + if ("<" == n.peek()) return a.skipAttribute(c.state), i.context = new t(e.startState(a, s(c.state)), a, 0, i.context), null; + if (n.match("//")) return n.skipToEnd(), "comment"; + if (n.match("/*")) return c.depth = 2, l(n, i) + } + var p, f = a.token(n, c.state), + m = n.current(); + return /\btag\b/.test(f) ? />$/.test(m) ? c.state.context ? c.depth = 0 : i.context = i.context.prev : /^ -1 && n.backUp(m.length - p), f + } + + function u(n, r, i) { + if ("<" == n.peek() && o.expressionAllowed(n, i.state)) return r.context = new t(e.startState(a, o.indent(i.state, "", "")), a, 0, r.context), o.skipExpression(i.state), null; + var s = o.token(n, i.state); + if (!s && null != i.depth) { + var l = n.current(); + "{" == l ? i.depth++ : "}" == l && 0 == --i.depth && (r.context = r.context.prev) + } + return s + } + return { + startState: function() { + return { + context: new t(e.startState(o), o) + } + }, + copyState: function(e) { + return { + context: n(e.context) + } + }, + token: l, + indent: function(e, t, n) { + return e.context.mode.indent(e.context.state, t, n) + }, + innerMode: function(e) { + return e.context + } + } + }), "xml", "javascript"), e.defineMIME("text/jsx", "jsx"), e.defineMIME("text/typescript-jsx", { + name: "jsx", + base: { + name: "javascript", + typescript: !0 + } + }) + }(n(4631), n(29589), n(96876)) + }, + 68059: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("julia", (function(t, n) { + function r(e, t, n) { + return "undefined" === typeof n && (n = ""), "undefined" === typeof t && (t = "\\b"), new RegExp("^" + n + "((" + e.join(")|(") + "))" + t) + } + var i = "\\\\[0-7]{1,3}", + a = "\\\\x[A-Fa-f0-9]{1,2}", + o = "\\\\[abefnrtv0%?'\"\\\\]", + s = "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])", + l = ["[<>]:", "[<>=]=", "<<=?", ">>>?=?", "=>", "--?>", "<--[->]?", "\\/\\/", "\\.{2,3}", "[\\.\\\\%*+\\-<>!\\/^|&]=?", "\\?", "\\$", "~", ":"], + c = n.operators || r(["[<>]:", "[<>=]=", "[!=]==", "<<=?", ">>>?=?", "=>?", "--?>", "<--[->]?", "\\/\\/", "[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?", "\\?", "\\$", "~", ":", "\\u00D7", "\\u2208", "\\u2209", "\\u220B", "\\u220C", "\\u2218", "\\u221A", "\\u221B", "\\u2229", "\\u222A", "\\u2260", "\\u2264", "\\u2265", "\\u2286", "\\u2288", "\\u228A", "\\u22C5", "\\b(in|isa)\\b(?!.?\\()"], ""), + u = n.delimiters || /^[;,()[\]{}]/, + d = n.identifiers || /^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/, + p = r([i, a, o, s], "'"), + f = ["begin", "function", "type", "struct", "immutable", "let", "macro", "for", "while", "quote", "if", "else", "elseif", "try", "finally", "catch", "do"], + m = ["end", "else", "elseif", "catch", "finally"], + h = ["if", "else", "elseif", "while", "for", "begin", "let", "end", "do", "try", "catch", "finally", "return", "break", "continue", "global", "local", "const", "export", "import", "importall", "using", "function", "where", "macro", "module", "baremodule", "struct", "type", "mutable", "immutable", "quote", "typealias", "abstract", "primitive", "bitstype"], + g = ["true", "false", "nothing", "NaN", "Inf"]; + e.registerHelper("hintWords", "julia", h.concat(g)); + var b = r(f), + v = r(m), + y = r(h), + k = r(g), + x = /^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/, + _ = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/, + w = /^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/, + E = r(l, "", "@"), + T = r(l, "", ":"); + + function S(e) { + return e.nestedArrays > 0 + } + + function I(e) { + return e.nestedGenerators > 0 + } + + function N(e, t) { + return "undefined" === typeof t && (t = 0), e.scopes.length <= t ? null : e.scopes[e.scopes.length - (t + 1)] + } + + function A(e, t) { + if (e.match("#=", !1)) return t.tokenize = C, t.tokenize(e, t); + var n = t.leavingExpr; + if (e.sol() && (n = !1), t.leavingExpr = !1, n && e.match(/^'+/)) return "operator"; + if (e.match(/\.{4,}/)) return "error"; + if (e.match(/\.{1,3}/)) return "operator"; + if (e.eatSpace()) return null; + var r, i = e.peek(); + if ("#" === i) return e.skipToEnd(), "comment"; + if ("[" === i && (t.scopes.push("["), t.nestedArrays++), "(" === i && (t.scopes.push("("), t.nestedGenerators++), S(t) && "]" === i) { + for (; t.scopes.length && "[" !== N(t);) t.scopes.pop(); + t.scopes.pop(), t.nestedArrays--, t.leavingExpr = !0 + } + if (I(t) && ")" === i) { + for (; t.scopes.length && "(" !== N(t);) t.scopes.pop(); + t.scopes.pop(), t.nestedGenerators--, t.leavingExpr = !0 + } + if (S(t)) { + if ("end" == t.lastToken && e.match(":")) return "operator"; + if (e.match("end")) return "number" + } + if ((r = e.match(b, !1)) && t.scopes.push(r[0]), e.match(v, !1) && t.scopes.pop(), e.match(/^::(?![:\$])/)) return t.tokenize = O, t.tokenize(e, t); + if (!n && (e.match(_) || e.match(T))) return "builtin"; + if (e.match(c)) return "operator"; + if (e.match(/^\.?\d/, !1)) { + var a = RegExp(/^im\b/), + o = !1; + if (e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i) && (o = !0), e.match(/^0x[0-9a-f_]+/i) && (o = !0), e.match(/^0b[01_]+/i) && (o = !0), e.match(/^0o[0-7_]+/i) && (o = !0), e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i) && (o = !0), e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i) && (o = !0), o) return e.match(a), t.leavingExpr = !0, "number" + } + if (e.match("'")) return t.tokenize = D, t.tokenize(e, t); + if (e.match(w)) return t.tokenize = R(e.current()), t.tokenize(e, t); + if (e.match(x) || e.match(E)) return "meta"; + if (e.match(u)) return null; + if (e.match(y)) return "keyword"; + if (e.match(k)) return "builtin"; + var s = t.isDefinition || "function" == t.lastToken || "macro" == t.lastToken || "type" == t.lastToken || "struct" == t.lastToken || "immutable" == t.lastToken; + return e.match(d) ? s ? "." === e.peek() ? (t.isDefinition = !0, "variable") : (t.isDefinition = !1, "def") : (t.leavingExpr = !0, "variable") : (e.next(), "error") + } + + function O(e, t) { + return e.match(/.*?(?=[,;{}()=\s]|$)/), e.match("{") ? t.nestedParameters++ : e.match("}") && t.nestedParameters > 0 && t.nestedParameters--, t.nestedParameters > 0 ? e.match(/.*?(?={|})/) || e.next() : 0 == t.nestedParameters && (t.tokenize = A), "builtin" + } + + function C(e, t) { + return e.match("#=") && t.nestedComments++, e.match(/.*?(?=(#=|=#))/) || e.skipToEnd(), e.match("=#") && (t.nestedComments--, 0 == t.nestedComments && (t.tokenize = A)), "comment" + } + + function D(e, t) { + var n, r = !1; + if (e.match(p)) r = !0; + else if (n = e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i = parseInt(n[1], 16)) <= 55295 || i >= 57344) && (r = !0, e.next()); + else if (n = e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) { + var i; + (i = parseInt(n[1], 16)) <= 1114111 && (r = !0, e.next()) + } + return r ? (t.leavingExpr = !0, t.tokenize = A, "string") : (e.match(/^[^']+(?=')/) || e.skipToEnd(), e.match("'") && (t.tokenize = A), "error") + } + + function R(e) { + function t(t, n) { + if (t.eat("\\")) t.next(); + else { + if (t.match(e)) return n.tokenize = A, n.leavingExpr = !0, "string"; + t.eat(/[`"]/) + } + return t.eatWhile(/[^\\`"]/), "string" + } + return '"""' === e.substr(-3) ? e = '"""' : '"' === e.substr(-1) && (e = '"'), t + } + return { + startState: function() { + return { + tokenize: A, + scopes: [], + lastToken: null, + leavingExpr: !1, + isDefinition: !1, + nestedArrays: 0, + nestedComments: 0, + nestedGenerators: 0, + nestedParameters: 0, + firstParenPos: -1 + } + }, + token: function(e, t) { + var n = t.tokenize(e, t), + r = e.current(); + return r && n && (t.lastToken = r), n + }, + indent: function(e, n) { + var r = 0; + return ("]" === n || ")" === n || /^end\b/.test(n) || /^else/.test(n) || /^catch\b/.test(n) || /^elseif\b/.test(n) || /^finally/.test(n)) && (r = -1), (e.scopes.length + r) * t.indentUnit + }, + electricInput: /\b(end|else|catch|finally)\b/, + blockCommentStart: "#=", + blockCommentEnd: "=#", + lineComment: "#", + closeBrackets: '()[]{}""', + fold: "indent" + } + })), e.defineMIME("text/x-julia", "julia") + }(n(4631)) + }, + 14373: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("livescript", (function() { + var e = function(e, t) { + var n = t.next || "start"; + if (n) { + t.next = t.next; + var r = a[n]; + if (r.splice) { + for (var i = 0; i < r.length; ++i) { + var o = r[i]; + if (o.regex && e.match(o.regex)) return t.next = o.next || t.next, o.token + } + return e.next(), "error" + } + if (e.match(o = a[n])) return o.regex && e.match(o.regex) ? (t.next = o.next, o.token) : (e.next(), "error") + } + return e.next(), "error" + }; + return { + startState: function() { + return { + next: "start", + lastToken: { + style: null, + indent: 0, + content: "" + } + } + }, + token: function(t, n) { + for (; t.pos == t.start;) var r = e(t, n); + return n.lastToken = { + style: r, + indent: t.indentation(), + content: t.current() + }, r.replace(/\./g, " ") + }, + indent: function(e) { + var t = e.lastToken.indent; + return e.lastToken.content.match(n) && (t += 2), t + } + } + })); + var t = "(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*", + n = RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*" + t + ")?))\\s*$"), + r = "(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))", + i = { + token: "string", + regex: ".+" + }, + a = { + start: [{ + token: "comment.doc", + regex: "/\\*", + next: "comment" + }, { + token: "comment", + regex: "#.*" + }, { + token: "keyword", + regex: "(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)" + r + }, { + token: "constant.language", + regex: "(?:true|false|yes|no|on|off|null|void|undefined)" + r + }, { + token: "invalid.illegal", + regex: "(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)" + r + }, { + token: "language.support.class", + regex: "(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)" + r + }, { + token: "language.support.function", + regex: "(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)" + r + }, { + token: "variable.language", + regex: "(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)" + r + }, { + token: "identifier", + regex: t + "\\s*:(?![:=])" + }, { + token: "variable", + regex: t + }, { + token: "keyword.operator", + regex: "(?:\\.{3}|\\s+\\?)" + }, { + token: "keyword.variable", + regex: "(?:@+|::|\\.\\.)", + next: "key" + }, { + token: "keyword.operator", + regex: "\\.\\s*", + next: "key" + }, { + token: "string", + regex: "\\\\\\S[^\\s,;)}\\]]*" + }, { + token: "string.doc", + regex: "'''", + next: "qdoc" + }, { + token: "string.doc", + regex: '"""', + next: "qqdoc" + }, { + token: "string", + regex: "'", + next: "qstring" + }, { + token: "string", + regex: '"', + next: "qqstring" + }, { + token: "string", + regex: "`", + next: "js" + }, { + token: "string", + regex: "<\\[", + next: "words" + }, { + token: "string.regex", + regex: "//", + next: "heregex" + }, { + token: "string.regex", + regex: "\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}", + next: "key" + }, { + token: "constant.numeric", + regex: "(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)" + }, { + token: "lparen", + regex: "[({[]" + }, { + token: "rparen", + regex: "[)}\\]]", + next: "key" + }, { + token: "keyword.operator", + regex: "\\S+" + }, { + token: "text", + regex: "\\s+" + }], + heregex: [{ + token: "string.regex", + regex: ".*?//[gimy$?]{0,4}", + next: "start" + }, { + token: "string.regex", + regex: "\\s*#{" + }, { + token: "comment.regex", + regex: "\\s+(?:#.*)?" + }, { + token: "string.regex", + regex: "\\S+" + }], + key: [{ + token: "keyword.operator", + regex: "[.?@!]+" + }, { + token: "identifier", + regex: t, + next: "start" + }, { + token: "text", + regex: "", + next: "start" + }], + comment: [{ + token: "comment.doc", + regex: ".*?\\*/", + next: "start" + }, { + token: "comment.doc", + regex: ".+" + }], + qdoc: [{ + token: "string", + regex: ".*?'''", + next: "key" + }, i], + qqdoc: [{ + token: "string", + regex: '.*?"""', + next: "key" + }, i], + qstring: [{ + token: "string", + regex: "[^\\\\']*(?:\\\\.[^\\\\']*)*'", + next: "key" + }, i], + qqstring: [{ + token: "string", + regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', + next: "key" + }, i], + js: [{ + token: "string", + regex: "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`", + next: "key" + }, i], + words: [{ + token: "string", + regex: ".*?\\]>", + next: "key" + }, i] + }; + for (var o in a) { + var s = a[o]; + if (s.splice) + for (var l = 0, c = s.length; l < c; ++l) { + var u = s[l]; + "string" === typeof u.regex && (a[o][l].regex = new RegExp("^" + u.regex)) + } else "string" === typeof u.regex && (a[o].regex = new RegExp("^" + s.regex)) + } + e.defineMIME("text/x-livescript", "livescript") + }(n(4631)) + }, + 57745: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("lua", (function(e, t) { + var n = e.indentUnit; + + function r(e) { + return new RegExp("^(?:" + e.join("|") + ")", "i") + } + + function i(e) { + return new RegExp("^(?:" + e.join("|") + ")$", "i") + } + var a = i(t.specials || []), + o = i(["_G", "_VERSION", "assert", "collectgarbage", "dofile", "error", "getfenv", "getmetatable", "ipairs", "load", "loadfile", "loadstring", "module", "next", "pairs", "pcall", "print", "rawequal", "rawget", "rawset", "require", "select", "setfenv", "setmetatable", "tonumber", "tostring", "type", "unpack", "xpcall", "coroutine.create", "coroutine.resume", "coroutine.running", "coroutine.status", "coroutine.wrap", "coroutine.yield", "debug.debug", "debug.getfenv", "debug.gethook", "debug.getinfo", "debug.getlocal", "debug.getmetatable", "debug.getregistry", "debug.getupvalue", "debug.setfenv", "debug.sethook", "debug.setlocal", "debug.setmetatable", "debug.setupvalue", "debug.traceback", "close", "flush", "lines", "read", "seek", "setvbuf", "write", "io.close", "io.flush", "io.input", "io.lines", "io.open", "io.output", "io.popen", "io.read", "io.stderr", "io.stdin", "io.stdout", "io.tmpfile", "io.type", "io.write", "math.abs", "math.acos", "math.asin", "math.atan", "math.atan2", "math.ceil", "math.cos", "math.cosh", "math.deg", "math.exp", "math.floor", "math.fmod", "math.frexp", "math.huge", "math.ldexp", "math.log", "math.log10", "math.max", "math.min", "math.modf", "math.pi", "math.pow", "math.rad", "math.random", "math.randomseed", "math.sin", "math.sinh", "math.sqrt", "math.tan", "math.tanh", "os.clock", "os.date", "os.difftime", "os.execute", "os.exit", "os.getenv", "os.remove", "os.rename", "os.setlocale", "os.time", "os.tmpname", "package.cpath", "package.loaded", "package.loaders", "package.loadlib", "package.path", "package.preload", "package.seeall", "string.byte", "string.char", "string.dump", "string.find", "string.format", "string.gmatch", "string.gsub", "string.len", "string.lower", "string.match", "string.rep", "string.reverse", "string.sub", "string.upper", "table.concat", "table.insert", "table.maxn", "table.remove", "table.sort"]), + s = i(["and", "break", "elseif", "false", "nil", "not", "or", "return", "true", "function", "end", "if", "then", "else", "do", "while", "repeat", "until", "for", "in", "local"]), + l = i(["function", "if", "repeat", "do", "\\(", "{"]), + c = i(["end", "until", "\\)", "}"]), + u = r(["end", "until", "\\)", "}", "else", "elseif"]); + + function d(e) { + for (var t = 0; e.eat("=");) ++t; + return e.eat("["), t + } + + function p(e, t) { + var n = e.next(); + return "-" == n && e.eat("-") ? e.eat("[") && e.eat("[") ? (t.cur = f(d(e), "comment"))(e, t) : (e.skipToEnd(), "comment") : '"' == n || "'" == n ? (t.cur = m(n))(e, t) : "[" == n && /[\[=]/.test(e.peek()) ? (t.cur = f(d(e), "string"))(e, t) : /\d/.test(n) ? (e.eatWhile(/[\w.%]/), "number") : /[\w_]/.test(n) ? (e.eatWhile(/[\w\\\-_.]/), "variable") : null + } + + function f(e, t) { + return function(n, r) { + for (var i, a = null; null != (i = n.next());) + if (null == a) "]" == i && (a = 0); + else if ("=" == i) ++a; + else { + if ("]" == i && a == e) { + r.cur = p; + break + } + a = null + } + return t + } + } + + function m(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.cur = p), "string" + } + } + return { + startState: function(e) { + return { + basecol: e || 0, + indentDepth: 0, + cur: p + } + }, + token: function(e, t) { + if (e.eatSpace()) return null; + var n = t.cur(e, t), + r = e.current(); + return "variable" == n && (s.test(r) ? n = "keyword" : o.test(r) ? n = "builtin" : a.test(r) && (n = "variable-2")), "comment" != n && "string" != n && (l.test(r) ? ++t.indentDepth : c.test(r) && --t.indentDepth), n + }, + indent: function(e, t) { + var r = u.test(t); + return e.basecol + n * (e.indentDepth - (r ? 1 : 0)) + }, + electricInput: /^\s*(?:end|until|else|\)|\})$/, + lineComment: "--", + blockCommentStart: "--[[", + blockCommentEnd: "]]" + } + })), e.defineMIME("text/x-lua", "lua") + }(n(4631)) + }, + 49047: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("markdown", (function(t, n) { + var r = e.getMode(t, "text/html"), + i = "null" == r.name; + + function a(n) { + if (e.findModeByName) { + var r = e.findModeByName(n); + r && (n = r.mime || r.mimes[0]) + } + var i = e.getMode(t, n); + return "null" == i.name ? null : i + } + void 0 === n.highlightFormatting && (n.highlightFormatting = !1), void 0 === n.maxBlockquoteDepth && (n.maxBlockquoteDepth = 0), void 0 === n.taskLists && (n.taskLists = !1), void 0 === n.strikethrough && (n.strikethrough = !1), void 0 === n.emoji && (n.emoji = !1), void 0 === n.fencedCodeBlockHighlighting && (n.fencedCodeBlockHighlighting = !0), void 0 === n.fencedCodeBlockDefaultMode && (n.fencedCodeBlockDefaultMode = "text/plain"), void 0 === n.xml && (n.xml = !0), void 0 === n.tokenTypeOverrides && (n.tokenTypeOverrides = {}); + var o = { + header: "header", + code: "comment", + quote: "quote", + list1: "variable-2", + list2: "variable-3", + list3: "keyword", + hr: "hr", + image: "image", + imageAltText: "image-alt-text", + imageMarker: "image-marker", + formatting: "formatting", + linkInline: "link", + linkEmail: "link", + linkText: "link", + linkHref: "string", + em: "em", + strong: "strong", + strikethrough: "strikethrough", + emoji: "builtin" + }; + for (var s in o) o.hasOwnProperty(s) && n.tokenTypeOverrides[s] && (o[s] = n.tokenTypeOverrides[s]); + var l = /^([*\-_])(?:\s*\1){2,}\s*$/, + c = /^(?:[*\-+]|^[0-9]+([.)]))\s+/, + u = /^\[(x| )\](?=\s)/i, + d = n.allowAtxHeaderWithoutSpace ? /^(#+)/ : /^(#+)(?: |$)/, + p = /^ {0,3}(?:\={1,}|-{2,})\s*$/, + f = /^[^#!\[\]*_\\<>` "'(~:]+/, + m = /^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/, + h = /^\s*\[[^\]]+?\]:.*$/, + g = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/, + b = " "; + + function v(e, t, n) { + return t.f = t.inline = n, n(e, t) + } + + function y(e, t, n) { + return t.f = t.block = n, n(e, t) + } + + function k(e) { + return !e || !/\S/.test(e.string) + } + + function x(t) { + if (t.linkTitle = !1, t.linkHref = !1, t.linkText = !1, t.em = !1, t.strong = !1, t.strikethrough = !1, t.quote = 0, t.indentedCode = !1, t.f == w) { + var n = i; + if (!n) { + var a = e.innerMode(r, t.htmlState); + n = "xml" == a.mode.name && null === a.state.tagStart && !a.state.context && a.state.tokenize.isInText + } + n && (t.f = I, t.block = _, t.htmlState = null) + } + return t.trailingSpace = 0, t.trailingSpaceNewLine = !1, t.prevLine = t.thisLine, t.thisLine = { + stream: null + }, null + } + + function _(t, r) { + var i = t.column() === r.indentation, + s = k(r.prevLine.stream), + f = r.indentedCode, + g = r.prevLine.hr, + b = !1 !== r.list, + y = (r.listStack[r.listStack.length - 1] || 0) + 3; + r.indentedCode = !1; + var x = r.indentation; + if (null === r.indentationDiff && (r.indentationDiff = r.indentation, b)) { + for (r.list = null; x < r.listStack[r.listStack.length - 1];) r.listStack.pop(), r.listStack.length ? r.indentation = r.listStack[r.listStack.length - 1] : r.list = !1; + !1 !== r.list && (r.indentationDiff = x - r.listStack[r.listStack.length - 1]) + } + var _ = !s && !g && !r.prevLine.header && (!b || !f) && !r.prevLine.fencedCodeEnd, + w = (!1 === r.list || g || s) && r.indentation <= y && t.match(l), + S = null; + if (r.indentationDiff >= 4 && (f || r.prevLine.fencedCodeEnd || r.prevLine.header || s)) return t.skipToEnd(), r.indentedCode = !0, o.code; + if (t.eatSpace()) return null; + if (i && r.indentation <= y && (S = t.match(d)) && S[1].length <= 6) return r.quote = 0, r.header = S[1].length, r.thisLine.header = !0, n.highlightFormatting && (r.formatting = "header"), r.f = r.inline, T(r); + if (r.indentation <= y && t.eat(">")) return r.quote = i ? 1 : r.quote + 1, n.highlightFormatting && (r.formatting = "quote"), t.eatSpace(), T(r); + if (!w && !r.setext && i && r.indentation <= y && (S = t.match(c))) { + var I = S[1] ? "ol" : "ul"; + return r.indentation = x + t.current().length, r.list = !0, r.quote = 0, r.listStack.push(r.indentation), r.em = !1, r.strong = !1, r.code = !1, r.strikethrough = !1, n.taskLists && t.match(u, !1) && (r.taskList = !0), r.f = r.inline, n.highlightFormatting && (r.formatting = ["list", "list-" + I]), T(r) + } + return i && r.indentation <= y && (S = t.match(m, !0)) ? (r.quote = 0, r.fencedEndRE = new RegExp(S[1] + "+ *$"), r.localMode = n.fencedCodeBlockHighlighting && a(S[2] || n.fencedCodeBlockDefaultMode), r.localMode && (r.localState = e.startState(r.localMode)), r.f = r.block = E, n.highlightFormatting && (r.formatting = "code-block"), r.code = -1, T(r)) : r.setext || !(_ && b || r.quote || !1 !== r.list || r.code || w || h.test(t.string)) && (S = t.lookAhead(1)) && (S = S.match(p)) ? (r.setext ? (r.header = r.setext, r.setext = 0, t.skipToEnd(), n.highlightFormatting && (r.formatting = "header")) : (r.header = "=" == S[0].charAt(0) ? 1 : 2, r.setext = r.header), r.thisLine.header = !0, r.f = r.inline, T(r)) : w ? (t.skipToEnd(), r.hr = !0, r.thisLine.hr = !0, o.hr) : "[" === t.peek() ? v(t, r, D) : v(t, r, r.inline) + } + + function w(t, n) { + var a = r.token(t, n.htmlState); + if (!i) { + var o = e.innerMode(r, n.htmlState); + ("xml" == o.mode.name && null === o.state.tagStart && !o.state.context && o.state.tokenize.isInText || n.md_inside && t.current().indexOf(">") > -1) && (n.f = I, n.block = _, n.htmlState = null) + } + return a + } + + function E(e, t) { + var r, i = t.listStack[t.listStack.length - 1] || 0, + a = t.indentation < i, + s = i + 3; + return t.fencedEndRE && t.indentation <= s && (a || e.match(t.fencedEndRE)) ? (n.highlightFormatting && (t.formatting = "code-block"), a || (r = T(t)), t.localMode = t.localState = null, t.block = _, t.f = I, t.fencedEndRE = null, t.code = 0, t.thisLine.fencedCodeEnd = !0, a ? y(e, t, t.block) : r) : t.localMode ? t.localMode.token(e, t.localState) : (e.skipToEnd(), o.code) + } + + function T(e) { + var t = []; + if (e.formatting) { + t.push(o.formatting), "string" === typeof e.formatting && (e.formatting = [e.formatting]); + for (var r = 0; r < e.formatting.length; r++) t.push(o.formatting + "-" + e.formatting[r]), "header" === e.formatting[r] && t.push(o.formatting + "-" + e.formatting[r] + "-" + e.header), "quote" === e.formatting[r] && (!n.maxBlockquoteDepth || n.maxBlockquoteDepth >= e.quote ? t.push(o.formatting + "-" + e.formatting[r] + "-" + e.quote) : t.push("error")) + } + if (e.taskOpen) return t.push("meta"), t.length ? t.join(" ") : null; + if (e.taskClosed) return t.push("property"), t.length ? t.join(" ") : null; + if (e.linkHref ? t.push(o.linkHref, "url") : (e.strong && t.push(o.strong), e.em && t.push(o.em), e.strikethrough && t.push(o.strikethrough), e.emoji && t.push(o.emoji), e.linkText && t.push(o.linkText), e.code && t.push(o.code), e.image && t.push(o.image), e.imageAltText && t.push(o.imageAltText, "link"), e.imageMarker && t.push(o.imageMarker)), e.header && t.push(o.header, o.header + "-" + e.header), e.quote && (t.push(o.quote), !n.maxBlockquoteDepth || n.maxBlockquoteDepth >= e.quote ? t.push(o.quote + "-" + e.quote) : t.push(o.quote + "-" + n.maxBlockquoteDepth)), !1 !== e.list) { + var i = (e.listStack.length - 1) % 3; + i ? 1 === i ? t.push(o.list2) : t.push(o.list3) : t.push(o.list1) + } + return e.trailingSpaceNewLine ? t.push("trailing-space-new-line") : e.trailingSpace && t.push("trailing-space-" + (e.trailingSpace % 2 ? "a" : "b")), t.length ? t.join(" ") : null + } + + function S(e, t) { + if (e.match(f, !0)) return T(t) + } + + function I(t, i) { + var a = i.text(t, i); + if ("undefined" !== typeof a) return a; + if (i.list) return i.list = null, T(i); + if (i.taskList) return " " === t.match(u, !0)[1] ? i.taskOpen = !0 : i.taskClosed = !0, n.highlightFormatting && (i.formatting = "task"), i.taskList = !1, T(i); + if (i.taskOpen = !1, i.taskClosed = !1, i.header && t.match(/^#+$/, !0)) return n.highlightFormatting && (i.formatting = "header"), T(i); + var s = t.next(); + if (i.linkTitle) { + i.linkTitle = !1; + var l = s; + "(" === s && (l = ")"); + var c = "^\\s*(?:[^" + (l = (l + "").replace(/([.?*+^\[\]\\(){}|-])/g, "\\$1")) + "\\\\]+|\\\\\\\\|\\\\.)" + l; + if (t.match(new RegExp(c), !0)) return o.linkHref + } + if ("`" === s) { + var d = i.formatting; + n.highlightFormatting && (i.formatting = "code"), t.eatWhile("`"); + var p = t.current().length; + if (0 != i.code || i.quote && 1 != p) { + if (p == i.code) { + var f = T(i); + return i.code = 0, f + } + return i.formatting = d, T(i) + } + return i.code = p, T(i) + } + if (i.code) return T(i); + if ("\\" === s && (t.next(), n.highlightFormatting)) { + var m = T(i), + h = o.formatting + "-escape"; + return m ? m + " " + h : h + } + if ("!" === s && t.match(/\[[^\]]*\] ?(?:\(|\[)/, !1)) return i.imageMarker = !0, i.image = !0, n.highlightFormatting && (i.formatting = "image"), T(i); + if ("[" === s && i.imageMarker && t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/, !1)) return i.imageMarker = !1, i.imageAltText = !0, n.highlightFormatting && (i.formatting = "image"), T(i); + if ("]" === s && i.imageAltText) { + n.highlightFormatting && (i.formatting = "image"); + var m = T(i); + return i.imageAltText = !1, i.image = !1, i.inline = i.f = A, m + } + if ("[" === s && !i.image) return i.linkText && t.match(/^.*?\]/) || (i.linkText = !0, n.highlightFormatting && (i.formatting = "link")), T(i); + if ("]" === s && i.linkText) { + n.highlightFormatting && (i.formatting = "link"); + var m = T(i); + return i.linkText = !1, i.inline = i.f = t.match(/\(.*?\)| ?\[.*?\]/, !1) ? A : I, m + } + if ("<" === s && t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, !1)) return i.f = i.inline = N, n.highlightFormatting && (i.formatting = "link"), (m = T(i)) ? m += " " : m = "", m + o.linkInline; + if ("<" === s && t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, !1)) return i.f = i.inline = N, n.highlightFormatting && (i.formatting = "link"), (m = T(i)) ? m += " " : m = "", m + o.linkEmail; + if (n.xml && "<" === s && t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i, !1)) { + var b = t.string.indexOf(">", t.pos); + if (-1 != b) { + var v = t.string.substring(t.start, b); + /markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v) && (i.md_inside = !0) + } + return t.backUp(1), i.htmlState = e.startState(r), y(t, i, w) + } + if (n.xml && "<" === s && t.match(/^\/\w*?>/)) return i.md_inside = !1, "tag"; + if ("*" === s || "_" === s) { + for (var k = 1, x = 1 == t.pos ? " " : t.string.charAt(t.pos - 2); k < 3 && t.eat(s);) k++; + var _ = t.peek() || " ", + E = !/\s/.test(_) && (!g.test(_) || /\s/.test(x) || g.test(x)), + S = !/\s/.test(x) && (!g.test(x) || /\s/.test(_) || g.test(_)), + O = null, + C = null; + if (k % 2 && (i.em || !E || "*" !== s && S && !g.test(x) ? i.em != s || !S || "*" !== s && E && !g.test(_) || (O = !1) : O = !0), k > 1 && (i.strong || !E || "*" !== s && S && !g.test(x) ? i.strong != s || !S || "*" !== s && E && !g.test(_) || (C = !1) : C = !0), null != C || null != O) return n.highlightFormatting && (i.formatting = null == O ? "strong" : null == C ? "em" : "strong em"), !0 === O && (i.em = s), !0 === C && (i.strong = s), f = T(i), !1 === O && (i.em = !1), !1 === C && (i.strong = !1), f + } else if (" " === s && (t.eat("*") || t.eat("_"))) { + if (" " === t.peek()) return T(i); + t.backUp(1) + } + if (n.strikethrough) + if ("~" === s && t.eatWhile(s)) { + if (i.strikethrough) return n.highlightFormatting && (i.formatting = "strikethrough"), f = T(i), i.strikethrough = !1, f; + if (t.match(/^[^\s]/, !1)) return i.strikethrough = !0, n.highlightFormatting && (i.formatting = "strikethrough"), T(i) + } else if (" " === s && t.match("~~", !0)) { + if (" " === t.peek()) return T(i); + t.backUp(2) + } + if (n.emoji && ":" === s && t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)) { + i.emoji = !0, n.highlightFormatting && (i.formatting = "emoji"); + var D = T(i); + return i.emoji = !1, D + } + return " " === s && (t.match(/^ +$/, !1) ? i.trailingSpace++ : i.trailingSpace && (i.trailingSpaceNewLine = !0)), T(i) + } + + function N(e, t) { + if (">" === e.next()) { + t.f = t.inline = I, n.highlightFormatting && (t.formatting = "link"); + var r = T(t); + return r ? r += " " : r = "", r + o.linkInline + } + return e.match(/^[^>]+/, !0), o.linkInline + } + + function A(e, t) { + if (e.eatSpace()) return null; + var r = e.next(); + return "(" === r || "[" === r ? (t.f = t.inline = C("(" === r ? ")" : "]"), n.highlightFormatting && (t.formatting = "link-string"), t.linkHref = !0, T(t)) : "error" + } + var O = { + ")": /^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/, + "]": /^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/ + }; + + function C(e) { + return function(t, r) { + if (t.next() === e) { + r.f = r.inline = I, n.highlightFormatting && (r.formatting = "link-string"); + var i = T(r); + return r.linkHref = !1, i + } + return t.match(O[e]), r.linkHref = !0, T(r) + } + } + + function D(e, t) { + return e.match(/^([^\]\\]|\\.)*\]:/, !1) ? (t.f = R, e.next(), n.highlightFormatting && (t.formatting = "link"), t.linkText = !0, T(t)) : v(e, t, I) + } + + function R(e, t) { + if (e.match("]:", !0)) { + t.f = t.inline = M, n.highlightFormatting && (t.formatting = "link"); + var r = T(t); + return t.linkText = !1, r + } + return e.match(/^([^\]\\]|\\.)+/, !0), o.linkText + } + + function M(e, t) { + return e.eatSpace() ? null : (e.match(/^[^\s]+/, !0), void 0 === e.peek() ? t.linkTitle = !0 : e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/, !0), t.f = t.inline = I, o.linkHref + " url") + } + var L = { + startState: function() { + return { + f: _, + prevLine: { + stream: null + }, + thisLine: { + stream: null + }, + block: _, + htmlState: null, + indentation: 0, + inline: I, + text: S, + formatting: !1, + linkText: !1, + linkHref: !1, + linkTitle: !1, + code: 0, + em: !1, + strong: !1, + header: 0, + setext: 0, + hr: !1, + taskList: !1, + list: !1, + listStack: [], + quote: 0, + trailingSpace: 0, + trailingSpaceNewLine: !1, + strikethrough: !1, + emoji: !1, + fencedEndRE: null + } + }, + copyState: function(t) { + return { + f: t.f, + prevLine: t.prevLine, + thisLine: t.thisLine, + block: t.block, + htmlState: t.htmlState && e.copyState(r, t.htmlState), + indentation: t.indentation, + localMode: t.localMode, + localState: t.localMode ? e.copyState(t.localMode, t.localState) : null, + inline: t.inline, + text: t.text, + formatting: !1, + linkText: t.linkText, + linkTitle: t.linkTitle, + linkHref: t.linkHref, + code: t.code, + em: t.em, + strong: t.strong, + strikethrough: t.strikethrough, + emoji: t.emoji, + header: t.header, + setext: t.setext, + hr: t.hr, + taskList: t.taskList, + list: t.list, + listStack: t.listStack.slice(0), + quote: t.quote, + indentedCode: t.indentedCode, + trailingSpace: t.trailingSpace, + trailingSpaceNewLine: t.trailingSpaceNewLine, + md_inside: t.md_inside, + fencedEndRE: t.fencedEndRE + } + }, + token: function(e, t) { + if (t.formatting = !1, e != t.thisLine.stream) { + if (t.header = 0, t.hr = !1, e.match(/^\s*$/, !0)) return x(t), null; + if (t.prevLine = t.thisLine, t.thisLine = { + stream: e + }, t.taskList = !1, t.trailingSpace = 0, t.trailingSpaceNewLine = !1, !t.localState && (t.f = t.block, t.f != w)) { + var n = e.match(/^\s*/, !0)[0].replace(/\t/g, b).length; + if (t.indentation = n, t.indentationDiff = null, n > 0) return null + } + } + return t.f(e, t) + }, + innerMode: function(e) { + return e.block == w ? { + state: e.htmlState, + mode: r + } : e.localState ? { + state: e.localState, + mode: e.localMode + } : { + state: e, + mode: L + } + }, + indent: function(t, n, i) { + return t.block == w && r.indent ? r.indent(t.htmlState, n, i) : t.localState && t.localMode.indent ? t.localMode.indent(t.localState, n, i) : e.Pass + }, + blankLine: x, + getType: T, + blockCommentStart: "\x3c!--", + blockCommentEnd: "--\x3e", + closeBrackets: "()[]{}''\"\"``", + fold: "markdown" + }; + return L + }), "xml"), e.defineMIME("text/markdown", "markdown"), e.defineMIME("text/x-markdown", "markdown") + }(n(4631), n(29589), n(52539)) + }, + 93672: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("mathematica", (function(e, t) { + var n = "[a-zA-Z\\$][a-zA-Z0-9\\$]*", + r = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)", + i = "(?:`(?:`?" + r + ")?)", + a = new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)" + i + "?(?:\\*\\^[+-]?\\d+)?))"), + o = new RegExp("(?:" + r + i + "?(?:\\*\\^[+-]?\\d+)?)"), + s = new RegExp("(?:`?)(?:" + n + ")(?:`(?:" + n + "))*(?:`?)"); + + function l(e, t) { + var n; + return '"' === (n = e.next()) ? (t.tokenize = c, t.tokenize(e, t)) : "(" === n && e.eat("*") ? (t.commentLevel++, t.tokenize = u, t.tokenize(e, t)) : (e.backUp(1), e.match(a, !0, !1) || e.match(o, !0, !1) ? "number" : e.match(/(?:In|Out)\[[0-9]*\]/, !0, !1) ? "atom" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/, !0, !1) ? "meta" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, !0, !1) ? "string-2" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, !0, !1) || e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) ? "variable-2" : e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, !0, !1) ? "variable-3" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, !0, !1) ? "variable-2" : e.match(s, !0, !1) ? "keyword" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error")) + } + + function c(e, t) { + for (var n, r = !1, i = !1; null != (n = e.next());) { + if ('"' === n && !i) { + r = !0; + break + } + i = !i && "\\" === n + } + return r && !i && (t.tokenize = l), "string" + } + + function u(e, t) { + for (var n, r; t.commentLevel > 0 && null != (r = e.next());) "(" === n && "*" === r && t.commentLevel++, "*" === n && ")" === r && t.commentLevel--, n = r; + return t.commentLevel <= 0 && (t.tokenize = l), "comment" + } + return { + startState: function() { + return { + tokenize: l, + commentLevel: 0 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + blockCommentStart: "(*", + blockCommentEnd: "*)" + } + })), e.defineMIME("text/x-mathematica", { + name: "mathematica" + }) + }(n(4631)) + }, + 94377: function(e, t, n) { + ! function(e) { + "use strict"; + var t = ["From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID", "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To", "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received"], + n = ["Date", "Subject", "Comments", "Keywords", "Resent-Date"]; + e.registerHelper("hintWords", "mbox", t.concat(n)); + var r = /^[ \t]/, + i = /^From /, + a = new RegExp("^(" + t.join("|") + "): "), + o = new RegExp("^(" + n.join("|") + "): "), + s = /^[^:]+:/, + l = /^[^ ]+@[^ ]+/, + c = /^.*?(?=[^ ]+?@[^ ]+)/, + u = /^<.*?>/, + d = /^.*?(?=<.*>)/; + + function p(e) { + return "Subject" === e ? "header" : "string" + } + + function f(e, t) { + if (e.sol()) { + if (t.inSeparator = !1, t.inHeader && e.match(r)) return null; + if (t.inHeader = !1, t.header = null, e.match(i)) return t.inHeaders = !0, t.inSeparator = !0, "atom"; + var n, f = !1; + return (n = e.match(o)) || (f = !0) && (n = e.match(a)) ? (t.inHeaders = !0, t.inHeader = !0, t.emailPermitted = f, t.header = n[1], "atom") : t.inHeaders && (n = e.match(s)) ? (t.inHeader = !0, t.emailPermitted = !0, t.header = n[1], "atom") : (t.inHeaders = !1, e.skipToEnd(), null) + } + if (t.inSeparator) return e.match(l) ? "link" : (e.match(c) || e.skipToEnd(), "atom"); + if (t.inHeader) { + var m = p(t.header); + if (t.emailPermitted) { + if (e.match(u)) return m + " link"; + if (e.match(d)) return m + } + return e.skipToEnd(), m + } + return e.skipToEnd(), null + } + e.defineMode("mbox", (function() { + return { + startState: function() { + return { + inSeparator: !1, + inHeader: !1, + emailPermitted: !1, + header: null, + inHeaders: !1 + } + }, + token: f, + blankLine: function(e) { + e.inHeaders = e.inSeparator = e.inHeader = !1 + } + } + })), e.defineMIME("application/mbox", "mbox") + }(n(4631)) + }, + 52539: function(e, t, n) { + ! function(e) { + "use strict"; + e.modeInfo = [{ + name: "APL", + mime: "text/apl", + mode: "apl", + ext: ["dyalog", "apl"] + }, { + name: "PGP", + mimes: ["application/pgp", "application/pgp-encrypted", "application/pgp-keys", "application/pgp-signature"], + mode: "asciiarmor", + ext: ["asc", "pgp", "sig"] + }, { + name: "ASN.1", + mime: "text/x-ttcn-asn", + mode: "asn.1", + ext: ["asn", "asn1"] + }, { + name: "Asterisk", + mime: "text/x-asterisk", + mode: "asterisk", + file: /^extensions\.conf$/i + }, { + name: "Brainfuck", + mime: "text/x-brainfuck", + mode: "brainfuck", + ext: ["b", "bf"] + }, { + name: "C", + mime: "text/x-csrc", + mode: "clike", + ext: ["c", "h", "ino"] + }, { + name: "C++", + mime: "text/x-c++src", + mode: "clike", + ext: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"], + alias: ["cpp"] + }, { + name: "Cobol", + mime: "text/x-cobol", + mode: "cobol", + ext: ["cob", "cpy", "cbl"] + }, { + name: "C#", + mime: "text/x-csharp", + mode: "clike", + ext: ["cs"], + alias: ["csharp", "cs"] + }, { + name: "Clojure", + mime: "text/x-clojure", + mode: "clojure", + ext: ["clj", "cljc", "cljx"] + }, { + name: "ClojureScript", + mime: "text/x-clojurescript", + mode: "clojure", + ext: ["cljs"] + }, { + name: "Closure Stylesheets (GSS)", + mime: "text/x-gss", + mode: "css", + ext: ["gss"] + }, { + name: "CMake", + mime: "text/x-cmake", + mode: "cmake", + ext: ["cmake", "cmake.in"], + file: /^CMakeLists\.txt$/ + }, { + name: "CoffeeScript", + mimes: ["application/vnd.coffeescript", "text/coffeescript", "text/x-coffeescript"], + mode: "coffeescript", + ext: ["coffee"], + alias: ["coffee", "coffee-script"] + }, { + name: "Common Lisp", + mime: "text/x-common-lisp", + mode: "commonlisp", + ext: ["cl", "lisp", "el"], + alias: ["lisp"] + }, { + name: "Cypher", + mime: "application/x-cypher-query", + mode: "cypher", + ext: ["cyp", "cypher"] + }, { + name: "Cython", + mime: "text/x-cython", + mode: "python", + ext: ["pyx", "pxd", "pxi"] + }, { + name: "Crystal", + mime: "text/x-crystal", + mode: "crystal", + ext: ["cr"] + }, { + name: "CSS", + mime: "text/css", + mode: "css", + ext: ["css"] + }, { + name: "CQL", + mime: "text/x-cassandra", + mode: "sql", + ext: ["cql"] + }, { + name: "D", + mime: "text/x-d", + mode: "d", + ext: ["d"] + }, { + name: "Dart", + mimes: ["application/dart", "text/x-dart"], + mode: "dart", + ext: ["dart"] + }, { + name: "diff", + mime: "text/x-diff", + mode: "diff", + ext: ["diff", "patch"] + }, { + name: "Django", + mime: "text/x-django", + mode: "django" + }, { + name: "Dockerfile", + mime: "text/x-dockerfile", + mode: "dockerfile", + file: /^Dockerfile$/ + }, { + name: "DTD", + mime: "application/xml-dtd", + mode: "dtd", + ext: ["dtd"] + }, { + name: "Dylan", + mime: "text/x-dylan", + mode: "dylan", + ext: ["dylan", "dyl", "intr"] + }, { + name: "EBNF", + mime: "text/x-ebnf", + mode: "ebnf" + }, { + name: "ECL", + mime: "text/x-ecl", + mode: "ecl", + ext: ["ecl"] + }, { + name: "edn", + mime: "application/edn", + mode: "clojure", + ext: ["edn"] + }, { + name: "Eiffel", + mime: "text/x-eiffel", + mode: "eiffel", + ext: ["e"] + }, { + name: "Elm", + mime: "text/x-elm", + mode: "elm", + ext: ["elm"] + }, { + name: "Embedded JavaScript", + mime: "application/x-ejs", + mode: "htmlembedded", + ext: ["ejs"] + }, { + name: "Embedded Ruby", + mime: "application/x-erb", + mode: "htmlembedded", + ext: ["erb"] + }, { + name: "Erlang", + mime: "text/x-erlang", + mode: "erlang", + ext: ["erl"] + }, { + name: "Esper", + mime: "text/x-esper", + mode: "sql" + }, { + name: "Factor", + mime: "text/x-factor", + mode: "factor", + ext: ["factor"] + }, { + name: "FCL", + mime: "text/x-fcl", + mode: "fcl" + }, { + name: "Forth", + mime: "text/x-forth", + mode: "forth", + ext: ["forth", "fth", "4th"] + }, { + name: "Fortran", + mime: "text/x-fortran", + mode: "fortran", + ext: ["f", "for", "f77", "f90", "f95"] + }, { + name: "F#", + mime: "text/x-fsharp", + mode: "mllike", + ext: ["fs"], + alias: ["fsharp"] + }, { + name: "Gas", + mime: "text/x-gas", + mode: "gas", + ext: ["s"] + }, { + name: "Gherkin", + mime: "text/x-feature", + mode: "gherkin", + ext: ["feature"] + }, { + name: "GitHub Flavored Markdown", + mime: "text/x-gfm", + mode: "gfm", + file: /^(readme|contributing|history)\.md$/i + }, { + name: "Go", + mime: "text/x-go", + mode: "go", + ext: ["go"] + }, { + name: "Groovy", + mime: "text/x-groovy", + mode: "groovy", + ext: ["groovy", "gradle"], + file: /^Jenkinsfile$/ + }, { + name: "HAML", + mime: "text/x-haml", + mode: "haml", + ext: ["haml"] + }, { + name: "Haskell", + mime: "text/x-haskell", + mode: "haskell", + ext: ["hs"] + }, { + name: "Haskell (Literate)", + mime: "text/x-literate-haskell", + mode: "haskell-literate", + ext: ["lhs"] + }, { + name: "Haxe", + mime: "text/x-haxe", + mode: "haxe", + ext: ["hx"] + }, { + name: "HXML", + mime: "text/x-hxml", + mode: "haxe", + ext: ["hxml"] + }, { + name: "ASP.NET", + mime: "application/x-aspx", + mode: "htmlembedded", + ext: ["aspx"], + alias: ["asp", "aspx"] + }, { + name: "HTML", + mime: "text/html", + mode: "htmlmixed", + ext: ["html", "htm", "handlebars", "hbs"], + alias: ["xhtml"] + }, { + name: "HTTP", + mime: "message/http", + mode: "http" + }, { + name: "IDL", + mime: "text/x-idl", + mode: "idl", + ext: ["pro"] + }, { + name: "Pug", + mime: "text/x-pug", + mode: "pug", + ext: ["jade", "pug"], + alias: ["jade"] + }, { + name: "Java", + mime: "text/x-java", + mode: "clike", + ext: ["java"] + }, { + name: "Java Server Pages", + mime: "application/x-jsp", + mode: "htmlembedded", + ext: ["jsp"], + alias: ["jsp"] + }, { + name: "JavaScript", + mimes: ["text/javascript", "text/ecmascript", "application/javascript", "application/x-javascript", "application/ecmascript"], + mode: "javascript", + ext: ["js"], + alias: ["ecmascript", "js", "node"] + }, { + name: "JSON", + mimes: ["application/json", "application/x-json"], + mode: "javascript", + ext: ["json", "map"], + alias: ["json5"] + }, { + name: "JSON-LD", + mime: "application/ld+json", + mode: "javascript", + ext: ["jsonld"], + alias: ["jsonld"] + }, { + name: "JSX", + mime: "text/jsx", + mode: "jsx", + ext: ["jsx"] + }, { + name: "Jinja2", + mime: "text/jinja2", + mode: "jinja2", + ext: ["j2", "jinja", "jinja2"] + }, { + name: "Julia", + mime: "text/x-julia", + mode: "julia", + ext: ["jl"], + alias: ["jl"] + }, { + name: "Kotlin", + mime: "text/x-kotlin", + mode: "clike", + ext: ["kt"] + }, { + name: "LESS", + mime: "text/x-less", + mode: "css", + ext: ["less"] + }, { + name: "LiveScript", + mime: "text/x-livescript", + mode: "livescript", + ext: ["ls"], + alias: ["ls"] + }, { + name: "Lua", + mime: "text/x-lua", + mode: "lua", + ext: ["lua"] + }, { + name: "Markdown", + mime: "text/x-markdown", + mode: "markdown", + ext: ["markdown", "md", "mkd"] + }, { + name: "mIRC", + mime: "text/mirc", + mode: "mirc" + }, { + name: "MariaDB SQL", + mime: "text/x-mariadb", + mode: "sql" + }, { + name: "Mathematica", + mime: "text/x-mathematica", + mode: "mathematica", + ext: ["m", "nb", "wl", "wls"] + }, { + name: "Modelica", + mime: "text/x-modelica", + mode: "modelica", + ext: ["mo"] + }, { + name: "MUMPS", + mime: "text/x-mumps", + mode: "mumps", + ext: ["mps"] + }, { + name: "MS SQL", + mime: "text/x-mssql", + mode: "sql" + }, { + name: "mbox", + mime: "application/mbox", + mode: "mbox", + ext: ["mbox"] + }, { + name: "MySQL", + mime: "text/x-mysql", + mode: "sql" + }, { + name: "Nginx", + mime: "text/x-nginx-conf", + mode: "nginx", + file: /nginx.*\.conf$/i + }, { + name: "NSIS", + mime: "text/x-nsis", + mode: "nsis", + ext: ["nsh", "nsi"] + }, { + name: "NTriples", + mimes: ["application/n-triples", "application/n-quads", "text/n-triples"], + mode: "ntriples", + ext: ["nt", "nq"] + }, { + name: "Objective-C", + mime: "text/x-objectivec", + mode: "clike", + ext: ["m"], + alias: ["objective-c", "objc"] + }, { + name: "Objective-C++", + mime: "text/x-objectivec++", + mode: "clike", + ext: ["mm"], + alias: ["objective-c++", "objc++"] + }, { + name: "OCaml", + mime: "text/x-ocaml", + mode: "mllike", + ext: ["ml", "mli", "mll", "mly"] + }, { + name: "Octave", + mime: "text/x-octave", + mode: "octave", + ext: ["m"] + }, { + name: "Oz", + mime: "text/x-oz", + mode: "oz", + ext: ["oz"] + }, { + name: "Pascal", + mime: "text/x-pascal", + mode: "pascal", + ext: ["p", "pas"] + }, { + name: "PEG.js", + mime: "null", + mode: "pegjs", + ext: ["jsonld"] + }, { + name: "Perl", + mime: "text/x-perl", + mode: "perl", + ext: ["pl", "pm"] + }, { + name: "PHP", + mimes: ["text/x-php", "application/x-httpd-php", "application/x-httpd-php-open"], + mode: "php", + ext: ["php", "php3", "php4", "php5", "php7", "phtml"] + }, { + name: "Pig", + mime: "text/x-pig", + mode: "pig", + ext: ["pig"] + }, { + name: "Plain Text", + mime: "text/plain", + mode: "null", + ext: ["txt", "text", "conf", "def", "list", "log"] + }, { + name: "PLSQL", + mime: "text/x-plsql", + mode: "sql", + ext: ["pls"] + }, { + name: "PostgreSQL", + mime: "text/x-pgsql", + mode: "sql" + }, { + name: "PowerShell", + mime: "application/x-powershell", + mode: "powershell", + ext: ["ps1", "psd1", "psm1"] + }, { + name: "Properties files", + mime: "text/x-properties", + mode: "properties", + ext: ["properties", "ini", "in"], + alias: ["ini", "properties"] + }, { + name: "ProtoBuf", + mime: "text/x-protobuf", + mode: "protobuf", + ext: ["proto"] + }, { + name: "Python", + mime: "text/x-python", + mode: "python", + ext: ["BUILD", "bzl", "py", "pyw"], + file: /^(BUCK|BUILD)$/ + }, { + name: "Puppet", + mime: "text/x-puppet", + mode: "puppet", + ext: ["pp"] + }, { + name: "Q", + mime: "text/x-q", + mode: "q", + ext: ["q"] + }, { + name: "R", + mime: "text/x-rsrc", + mode: "r", + ext: ["r", "R"], + alias: ["rscript"] + }, { + name: "reStructuredText", + mime: "text/x-rst", + mode: "rst", + ext: ["rst"], + alias: ["rst"] + }, { + name: "RPM Changes", + mime: "text/x-rpm-changes", + mode: "rpm" + }, { + name: "RPM Spec", + mime: "text/x-rpm-spec", + mode: "rpm", + ext: ["spec"] + }, { + name: "Ruby", + mime: "text/x-ruby", + mode: "ruby", + ext: ["rb"], + alias: ["jruby", "macruby", "rake", "rb", "rbx"] + }, { + name: "Rust", + mime: "text/x-rustsrc", + mode: "rust", + ext: ["rs"] + }, { + name: "SAS", + mime: "text/x-sas", + mode: "sas", + ext: ["sas"] + }, { + name: "Sass", + mime: "text/x-sass", + mode: "sass", + ext: ["sass"] + }, { + name: "Scala", + mime: "text/x-scala", + mode: "clike", + ext: ["scala"] + }, { + name: "Scheme", + mime: "text/x-scheme", + mode: "scheme", + ext: ["scm", "ss"] + }, { + name: "SCSS", + mime: "text/x-scss", + mode: "css", + ext: ["scss"] + }, { + name: "Shell", + mimes: ["text/x-sh", "application/x-sh"], + mode: "shell", + ext: ["sh", "ksh", "bash"], + alias: ["bash", "sh", "zsh"], + file: /^PKGBUILD$/ + }, { + name: "Sieve", + mime: "application/sieve", + mode: "sieve", + ext: ["siv", "sieve"] + }, { + name: "Slim", + mimes: ["text/x-slim", "application/x-slim"], + mode: "slim", + ext: ["slim"] + }, { + name: "Smalltalk", + mime: "text/x-stsrc", + mode: "smalltalk", + ext: ["st"] + }, { + name: "Smarty", + mime: "text/x-smarty", + mode: "smarty", + ext: ["tpl"] + }, { + name: "Solr", + mime: "text/x-solr", + mode: "solr" + }, { + name: "SML", + mime: "text/x-sml", + mode: "mllike", + ext: ["sml", "sig", "fun", "smackspec"] + }, { + name: "Soy", + mime: "text/x-soy", + mode: "soy", + ext: ["soy"], + alias: ["closure template"] + }, { + name: "SPARQL", + mime: "application/sparql-query", + mode: "sparql", + ext: ["rq", "sparql"], + alias: ["sparul"] + }, { + name: "Spreadsheet", + mime: "text/x-spreadsheet", + mode: "spreadsheet", + alias: ["excel", "formula"] + }, { + name: "SQL", + mime: "text/x-sql", + mode: "sql", + ext: ["sql"] + }, { + name: "SQLite", + mime: "text/x-sqlite", + mode: "sql" + }, { + name: "Squirrel", + mime: "text/x-squirrel", + mode: "clike", + ext: ["nut"] + }, { + name: "Stylus", + mime: "text/x-styl", + mode: "stylus", + ext: ["styl"] + }, { + name: "Swift", + mime: "text/x-swift", + mode: "swift", + ext: ["swift"] + }, { + name: "sTeX", + mime: "text/x-stex", + mode: "stex" + }, { + name: "LaTeX", + mime: "text/x-latex", + mode: "stex", + ext: ["text", "ltx", "tex"], + alias: ["tex"] + }, { + name: "SystemVerilog", + mime: "text/x-systemverilog", + mode: "verilog", + ext: ["v", "sv", "svh"] + }, { + name: "Tcl", + mime: "text/x-tcl", + mode: "tcl", + ext: ["tcl"] + }, { + name: "Textile", + mime: "text/x-textile", + mode: "textile", + ext: ["textile"] + }, { + name: "TiddlyWiki", + mime: "text/x-tiddlywiki", + mode: "tiddlywiki" + }, { + name: "Tiki wiki", + mime: "text/tiki", + mode: "tiki" + }, { + name: "TOML", + mime: "text/x-toml", + mode: "toml", + ext: ["toml"] + }, { + name: "Tornado", + mime: "text/x-tornado", + mode: "tornado" + }, { + name: "troff", + mime: "text/troff", + mode: "troff", + ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"] + }, { + name: "TTCN", + mime: "text/x-ttcn", + mode: "ttcn", + ext: ["ttcn", "ttcn3", "ttcnpp"] + }, { + name: "TTCN_CFG", + mime: "text/x-ttcn-cfg", + mode: "ttcn-cfg", + ext: ["cfg"] + }, { + name: "Turtle", + mime: "text/turtle", + mode: "turtle", + ext: ["ttl"] + }, { + name: "TypeScript", + mime: "application/typescript", + mode: "javascript", + ext: ["ts"], + alias: ["ts"] + }, { + name: "TypeScript-JSX", + mime: "text/typescript-jsx", + mode: "jsx", + ext: ["tsx"], + alias: ["tsx"] + }, { + name: "Twig", + mime: "text/x-twig", + mode: "twig" + }, { + name: "Web IDL", + mime: "text/x-webidl", + mode: "webidl", + ext: ["webidl"] + }, { + name: "VB.NET", + mime: "text/x-vb", + mode: "vb", + ext: ["vb"] + }, { + name: "VBScript", + mime: "text/vbscript", + mode: "vbscript", + ext: ["vbs"] + }, { + name: "Velocity", + mime: "text/velocity", + mode: "velocity", + ext: ["vtl"] + }, { + name: "Verilog", + mime: "text/x-verilog", + mode: "verilog", + ext: ["v"] + }, { + name: "VHDL", + mime: "text/x-vhdl", + mode: "vhdl", + ext: ["vhd", "vhdl"] + }, { + name: "Vue.js Component", + mimes: ["script/x-vue", "text/x-vue"], + mode: "vue", + ext: ["vue"] + }, { + name: "XML", + mimes: ["application/xml", "text/xml"], + mode: "xml", + ext: ["xml", "xsl", "xsd", "svg"], + alias: ["rss", "wsdl", "xsd"] + }, { + name: "XQuery", + mime: "application/xquery", + mode: "xquery", + ext: ["xy", "xquery"] + }, { + name: "Yacas", + mime: "text/x-yacas", + mode: "yacas", + ext: ["ys"] + }, { + name: "YAML", + mimes: ["text/x-yaml", "text/yaml"], + mode: "yaml", + ext: ["yaml", "yml"], + alias: ["yml"] + }, { + name: "Z80", + mime: "text/x-z80", + mode: "z80", + ext: ["z80"] + }, { + name: "mscgen", + mime: "text/x-mscgen", + mode: "mscgen", + ext: ["mscgen", "mscin", "msc"] + }, { + name: "xu", + mime: "text/x-xu", + mode: "mscgen", + ext: ["xu"] + }, { + name: "msgenny", + mime: "text/x-msgenny", + mode: "mscgen", + ext: ["msgenny"] + }, { + name: "WebAssembly", + mime: "text/webassembly", + mode: "wast", + ext: ["wat", "wast"] + }]; + for (var t = 0; t < e.modeInfo.length; t++) { + var n = e.modeInfo[t]; + n.mimes && (n.mime = n.mimes[0]) + } + e.findModeByMIME = function(t) { + t = t.toLowerCase(); + for (var n = 0; n < e.modeInfo.length; n++) { + var r = e.modeInfo[n]; + if (r.mime == t) return r; + if (r.mimes) + for (var i = 0; i < r.mimes.length; i++) + if (r.mimes[i] == t) return r + } + return /\+xml$/.test(t) ? e.findModeByMIME("application/xml") : /\+json$/.test(t) ? e.findModeByMIME("application/json") : void 0 + }, e.findModeByExtension = function(t) { + t = t.toLowerCase(); + for (var n = 0; n < e.modeInfo.length; n++) { + var r = e.modeInfo[n]; + if (r.ext) + for (var i = 0; i < r.ext.length; i++) + if (r.ext[i] == t) return r + } + }, e.findModeByFileName = function(t) { + for (var n = 0; n < e.modeInfo.length; n++) { + var r = e.modeInfo[n]; + if (r.file && r.file.test(t)) return r + } + var i = t.lastIndexOf("."), + a = i > -1 && t.substring(i + 1, t.length); + if (a) return e.findModeByExtension(a) + }, e.findModeByName = function(t) { + t = t.toLowerCase(); + for (var n = 0; n < e.modeInfo.length; n++) { + var r = e.modeInfo[n]; + if (r.name.toLowerCase() == t) return r; + if (r.alias) + for (var i = 0; i < r.alias.length; i++) + if (r.alias[i].toLowerCase() == t) return r + } + } + }(n(4631)) + }, + 94268: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMIME("text/mirc", "mirc"), e.defineMode("mirc", (function() { + function e(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var t = e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"), + n = e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"), + r = e("if elseif else and not or eq ne in ni for foreach while switch"), + i = /[+\-*&%=<>!?^\/\|]/; + + function a(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function o(e, o) { + var c = o.beforeParams; + o.beforeParams = !1; + var u = e.next(); + if (/[\[\]{}\(\),\.]/.test(u)) return "(" == u && c ? o.inParams = !0 : ")" == u && (o.inParams = !1), null; + if (/\d/.test(u)) return e.eatWhile(/[\w\.]/), "number"; + if ("\\" == u) return e.eat("\\"), e.eat(/./), "number"; + if ("/" == u && e.eat("*")) return a(e, o, s); + if (";" == u && e.match(/ *\( *\(/)) return a(e, o, l); + if (";" != u || o.inParams) { + if ('"' == u) return e.eat(/"/), "keyword"; + if ("$" == u) return e.eatWhile(/[$_a-z0-9A-Z\.:]/), t && t.propertyIsEnumerable(e.current().toLowerCase()) ? "keyword" : (o.beforeParams = !0, "builtin"); + if ("%" == u) return e.eatWhile(/[^,\s()]/), o.beforeParams = !0, "string"; + if (i.test(u)) return e.eatWhile(i), "operator"; + e.eatWhile(/[\w\$_{}]/); + var d = e.current().toLowerCase(); + return n && n.propertyIsEnumerable(d) ? "keyword" : r && r.propertyIsEnumerable(d) ? (o.beforeParams = !0, "keyword") : null + } + return e.skipToEnd(), "comment" + } + + function s(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = o; + break + } + r = "*" == n + } + return "comment" + } + + function l(e, t) { + for (var n, r = 0; n = e.next();) { + if (";" == n && 2 == r) { + t.tokenize = o; + break + } + ")" == n ? r++ : " " != n && (r = 0) + } + return "meta" + } + return { + startState: function() { + return { + tokenize: o, + beforeParams: !1, + inParams: !1 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + } + } + })) + }(n(4631)) + }, + 52587: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("mllike", (function(t, n) { + var r = { + as: "keyword", + do: "keyword", + else: "keyword", + end: "keyword", + exception: "keyword", + fun: "keyword", + functor: "keyword", + if: "keyword", + in: "keyword", + include: "keyword", + let: "keyword", + of: "keyword", + open: "keyword", + rec: "keyword", + struct: "keyword", + then: "keyword", + type: "keyword", + val: "keyword", + while: "keyword", + with: "keyword" + }, + i = n.extraWords || {}; + for (var a in i) i.hasOwnProperty(a) && (r[a] = n.extraWords[a]); + var o = []; + for (var s in r) o.push(s); + + function l(e, t) { + var i = e.next(); + if ('"' === i) return t.tokenize = c, t.tokenize(e, t); + if ("{" === i && e.eat("|")) return t.longString = !0, t.tokenize = d, t.tokenize(e, t); + if ("(" === i && e.match(/^\*(?!\))/)) return t.commentLevel++, t.tokenize = u, t.tokenize(e, t); + if ("~" === i || "?" === i) return e.eatWhile(/\w/), "variable-2"; + if ("`" === i) return e.eatWhile(/\w/), "quote"; + if ("/" === i && n.slashComments && e.eat("/")) return e.skipToEnd(), "comment"; + if (/\d/.test(i)) return "0" === i && e.eat(/[bB]/) && e.eatWhile(/[01]/), "0" === i && e.eat(/[xX]/) && e.eatWhile(/[0-9a-fA-F]/), "0" === i && e.eat(/[oO]/) ? e.eatWhile(/[0-7]/) : (e.eatWhile(/[\d_]/), e.eat(".") && e.eatWhile(/[\d]/), e.eat(/[eE]/) && e.eatWhile(/[\d\-+]/)), "number"; + if (/[+\-*&%=<>!?|@\.~:]/.test(i)) return "operator"; + if (/[\w\xa1-\uffff]/.test(i)) { + e.eatWhile(/[\w\xa1-\uffff]/); + var a = e.current(); + return r.hasOwnProperty(a) ? r[a] : "variable" + } + return null + } + + function c(e, t) { + for (var n, r = !1, i = !1; null != (n = e.next());) { + if ('"' === n && !i) { + r = !0; + break + } + i = !i && "\\" === n + } + return r && !i && (t.tokenize = l), "string" + } + + function u(e, t) { + for (var n, r; t.commentLevel > 0 && null != (r = e.next());) "(" === n && "*" === r && t.commentLevel++, "*" === n && ")" === r && t.commentLevel--, n = r; + return t.commentLevel <= 0 && (t.tokenize = l), "comment" + } + + function d(e, t) { + for (var n, r; t.longString && null != (r = e.next());) "|" === n && "}" === r && (t.longString = !1), n = r; + return t.longString || (t.tokenize = l), "string" + } + return e.registerHelper("hintWords", "mllike", o), { + startState: function() { + return { + tokenize: l, + commentLevel: 0, + longString: !1 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + blockCommentStart: "(*", + blockCommentEnd: "*)", + lineComment: n.slashComments ? "//" : null + } + })), e.defineMIME("text/x-ocaml", { + name: "mllike", + extraWords: { + and: "keyword", + assert: "keyword", + begin: "keyword", + class: "keyword", + constraint: "keyword", + done: "keyword", + downto: "keyword", + external: "keyword", + function: "keyword", + initializer: "keyword", + lazy: "keyword", + match: "keyword", + method: "keyword", + module: "keyword", + mutable: "keyword", + new: "keyword", + nonrec: "keyword", + object: "keyword", + private: "keyword", + sig: "keyword", + to: "keyword", + try: "keyword", + value: "keyword", + virtual: "keyword", + when: "keyword", + raise: "builtin", + failwith: "builtin", + true: "builtin", + false: "builtin", + asr: "builtin", + land: "builtin", + lor: "builtin", + lsl: "builtin", + lsr: "builtin", + lxor: "builtin", + mod: "builtin", + or: "builtin", + raise_notrace: "builtin", + trace: "builtin", + exit: "builtin", + print_string: "builtin", + print_endline: "builtin", + int: "type", + float: "type", + bool: "type", + char: "type", + string: "type", + unit: "type", + List: "builtin" + } + }), e.defineMIME("text/x-fsharp", { + name: "mllike", + extraWords: { + abstract: "keyword", + assert: "keyword", + base: "keyword", + begin: "keyword", + class: "keyword", + default: "keyword", + delegate: "keyword", + "do!": "keyword", + done: "keyword", + downcast: "keyword", + downto: "keyword", + elif: "keyword", + extern: "keyword", + finally: "keyword", + for: "keyword", + function: "keyword", + global: "keyword", + inherit: "keyword", + inline: "keyword", + interface: "keyword", + internal: "keyword", + lazy: "keyword", + "let!": "keyword", + match: "keyword", + member: "keyword", + module: "keyword", + mutable: "keyword", + namespace: "keyword", + new: "keyword", + null: "keyword", + override: "keyword", + private: "keyword", + public: "keyword", + "return!": "keyword", + return: "keyword", + select: "keyword", + static: "keyword", + to: "keyword", + try: "keyword", + upcast: "keyword", + "use!": "keyword", + use: "keyword", + void: "keyword", + when: "keyword", + "yield!": "keyword", + yield: "keyword", + atomic: "keyword", + break: "keyword", + checked: "keyword", + component: "keyword", + const: "keyword", + constraint: "keyword", + constructor: "keyword", + continue: "keyword", + eager: "keyword", + event: "keyword", + external: "keyword", + fixed: "keyword", + method: "keyword", + mixin: "keyword", + object: "keyword", + parallel: "keyword", + process: "keyword", + protected: "keyword", + pure: "keyword", + sealed: "keyword", + tailcall: "keyword", + trait: "keyword", + virtual: "keyword", + volatile: "keyword", + List: "builtin", + Seq: "builtin", + Map: "builtin", + Set: "builtin", + Option: "builtin", + int: "builtin", + string: "builtin", + not: "builtin", + true: "builtin", + false: "builtin", + raise: "builtin", + failwith: "builtin" + }, + slashComments: !0 + }), e.defineMIME("text/x-sml", { + name: "mllike", + extraWords: { + abstype: "keyword", + and: "keyword", + andalso: "keyword", + case: "keyword", + datatype: "keyword", + fn: "keyword", + handle: "keyword", + infix: "keyword", + infixr: "keyword", + local: "keyword", + nonfix: "keyword", + op: "keyword", + orelse: "keyword", + raise: "keyword", + withtype: "keyword", + eqtype: "keyword", + sharing: "keyword", + sig: "keyword", + signature: "keyword", + structure: "keyword", + where: "keyword", + true: "keyword", + false: "keyword", + int: "builtin", + real: "builtin", + string: "builtin", + char: "builtin", + bool: "builtin" + }, + slashComments: !0 + }) + }(n(4631)) + }, + 24333: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + e.defineMode("modelica", (function(t, n) { + var r = t.indentUnit, + i = n.keywords || {}, + a = n.builtin || {}, + o = n.atoms || {}, + s = /[;=\(:\),{}.*<>+\-\/^\[\]]/, + l = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/, + c = /[0-9]/, + u = /[_a-zA-Z]/; + + function d(e, t) { + return e.skipToEnd(), t.tokenize = null, "comment" + } + + function p(e, t) { + for (var n, r = !1; n = e.next();) { + if (r && "/" == n) { + t.tokenize = null; + break + } + r = "*" == n + } + return "comment" + } + + function f(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if ('"' == n && !r) { + t.tokenize = null, t.sol = !1; + break + } + r = !r && "\\" == n + } + return "string" + } + + function m(e, t) { + for (e.eatWhile(c); e.eat(c) || e.eat(u);); + var n = e.current(); + return !t.sol || "package" != n && "model" != n && "when" != n && "connector" != n ? t.sol && "end" == n && t.level > 0 && t.level-- : t.level++, t.tokenize = null, t.sol = !1, i.propertyIsEnumerable(n) ? "keyword" : a.propertyIsEnumerable(n) ? "builtin" : o.propertyIsEnumerable(n) ? "atom" : "variable" + } + + function h(e, t) { + for (; e.eat(/[^']/);); + return t.tokenize = null, t.sol = !1, e.eat("'") ? "variable" : "error" + } + + function g(e, t) { + return e.eatWhile(c), e.eat(".") && e.eatWhile(c), (e.eat("e") || e.eat("E")) && (e.eat("-") || e.eat("+"), e.eatWhile(c)), t.tokenize = null, t.sol = !1, "number" + } + return { + startState: function() { + return { + tokenize: null, + level: 0, + sol: !0 + } + }, + token: function(e, t) { + if (null != t.tokenize) return t.tokenize(e, t); + if (e.sol() && (t.sol = !0), e.eatSpace()) return t.tokenize = null, null; + var n = e.next(); + if ("/" == n && e.eat("/")) t.tokenize = d; + else if ("/" == n && e.eat("*")) t.tokenize = p; + else { + if (l.test(n + e.peek())) return e.next(), t.tokenize = null, "operator"; + if (s.test(n)) return t.tokenize = null, "operator"; + if (u.test(n)) t.tokenize = m; + else if ("'" == n && e.peek() && "'" != e.peek()) t.tokenize = h; + else if ('"' == n) t.tokenize = f; + else { + if (!c.test(n)) return t.tokenize = null, "error"; + t.tokenize = g + } + } + return t.tokenize(e, t) + }, + indent: function(t, n) { + if (null != t.tokenize) return e.Pass; + var i = t.level; + return /(algorithm)/.test(n) && i--, /(equation)/.test(n) && i--, /(initial algorithm)/.test(n) && i--, /(initial equation)/.test(n) && i--, /(end)/.test(n) && i--, i > 0 ? r * i : 0 + }, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })); + var n = "abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh", + r = "Real Boolean Integer String"; + + function i(t, n) { + "string" == typeof t && (t = [t]); + var r = []; + + function i(e) { + if (e) + for (var t in e) e.hasOwnProperty(t) && r.push(t) + } + i(n.keywords), i(n.builtin), i(n.atoms), r.length && (n.helperType = t[0], e.registerHelper("hintWords", t[0], r)); + for (var a = 0; a < t.length; ++a) e.defineMIME(t[a], n) + } + i(["text/x-modelica"], { + name: "modelica", + keywords: t("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"), + builtin: t(n), + atoms: t(r) + }) + }(n(4631)) + }, + 68810: function(e, t, n) { + ! function(e) { + "use strict"; + var t = { + mscgen: { + keywords: ["msc"], + options: ["hscale", "width", "arcgradient", "wordwraparcs"], + constants: ["true", "false", "on", "off"], + attributes: ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"], + brackets: ["\\{", "\\}"], + arcsWords: ["note", "abox", "rbox", "box"], + arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + singlecomment: ["//", "#"], + operators: ["="] + }, + xu: { + keywords: ["msc", "xu"], + options: ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"], + constants: ["true", "false", "on", "off", "auto"], + attributes: ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip", "title", "deactivate", "activate", "activation"], + brackets: ["\\{", "\\}"], + arcsWords: ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], + arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + singlecomment: ["//", "#"], + operators: ["="] + }, + msgenny: { + keywords: null, + options: ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"], + constants: ["true", "false", "on", "off", "auto"], + attributes: null, + brackets: ["\\{", "\\}"], + arcsWords: ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], + arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + singlecomment: ["//", "#"], + operators: ["="] + } + }; + + function n(e) { + return new RegExp("^\\b(?:" + e.join("|") + ")\\b", "i") + } + + function r(e) { + return new RegExp("^(?:" + e.join("|") + ")", "i") + } + + function i() { + return { + inComment: !1, + inString: !1, + inAttributeList: !1, + inScript: !1 + } + } + + function a(e) { + return { + inComment: e.inComment, + inString: e.inString, + inAttributeList: e.inAttributeList, + inScript: e.inScript + } + } + + function o(e) { + return function(t, i) { + if (t.match(r(e.brackets), !0, !0)) return "bracket"; + if (!i.inComment) { + if (t.match(/\/\*[^\*\/]*/, !0, !0)) return i.inComment = !0, "comment"; + if (t.match(r(e.singlecomment), !0, !0)) return t.skipToEnd(), "comment" + } + if (i.inComment) return t.match(/[^\*\/]*\*\//, !0, !0) ? i.inComment = !1 : t.skipToEnd(), "comment"; + if (!i.inString && t.match(/\"(\\\"|[^\"])*/, !0, !0)) return i.inString = !0, "string"; + if (i.inString) return t.match(/[^\"]*\"/, !0, !0) ? i.inString = !1 : t.skipToEnd(), "string"; + if (e.keywords && t.match(n(e.keywords), !0, !0)) return "keyword"; + if (t.match(n(e.options), !0, !0)) return "keyword"; + if (t.match(n(e.arcsWords), !0, !0)) return "keyword"; + if (t.match(r(e.arcsOthers), !0, !0)) return "keyword"; + if (e.operators && t.match(r(e.operators), !0, !0)) return "operator"; + if (e.constants && t.match(r(e.constants), !0, !0)) return "variable"; + if (!e.inAttributeList && e.attributes && t.match("[", !0, !0)) return e.inAttributeList = !0, "bracket"; + if (e.inAttributeList) { + if (null !== e.attributes && t.match(n(e.attributes), !0, !0)) return "attribute"; + if (t.match("]", !0, !0)) return e.inAttributeList = !1, "bracket" + } + return t.next(), "base" + } + } + e.defineMode("mscgen", (function(e, n) { + return { + startState: i, + copyState: a, + token: o(t[n && n.language || "mscgen"]), + lineComment: "#", + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + })), e.defineMIME("text/x-mscgen", "mscgen"), e.defineMIME("text/x-xu", { + name: "mscgen", + language: "xu" + }), e.defineMIME("text/x-msgenny", { + name: "mscgen", + language: "msgenny" + }) + }(n(4631)) + }, + 12875: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("mumps", (function() { + function e(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b", "i") + } + var t = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"), + n = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"), + r = new RegExp("^[\\.,:]"), + i = new RegExp("[()]"), + a = new RegExp("^[%A-Za-z][A-Za-z0-9]*"), + o = ["break", "close", "do", "else", "for", "goto", "halt", "hang", "if", "job", "kill", "lock", "merge", "new", "open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"], + s = e(["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"]), + l = e(o); + + function c(e, o) { + e.sol() && (o.label = !0, o.commandMode = 0); + var c = e.peek(); + return " " == c || "\t" == c ? (o.label = !1, 0 == o.commandMode ? o.commandMode = 1 : (o.commandMode < 0 || 2 == o.commandMode) && (o.commandMode = 0)) : "." != c && o.commandMode > 0 && (o.commandMode = ":" == c ? -1 : 2), "(" !== c && "\t" !== c || (o.label = !1), ";" === c ? (e.skipToEnd(), "comment") : e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/) ? "number" : '"' == c ? e.skipTo('"') ? (e.next(), "string") : (e.skipToEnd(), "error") : e.match(n) || e.match(t) ? "operator" : e.match(r) ? null : i.test(c) ? (e.next(), "bracket") : o.commandMode > 0 && e.match(l) ? "variable-2" : e.match(s) ? "builtin" : e.match(a) ? "variable" : "$" === c || "^" === c ? (e.next(), "builtin") : "@" === c ? (e.next(), "string-2") : /[\w%]/.test(c) ? (e.eatWhile(/[\w%]/), "variable") : (e.next(), "error") + } + return { + startState: function() { + return { + label: !1, + commandMode: 0 + } + }, + token: function(e, t) { + var n = c(e, t); + return t.label ? "tag" : n + } + } + })), e.defineMIME("text/x-mumps", "mumps") + }(n(4631)) + }, + 10131: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("nginx", (function(e) { + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var n, r = t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"), + i = t("http mail events server types location upstream charset_map limit_except if geo map"), + a = t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"), + o = e.indentUnit; + + function s(e, t) { + return n = t, e + } + + function l(e, t) { + e.eatWhile(/[\w\$_]/); + var n = e.current(); + if (r.propertyIsEnumerable(n)) return "keyword"; + if (i.propertyIsEnumerable(n)) return "variable-2"; + if (a.propertyIsEnumerable(n)) return "string-2"; + var o = e.next(); + return "@" == o ? (e.eatWhile(/[\w\\\-]/), s("meta", e.current())) : "/" == o && e.eat("*") ? (t.tokenize = c, c(e, t)) : "<" == o && e.eat("!") ? (t.tokenize = u, u(e, t)) : "=" != o ? "~" != o && "|" != o || !e.eat("=") ? '"' == o || "'" == o ? (t.tokenize = d(o), t.tokenize(e, t)) : "#" == o ? (e.skipToEnd(), s("comment", "comment")) : "!" == o ? (e.match(/^\s*\w*/), s("keyword", "important")) : /\d/.test(o) ? (e.eatWhile(/[\w.%]/), s("number", "unit")) : /[,.+>*\/]/.test(o) ? s(null, "select-op") : /[;{}:\[\]]/.test(o) ? s(null, o) : (e.eatWhile(/[\w\\\-]/), s("variable", "variable")) : s(null, "compare") : void s(null, "compare") + } + + function c(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (r && "/" == n) { + t.tokenize = l; + break + } + r = "*" == n + } + return s("comment", "comment") + } + + function u(e, t) { + for (var n, r = 0; null != (n = e.next());) { + if (r >= 2 && ">" == n) { + t.tokenize = l; + break + } + r = "-" == n ? r + 1 : 0 + } + return s("comment", "comment") + } + + function d(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.tokenize = l), s("string", "string") + } + } + return { + startState: function(e) { + return { + tokenize: l, + baseIndent: e || 0, + stack: [] + } + }, + token: function(e, t) { + if (e.eatSpace()) return null; + n = null; + var r = t.tokenize(e, t), + i = t.stack[t.stack.length - 1]; + return "hash" == n && "rule" == i ? r = "atom" : "variable" == r && ("rule" == i ? r = "number" : i && "@media{" != i || (r = "tag")), "rule" == i && /^[\{\};]$/.test(n) && t.stack.pop(), "{" == n ? "@media" == i ? t.stack[t.stack.length - 1] = "@media{" : t.stack.push("{") : "}" == n ? t.stack.pop() : "@media" == n ? t.stack.push("@media") : "{" == i && "comment" != n && t.stack.push("rule"), r + }, + indent: function(e, t) { + var n = e.stack.length; + return /^\}/.test(t) && (n -= "rule" == e.stack[e.stack.length - 1] ? 2 : 1), e.baseIndent + n * o + }, + electricChars: "}" + } + })), e.defineMIME("text/x-nginx-conf", "nginx") + }(n(4631)) + }, + 42313: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineSimpleMode("nsis", { + start: [{ + regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, + token: "number" + }, { + regex: /"(?:[^\\"]|\\.)*"?/, + token: "string" + }, { + regex: /'(?:[^\\']|\\.)*'?/, + token: "string" + }, { + regex: /`(?:[^\\`]|\\.)*`?/, + token: "string" + }, { + regex: /^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i, + token: "keyword" + }, { + regex: /^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i, + token: "keyword", + indent: !0 + }, { + regex: /^\s*(?:\!(else|endif|macroend))\b/i, + token: "keyword", + dedent: !0 + }, { + regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i, + token: "keyword" + }, { + regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/i, + token: "keyword", + indent: !0 + }, { + regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i, + token: "keyword", + dedent: !0 + }, { + regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i, + token: "atom" + }, { + regex: /\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/i, + token: "builtin" + }, { + regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i, + token: "variable-2", + indent: !0 + }, { + regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i, + token: "variable-2", + dedent: !0 + }, { + regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i, + token: "variable-2", + dedent: !0 + }, { + regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i, + token: "variable-2", + dedent: !0 + }, { + regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i, + token: "variable", + dedent: !0 + }, { + regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i, + token: "variable-2", + dedent: !0 + }, { + regex: /\$\{(?:RunningX64)\}/i, + token: "variable", + dedent: !0 + }, { + regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/i, + token: "variable-2", + dedent: !0 + }, { + regex: /(#|;).*/, + token: "comment" + }, { + regex: /\/\*/, + token: "comment", + next: "comment" + }, { + regex: /[-+\/*=<>!]+/, + token: "operator" + }, { + regex: /\$\w[\w\.]*/, + token: "variable" + }, { + regex: /\${[\!\w\.:-]+}/, + token: "variable-2" + }, { + regex: /\$\([\!\w\.:-]+\)/, + token: "variable-3" + }], + comment: [{ + regex: /.*?\*\//, + token: "comment", + next: "start" + }, { + regex: /.*/, + token: "comment" + }], + meta: { + electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: ["#", ";"] + } + }), e.defineMIME("text/x-nsis", "nsis") + }(n(4631), n(40790)) + }, + 82954: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("ntriples", (function() { + var e = { + PRE_SUBJECT: 0, + WRITING_SUB_URI: 1, + WRITING_BNODE_URI: 2, + PRE_PRED: 3, + WRITING_PRED_URI: 4, + PRE_OBJ: 5, + WRITING_OBJ_URI: 6, + WRITING_OBJ_BNODE: 7, + WRITING_OBJ_LITERAL: 8, + WRITING_LIT_LANG: 9, + WRITING_LIT_TYPE: 10, + POST_OBJ: 11, + ERROR: 12 + }; + + function t(t, n) { + var r, i = t.location; + r = i == e.PRE_SUBJECT && "<" == n ? e.WRITING_SUB_URI : i == e.PRE_SUBJECT && "_" == n ? e.WRITING_BNODE_URI : i == e.PRE_PRED && "<" == n ? e.WRITING_PRED_URI : i == e.PRE_OBJ && "<" == n ? e.WRITING_OBJ_URI : i == e.PRE_OBJ && "_" == n ? e.WRITING_OBJ_BNODE : i == e.PRE_OBJ && '"' == n ? e.WRITING_OBJ_LITERAL : i == e.WRITING_SUB_URI && ">" == n || i == e.WRITING_BNODE_URI && " " == n ? e.PRE_PRED : i == e.WRITING_PRED_URI && ">" == n ? e.PRE_OBJ : i == e.WRITING_OBJ_URI && ">" == n || i == e.WRITING_OBJ_BNODE && " " == n || i == e.WRITING_OBJ_LITERAL && '"' == n || i == e.WRITING_LIT_LANG && " " == n || i == e.WRITING_LIT_TYPE && ">" == n ? e.POST_OBJ : i == e.WRITING_OBJ_LITERAL && "@" == n ? e.WRITING_LIT_LANG : i == e.WRITING_OBJ_LITERAL && "^" == n ? e.WRITING_LIT_TYPE : " " != n || i != e.PRE_SUBJECT && i != e.PRE_PRED && i != e.PRE_OBJ && i != e.POST_OBJ ? i == e.POST_OBJ && "." == n ? e.PRE_SUBJECT : e.ERROR : i, t.location = r + } + return { + startState: function() { + return { + location: e.PRE_SUBJECT, + uris: [], + anchors: [], + bnodes: [], + langs: [], + types: [] + } + }, + token: function(e, n) { + var r = e.next(); + if ("<" == r) { + t(n, r); + var i = ""; + return e.eatWhile((function(e) { + return "#" != e && ">" != e && (i += e, !0) + })), n.uris.push(i), e.match("#", !1) || (e.next(), t(n, ">")), "variable" + } + if ("#" == r) { + var a = ""; + return e.eatWhile((function(e) { + return ">" != e && " " != e && (a += e, !0) + })), n.anchors.push(a), "variable-2" + } + if (">" == r) return t(n, ">"), "variable"; + if ("_" == r) { + t(n, r); + var o = ""; + return e.eatWhile((function(e) { + return " " != e && (o += e, !0) + })), n.bnodes.push(o), e.next(), t(n, " "), "builtin" + } + if ('"' == r) return t(n, r), e.eatWhile((function(e) { + return '"' != e + })), e.next(), "@" != e.peek() && "^" != e.peek() && t(n, '"'), "string"; + if ("@" == r) { + t(n, "@"); + var s = ""; + return e.eatWhile((function(e) { + return " " != e && (s += e, !0) + })), n.langs.push(s), e.next(), t(n, " "), "string-2" + } + if ("^" == r) { + e.next(), t(n, "^"); + var l = ""; + return e.eatWhile((function(e) { + return ">" != e && (l += e, !0) + })), n.types.push(l), e.next(), t(n, ">"), "variable" + } + " " == r && t(n, r), "." == r && t(n, r) + } + } + })), e.defineMIME("application/n-triples", "ntriples"), e.defineMIME("application/n-quads", "ntriples"), e.defineMIME("text/n-triples", "ntriples") + }(n(4631)) + }, + 15734: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("octave", (function() { + function e(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + } + var t = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"), + n = new RegExp("^[\\(\\[\\{\\},:=;\\.]"), + r = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"), + i = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"), + a = new RegExp("^((>>=)|(<<=))"), + o = new RegExp("^[\\]\\)]"), + s = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"), + l = e(["error", "eval", "function", "abs", "acos", "atan", "asin", "cos", "cosh", "exp", "log", "prod", "sum", "log10", "max", "min", "sign", "sin", "sinh", "sqrt", "tan", "reshape", "break", "zeros", "default", "margin", "round", "ones", "rand", "syn", "ceil", "floor", "size", "clear", "zeros", "eye", "mean", "std", "cov", "det", "eig", "inv", "norm", "rank", "trace", "expm", "logm", "sqrtm", "linspace", "plot", "title", "xlabel", "ylabel", "legend", "text", "grid", "meshgrid", "mesh", "num2str", "fft", "ifft", "arrayfun", "cellfun", "input", "fliplr", "flipud", "ismember"]), + c = e(["return", "case", "switch", "else", "elseif", "end", "endif", "endfunction", "if", "otherwise", "do", "for", "while", "try", "catch", "classdef", "properties", "events", "methods", "global", "persistent", "endfor", "endwhile", "printf", "sprintf", "disp", "until", "continue", "pkg"]); + + function u(e, t) { + return e.sol() || "'" !== e.peek() ? (t.tokenize = p, p(e, t)) : (e.next(), t.tokenize = p, "operator") + } + + function d(e, t) { + return e.match(/^.*%}/) ? (t.tokenize = p, "comment") : (e.skipToEnd(), "comment") + } + + function p(f, m) { + if (f.eatSpace()) return null; + if (f.match("%{")) return m.tokenize = d, f.skipToEnd(), "comment"; + if (f.match(/^[%#]/)) return f.skipToEnd(), "comment"; + if (f.match(/^[0-9\.+-]/, !1)) { + if (f.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) return f.tokenize = p, "number"; + if (f.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) return "number"; + if (f.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) return "number" + } + if (f.match(e(["nan", "NaN", "inf", "Inf"]))) return "number"; + var h = f.match(/^"(?:[^"]|"")*("|$)/) || f.match(/^'(?:[^']|'')*('|$)/); + return h ? h[1] ? "string" : "string error" : f.match(c) ? "keyword" : f.match(l) ? "builtin" : f.match(s) ? "variable" : f.match(t) || f.match(r) ? "operator" : f.match(n) || f.match(i) || f.match(a) ? null : f.match(o) ? (m.tokenize = u, null) : (f.next(), "error") + } + return { + startState: function() { + return { + tokenize: p + } + }, + token: function(e, t) { + var n = t.tokenize(e, t); + return "number" !== n && "variable" !== n || (t.tokenize = u), n + }, + lineComment: "%", + fold: "indent" + } + })), e.defineMIME("text/x-octave", "octave") + }(n(4631)) + }, + 44323: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("oz", (function(e) { + function t(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + } + var n = /[\^@!\|<>#~\.\*\-\+\\/,=]/, + r = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/, + i = /(:::)|(\.\.\.)|(=<:)|(>=:)/, + a = ["in", "then", "else", "of", "elseof", "elsecase", "elseif", "catch", "finally", "with", "require", "prepare", "import", "export", "define", "do"], + o = ["end"], + s = t(["true", "false", "nil", "unit"]), + l = t(["andthen", "at", "attr", "declare", "feat", "from", "lex", "mod", "div", "mode", "orelse", "parser", "prod", "prop", "scanner", "self", "syn", "token"]), + c = t(["local", "proc", "fun", "case", "class", "if", "cond", "or", "dis", "choice", "not", "thread", "try", "raise", "lock", "for", "suchthat", "meth", "functor"]), + u = t(a), + d = t(o); + + function p(e, t) { + if (e.eatSpace()) return null; + if (e.match(/[{}]/)) return "bracket"; + if (e.match("[]")) return "keyword"; + if (e.match(i) || e.match(r)) return "operator"; + if (e.match(s)) return "atom"; + var a = e.match(c); + if (a) return t.doInCurrentLine ? t.doInCurrentLine = !1 : t.currentIndent++, "proc" == a[0] || "fun" == a[0] ? t.tokenize = h : "class" == a[0] ? t.tokenize = f : "meth" == a[0] && (t.tokenize = m), "keyword"; + if (e.match(u) || e.match(l)) return "keyword"; + if (e.match(d)) return t.currentIndent--, "keyword"; + var o = e.next(); + if ('"' == o || "'" == o) return t.tokenize = b(o), t.tokenize(e, t); + if (/[~\d]/.test(o)) { + if ("~" == o) { + if (!/^[0-9]/.test(e.peek())) return null; + if ("0" == e.next() && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) return "number" + } + return "0" == o && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/) ? "number" : null + } + return "%" == o ? (e.skipToEnd(), "comment") : "/" == o && e.eat("*") ? (t.tokenize = g, g(e, t)) : n.test(o) ? "operator" : (e.eatWhile(/\w/), "variable") + } + + function f(e, t) { + return e.eatSpace() ? null : (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = p, "variable-3") + } + + function m(e, t) { + return e.eatSpace() ? null : (e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = p, "def") + } + + function h(e, t) { + return e.eatSpace() ? null : !t.hasPassedFirstStage && e.eat("{") ? (t.hasPassedFirstStage = !0, "bracket") : t.hasPassedFirstStage ? (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/), t.hasPassedFirstStage = !1, t.tokenize = p, "def") : (t.tokenize = p, null) + } + + function g(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = p; + break + } + r = "*" == n + } + return "comment" + } + + function b(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return !a && i || (n.tokenize = p), "string" + } + } + + function v() { + var e = a.concat(o); + return new RegExp("[\\[\\]]|(" + e.join("|") + ")$") + } + return { + startState: function() { + return { + tokenize: p, + currentIndent: 0, + doInCurrentLine: !1, + hasPassedFirstStage: !1 + } + }, + token: function(e, t) { + return e.sol() && (t.doInCurrentLine = 0), t.tokenize(e, t) + }, + indent: function(t, n) { + var r = n.replace(/^\s+|\s+$/g, ""); + return r.match(d) || r.match(u) || r.match(/(\[])/) ? e.indentUnit * (t.currentIndent - 1) : t.currentIndent < 0 ? 0 : t.currentIndent * e.indentUnit + }, + fold: "indent", + electricInput: v(), + lineComment: "%", + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + })), e.defineMIME("text/x-oz", "oz") + }(n(4631)) + }, + 23057: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("pascal", (function() { + function e(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var t = e("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"), + n = { + null: !0 + }, + r = /[+\-*&%=<>!?|\/]/; + + function i(e, i) { + var l = e.next(); + if ("#" == l && i.startOfLine) return e.skipToEnd(), "meta"; + if ('"' == l || "'" == l) return i.tokenize = a(l), i.tokenize(e, i); + if ("(" == l && e.eat("*")) return i.tokenize = o, o(e, i); + if ("{" == l) return i.tokenize = s, s(e, i); + if (/[\[\]\(\),;\:\.]/.test(l)) return null; + if (/\d/.test(l)) return e.eatWhile(/[\w\.]/), "number"; + if ("/" == l && e.eat("/")) return e.skipToEnd(), "comment"; + if (r.test(l)) return e.eatWhile(r), "operator"; + e.eatWhile(/[\w\$_]/); + var c = e.current(); + return t.propertyIsEnumerable(c) ? "keyword" : n.propertyIsEnumerable(c) ? "atom" : "variable" + } + + function a(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return !a && i || (n.tokenize = null), "string" + } + } + + function o(e, t) { + for (var n, r = !1; n = e.next();) { + if (")" == n && r) { + t.tokenize = null; + break + } + r = "*" == n + } + return "comment" + } + + function s(e, t) { + for (var n; n = e.next();) + if ("}" == n) { + t.tokenize = null; + break + } + return "comment" + } + return { + startState: function() { + return { + tokenize: null + } + }, + token: function(e, t) { + if (e.eatSpace()) return null; + var n = (t.tokenize || i)(e, t); + return n + }, + electricChars: "{}" + } + })), e.defineMIME("text/x-pascal", "pascal") + }(n(4631)) + }, + 31472: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("pegjs", (function(t) { + var n = e.getMode(t, "javascript"); + + function r(e) { + return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) + } + return { + startState: function() { + return { + inString: !1, + stringType: null, + inComment: !1, + inCharacterClass: !1, + braced: 0, + lhs: !0, + localState: null + } + }, + token: function(t, i) { + if (t && (i.inString || i.inComment || '"' != t.peek() && "'" != t.peek() || (i.stringType = t.peek(), t.next(), i.inString = !0)), i.inString || i.inComment || !t.match("/*") || (i.inComment = !0), i.inString) { + for (; i.inString && !t.eol();) t.peek() === i.stringType ? (t.next(), i.inString = !1) : "\\" === t.peek() ? (t.next(), t.next()) : t.match(/^.[^\\\"\']*/); + return i.lhs ? "property string" : "string" + } + if (i.inComment) { + for (; i.inComment && !t.eol();) t.match("*/") ? i.inComment = !1 : t.match(/^.[^\*]*/); + return "comment" + } + if (i.inCharacterClass) + for (; i.inCharacterClass && !t.eol();) t.match(/^[^\]\\]+/) || t.match(/^\\./) || (i.inCharacterClass = !1); + else { + if ("[" === t.peek()) return t.next(), i.inCharacterClass = !0, "bracket"; + if (t.match("//")) return t.skipToEnd(), "comment"; + if (i.braced || "{" === t.peek()) { + null === i.localState && (i.localState = e.startState(n)); + var a = n.token(t, i.localState), + o = t.current(); + if (!a) + for (var s = 0; s < o.length; s++) "{" === o[s] ? i.braced++ : "}" === o[s] && i.braced--; + return a + } + if (r(t)) return ":" === t.peek() ? "variable" : "variable-2"; + if (-1 != ["[", "]", "(", ")"].indexOf(t.peek())) return t.next(), "bracket"; + t.eatSpace() || t.next() + } + return null + } + } + }), "javascript") + }(n(4631), n(96876)) + }, + 10024: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e, t) { + return e.string.charAt(e.pos + (t || 0)) + } + + function n(e, t) { + if (t) { + var n = e.pos - t; + return e.string.substr(n >= 0 ? n : 0, t) + } + return e.string.substr(0, e.pos - 1) + } + + function r(e, t) { + var n = e.string.length, + r = n - e.pos + 1; + return e.string.substr(e.pos, t && t < n ? t : r) + } + + function i(e, t) { + var n, r = e.pos + t; + r <= 0 ? e.pos = 0 : r >= (n = e.string.length - 1) ? e.pos = n : e.pos = r + } + e.defineMode("perl", (function() { + var e = { + "->": 4, + "++": 4, + "--": 4, + "**": 4, + "=~": 4, + "!~": 4, + "*": 4, + "/": 4, + "%": 4, + x: 4, + "+": 4, + "-": 4, + ".": 4, + "<<": 4, + ">>": 4, + "<": 4, + ">": 4, + "<=": 4, + ">=": 4, + lt: 4, + gt: 4, + le: 4, + ge: 4, + "==": 4, + "!=": 4, + "<=>": 4, + eq: 4, + ne: 4, + cmp: 4, + "~~": 4, + "&": 4, + "|": 4, + "^": 4, + "&&": 4, + "||": 4, + "//": 4, + "..": 4, + "...": 4, + "?": 4, + ":": 4, + "=": 4, + "+=": 4, + "-=": 4, + "*=": 4, + ",": 4, + "=>": 4, + "::": 4, + not: 4, + and: 4, + or: 4, + xor: 4, + BEGIN: [5, 1], + END: [5, 1], + PRINT: [5, 1], + PRINTF: [5, 1], + GETC: [5, 1], + READ: [5, 1], + READLINE: [5, 1], + DESTROY: [5, 1], + TIE: [5, 1], + TIEHANDLE: [5, 1], + UNTIE: [5, 1], + STDIN: 5, + STDIN_TOP: 5, + STDOUT: 5, + STDOUT_TOP: 5, + STDERR: 5, + STDERR_TOP: 5, + $ARG: 5, + $_: 5, + "@ARG": 5, + "@_": 5, + $LIST_SEPARATOR: 5, + '$"': 5, + $PROCESS_ID: 5, + $PID: 5, + $$: 5, + $REAL_GROUP_ID: 5, + $GID: 5, + "$(": 5, + $EFFECTIVE_GROUP_ID: 5, + $EGID: 5, + "$)": 5, + $PROGRAM_NAME: 5, + $0: 5, + $SUBSCRIPT_SEPARATOR: 5, + $SUBSEP: 5, + "$;": 5, + $REAL_USER_ID: 5, + $UID: 5, + "$<": 5, + $EFFECTIVE_USER_ID: 5, + $EUID: 5, + "$>": 5, + $a: 5, + $b: 5, + $COMPILING: 5, + "$^C": 5, + $DEBUGGING: 5, + "$^D": 5, + "${^ENCODING}": 5, + $ENV: 5, + "%ENV": 5, + $SYSTEM_FD_MAX: 5, + "$^F": 5, + "@F": 5, + "${^GLOBAL_PHASE}": 5, + "$^H": 5, + "%^H": 5, + "@INC": 5, + "%INC": 5, + $INPLACE_EDIT: 5, + "$^I": 5, + "$^M": 5, + $OSNAME: 5, + "$^O": 5, + "${^OPEN}": 5, + $PERLDB: 5, + "$^P": 5, + $SIG: 5, + "%SIG": 5, + $BASETIME: 5, + "$^T": 5, + "${^TAINT}": 5, + "${^UNICODE}": 5, + "${^UTF8CACHE}": 5, + "${^UTF8LOCALE}": 5, + $PERL_VERSION: 5, + "$^V": 5, + "${^WIN32_SLOPPY_STAT}": 5, + $EXECUTABLE_NAME: 5, + "$^X": 5, + $1: 5, + $MATCH: 5, + "$&": 5, + "${^MATCH}": 5, + $PREMATCH: 5, + "$`": 5, + "${^PREMATCH}": 5, + $POSTMATCH: 5, + "$'": 5, + "${^POSTMATCH}": 5, + $LAST_PAREN_MATCH: 5, + "$+": 5, + $LAST_SUBMATCH_RESULT: 5, + "$^N": 5, + "@LAST_MATCH_END": 5, + "@+": 5, + "%LAST_PAREN_MATCH": 5, + "%+": 5, + "@LAST_MATCH_START": 5, + "@-": 5, + "%LAST_MATCH_START": 5, + "%-": 5, + $LAST_REGEXP_CODE_RESULT: 5, + "$^R": 5, + "${^RE_DEBUG_FLAGS}": 5, + "${^RE_TRIE_MAXBUF}": 5, + $ARGV: 5, + "@ARGV": 5, + ARGV: 5, + ARGVOUT: 5, + $OUTPUT_FIELD_SEPARATOR: 5, + $OFS: 5, + "$,": 5, + $INPUT_LINE_NUMBER: 5, + $NR: 5, + "$.": 5, + $INPUT_RECORD_SEPARATOR: 5, + $RS: 5, + "$/": 5, + $OUTPUT_RECORD_SEPARATOR: 5, + $ORS: 5, + "$\\": 5, + $OUTPUT_AUTOFLUSH: 5, + "$|": 5, + $ACCUMULATOR: 5, + "$^A": 5, + $FORMAT_FORMFEED: 5, + "$^L": 5, + $FORMAT_PAGE_NUMBER: 5, + "$%": 5, + $FORMAT_LINES_LEFT: 5, + "$-": 5, + $FORMAT_LINE_BREAK_CHARACTERS: 5, + "$:": 5, + $FORMAT_LINES_PER_PAGE: 5, + "$=": 5, + $FORMAT_TOP_NAME: 5, + "$^": 5, + $FORMAT_NAME: 5, + "$~": 5, + "${^CHILD_ERROR_NATIVE}": 5, + $EXTENDED_OS_ERROR: 5, + "$^E": 5, + $EXCEPTIONS_BEING_CAUGHT: 5, + "$^S": 5, + $WARNING: 5, + "$^W": 5, + "${^WARNING_BITS}": 5, + $OS_ERROR: 5, + $ERRNO: 5, + "$!": 5, + "%OS_ERROR": 5, + "%ERRNO": 5, + "%!": 5, + $CHILD_ERROR: 5, + "$?": 5, + $EVAL_ERROR: 5, + "$@": 5, + $OFMT: 5, + "$#": 5, + "$*": 5, + $ARRAY_BASE: 5, + "$[": 5, + $OLD_PERL_VERSION: 5, + "$]": 5, + if: [1, 1], + elsif: [1, 1], + else: [1, 1], + while: [1, 1], + unless: [1, 1], + for: [1, 1], + foreach: [1, 1], + abs: 1, + accept: 1, + alarm: 1, + atan2: 1, + bind: 1, + binmode: 1, + bless: 1, + bootstrap: 1, + break: 1, + caller: 1, + chdir: 1, + chmod: 1, + chomp: 1, + chop: 1, + chown: 1, + chr: 1, + chroot: 1, + close: 1, + closedir: 1, + connect: 1, + continue: [1, 1], + cos: 1, + crypt: 1, + dbmclose: 1, + dbmopen: 1, + default: 1, + defined: 1, + delete: 1, + die: 1, + do: 1, + dump: 1, + each: 1, + endgrent: 1, + endhostent: 1, + endnetent: 1, + endprotoent: 1, + endpwent: 1, + endservent: 1, + eof: 1, + eval: 1, + exec: 1, + exists: 1, + exit: 1, + exp: 1, + fcntl: 1, + fileno: 1, + flock: 1, + fork: 1, + format: 1, + formline: 1, + getc: 1, + getgrent: 1, + getgrgid: 1, + getgrnam: 1, + gethostbyaddr: 1, + gethostbyname: 1, + gethostent: 1, + getlogin: 1, + getnetbyaddr: 1, + getnetbyname: 1, + getnetent: 1, + getpeername: 1, + getpgrp: 1, + getppid: 1, + getpriority: 1, + getprotobyname: 1, + getprotobynumber: 1, + getprotoent: 1, + getpwent: 1, + getpwnam: 1, + getpwuid: 1, + getservbyname: 1, + getservbyport: 1, + getservent: 1, + getsockname: 1, + getsockopt: 1, + given: 1, + glob: 1, + gmtime: 1, + goto: 1, + grep: 1, + hex: 1, + import: 1, + index: 1, + int: 1, + ioctl: 1, + join: 1, + keys: 1, + kill: 1, + last: 1, + lc: 1, + lcfirst: 1, + length: 1, + link: 1, + listen: 1, + local: 2, + localtime: 1, + lock: 1, + log: 1, + lstat: 1, + m: null, + map: 1, + mkdir: 1, + msgctl: 1, + msgget: 1, + msgrcv: 1, + msgsnd: 1, + my: 2, + new: 1, + next: 1, + no: 1, + oct: 1, + open: 1, + opendir: 1, + ord: 1, + our: 2, + pack: 1, + package: 1, + pipe: 1, + pop: 1, + pos: 1, + print: 1, + printf: 1, + prototype: 1, + push: 1, + q: null, + qq: null, + qr: null, + quotemeta: null, + qw: null, + qx: null, + rand: 1, + read: 1, + readdir: 1, + readline: 1, + readlink: 1, + readpipe: 1, + recv: 1, + redo: 1, + ref: 1, + rename: 1, + require: 1, + reset: 1, + return: 1, + reverse: 1, + rewinddir: 1, + rindex: 1, + rmdir: 1, + s: null, + say: 1, + scalar: 1, + seek: 1, + seekdir: 1, + select: 1, + semctl: 1, + semget: 1, + semop: 1, + send: 1, + setgrent: 1, + sethostent: 1, + setnetent: 1, + setpgrp: 1, + setpriority: 1, + setprotoent: 1, + setpwent: 1, + setservent: 1, + setsockopt: 1, + shift: 1, + shmctl: 1, + shmget: 1, + shmread: 1, + shmwrite: 1, + shutdown: 1, + sin: 1, + sleep: 1, + socket: 1, + socketpair: 1, + sort: 1, + splice: 1, + split: 1, + sprintf: 1, + sqrt: 1, + srand: 1, + stat: 1, + state: 1, + study: 1, + sub: 1, + substr: 1, + symlink: 1, + syscall: 1, + sysopen: 1, + sysread: 1, + sysseek: 1, + system: 1, + syswrite: 1, + tell: 1, + telldir: 1, + tie: 1, + tied: 1, + time: 1, + times: 1, + tr: null, + truncate: 1, + uc: 1, + ucfirst: 1, + umask: 1, + undef: 1, + unlink: 1, + unpack: 1, + unshift: 1, + untie: 1, + use: 1, + utime: 1, + values: 1, + vec: 1, + wait: 1, + waitpid: 1, + wantarray: 1, + warn: 1, + when: 1, + write: 1, + y: null + }, + a = "string-2", + o = /[goseximacplud]/; + + function s(e, t, n, r, i) { + return t.chain = null, t.style = null, t.tail = null, t.tokenize = function(e, t) { + for (var a, o = !1, s = 0; a = e.next();) { + if (a === n[s] && !o) return void 0 !== n[++s] ? (t.chain = n[s], t.style = r, t.tail = i) : i && e.eatWhile(i), t.tokenize = c, r; + o = !o && "\\" == a + } + return r + }, t.tokenize(e, t) + } + + function l(e, t, n) { + return t.tokenize = function(e, t) { + return e.string == n && (t.tokenize = c), e.skipToEnd(), "string" + }, t.tokenize(e, t) + } + + function c(c, u) { + if (c.eatSpace()) return null; + if (u.chain) return s(c, u, u.chain, u.style, u.tail); + if (c.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/)) return "number"; + if (c.match(/^<<(?=[_a-zA-Z])/)) return c.eatWhile(/\w/), l(c, u, c.current().substr(2)); + if (c.sol() && c.match(/^\=item(?!\w)/)) return l(c, u, "=cut"); + var d = c.next(); + if ('"' == d || "'" == d) { + if (n(c, 3) == "<<" + d) { + var p = c.pos; + c.eatWhile(/\w/); + var f = c.current().substr(1); + if (f && c.eat(d)) return l(c, u, f); + c.pos = p + } + return s(c, u, [d], "string") + } + if ("q" == d && (!(m = t(c, -2)) || !/\w/.test(m))) + if ("x" == (m = t(c, 0))) { + if ("(" == (m = t(c, 1))) return i(c, 2), s(c, u, [")"], a, o); + if ("[" == m) return i(c, 2), s(c, u, ["]"], a, o); + if ("{" == m) return i(c, 2), s(c, u, ["}"], a, o); + if ("<" == m) return i(c, 2), s(c, u, [">"], a, o); + if (/[\^'"!~\/]/.test(m)) return i(c, 1), s(c, u, [c.eat(m)], a, o) + } else if ("q" == m) { + if ("(" == (m = t(c, 1))) return i(c, 2), s(c, u, [")"], "string"); + if ("[" == m) return i(c, 2), s(c, u, ["]"], "string"); + if ("{" == m) return i(c, 2), s(c, u, ["}"], "string"); + if ("<" == m) return i(c, 2), s(c, u, [">"], "string"); + if (/[\^'"!~\/]/.test(m)) return i(c, 1), s(c, u, [c.eat(m)], "string") + } else if ("w" == m) { + if ("(" == (m = t(c, 1))) return i(c, 2), s(c, u, [")"], "bracket"); + if ("[" == m) return i(c, 2), s(c, u, ["]"], "bracket"); + if ("{" == m) return i(c, 2), s(c, u, ["}"], "bracket"); + if ("<" == m) return i(c, 2), s(c, u, [">"], "bracket"); + if (/[\^'"!~\/]/.test(m)) return i(c, 1), s(c, u, [c.eat(m)], "bracket") + } else if ("r" == m) { + if ("(" == (m = t(c, 1))) return i(c, 2), s(c, u, [")"], a, o); + if ("[" == m) return i(c, 2), s(c, u, ["]"], a, o); + if ("{" == m) return i(c, 2), s(c, u, ["}"], a, o); + if ("<" == m) return i(c, 2), s(c, u, [">"], a, o); + if (/[\^'"!~\/]/.test(m)) return i(c, 1), s(c, u, [c.eat(m)], a, o) + } else if (/[\^'"!~\/(\[{<]/.test(m)) { + if ("(" == m) return i(c, 1), s(c, u, [")"], "string"); + if ("[" == m) return i(c, 1), s(c, u, ["]"], "string"); + if ("{" == m) return i(c, 1), s(c, u, ["}"], "string"); + if ("<" == m) return i(c, 1), s(c, u, [">"], "string"); + if (/[\^'"!~\/]/.test(m)) return s(c, u, [c.eat(m)], "string") + } + if ("m" == d && (!(m = t(c, -2)) || !/\w/.test(m)) && (m = c.eat(/[(\[{<\^'"!~\/]/))) { + if (/[\^'"!~\/]/.test(m)) return s(c, u, [m], a, o); + if ("(" == m) return s(c, u, [")"], a, o); + if ("[" == m) return s(c, u, ["]"], a, o); + if ("{" == m) return s(c, u, ["}"], a, o); + if ("<" == m) return s(c, u, [">"], a, o) + } + if ("s" == d && !(m = /[\/>\]})\w]/.test(t(c, -2))) && (m = c.eat(/[(\[{<\^'"!~\/]/))) return s(c, u, "[" == m ? ["]", "]"] : "{" == m ? ["}", "}"] : "<" == m ? [">", ">"] : "(" == m ? [")", ")"] : [m, m], a, o); + if ("y" == d && !(m = /[\/>\]})\w]/.test(t(c, -2))) && (m = c.eat(/[(\[{<\^'"!~\/]/))) return s(c, u, "[" == m ? ["]", "]"] : "{" == m ? ["}", "}"] : "<" == m ? [">", ">"] : "(" == m ? [")", ")"] : [m, m], a, o); + if ("t" == d && !(m = /[\/>\]})\w]/.test(t(c, -2))) && (m = c.eat("r")) && (m = c.eat(/[(\[{<\^'"!~\/]/))) return s(c, u, "[" == m ? ["]", "]"] : "{" == m ? ["}", "}"] : "<" == m ? [">", ">"] : "(" == m ? [")", ")"] : [m, m], a, o); + if ("`" == d) return s(c, u, [d], "variable-2"); + if ("/" == d) return /~\s*$/.test(n(c)) ? s(c, u, [d], a, o) : "operator"; + if ("$" == d) { + if (p = c.pos, c.eatWhile(/\d/) || c.eat("{") && c.eatWhile(/\d/) && c.eat("}")) return "variable-2"; + c.pos = p + } + if (/[$@%]/.test(d)) { + if (p = c.pos, c.eat("^") && c.eat(/[A-Z]/) || !/[@$%&]/.test(t(c, -2)) && c.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)) { + var m = c.current(); + if (e[m]) return "variable-2" + } + c.pos = p + } + if (/[$@%&]/.test(d) && (c.eatWhile(/[\w$]/) || c.eat("{") && c.eatWhile(/[\w$]/) && c.eat("}"))) return m = c.current(), e[m] ? "variable-2" : "variable"; + if ("#" == d && "$" != t(c, -2)) return c.skipToEnd(), "comment"; + if (/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)) { + if (p = c.pos, c.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/), e[c.current()]) return "operator"; + c.pos = p + } + if ("_" == d && 1 == c.pos) { + if ("_END__" == r(c, 6)) return s(c, u, ["\0"], "comment"); + if ("_DATA__" == r(c, 7)) return s(c, u, ["\0"], "variable-2"); + if ("_C__" == r(c, 7)) return s(c, u, ["\0"], "string") + } + if (/\w/.test(d)) { + if (p = c.pos, "{" == t(c, -2) && ("}" == t(c, 0) || c.eatWhile(/\w/) && "}" == t(c, 0))) return "string"; + c.pos = p + } + if (/[A-Z]/.test(d)) { + var h = t(c, -2); + if (p = c.pos, c.eatWhile(/[A-Z_]/), !/[\da-z]/.test(t(c, 0))) return (m = e[c.current()]) ? (m[1] && (m = m[0]), ":" != h ? 1 == m ? "keyword" : 2 == m ? "def" : 3 == m ? "atom" : 4 == m ? "operator" : 5 == m ? "variable-2" : "meta" : "meta") : "meta"; + c.pos = p + } + return /[a-zA-Z_]/.test(d) ? (h = t(c, -2), c.eatWhile(/\w/), (m = e[c.current()]) ? (m[1] && (m = m[0]), ":" != h ? 1 == m ? "keyword" : 2 == m ? "def" : 3 == m ? "atom" : 4 == m ? "operator" : 5 == m ? "variable-2" : "meta" : "meta") : "meta") : null + } + return { + startState: function() { + return { + tokenize: c, + chain: null, + style: null, + tail: null + } + }, + token: function(e, t) { + return (t.tokenize || c)(e, t) + }, + lineComment: "#" + } + })), e.registerHelper("wordChars", "perl", /[\w$]/), e.defineMIME("text/x-perl", "perl") + }(n(4631)) + }, + 36702: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + + function n(e, t, i) { + return 0 == e.length ? r(t) : function(a, o) { + for (var s = e[0], l = 0; l < s.length; l++) + if (a.match(s[l][0])) return o.tokenize = n(e.slice(1), t), s[l][1]; + return o.tokenize = r(t, i), "string" + } + } + + function r(e, t) { + return function(n, r) { + return i(n, r, e, t) + } + } + + function i(e, t, r, i) { + if (!1 !== i && e.match("${", !1) || e.match("{$", !1)) return t.tokenize = null, "string"; + if (!1 !== i && e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) return e.match("[", !1) && (t.tokenize = n([ + [ + ["[", null] + ], + [ + [/\d[\w\.]*/, "number"], + [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"], + [/[\w\$]+/, "variable"] + ], + [ + ["]", null] + ] + ], r, i)), e.match(/^->\w/, !1) && (t.tokenize = n([ + [ + ["->", null] + ], + [ + [/[\w]+/, "variable"] + ] + ], r, i)), "variable-2"; + for (var a = !1; !e.eol() && (a || !1 === i || !e.match("{$", !1) && !e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, !1));) { + if (!a && e.match(r)) { + t.tokenize = null, t.tokStack.pop(), t.tokStack.pop(); + break + } + a = "\\" == e.next() && !a + } + return "string" + } + var a = "abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match", + o = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__", + s = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count"; + e.registerHelper("hintWords", "php", [a, o, s].join(" ").split(" ")), e.registerHelper("wordChars", "php", /[\w$]/); + var l = { + name: "clike", + helperType: "php", + keywords: t(a), + blockKeywords: t("catch do else elseif for foreach if switch try while finally"), + defKeywords: t("class enum function interface namespace trait"), + atoms: t(o), + builtin: t(s), + multiLineStrings: !0, + hooks: { + $: function(e) { + return e.eatWhile(/[\w\$_]/), "variable-2" + }, + "<": function(e, t) { + var n; + if (n = e.match(/^<<\s*/)) { + var i = e.eat(/['"]/); + e.eatWhile(/[\w\.]/); + var a = e.current().slice(n[0].length + (i ? 2 : 1)); + if (i && e.eat(i), a) return (t.tokStack || (t.tokStack = [])).push(a, 0), t.tokenize = r(a, "'" != i), "string" + } + return !1 + }, + "#": function(e) { + for (; !e.eol() && !e.match("?>", !1);) e.next(); + return "comment" + }, + "/": function(e) { + if (e.eat("/")) { + for (; !e.eol() && !e.match("?>", !1);) e.next(); + return "comment" + } + return !1 + }, + '"': function(e, t) { + return (t.tokStack || (t.tokStack = [])).push('"', 0), t.tokenize = r('"'), "string" + }, + "{": function(e, t) { + return t.tokStack && t.tokStack.length && t.tokStack[t.tokStack.length - 1]++, !1 + }, + "}": function(e, t) { + return t.tokStack && t.tokStack.length > 0 && !--t.tokStack[t.tokStack.length - 1] && (t.tokenize = r(t.tokStack[t.tokStack.length - 2])), !1 + } + } + }; + e.defineMode("php", (function(t, n) { + var r = e.getMode(t, n && n.htmlMode || "text/html"), + i = e.getMode(t, l); + + function a(t, n) { + var a = n.curMode == i; + if (t.sol() && n.pending && '"' != n.pending && "'" != n.pending && (n.pending = null), a) return a && null == n.php.tokenize && t.match("?>") ? (n.curMode = r, n.curState = n.html, n.php.context.prev || (n.php = null), "meta") : i.token(t, n.curState); + if (t.match(/^<\?\w*/)) return n.curMode = i, n.php || (n.php = e.startState(i, r.indent(n.html, "", ""))), n.curState = n.php, "meta"; + if ('"' == n.pending || "'" == n.pending) { + for (; !t.eol() && t.next() != n.pending;); + var o = "string" + } else n.pending && t.pos < n.pending.end ? (t.pos = n.pending.end, o = n.pending.style) : o = r.token(t, n.curState); + n.pending && (n.pending = null); + var s, l = t.current(), + c = l.search(/<\?/); + return -1 != c && ("string" == o && (s = l.match(/[\'\"]$/)) && !/\?>/.test(l) ? n.pending = s[0] : n.pending = { + end: t.pos, + style: o + }, t.backUp(l.length - c)), o + } + return { + startState: function() { + var t = e.startState(r), + a = n.startOpen ? e.startState(i) : null; + return { + html: t, + php: a, + curMode: n.startOpen ? i : r, + curState: n.startOpen ? a : t, + pending: null + } + }, + copyState: function(t) { + var n, a = t.html, + o = e.copyState(r, a), + s = t.php, + l = s && e.copyState(i, s); + return n = t.curMode == r ? o : l, { + html: o, + php: l, + curMode: t.curMode, + curState: n, + pending: t.pending + } + }, + token: a, + indent: function(e, t, n) { + return e.curMode != i && /^\s*<\//.test(t) || e.curMode == i && /^\?>/.test(t) ? r.indent(e.html, t, n) : e.curMode.indent(e.curState, t, n) + }, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + innerMode: function(e) { + return { + state: e.curState, + mode: e.curMode + } + } + } + }), "htmlmixed", "clike"), e.defineMIME("application/x-httpd-php", "php"), e.defineMIME("application/x-httpd-php-open", { + name: "php", + startOpen: !0 + }), e.defineMIME("text/x-php", l) + }(n(4631), n(16531), n(99762)) + }, + 54763: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("pig", (function(e, t) { + var n = t.keywords, + r = t.builtins, + i = t.types, + a = t.multiLineStrings, + o = /[*+\-%<>=&?:\/!|]/; + + function s(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function l(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = u; + break + } + r = "*" == n + } + return "comment" + } + + function c(e) { + return function(t, n) { + for (var r, i = !1, o = !1; null != (r = t.next());) { + if (r == e && !i) { + o = !0; + break + } + i = !i && "\\" == r + } + return (o || !i && !a) && (n.tokenize = u), "error" + } + } + + function u(e, t) { + var a = e.next(); + return '"' == a || "'" == a ? s(e, t, c(a)) : /[\[\]{}\(\),;\.]/.test(a) ? null : /\d/.test(a) ? (e.eatWhile(/[\w\.]/), "number") : "/" == a ? e.eat("*") ? s(e, t, l) : (e.eatWhile(o), "operator") : "-" == a ? e.eat("-") ? (e.skipToEnd(), "comment") : (e.eatWhile(o), "operator") : o.test(a) ? (e.eatWhile(o), "operator") : (e.eatWhile(/[\w\$_]/), n && n.propertyIsEnumerable(e.current().toUpperCase()) && !e.eat(")") && !e.eat(".") ? "keyword" : r && r.propertyIsEnumerable(e.current().toUpperCase()) ? "variable-2" : i && i.propertyIsEnumerable(e.current().toUpperCase()) ? "variable-3" : "variable") + } + return { + startState: function() { + return { + tokenize: u, + startOfLine: !0 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + } + } + })), + function() { + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var n = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ", + r = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP", + i = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP "; + e.defineMIME("text/x-pig", { + name: "pig", + builtins: t(n), + keywords: t(r), + types: t(i) + }), e.registerHelper("hintWords", "pig", (n + i + r).split(" ")) + }() + }(n(4631)) + }, + 97196: function(e, t, n) { + ! function(e) { + "use strict"; + (function(e) { + e.defineMode("powershell", (function() { + function e(e, t) { + for (var n = void 0 !== (t = t || {}).prefix ? t.prefix : "^", r = void 0 !== t.suffix ? t.suffix : "\\b", i = 0; i < e.length; i++) e[i] instanceof RegExp ? e[i] = e[i].source : e[i] = e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); + return new RegExp(n + "(" + e.join("|") + ")" + r, "i") + } + var t = "(?=[^A-Za-z\\d\\-_]|$)", + n = /[\w\-:]/, + r = e([/begin|break|catch|continue|data|default|do|dynamicparam/, /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/, /param|process|return|switch|throw|trap|try|until|where|while/], { + suffix: t + }), + i = /[\[\]{},;`\\\.]|@[({]/, + a = e(["f", /b?not/, /[ic]?split/, "join", /is(not)?/, "as", /[ic]?(eq|ne|[gl][te])/, /[ic]?(not)?(like|match|contains)/, /[ic]?replace/, /b?(and|or|xor)/], { + prefix: "-" + }), + o = e([a, /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/], { + suffix: "" + }), + s = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i, + l = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/, + c = /[A-Z]:|%|\?/i, + u = e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/, /Checkpoint-Computer/, /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/, /Compare-Object/, /Complete-Transaction/, /Connect-PSSession/, /ConvertFrom-(Csv|Json|SecureString|StringData)/, /Convert-Path/, /ConvertTo-(Csv|Html|Json|SecureString|Xml)/, /Copy-Item(Property)?/, /Debug-Process/, /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /Disconnect-PSSession/, /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /(Enter|Exit)-PSSession/, /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/, /ForEach-Object/, /Format-(Custom|List|Table|Wide)/, new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"), /Group-Object/, /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/, /ImportSystemModules/, /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/, /Join-Path/, /Limit-EventLog/, /Measure-(Command|Object)/, /Move-Item(Property)?/, new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"), /Out-(Default|File|GridView|Host|Null|Printer|String)/, /Pause/, /(Pop|Push)-Location/, /Read-Host/, /Receive-(Job|PSSession)/, /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/, /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/, /Rename-(Computer|Item(Property)?)/, /Reset-ComputerMachinePassword/, /Resolve-Path/, /Restart-(Computer|Service)/, /Restore-Computer/, /Resume-(Job|Service)/, /Save-Help/, /Select-(Object|String|Xml)/, /Send-MailMessage/, new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"), /Show-(Command|ControlPanelItem|EventLog)/, /Sort-Object/, /Split-Path/, /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/, /Stop-(Computer|Job|Process|Service|Transcript)/, /Suspend-(Job|Service)/, /TabExpansion2/, /Tee-Object/, /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/, /Trace-Command/, /Unblock-File/, /Undo-Transaction/, /Unregister-(Event|PSSessionConfiguration)/, /Update-(FormatData|Help|List|TypeData)/, /Use-Transaction/, /Wait-(Event|Job|Process)/, /Where-Object/, /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/, /cd|help|mkdir|more|oss|prompt/, /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/, /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/, /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/, /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/, /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/, /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/], { + prefix: "", + suffix: "" + }), + d = e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/, /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/, /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/, /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/, /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/, /WarningPreference|WhatIfPreference/, /Event|EventArgs|EventSubscriber|Sender/, /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/, /true|false|null/], { + prefix: "\\$", + suffix: "" + }), + p = { + keyword: r, + number: s, + operator: o, + builtin: e([c, u, d], { + suffix: t + }), + punctuation: i, + identifier: l + }; + + function f(e, t) { + var r = t.returnStack[t.returnStack.length - 1]; + if (r && r.shouldReturnFrom(t)) return t.tokenize = r.tokenize, t.returnStack.pop(), t.tokenize(e, t); + if (e.eatSpace()) return null; + if (e.eat("(")) return t.bracketNesting += 1, "punctuation"; + if (e.eat(")")) return t.bracketNesting -= 1, "punctuation"; + for (var i in p) + if (e.match(p[i])) return i; + var a = e.next(); + if ("'" === a) return m(e, t); + if ("$" === a) return x(e, t); + if ('"' === a) return h(e, t); + if ("<" === a && e.eat("#")) return t.tokenize = k, k(e, t); + if ("#" === a) return e.skipToEnd(), "comment"; + if ("@" === a) { + var o = e.eat(/["']/); + if (o && e.eol()) return t.tokenize = w, t.startQuote = o[0], w(e, t); + if (e.eol()) return "error"; + if (e.peek().match(/[({]/)) return "punctuation"; + if (e.peek().match(n)) return x(e, t) + } + return "error" + } + + function m(e, t) { + for (var n; null != (n = e.peek());) + if (e.next(), "'" === n && !e.eat("'")) return t.tokenize = f, "string"; + return "error" + } + + function h(e, t) { + for (var n; null != (n = e.peek());) { + if ("$" === n) return t.tokenize = g, "string"; + if (e.next(), "`" !== n) { + if ('"' === n && !e.eat('"')) return t.tokenize = f, "string" + } else e.next() + } + return "error" + } + + function g(e, t) { + return y(e, t, h) + } + + function b(e, t) { + return t.tokenize = w, t.startQuote = '"', w(e, t) + } + + function v(e, t) { + return y(e, t, b) + } + + function y(e, t, n) { + if (e.match("$(")) { + var r = t.bracketNesting; + return t.returnStack.push({ + shouldReturnFrom: function(e) { + return e.bracketNesting === r + }, + tokenize: n + }), t.tokenize = f, t.bracketNesting += 1, "punctuation" + } + return e.next(), t.returnStack.push({ + shouldReturnFrom: function() { + return !0 + }, + tokenize: n + }), t.tokenize = x, t.tokenize(e, t) + } + + function k(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (r && ">" == n) { + t.tokenize = f; + break + } + r = "#" === n + } + return "comment" + } + + function x(e, t) { + var r = e.peek(); + return e.eat("{") ? (t.tokenize = _, _(e, t)) : void 0 != r && r.match(n) ? (e.eatWhile(n), t.tokenize = f, "variable-2") : (t.tokenize = f, "error") + } + + function _(e, t) { + for (var n; null != (n = e.next());) + if ("}" === n) { + t.tokenize = f; + break + } + return "variable-2" + } + + function w(e, t) { + var n = t.startQuote; + if (e.sol() && e.match(new RegExp(n + "@"))) t.tokenize = f; + else if ('"' === n) + for (; !e.eol();) { + var r = e.peek(); + if ("$" === r) return t.tokenize = v, "string"; + e.next(), "`" === r && e.next() + } else e.skipToEnd(); + return "string" + } + return { + startState: function() { + return { + returnStack: [], + bracketNesting: 0, + tokenize: f + } + }, + token: function(e, t) { + return t.tokenize(e, t) + }, + blockCommentStart: "<#", + blockCommentEnd: "#>", + lineComment: "#", + fold: "brace" + } + })), e.defineMIME("application/x-powershell", "powershell") + })(n(4631)) + }() + }, + 7999: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("properties", (function() { + return { + token: function(e, t) { + var n = e.sol() || t.afterSection, + r = e.eol(); + if (t.afterSection = !1, n && (t.nextMultiline ? (t.inMultiline = !0, t.nextMultiline = !1) : t.position = "def"), r && !t.nextMultiline && (t.inMultiline = !1, t.position = "def"), n) + for (; e.eatSpace();); + var i = e.next(); + return !n || "#" !== i && "!" !== i && ";" !== i ? n && "[" === i ? (t.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : "=" === i || ":" === i ? (t.position = "quote", null) : ("\\" === i && "quote" === t.position && e.eol() && (t.nextMultiline = !0), t.position) : (t.position = "comment", e.skipToEnd(), "comment") + }, + startState: function() { + return { + position: "def", + nextMultiline: !1, + inMultiline: !1, + afterSection: !1 + } + } + } + })), e.defineMIME("text/x-properties", "properties"), e.defineMIME("text/x-ini", "properties") + }(n(4631)) + }, + 72360: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b", "i") + } + var n = ["package", "message", "import", "syntax", "required", "optional", "repeated", "reserved", "default", "extensions", "packed", "bool", "bytes", "double", "enum", "float", "string", "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64", "option", "service", "rpc", "returns"], + r = t(n); + e.registerHelper("hintWords", "protobuf", n); + var i = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); + + function a(e) { + if (e.eatSpace()) return null; + if (e.match("//")) return e.skipToEnd(), "comment"; + if (e.match(/^[0-9\.+-]/, !1)) { + if (e.match(/^[+-]?0x[0-9a-fA-F]+/)) return "number"; + if (e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return "number"; + if (e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return "number" + } + return e.match(/^"([^"]|(""))*"/) || e.match(/^'([^']|(''))*'/) ? "string" : e.match(r) ? "keyword" : e.match(i) ? "variable" : (e.next(), null) + } + e.defineMode("protobuf", (function() { + return { + token: a, + fold: "brace" + } + })), e.defineMIME("text/x-protobuf", "protobuf") + }(n(4631)) + }, + 75354: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("pug", (function(t) { + var n = "keyword", + r = "meta", + i = "builtin", + a = "qualifier", + o = { + "{": "}", + "(": ")", + "[": "]" + }, + s = e.getMode(t, "javascript"); + + function l() { + this.javaScriptLine = !1, this.javaScriptLineExcludesColon = !1, this.javaScriptArguments = !1, this.javaScriptArgumentsDepth = 0, this.isInterpolating = !1, this.interpolationNesting = 0, this.jsState = e.startState(s), this.restOfLine = "", this.isIncludeFiltered = !1, this.isEach = !1, this.lastTag = "", this.scriptType = "", this.isAttrs = !1, this.attrsNest = [], this.inAttributeName = !0, this.attributeIsType = !1, this.attrValue = "", this.indentOf = 1 / 0, this.indentToken = "", this.innerMode = null, this.innerState = null, this.innerModeForLine = !1 + } + + function c(e, t) { + if (e.sol() && (t.javaScriptLine = !1, t.javaScriptLineExcludesColon = !1), t.javaScriptLine) { + if (t.javaScriptLineExcludesColon && ":" === e.peek()) return t.javaScriptLine = !1, void(t.javaScriptLineExcludesColon = !1); + var n = s.token(e, t.jsState); + return e.eol() && (t.javaScriptLine = !1), n || !0 + } + } + + function u(e, t) { + if (t.javaScriptArguments) return 0 === t.javaScriptArgumentsDepth && "(" !== e.peek() ? void(t.javaScriptArguments = !1) : ("(" === e.peek() ? t.javaScriptArgumentsDepth++ : ")" === e.peek() && t.javaScriptArgumentsDepth--, 0 === t.javaScriptArgumentsDepth ? void(t.javaScriptArguments = !1) : s.token(e, t.jsState) || !0) + } + + function d(e) { + if (e.match(/^yield\b/)) return "keyword" + } + + function p(e) { + if (e.match(/^(?:doctype) *([^\n]+)?/)) return r + } + + function f(e, t) { + if (e.match("#{")) return t.isInterpolating = !0, t.interpolationNesting = 0, "punctuation" + } + + function m(e, t) { + if (t.isInterpolating) { + if ("}" === e.peek()) { + if (t.interpolationNesting--, t.interpolationNesting < 0) return e.next(), t.isInterpolating = !1, "punctuation" + } else "{" === e.peek() && t.interpolationNesting++; + return s.token(e, t.jsState) || !0 + } + } + + function h(e, t) { + if (e.match(/^case\b/)) return t.javaScriptLine = !0, n + } + + function g(e, t) { + if (e.match(/^when\b/)) return t.javaScriptLine = !0, t.javaScriptLineExcludesColon = !0, n + } + + function b(e) { + if (e.match(/^default\b/)) return n + } + + function v(e, t) { + if (e.match(/^extends?\b/)) return t.restOfLine = "string", n + } + + function y(e, t) { + if (e.match(/^append\b/)) return t.restOfLine = "variable", n + } + + function k(e, t) { + if (e.match(/^prepend\b/)) return t.restOfLine = "variable", n + } + + function x(e, t) { + if (e.match(/^block\b *(?:(prepend|append)\b)?/)) return t.restOfLine = "variable", n + } + + function _(e, t) { + if (e.match(/^include\b/)) return t.restOfLine = "string", n + } + + function w(e, t) { + if (e.match(/^include:([a-zA-Z0-9\-]+)/, !1) && e.match("include")) return t.isIncludeFiltered = !0, n + } + + function E(e, t) { + if (t.isIncludeFiltered) { + var n = R(e, t); + return t.isIncludeFiltered = !1, t.restOfLine = "string", n + } + } + + function T(e, t) { + if (e.match(/^mixin\b/)) return t.javaScriptLine = !0, n + } + + function S(e, t) { + return e.match(/^\+([-\w]+)/) ? (e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), "variable") : e.match("+#{", !1) ? (e.next(), t.mixinCallAfter = !0, f(e, t)) : void 0 + } + + function I(e, t) { + if (t.mixinCallAfter) return t.mixinCallAfter = !1, e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), !0 + } + + function N(e, t) { + if (e.match(/^(if|unless|else if|else)\b/)) return t.javaScriptLine = !0, n + } + + function A(e, t) { + if (e.match(/^(- *)?(each|for)\b/)) return t.isEach = !0, n + } + + function O(e, t) { + if (t.isEach) { + if (e.match(/^ in\b/)) return t.javaScriptLine = !0, t.isEach = !1, n; + if (e.sol() || e.eol()) t.isEach = !1; + else if (e.next()) { + for (; !e.match(/^ in\b/, !1) && e.next();); + return "variable" + } + } + } + + function C(e, t) { + if (e.match(/^while\b/)) return t.javaScriptLine = !0, n + } + + function D(e, t) { + var n; + if (n = e.match(/^(\w(?:[-:\w]*\w)?)\/?/)) return t.lastTag = n[1].toLowerCase(), "script" === t.lastTag && (t.scriptType = "application/javascript"), "tag" + } + + function R(n, r) { + var i; + if (n.match(/^:([\w\-]+)/)) return t && t.innerModes && (i = t.innerModes(n.current().substring(1))), i || (i = n.current().substring(1)), "string" === typeof i && (i = e.getMode(t, i)), G(n, r, i), "atom" + } + + function M(e, t) { + if (e.match(/^(!?=|-)/)) return t.javaScriptLine = !0, "punctuation" + } + + function L(e) { + if (e.match(/^#([\w-]+)/)) return i + } + + function z(e) { + if (e.match(/^\.([\w-]+)/)) return a + } + + function F(e, t) { + if ("(" == e.peek()) return e.next(), t.isAttrs = !0, t.attrsNest = [], t.inAttributeName = !0, t.attrValue = "", t.attributeIsType = !1, "punctuation" + } + + function $(t, n) { + if (n.isAttrs) { + if (o[t.peek()] && n.attrsNest.push(o[t.peek()]), n.attrsNest[n.attrsNest.length - 1] === t.peek()) n.attrsNest.pop(); + else if (t.eat(")")) return n.isAttrs = !1, "punctuation"; + if (n.inAttributeName && t.match(/^[^=,\)!]+/)) return "=" !== t.peek() && "!" !== t.peek() || (n.inAttributeName = !1, n.jsState = e.startState(s), "script" === n.lastTag && "type" === t.current().trim().toLowerCase() ? n.attributeIsType = !0 : n.attributeIsType = !1), "attribute"; + var r = s.token(t, n.jsState); + if (n.attributeIsType && "string" === r && (n.scriptType = t.current().toString()), 0 === n.attrsNest.length && ("string" === r || "variable" === r || "keyword" === r)) try { + return Function("", "var x " + n.attrValue.replace(/,\s*$/, "").replace(/^!/, "")), n.inAttributeName = !0, n.attrValue = "", t.backUp(t.current().length), $(t, n) + } catch (i) {} + return n.attrValue += t.current(), r || !0 + } + } + + function P(e, t) { + if (e.match(/^&attributes\b/)) return t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0, "keyword" + } + + function U(e) { + if (e.sol() && e.eatSpace()) return "indent" + } + + function j(e, t) { + if (e.match(/^ *\/\/(-)?([^\n]*)/)) return t.indentOf = e.indentation(), t.indentToken = "comment", "comment" + } + + function q(e) { + if (e.match(/^: */)) return "colon" + } + + function B(e, t) { + return e.match(/^(?:\| ?| )([^\n]+)/) ? "string" : e.match(/^(<[^\n]*)/, !1) ? (G(e, t, "htmlmixed"), t.innerModeForLine = !0, H(e, t, !0)) : void 0 + } + + function V(e, t) { + if (e.eat(".")) { + var n = null; + return "script" === t.lastTag && -1 != t.scriptType.toLowerCase().indexOf("javascript") ? n = t.scriptType.toLowerCase().replace(/"|'/g, "") : "style" === t.lastTag && (n = "css"), G(e, t, n), "dot" + } + } + + function W(e) { + return e.next(), null + } + + function G(n, r, i) { + i = e.mimeModes[i] || i, i = t.innerModes && t.innerModes(i) || i, i = e.mimeModes[i] || i, i = e.getMode(t, i), r.indentOf = n.indentation(), i && "null" !== i.name ? r.innerMode = i : r.indentToken = "string" + } + + function H(t, n, r) { + if (t.indentation() > n.indentOf || n.innerModeForLine && !t.sol() || r) return n.innerMode ? (n.innerState || (n.innerState = n.innerMode.startState ? e.startState(n.innerMode, t.indentation()) : {}), t.hideFirstChars(n.indentOf + 2, (function() { + return n.innerMode.token(t, n.innerState) || !0 + }))) : (t.skipToEnd(), n.indentToken); + t.sol() && (n.indentOf = 1 / 0, n.indentToken = null, n.innerMode = null, n.innerState = null) + } + + function K(e, t) { + if (e.sol() && (t.restOfLine = ""), t.restOfLine) { + e.skipToEnd(); + var n = t.restOfLine; + return t.restOfLine = "", n + } + } + + function Y() { + return new l + } + + function Z(e) { + return e.copy() + } + + function X(e, t) { + var n = H(e, t) || K(e, t) || m(e, t) || E(e, t) || O(e, t) || $(e, t) || c(e, t) || u(e, t) || I(e, t) || d(e) || p(e) || f(e, t) || h(e, t) || g(e, t) || b(e) || v(e, t) || y(e, t) || k(e, t) || x(e, t) || _(e, t) || w(e, t) || T(e, t) || S(e, t) || N(e, t) || A(e, t) || C(e, t) || D(e, t) || R(e, t) || M(e, t) || L(e) || z(e) || F(e, t) || P(e, t) || U(e) || B(e, t) || j(e, t) || q(e) || V(e, t) || W(e); + return !0 === n ? null : n + } + return l.prototype.copy = function() { + var t = new l; + return t.javaScriptLine = this.javaScriptLine, t.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon, t.javaScriptArguments = this.javaScriptArguments, t.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth, t.isInterpolating = this.isInterpolating, t.interpolationNesting = this.interpolationNesting, t.jsState = e.copyState(s, this.jsState), t.innerMode = this.innerMode, this.innerMode && this.innerState && (t.innerState = e.copyState(this.innerMode, this.innerState)), t.restOfLine = this.restOfLine, t.isIncludeFiltered = this.isIncludeFiltered, t.isEach = this.isEach, t.lastTag = this.lastTag, t.scriptType = this.scriptType, t.isAttrs = this.isAttrs, t.attrsNest = this.attrsNest.slice(), t.inAttributeName = this.inAttributeName, t.attributeIsType = this.attributeIsType, t.attrValue = this.attrValue, t.indentOf = this.indentOf, t.indentToken = this.indentToken, t.innerModeForLine = this.innerModeForLine, t + }, { + startState: Y, + copyState: Z, + token: X + } + }), "javascript", "css", "htmlmixed"), e.defineMIME("text/x-pug", "pug"), e.defineMIME("text/x-jade", "pug") + }(n(4631), n(96876), n(36629), n(16531)) + }, + 20673: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("puppet", (function() { + var e = {}, + t = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/; + + function n(t, n) { + for (var r = n.split(" "), i = 0; i < r.length; i++) e[r[i]] = t + } + + function r(e, t) { + for (var n, r, i = !1; !e.eol() && (n = e.next()) != t.pending;) { + if ("$" === n && "\\" != r && '"' == t.pending) { + i = !0; + break + } + r = n + } + return i && e.backUp(1), n == t.pending ? t.continueString = !1 : t.continueString = !0, "string" + } + + function i(n, i) { + var a = n.match(/[\w]+/, !1), + o = n.match(/(\s+)?\w+\s+=>.*/, !1), + s = n.match(/(\s+)?[\w:_]+(\s+)?{/, !1), + l = n.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, !1), + c = n.next(); + if ("$" === c) return n.match(t) ? i.continueString ? "variable-2" : "variable" : "error"; + if (i.continueString) return n.backUp(1), r(n, i); + if (i.inDefinition) { + if (n.match(/(\s+)?[\w:_]+(\s+)?/)) return "def"; + n.match(/\s+{/), i.inDefinition = !1 + } + return i.inInclude ? (n.match(/(\s+)?\S+(\s+)?/), i.inInclude = !1, "def") : n.match(/(\s+)?\w+\(/) ? (n.backUp(1), "def") : o ? (n.match(/(\s+)?\w+/), "tag") : a && e.hasOwnProperty(a) ? (n.backUp(1), n.match(/[\w]+/), n.match(/\s+\S+\s+{/, !1) && (i.inDefinition = !0), "include" == a && (i.inInclude = !0), e[a]) : /(^|\s+)[A-Z][\w:_]+/.test(a) ? (n.backUp(1), n.match(/(^|\s+)[A-Z][\w:_]+/), "def") : s ? (n.match(/(\s+)?[\w:_]+/), "def") : l ? (n.match(/(\s+)?[@]{1,2}/), "special") : "#" == c ? (n.skipToEnd(), "comment") : "'" == c || '"' == c ? (i.pending = c, r(n, i)) : "{" == c || "}" == c ? "bracket" : "/" == c ? (n.match(/^[^\/]*\//), "variable-3") : c.match(/[0-9]/) ? (n.eatWhile(/[0-9]+/), "number") : "=" == c ? (">" == n.peek() && n.next(), "operator") : (n.eatWhile(/[\w-]/), null) + } + return n("keyword", "class define site node include import inherits"), n("keyword", "case if else in and elsif default or"), n("atom", "false true running present absent file directory undef"), n("builtin", "action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"), { + startState: function() { + var e = { + inDefinition: !1, + inInclude: !1, + continueString: !1, + pending: !1 + }; + return e + }, + token: function(e, t) { + return e.eatSpace() ? null : i(e, t) + } + } + })), e.defineMIME("text/x-puppet", "puppet") + }(n(4631)) + }, + 5321: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + } + var n = t(["and", "or", "not", "is"]), + r = ["as", "assert", "break", "class", "continue", "def", "del", "elif", "else", "except", "finally", "for", "from", "global", "if", "import", "lambda", "pass", "raise", "return", "try", "while", "with", "yield", "in"], + i = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr", "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "filter", "float", "format", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "int", "isinstance", "issubclass", "iter", "len", "list", "locals", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "property", "range", "repr", "reversed", "round", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "vars", "zip", "__import__", "NotImplemented", "Ellipsis", "__debug__"]; + + function a(e) { + return e.scopes[e.scopes.length - 1] + } + e.registerHelper("hintWords", "python", r.concat(i)), e.defineMode("python", (function(o, s) { + for (var l = "error", c = s.delimiters || s.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.\\]/, u = [s.singleOperators, s.doubleOperators, s.doubleDelimiters, s.tripleDelimiters, s.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/], d = 0; d < u.length; d++) u[d] || u.splice(d--, 1); + var p = s.hangingIndent || o.indentUnit, + f = r, + m = i; + void 0 != s.extra_keywords && (f = f.concat(s.extra_keywords)), void 0 != s.extra_builtins && (m = m.concat(s.extra_builtins)); + var h = !(s.version && Number(s.version) < 3); + if (h) { + var g = s.identifiers || /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/; + f = f.concat(["nonlocal", "False", "True", "None", "async", "await"]), m = m.concat(["ascii", "bytes", "exec", "print"]); + var b = new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i") + } else g = s.identifiers || /^[_A-Za-z][_A-Za-z0-9]*/, f = f.concat(["exec", "print"]), m = m.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile", "file", "intern", "long", "raw_input", "reduce", "reload", "unichr", "unicode", "xrange", "False", "True", "None"]), b = new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); + var v = t(f), + y = t(m); + + function k(e, t) { + var n = e.sol() && "\\" != t.lastToken; + if (n && (t.indent = e.indentation()), n && "py" == a(t).type) { + var r = a(t).offset; + if (e.eatSpace()) { + var i = e.indentation(); + return i > r ? E(t) : i < r && S(e, t) && "#" != e.peek() && (t.errorToken = !0), null + } + var o = x(e, t); + return r > 0 && S(e, t) && (o += " " + l), o + } + return x(e, t) + } + + function x(e, t, r) { + if (e.eatSpace()) return null; + if (!r && e.match(/^#.*/)) return "comment"; + if (e.match(/^[0-9\.]/, !1)) { + var i = !1; + if (e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i) && (i = !0), e.match(/^[\d_]+\.\d*/) && (i = !0), e.match(/^\.\d+/) && (i = !0), i) return e.eat(/J/i), "number"; + var a = !1; + if (e.match(/^0x[0-9a-f_]+/i) && (a = !0), e.match(/^0b[01_]+/i) && (a = !0), e.match(/^0o[0-7_]+/i) && (a = !0), e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/) && (e.eat(/J/i), a = !0), e.match(/^0(?![\dx])/i) && (a = !0), a) return e.eat(/L/i), "number" + } + if (e.match(b)) return -1 !== e.current().toLowerCase().indexOf("f") ? (t.tokenize = _(e.current(), t.tokenize), t.tokenize(e, t)) : (t.tokenize = w(e.current(), t.tokenize), t.tokenize(e, t)); + for (var o = 0; o < u.length; o++) + if (e.match(u[o])) return "operator"; + return e.match(c) ? "punctuation" : "." == t.lastToken && e.match(g) ? "property" : e.match(v) || e.match(n) ? "keyword" : e.match(y) ? "builtin" : e.match(/^(self|cls)\b/) ? "variable-2" : e.match(g) ? "def" == t.lastToken || "class" == t.lastToken ? "def" : "variable" : (e.next(), r ? null : l) + } + + function _(e, t) { + for (; + "rubf".indexOf(e.charAt(0).toLowerCase()) >= 0;) e = e.substr(1); + var n = 1 == e.length, + r = "string"; + + function i(e) { + return function(t, n) { + var r = x(t, n, !0); + return "punctuation" == r && ("{" == t.current() ? n.tokenize = i(e + 1) : "}" == t.current() && (n.tokenize = e > 1 ? i(e - 1) : a)), r + } + } + + function a(a, o) { + for (; !a.eol();) + if (a.eatWhile(/[^'"\{\}\\]/), a.eat("\\")) { + if (a.next(), n && a.eol()) return r + } else { + if (a.match(e)) return o.tokenize = t, r; + if (a.match("{{")) return r; + if (a.match("{", !1)) return o.tokenize = i(0), a.current() ? r : o.tokenize(a, o); + if (a.match("}}")) return r; + if (a.match("}")) return l; + a.eat(/['"]/) + } + if (n) { + if (s.singleLineStringErrors) return l; + o.tokenize = t + } + return r + } + return a.isString = !0, a + } + + function w(e, t) { + for (; + "rubf".indexOf(e.charAt(0).toLowerCase()) >= 0;) e = e.substr(1); + var n = 1 == e.length, + r = "string"; + + function i(i, a) { + for (; !i.eol();) + if (i.eatWhile(/[^'"\\]/), i.eat("\\")) { + if (i.next(), n && i.eol()) return r + } else { + if (i.match(e)) return a.tokenize = t, r; + i.eat(/['"]/) + } + if (n) { + if (s.singleLineStringErrors) return l; + a.tokenize = t + } + return r + } + return i.isString = !0, i + } + + function E(e) { + for (; + "py" != a(e).type;) e.scopes.pop(); + e.scopes.push({ + offset: a(e).offset + o.indentUnit, + type: "py", + align: null + }) + } + + function T(e, t, n) { + var r = e.match(/^[\s\[\{\(]*(?:#|$)/, !1) ? null : e.column() + 1; + t.scopes.push({ + offset: t.indent + p, + type: n, + align: r + }) + } + + function S(e, t) { + for (var n = e.indentation(); t.scopes.length > 1 && a(t).offset > n;) { + if ("py" != a(t).type) return !0; + t.scopes.pop() + } + return a(t).offset != n + } + + function I(e, t) { + e.sol() && (t.beginningOfLine = !0, t.dedent = !1); + var n = t.tokenize(e, t), + r = e.current(); + if (t.beginningOfLine && "@" == r) return e.match(g, !1) ? "meta" : h ? "operator" : l; + if (/\S/.test(r) && (t.beginningOfLine = !1), "variable" != n && "builtin" != n || "meta" != t.lastToken || (n = "meta"), "pass" != r && "return" != r || (t.dedent = !0), "lambda" == r && (t.lambda = !0), ":" == r && !t.lambda && "py" == a(t).type && e.match(/^\s*(?:#|$)/, !1) && E(t), 1 == r.length && !/string|comment/.test(n)) { + var i = "[({".indexOf(r); + if (-1 != i && T(e, t, "])}".slice(i, i + 1)), -1 != (i = "])}".indexOf(r))) { + if (a(t).type != r) return l; + t.indent = t.scopes.pop().offset - p + } + } + return t.dedent && e.eol() && "py" == a(t).type && t.scopes.length > 1 && t.scopes.pop(), n + } + return { + startState: function(e) { + return { + tokenize: k, + scopes: [{ + offset: e || 0, + type: "py", + align: null + }], + indent: e || 0, + lastToken: null, + lambda: !1, + dedent: 0 + } + }, + token: function(e, t) { + var n = t.errorToken; + n && (t.errorToken = !1); + var r = I(e, t); + return r && "comment" != r && (t.lastToken = "keyword" == r || "punctuation" == r ? e.current() : r), "punctuation" == r && (r = null), e.eol() && t.lambda && (t.lambda = !1), n ? r + " " + l : r + }, + indent: function(t, n) { + if (t.tokenize != k) return t.tokenize.isString ? e.Pass : 0; + var r = a(t), + i = r.type == n.charAt(0) || "py" == r.type && !t.dedent && /^(else:|elif |except |finally:)/.test(n); + return null != r.align ? r.align - (i ? 1 : 0) : r.offset - (i ? p : 0) + }, + electricInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/, + closeBrackets: { + triples: "'\"" + }, + lineComment: "#", + fold: "indent" + } + })), e.defineMIME("text/x-python", "python"); + var o = function(e) { + return e.split(" ") + }; + e.defineMIME("text/x-cython", { + name: "python", + extra_keywords: o("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE") + }) + }(n(4631)) + }, + 97713: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("q", (function(e) { + var t, n = e.indentUnit, + r = a(["abs", "acos", "aj", "aj0", "all", "and", "any", "asc", "asin", "asof", "atan", "attr", "avg", "avgs", "bin", "by", "ceiling", "cols", "cor", "cos", "count", "cov", "cross", "csv", "cut", "delete", "deltas", "desc", "dev", "differ", "distinct", "div", "do", "each", "ej", "enlist", "eval", "except", "exec", "exit", "exp", "fby", "fills", "first", "fkeys", "flip", "floor", "from", "get", "getenv", "group", "gtime", "hclose", "hcount", "hdel", "hopen", "hsym", "iasc", "idesc", "if", "ij", "in", "insert", "inter", "inv", "key", "keys", "last", "like", "list", "lj", "load", "log", "lower", "lsq", "ltime", "ltrim", "mavg", "max", "maxs", "mcount", "md5", "mdev", "med", "meta", "min", "mins", "mmax", "mmin", "mmu", "mod", "msum", "neg", "next", "not", "null", "or", "over", "parse", "peach", "pj", "plist", "prd", "prds", "prev", "prior", "rand", "rank", "ratios", "raze", "read0", "read1", "reciprocal", "reverse", "rload", "rotate", "rsave", "rtrim", "save", "scan", "select", "set", "setenv", "show", "signum", "sin", "sqrt", "ss", "ssr", "string", "sublist", "sum", "sums", "sv", "system", "tables", "tan", "til", "trim", "txf", "type", "uj", "ungroup", "union", "update", "upper", "upsert", "value", "var", "view", "views", "vs", "wavg", "where", "where", "while", "within", "wj", "wj1", "wsum", "xasc", "xbar", "xcol", "xcols", "xdesc", "xexp", "xgroup", "xkey", "xlog", "xprev", "xrank"]), + i = /[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/; + + function a(e) { + return new RegExp("^(" + e.join("|") + ")$") + } + + function o(e, n) { + var a = e.sol(), + l = e.next(); + if (t = null, a) { + if ("/" == l) return (n.tokenize = s)(e, n); + if ("\\" == l) return e.eol() || /\s/.test(e.peek()) ? (e.skipToEnd(), /^\\\s*$/.test(e.current()) ? (n.tokenize = c)(e) : n.tokenize = o, "comment") : (n.tokenize = o, "builtin") + } + if (/\s/.test(l)) return "/" == e.peek() ? (e.skipToEnd(), "comment") : "whitespace"; + if ('"' == l) return (n.tokenize = u)(e, n); + if ("`" == l) return e.eatWhile(/[A-Za-z\d_:\/.]/), "symbol"; + if ("." == l && /\d/.test(e.peek()) || /\d/.test(l)) { + var d = null; + return e.backUp(1), e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) || e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) || e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) || e.match(/^\d+[ptuv]{1}/) ? d = "temporal" : (e.match(/^0[NwW]{1}/) || e.match(/^0x[\da-fA-F]*/) || e.match(/^[01]+[b]{1}/) || e.match(/^\d+[chijn]{1}/) || e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) && (d = "number"), !d || (l = e.peek()) && !i.test(l) ? (e.next(), "error") : d + } + return /[A-Za-z]|\./.test(l) ? (e.eatWhile(/[A-Za-z._\d]/), r.test(e.current()) ? "keyword" : "variable") : /[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(l) || /[{}\(\[\]\)]/.test(l) ? null : "error" + } + + function s(e, t) { + return e.skipToEnd(), /\/\s*$/.test(e.current()) ? (t.tokenize = l)(e, t) : t.tokenize = o, "comment" + } + + function l(e, t) { + var n = e.sol() && "\\" == e.peek(); + return e.skipToEnd(), n && /^\\\s*$/.test(e.current()) && (t.tokenize = o), "comment" + } + + function c(e) { + return e.skipToEnd(), "comment" + } + + function u(e, t) { + for (var n, r = !1, i = !1; n = e.next();) { + if ('"' == n && !r) { + i = !0; + break + } + r = !r && "\\" == n + } + return i && (t.tokenize = o), "string" + } + + function d(e, t, n) { + e.context = { + prev: e.context, + indent: e.indent, + col: n, + type: t + } + } + + function p(e) { + e.indent = e.context.indent, e.context = e.context.prev + } + return { + startState: function() { + return { + tokenize: o, + context: null, + indent: 0, + col: 0 + } + }, + token: function(e, n) { + e.sol() && (n.context && null == n.context.align && (n.context.align = !1), n.indent = e.indentation()); + var r = n.tokenize(e, n); + if ("comment" != r && n.context && null == n.context.align && "pattern" != n.context.type && (n.context.align = !0), "(" == t) d(n, ")", e.column()); + else if ("[" == t) d(n, "]", e.column()); + else if ("{" == t) d(n, "}", e.column()); + else if (/[\]\}\)]/.test(t)) { + for (; n.context && "pattern" == n.context.type;) p(n); + n.context && t == n.context.type && p(n) + } else "." == t && n.context && "pattern" == n.context.type ? p(n) : /atom|string|variable/.test(r) && n.context && (/[\}\]]/.test(n.context.type) ? d(n, "pattern", e.column()) : "pattern" != n.context.type || n.context.align || (n.context.align = !0, n.context.col = e.column())); + return r + }, + indent: function(e, t) { + var r = t && t.charAt(0), + i = e.context; + if (/[\]\}]/.test(r)) + for (; i && "pattern" == i.type;) i = i.prev; + var a = i && r == i.type; + return i ? "pattern" == i.type ? i.col : i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : n) : 0 + } + } + })), e.defineMIME("text/x-q", "q") + }(n(4631)) + }, + 85420: function(e, t, n) { + ! function(e) { + "use strict"; + e.registerHelper("wordChars", "r", /[\w.]/), e.defineMode("r", (function(t) { + function n(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0; + return t + } + var r = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"], + i = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"], + a = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"], + o = ["if", "else", "repeat", "while", "function", "for"]; + e.registerHelper("hintWords", "r", r.concat(i, a)); + var s, l = n(r), + c = n(i), + u = n(a), + d = n(o), + p = /[+\-*\/^<>=!&|~$:]/; + + function f(e, t) { + s = null; + var n = e.next(); + if ("#" == n) return e.skipToEnd(), "comment"; + if ("0" == n && e.eat("x")) return e.eatWhile(/[\da-f]/i), "number"; + if ("." == n && e.eat(/\d/)) return e.match(/\d*(?:e[+\-]?\d+)?/), "number"; + if (/\d/.test(n)) return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/), "number"; + if ("'" == n || '"' == n) return t.tokenize = m(n), "string"; + if ("`" == n) return e.match(/[^`]+`/), "variable-3"; + if ("." == n && e.match(/.(?:[.]|\d+)/)) return "keyword"; + if (/[a-zA-Z\.]/.test(n)) { + e.eatWhile(/[\w\.]/); + var r = e.current(); + return l.propertyIsEnumerable(r) ? "atom" : u.propertyIsEnumerable(r) ? (d.propertyIsEnumerable(r) && !e.match(/\s*if(\s+|$)/, !1) && (s = "block"), "keyword") : c.propertyIsEnumerable(r) ? "builtin" : "variable" + } + return "%" == n ? (e.skipTo("%") && e.next(), "operator variable-2") : "<" == n && e.eat("-") || "<" == n && e.match("<-") || "-" == n && e.match(/>>?/) ? "operator arrow" : "=" == n && t.ctx.argList ? "arg-is" : p.test(n) ? "$" == n ? "operator dollar" : (e.eatWhile(p), "operator") : /[\(\){}\[\];]/.test(n) ? (s = n, ";" == n ? "semi" : null) : null + } + + function m(e) { + return function(t, n) { + if (t.eat("\\")) { + var r = t.next(); + return "x" == r ? t.match(/^[a-f0-9]{2}/i) : ("u" == r || "U" == r) && t.eat("{") && t.skipTo("}") ? t.next() : "u" == r ? t.match(/^[a-f0-9]{4}/i) : "U" == r ? t.match(/^[a-f0-9]{8}/i) : /[0-7]/.test(r) && t.match(/^[0-7]{1,2}/), "string-2" + } + for (var i; null != (i = t.next());) { + if (i == e) { + n.tokenize = f; + break + } + if ("\\" == i) { + t.backUp(1); + break + } + } + return "string" + } + } + var h = 1, + g = 2, + b = 4; + + function v(e, t, n) { + e.ctx = { + type: t, + indent: e.indent, + flags: 0, + column: n.column(), + prev: e.ctx + } + } + + function y(e, t) { + var n = e.ctx; + e.ctx = { + type: n.type, + indent: n.indent, + flags: n.flags | t, + column: n.column, + prev: n.prev + } + } + + function k(e) { + e.indent = e.ctx.indent, e.ctx = e.ctx.prev + } + return { + startState: function() { + return { + tokenize: f, + ctx: { + type: "top", + indent: -t.indentUnit, + flags: g + }, + indent: 0, + afterIdent: !1 + } + }, + token: function(e, t) { + if (e.sol() && (0 == (3 & t.ctx.flags) && (t.ctx.flags |= g), t.ctx.flags & b && k(t), t.indent = e.indentation()), e.eatSpace()) return null; + var n = t.tokenize(e, t); + return "comment" != n && 0 == (t.ctx.flags & g) && y(t, h), ";" != s && "{" != s && "}" != s || "block" != t.ctx.type || k(t), "{" == s ? v(t, "}", e) : "(" == s ? (v(t, ")", e), t.afterIdent && (t.ctx.argList = !0)) : "[" == s ? v(t, "]", e) : "block" == s ? v(t, "block", e) : s == t.ctx.type ? k(t) : "block" == t.ctx.type && "comment" != n && y(t, b), t.afterIdent = "variable" == n || "keyword" == n, n + }, + indent: function(e, n) { + if (e.tokenize != f) return 0; + var r = n && n.charAt(0), + i = e.ctx, + a = r == i.type; + return i.flags & b && (i = i.prev), "block" == i.type ? i.indent + ("{" == r ? 0 : t.indentUnit) : i.flags & h ? i.column + (a ? 0 : 1) : i.indent + (a ? 0 : t.indentUnit) + }, + lineComment: "#" + } + })), e.defineMIME("text/x-rsrc", "r") + }(n(4631)) + }, + 4344: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("rpm-changes", (function() { + var e = /^-+$/, + t = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /, + n = /^[\w+.-]+@[\w.-]+/; + return { + token: function(r) { + if (r.sol()) { + if (r.match(e)) return "tag"; + if (r.match(t)) return "tag" + } + return r.match(n) ? "string" : (r.next(), null) + } + } + })), e.defineMIME("text/x-rpm-changes", "rpm-changes"), e.defineMode("rpm-spec", (function() { + var e = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/, + t = /^[a-zA-Z0-9()]+:/, + n = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/, + r = /^%(ifnarch|ifarch|if)/, + i = /^%(else|endif)/, + a = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; + return { + startState: function() { + return { + controlFlow: !1, + macroParameters: !1, + section: !1 + } + }, + token: function(o, s) { + if ("#" == o.peek()) return o.skipToEnd(), "comment"; + if (o.sol()) { + if (o.match(t)) return "header"; + if (o.match(n)) return "atom" + } + if (o.match(/^\$\w+/)) return "def"; + if (o.match(/^\$\{\w+\}/)) return "def"; + if (o.match(i)) return "keyword"; + if (o.match(r)) return s.controlFlow = !0, "keyword"; + if (s.controlFlow) { + if (o.match(a)) return "operator"; + if (o.match(/^(\d+)/)) return "number"; + o.eol() && (s.controlFlow = !1) + } + if (o.match(e)) return o.eol() && (s.controlFlow = !1), "number"; + if (o.match(/^%[\w]+/)) return o.match("(") && (s.macroParameters = !0), "keyword"; + if (s.macroParameters) { + if (o.match(/^\d+/)) return "number"; + if (o.match(")")) return s.macroParameters = !1, "keyword" + } + return o.match(/^%\{\??[\w \-\:\!]+\}/) ? (o.eol() && (s.controlFlow = !1), "def") : (o.next(), null) + } + } + })), e.defineMIME("text/x-rpm-spec", "rpm-spec") + }(n(4631)) + }, + 22968: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("rst", (function(t, n) { + var r = /^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/, + i = /^\*[^\*\s](?:[^\*]*[^\*\s])?\*/, + a = /^``[^`\s](?:[^`]*[^`\s])``/, + o = /^(?:[\d]+(?:[\.,]\d+)*)/, + s = /^(?:\s\+[\d]+(?:[\.,]\d+)*)/, + l = /^(?:\s\-[\d]+(?:[\.,]\d+)*)/, + c = new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"), + u = { + token: function(e) { + if (e.match(r) && e.match(/\W+|$/, !1)) return "strong"; + if (e.match(i) && e.match(/\W+|$/, !1)) return "em"; + if (e.match(a) && e.match(/\W+|$/, !1)) return "string-2"; + if (e.match(o)) return "number"; + if (e.match(s)) return "positive"; + if (e.match(l)) return "negative"; + if (e.match(c)) return "link"; + for (; null != e.next() && !e.match(r, !1) && !e.match(i, !1) && !e.match(a, !1) && !e.match(o, !1) && !e.match(s, !1) && !e.match(l, !1) && !e.match(c, !1);); + return null + } + }, + d = e.getMode(t, n.backdrop || "rst-base"); + return e.overlayMode(d, u, !0) + }), "python", "stex"), e.defineMode("rst-base", (function(t) { + function n(e) { + var t = Array.prototype.slice.call(arguments, 1); + return e.replace(/{(\d+)}/g, (function(e, n) { + return "undefined" != typeof t[n] ? t[n] : e + })) + } + var r = e.getMode(t, "python"), + i = e.getMode(t, "stex"), + a = "\\s+", + o = "(?:\\s*|\\W|$)", + s = new RegExp(n("^{0}", o)), + l = "(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)", + c = new RegExp(n("^{0}", l)), + u = n("(?:{0}|`{1}`)", l, "(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"), + d = "(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)", + p = "(?:[^\\`]+)", + f = new RegExp(n("^{0}", p)), + m = new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"), + h = new RegExp(n("^\\.\\.{0}", a)), + g = new RegExp(n("^_{0}:{1}|^__:{1}", u, o)), + b = new RegExp(n("^{0}::{1}", u, o)), + v = new RegExp(n("^\\|{0}\\|{1}{2}::{3}", d, a, u, o)), + y = new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}", u, o)), + k = new RegExp(n("^\\[{0}\\]{1}", u, o)), + x = new RegExp(n("^\\|{0}\\|", d)), + _ = new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_", u)), + w = new RegExp(n("^\\[{0}\\]_", u)), + E = new RegExp(n("^{0}__?", u)), + T = new RegExp(n("^`{0}`_", p)), + S = new RegExp(n("^:{0}:`{1}`{2}", l, p, o)), + I = new RegExp(n("^`{1}`:{0}:{2}", l, p, o)), + N = new RegExp(n("^:{0}:{1}", l, o)), + A = new RegExp(n("^{0}", u)), + O = new RegExp(n("^::{0}", o)), + C = new RegExp(n("^\\|{0}\\|", d)), + D = new RegExp(n("^{0}", a)), + R = new RegExp(n("^{0}", u)), + M = new RegExp(n("^::{0}", o)), + L = new RegExp("^_"), + z = new RegExp(n("^{0}|_", u)), + F = new RegExp(n("^:{0}", o)), + $ = new RegExp("^::\\s*$"), + P = new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s"); + + function U(t, n) { + var a = null; + if (t.sol() && t.match(P, !1)) H(n, W, { + mode: r, + local: e.startState(r) + }); + else if (t.sol() && t.match(h)) H(n, j), a = "meta"; + else if (t.sol() && t.match(m)) H(n, U), a = "header"; + else if (Y(n) == S || t.match(S, !1)) switch (K(n)) { + case 0: + H(n, U, G(S, 1)), t.match(/^:/), a = "meta"; + break; + case 1: + H(n, U, G(S, 2)), t.match(c), a = "keyword", t.current().match(/^(?:math|latex)/) && (n.tmp_stex = !0); + break; + case 2: + H(n, U, G(S, 3)), t.match(/^:`/), a = "meta"; + break; + case 3: + if (n.tmp_stex && (n.tmp_stex = void 0, n.tmp = { + mode: i, + local: e.startState(i) + }), n.tmp) { + if ("`" == t.peek()) { + H(n, U, G(S, 4)), n.tmp = void 0; + break + } + a = n.tmp.mode.token(t, n.tmp.local); + break + } + H(n, U, G(S, 4)), t.match(f), a = "string"; + break; + case 4: + H(n, U, G(S, 5)), t.match(/^`/), a = "meta"; + break; + case 5: + H(n, U, G(S, 6)), t.match(s); + break; + default: + H(n, U) + } else if (Y(n) == I || t.match(I, !1)) switch (K(n)) { + case 0: + H(n, U, G(I, 1)), t.match(/^`/), a = "meta"; + break; + case 1: + H(n, U, G(I, 2)), t.match(f), a = "string"; + break; + case 2: + H(n, U, G(I, 3)), t.match(/^`:/), a = "meta"; + break; + case 3: + H(n, U, G(I, 4)), t.match(c), a = "keyword"; + break; + case 4: + H(n, U, G(I, 5)), t.match(/^:/), a = "meta"; + break; + case 5: + H(n, U, G(I, 6)), t.match(s); + break; + default: + H(n, U) + } else if (Y(n) == N || t.match(N, !1)) switch (K(n)) { + case 0: + H(n, U, G(N, 1)), t.match(/^:/), a = "meta"; + break; + case 1: + H(n, U, G(N, 2)), t.match(c), a = "keyword"; + break; + case 2: + H(n, U, G(N, 3)), t.match(/^:/), a = "meta"; + break; + case 3: + H(n, U, G(N, 4)), t.match(s); + break; + default: + H(n, U) + } else if (Y(n) == x || t.match(x, !1)) switch (K(n)) { + case 0: + H(n, U, G(x, 1)), t.match(C), a = "variable-2"; + break; + case 1: + H(n, U, G(x, 2)), t.match(/^_?_?/) && (a = "link"); + break; + default: + H(n, U) + } else if (t.match(_)) H(n, U), a = "quote"; + else if (t.match(w)) H(n, U), a = "quote"; + else if (t.match(E)) H(n, U), t.peek() && !t.peek().match(/^\W$/) || (a = "link"); + else if (Y(n) == T || t.match(T, !1)) switch (K(n)) { + case 0: + !t.peek() || t.peek().match(/^\W$/) ? H(n, U, G(T, 1)) : t.match(T); + break; + case 1: + H(n, U, G(T, 2)), t.match(/^`/), a = "link"; + break; + case 2: + H(n, U, G(T, 3)), t.match(f); + break; + case 3: + H(n, U, G(T, 4)), t.match(/^`_/), a = "link"; + break; + default: + H(n, U) + } else t.match($) ? H(n, B) : t.next() && H(n, U); + return a + } + + function j(t, n) { + var a = null; + if (Y(n) == v || t.match(v, !1)) switch (K(n)) { + case 0: + H(n, j, G(v, 1)), t.match(C), a = "variable-2"; + break; + case 1: + H(n, j, G(v, 2)), t.match(D); + break; + case 2: + H(n, j, G(v, 3)), t.match(R), a = "keyword"; + break; + case 3: + H(n, j, G(v, 4)), t.match(M), a = "meta"; + break; + default: + H(n, U) + } else if (Y(n) == b || t.match(b, !1)) switch (K(n)) { + case 0: + H(n, j, G(b, 1)), t.match(A), a = "keyword", t.current().match(/^(?:math|latex)/) ? n.tmp_stex = !0 : t.current().match(/^python/) && (n.tmp_py = !0); + break; + case 1: + H(n, j, G(b, 2)), t.match(O), a = "meta", (t.match(/^latex\s*$/) || n.tmp_stex) && (n.tmp_stex = void 0, H(n, W, { + mode: i, + local: e.startState(i) + })); + break; + case 2: + H(n, j, G(b, 3)), (t.match(/^python\s*$/) || n.tmp_py) && (n.tmp_py = void 0, H(n, W, { + mode: r, + local: e.startState(r) + })); + break; + default: + H(n, U) + } else if (Y(n) == g || t.match(g, !1)) switch (K(n)) { + case 0: + H(n, j, G(g, 1)), t.match(L), t.match(z), a = "link"; + break; + case 1: + H(n, j, G(g, 2)), t.match(F), a = "meta"; + break; + default: + H(n, U) + } else t.match(y) || t.match(k) ? (H(n, U), a = "quote") : (t.eatSpace(), t.eol() ? H(n, U) : (t.skipToEnd(), H(n, q), a = "comment")); + return a + } + + function q(e, t) { + return V(e, t, "comment") + } + + function B(e, t) { + return V(e, t, "meta") + } + + function V(e, t, n) { + return e.eol() || e.eatSpace() ? (e.skipToEnd(), n) : (H(t, U), null) + } + + function W(e, t) { + return t.ctx.mode && t.ctx.local ? e.sol() ? (e.eatSpace() || H(t, U), null) : t.ctx.mode.token(e, t.ctx.local) : (H(t, U), null) + } + + function G(e, t, n, r) { + return { + phase: e, + stage: t, + mode: n, + local: r + } + } + + function H(e, t, n) { + e.tok = t, e.ctx = n || {} + } + + function K(e) { + return e.ctx.stage || 0 + } + + function Y(e) { + return e.ctx.phase + } + return { + startState: function() { + return { + tok: U, + ctx: G(void 0, 0) + } + }, + copyState: function(t) { + var n = t.ctx, + r = t.tmp; + return n.local && (n = { + mode: n.mode, + local: e.copyState(n.mode, n.local) + }), r && (r = { + mode: r.mode, + local: e.copyState(r.mode, r.local) + }), { + tok: t.tok, + ctx: n, + tmp: r + } + }, + innerMode: function(e) { + return e.tmp ? { + state: e.tmp.local, + mode: e.tmp.mode + } : e.ctx.mode ? { + state: e.ctx.local, + mode: e.ctx.mode + } : null + }, + token: function(e, t) { + return t.tok(e, t) + } + } + }), "python", "stex"), e.defineMIME("text/x-rst", "rst") + }(n(4631), n(5321), n(80785), n(14146)) + }, + 80853: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0; + return t + } + var n = ["alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc", "caller", "lambda", "proc", "public", "protected", "private", "require", "load", "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__"], + r = t(n), + i = t(["def", "class", "case", "for", "while", "until", "module", "then", "catch", "loop", "proc", "begin"]), + a = t(["end", "until"]), + o = { + "[": "]", + "{": "}", + "(": ")" + }, + s = { + "]": "[", + "}": "{", + ")": "(" + }; + e.defineMode("ruby", (function(t) { + var n; + + function l(e, t, n) { + return n.tokenize.push(e), e(t, n) + } + + function c(e, t) { + if (e.sol() && e.match("=begin") && e.eol()) return t.tokenize.push(h), "comment"; + if (e.eatSpace()) return null; + var r, i = e.next(); + if ("`" == i || "'" == i || '"' == i) return l(f(i, "string", '"' == i || "`" == i), e, t); + if ("/" == i) return u(e) ? l(f(i, "string-2", !0), e, t) : "operator"; + if ("%" == i) { + var a = "string", + s = !0; + e.eat("s") ? a = "atom" : e.eat(/[WQ]/) ? a = "string" : e.eat(/[r]/) ? a = "string-2" : e.eat(/[wxq]/) && (a = "string", s = !1); + var c = e.eat(/[^\w\s=]/); + return c ? (o.propertyIsEnumerable(c) && (c = o[c]), l(f(c, a, s, !0), e, t)) : "operator" + } + if ("#" == i) return e.skipToEnd(), "comment"; + if ("<" == i && (r = e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) return l(m(r[2], r[1]), e, t); + if ("0" == i) return e.eat("x") ? e.eatWhile(/[\da-fA-F]/) : e.eat("b") ? e.eatWhile(/[01]/) : e.eatWhile(/[0-7]/), "number"; + if (/\d/.test(i)) return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number"; + if ("?" == i) { + for (; e.match(/^\\[CM]-/);); + return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string" + } + if (":" == i) return e.eat("'") ? l(f("'", "atom", !1), e, t) : e.eat('"') ? l(f('"', "atom", !0), e, t) : e.eat(/[\<\>]/) ? (e.eat(/[\<\>]/), "atom") : e.eat(/[\+\-\*\/\&\|\:\!]/) ? "atom" : e.eat(/[a-zA-Z$@_\xa1-\uffff]/) ? (e.eatWhile(/[\w$\xa1-\uffff]/), e.eat(/[\?\!\=]/), "atom") : "operator"; + if ("@" == i && e.match(/^@?[a-zA-Z_\xa1-\uffff]/)) return e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "variable-2"; + if ("$" == i) return e.eat(/[a-zA-Z_]/) ? e.eatWhile(/[\w]/) : e.eat(/\d/) ? e.eat(/\d/) : e.next(), "variable-3"; + if (/[a-zA-Z_\xa1-\uffff]/.test(i)) return e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "ident"; + if ("|" != i || !t.varList && "{" != t.lastTok && "do" != t.lastTok) { + if (/[\(\)\[\]{}\\;]/.test(i)) return n = i, null; + if ("-" == i && e.eat(">")) return "arrow"; + if (/[=+\-\/*:\.^%<>~|]/.test(i)) { + var d = e.eatWhile(/[=+\-\/*:\.^%<>~|]/); + return "." != i || d || (n = "."), "operator" + } + return null + } + return n = "|", null + } + + function u(e) { + for (var t, n = e.pos, r = 0, i = !1, a = !1; null != (t = e.next());) + if (a) a = !1; + else { + if ("[{(".indexOf(t) > -1) r++; + else if ("]})".indexOf(t) > -1) { + if (--r < 0) break + } else if ("/" == t && 0 == r) { + i = !0; + break + } + a = "\\" == t + } + return e.backUp(e.pos - n), i + } + + function d(e) { + return e || (e = 1), + function(t, n) { + if ("}" == t.peek()) { + if (1 == e) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n); + n.tokenize[n.tokenize.length - 1] = d(e - 1) + } else "{" == t.peek() && (n.tokenize[n.tokenize.length - 1] = d(e + 1)); + return c(t, n) + } + } + + function p() { + var e = !1; + return function(t, n) { + return e ? (n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n)) : (e = !0, c(t, n)) + } + } + + function f(e, t, n, r) { + return function(i, a) { + var o, s = !1; + for ("read-quoted-paused" === a.context.type && (a.context = a.context.prev, i.eat("}")); null != (o = i.next());) { + if (o == e && (r || !s)) { + a.tokenize.pop(); + break + } + if (n && "#" == o && !s) { + if (i.eat("{")) { + "}" == e && (a.context = { + prev: a.context, + type: "read-quoted-paused" + }), a.tokenize.push(d()); + break + } + if (/[@\$]/.test(i.peek())) { + a.tokenize.push(p()); + break + } + } + s = !s && "\\" == o + } + return t + } + } + + function m(e, t) { + return function(n, r) { + return t && n.eatSpace(), n.match(e) ? r.tokenize.pop() : n.skipToEnd(), "string" + } + } + + function h(e, t) { + return e.sol() && e.match("=end") && e.eol() && t.tokenize.pop(), e.skipToEnd(), "comment" + } + return { + startState: function() { + return { + tokenize: [c], + indented: 0, + context: { + type: "top", + indented: -t.indentUnit + }, + continuedLine: !1, + lastTok: null, + varList: !1 + } + }, + token: function(e, t) { + n = null, e.sol() && (t.indented = e.indentation()); + var o, s = t.tokenize[t.tokenize.length - 1](e, t), + l = n; + if ("ident" == s) { + var c = e.current(); + "keyword" == (s = "." == t.lastTok ? "property" : r.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(c) ? "tag" : "def" == t.lastTok || "class" == t.lastTok || t.varList ? "def" : "variable") && (l = c, i.propertyIsEnumerable(c) ? o = "indent" : a.propertyIsEnumerable(c) ? o = "dedent" : "if" != c && "unless" != c || e.column() != e.indentation() ? "do" == c && t.context.indented < t.indented && (o = "indent") : o = "indent") + } + return (n || s && "comment" != s) && (t.lastTok = l), "|" == n && (t.varList = !t.varList), "indent" == o || /[\(\[\{]/.test(n) ? t.context = { + prev: t.context, + type: n || s, + indented: t.indented + } : ("dedent" == o || /[\)\]\}]/.test(n)) && t.context.prev && (t.context = t.context.prev), e.eol() && (t.continuedLine = "\\" == n || "operator" == s), s + }, + indent: function(n, r) { + if (n.tokenize[n.tokenize.length - 1] != c) return e.Pass; + var i = r && r.charAt(0), + a = n.context, + o = a.type == s[i] || "keyword" == a.type && /^(?:end|until|else|elsif|when|rescue)\b/.test(r); + return a.indented + (o ? 0 : t.indentUnit) + (n.continuedLine ? t.indentUnit : 0) + }, + electricInput: /^\s*(?:end|rescue|elsif|else|\})$/, + lineComment: "#", + fold: "indent" + } + })), e.defineMIME("text/x-ruby", "ruby"), e.registerHelper("hintWords", "ruby", n) + }(n(4631)) + }, + 90911: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineSimpleMode("rust", { + start: [{ + regex: /b?"/, + token: "string", + next: "string" + }, { + regex: /b?r"/, + token: "string", + next: "string_raw" + }, { + regex: /b?r#+"/, + token: "string", + next: "string_raw_hash" + }, { + regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/, + token: "string-2" + }, { + regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/, + token: "string-2" + }, { + regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/, + token: "number" + }, { + regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, + token: ["keyword", null, "def"] + }, { + regex: /(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, + token: "keyword" + }, { + regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/, + token: "atom" + }, { + regex: /\b(?:true|false|Some|None|Ok|Err)\b/, + token: "builtin" + }, { + regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, + token: ["keyword", null, "def"] + }, { + regex: /#!?\[.*\]/, + token: "meta" + }, { + regex: /\/\/.*/, + token: "comment" + }, { + regex: /\/\*/, + token: "comment", + next: "comment" + }, { + regex: /[-+\/*=<>!]+/, + token: "operator" + }, { + regex: /[a-zA-Z_]\w*!/, + token: "variable-3" + }, { + regex: /[a-zA-Z_]\w*/, + token: "variable" + }, { + regex: /[\{\[\(]/, + indent: !0 + }, { + regex: /[\}\]\)]/, + dedent: !0 + }], + string: [{ + regex: /"/, + token: "string", + next: "start" + }, { + regex: /(?:[^\\"]|\\(?:.|$))*/, + token: "string" + }], + string_raw: [{ + regex: /"/, + token: "string", + next: "start" + }, { + regex: /[^"]*/, + token: "string" + }], + string_raw_hash: [{ + regex: /"#+/, + token: "string", + next: "start" + }, { + regex: /(?:[^"]|"(?!#))*/, + token: "string" + }], + comment: [{ + regex: /.*?\*\//, + token: "comment", + next: "start" + }, { + regex: /.*/, + token: "comment" + }], + meta: { + dontIndentStates: ["comment"], + electricInput: /^\s*\}$/, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "brace" + } + }), e.defineMIME("text/x-rustsrc", "rust"), e.defineMIME("text/rust", "rust") + }(n(4631), n(40790)) + }, + 16229: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("sas", (function() { + var e = {}, + t = { + eq: "operator", + lt: "operator", + le: "operator", + gt: "operator", + ge: "operator", + in: "operator", + ne: "operator", + or: "operator" + }, + n = /(<=|>=|!=|<>)/, + r = /[=\(:\),{}.*<>+\-\/^\[\]]/; + + function i(t, n, r) { + if (r) + for (var i = n.split(" "), a = 0; a < i.length; a++) e[i[a]] = { + style: t, + state: r + } + } + + function a(i, a) { + var o = i.next(); + if ("/" === o && i.eat("*")) return a.continueComment = !0, "comment"; + if (!0 === a.continueComment) return "*" === o && "/" === i.peek() ? (i.next(), a.continueComment = !1) : i.skipTo("*") ? (i.skipTo("*"), i.next(), i.eat("/") && (a.continueComment = !1)) : i.skipToEnd(), "comment"; + if ("*" == o && i.column() == i.indentation()) return i.skipToEnd(), "comment"; + var s, l = o + i.peek(); + if (!('"' !== o && "'" !== o || a.continueString)) return a.continueString = o, "string"; + if (a.continueString) return a.continueString == o ? a.continueString = null : i.skipTo(a.continueString) ? (i.next(), a.continueString = null) : i.skipToEnd(), "string"; + if (null !== a.continueString && i.eol()) return i.skipTo(a.continueString) || i.skipToEnd(), "string"; + if (/[\d\.]/.test(o)) return "." === o ? i.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" === o ? i.match(/^[xX][0-9a-fA-F]+/) || i.match(/^0[0-7]+/) : i.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number"; + if (n.test(o + i.peek())) return i.next(), "operator"; + if (t.hasOwnProperty(l)) { + if (i.next(), " " === i.peek()) return t[l.toLowerCase()] + } else if (r.test(o)) return "operator"; + if (null != i.match(/[%&;\w]+/, !1)) { + if (s = o + i.match(/[%&;\w]+/, !0), /&/.test(s)) return "variable" + } else s = o; + if (a.nextword) return i.match(/[\w]+/), "." === i.peek() && i.skipTo(" "), a.nextword = !1, "variable-2"; + if (s = s.toLowerCase(), a.inDataStep) { + if ("run;" === s || i.match(/run\s;/)) return a.inDataStep = !1, "builtin"; + if (s && "." === i.next()) return /\w/.test(i.peek()) ? "variable-2" : "variable"; + if (s && e.hasOwnProperty(s) && (-1 !== e[s].state.indexOf("inDataStep") || -1 !== e[s].state.indexOf("ALL"))) { + i.start < i.pos && i.backUp(i.pos - i.start); + for (var c = 0; c < s.length; ++c) i.next(); + return e[s].style + } + } + if (a.inProc) { + if ("run;" === s || "quit;" === s) return a.inProc = !1, "builtin"; + if (s && e.hasOwnProperty(s) && (-1 !== e[s].state.indexOf("inProc") || -1 !== e[s].state.indexOf("ALL"))) return i.match(/[\w]+/), e[s].style + } + return a.inMacro ? "%mend" === s ? (";" === i.peek() && i.next(), a.inMacro = !1, "builtin") : s && e.hasOwnProperty(s) && (-1 !== e[s].state.indexOf("inMacro") || -1 !== e[s].state.indexOf("ALL")) ? (i.match(/[\w]+/), e[s].style) : "atom" : s && e.hasOwnProperty(s) ? (i.backUp(1), i.match(/[\w]+/), "data" === s && !1 === /=/.test(i.peek()) ? (a.inDataStep = !0, a.nextword = !0, "builtin") : "proc" === s ? (a.inProc = !0, a.nextword = !0, "builtin") : "%macro" === s ? (a.inMacro = !0, a.nextword = !0, "builtin") : /title[1-9]/.test(s) ? "def" : "footnote" === s ? (i.eat(/[1-9]/), "def") : !0 === a.inDataStep && -1 !== e[s].state.indexOf("inDataStep") || !0 === a.inProc && -1 !== e[s].state.indexOf("inProc") || !0 === a.inMacro && -1 !== e[s].state.indexOf("inMacro") || -1 !== e[s].state.indexOf("ALL") ? e[s].style : null) : null + } + return i("def", "stack pgm view source debug nesting nolist", ["inDataStep"]), i("def", "if while until for do do; end end; then else cancel", ["inDataStep"]), i("def", "label format _n_ _error_", ["inDataStep"]), i("def", "ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME", ["inDataStep"]), i("def", "filevar finfo finv fipname fipnamel fipstate first firstobs floor", ["inDataStep"]), i("def", "varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday", ["inDataStep"]), i("def", "zipfips zipname zipnamel zipstate", ["inDataStep"]), i("def", "put putc putn", ["inDataStep"]), i("builtin", "data run", ["inDataStep"]), i("def", "data", ["inProc"]), i("def", "%if %end %end; %else %else; %do %do; %then", ["inMacro"]), i("builtin", "proc run; quit; libname filename %macro %mend option options", ["ALL"]), i("def", "footnote title libname ods", ["ALL"]), i("def", "%let %put %global %sysfunc %eval ", ["ALL"]), i("variable", "&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext", ["ALL"]), i("def", "source2 nosource2 page pageno pagesize", ["ALL"]), i("def", "_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max", ["inDataStep", "inProc"]), i("operator", "and not ", ["inDataStep", "inProc"]), { + startState: function() { + return { + inDataStep: !1, + inProc: !1, + inMacro: !1, + nextword: !1, + continueString: null, + continueComment: !1 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : a(e, t) + }, + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + })), e.defineMIME("text/x-sas", "sas") + }(n(4631)) + }, + 81201: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("sass", (function(t) { + var n = e.mimeModes["text/css"], + r = n.propertyKeywords || {}, + i = n.colorKeywords || {}, + a = n.valueKeywords || {}, + o = n.fontProperties || {}; + + function s(e) { + return new RegExp("^" + e.join("|")) + } + var l, c = new RegExp("^" + ["true", "false", "null", "auto"].join("|")), + u = s(["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\\+", "-", "\\!=", "/", "\\*", "%", "and", "or", "not", ";", "\\{", "\\}", ":"]), + d = /^::?[a-zA-Z_][\w\-]*/; + + function p(e) { + return !e.peek() || e.match(/\s+$/, !1) + } + + function f(e, t) { + var n = e.peek(); + return ")" === n ? (e.next(), t.tokenizer = y, "operator") : "(" === n ? (e.next(), e.eatSpace(), "operator") : "'" === n || '"' === n ? (t.tokenizer = h(e.next()), "string") : (t.tokenizer = h(")", !1), "string") + } + + function m(e, t) { + return function(n, r) { + return n.sol() && n.indentation() <= e ? (r.tokenizer = y, y(n, r)) : (t && n.skipTo("*/") ? (n.next(), n.next(), r.tokenizer = y) : n.skipToEnd(), "comment") + } + } + + function h(e, t) { + function n(r, i) { + var a = r.next(), + o = r.peek(), + s = r.string.charAt(r.pos - 2); + return "\\" !== a && o === e || a === e && "\\" !== s ? (a !== e && t && r.next(), p(r) && (i.cursorHalf = 0), i.tokenizer = y, "string") : "#" === a && "{" === o ? (i.tokenizer = g(n), r.next(), "operator") : "string" + } + return null == t && (t = !0), n + } + + function g(e) { + return function(t, n) { + return "}" === t.peek() ? (t.next(), n.tokenizer = e, "operator") : y(t, n) + } + } + + function b(e) { + if (0 == e.indentCount) { + e.indentCount++; + var n = e.scopes[0].offset + t.indentUnit; + e.scopes.unshift({ + offset: n + }) + } + } + + function v(e) { + 1 != e.scopes.length && e.scopes.shift() + } + + function y(e, t) { + var n = e.peek(); + if (e.match("/*")) return t.tokenizer = m(e.indentation(), !0), t.tokenizer(e, t); + if (e.match("//")) return t.tokenizer = m(e.indentation(), !1), t.tokenizer(e, t); + if (e.match("#{")) return t.tokenizer = g(y), "operator"; + if ('"' === n || "'" === n) return e.next(), t.tokenizer = h(n), "string"; + if (t.cursorHalf) { + if ("#" === n && (e.next(), e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))) return p(e) && (t.cursorHalf = 0), "number"; + if (e.match(/^-?[0-9\.]+/)) return p(e) && (t.cursorHalf = 0), "number"; + if (e.match(/^(px|em|in)\b/)) return p(e) && (t.cursorHalf = 0), "unit"; + if (e.match(c)) return p(e) && (t.cursorHalf = 0), "keyword"; + if (e.match(/^url/) && "(" === e.peek()) return t.tokenizer = f, p(e) && (t.cursorHalf = 0), "atom"; + if ("$" === n) return e.next(), e.eatWhile(/[\w-]/), p(e) && (t.cursorHalf = 0), "variable-2"; + if ("!" === n) return e.next(), t.cursorHalf = 0, e.match(/^[\w]+/) ? "keyword" : "operator"; + if (e.match(u)) return p(e) && (t.cursorHalf = 0), "operator"; + if (e.eatWhile(/[\w-]/)) return p(e) && (t.cursorHalf = 0), l = e.current().toLowerCase(), a.hasOwnProperty(l) ? "atom" : i.hasOwnProperty(l) ? "keyword" : r.hasOwnProperty(l) ? (t.prevProp = e.current().toLowerCase(), "property") : "tag"; + if (p(e)) return t.cursorHalf = 0, null + } else { + if ("-" === n && e.match(/^-\w+-/)) return "meta"; + if ("." === n) { + if (e.next(), e.match(/^[\w-]+/)) return b(t), "qualifier"; + if ("#" === e.peek()) return b(t), "tag" + } + if ("#" === n) { + if (e.next(), e.match(/^[\w-]+/)) return b(t), "builtin"; + if ("#" === e.peek()) return b(t), "tag" + } + if ("$" === n) return e.next(), e.eatWhile(/[\w-]/), "variable-2"; + if (e.match(/^-?[0-9\.]+/)) return "number"; + if (e.match(/^(px|em|in)\b/)) return "unit"; + if (e.match(c)) return "keyword"; + if (e.match(/^url/) && "(" === e.peek()) return t.tokenizer = f, "atom"; + if ("=" === n && e.match(/^=[\w-]+/)) return b(t), "meta"; + if ("+" === n && e.match(/^\+[\w-]+/)) return "variable-3"; + if ("@" === n && e.match("@extend") && (e.match(/\s*[\w]/) || v(t)), e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)) return b(t), "def"; + if ("@" === n) return e.next(), e.eatWhile(/[\w-]/), "def"; + if (e.eatWhile(/[\w-]/)) { + if (e.match(/ *: *[\w-\+\$#!\("']/, !1)) { + l = e.current().toLowerCase(); + var s = t.prevProp + "-" + l; + return r.hasOwnProperty(s) ? "property" : r.hasOwnProperty(l) ? (t.prevProp = l, "property") : o.hasOwnProperty(l) ? "property" : "tag" + } + return e.match(/ *:/, !1) ? (b(t), t.cursorHalf = 1, t.prevProp = e.current().toLowerCase(), "property") : (e.match(/ *,/, !1) || b(t), "tag") + } + if (":" === n) return e.match(d) ? "variable-3" : (e.next(), t.cursorHalf = 1, "operator") + } + return e.match(u) ? "operator" : (e.next(), null) + } + + function k(e, n) { + e.sol() && (n.indentCount = 0); + var r = n.tokenizer(e, n), + i = e.current(); + if ("@return" !== i && "}" !== i || v(n), null !== r) { + for (var a = e.pos - i.length + t.indentUnit * n.indentCount, o = [], s = 0; s < n.scopes.length; s++) { + var l = n.scopes[s]; + l.offset <= a && o.push(l) + } + n.scopes = o + } + return r + } + return { + startState: function() { + return { + tokenizer: y, + scopes: [{ + offset: 0, + type: "sass" + }], + indentCount: 0, + cursorHalf: 0, + definedVars: [], + definedMixins: [] + } + }, + token: function(e, t) { + var n = k(e, t); + return t.lastToken = { + style: n, + content: e.current() + }, n + }, + indent: function(e) { + return e.scopes[0].offset + }, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "indent" + } + }), "css"), e.defineMIME("text/x-sass", "sass") + }(n(4631), n(36629)) + }, + 42372: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("scheme", (function() { + var e = "builtin", + t = "comment", + n = "string", + r = "symbol", + i = "atom", + a = "number", + o = "bracket", + s = 2; + + function l(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var c = l("\u03bb case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"), + u = l("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless"); + + function d(e, t, n) { + this.indent = e, this.type = t, this.prev = n + } + + function p(e, t, n) { + e.indentStack = new d(t, n, e.indentStack) + } + + function f(e) { + e.indentStack = e.indentStack.prev + } + var m = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i), + h = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i), + g = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i), + b = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i); + + function v(e) { + return e.match(m) + } + + function y(e) { + return e.match(h) + } + + function k(e, t) { + return !0 === t && e.backUp(1), e.match(b) + } + + function x(e) { + return e.match(g) + } + + function _(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (n == t.token && !r) { + t.state.mode = !1; + break + } + r = !r && "\\" == n + } + } + return { + startState: function() { + return { + indentStack: null, + indentation: 0, + mode: !1, + sExprComment: !1, + sExprQuote: !1 + } + }, + token: function(l, d) { + if (null == d.indentStack && l.sol() && (d.indentation = l.indentation()), l.eatSpace()) return null; + var m = null; + switch (d.mode) { + case "string": + _(l, { + token: '"', + state: d + }), m = n; + break; + case "symbol": + _(l, { + token: "|", + state: d + }), m = r; + break; + case "comment": + for (var h, g = !1; null != (h = l.next());) { + if ("#" == h && g) { + d.mode = !1; + break + } + g = "|" == h + } + m = t; + break; + case "s-expr-comment": + if (d.mode = !1, "(" != l.peek() && "[" != l.peek()) { + l.eatWhile(/[^\s\(\)\[\]]/), m = t; + break + } + d.sExprComment = 0; + default: + var b = l.next(); + if ('"' == b) d.mode = "string", m = n; + else if ("'" == b) "(" == l.peek() || "[" == l.peek() ? ("number" != typeof d.sExprQuote && (d.sExprQuote = 0), m = i) : (l.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), m = i); + else if ("|" == b) d.mode = "symbol", m = r; + else if ("#" == b) + if (l.eat("|")) d.mode = "comment", m = t; + else if (l.eat(/[tf]/i)) m = i; + else if (l.eat(";")) d.mode = "s-expr-comment", m = t; + else { + var w = null, + E = !1, + T = !0; + l.eat(/[ei]/i) ? E = !0 : l.backUp(1), l.match(/^#b/i) ? w = v : l.match(/^#o/i) ? w = y : l.match(/^#x/i) ? w = x : l.match(/^#d/i) ? w = k : l.match(/^[-+0-9.]/, !1) ? (T = !1, w = k) : E || l.eat("#"), null != w && (T && !E && l.match(/^#[ei]/i), w(l) && (m = a)) + } else if (/^[-+0-9.]/.test(b) && k(l, !0)) m = a; + else if (";" == b) l.skipToEnd(), m = t; + else if ("(" == b || "[" == b) { + for (var S, I = "", N = l.column(); null != (S = l.eat(/[^\s\(\[\;\)\]]/));) I += S; + I.length > 0 && u.propertyIsEnumerable(I) ? p(d, N + s, b) : (l.eatSpace(), l.eol() || ";" == l.peek() ? p(d, N + 1, b) : p(d, N + l.current().length, b)), l.backUp(l.current().length - 1), "number" == typeof d.sExprComment && d.sExprComment++, "number" == typeof d.sExprQuote && d.sExprQuote++, m = o + } else ")" == b || "]" == b ? (m = o, null != d.indentStack && d.indentStack.type == (")" == b ? "(" : "[") && (f(d), "number" == typeof d.sExprComment && 0 == --d.sExprComment && (m = t, d.sExprComment = !1), "number" == typeof d.sExprQuote && 0 == --d.sExprQuote && (m = i, d.sExprQuote = !1))) : (l.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), m = c && c.propertyIsEnumerable(l.current()) ? e : "variable") + } + return "number" == typeof d.sExprComment ? t : "number" == typeof d.sExprQuote ? i : m + }, + indent: function(e) { + return null == e.indentStack ? e.indentation : e.indentStack.indent + }, + fold: "brace-paren", + closeBrackets: { + pairs: '()[]{}""' + }, + lineComment: ";;" + } + })), e.defineMIME("text/x-scheme", "scheme") + }(n(4631)) + }, + 31149: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("shell", (function() { + var t = {}; + + function n(e, n) { + for (var r = 0; r < n.length; r++) t[n[r]] = e + } + var r = ["true", "false"], + i = ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi", "fin", "fil", "done", "exit", "set", "unset", "export", "function"], + a = ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear", "cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall", "ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "nl", "node", "npm", "ping", "ps", "restart", "rm", "rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop", "su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write", "yes", "zsh"]; + + function o(e, n) { + if (e.eatSpace()) return null; + var r = e.sol(), + i = e.next(); + if ("\\" === i) return e.next(), null; + if ("'" === i || '"' === i || "`" === i) return n.tokens.unshift(s(i, "`" === i ? "quote" : "string")), d(e, n); + if ("#" === i) return r && e.eat("!") ? (e.skipToEnd(), "meta") : (e.skipToEnd(), "comment"); + if ("$" === i) return n.tokens.unshift(c), d(e, n); + if ("+" === i || "=" === i) return "operator"; + if ("-" === i) return e.eat("-"), e.eatWhile(/\w/), "attribute"; + if ("<" == i) { + if (e.match("<<")) return "operator"; + var a = e.match(/^<-?\s*['"]?([^'"]*)['"]?/); + if (a) return n.tokens.unshift(u(a[1])), "string-2" + } + if (/\d/.test(i) && (e.eatWhile(/\d/), e.eol() || !/\w/.test(e.peek()))) return "number"; + e.eatWhile(/[\w-]/); + var o = e.current(); + return "=" === e.peek() && /\w+/.test(o) ? "def" : t.hasOwnProperty(o) ? t[o] : null + } + + function s(e, t) { + var n = "(" == e ? ")" : "{" == e ? "}" : e; + return function(r, i) { + for (var a, o = !1; null != (a = r.next());) { + if (a === n && !o) { + i.tokens.shift(); + break + } + if ("$" === a && !o && "'" !== e && r.peek() != n) { + o = !0, r.backUp(1), i.tokens.unshift(c); + break + } + if (!o && e !== n && a === e) return i.tokens.unshift(s(e, t)), d(r, i); + if (!o && /['"]/.test(a) && !/['"]/.test(e)) { + i.tokens.unshift(l(a, "string")), r.backUp(1); + break + } + o = !o && "\\" === a + } + return t + } + } + + function l(e, t) { + return function(n, r) { + return r.tokens[0] = s(e, t), n.next(), d(n, r) + } + } + e.registerHelper("hintWords", "shell", r.concat(i, a)), n("atom", r), n("keyword", i), n("builtin", a); + var c = function(e, t) { + t.tokens.length > 1 && e.eat("$"); + var n = e.next(); + return /['"({]/.test(n) ? (t.tokens[0] = s(n, "(" == n ? "quote" : "{" == n ? "def" : "string"), d(e, t)) : (/\d/.test(n) || e.eatWhile(/\w/), t.tokens.shift(), "def") + }; + + function u(e) { + return function(t, n) { + return t.sol() && t.string == e && n.tokens.shift(), t.skipToEnd(), "string-2" + } + } + + function d(e, t) { + return (t.tokens[0] || o)(e, t) + } + return { + startState: function() { + return { + tokens: [] + } + }, + token: function(e, t) { + return d(e, t) + }, + closeBrackets: "()[]{}''\"\"``", + lineComment: "#", + fold: "brace" + } + })), e.defineMIME("text/x-sh", "shell"), e.defineMIME("application/x-sh", "shell") + }(n(4631)) + }, + 49311: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("sieve", (function(e) { + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var n = t("if elsif else stop require"), + r = t("true false not"), + i = e.indentUnit; + + function a(e, t) { + var i = e.next(); + if ("/" == i && e.eat("*")) return t.tokenize = s, s(e, t); + if ("#" === i) return e.skipToEnd(), "comment"; + if ('"' == i) return t.tokenize = l(i), t.tokenize(e, t); + if ("(" == i) return t._indent.push("("), t._indent.push("{"), null; + if ("{" === i) return t._indent.push("{"), null; + if (")" == i && (t._indent.pop(), t._indent.pop()), "}" === i) return t._indent.pop(), null; + if ("," == i) return null; + if (";" == i) return null; + if (/[{}\(\),;]/.test(i)) return null; + if (/\d/.test(i)) return e.eatWhile(/[\d]/), e.eat(/[KkMmGg]/), "number"; + if (":" == i) return e.eatWhile(/[a-zA-Z_]/), e.eatWhile(/[a-zA-Z0-9_]/), "operator"; + e.eatWhile(/\w/); + var a = e.current(); + return "text" == a && e.eat(":") ? (t.tokenize = o, "string") : n.propertyIsEnumerable(a) ? "keyword" : r.propertyIsEnumerable(a) ? "atom" : null + } + + function o(e, t) { + return t._multiLineString = !0, e.sol() ? ("." == e.next() && e.eol() && (t._multiLineString = !1, t.tokenize = a), "string") : (e.eatSpace(), "#" == e.peek() ? (e.skipToEnd(), "comment") : (e.skipToEnd(), "string")) + } + + function s(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (r && "/" == n) { + t.tokenize = a; + break + } + r = "*" == n + } + return "comment" + } + + function l(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.tokenize = a), "string" + } + } + return { + startState: function(e) { + return { + tokenize: a, + baseIndent: e || 0, + _indent: [] + } + }, + token: function(e, t) { + return e.eatSpace() ? null : (t.tokenize || a)(e, t) + }, + indent: function(e, t) { + var n = e._indent.length; + return t && "}" == t[0] && n--, n < 0 && (n = 0), n * i + }, + electricChars: "}" + } + })), e.defineMIME("application/sieve", "sieve") + }(n(4631)) + }, + 32486: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("slim", (function(t) { + var n = e.getMode(t, { + name: "htmlmixed" + }), + r = e.getMode(t, "ruby"), + i = { + html: n, + ruby: r + }, + a = { + ruby: "ruby", + javascript: "javascript", + css: "text/css", + sass: "text/x-sass", + scss: "text/x-scss", + less: "text/x-less", + styl: "text/x-styl", + coffee: "coffeescript", + asciidoc: "text/x-asciidoc", + markdown: "text/x-markdown", + textile: "text/x-textile", + creole: "text/x-creole", + wiki: "text/x-wiki", + mediawiki: "text/x-mediawiki", + rdoc: "text/x-rdoc", + builder: "text/x-builder", + nokogiri: "text/x-nokogiri", + erb: "application/x-erb" + }, + o = function(e) { + var t = []; + for (var n in e) t.push(n); + return new RegExp("^(" + t.join("|") + "):") + }(a), + s = { + commentLine: "comment", + slimSwitch: "operator special", + slimTag: "tag", + slimId: "attribute def", + slimClass: "attribute qualifier", + slimAttribute: "attribute", + slimSubmode: "keyword special", + closeAttributeTag: null, + slimDoctype: null, + lineContinuation: null + }, + l = { + "{": "}", + "[": "]", + "(": ")" + }, + c = "_a-zA-Z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd", + u = c + "\\-0-9\xb7\u0300-\u036f\u203f-\u2040", + d = new RegExp("^[:" + c + "](?::[" + u + "]|[" + u + "]*)"), + p = new RegExp("^[:" + c + "][:\\." + u + "]*(?=\\s*=)"), + f = new RegExp("^[:" + c + "][:\\." + u + "]*"), + m = /^\.-?[_a-zA-Z]+[\w\-]*/, + h = /^#[_a-zA-Z]+[\w\-]*/; + + function g(e, t, n) { + var r = function(r, i) { + return i.tokenize = t, r.pos < e ? (r.pos = e, n) : i.tokenize(r, i) + }; + return function(e, n) { + return n.tokenize = r, t(e, n) + } + } + + function b(e, t, n, r, i) { + var a = e.current(), + o = a.search(n); + return o > -1 && (t.tokenize = g(e.pos, t.tokenize, i), e.backUp(a.length - o - r)), i + } + + function v(e, t) { + e.stack = { + parent: e.stack, + style: "continuation", + indented: t, + tokenize: e.line + }, e.line = e.tokenize + } + + function y(e) { + e.line == e.tokenize && (e.line = e.stack.tokenize, e.stack = e.stack.parent) + } + + function k(e, t) { + return function(n, r) { + if (y(r), n.match(/^\\$/)) return v(r, e), "lineContinuation"; + var i = t(n, r); + return n.eol() && n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/) && n.backUp(1), i + } + } + + function x(e, t) { + return function(n, r) { + y(r); + var i = t(n, r); + return n.eol() && n.current().match(/,$/) && v(r, e), i + } + } + + function _(e, t) { + return function(n, r) { + return n.peek() == e && 1 == r.rubyState.tokenize.length ? (n.next(), r.tokenize = t, "closeAttributeTag") : E(n, r) + } + } + + function w(t) { + var n, i = function(e, r) { + if (1 == r.rubyState.tokenize.length && !r.rubyState.context.prev) { + if (e.backUp(1), e.eatSpace()) return r.rubyState = n, r.tokenize = t, t(e, r); + e.next() + } + return E(e, r) + }; + return function(t, a) { + return n = a.rubyState, a.rubyState = e.startState(r), a.tokenize = i, E(t, a) + } + } + + function E(e, t) { + return r.token(e, t.rubyState) + } + + function T(e, t) { + return e.match(/^\\$/) ? "lineContinuation" : S(e, t) + } + + function S(e, t) { + return e.match(/^#\{/) ? (t.tokenize = _("}", t.tokenize), null) : b(e, t, /[^\\]#\{/, 1, n.token(e, t.htmlState)) + } + + function I(e) { + return function(t, n) { + var r = T(t, n); + return t.eol() && (n.tokenize = e), r + } + } + + function N(e, t, n) { + return t.stack = { + parent: t.stack, + style: "html", + indented: e.column() + n, + tokenize: t.line + }, t.line = t.tokenize = S, null + } + + function A(e, t) { + return e.skipToEnd(), t.stack.style + } + + function O(e, t) { + return t.stack = { + parent: t.stack, + style: "comment", + indented: t.indented + 1, + tokenize: t.line + }, t.line = A, A(e, t) + } + + function C(e, t) { + return e.eat(t.stack.endQuote) ? (t.line = t.stack.line, t.tokenize = t.stack.tokenize, t.stack = t.stack.parent, null) : e.match(f) ? (t.tokenize = D, "slimAttribute") : (e.next(), null) + } + + function D(e, t) { + return e.match(/^==?/) ? (t.tokenize = R, null) : C(e, t) + } + + function R(e, t) { + var n = e.peek(); + return '"' == n || "'" == n ? (t.tokenize = Z(n, "string", !0, !1, C), e.next(), t.tokenize(e, t)) : "[" == n ? w(C)(e, t) : e.match(/^(true|false|nil)\b/) ? (t.tokenize = C, "keyword") : w(C)(e, t) + } + + function M(e, t, n) { + return e.stack = { + parent: e.stack, + style: "wrapper", + indented: e.indented + 1, + tokenize: n, + line: e.line, + endQuote: t + }, e.line = e.tokenize = C, null + } + + function L(t, n) { + if (t.match(/^#\{/)) return n.tokenize = _("}", n.tokenize), null; + var r = new e.StringStream(t.string.slice(n.stack.indented), t.tabSize); + r.pos = t.pos - n.stack.indented, r.start = t.start - n.stack.indented, r.lastColumnPos = t.lastColumnPos - n.stack.indented, r.lastColumnValue = t.lastColumnValue - n.stack.indented; + var i = n.subMode.token(r, n.subState); + return t.pos = r.pos + n.stack.indented, i + } + + function z(e, t) { + return t.stack.indented = e.column(), t.line = t.tokenize = L, t.tokenize(e, t) + } + + function F(n) { + var r = a[n], + i = e.mimeModes[r]; + if (i) return e.getMode(t, i); + var o = e.modes[r]; + return o ? o(t, { + name: r + }) : e.getMode(t, "null") + } + + function $(e) { + return i.hasOwnProperty(e) ? i[e] : i[e] = F(e) + } + + function P(t, n) { + var r = $(t), + i = e.startState(r); + return n.subMode = r, n.subState = i, n.stack = { + parent: n.stack, + style: "sub", + indented: n.indented + 1, + tokenize: n.line + }, n.line = n.tokenize = z, "slimSubmode" + } + + function U(e, t) { + return e.skipToEnd(), "slimDoctype" + } + + function j(e, t) { + if ("<" == e.peek()) return (t.tokenize = I(t.tokenize))(e, t); + if (e.match(/^[|']/)) return N(e, t, 1); + if (e.match(/^\/(!|\[\w+])?/)) return O(e, t); + if (e.match(/^(-|==?[<>]?)/)) return t.tokenize = k(e.column(), x(e.column(), E)), "slimSwitch"; + if (e.match(/^doctype\b/)) return t.tokenize = U, "keyword"; + var n = e.match(o); + return n ? P(n[1], t) : B(e, t) + } + + function q(e, t) { + return t.startOfLine ? j(e, t) : B(e, t) + } + + function B(e, t) { + return e.eat("*") ? (t.tokenize = w(V), null) : e.match(d) ? (t.tokenize = V, "slimTag") : W(e, t) + } + + function V(e, t) { + return e.match(/^(<>?|> t.indented && "slimSubmode" != t.last;) t.line = t.tokenize = t.stack.tokenize, t.stack = t.stack.parent, t.subMode = null, t.subState = null; + if (e.eatSpace()) return null; + var n = t.tokenize(e, t); + return t.startOfLine = !1, n && (t.last = n), s.hasOwnProperty(n) ? s[n] : n + }, + blankLine: function(e) { + if (e.subMode && e.subMode.blankLine) return e.subMode.blankLine(e.subState) + }, + innerMode: function(e) { + return e.subMode ? { + state: e.subState, + mode: e.subMode + } : { + state: e, + mode: Q + } + } + }; + return Q + }), "htmlmixed", "ruby"), e.defineMIME("text/x-slim", "slim"), e.defineMIME("application/x-slim", "slim") + }(n(4631), n(16531), n(80853)) + }, + 66690: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("smalltalk", (function(e) { + var t = /[+\-\/\\*~<>=@%|&?!.,:;^]/, + n = /true|false|nil|self|super|thisContext/, + r = function(e, t) { + this.next = e, this.parent = t + }, + i = function(e, t, n) { + this.name = e, this.context = t, this.eos = n + }, + a = function() { + this.context = new r(o, null), this.expectVariable = !0, this.indentation = 0, this.userIndentationDelta = 0 + }; + a.prototype.userIndent = function(t) { + this.userIndentationDelta = t > 0 ? t / e.indentUnit - this.indentation : 0 + }; + var o = function(e, a, o) { + var d = new i(null, a, !1), + p = e.next(); + return '"' === p ? d = s(e, new r(s, a)) : "'" === p ? d = l(e, new r(l, a)) : "#" === p ? "'" === e.peek() ? (e.next(), d = c(e, new r(c, a))) : e.eatWhile(/[^\s.{}\[\]()]/) ? d.name = "string-2" : d.name = "meta" : "$" === p ? ("<" === e.next() && (e.eatWhile(/[^\s>]/), e.next()), d.name = "string-2") : "|" === p && o.expectVariable ? d.context = new r(u, a) : /[\[\]{}()]/.test(p) ? (d.name = "bracket", d.eos = /[\[{(]/.test(p), "[" === p ? o.indentation++ : "]" === p && (o.indentation = Math.max(0, o.indentation - 1))) : t.test(p) ? (e.eatWhile(t), d.name = "operator", d.eos = ";" !== p) : /\d/.test(p) ? (e.eatWhile(/[\w\d]/), d.name = "number") : /[\w_]/.test(p) ? (e.eatWhile(/[\w\d_]/), d.name = o.expectVariable ? n.test(e.current()) ? "keyword" : "variable" : null) : d.eos = o.expectVariable, d + }, + s = function(e, t) { + return e.eatWhile(/[^"]/), new i("comment", e.eat('"') ? t.parent : t, !0) + }, + l = function(e, t) { + return e.eatWhile(/[^']/), new i("string", e.eat("'") ? t.parent : t, !1) + }, + c = function(e, t) { + return e.eatWhile(/[^']/), new i("string-2", e.eat("'") ? t.parent : t, !1) + }, + u = function(e, t) { + var n = new i(null, t, !1); + return "|" === e.next() ? (n.context = t.parent, n.eos = !0) : (e.eatWhile(/[^|]/), n.name = "variable"), n + }; + return { + startState: function() { + return new a + }, + token: function(e, t) { + if (t.userIndent(e.indentation()), e.eatSpace()) return null; + var n = t.context.next(e, t.context, t); + return t.context = n.context, t.expectVariable = n.eos, n.name + }, + blankLine: function(e) { + e.userIndent(0) + }, + indent: function(t, n) { + var r = t.context.next === o && n && "]" === n.charAt(0) ? -1 : t.userIndentationDelta; + return (t.indentation + r) * e.indentUnit + }, + electricChars: "]" + } + })), e.defineMIME("text/x-stsrc", { + name: "smalltalk" + }) + }(n(4631)) + }, + 52889: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("smarty", (function(t, n) { + var r, i = n.rightDelimiter || "}", + a = n.leftDelimiter || "{", + o = n.version || 2, + s = e.getMode(t, n.baseMode || "null"), + l = ["debug", "extends", "function", "include", "literal"], + c = { + operatorChars: /[+\-*&%=<>!?]/, + validIdentifier: /[a-zA-Z0-9_]/, + stringChar: /['"]/ + }; + + function u(e, t) { + return r = t, e + } + + function d(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function p(e, t) { + return null == t && (t = e.pos), 3 === o && "{" == a && (t == e.string.length || /\s/.test(e.string.charAt(t))) + } + + function f(e, t) { + for (var n = e.string, o = e.pos;;) { + var l = n.indexOf(a, o); + if (o = l + a.length, -1 == l || !p(e, l + a.length)) break + } + if (l == e.pos) return e.match(a), e.eat("*") ? d(e, t, g("comment", "*" + i)) : (t.depth++, t.tokenize = m, r = "startTag", "tag"); + l > -1 && (e.string = n.slice(0, l)); + var c = s.token(e, t.base); + return l > -1 && (e.string = n), c + } + + function m(e, t) { + if (e.match(i, !0)) return 3 === o ? (t.depth--, t.depth <= 0 && (t.tokenize = f)) : t.tokenize = f, u("tag", null); + if (e.match(a, !0)) return t.depth++, u("tag", "startTag"); + var n = e.next(); + if ("$" == n) return e.eatWhile(c.validIdentifier), u("variable-2", "variable"); + if ("|" == n) return u("operator", "pipe"); + if ("." == n) return u("operator", "property"); + if (c.stringChar.test(n)) return t.tokenize = h(n), u("string", "string"); + if (c.operatorChars.test(n)) return e.eatWhile(c.operatorChars), u("operator", "operator"); + if ("[" == n || "]" == n) return u("bracket", "bracket"); + if ("(" == n || ")" == n) return u("bracket", "operator"); + if (/\d/.test(n)) return e.eatWhile(/\d/), u("number", "number"); + if ("variable" == t.last) { + if ("@" == n) return e.eatWhile(c.validIdentifier), u("property", "property"); + if ("|" == n) return e.eatWhile(c.validIdentifier), u("qualifier", "modifier") + } else { + if ("pipe" == t.last) return e.eatWhile(c.validIdentifier), u("qualifier", "modifier"); + if ("whitespace" == t.last) return e.eatWhile(c.validIdentifier), u("attribute", "modifier") + } + if ("property" == t.last) return e.eatWhile(c.validIdentifier), u("property", null); + if (/\s/.test(n)) return r = "whitespace", null; + var s = ""; + "/" != n && (s += n); + for (var d = null; d = e.eat(c.validIdentifier);) s += d; + for (var p = 0, m = l.length; p < m; p++) + if (l[p] == s) return u("keyword", "keyword"); + return /\s/.test(n) ? null : u("tag", "tag") + } + + function h(e) { + return function(t, n) { + for (var r = null, i = null; !t.eol();) { + if (i = t.peek(), t.next() == e && "\\" !== r) { + n.tokenize = m; + break + } + r = i + } + return "string" + } + } + + function g(e, t) { + return function(n, r) { + for (; !n.eol();) { + if (n.match(t)) { + r.tokenize = f; + break + } + n.next() + } + return e + } + } + return { + startState: function() { + return { + base: e.startState(s), + tokenize: f, + last: null, + depth: 0 + } + }, + copyState: function(t) { + return { + base: e.copyState(s, t.base), + tokenize: t.tokenize, + last: t.last, + depth: t.depth + } + }, + innerMode: function(e) { + if (e.tokenize == f) return { + mode: s, + state: e.base + } + }, + token: function(e, t) { + var n = t.tokenize(e, t); + return t.last = r, n + }, + indent: function(t, n, r) { + return t.tokenize == f && s.indent ? s.indent(t.base, n, r) : e.Pass + }, + blockCommentStart: a + "*", + blockCommentEnd: "*" + i + } + })), e.defineMIME("text/x-smarty", "smarty") + }(n(4631)) + }, + 18715: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("solr", (function() { + var e = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/, + t = /[\|\!\+\-\*\?\~\^\&]/, + n = /^(OR|AND|NOT|TO)$/i; + + function r(e) { + return parseFloat(e).toString() === e + } + + function i(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.tokenize = s), "string" + } + } + + function a(e) { + return function(t, n) { + var r = "operator"; + return "+" == e ? r += " positive" : "-" == e ? r += " negative" : "|" == e ? t.eat(/\|/) : "&" == e ? t.eat(/\&/) : "^" == e && (r += " boost"), n.tokenize = s, r + } + } + + function o(t) { + return function(i, a) { + for (var o = t; + (t = i.peek()) && null != t.match(e);) o += i.next(); + return a.tokenize = s, n.test(o) ? "operator" : r(o) ? "number" : ":" == i.peek() ? "field" : "string" + } + } + + function s(n, r) { + var l = n.next(); + return '"' == l ? r.tokenize = i(l) : t.test(l) ? r.tokenize = a(l) : e.test(l) && (r.tokenize = o(l)), r.tokenize != s ? r.tokenize(n, r) : null + } + return { + startState: function() { + return { + tokenize: s + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + } + } + })), e.defineMIME("text/x-solr", "solr") + }(n(4631)) + }, + 61527: function(e, t, n) { + ! function(e) { + "use strict"; + var t = { + noEndTag: !0, + soyState: "param-def" + }, + n = { + alias: { + noEndTag: !0 + }, + delpackage: { + noEndTag: !0 + }, + namespace: { + noEndTag: !0, + soyState: "namespace-def" + }, + "@attribute": t, + "@attribute?": t, + "@param": t, + "@param?": t, + "@inject": t, + "@inject?": t, + "@state": t, + template: { + soyState: "templ-def", + variableScope: !0 + }, + extern: { + soyState: "param-def" + }, + export: { + soyState: "export" + }, + literal: {}, + msg: {}, + fallbackmsg: { + noEndTag: !0, + reduceIndent: !0 + }, + select: {}, + plural: {}, + let: { + soyState: "var-def" + }, + if: {}, + javaimpl: {}, + jsimpl: {}, + elseif: { + noEndTag: !0, + reduceIndent: !0 + }, + else: { + noEndTag: !0, + reduceIndent: !0 + }, + switch: {}, + case: { + noEndTag: !0, + reduceIndent: !0 + }, + default: { + noEndTag: !0, + reduceIndent: !0 + }, + foreach: { + variableScope: !0, + soyState: "for-loop" + }, + ifempty: { + noEndTag: !0, + reduceIndent: !0 + }, + for: { + variableScope: !0, + soyState: "for-loop" + }, + call: { + soyState: "templ-ref" + }, + param: { + soyState: "param-ref" + }, + print: { + noEndTag: !0 + }, + deltemplate: { + soyState: "templ-def", + variableScope: !0 + }, + delcall: { + soyState: "templ-ref" + }, + log: {}, + element: { + variableScope: !0 + }, + velog: {}, + const: { + soyState: "const-def" + } + }, + r = Object.keys(n).filter((function(e) { + return !n[e].noEndTag || n[e].reduceIndent + })); + e.defineMode("soy", (function(t) { + var i = e.getMode(t, "text/plain"), + a = { + html: e.getMode(t, { + name: "text/html", + multilineTagIndentFactor: 2, + multilineTagIndentPastTag: !1, + allowMissingTagName: !0 + }), + attributes: i, + text: i, + uri: i, + trusted_resource_uri: i, + css: e.getMode(t, "text/css"), + js: e.getMode(t, { + name: "text/javascript", + statementIndent: 2 * t.indentUnit + }) + }; + + function o(e) { + return e[e.length - 1] + } + + function s(e, t, n) { + if (e.sol()) { + for (var r = 0; r < t.indent && e.eat(/\s/); r++); + if (r) return null + } + var i = e.string, + a = n.exec(i.substr(e.pos)); + a && (e.string = i.substr(0, e.pos + a.index)); + var s = e.hideFirstChars(t.indent, (function() { + var n = o(t.localStates); + return n.mode.token(e, n.state) + })); + return e.string = i, s + } + + function l(e, t) { + for (; e;) { + if (e.element === t) return !0; + e = e.next + } + return !1 + } + + function c(e, t) { + return { + element: t, + next: e + } + } + + function u(e) { + e.context && (e.context.scope && (e.variables = e.context.scope), e.context = e.context.previousContext) + } + + function d(e, t, n) { + return l(e, t) ? "variable-2" : n ? "variable" : "variable-2 error" + } + + function p(e, t, n) { + this.previousContext = e, this.tag = t, this.kind = null, this.scope = n + } + + function f(e, t) { + var n; + return e.match(/[[]/) ? (t.soyState.push("list-literal"), t.context = new p(t.context, "list-literal", t.variables), t.lookupVariables = !1, null) : e.match(/\bmap(?=\()/) ? (t.soyState.push("map-literal"), "keyword") : e.match(/\brecord(?=\()/) ? (t.soyState.push("record-literal"), "keyword") : e.match(/([\w]+)(?=\()/) ? "variable callee" : (n = e.match(/^["']/)) ? (t.soyState.push("string"), t.quoteKind = n[0], "string") : e.match(/^[(]/) ? (t.soyState.push("open-parentheses"), null) : e.match(/(null|true|false)(?!\w)/) || e.match(/0x([0-9a-fA-F]{2,})/) || e.match(/-?([0-9]*[.])?[0-9]+(e[0-9]*)?/) ? "atom" : e.match(/(\||[+\-*\/%]|[=!]=|\?:|[<>]=?)/) ? "operator" : (n = e.match(/^\$([\w]+)/)) ? d(t.variables, n[1], !t.lookupVariables) : (n = e.match(/^\w+/)) ? /^(?:as|and|or|not|in|if)$/.test(n[0]) ? "keyword" : null : (e.next(), null) + } + return { + startState: function() { + return { + soyState: [], + variables: c(null, "ij"), + scopes: null, + indent: 0, + quoteKind: null, + context: null, + lookupVariables: !0, + localStates: [{ + mode: a.html, + state: e.startState(a.html) + }] + } + }, + copyState: function(t) { + return { + tag: t.tag, + soyState: t.soyState.concat([]), + variables: t.variables, + context: t.context, + indent: t.indent, + quoteKind: t.quoteKind, + lookupVariables: t.lookupVariables, + localStates: t.localStates.map((function(t) { + return { + mode: t.mode, + state: e.copyState(t.mode, t.state) + } + })) + } + }, + token: function(i, l) { + switch (o(l.soyState)) { + case "comment": + if (i.match(/^.*?\*\//) ? l.soyState.pop() : i.skipToEnd(), !l.context || !l.context.scope) + for (var m = /@param\??\s+(\S+)/g, h = i.current(); g = m.exec(h);) l.variables = c(l.variables, g[1]); + return "comment"; + case "string": + var g; + return (g = i.match(/^.*?(["']|\\[\s\S])/)) ? g[1] == l.quoteKind && (l.quoteKind = null, l.soyState.pop()) : i.skipToEnd(), "string" + } + if (!l.soyState.length || "literal" != o(l.soyState)) { + if (i.match(/^\/\*/)) return l.soyState.push("comment"), "comment"; + if (i.match(i.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/)) return "comment" + } + switch (o(l.soyState)) { + case "templ-def": + return (g = i.match(/^\.?([\w]+(?!\.[\w]+)*)/)) ? (l.soyState.pop(), "def") : (i.next(), null); + case "templ-ref": + return (g = i.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/)) ? (l.soyState.pop(), "." == g[0][0] ? "variable-2" : "variable") : (g = i.match(/^\$([\w]+)/)) ? (l.soyState.pop(), d(l.variables, g[1], !l.lookupVariables)) : (i.next(), null); + case "namespace-def": + return (g = i.match(/^\.?([\w\.]+)/)) ? (l.soyState.pop(), "variable") : (i.next(), null); + case "param-def": + return (g = i.match(/^\*/)) ? (l.soyState.pop(), l.soyState.push("param-type"), "type") : (g = i.match(/^\w+/)) ? (l.variables = c(l.variables, g[0]), l.soyState.pop(), l.soyState.push("param-type"), "def") : (i.next(), null); + case "param-ref": + return (g = i.match(/^\w+/)) ? (l.soyState.pop(), "property") : (i.next(), null); + case "open-parentheses": + return i.match(/[)]/) ? (l.soyState.pop(), null) : f(i, l); + case "param-type": + var b = i.peek(); + return -1 != "}]=>,".indexOf(b) ? (l.soyState.pop(), null) : "[" == b ? (l.soyState.push("param-type-record"), null) : "(" == b ? (l.soyState.push("param-type-template"), null) : "<" == b ? (l.soyState.push("param-type-parameter"), null) : (g = i.match(/^([\w]+|[?])/)) ? "type" : (i.next(), null); + case "param-type-record": + return "]" == (b = i.peek()) ? (l.soyState.pop(), null) : i.match(/^\w+/) ? (l.soyState.push("param-type"), "property") : (i.next(), null); + case "param-type-parameter": + return i.match(/^[>]/) ? (l.soyState.pop(), null) : i.match(/^[<,]/) ? (l.soyState.push("param-type"), null) : (i.next(), null); + case "param-type-template": + return i.match(/[>]/) ? (l.soyState.pop(), l.soyState.push("param-type"), null) : i.match(/^\w+/) ? (l.soyState.push("param-type"), "def") : (i.next(), null); + case "var-def": + return (g = i.match(/^\$([\w]+)/)) ? (l.variables = c(l.variables, g[1]), l.soyState.pop(), "def") : (i.next(), null); + case "for-loop": + return i.match(/\bin\b/) ? (l.soyState.pop(), "keyword") : "$" == i.peek() ? (l.soyState.push("var-def"), null) : (i.next(), null); + case "record-literal": + return i.match(/^[)]/) ? (l.soyState.pop(), null) : i.match(/[(,]/) ? (l.soyState.push("map-value"), l.soyState.push("record-key"), null) : (i.next(), null); + case "map-literal": + return i.match(/^[)]/) ? (l.soyState.pop(), null) : i.match(/[(,]/) ? (l.soyState.push("map-value"), l.soyState.push("map-value"), null) : (i.next(), null); + case "list-literal": + return i.match("]") ? (l.soyState.pop(), l.lookupVariables = !0, u(l), null) : i.match(/\bfor\b/) ? (l.lookupVariables = !0, l.soyState.push("for-loop"), "keyword") : f(i, l); + case "record-key": + return i.match(/[\w]+/) ? "property" : i.match(/^[:]/) ? (l.soyState.pop(), null) : (i.next(), null); + case "map-value": + return ")" == i.peek() || "," == i.peek() || i.match(/^[:)]/) ? (l.soyState.pop(), null) : f(i, l); + case "import": + return i.eat(";") ? (l.soyState.pop(), l.indent -= 2 * t.indentUnit, null) : i.match(/\w+(?=\s+as\b)/) ? "variable" : (g = i.match(/\w+/)) ? /\b(from|as)\b/.test(g[0]) ? "keyword" : "def" : (g = i.match(/^["']/)) ? (l.soyState.push("string"), l.quoteKind = g[0], "string") : (i.next(), null); + case "tag": + void 0 === l.tag ? (w = !0, T = "") : T = (w = "/" == l.tag[0]) ? l.tag.substring(1) : l.tag; + var v = n[T]; + if (i.match(/^\/?}/)) { + var y = "/}" == i.current(); + return y && !w && u(l), "/template" == l.tag || "/deltemplate" == l.tag ? (l.variables = c(null, "ij"), l.indent = 0) : l.indent -= t.indentUnit * (y || -1 == r.indexOf(l.tag) ? 2 : 1), l.soyState.pop(), "keyword" + } + if (i.match(/^([\w?]+)(?==)/)) { + if (l.context && l.context.tag == T && "kind" == i.current() && (g = i.match(/^="([^"]+)/, !1))) { + var k = g[1]; + l.context.kind = k; + var x = a[k] || a.html; + (N = o(l.localStates)).mode.indent && (l.indent += N.mode.indent(N.state, "", "")), l.localStates.push({ + mode: x, + state: e.startState(x) + }) + } + return "attribute" + } + return f(i, l); + case "template-call-expression": + return i.match(/^([\w-?]+)(?==)/) ? "attribute" : i.eat(">") || i.eat("/>") ? (l.soyState.pop(), "keyword") : f(i, l); + case "literal": + return i.match("{/literal}", !1) ? (l.soyState.pop(), this.token(i, l)) : s(i, l, /\{\/literal}/); + case "export": + if (g = i.match(/\w+/)) { + if (l.soyState.pop(), "const" == g) return l.soyState.push("const-def"), "keyword"; + if ("extern" == g) return l.soyState.push("param-def"), "keyword" + } else i.next(); + return null; + case "const-def": + return i.match(/^\w+/) ? (l.soyState.pop(), "def") : (i.next(), null) + } + if (i.match("{literal}")) return l.indent += t.indentUnit, l.soyState.push("literal"), l.context = new p(l.context, "literal", l.variables), "keyword"; + if (g = i.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)) { + var _ = l.tag; + l.tag = g[1]; + var w = "/" == l.tag[0], + E = !!n[l.tag], + T = w ? l.tag.substring(1) : l.tag; + v = n[T], "/switch" != l.tag && (l.indent += ((w || v && v.reduceIndent) && "switch" != _ ? 1 : 2) * t.indentUnit), l.soyState.push("tag"); + var S = !1; + if (v) + if (w || v.soyState && l.soyState.push(v.soyState), v.noEndTag || !E && w) { + if (w) { + var I = "extern" == T && l.context && "export" == l.context.tag; + if (!l.context || l.context.tag != T && !I) S = !0; + else if (l.context) { + var N; + l.context.kind && (l.localStates.pop(), (N = o(l.localStates)).mode.indent && (l.indent -= N.mode.indent(N.state, "", ""))), u(l) + } + } + } else l.context = new p(l.context, l.tag, v.variableScope ? l.variables : null); + else w && (S = !0); + return (S ? "error " : "") + "keyword" + } + return i.eat("{") ? (l.tag = "print", l.indent += 2 * t.indentUnit, l.soyState.push("tag"), "keyword") : !l.context && i.sol() && i.match(/import\b/) ? (l.soyState.push("import"), l.indent += 2 * t.indentUnit, "keyword") : (g = i.match("<{")) ? (l.soyState.push("template-call-expression"), l.indent += 2 * t.indentUnit, l.soyState.push("tag"), "keyword") : (g = i.match("")) ? (l.indent -= 1 * t.indentUnit, "keyword") : s(i, l, /\{|\s+\/\/|\/\*/) + }, + indent: function(n, r, i) { + var a = n.indent, + s = o(n.soyState); + if ("comment" == s) return e.Pass; + if ("literal" == s) /^\{\/literal}/.test(r) && (a -= t.indentUnit); + else { + if (/^\s*\{\/(template|deltemplate)\b/.test(r)) return 0; + /^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(r) && (a -= t.indentUnit), "switch" != n.tag && /^\{(case|default)\b/.test(r) && (a -= t.indentUnit), /^\{\/switch\b/.test(r) && (a -= t.indentUnit) + } + var l = o(n.localStates); + return a && l.mode.indent && (a += l.mode.indent(l.state, r, i)), a + }, + innerMode: function(e) { + return e.soyState.length && "literal" != o(e.soyState) ? null : o(e.localStates) + }, + electricInput: /^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/, + lineComment: "//", + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + useInnerComments: !1, + fold: "indent" + } + }), "htmlmixed"), e.registerHelper("wordChars", "soy", /[\w$]/), e.registerHelper("hintWords", "soy", Object.keys(n).concat(["css", "debugger"])), e.defineMIME("text/x-soy", "soy") + }(n(4631), n(16531)) + }, + 63982: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("sparql", (function(e) { + var t, n = e.indentUnit; + + function r(e) { + return new RegExp("^(?:" + e.join("|") + ")$", "i") + } + var i = r(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", "iri", "uri", "bnode", "count", "sum", "min", "max", "avg", "sample", "group_concat", "rand", "abs", "ceil", "floor", "round", "concat", "substr", "strlen", "replace", "ucase", "lcase", "encode_for_uri", "contains", "strstarts", "strends", "strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds", "timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384", "sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists", "isblank", "isliteral", "a", "bind"]), + a = r(["base", "prefix", "select", "distinct", "reduced", "construct", "describe", "ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional", "graph", "by", "asc", "desc", "as", "having", "undef", "values", "group", "minus", "in", "not", "service", "silent", "using", "insert", "delete", "union", "true", "false", "with", "data", "copy", "to", "move", "add", "create", "drop", "clear", "load"]), + o = /[*+\-<>=&|\^\/!\?]/; + + function s(e, n) { + var r = e.next(); + if (t = null, "$" == r || "?" == r) return "?" == r && e.match(/\s/, !1) ? "operator" : (e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/), "variable-2"); + if ("<" != r || e.match(/^[\s\u00a0=]/, !1)) { + if ('"' == r || "'" == r) return n.tokenize = c(r), n.tokenize(e, n); + if (/[{}\(\),\.;\[\]]/.test(r)) return t = r, "bracket"; + if ("#" == r) return e.skipToEnd(), "comment"; + if (o.test(r)) return "operator"; + if (":" == r) return l(e), "atom"; + if ("@" == r) return e.eatWhile(/[a-z\d\-]/i), "meta"; + if (e.eatWhile(/[_\w\d]/), e.eat(":")) return l(e), "atom"; + var s = e.current(); + return i.test(s) ? "builtin" : a.test(s) ? "keyword" : "variable" + } + return e.match(/^[^\s\u00a0>]*>?/), "atom" + } + + function l(e) { + e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i) + } + + function c(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next());) { + if (r == e && !i) { + n.tokenize = s; + break + } + i = !i && "\\" == r + } + return "string" + } + } + + function u(e, t, n) { + e.context = { + prev: e.context, + indent: e.indent, + col: n, + type: t + } + } + + function d(e) { + e.indent = e.context.indent, e.context = e.context.prev + } + return { + startState: function() { + return { + tokenize: s, + context: null, + indent: 0, + col: 0 + } + }, + token: function(e, n) { + if (e.sol() && (n.context && null == n.context.align && (n.context.align = !1), n.indent = e.indentation()), e.eatSpace()) return null; + var r = n.tokenize(e, n); + if ("comment" != r && n.context && null == n.context.align && "pattern" != n.context.type && (n.context.align = !0), "(" == t) u(n, ")", e.column()); + else if ("[" == t) u(n, "]", e.column()); + else if ("{" == t) u(n, "}", e.column()); + else if (/[\]\}\)]/.test(t)) { + for (; n.context && "pattern" == n.context.type;) d(n); + n.context && t == n.context.type && (d(n), "}" == t && n.context && "pattern" == n.context.type && d(n)) + } else "." == t && n.context && "pattern" == n.context.type ? d(n) : /atom|string|variable/.test(r) && n.context && (/[\}\]]/.test(n.context.type) ? u(n, "pattern", e.column()) : "pattern" != n.context.type || n.context.align || (n.context.align = !0, n.context.col = e.column())); + return r + }, + indent: function(e, t) { + var r = t && t.charAt(0), + i = e.context; + if (/[\]\}]/.test(r)) + for (; i && "pattern" == i.type;) i = i.prev; + var a = i && r == i.type; + return i ? "pattern" == i.type ? i.col : i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : n) : 0 + }, + lineComment: "#" + } + })), e.defineMIME("application/sparql-query", "sparql") + }(n(4631)) + }, + 63138: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("spreadsheet", (function() { + return { + startState: function() { + return { + stringType: null, + stack: [] + } + }, + token: function(e, t) { + if (e) { + switch (0 === t.stack.length && ('"' != e.peek() && "'" != e.peek() || (t.stringType = e.peek(), e.next(), t.stack.unshift("string"))), t.stack[0]) { + case "string": + for (; + "string" === t.stack[0] && !e.eol();) e.peek() === t.stringType ? (e.next(), t.stack.shift()) : "\\" === e.peek() ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/); + return "string"; + case "characterClass": + for (; + "characterClass" === t.stack[0] && !e.eol();) e.match(/^[^\]\\]+/) || e.match(/^\\./) || t.stack.shift(); + return "operator" + } + var n = e.peek(); + switch (n) { + case "[": + return e.next(), t.stack.unshift("characterClass"), "bracket"; + case ":": + return e.next(), "operator"; + case "\\": + return e.match(/\\[a-z]+/) ? "string-2" : (e.next(), "atom"); + case ".": + case ",": + case ";": + case "*": + case "-": + case "+": + case "^": + case "<": + case "/": + case "=": + return e.next(), "atom"; + case "$": + return e.next(), "builtin" + } + return e.match(/\d+/) ? e.match(/^\w+/) ? "error" : "number" : e.match(/^[a-zA-Z_]\w*/) ? e.match(/(?=[\(.])/, !1) ? "keyword" : "variable-2" : -1 != ["[", "]", "(", ")", "{", "}"].indexOf(n) ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null) + } + } + } + })), e.defineMIME("text/x-spreadsheet", "spreadsheet") + }(n(4631)) + }, + 54086: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t; null != (t = e.next());) + if ("`" == t && !e.eat("`")) return "variable-2"; + return e.backUp(e.current().length - 1), e.eatWhile(/\w/) ? "variable-2" : null + } + + function n(e) { + for (var t; null != (t = e.next());) + if ('"' == t && !e.eat('"')) return "variable-2"; + return e.backUp(e.current().length - 1), e.eatWhile(/\w/) ? "variable-2" : null + } + + function r(e) { + return e.eat("@") && (e.match("session."), e.match("local."), e.match("global.")), e.eat("'") ? (e.match(/^.*'/), "variable-2") : e.eat('"') ? (e.match(/^.*"/), "variable-2") : e.eat("`") ? (e.match(/^.*`/), "variable-2") : e.match(/^[0-9a-zA-Z$\.\_]+/) ? "variable-2" : null + } + + function i(e) { + return e.eat("N") ? "atom" : e.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null + } + e.defineMode("sql", (function(t, n) { + var r = n.client || {}, + i = n.atoms || { + false: !0, + true: !0, + null: !0 + }, + l = n.builtin || o(s), + c = n.keywords || o(a), + u = n.operatorChars || /^[*+\-%<>!=&|~^\/]/, + d = n.support || {}, + p = n.hooks || {}, + f = n.dateSQL || { + date: !0, + time: !0, + timestamp: !0 + }, + m = !1 !== n.backslashStringEscapes, + h = n.brackets || /^[\{}\(\)\[\]]/, + g = n.punctuation || /^[;.,:]/; + + function b(e, t) { + var n = e.next(); + if (p[n]) { + var a = p[n](e, t); + if (!1 !== a) return a + } + if (d.hexNumber && ("0" == n && e.match(/^[xX][0-9a-fA-F]+/) || ("x" == n || "X" == n) && e.match(/^'[0-9a-fA-F]+'/))) return "number"; + if (d.binaryNumber && (("b" == n || "B" == n) && e.match(/^'[01]+'/) || "0" == n && e.match(/^b[01]+/))) return "number"; + if (n.charCodeAt(0) > 47 && n.charCodeAt(0) < 58) return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/), d.decimallessFloat && e.match(/^\.(?!\.)/), "number"; + if ("?" == n && (e.eatSpace() || e.eol() || e.eat(";"))) return "variable-3"; + if ("'" == n || '"' == n && d.doubleQuote) return t.tokenize = v(n), t.tokenize(e, t); + if ((d.nCharCast && ("n" == n || "N" == n) || d.charsetCast && "_" == n && e.match(/[a-z][a-z0-9]*/i)) && ("'" == e.peek() || '"' == e.peek())) return "keyword"; + if (d.escapeConstant && ("e" == n || "E" == n) && ("'" == e.peek() || '"' == e.peek() && d.doubleQuote)) return t.tokenize = function(e, t) { + return (t.tokenize = v(e.next(), !0))(e, t) + }, "keyword"; + if (d.commentSlashSlash && "/" == n && e.eat("/")) return e.skipToEnd(), "comment"; + if (d.commentHash && "#" == n || "-" == n && e.eat("-") && (!d.commentSpaceRequired || e.eat(" "))) return e.skipToEnd(), "comment"; + if ("/" == n && e.eat("*")) return t.tokenize = y(1), t.tokenize(e, t); + if ("." != n) { + if (u.test(n)) return e.eatWhile(u), "operator"; + if (h.test(n)) return "bracket"; + if (g.test(n)) return e.eatWhile(g), "punctuation"; + if ("{" == n && (e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/) || e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))) return "number"; + e.eatWhile(/^[_\w\d]/); + var o = e.current().toLowerCase(); + return f.hasOwnProperty(o) && (e.match(/^( )+'[^']*'/) || e.match(/^( )+"[^"]*"/)) ? "number" : i.hasOwnProperty(o) ? "atom" : l.hasOwnProperty(o) ? "type" : c.hasOwnProperty(o) ? "keyword" : r.hasOwnProperty(o) ? "builtin" : null + } + return d.zerolessFloat && e.match(/^(?:\d+(?:e[+-]?\d+)?)/i) ? "number" : e.match(/^\.+/) ? null : d.ODBCdotTable && e.match(/^[\w\d_$#]+/) ? "variable-2" : void 0 + } + + function v(e, t) { + return function(n, r) { + for (var i, a = !1; null != (i = n.next());) { + if (i == e && !a) { + r.tokenize = b; + break + } + a = (m || t) && !a && "\\" == i + } + return "string" + } + } + + function y(e) { + return function(t, n) { + var r = t.match(/^.*?(\/\*|\*\/)/); + return r ? "/*" == r[1] ? n.tokenize = y(e + 1) : n.tokenize = e > 1 ? y(e - 1) : b : t.skipToEnd(), "comment" + } + } + + function k(e, t, n) { + t.context = { + prev: t.context, + indent: e.indentation(), + col: e.column(), + type: n + } + } + + function x(e) { + e.indent = e.context.indent, e.context = e.context.prev + } + return { + startState: function() { + return { + tokenize: b, + context: null + } + }, + token: function(e, t) { + if (e.sol() && t.context && null == t.context.align && (t.context.align = !1), t.tokenize == b && e.eatSpace()) return null; + var n = t.tokenize(e, t); + if ("comment" == n) return n; + t.context && null == t.context.align && (t.context.align = !0); + var r = e.current(); + return "(" == r ? k(e, t, ")") : "[" == r ? k(e, t, "]") : t.context && t.context.type == r && x(t), n + }, + indent: function(n, r) { + var i = n.context; + if (!i) return e.Pass; + var a = r.charAt(0) == i.type; + return i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : t.indentUnit) + }, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: d.commentSlashSlash ? "//" : d.commentHash ? "#" : "--", + closeBrackets: "()[]{}''\"\"``" + } + })); + var a = "alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit "; + + function o(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var s = "bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"; + e.defineMIME("text/x-sql", { + name: "sql", + keywords: o(a + "begin"), + builtin: o(s), + atoms: o("false true null unknown"), + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable doubleQuote binaryNumber hexNumber") + }), e.defineMIME("text/x-mssql", { + name: "sql", + client: o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"), + keywords: o(a + "begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"), + builtin: o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "), + atoms: o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"), + operatorChars: /^[*+\-%<>!=^\&|\/]/, + brackets: /^[\{}\(\)]/, + punctuation: /^[;.,:/]/, + backslashStringEscapes: !1, + dateSQL: o("date datetimeoffset datetime2 smalldatetime datetime time"), + hooks: { + "@": r + } + }), e.defineMIME("text/x-mysql", { + name: "sql", + client: o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"), + keywords: o(a + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"), + builtin: o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"), + atoms: o("false true null unknown"), + operatorChars: /^[*+\-%<>!=&|^]/, + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"), + hooks: { + "@": r, + "`": t, + "\\": i + } + }), e.defineMIME("text/x-mariadb", { + name: "sql", + client: o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"), + keywords: o(a + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"), + builtin: o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"), + atoms: o("false true null unknown"), + operatorChars: /^[*+\-%<>!=&|^]/, + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"), + hooks: { + "@": r, + "`": t, + "\\": i + } + }), e.defineMIME("text/x-sqlite", { + name: "sql", + client: o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"), + keywords: o(a + "abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"), + builtin: o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"), + atoms: o("null current_date current_time current_timestamp"), + operatorChars: /^[*+\-%<>!=&|/~]/, + dateSQL: o("date time timestamp datetime"), + support: o("decimallessFloat zerolessFloat"), + identifierQuote: '"', + hooks: { + "@": r, + ":": r, + "?": r, + $: r, + '"': n, + "`": t + } + }), e.defineMIME("text/x-cassandra", { + name: "sql", + client: {}, + keywords: o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"), + builtin: o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"), + atoms: o("false true infinity NaN"), + operatorChars: /^[<>=]/, + dateSQL: {}, + support: o("commentSlashSlash decimallessFloat"), + hooks: {} + }), e.defineMIME("text/x-plsql", { + name: "sql", + client: o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"), + keywords: o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"), + builtin: o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"), + operatorChars: /^[*\/+\-%<>!=~]/, + dateSQL: o("date time timestamp"), + support: o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber") + }), e.defineMIME("text/x-hive", { + name: "sql", + keywords: o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"), + builtin: o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"), + atoms: o("false true null unknown"), + operatorChars: /^[*+\-%<>!=]/, + dateSQL: o("date timestamp"), + support: o("ODBCdotTable doubleQuote binaryNumber hexNumber") + }), e.defineMIME("text/x-pgsql", { + name: "sql", + client: o("source"), + keywords: o(a + "a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"), + builtin: o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"), + atoms: o("false true null unknown"), + operatorChars: /^[*\/+\-%<>!=&|^\/#@?~]/, + backslashStringEscapes: !1, + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant") + }), e.defineMIME("text/x-gql", { + name: "sql", + keywords: o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"), + atoms: o("false true"), + builtin: o("blob datetime first key __key__ string integer double boolean null"), + operatorChars: /^[*+\-%<>!=]/ + }), e.defineMIME("text/x-gpsql", { + name: "sql", + client: o("source"), + keywords: o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"), + builtin: o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"), + atoms: o("false true null unknown"), + operatorChars: /^[*+\-%<>!=&|^\/#@?~]/, + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast") + }), e.defineMIME("text/x-sparksql", { + name: "sql", + keywords: o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"), + builtin: o("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"), + atoms: o("false true null"), + operatorChars: /^[*\/+\-%<>!=~&|^]/, + dateSQL: o("date time timestamp"), + support: o("ODBCdotTable doubleQuote zerolessFloat") + }), e.defineMIME("text/x-esper", { + name: "sql", + client: o("source"), + keywords: o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"), + builtin: {}, + atoms: o("false true null"), + operatorChars: /^[*+\-%<>!=&|^\/#@?~]/, + dateSQL: o("time"), + support: o("decimallessFloat zerolessFloat binaryNumber hexNumber") + }) + }(n(4631)) + }, + 80785: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("stex", (function(e, t) { + function n(e, t) { + e.cmdState.push(t) + } + + function r(e) { + return e.cmdState.length > 0 ? e.cmdState[e.cmdState.length - 1] : null + } + + function i(e) { + var t = e.cmdState.pop(); + t && t.closeBracket() + } + + function a(e) { + for (var t = e.cmdState, n = t.length - 1; n >= 0; n--) { + var r = t[n]; + if ("DEFAULT" != r.name) return r + } + return { + styleIdentifier: function() { + return null + } + } + } + + function o(e, t, n) { + return function() { + this.name = e, this.bracketNo = 0, this.style = t, this.styles = n, this.argument = null, this.styleIdentifier = function() { + return this.styles[this.bracketNo - 1] || null + }, this.openBracket = function() { + return this.bracketNo++, "bracket" + }, this.closeBracket = function() {} + } + } + var s = {}; + + function l(e, t) { + e.f = t + } + + function c(e, t) { + var i; + if (e.match(/^\\[a-zA-Z@]+/)) { + var o = e.current().slice(1); + return n(t, i = new(i = s.hasOwnProperty(o) ? s[o] : s.DEFAULT)), l(t, d), i.style + } + if (e.match(/^\\[$&%#{}_]/)) return "tag"; + if (e.match(/^\\[,;!\/\\]/)) return "tag"; + if (e.match("\\[")) return l(t, (function(e, t) { + return u(e, t, "\\]") + })), "keyword"; + if (e.match("\\(")) return l(t, (function(e, t) { + return u(e, t, "\\)") + })), "keyword"; + if (e.match("$$")) return l(t, (function(e, t) { + return u(e, t, "$$") + })), "keyword"; + if (e.match("$")) return l(t, (function(e, t) { + return u(e, t, "$") + })), "keyword"; + var c = e.next(); + return "%" == c ? (e.skipToEnd(), "comment") : "}" == c || "]" == c ? (i = r(t)) ? (i.closeBracket(c), l(t, d), "bracket") : "error" : "{" == c || "[" == c ? (n(t, i = new(i = s.DEFAULT)), "bracket") : /\d/.test(c) ? (e.eatWhile(/[\w.%]/), "atom") : (e.eatWhile(/[\w\-_]/), "begin" == (i = a(t)).name && (i.argument = e.current()), i.styleIdentifier()) + } + + function u(e, t, n) { + if (e.eatSpace()) return null; + if (n && e.match(n)) return l(t, c), "keyword"; + if (e.match(/^\\[a-zA-Z@]+/)) return "tag"; + if (e.match(/^[a-zA-Z]+/)) return "variable-2"; + if (e.match(/^\\[$&%#{}_]/)) return "tag"; + if (e.match(/^\\[,;!\/]/)) return "tag"; + if (e.match(/^[\^_&]/)) return "tag"; + if (e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) return null; + if (e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) return "number"; + var r = e.next(); + return "{" == r || "}" == r || "[" == r || "]" == r || "(" == r || ")" == r ? "bracket" : "%" == r ? (e.skipToEnd(), "comment") : "error" + } + + function d(e, t) { + var n = e.peek(); + return "{" == n || "[" == n ? (r(t).openBracket(n), e.eat(n), l(t, c), "bracket") : /[ \t\r]/.test(n) ? (e.eat(n), null) : (l(t, c), i(t), c(e, t)) + } + return s.importmodule = o("importmodule", "tag", ["string", "builtin"]), s.documentclass = o("documentclass", "tag", ["", "atom"]), s.usepackage = o("usepackage", "tag", ["atom"]), s.begin = o("begin", "tag", ["atom"]), s.end = o("end", "tag", ["atom"]), s.label = o("label", "tag", ["atom"]), s.ref = o("ref", "tag", ["atom"]), s.eqref = o("eqref", "tag", ["atom"]), s.cite = o("cite", "tag", ["atom"]), s.bibitem = o("bibitem", "tag", ["atom"]), s.Bibitem = o("Bibitem", "tag", ["atom"]), s.RBibitem = o("RBibitem", "tag", ["atom"]), s.DEFAULT = function() { + this.name = "DEFAULT", this.style = "tag", this.styleIdentifier = this.openBracket = this.closeBracket = function() {} + }, { + startState: function() { + return { + cmdState: [], + f: t.inMathMode ? function(e, t) { + return u(e, t) + } : c + } + }, + copyState: function(e) { + return { + cmdState: e.cmdState.slice(), + f: e.f + } + }, + token: function(e, t) { + return t.f(e, t) + }, + blankLine: function(e) { + e.f = c, e.cmdState.length = 0 + }, + lineComment: "%" + } + })), e.defineMIME("text/x-stex", "stex"), e.defineMIME("text/x-latex", "stex") + }(n(4631)) + }, + 60742: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("stylus", (function(e) { + for (var f, m, v, y, k = e.indentUnit, x = "", _ = g(t), w = /^(a|b|i|s|col|em)$/i, E = g(a), T = g(o), S = g(c), I = g(l), N = g(n), A = h(n), O = g(i), C = g(r), D = g(s), R = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/, M = h(u), L = g(d), z = new RegExp(/^\-(moz|ms|o|webkit)-/i), F = g(p), $ = "", P = {}; x.length < k;) x += " "; + + function U(e, t) { + if ($ = e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/), t.context.line.firstWord = $ ? $[0].replace(/^\s*/, "") : "", t.context.line.indent = e.indentation(), f = e.peek(), e.match("//")) return e.skipToEnd(), ["comment", "comment"]; + if (e.match("/*")) return t.tokenize = j, j(e, t); + if ('"' == f || "'" == f) return e.next(), t.tokenize = q(f), t.tokenize(e, t); + if ("@" == f) return e.next(), e.eatWhile(/[\w\\-]/), ["def", e.current()]; + if ("#" == f) { + if (e.next(), e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)) return ["atom", "atom"]; + if (e.match(/^[a-z][\w-]*/i)) return ["builtin", "hash"] + } + return e.match(z) ? ["meta", "vendor-prefixes"] : e.match(/^-?[0-9]?\.?[0-9]/) ? (e.eatWhile(/[a-z%]/i), ["number", "unit"]) : "!" == f ? (e.next(), [e.match(/^(important|optional)/i) ? "keyword" : "operator", "important"]) : "." == f && e.match(/^\.[a-z][\w-]*/i) ? ["qualifier", "qualifier"] : e.match(A) ? ("(" == e.peek() && (t.tokenize = B), ["property", "word"]) : e.match(/^[a-z][\w-]*\(/i) ? (e.backUp(1), ["keyword", "mixin"]) : e.match(/^(\+|-)[a-z][\w-]*\(/i) ? (e.backUp(1), ["keyword", "block-mixin"]) : e.string.match(/^\s*&/) && e.match(/^[-_]+[a-z][\w-]*/) ? ["qualifier", "qualifier"] : e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/) ? (e.backUp(1), ["variable-3", "reference"]) : e.match(/^&{1}\s*$/) ? ["variable-3", "reference"] : e.match(M) ? ["operator", "operator"] : e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i) ? e.match(/^(\.|\[)[\w-\'\"\]]+/i, !1) && !Y(e.current()) ? (e.match("."), ["variable-2", "variable-name"]) : ["variable-2", "word"] : e.match(R) ? ["operator", e.current()] : /[:;,{}\[\]\(\)]/.test(f) ? (e.next(), [null, f]) : (e.next(), [null, null]) + } + + function j(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (r && "/" == n) { + t.tokenize = null; + break + } + r = "*" == n + } + return ["comment", "comment"] + } + + function q(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next());) { + if (r == e && !i) { + ")" == e && t.backUp(1); + break + } + i = !i && "\\" == r + } + return (r == e || !i && ")" != e) && (n.tokenize = null), ["string", "string"] + } + } + + function B(e, t) { + return e.next(), e.match(/\s*[\"\')]/, !1) ? t.tokenize = null : t.tokenize = q(")"), [null, "("] + } + + function V(e, t, n, r) { + this.type = e, this.indent = t, this.prev = n, this.line = r || { + firstWord: "", + indent: 0 + } + } + + function W(e, t, n, r) { + return r = r >= 0 ? r : k, e.context = new V(n, t.indentation() + r, e.context), n + } + + function G(e, t) { + var n = e.context.indent - k; + return t = t || !1, e.context = e.context.prev, t && (e.context.indent = n), e.context.type + } + + function H(e, t, n) { + return P[n.context.type](e, t, n) + } + + function K(e, t, n, r) { + for (var i = r || 1; i > 0; i--) n.context = n.context.prev; + return H(e, t, n) + } + + function Y(e) { + return e.toLowerCase() in _ + } + + function Z(e) { + return (e = e.toLowerCase()) in E || e in D + } + + function X(e) { + return e.toLowerCase() in L + } + + function Q(e) { + return e.toLowerCase().match(z) + } + + function J(e) { + var t = e.toLowerCase(), + n = "variable-2"; + return Y(e) ? n = "tag" : X(e) ? n = "block-keyword" : Z(e) ? n = "property" : t in S || t in F ? n = "atom" : "return" == t || t in I ? n = "keyword" : e.match(/^[A-Z]/) && (n = "string"), n + } + + function ee(e, t) { + return ie(t) && ("{" == e || "]" == e || "hash" == e || "qualifier" == e) || "block-mixin" == e + } + + function te(e, t) { + return "{" == e && t.match(/^\s*\$?[\w-]+/i, !1) + } + + function ne(e, t) { + return ":" == e && t.match(/^[a-z-]+/, !1) + } + + function re(e) { + return e.sol() || e.string.match(new RegExp("^\\s*" + b(e.current()))) + } + + function ie(e) { + return e.eol() || e.match(/^\s*$/, !1) + } + + function ae(e) { + var t = /^\s*[-_]*[a-z0-9]+[\w-]*/i, + n = "string" == typeof e ? e.match(t) : e.string.match(t); + return n ? n[0].replace(/^\s*/, "") : "" + } + return P.block = function(e, t, n) { + if ("comment" == e && re(t) || "," == e && ie(t) || "mixin" == e) return W(n, t, "block", 0); + if (te(e, t)) return W(n, t, "interpolation"); + if (ie(t) && "]" == e && !/^\s*(\.|#|:|\[|\*|&)/.test(t.string) && !Y(ae(t))) return W(n, t, "block", 0); + if (ee(e, t)) return W(n, t, "block"); + if ("}" == e && ie(t)) return W(n, t, "block", 0); + if ("variable-name" == e) return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || X(ae(t)) ? W(n, t, "variableName") : W(n, t, "variableName", 0); + if ("=" == e) return ie(t) || X(ae(t)) ? W(n, t, "block") : W(n, t, "block", 0); + if ("*" == e && (ie(t) || t.match(/\s*(,|\.|#|\[|:|{)/, !1))) return y = "tag", W(n, t, "block"); + if (ne(e, t)) return W(n, t, "pseudo"); + if (/@(font-face|media|supports|(-moz-)?document)/.test(e)) return W(n, t, ie(t) ? "block" : "atBlock"); + if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e)) return W(n, t, "keyframes"); + if (/@extends?/.test(e)) return W(n, t, "extend", 0); + if (e && "@" == e.charAt(0)) return t.indentation() > 0 && Z(t.current().slice(1)) ? (y = "variable-2", "block") : /(@import|@require|@charset)/.test(e) ? W(n, t, "block", 0) : W(n, t, "block"); + if ("reference" == e && ie(t)) return W(n, t, "block"); + if ("(" == e) return W(n, t, "parens"); + if ("vendor-prefixes" == e) return W(n, t, "vendorPrefixes"); + if ("word" == e) { + var r = t.current(); + if ("property" == (y = J(r))) return re(t) ? W(n, t, "block", 0) : (y = "atom", "block"); + if ("tag" == y) { + if (/embed|menu|pre|progress|sub|table/.test(r) && Z(ae(t))) return y = "atom", "block"; + if (t.string.match(new RegExp("\\[\\s*" + r + "|" + r + "\\s*\\]"))) return y = "atom", "block"; + if (w.test(r) && (re(t) && t.string.match(/=/) || !re(t) && !t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !Y(ae(t)))) return y = "variable-2", X(ae(t)) ? "block" : W(n, t, "block", 0); + if (ie(t)) return W(n, t, "block") + } + if ("block-keyword" == y) return y = "keyword", t.current(/(if|unless)/) && !re(t) ? "block" : W(n, t, "block"); + if ("return" == r) return W(n, t, "block", 0); + if ("variable-2" == y && t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)) return W(n, t, "block") + } + return n.context.type + }, P.parens = function(e, t, n) { + if ("(" == e) return W(n, t, "parens"); + if (")" == e) return "parens" == n.context.prev.type ? G(n) : t.string.match(/^[a-z][\w-]*\(/i) && ie(t) || X(ae(t)) || /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ae(t)) || !t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) && Y(ae(t)) ? W(n, t, "block") : t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) || t.string.match(/^\s*(\(|\)|[0-9])/) || t.string.match(/^\s+[a-z][\w-]*\(/i) || t.string.match(/^\s+[\$-]?[a-z]/i) ? W(n, t, "block", 0) : ie(t) ? W(n, t, "block") : W(n, t, "block", 0); + if (e && "@" == e.charAt(0) && Z(t.current().slice(1)) && (y = "variable-2"), "word" == e) { + var r = t.current(); + "tag" == (y = J(r)) && w.test(r) && (y = "variable-2"), "property" != y && "to" != r || (y = "atom") + } + return "variable-name" == e ? W(n, t, "variableName") : ne(e, t) ? W(n, t, "pseudo") : n.context.type + }, P.vendorPrefixes = function(e, t, n) { + return "word" == e ? (y = "property", W(n, t, "block", 0)) : G(n) + }, P.pseudo = function(e, t, n) { + return Z(ae(t.string)) ? K(e, t, n) : (t.match(/^[a-z-]+/), y = "variable-3", ie(t) ? W(n, t, "block") : G(n)) + }, P.atBlock = function(e, t, n) { + if ("(" == e) return W(n, t, "atBlock_parens"); + if (ee(e, t)) return W(n, t, "block"); + if (te(e, t)) return W(n, t, "interpolation"); + if ("word" == e) { + var r = t.current().toLowerCase(); + if ("tag" == (y = /^(only|not|and|or)$/.test(r) ? "keyword" : N.hasOwnProperty(r) ? "tag" : C.hasOwnProperty(r) ? "attribute" : O.hasOwnProperty(r) ? "property" : T.hasOwnProperty(r) ? "string-2" : J(t.current())) && ie(t)) return W(n, t, "block") + } + return "operator" == e && /^(not|and|or)$/.test(t.current()) && (y = "keyword"), n.context.type + }, P.atBlock_parens = function(e, t, n) { + if ("{" == e || "}" == e) return n.context.type; + if (")" == e) return ie(t) ? W(n, t, "block") : W(n, t, "atBlock"); + if ("word" == e) { + var r = t.current().toLowerCase(); + return y = J(r), /^(max|min)/.test(r) && (y = "property"), "tag" == y && (y = w.test(r) ? "variable-2" : "atom"), n.context.type + } + return P.atBlock(e, t, n) + }, P.keyframes = function(e, t, n) { + return "0" == t.indentation() && ("}" == e && re(t) || "]" == e || "hash" == e || "qualifier" == e || Y(t.current())) ? K(e, t, n) : "{" == e ? W(n, t, "keyframes") : "}" == e ? re(t) ? G(n, !0) : W(n, t, "keyframes") : "unit" == e && /^[0-9]+\%$/.test(t.current()) ? W(n, t, "keyframes") : "word" == e && "block-keyword" == (y = J(t.current())) ? (y = "keyword", W(n, t, "keyframes")) : /@(font-face|media|supports|(-moz-)?document)/.test(e) ? W(n, t, ie(t) ? "block" : "atBlock") : "mixin" == e ? W(n, t, "block", 0) : n.context.type + }, P.interpolation = function(e, t, n) { + return "{" == e && G(n) && W(n, t, "block"), "}" == e ? t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) || t.string.match(/^\s*[a-z]/i) && Y(ae(t)) ? W(n, t, "block") : !t.string.match(/^(\{|\s*\&)/) || t.match(/\s*[\w-]/, !1) ? W(n, t, "block", 0) : W(n, t, "block") : "variable-name" == e ? W(n, t, "variableName", 0) : ("word" == e && "tag" == (y = J(t.current())) && (y = "atom"), n.context.type) + }, P.extend = function(e, t, n) { + return "[" == e || "=" == e ? "extend" : "]" == e ? G(n) : "word" == e ? (y = J(t.current()), "extend") : G(n) + }, P.variableName = function(e, t, n) { + return "string" == e || "[" == e || "]" == e || t.current().match(/^(\.|\$)/) ? (t.current().match(/^\.[\w-]+/i) && (y = "variable-2"), "variableName") : K(e, t, n) + }, { + startState: function(e) { + return { + tokenize: null, + state: "block", + context: new V("block", e || 0, null) + } + }, + token: function(e, t) { + return !t.tokenize && e.eatSpace() ? null : ((m = (t.tokenize || U)(e, t)) && "object" == typeof m && (v = m[1], m = m[0]), y = m, t.state = P[t.state](v, e, t), y) + }, + indent: function(e, t, n) { + var r = e.context, + i = t && t.charAt(0), + a = r.indent, + o = ae(t), + s = n.match(/^\s*/)[0].replace(/\t/g, x).length, + l = e.context.prev ? e.context.prev.line.firstWord : "", + c = e.context.prev ? e.context.prev.line.indent : s; + return r.prev && ("}" == i && ("block" == r.type || "atBlock" == r.type || "keyframes" == r.type) || ")" == i && ("parens" == r.type || "atBlock_parens" == r.type) || "{" == i && "at" == r.type) ? a = r.indent - k : /(\})/.test(i) || (/@|\$|\d/.test(i) || /^\{/.test(t) || /^\s*\/(\/|\*)/.test(t) || /^\s*\/\*/.test(l) || /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t) || /^(\+|-)?[a-z][\w-]*\(/i.test(t) || /^return/.test(t) || X(o) ? a = s : /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i) || Y(o) ? a = /\,\s*$/.test(l) ? c : /^\s+/.test(n) && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l) || Y(l)) ? s <= c ? c : c + k : s : /,\s*$/.test(n) || !Q(o) && !Z(o) || (a = X(l) ? s <= c ? c : c + k : /^\{/.test(l) ? s <= c ? s : c + k : Q(l) || Z(l) ? s >= c ? c : s : /^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l) || /=\s*$/.test(l) || Y(l) || /^\$[\w-\.\[\]\'\"]/.test(l) ? c + k : s)), a + }, + electricChars: "}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + lineComment: "//", + fold: "indent" + } + })); + var t = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "bgsound", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "var", "video"], + n = ["domain", "regexp", "url-prefix", "url"], + r = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], + i = ["width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "dynamic-range", "video-dynamic-range"], + a = ["align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backface-visibility", "background", "background-attachment", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings", "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-position", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "justify-content", "left", "letter-spacing", "line-break", "line-height", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marker-offset", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "max-height", "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "unicode-bidi", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "z-index", "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode", "font-smoothing", "osx-font-smoothing"], + o = ["scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "zoom"], + s = ["font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"], + l = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"], + c = ["above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "avoid", "avoid-column", "avoid-page", "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "column", "compact", "condensed", "conic-gradient", "contain", "content", "contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew", "help", "hidden", "hide", "high", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "malayalam", "match", "matrix", "matrix3d", "media-play-button", "media-slider", "media-sliderthumb", "media-volume-slider", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row-resize", "rtl", "run-in", "running", "s-resize", "sans-serif", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "spell-out", "square", "square-button", "standard", "start", "static", "status-bar", "stretch", "stroke", "sub", "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "x-large", "x-small", "xor", "xx-large", "xx-small", "bicubic", "optimizespeed", "grayscale", "row", "row-reverse", "wrap", "wrap-reverse", "column-reverse", "flex-start", "flex-end", "space-between", "space-around", "unset"], + u = ["in", "and", "or", "not", "is not", "is a", "is", "isnt", "defined", "if unless"], + d = ["for", "if", "else", "unless", "from", "to"], + p = ["null", "true", "false", "href", "title", "type", "not-allowed", "readonly", "disabled"], + f = ["@font-face", "@keyframes", "@media", "@viewport", "@page", "@host", "@supports", "@block", "@css"], + m = t.concat(n, r, i, a, o, l, c, s, u, d, p, f); + + function h(e) { + return e = e.sort((function(e, t) { + return t > e + })), new RegExp("^((" + e.join(")|(") + "))\\b") + } + + function g(e) { + for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0; + return t + } + + function b(e) { + return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") + } + e.registerHelper("hintWords", "stylus", m), e.defineMIME("text/x-styl", "stylus") + }(n(4631)) + }, + 37355: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = !0; + return t + } + var n = t(["_", "var", "let", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "open", "public", "internal", "fileprivate", "private", "deinit", "init", "new", "override", "self", "subscript", "super", "convenience", "dynamic", "final", "indirect", "lazy", "required", "static", "unowned", "unowned(safe)", "unowned(unsafe)", "weak", "as", "is", "break", "case", "continue", "default", "else", "fallthrough", "for", "guard", "if", "in", "repeat", "switch", "where", "while", "defer", "return", "inout", "mutating", "nonmutating", "catch", "do", "rethrows", "throw", "throws", "try", "didSet", "get", "set", "willSet", "assignment", "associativity", "infix", "left", "none", "operator", "postfix", "precedence", "precedencegroup", "prefix", "right", "Any", "AnyObject", "Type", "dynamicType", "Self", "Protocol", "__COLUMN__", "__FILE__", "__FUNCTION__", "__LINE__"]), + r = t(["var", "let", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), + i = t(["true", "false", "nil", "self", "super", "_"]), + a = t(["Array", "Bool", "Character", "Dictionary", "Double", "Float", "Int", "Int8", "Int16", "Int32", "Int64", "Never", "Optional", "Set", "String", "UInt8", "UInt16", "UInt32", "UInt64", "Void"]), + o = "+-/*%=|&<>~^?!", + s = ":;,.(){}[]", + l = /^\-?0b[01][01_]*/, + c = /^\-?0o[0-7][0-7_]*/, + u = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, + d = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, + p = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, + f = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, + m = /^\#[A-Za-z]+/, + h = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/; + + function g(e, t, g) { + if (e.sol() && (t.indented = e.indentation()), e.eatSpace()) return null; + var b, k = e.peek(); + if ("/" == k) { + if (e.match("//")) return e.skipToEnd(), "comment"; + if (e.match("/*")) return t.tokenize.push(y), y(e, t) + } + if (e.match(m)) return "builtin"; + if (e.match(h)) return "attribute"; + if (e.match(l)) return "number"; + if (e.match(c)) return "number"; + if (e.match(u)) return "number"; + if (e.match(d)) return "number"; + if (e.match(f)) return "property"; + if (o.indexOf(k) > -1) return e.next(), "operator"; + if (s.indexOf(k) > -1) return e.next(), e.match(".."), "punctuation"; + if (b = e.match(/("""|"|')/)) { + var x = v.bind(null, b[0]); + return t.tokenize.push(x), x(e, t) + } + if (e.match(p)) { + var _ = e.current(); + return a.hasOwnProperty(_) ? "variable-2" : i.hasOwnProperty(_) ? "atom" : n.hasOwnProperty(_) ? (r.hasOwnProperty(_) && (t.prev = "define"), "keyword") : "define" == g ? "def" : "variable" + } + return e.next(), null + } + + function b() { + var e = 0; + return function(t, n, r) { + var i = g(t, n, r); + if ("punctuation" == i) + if ("(" == t.current()) ++e; + else if (")" == t.current()) { + if (0 == e) return t.backUp(1), n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n); + --e + } + return i + } + } + + function v(e, t, n) { + for (var r, i = 1 == e.length, a = !1; r = t.peek();) + if (a) { + if (t.next(), "(" == r) return n.tokenize.push(b()), "string"; + a = !1 + } else { + if (t.match(e)) return n.tokenize.pop(), "string"; + t.next(), a = "\\" == r + } + return i && n.tokenize.pop(), "string" + } + + function y(e, t) { + for (var n; e.match(/^[^/*]+/, !0), n = e.next();) "/" === n && e.eat("*") ? t.tokenize.push(y) : "*" === n && e.eat("/") && t.tokenize.pop(); + return "comment" + } + + function k(e, t, n) { + this.prev = e, this.align = t, this.indented = n + } + + function x(e, t) { + var n = t.match(/^\s*($|\/[\/\*])/, !1) ? null : t.column() + 1; + e.context = new k(e.context, n, e.indented) + } + + function _(e) { + e.context && (e.indented = e.context.indented, e.context = e.context.prev) + } + e.defineMode("swift", (function(e) { + return { + startState: function() { + return { + prev: null, + context: null, + indented: 0, + tokenize: [] + } + }, + token: function(e, t) { + var n = t.prev; + t.prev = null; + var r = (t.tokenize[t.tokenize.length - 1] || g)(e, t, n); + if (r && "comment" != r ? t.prev || (t.prev = r) : t.prev = n, "punctuation" == r) { + var i = /[\(\[\{]|([\]\)\}])/.exec(e.current()); + i && (i[1] ? _ : x)(t, e) + } + return r + }, + indent: function(t, n) { + var r = t.context; + if (!r) return 0; + var i = /^[\]\}\)]/.test(n); + return null != r.align ? r.align - (i ? 1 : 0) : r.indented + (i ? 0 : e.indentUnit) + }, + electricInput: /^\s*[\)\}\]]$/, + lineComment: "//", + blockCommentStart: "/*", + blockCommentEnd: "*/", + fold: "brace", + closeBrackets: "()[]{}''\"\"``" + } + })), e.defineMIME("text/x-swift", "swift") + }(n(4631)) + }, + 25664: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("tcl", (function() { + function e(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var t = e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), + n = e("if elseif else and not or eq ne in ni for foreach while switch"), + r = /[+\-*&%=<>!?^\/\|]/; + + function i(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function a(e, a) { + var c = a.beforeParams; + a.beforeParams = !1; + var u = e.next(); + if ('"' != u && "'" != u || !a.inParams) { + if (/[\[\]{}\(\),;\.]/.test(u)) return "(" == u && c ? a.inParams = !0 : ")" == u && (a.inParams = !1), null; + if (/\d/.test(u)) return e.eatWhile(/[\w\.]/), "number"; + if ("#" == u) return e.eat("*") ? i(e, a, s) : "#" == u && e.match(/ *\[ *\[/) ? i(e, a, l) : (e.skipToEnd(), "comment"); + if ('"' == u) return e.skipTo(/"/), "comment"; + if ("$" == u) return e.eatWhile(/[$_a-z0-9A-Z\.{:]/), e.eatWhile(/}/), a.beforeParams = !0, "builtin"; + if (r.test(u)) return e.eatWhile(r), "comment"; + e.eatWhile(/[\w\$_{}\xa1-\uffff]/); + var d = e.current().toLowerCase(); + return t && t.propertyIsEnumerable(d) ? "keyword" : n && n.propertyIsEnumerable(d) ? (a.beforeParams = !0, "keyword") : null + } + return i(e, a, o(u)) + } + + function o(e) { + return function(t, n) { + for (var r, i = !1, o = !1; null != (r = t.next());) { + if (r == e && !i) { + o = !0; + break + } + i = !i && "\\" == r + } + return o && (n.tokenize = a), "string" + } + } + + function s(e, t) { + for (var n, r = !1; n = e.next();) { + if ("#" == n && r) { + t.tokenize = a; + break + } + r = "*" == n + } + return "comment" + } + + function l(e, t) { + for (var n, r = 0; n = e.next();) { + if ("#" == n && 2 == r) { + t.tokenize = a; + break + } + "]" == n ? r++ : " " != n && (r = 0) + } + return "meta" + } + return { + startState: function() { + return { + tokenize: a, + beforeParams: !1, + inParams: !1 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + lineComment: "#" + } + })), e.defineMIME("text/x-tcl", "tcl") + }(n(4631)) + }, + 43897: function(e, t, n) { + ! function(e) { + "use strict"; + var t = { + addition: "positive", + attributes: "attribute", + bold: "strong", + cite: "keyword", + code: "atom", + definitionList: "number", + deletion: "negative", + div: "punctuation", + em: "em", + footnote: "variable", + footCite: "qualifier", + header: "header", + html: "comment", + image: "string", + italic: "em", + link: "link", + linkDefinition: "link", + list1: "variable-2", + list2: "variable-3", + list3: "keyword", + notextile: "string-2", + pre: "operator", + p: "property", + quote: "bracket", + span: "quote", + specialChar: "tag", + strong: "strong", + sub: "builtin", + sup: "builtin", + table: "variable-3", + tableHeading: "operator" + }; + + function n(e, t) { + t.mode = p.newLayout, t.tableHeading = !1, "definitionList" === t.layoutType && t.spanningLayout && e.match(d("definitionListEnd"), !1) && (t.spanningLayout = !1) + } + + function r(e, n, r) { + if ("_" === r) return e.eat("_") ? i(e, n, "italic", /__/, 2) : i(e, n, "em", /_/, 1); + if ("*" === r) return e.eat("*") ? i(e, n, "bold", /\*\*/, 2) : i(e, n, "strong", /\*/, 1); + if ("[" === r) return e.match(/\d+\]/) && (n.footCite = !0), a(n); + if ("(" === r && e.match(/^(r|tm|c)\)/)) return s(n, t.specialChar); + if ("<" === r && e.match(/(\w+)[^>]+>[^<]+<\/\1>/)) return s(n, t.html); + if ("?" === r && e.eat("?")) return i(e, n, "cite", /\?\?/, 2); + if ("=" === r && e.eat("=")) return i(e, n, "notextile", /==/, 2); + if ("-" === r && !e.eat("-")) return i(e, n, "deletion", /-/, 1); + if ("+" === r) return i(e, n, "addition", /\+/, 1); + if ("~" === r) return i(e, n, "sub", /~/, 1); + if ("^" === r) return i(e, n, "sup", /\^/, 1); + if ("%" === r) return i(e, n, "span", /%/, 1); + if ("@" === r) return i(e, n, "code", /@/, 1); + if ("!" === r) { + var o = i(e, n, "image", /(?:\([^\)]+\))?!/, 1); + return e.match(/^:\S+/), o + } + return a(n) + } + + function i(e, t, n, r, i) { + var o = e.pos > i ? e.string.charAt(e.pos - i - 1) : null, + s = e.peek(); + if (t[n]) { + if ((!s || /\W/.test(s)) && o && /\S/.test(o)) { + var l = a(t); + return t[n] = !1, l + } + } else(!o || /\W/.test(o)) && s && /\S/.test(s) && e.match(new RegExp("^.*\\S" + r.source + "(?:\\W|$)"), !1) && (t[n] = !0, t.mode = p.attributes); + return a(t) + } + + function a(e) { + var n = o(e); + if (n) return n; + var r = []; + return e.layoutType && r.push(t[e.layoutType]), r = r.concat(l(e, "addition", "bold", "cite", "code", "deletion", "em", "footCite", "image", "italic", "link", "span", "strong", "sub", "sup", "table", "tableHeading")), "header" === e.layoutType && r.push(t.header + "-" + e.header), r.length ? r.join(" ") : null + } + + function o(e) { + var n = e.layoutType; + switch (n) { + case "notextile": + case "code": + case "pre": + return t[n]; + default: + return e.notextile ? t.notextile + (n ? " " + t[n] : "") : null + } + } + + function s(e, t) { + var n = o(e); + if (n) return n; + var r = a(e); + return t ? r ? r + " " + t : t : r + } + + function l(e) { + for (var n = [], r = 1; r < arguments.length; ++r) e[arguments[r]] && n.push(t[arguments[r]]); + return n + } + + function c(e) { + var t = e.spanningLayout, + n = e.layoutType; + for (var r in e) e.hasOwnProperty(r) && delete e[r]; + e.mode = p.newLayout, t && (e.layoutType = n, e.spanningLayout = !0) + } + var u = { + cache: {}, + single: { + bc: "bc", + bq: "bq", + definitionList: /- .*?:=+/, + definitionListEnd: /.*=:\s*$/, + div: "div", + drawTable: /\|.*\|/, + foot: /fn\d+/, + header: /h[1-6]/, + html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/, + link: /[^"]+":\S/, + linkDefinition: /\[[^\s\]]+\]\S+/, + list: /(?:#+|\*+)/, + notextile: "notextile", + para: "p", + pre: "pre", + table: "table", + tableCellAttributes: /[\/\\]\d+/, + tableHeading: /\|_\./, + tableText: /[^"_\*\[\(\?\+~\^%@|-]+/, + text: /[^!"_=\*\[\(<\?\+~\^%@-]+/ + }, + attributes: { + align: /(?:<>|<|>|=)/, + selector: /\([^\(][^\)]+\)/, + lang: /\[[^\[\]]+\]/, + pad: /(?:\(+|\)+){1,2}/, + css: /\{[^\}]+\}/ + }, + createRe: function(e) { + switch (e) { + case "drawTable": + return u.makeRe("^", u.single.drawTable, "$"); + case "html": + return u.makeRe("^", u.single.html, "(?:", u.single.html, ")*", "$"); + case "linkDefinition": + return u.makeRe("^", u.single.linkDefinition, "$"); + case "listLayout": + return u.makeRe("^", u.single.list, d("allAttributes"), "*\\s+"); + case "tableCellAttributes": + return u.makeRe("^", u.choiceRe(u.single.tableCellAttributes, d("allAttributes")), "+\\."); + case "type": + return u.makeRe("^", d("allTypes")); + case "typeLayout": + return u.makeRe("^", d("allTypes"), d("allAttributes"), "*\\.\\.?", "(\\s+|$)"); + case "attributes": + return u.makeRe("^", d("allAttributes"), "+"); + case "allTypes": + return u.choiceRe(u.single.div, u.single.foot, u.single.header, u.single.bc, u.single.bq, u.single.notextile, u.single.pre, u.single.table, u.single.para); + case "allAttributes": + return u.choiceRe(u.attributes.selector, u.attributes.css, u.attributes.lang, u.attributes.align, u.attributes.pad); + default: + return u.makeRe("^", u.single[e]) + } + }, + makeRe: function() { + for (var e = "", t = 0; t < arguments.length; ++t) { + var n = arguments[t]; + e += "string" === typeof n ? n : n.source + } + return new RegExp(e) + }, + choiceRe: function() { + for (var e = [arguments[0]], t = 1; t < arguments.length; ++t) e[2 * t - 1] = "|", e[2 * t] = arguments[t]; + return e.unshift("(?:"), e.push(")"), u.makeRe.apply(null, e) + } + }; + + function d(e) { + return u.cache[e] || (u.cache[e] = u.createRe(e)) + } + var p = { + newLayout: function(e, t) { + return e.match(d("typeLayout"), !1) ? (t.spanningLayout = !1, (t.mode = p.blockType)(e, t)) : (o(t) || (e.match(d("listLayout"), !1) ? n = p.list : e.match(d("drawTable"), !1) ? n = p.table : e.match(d("linkDefinition"), !1) ? n = p.linkDefinition : e.match(d("definitionList")) ? n = p.definitionList : e.match(d("html"), !1) && (n = p.html)), (t.mode = n || p.text)(e, t)); + var n + }, + blockType: function(e, t) { + var n, r; + return t.layoutType = null, (n = e.match(d("type"))) ? ((n = (r = n[0]).match(d("header"))) ? (t.layoutType = "header", t.header = parseInt(n[0][1])) : r.match(d("bq")) ? t.layoutType = "quote" : r.match(d("bc")) ? t.layoutType = "code" : r.match(d("foot")) ? t.layoutType = "footnote" : r.match(d("notextile")) ? t.layoutType = "notextile" : r.match(d("pre")) ? t.layoutType = "pre" : r.match(d("div")) ? t.layoutType = "div" : r.match(d("table")) && (t.layoutType = "table"), t.mode = p.attributes, a(t)) : (t.mode = p.text)(e, t) + }, + text: function(e, t) { + if (e.match(d("text"))) return a(t); + var n = e.next(); + return '"' === n ? (t.mode = p.link)(e, t) : r(e, t, n) + }, + attributes: function(e, n) { + return n.mode = p.layoutLength, e.match(d("attributes")) ? s(n, t.attributes) : a(n) + }, + layoutLength: function(e, t) { + return e.eat(".") && e.eat(".") && (t.spanningLayout = !0), t.mode = p.text, a(t) + }, + list: function(e, t) { + var n = e.match(d("list")); + t.listDepth = n[0].length; + var r = (t.listDepth - 1) % 3; + return t.layoutType = r ? 1 === r ? "list2" : "list3" : "list1", t.mode = p.attributes, a(t) + }, + link: function(e, n) { + return n.mode = p.text, e.match(d("link")) ? (e.match(/\S+/), s(n, t.link)) : a(n) + }, + linkDefinition: function(e, n) { + return e.skipToEnd(), s(n, t.linkDefinition) + }, + definitionList: function(e, t) { + return e.match(d("definitionList")), t.layoutType = "definitionList", e.match(/\s*$/) ? t.spanningLayout = !0 : t.mode = p.attributes, a(t) + }, + html: function(e, n) { + return e.skipToEnd(), s(n, t.html) + }, + table: function(e, t) { + return t.layoutType = "table", (t.mode = p.tableCell)(e, t) + }, + tableCell: function(e, t) { + return e.match(d("tableHeading")) ? t.tableHeading = !0 : e.eat("|"), t.mode = p.tableCellAttributes, a(t) + }, + tableCellAttributes: function(e, n) { + return n.mode = p.tableText, e.match(d("tableCellAttributes")) ? s(n, t.attributes) : a(n) + }, + tableText: function(e, t) { + return e.match(d("tableText")) ? a(t) : "|" === e.peek() ? (t.mode = p.tableCell, a(t)) : r(e, t, e.next()) + } + }; + e.defineMode("textile", (function() { + return { + startState: function() { + return { + mode: p.newLayout + } + }, + token: function(e, t) { + return e.sol() && n(e, t), t.mode(e, t) + }, + blankLine: c + } + })), e.defineMIME("text/x-textile", "textile") + }(n(4631)) + }, + 91046: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("tiddlywiki", (function() { + var e = {}, + t = { + allTags: !0, + closeAll: !0, + list: !0, + newJournal: !0, + newTiddler: !0, + permaview: !0, + saveChanges: !0, + search: !0, + slider: !0, + tabs: !0, + tag: !0, + tagging: !0, + tags: !0, + tiddler: !0, + timeline: !0, + today: !0, + version: !0, + option: !0, + with: !0, + filter: !0 + }, + n = /[\w_\-]/i, + r = /^\-\-\-\-+$/, + i = /^\/\*\*\*$/, + a = /^\*\*\*\/$/, + o = /^<<<$/, + s = /^\/\/\{\{\{$/, + l = /^\/\/\}\}\}$/, + c = /^$/, + u = /^$/, + d = /^\{\{\{$/, + p = /^\}\}\}$/, + f = /.*?\}\}\}/; + + function m(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function h(t, p) { + var f = t.sol(), + h = t.peek(); + if (p.block = !1, f && /[<\/\*{}\-]/.test(h)) { + if (t.match(d)) return p.block = !0, m(t, p, v); + if (t.match(o)) return "quote"; + if (t.match(i) || t.match(a)) return "comment"; + if (t.match(s) || t.match(l) || t.match(c) || t.match(u)) return "comment"; + if (t.match(r)) return "hr" + } + if (t.next(), f && /[\/\*!#;:>|]/.test(h)) { + if ("!" == h) return t.skipToEnd(), "header"; + if ("*" == h) return t.eatWhile("*"), "comment"; + if ("#" == h) return t.eatWhile("#"), "comment"; + if (";" == h) return t.eatWhile(";"), "comment"; + if (":" == h) return t.eatWhile(":"), "comment"; + if (">" == h) return t.eatWhile(">"), "quote"; + if ("|" == h) return "header" + } + if ("{" == h && t.match("{{")) return m(t, p, v); + if (/[hf]/i.test(h) && /[ti]/i.test(t.peek()) && t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) return "link"; + if ('"' == h) return "string"; + if ("~" == h) return "brace"; + if (/[\[\]]/.test(h) && t.match(h)) return "brace"; + if ("@" == h) return t.eatWhile(n), "link"; + if (/\d/.test(h)) return t.eatWhile(/\d/), "number"; + if ("/" == h) { + if (t.eat("%")) return m(t, p, g); + if (t.eat("/")) return m(t, p, y) + } + if ("_" == h && t.eat("_")) return m(t, p, k); + if ("-" == h && t.eat("-")) { + if (" " != t.peek()) return m(t, p, x); + if (" " == t.peek()) return "brace" + } + return "'" == h && t.eat("'") ? m(t, p, b) : "<" == h && t.eat("<") ? m(t, p, _) : (t.eatWhile(/[\w\$_]/), e.propertyIsEnumerable(t.current()) ? "keyword" : null) + } + + function g(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = h; + break + } + r = "%" == n + } + return "comment" + } + + function b(e, t) { + for (var n, r = !1; n = e.next();) { + if ("'" == n && r) { + t.tokenize = h; + break + } + r = "'" == n + } + return "strong" + } + + function v(e, t) { + var n = t.block; + return n && e.current() ? "comment" : !n && e.match(f) || n && e.sol() && e.match(p) ? (t.tokenize = h, "comment") : (e.next(), "comment") + } + + function y(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = h; + break + } + r = "/" == n + } + return "em" + } + + function k(e, t) { + for (var n, r = !1; n = e.next();) { + if ("_" == n && r) { + t.tokenize = h; + break + } + r = "_" == n + } + return "underlined" + } + + function x(e, t) { + for (var n, r = !1; n = e.next();) { + if ("-" == n && r) { + t.tokenize = h; + break + } + r = "-" == n + } + return "strikethrough" + } + + function _(e, n) { + if ("<<" == e.current()) return "macro"; + var r = e.next(); + return r ? ">" == r && ">" == e.peek() ? (e.next(), n.tokenize = h, "macro") : (e.eatWhile(/[\w\$_]/), t.propertyIsEnumerable(e.current()) ? "keyword" : null) : (n.tokenize = h, null) + } + return { + startState: function() { + return { + tokenize: h + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + } + } + })), e.defineMIME("text/x-tiddlywiki", "tiddlywiki") + }(n(4631)) + }, + 17988: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("tiki", (function(e) { + function t(e, t, n) { + return function(i, a) { + for (; !i.eol();) { + if (i.match(t)) { + a.tokenize = r; + break + } + i.next() + } + return n && (a.tokenize = n), e + } + } + + function n(e) { + return function(t, n) { + for (; !t.eol();) t.next(); + return n.tokenize = r, e + } + } + + function r(e, i) { + function a(t) { + return i.tokenize = t, t(e, i) + } + var o = e.sol(), + s = e.next(); + switch (s) { + case "{": + return e.eat("/"), e.eatSpace(), e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/), i.tokenize = c, "tag"; + case "_": + if (e.eat("_")) return a(t("strong", "__", r)); + break; + case "'": + if (e.eat("'")) return a(t("em", "''", r)); + break; + case "(": + if (e.eat("(")) return a(t("variable-2", "))", r)); + break; + case "[": + return a(t("variable-3", "]", r)); + case "|": + if (e.eat("|")) return a(t("comment", "||")); + break; + case "-": + if (e.eat("=")) return a(t("header string", "=-", r)); + if (e.eat("-")) return a(t("error tw-deleted", "--", r)); + break; + case "=": + if (e.match("==")) return a(t("tw-underline", "===", r)); + break; + case ":": + if (e.eat(":")) return a(t("comment", "::")); + break; + case "^": + return a(t("tw-box", "^")); + case "~": + if (e.match("np~")) return a(t("meta", "~/np~")) + } + if (o) switch (s) { + case "!": + return e.match("!!!!!") || e.match("!!!!") || e.match("!!!") || e.match("!!"), a(n("header string")); + case "*": + case "#": + case "+": + return a(n("tw-listitem bracket")) + } + return null + } + var i, a, o, s, l = e.indentUnit; + + function c(e, t) { + var n = e.next(), + i = e.peek(); + return "}" == n ? (t.tokenize = r, "tag") : "(" == n || ")" == n ? "bracket" : "=" == n ? (a = "equals", ">" == i && (e.next(), i = e.peek()), /[\'\"]/.test(i) || (t.tokenize = d()), "operator") : /[\'\"]/.test(n) ? (t.tokenize = u(n), t.tokenize(e, t)) : (e.eatWhile(/[^\s\u00a0=\"\'\/?]/), "keyword") + } + + function u(e) { + return function(t, n) { + for (; !t.eol();) + if (t.next() == e) { + n.tokenize = c; + break + } + return "string" + } + } + + function d() { + return function(e, t) { + for (; !e.eol();) { + var n = e.next(), + r = e.peek(); + if (" " == n || "," == n || /[ )}]/.test(r)) { + t.tokenize = c; + break + } + } + return "string" + } + } + + function p() { + for (var e = arguments.length - 1; e >= 0; e--) o.cc.push(arguments[e]) + } + + function f() { + return p.apply(null, arguments), !0 + } + + function m(e, t) { + var n = o.context && o.context.noIndent; + o.context = { + prev: o.context, + pluginName: e, + indent: o.indented, + startOfLine: t, + noIndent: n + } + } + + function h() { + o.context && (o.context = o.context.prev) + } + + function g(e) { + if ("openPlugin" == e) return o.pluginName = i, f(y, b(o.startOfLine)); + if ("closePlugin" == e) { + var t = !1; + return o.context ? (t = o.context.pluginName != i, h()) : t = !0, t && (s = "error"), f(v(t)) + } + return "string" == e ? (o.context && "!cdata" == o.context.name || m("!cdata"), o.tokenize == r && h(), f()) : f() + } + + function b(e) { + return function(t) { + return "selfclosePlugin" == t || "endPlugin" == t ? f() : "endPlugin" == t ? (m(o.pluginName, e), f()) : f() + } + } + + function v(e) { + return function(t) { + return e && (s = "error"), "endPlugin" == t ? f() : p() + } + } + + function y(e) { + return "keyword" == e ? (s = "attribute", f(y)) : "equals" == e ? f(k, y) : p() + } + + function k(e) { + return "keyword" == e ? (s = "string", f()) : "string" == e ? f(x) : p() + } + + function x(e) { + return "string" == e ? f(x) : p() + } + return { + startState: function() { + return { + tokenize: r, + cc: [], + indented: 0, + startOfLine: !0, + pluginName: null, + context: null + } + }, + token: function(e, t) { + if (e.sol() && (t.startOfLine = !0, t.indented = e.indentation()), e.eatSpace()) return null; + s = a = i = null; + var n = t.tokenize(e, t); + if ((n || a) && "comment" != n) + for (o = t; !(t.cc.pop() || g)(a || n);); + return t.startOfLine = !1, s || n + }, + indent: function(e, t) { + var n = e.context; + if (n && n.noIndent) return 0; + for (n && /^{\//.test(t) && (n = n.prev); n && !n.startOfLine;) n = n.prev; + return n ? n.indent + l : 0 + }, + electricChars: "/" + } + })), e.defineMIME("text/tiki", "tiki") + }(n(4631)) + }, + 47617: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("toml", (function() { + return { + startState: function() { + return { + inString: !1, + stringType: "", + lhs: !0, + inArray: 0 + } + }, + token: function(e, t) { + if (t.inString || '"' != e.peek() && "'" != e.peek() || (t.stringType = e.peek(), e.next(), t.inString = !0), e.sol() && 0 === t.inArray && (t.lhs = !0), t.inString) { + for (; t.inString && !e.eol();) e.peek() === t.stringType ? (e.next(), t.inString = !1) : "\\" === e.peek() ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/); + return t.lhs ? "property string" : "string" + } + return t.inArray && "]" === e.peek() ? (e.next(), t.inArray--, "bracket") : t.lhs && "[" === e.peek() && e.skipTo("]") ? (e.next(), "]" === e.peek() && e.next(), "atom") : "#" === e.peek() ? (e.skipToEnd(), "comment") : e.eatSpace() ? null : t.lhs && e.eatWhile((function(e) { + return "=" != e && " " != e + })) ? "property" : t.lhs && "=" === e.peek() ? (e.next(), t.lhs = !1, null) : !t.lhs && e.match(/^\d\d\d\d[\d\-\:\.T]*Z/) ? "atom" : t.lhs || !e.match("true") && !e.match("false") ? t.lhs || "[" !== e.peek() ? !t.lhs && e.match(/^\-?\d+(?:\.\d+)?/) ? "number" : (e.eatSpace() || e.next(), null) : (t.inArray++, e.next(), "bracket") : "atom" + } + } + })), e.defineMIME("text/x-toml", "toml") + }(n(4631)) + }, + 66043: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("tornado:inner", (function() { + var e = ["and", "as", "assert", "autoescape", "block", "break", "class", "comment", "context", "continue", "datetime", "def", "del", "elif", "else", "end", "escape", "except", "exec", "extends", "false", "finally", "for", "from", "global", "if", "import", "in", "include", "is", "json_encode", "lambda", "length", "linkify", "load", "module", "none", "not", "or", "pass", "print", "put", "raise", "raw", "return", "self", "set", "squeeze", "super", "true", "try", "url_escape", "while", "with", "without", "xhtml_escape", "yield"]; + + function t(e, t) { + e.eatWhile(/[^\{]/); + var r = e.next(); + if ("{" == r && (r = e.eat(/\{|%|#/))) return t.tokenize = n(r), "tag" + } + + function n(n) { + return "{" == n && (n = "}"), + function(r, i) { + return r.next() == n && r.eat("}") ? (i.tokenize = t, "tag") : r.match(e) ? "keyword" : "#" == n ? "comment" : "string" + } + } + return e = new RegExp("^((" + e.join(")|(") + "))\\b"), { + startState: function() { + return { + tokenize: t + } + }, + token: function(e, t) { + return t.tokenize(e, t) + } + } + })), e.defineMode("tornado", (function(t) { + var n = e.getMode(t, "text/html"), + r = e.getMode(t, "tornado:inner"); + return e.overlayMode(n, r) + })), e.defineMIME("text/x-tornado", "tornado") + }(n(4631), n(16531), n(14146)) + }, + 20800: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("troff", (function() { + var e = {}; + + function t(t) { + if (t.eatSpace()) return null; + var n = t.sol(), + r = t.next(); + if ("\\" === r) return t.match("fB") || t.match("fR") || t.match("fI") || t.match("u") || t.match("d") || t.match("%") || t.match("&") ? "string" : t.match("m[") ? (t.skipTo("]"), t.next(), "string") : t.match("s+") || t.match("s-") ? (t.eatWhile(/[\d-]/), "string") : t.match("(") || t.match("*(") ? (t.eatWhile(/[\w-]/), "string") : "string"; + if (n && ("." === r || "'" === r) && t.eat("\\") && t.eat('"')) return t.skipToEnd(), "comment"; + if (n && "." === r) { + if (t.match("B ") || t.match("I ") || t.match("R ")) return "attribute"; + if (t.match("TH ") || t.match("SH ") || t.match("SS ") || t.match("HP ")) return t.skipToEnd(), "quote"; + if (t.match(/[A-Z]/) && t.match(/[A-Z]/) || t.match(/[a-z]/) && t.match(/[a-z]/)) return "attribute" + } + t.eatWhile(/[\w-]/); + var i = t.current(); + return e.hasOwnProperty(i) ? e[i] : null + } + + function n(e, n) { + return (n.tokens[0] || t)(e, n) + } + return { + startState: function() { + return { + tokens: [] + } + }, + token: function(e, t) { + return n(e, t) + } + } + })), e.defineMIME("text/troff", "troff"), e.defineMIME("text/x-troff", "troff"), e.defineMIME("application/x-troff", "troff") + }(n(4631)) + }, + 68923: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + e.defineMode("ttcn-cfg", (function(e, t) { + var n, r = e.indentUnit, + i = t.keywords || {}, + a = t.fileNCtrlMaskOptions || {}, + o = t.externalCommands || {}, + s = t.multiLineStrings, + l = !1 !== t.indentStatements, + c = /[\|]/; + + function u(e, t) { + var r = e.next(); + if ('"' == r || "'" == r) return t.tokenize = d(r), t.tokenize(e, t); + if (/[:=]/.test(r)) return n = r, "punctuation"; + if ("#" == r) return e.skipToEnd(), "comment"; + if (/\d/.test(r)) return e.eatWhile(/[\w\.]/), "number"; + if (c.test(r)) return e.eatWhile(c), "operator"; + if ("[" == r) return e.eatWhile(/[\w_\]]/), "number sectionTitle"; + e.eatWhile(/[\w\$_]/); + var s = e.current(); + return i.propertyIsEnumerable(s) ? "keyword" : a.propertyIsEnumerable(s) ? "negative fileNCtrlMaskOptions" : o.propertyIsEnumerable(s) ? "negative externalCommands" : "variable" + } + + function d(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + var o = t.peek(); + o && ("b" != (o = o.toLowerCase()) && "h" != o && "o" != o || t.next()), a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !s) && (n.tokenize = null), "string" + } + } + + function p(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function f(e, t, n) { + var r = e.indented; + return e.context && "statement" == e.context.type && (r = e.context.indented), e.context = new p(r, t, n, null, e.context) + } + + function m(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new p((e || 0) - r, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + n = null; + var i = (t.tokenize || u)(e, t); + if ("comment" == i) return i; + if (null == r.align && (r.align = !0), ";" != n && ":" != n && "," != n || "statement" != r.type) + if ("{" == n) f(t, e.column(), "}"); + else if ("[" == n) f(t, e.column(), "]"); + else if ("(" == n) f(t, e.column(), ")"); + else if ("}" == n) { + for (; + "statement" == r.type;) r = m(t); + for ("}" == r.type && (r = m(t)); + "statement" == r.type;) r = m(t) + } else n == r.type ? m(t) : l && (("}" == r.type || "top" == r.type) && ";" != n || "statement" == r.type && "newstatement" == n) && f(t, e.column(), "statement"); + else m(t); + return t.startOfLine = !1, i + }, + electricChars: "{}", + lineComment: "#", + fold: "brace" + } + })), e.defineMIME("text/x-ttcn-cfg", { + name: "ttcn-cfg", + keywords: t("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"), + fileNCtrlMaskOptions: t("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"), + externalCommands: t("BeginControlPart EndControlPart BeginTestCase EndTestCase"), + multiLineStrings: !0 + }) + }(n(4631)) + }, + 71105: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + + function n(t, n) { + "string" == typeof t && (t = [t]); + var r = []; + + function i(e) { + if (e) + for (var t in e) e.hasOwnProperty(t) && r.push(t) + } + i(n.keywords), i(n.builtin), i(n.timerOps), i(n.portOps), r.length && (n.helperType = t[0], e.registerHelper("hintWords", t[0], r)); + for (var a = 0; a < t.length; ++a) e.defineMIME(t[a], n) + } + e.defineMode("ttcn", (function(e, t) { + var n, r = e.indentUnit, + i = t.keywords || {}, + a = t.builtin || {}, + o = t.timerOps || {}, + s = t.portOps || {}, + l = t.configOps || {}, + c = t.verdictOps || {}, + u = t.sutOps || {}, + d = t.functionOps || {}, + p = t.verdictConsts || {}, + f = t.booleanConsts || {}, + m = t.otherConsts || {}, + h = t.types || {}, + g = t.visibilityModifiers || {}, + b = t.templateMatch || {}, + v = t.multiLineStrings, + y = !1 !== t.indentStatements, + k = /[+\-*&@=<>!\/]/; + + function x(e, t) { + var r = e.next(); + if ('"' == r || "'" == r) return t.tokenize = _(r), t.tokenize(e, t); + if (/[\[\]{}\(\),;\\:\?\.]/.test(r)) return n = r, "punctuation"; + if ("#" == r) return e.skipToEnd(), "atom preprocessor"; + if ("%" == r) return e.eatWhile(/\b/), "atom ttcn3Macros"; + if (/\d/.test(r)) return e.eatWhile(/[\w\.]/), "number"; + if ("/" == r) { + if (e.eat("*")) return t.tokenize = w, w(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (k.test(r)) return "@" == r && (e.match("try") || e.match("catch") || e.match("lazy")) ? "keyword" : (e.eatWhile(k), "operator"); + e.eatWhile(/[\w\$_\xa1-\uffff]/); + var v = e.current(); + return i.propertyIsEnumerable(v) ? "keyword" : a.propertyIsEnumerable(v) ? "builtin" : o.propertyIsEnumerable(v) ? "def timerOps" : l.propertyIsEnumerable(v) ? "def configOps" : c.propertyIsEnumerable(v) ? "def verdictOps" : s.propertyIsEnumerable(v) ? "def portOps" : u.propertyIsEnumerable(v) ? "def sutOps" : d.propertyIsEnumerable(v) ? "def functionOps" : p.propertyIsEnumerable(v) ? "string verdictConsts" : f.propertyIsEnumerable(v) ? "string booleanConsts" : m.propertyIsEnumerable(v) ? "string otherConsts" : h.propertyIsEnumerable(v) ? "builtin types" : g.propertyIsEnumerable(v) ? "builtin visibilityModifiers" : b.propertyIsEnumerable(v) ? "atom templateMatch" : "variable" + } + + function _(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + var o = t.peek(); + o && ("b" != (o = o.toLowerCase()) && "h" != o && "o" != o || t.next()), a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !v) && (n.tokenize = null), "string" + } + } + + function w(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = null; + break + } + r = "*" == n + } + return "comment" + } + + function E(e, t, n, r, i) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i + } + + function T(e, t, n) { + var r = e.indented; + return e.context && "statement" == e.context.type && (r = e.context.indented), e.context = new E(r, t, n, null, e.context) + } + + function S(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + return { + startState: function(e) { + return { + tokenize: null, + context: new E((e || 0) - r, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null; + n = null; + var i = (t.tokenize || x)(e, t); + if ("comment" == i) return i; + if (null == r.align && (r.align = !0), ";" != n && ":" != n && "," != n || "statement" != r.type) + if ("{" == n) T(t, e.column(), "}"); + else if ("[" == n) T(t, e.column(), "]"); + else if ("(" == n) T(t, e.column(), ")"); + else if ("}" == n) { + for (; + "statement" == r.type;) r = S(t); + for ("}" == r.type && (r = S(t)); + "statement" == r.type;) r = S(t) + } else n == r.type ? S(t) : y && (("}" == r.type || "top" == r.type) && ";" != n || "statement" == r.type && "newstatement" == n) && T(t, e.column(), "statement"); + else S(t); + return t.startOfLine = !1, i + }, + electricChars: "{}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "brace" + } + })), n(["text/x-ttcn", "text/x-ttcn3", "text/x-ttcnpp"], { + name: "ttcn", + keywords: t("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"), + builtin: t("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"), + types: t("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"), + timerOps: t("read running start stop timeout"), + portOps: t("call catch check clear getcall getreply halt raise receive reply send trigger"), + configOps: t("create connect disconnect done kill killed map unmap"), + verdictOps: t("getverdict setverdict"), + sutOps: t("action"), + functionOps: t("apply derefers refers"), + verdictConsts: t("error fail inconc none pass"), + booleanConsts: t("true false"), + otherConsts: t("null NULL omit"), + visibilityModifiers: t("private public friend"), + templateMatch: t("complement ifpresent subset superset permutation"), + multiLineStrings: !0 + }) + }(n(4631)) + }, + 73556: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("turtle", (function(e) { + var t, n = e.indentUnit; + + function r(e) { + return new RegExp("^(?:" + e.join("|") + ")$", "i") + } + r([]); + var i = r(["@prefix", "@base", "a"]), + a = /[*+\-<>=&|]/; + + function o(e, n) { + var r = e.next(); + if (t = null, "<" != r || e.match(/^[\s\u00a0=]/, !1)) { + if ('"' == r || "'" == r) return n.tokenize = s(r), n.tokenize(e, n); + if (/[{}\(\),\.;\[\]]/.test(r)) return t = r, null; + if ("#" == r) return e.skipToEnd(), "comment"; + if (a.test(r)) return e.eatWhile(a), null; + if (":" == r) return "operator"; + if (e.eatWhile(/[_\w\d]/), ":" == e.peek()) return "variable-3"; + var o = e.current(); + return i.test(o) ? "meta" : r >= "A" && r <= "Z" ? "comment" : "keyword" + } + return e.match(/^[^\s\u00a0>]*>?/), "atom" + } + + function s(e) { + return function(t, n) { + for (var r, i = !1; null != (r = t.next());) { + if (r == e && !i) { + n.tokenize = o; + break + } + i = !i && "\\" == r + } + return "string" + } + } + + function l(e, t, n) { + e.context = { + prev: e.context, + indent: e.indent, + col: n, + type: t + } + } + + function c(e) { + e.indent = e.context.indent, e.context = e.context.prev + } + return { + startState: function() { + return { + tokenize: o, + context: null, + indent: 0, + col: 0 + } + }, + token: function(e, n) { + if (e.sol() && (n.context && null == n.context.align && (n.context.align = !1), n.indent = e.indentation()), e.eatSpace()) return null; + var r = n.tokenize(e, n); + if ("comment" != r && n.context && null == n.context.align && "pattern" != n.context.type && (n.context.align = !0), "(" == t) l(n, ")", e.column()); + else if ("[" == t) l(n, "]", e.column()); + else if ("{" == t) l(n, "}", e.column()); + else if (/[\]\}\)]/.test(t)) { + for (; n.context && "pattern" == n.context.type;) c(n); + n.context && t == n.context.type && c(n) + } else "." == t && n.context && "pattern" == n.context.type ? c(n) : /atom|string|variable/.test(r) && n.context && (/[\}\]]/.test(n.context.type) ? l(n, "pattern", e.column()) : "pattern" != n.context.type || n.context.align || (n.context.align = !0, n.context.col = e.column())); + return r + }, + indent: function(e, t) { + var r = t && t.charAt(0), + i = e.context; + if (/[\]\}]/.test(r)) + for (; i && "pattern" == i.type;) i = i.prev; + var a = i && r == i.type; + return i ? "pattern" == i.type ? i.col : i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : n) : 0 + }, + lineComment: "#" + } + })), e.defineMIME("text/turtle", "turtle") + }(n(4631)) + }, + 54702: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("twig:inner", (function() { + var e = ["and", "as", "autoescape", "endautoescape", "block", "do", "endblock", "else", "elseif", "extends", "for", "endfor", "embed", "endembed", "filter", "endfilter", "flush", "from", "if", "endif", "in", "is", "include", "import", "not", "or", "set", "spaceless", "endspaceless", "with", "endwith", "trans", "endtrans", "blocktrans", "endblocktrans", "macro", "endmacro", "use", "verbatim", "endverbatim"], + t = /^[+\-*&%=<>!?|~^]/, + n = /^[:\[\(\{]/, + r = ["true", "false", "null", "empty", "defined", "divisibleby", "divisible by", "even", "odd", "iterable", "sameas", "same as"], + i = /^(\d[+\-\*\/])?\d+(\.\d+)?/; + + function a(a, o) { + var s = a.peek(); + if (o.incomment) return a.skipTo("#}") ? (a.eatWhile(/\#|}/), o.incomment = !1) : a.skipToEnd(), "comment"; + if (o.intag) { + if (o.operator) { + if (o.operator = !1, a.match(r)) return "atom"; + if (a.match(i)) return "number" + } + if (o.sign) { + if (o.sign = !1, a.match(r)) return "atom"; + if (a.match(i)) return "number" + } + if (o.instring) return s == o.instring && (o.instring = !1), a.next(), "string"; + if ("'" == s || '"' == s) return o.instring = s, a.next(), "string"; + if (a.match(o.intag + "}") || a.eat("-") && a.match(o.intag + "}")) return o.intag = !1, "tag"; + if (a.match(t)) return o.operator = !0, "operator"; + if (a.match(n)) o.sign = !0; + else if (a.eat(" ") || a.sol()) { + if (a.match(e)) return "keyword"; + if (a.match(r)) return "atom"; + if (a.match(i)) return "number"; + a.sol() && a.next() + } else a.next(); + return "variable" + } + if (a.eat("{")) { + if (a.eat("#")) return o.incomment = !0, a.skipTo("#}") ? (a.eatWhile(/\#|}/), o.incomment = !1) : a.skipToEnd(), "comment"; + if (s = a.eat(/\{|%/)) return o.intag = s, "{" == s && (o.intag = "}"), a.eat("-"), "tag" + } + a.next() + } + return e = new RegExp("((" + e.join(")|(") + "))\\b"), r = new RegExp("((" + r.join(")|(") + "))\\b"), { + startState: function() { + return {} + }, + token: function(e, t) { + return a(e, t) + } + } + })), e.defineMode("twig", (function(t, n) { + var r = e.getMode(t, "twig:inner"); + return n && n.base ? e.multiplexingMode(e.getMode(t, n.base), { + open: /\{[{#%]/, + close: /[}#%]\}/, + mode: r, + parseDelimiters: !0 + }) : r + })), e.defineMIME("text/x-twig", "twig") + }(n(4631), n(87093)) + }, + 12660: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("vb", (function(t, n) { + var r = "error"; + + function i(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b", "i") + } + var a = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"), + o = new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"), + s = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"), + l = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"), + c = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), + u = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"), + d = ["class", "module", "sub", "enum", "select", "while", "if", "function", "get", "set", "property", "try", "structure", "synclock", "using", "with"], + p = ["else", "elseif", "case", "catch", "finally"], + f = ["next", "loop"], + m = ["and", "andalso", "or", "orelse", "xor", "in", "not", "is", "isnot", "like"], + h = i(m), + g = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"], + b = ["object", "boolean", "char", "string", "byte", "sbyte", "short", "ushort", "int16", "uint16", "integer", "uinteger", "int32", "uint32", "long", "ulong", "int64", "uint64", "decimal", "single", "double", "float", "date", "datetime", "intptr", "uintptr"], + v = i(g), + y = i(b), + k = '"', + x = i(d), + _ = i(p), + w = i(f), + E = i(["end"]), + T = i(["do"]), + S = null; + + function I(e, t) { + t.currentIndent++ + } + + function N(e, t) { + t.currentIndent-- + } + + function A(e, t) { + if (e.eatSpace()) return null; + if ("'" === e.peek()) return e.skipToEnd(), "comment"; + if (e.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) { + var n = !1; + if ((e.match(/^\d*\.\d+F?/i) || e.match(/^\d+\.\d*F?/) || e.match(/^\.\d+F?/)) && (n = !0), n) return e.eat(/J/i), "number"; + var i = !1; + if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? i = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), i = !0) : e.match(/^0(?![\dx])/i) && (i = !0), i) return e.eat(/L/i), "number" + } + return e.match(k) ? (t.tokenize = O(e.current()), t.tokenize(e, t)) : e.match(c) || e.match(l) ? null : e.match(s) || e.match(a) || e.match(h) ? "operator" : e.match(o) ? null : e.match(T) ? (I(e, t), t.doInCurrentLine = !0, "keyword") : e.match(x) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : I(e, t), "keyword") : e.match(_) ? "keyword" : e.match(E) ? (N(e, t), N(e, t), "keyword") : e.match(w) ? (N(e, t), "keyword") : e.match(y) || e.match(v) ? "keyword" : e.match(u) ? "variable" : (e.next(), r) + } + + function O(e) { + var t = 1 == e.length, + i = "string"; + return function(a, o) { + for (; !a.eol();) { + if (a.eatWhile(/[^'"]/), a.match(e)) return o.tokenize = A, i; + a.eat(/['"]/) + } + if (t) { + if (n.singleLineStringErrors) return r; + o.tokenize = A + } + return i + } + } + + function C(e, t) { + var n = t.tokenize(e, t), + i = e.current(); + if ("." === i) return "variable" === (n = t.tokenize(e, t)) ? "variable" : r; + var a = "[({".indexOf(i); + return -1 !== a && I(e, t), "dedent" === S && N(e, t) || -1 !== (a = "])}".indexOf(i)) && N(e, t) ? r : n + } + return e.registerHelper("hintWords", "vb", d.concat(p).concat(f).concat(m).concat(g).concat(b)), { + electricChars: "dDpPtTfFeE ", + startState: function() { + return { + tokenize: A, + lastToken: null, + currentIndent: 0, + nextLineIndent: 0, + doInCurrentLine: !1 + } + }, + token: function(e, t) { + e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0); + var n = C(e, t); + return t.lastToken = { + style: n, + content: e.current() + }, n + }, + indent: function(e, n) { + var r = n.replace(/^\s+|\s+$/g, ""); + return r.match(w) || r.match(E) || r.match(_) ? t.indentUnit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * t.indentUnit + }, + lineComment: "'" + } + })), e.defineMIME("text/x-vb", "vb") + }(n(4631)) + }, + 98073: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("vbscript", (function(e, t) { + var n = "error"; + + function r(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b", "i") + } + var i = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"), + a = new RegExp("^((<>)|(<=)|(>=))"), + o = new RegExp("^[\\.,]"), + s = new RegExp("^[\\(\\)]"), + l = new RegExp("^[A-Za-z][_A-Za-z0-9]*"), + c = ["class", "sub", "select", "while", "if", "function", "property", "with", "for"], + u = ["else", "elseif", "case"], + d = ["next", "loop", "wend"], + p = r(["and", "or", "not", "xor", "is", "mod", "eqv", "imp"]), + f = ["dim", "redim", "then", "until", "randomize", "byval", "byref", "new", "property", "exit", "in", "const", "private", "public", "get", "set", "let", "stop", "on error resume next", "on error goto 0", "option explicit", "call", "me"], + m = ["true", "false", "nothing", "empty", "null"], + h = ["abs", "array", "asc", "atn", "cbool", "cbyte", "ccur", "cdate", "cdbl", "chr", "cint", "clng", "cos", "csng", "cstr", "date", "dateadd", "datediff", "datepart", "dateserial", "datevalue", "day", "escape", "eval", "execute", "exp", "filter", "formatcurrency", "formatdatetime", "formatnumber", "formatpercent", "getlocale", "getobject", "getref", "hex", "hour", "inputbox", "instr", "instrrev", "int", "fix", "isarray", "isdate", "isempty", "isnull", "isnumeric", "isobject", "join", "lbound", "lcase", "left", "len", "loadpicture", "log", "ltrim", "rtrim", "trim", "maths", "mid", "minute", "month", "monthname", "msgbox", "now", "oct", "replace", "rgb", "right", "rnd", "round", "scriptengine", "scriptenginebuildversion", "scriptenginemajorversion", "scriptengineminorversion", "second", "setlocale", "sgn", "sin", "space", "split", "sqr", "strcomp", "string", "strreverse", "tan", "time", "timer", "timeserial", "timevalue", "typename", "ubound", "ucase", "unescape", "vartype", "weekday", "weekdayname", "year"], + g = ["vbBlack", "vbRed", "vbGreen", "vbYellow", "vbBlue", "vbMagenta", "vbCyan", "vbWhite", "vbBinaryCompare", "vbTextCompare", "vbSunday", "vbMonday", "vbTuesday", "vbWednesday", "vbThursday", "vbFriday", "vbSaturday", "vbUseSystemDayOfWeek", "vbFirstJan1", "vbFirstFourDays", "vbFirstFullWeek", "vbGeneralDate", "vbLongDate", "vbShortDate", "vbLongTime", "vbShortTime", "vbObjectError", "vbOKOnly", "vbOKCancel", "vbAbortRetryIgnore", "vbYesNoCancel", "vbYesNo", "vbRetryCancel", "vbCritical", "vbQuestion", "vbExclamation", "vbInformation", "vbDefaultButton1", "vbDefaultButton2", "vbDefaultButton3", "vbDefaultButton4", "vbApplicationModal", "vbSystemModal", "vbOK", "vbCancel", "vbAbort", "vbRetry", "vbIgnore", "vbYes", "vbNo", "vbCr", "VbCrLf", "vbFormFeed", "vbLf", "vbNewLine", "vbNullChar", "vbNullString", "vbTab", "vbVerticalTab", "vbUseDefault", "vbTrue", "vbFalse", "vbEmpty", "vbNull", "vbInteger", "vbLong", "vbSingle", "vbDouble", "vbCurrency", "vbDate", "vbString", "vbObject", "vbError", "vbBoolean", "vbVariant", "vbDataObject", "vbDecimal", "vbByte", "vbArray"], + b = ["WScript", "err", "debug", "RegExp"], + v = ["server", "response", "request", "session", "application"], + y = ["buffer", "cachecontrol", "charset", "contenttype", "expires", "expiresabsolute", "isclientconnected", "pics", "status", "clientcertificate", "cookies", "form", "querystring", "servervariables", "totalbytes", "contents", "staticobjects", "codepage", "lcid", "sessionid", "timeout", "scripttimeout"], + k = ["addheader", "appendtolog", "binarywrite", "end", "flush", "redirect", "binaryread", "remove", "removeall", "lock", "unlock", "abandon", "getlasterror", "htmlencode", "mappath", "transfer", "urlencode"], + x = ["clear", "execute", "raise", "replace", "test", "write", "writeline", "close", "open", "state", "eof", "update", "addnew", "end", "createobject", "quit"].concat(["description", "firstindex", "global", "helpcontext", "helpfile", "ignorecase", "length", "number", "pattern", "source", "value", "count"]); + b = b.concat(g), e.isASP && (b = b.concat(v), x = x.concat(k, y)); + var _ = r(f), + w = r(m), + E = r(h), + T = r(b), + S = r(x), + I = '"', + N = r(c), + A = r(u), + O = r(d), + C = r(["end"]), + D = r(["do"]), + R = r(["on error resume next", "exit"]), + M = r(["rem"]); + + function L(e, t) { + t.currentIndent++ + } + + function z(e, t) { + t.currentIndent-- + } + + function F(e, t) { + if (e.eatSpace()) return "space"; + if ("'" === e.peek()) return e.skipToEnd(), "comment"; + if (e.match(M)) return e.skipToEnd(), "comment"; + if (e.match(/^((&H)|(&O))?[0-9\.]/i, !1) && !e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, !1)) { + var r = !1; + if ((e.match(/^\d*\.\d+/i) || e.match(/^\d+\.\d*/) || e.match(/^\.\d+/)) && (r = !0), r) return e.eat(/J/i), "number"; + var c = !1; + if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? c = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), c = !0) : e.match(/^0(?![\dx])/i) && (c = !0), c) return e.eat(/L/i), "number" + } + return e.match(I) ? (t.tokenize = $(e.current()), t.tokenize(e, t)) : e.match(a) || e.match(i) || e.match(p) ? "operator" : e.match(o) ? null : e.match(s) ? "bracket" : e.match(R) ? (t.doInCurrentLine = !0, "keyword") : e.match(D) ? (L(e, t), t.doInCurrentLine = !0, "keyword") : e.match(N) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : L(e, t), "keyword") : e.match(A) ? "keyword" : e.match(C) ? (z(e, t), z(e, t), "keyword") : e.match(O) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : z(e, t), "keyword") : e.match(_) ? "keyword" : e.match(w) ? "atom" : e.match(S) ? "variable-2" : e.match(E) ? "builtin" : e.match(T) ? "variable-2" : e.match(l) ? "variable" : (e.next(), n) + } + + function $(e) { + var r = 1 == e.length, + i = "string"; + return function(a, o) { + for (; !a.eol();) { + if (a.eatWhile(/[^'"]/), a.match(e)) return o.tokenize = F, i; + a.eat(/['"]/) + } + if (r) { + if (t.singleLineStringErrors) return n; + o.tokenize = F + } + return i + } + } + + function P(e, t) { + var r = t.tokenize(e, t), + i = e.current(); + return "." === i ? (r = t.tokenize(e, t), i = e.current(), !r || "variable" !== r.substr(0, 8) && "builtin" !== r && "keyword" !== r ? n : ("builtin" !== r && "keyword" !== r || (r = "variable"), x.indexOf(i.substr(1)) > -1 && (r = "variable-2"), r)) : r + } + return { + electricChars: "dDpPtTfFeE ", + startState: function() { + return { + tokenize: F, + lastToken: null, + currentIndent: 0, + nextLineIndent: 0, + doInCurrentLine: !1, + ignoreKeyword: !1 + } + }, + token: function(e, t) { + e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0); + var n = P(e, t); + return t.lastToken = { + style: n, + content: e.current() + }, "space" === n && (n = null), n + }, + indent: function(t, n) { + var r = n.replace(/^\s+|\s+$/g, ""); + return r.match(O) || r.match(C) || r.match(A) ? e.indentUnit * (t.currentIndent - 1) : t.currentIndent < 0 ? 0 : t.currentIndent * e.indentUnit + } + } + })), e.defineMIME("text/vbscript", "vbscript") + }(n(4631)) + }, + 15912: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("velocity", (function() { + function e(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var t = e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"), + n = e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"), + r = e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"), + i = /[+\-*&%=<>!?:\/|]/; + + function a(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function o(e, o) { + var u = o.beforeParams; + o.beforeParams = !1; + var d = e.next(); + if ("'" == d && !o.inString && o.inParams) return o.lastTokenWasBuiltin = !1, a(e, o, s(d)); + if ('"' != d) { + if (/[\[\]{}\(\),;\.]/.test(d)) return "(" == d && u ? o.inParams = !0 : ")" == d && (o.inParams = !1, o.lastTokenWasBuiltin = !0), null; + if (/\d/.test(d)) return o.lastTokenWasBuiltin = !1, e.eatWhile(/[\w\.]/), "number"; + if ("#" == d && e.eat("*")) return o.lastTokenWasBuiltin = !1, a(e, o, l); + if ("#" == d && e.match(/ *\[ *\[/)) return o.lastTokenWasBuiltin = !1, a(e, o, c); + if ("#" == d && e.eat("#")) return o.lastTokenWasBuiltin = !1, e.skipToEnd(), "comment"; + if ("$" == d) return e.eat("!"), e.eatWhile(/[\w\d\$_\.{}-]/), r && r.propertyIsEnumerable(e.current()) ? "keyword" : (o.lastTokenWasBuiltin = !0, o.beforeParams = !0, "builtin"); + if (i.test(d)) return o.lastTokenWasBuiltin = !1, e.eatWhile(i), "operator"; + e.eatWhile(/[\w\$_{}@]/); + var p = e.current(); + return t && t.propertyIsEnumerable(p) ? "keyword" : n && n.propertyIsEnumerable(p) || e.current().match(/^#@?[a-z0-9_]+ *$/i) && "(" == e.peek() && (!n || !n.propertyIsEnumerable(p.toLowerCase())) ? (o.beforeParams = !0, o.lastTokenWasBuiltin = !1, "keyword") : o.inString ? (o.lastTokenWasBuiltin = !1, "string") : e.pos > p.length && "." == e.string.charAt(e.pos - p.length - 1) && o.lastTokenWasBuiltin ? "builtin" : (o.lastTokenWasBuiltin = !1, null) + } + return o.lastTokenWasBuiltin = !1, o.inString ? (o.inString = !1, "string") : o.inParams ? a(e, o, s(d)) : void 0 + } + + function s(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + if ('"' == e && "$" == t.peek() && !i) { + n.inString = !0, a = !0; + break + } + i = !i && "\\" == r + } + return a && (n.tokenize = o), "string" + } + } + + function l(e, t) { + for (var n, r = !1; n = e.next();) { + if ("#" == n && r) { + t.tokenize = o; + break + } + r = "*" == n + } + return "comment" + } + + function c(e, t) { + for (var n, r = 0; n = e.next();) { + if ("#" == n && 2 == r) { + t.tokenize = o; + break + } + "]" == n ? r++ : " " != n && (r = 0) + } + return "meta" + } + return { + startState: function() { + return { + tokenize: o, + beforeParams: !1, + inParams: !1, + inString: !1, + lastTokenWasBuiltin: !1 + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + blockCommentStart: "#*", + blockCommentEnd: "*#", + lineComment: "##", + fold: "velocity" + } + })), e.defineMIME("text/velocity", "velocity") + }(n(4631)) + }, + 63249: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("verilog", (function(t, n) { + var r = t.indentUnit, + i = n.statementIndentUnit || r, + a = n.dontAlignCalls, + o = n.compilerDirectivesUseRegularIndentation, + s = n.noIndentKeywords || [], + l = n.multiLineStrings, + c = n.hooks || {}; + + function u(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var d, p, f = u("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"), + m = /[\+\-\*\/!~&|^%=?:<>]/, + h = /[\[\]{}()]/, + g = /\d[0-9_]*/, + b = /\d*\s*'s?d\s*\d[0-9_]*/i, + v = /\d*\s*'s?b\s*[xz01][xz01_]*/i, + y = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i, + k = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i, + x = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i, + _ = /^((`?\w+)|[)}\]])/, + w = /[)}\]]/, + E = new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"), + T = /^(`(?:ifdef|ifndef|elsif|else))\b/, + S = /^(`(?:elsif|else|endif))\b/, + I = u("case checker class clocking config function generate interface module package primitive program property specify sequence table task"), + N = {}; + for (var A in I) N[A] = "end" + A; + for (var O in N.begin = "end", N.casex = "endcase", N.casez = "endcase", N.do = "while", N.fork = "join;join_any;join_none", N.covergroup = "endgroup", N.macro_begin = "macro_end", s) A = s[O], N[A] && (N[A] = void 0); + var C = u("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef"); + + function D(e, t) { + var n, r = e.peek(); + if (c[r] && 0 != (n = c[r](e, t))) return n; + if (c.tokenBase && 0 != (n = c.tokenBase(e, t))) return n; + if (/[,;:\.]/.test(r)) return d = e.next(), null; + if (h.test(r)) return d = e.next(), "bracket"; + if ("`" == r) { + if (e.next(), e.eatWhile(/[\w\$_]/)) { + var i = e.current(); + if (p = i, i.startsWith("`uvm_") && i.endsWith("_begin")) { + var a = p.substr(0, p.length - 5) + "end"; + N[i] = a, d = "newblock" + } else { + e.eatSpace(), "(" == e.peek() && (d = "newmacro"); + var o = e.current(); + e.backUp(o.length - i.length) + } + return "def" + } + return null + } + if ("$" == r) return e.next(), e.eatWhile(/[\w\$_]/) ? "meta" : null; + if ("#" == r) return e.next(), e.eatWhile(/[\d_.]/), "def"; + if ("@" == r) return e.next(), e.eatWhile(/[@]/), "def"; + if ('"' == r) return e.next(), t.tokenize = R(r), t.tokenize(e, t); + if ("/" == r) { + if (e.next(), e.eat("*")) return t.tokenize = M, M(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment"; + e.backUp(1) + } + return e.match(x) || e.match(b) || e.match(v) || e.match(y) || e.match(k) || e.match(g) || e.match(x) ? "number" : e.eatWhile(m) ? (d = e.current(), "meta") : e.eatWhile(/[\w\$_]/) ? (i = e.current(), f[i] ? (N[i] && (d = "newblock", "fork" === i && (e.eatSpace(), ";" == e.peek() && (d = "newstatement"), e.backUp(e.current().length - i.length))), C[i] && (d = "newstatement"), p = i, "keyword") : "variable") : (e.next(), null) + } + + function R(e) { + return function(t, n) { + for (var r, i = !1, a = !1; null != (r = t.next());) { + if (r == e && !i) { + a = !0; + break + } + i = !i && "\\" == r + } + return (a || !i && !l) && (n.tokenize = D), "string" + } + } + + function M(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = D; + break + } + r = "*" == n + } + return "comment" + } + + function L(e, t, n, r, i, a) { + this.indented = e, this.column = t, this.type = n, this.scopekind = r, this.align = i, this.prev = a + } + + function z(e, t, n, r) { + var i = new L(e.indented, t, n, r || "", null, e.context); + return e.context = i + } + + function F(e) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + + function $(e, t) { + if (e == t) return !0; + var n = t.split(";"); + for (var r in n) + if (e == n[r]) return !0; + return !1 + } + + function P(e, t) { + return null != e && (e.scopekind === t || P(e.prev, t)) + } + + function U() { + var e = []; + for (var t in N) + if (N[t]) { + var n = N[t].split(";"); + for (var r in n) e.push(n[r]) + } + return new RegExp("[{}()\\[\\]]|(" + e.join("|") + ")$") + } + return { + electricInput: U(), + startState: function(e) { + var t = { + tokenize: null, + context: new L((e || 0) - r, 0, "top", "top", !1), + indented: 0, + compilerDirectiveIndented: 0, + startOfLine: !0 + }; + return c.startState && c.startState(t), t + }, + token: function(e, t) { + var n, r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0), c.token && void 0 !== (n = c.token(e, t))) return n; + if (e.eatSpace()) return null; + if (d = null, p = null, "comment" == (n = (t.tokenize || D)(e, t)) || "meta" == n || "variable" == n) return "=" !== d && "<=" !== d || P(r, "assignment") || (z(t, e.column() + d.length, "assignment", "assignment"), null == r.align && (r.align = !0)), n; + null == r.align && (r.align = !0); + var a = "assignment" == r.type && w.test(d) && r.prev && r.prev.type === d; + if (d == r.type || a) { + if (a && (r = F(t)), r = F(t), ")" == d) { + if (r && "macro" === r.type) + for (r = F(t); r && ("statement" == r.type || "assignment" == r.type);) r = F(t) + } else if ("}" == d && r && "statement" === r.type) + for (; r && "statement" == r.type;) r = F(t) + } else if ((";" == d || "," == d) && ("statement" == r.type || "assignment" == r.type) || r.type && $(p, r.type)) + for (r = F(t); r && ("statement" == r.type || "assignment" == r.type);) r = F(t); + else if ("{" == d) z(t, e.column(), "}"); + else if ("[" == d) z(t, e.column(), "]"); + else if ("(" == d) z(t, e.column(), ")"); + else if (r && "endcase" == r.type && ":" == d) z(t, e.column(), "statement", "case"); + else if ("newstatement" == d) z(t, e.column(), "statement", p); + else if ("newblock" == d) { + if ("function" != p || !r || "statement" != r.type && "endgroup" != r.type) + if ("task" == p && r && "statement" == r.type); + else if ("class" == p && r && "statement" == r.type); + else { + var o = N[p]; + z(t, e.column(), o, p) + } + } else("newmacro" == d || p && p.match(E)) && ("newmacro" == d && z(t, e.column(), "macro", "macro"), p.match(S) && (t.compilerDirectiveIndented -= i), p.match(T) && (t.compilerDirectiveIndented += i)); + return t.startOfLine = !1, n + }, + indent: function(t, n) { + if (t.tokenize != D && null != t.tokenize) return e.Pass; + if (c.indent) { + var s = c.indent(t); + if (s >= 0) return s + } + var l = t.context, + u = n && n.charAt(0); + "statement" == l.type && "}" == u && (l = l.prev); + var d = !1, + p = n.match(_); + return p && (d = $(p[0], l.type)), !o && n.match(E) ? n.match(S) ? t.compilerDirectiveIndented - i : t.compilerDirectiveIndented : "statement" == l.type ? l.indented + ("{" == u ? 0 : i) : !w.test(l.type) && "assignment" != l.type || !l.align || a ? ")" != l.type || d ? l.indented + (d ? 0 : r) : l.indented + i : l.column + (d ? 0 : 1) + }, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "indent" + } + })), e.defineMIME("text/x-verilog", { + name: "verilog" + }), e.defineMIME("text/x-systemverilog", { + name: "verilog" + }); + var t = { + "|": "link", + ">": "property", + $: "variable", + $$: "variable", + "?$": "qualifier", + "?*": "qualifier", + "-": "hr", + "/": "property", + "/-": "property", + "@": "variable-3", + "@-": "variable-3", + "@++": "variable-3", + "@+=": "variable-3", + "@+=-": "variable-3", + "@--": "variable-3", + "@-=": "variable-3", + "%+": "tag", + "%-": "tag", + "%": "tag", + ">>": "tag", + "<<": "tag", + "<>": "tag", + "#": "tag", + "^": "attribute", + "^^": "attribute", + "^!": "attribute", + "*": "variable-2", + "**": "variable-2", + "\\": "keyword", + '"': "comment" + }, + n = { + "/": "beh-hier", + ">": "beh-hier", + "-": "phys-hier", + "|": "pipe", + "?": "when", + "@": "stage", + "\\": "keyword" + }, + r = 3, + i = !1, + a = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/, + o = /^[! ] /, + s = /^[! ] */, + l = /^\/[\/\*]/; + + function c(e, t, n) { + var i = t / r; + return "tlv-" + e.tlvIndentationStyle[i] + "-" + n + } + + function u(e) { + var t; + return (t = e.match(a, !1)) && t[2].length > 0 + } + e.defineMIME("text/x-tlv", { + name: "verilog", + hooks: { + electricInput: !1, + token: function(e, d) { + var p = void 0; + if (e.sol() && !d.tlvInBlockComment) { + "\\" == e.peek() && (p = "def", e.skipToEnd(), e.string.match(/\\SV/) ? d.tlvCodeActive = !1 : e.string.match(/\\TLV/) && (d.tlvCodeActive = !0)), d.tlvCodeActive && 0 == e.pos && 0 == d.indented && (y = e.match(s, !1)) && (d.indented = y[0].length); + var f = d.indented, + m = f / r; + if (m <= d.tlvIndentationStyle.length) { + var h = e.string.length == f, + g = m * r; + if (g < e.string.length) { + var b = e.string.slice(g), + v = b[0]; + n[v] && (y = b.match(a)) && t[y[1]] && (f += r, "\\" == v && g > 0 || (d.tlvIndentationStyle[m] = n[v], i && (d.statementComment = !1), m++)) + } + if (!h) + for (; d.tlvIndentationStyle.length > m;) d.tlvIndentationStyle.pop() + } + d.tlvNextIndent = f + } + if (d.tlvCodeActive) { + var y, k = !1; + if (i && (k = " " != e.peek() && void 0 === p && !d.tlvInBlockComment && e.column() == d.tlvIndentationStyle.length * r) && (d.statementComment && (k = !1), d.statementComment = e.match(l, !1)), void 0 !== p) p += " " + c(d, 0, "scope-ident"); + else if (e.pos / r < d.tlvIndentationStyle.length && (y = e.match(e.sol() ? o : /^ /))) p = "tlv-indent-" + (e.pos % 2 == 0 ? "even" : "odd") + " " + c(d, e.pos - r, "indent"), "!" == y[0].charAt(0) && (p += " tlv-alert-line-prefix"), u(e) && (p += " " + c(d, e.pos, "before-scope-ident")); + else if (d.tlvInBlockComment) e.match(/^.*?\*\//) ? (d.tlvInBlockComment = !1, i && !e.eol() && (d.statementComment = !1)) : e.skipToEnd(), p = "comment"; + else if ((y = e.match(l)) && !d.tlvInBlockComment) "//" == y[0] ? e.skipToEnd() : d.tlvInBlockComment = !0, p = "comment"; + else if (y = e.match(a)) { + var x = y[1], + _ = y[2]; + t.hasOwnProperty(x) && (_.length > 0 || e.eol()) ? (p = t[x], e.column() == d.indented && (p += " " + c(d, e.column(), "scope-ident"))) : (e.backUp(e.current().length - 1), p = "tlv-default") + } else e.match(/^\t+/) ? p = "tlv-tab" : e.match(/^[\[\]{}\(\);\:]+/) ? p = "meta" : (y = e.match(/^[mM]4([\+_])?[\w\d_]*/)) ? p = "+" == y[1] ? "tlv-m4-plus" : "tlv-m4" : e.match(/^ +/) ? p = e.eol() ? "error" : "tlv-default" : e.match(/^[\w\d_]+/) ? p = "number" : (e.next(), p = "tlv-default"); + k && (p += " tlv-statement") + } else e.match(/^[mM]4([\w\d_]*)/) && (p = "tlv-m4"); + return p + }, + indent: function(e) { + return 1 == e.tlvCodeActive ? e.tlvNextIndent : -1 + }, + startState: function(e) { + e.tlvIndentationStyle = [], e.tlvCodeActive = !0, e.tlvNextIndent = -1, e.tlvInBlockComment = !1, i && (e.statementComment = !1) + } + } + }) + }(n(4631)) + }, + 53140: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) { + var i = n[r].toUpperCase(), + a = n[r].charAt(0).toUpperCase() + n[r].slice(1); + t[n[r]] = !0, t[i] = !0, t[a] = !0 + } + return t + } + + function n(e) { + return e.eatWhile(/[\w\$_]/), "meta" + } + e.defineMode("vhdl", (function(e, r) { + var i, a = e.indentUnit, + o = r.atoms || t("null"), + s = r.hooks || { + "`": n, + $: n + }, + l = r.multiLineStrings, + c = t("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"), + u = t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"), + d = /[&|~>!\?@#$%&|:\.]+)/, + token: "variable-2" + }, { + regex: /"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/, + token: "string" + }, { + regex: /\(;.*?/, + token: "comment", + next: "comment" + }, { + regex: /;;.*$/, + token: "comment" + }, { + regex: /\(/, + indent: !0 + }, { + regex: /\)/, + dedent: !0 + }], + comment: [{ + regex: /.*?;\)/, + token: "comment", + next: "start" + }, { + regex: /.*/, + token: "comment" + }], + meta: { + dontIndentStates: ["comment"] + } + }), e.defineMIME("text/webassembly", "wast") + }(n(4631), n(40790)) + }, + 11015: function(e, t, n) { + ! function(e) { + "use strict"; + + function t(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + } + var n = ["Clamp", "Constructor", "EnforceRange", "Exposed", "ImplicitThis", "Global", "PrimaryGlobal", "LegacyArrayClass", "LegacyUnenumerableNamedProperties", "LenientThis", "NamedConstructor", "NewObject", "NoInterfaceObject", "OverrideBuiltins", "PutForwards", "Replaceable", "SameObject", "TreatNonObjectAsNull", "TreatNullAs", "EmptyString", "Unforgeable", "Unscopeable"], + r = t(n), + i = ["unsigned", "short", "long", "unrestricted", "float", "double", "boolean", "byte", "octet", "Promise", "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray", "Float32Array", "Float64Array", "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp", "Error", "DOMException", "FrozenArray", "any", "void"], + a = t(i), + o = ["attribute", "callback", "const", "deleter", "dictionary", "enum", "getter", "implements", "inherit", "interface", "iterable", "legacycaller", "maplike", "partial", "required", "serializer", "setlike", "setter", "static", "stringifier", "typedef", "optional", "readonly", "or"], + s = t(o), + l = ["true", "false", "Infinity", "NaN", "null"], + c = t(l); + e.registerHelper("hintWords", "webidl", n.concat(i).concat(o).concat(l)); + var u = t(["callback", "dictionary", "enum", "interface"]), + d = t(["typedef"]), + p = /^[:<=>?]/, + f = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, + m = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, + h = /^_?[A-Za-z][0-9A-Z_a-z-]*/, + g = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, + b = /^"[^"]*"/, + v = /^\/\*.*?\*\//, + y = /^\/\*.*/, + k = /^.*?\*\//; + + function x(e, t) { + if (e.eatSpace()) return null; + if (t.inComment) return e.match(k) ? (t.inComment = !1, "comment") : (e.skipToEnd(), "comment"); + if (e.match("//")) return e.skipToEnd(), "comment"; + if (e.match(v)) return "comment"; + if (e.match(y)) return t.inComment = !0, "comment"; + if (e.match(/^-?[0-9\.]/, !1) && (e.match(f) || e.match(m))) return "number"; + if (e.match(b)) return "string"; + if (t.startDef && e.match(h)) return "def"; + if (t.endDef && e.match(g)) return t.endDef = !1, "def"; + if (e.match(s)) return "keyword"; + if (e.match(a)) { + var n = t.lastToken, + i = (e.match(/^\s*(.+?)\b/, !1) || [])[1]; + return ":" === n || "implements" === n || "implements" === i || "=" === i ? "builtin" : "variable-3" + } + return e.match(r) ? "builtin" : e.match(c) ? "atom" : e.match(h) ? "variable" : e.match(p) ? "operator" : (e.next(), null) + } + e.defineMode("webidl", (function() { + return { + startState: function() { + return { + inComment: !1, + lastToken: "", + startDef: !1, + endDef: !1 + } + }, + token: function(e, t) { + var n = x(e, t); + if (n) { + var r = e.current(); + t.lastToken = r, "keyword" === n ? (t.startDef = u.test(r), t.endDef = t.endDef || d.test(r)) : t.startDef = !1 + } + return n + } + } + })), e.defineMIME("text/x-webidl", "webidl") + }(n(4631)) + }, + 29589: function(e, t, n) { + ! function(e) { + "use strict"; + var t = { + autoSelfClosers: { + area: !0, + base: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + frame: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0, + menuitem: !0 + }, + implicitlyClosed: { + dd: !0, + li: !0, + optgroup: !0, + option: !0, + p: !0, + rp: !0, + rt: !0, + tbody: !0, + td: !0, + tfoot: !0, + th: !0, + tr: !0 + }, + contextGrabbers: { + dd: { + dd: !0, + dt: !0 + }, + dt: { + dd: !0, + dt: !0 + }, + li: { + li: !0 + }, + option: { + option: !0, + optgroup: !0 + }, + optgroup: { + optgroup: !0 + }, + p: { + address: !0, + article: !0, + aside: !0, + blockquote: !0, + dir: !0, + div: !0, + dl: !0, + fieldset: !0, + footer: !0, + form: !0, + h1: !0, + h2: !0, + h3: !0, + h4: !0, + h5: !0, + h6: !0, + header: !0, + hgroup: !0, + hr: !0, + menu: !0, + nav: !0, + ol: !0, + p: !0, + pre: !0, + section: !0, + table: !0, + ul: !0 + }, + rp: { + rp: !0, + rt: !0 + }, + rt: { + rp: !0, + rt: !0 + }, + tbody: { + tbody: !0, + tfoot: !0 + }, + td: { + td: !0, + th: !0 + }, + tfoot: { + tbody: !0 + }, + th: { + td: !0, + th: !0 + }, + thead: { + tbody: !0, + tfoot: !0 + }, + tr: { + tr: !0 + } + }, + doNotIndent: { + pre: !0 + }, + allowUnquoted: !0, + allowMissing: !0, + caseFold: !0 + }, + n = { + autoSelfClosers: {}, + implicitlyClosed: {}, + contextGrabbers: {}, + doNotIndent: {}, + allowUnquoted: !1, + allowMissing: !1, + allowMissingTagName: !1, + caseFold: !1 + }; + e.defineMode("xml", (function(r, i) { + var a, o, s = r.indentUnit, + l = {}, + c = i.htmlMode ? t : n; + for (var u in c) l[u] = c[u]; + for (var u in i) l[u] = i[u]; + + function d(e, t) { + function n(n) { + return t.tokenize = n, n(e, t) + } + var r = e.next(); + return "<" == r ? e.eat("!") ? e.eat("[") ? e.match("CDATA[") ? n(m("atom", "]]>")) : null : e.match("--") ? n(m("comment", "--\x3e")) : e.match("DOCTYPE", !0, !0) ? (e.eatWhile(/[\w\._\-]/), n(h(1))) : null : e.eat("?") ? (e.eatWhile(/[\w\._\-]/), t.tokenize = m("meta", "?>"), "meta") : (a = e.eat("/") ? "closeTag" : "openTag", t.tokenize = p, "tag bracket") : "&" == r ? (e.eat("#") ? e.eat("x") ? e.eatWhile(/[a-fA-F\d]/) && e.eat(";") : e.eatWhile(/[\d]/) && e.eat(";") : e.eatWhile(/[\w\.\-:]/) && e.eat(";")) ? "atom" : "error" : (e.eatWhile(/[^&<]/), null) + } + + function p(e, t) { + var n = e.next(); + if (">" == n || "/" == n && e.eat(">")) return t.tokenize = d, a = ">" == n ? "endTag" : "selfcloseTag", "tag bracket"; + if ("=" == n) return a = "equals", null; + if ("<" == n) { + t.tokenize = d, t.state = k, t.tagName = t.tagStart = null; + var r = t.tokenize(e, t); + return r ? r + " tag error" : "tag error" + } + return /[\'\"]/.test(n) ? (t.tokenize = f(n), t.stringStartCol = e.column(), t.tokenize(e, t)) : (e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word") + } + + function f(e) { + var t = function(t, n) { + for (; !t.eol();) + if (t.next() == e) { + n.tokenize = p; + break + } + return "string" + }; + return t.isInAttribute = !0, t + } + + function m(e, t) { + return function(n, r) { + for (; !n.eol();) { + if (n.match(t)) { + r.tokenize = d; + break + } + n.next() + } + return e + } + } + + function h(e) { + return function(t, n) { + for (var r; null != (r = t.next());) { + if ("<" == r) return n.tokenize = h(e + 1), n.tokenize(t, n); + if (">" == r) { + if (1 == e) { + n.tokenize = d; + break + } + return n.tokenize = h(e - 1), n.tokenize(t, n) + } + } + return "meta" + } + } + + function g(e) { + return e && e.toLowerCase() + } + + function b(e, t, n) { + this.prev = e.context, this.tagName = t || "", this.indent = e.indented, this.startOfLine = n, (l.doNotIndent.hasOwnProperty(t) || e.context && e.context.noIndent) && (this.noIndent = !0) + } + + function v(e) { + e.context && (e.context = e.context.prev) + } + + function y(e, t) { + for (var n;;) { + if (!e.context) return; + if (n = e.context.tagName, !l.contextGrabbers.hasOwnProperty(g(n)) || !l.contextGrabbers[g(n)].hasOwnProperty(g(t))) return; + v(e) + } + } + + function k(e, t, n) { + return "openTag" == e ? (n.tagStart = t.column(), x) : "closeTag" == e ? _ : k + } + + function x(e, t, n) { + return "word" == e ? (n.tagName = t.current(), o = "tag", T) : l.allowMissingTagName && "endTag" == e ? (o = "tag bracket", T(e, t, n)) : (o = "error", x) + } + + function _(e, t, n) { + if ("word" == e) { + var r = t.current(); + return n.context && n.context.tagName != r && l.implicitlyClosed.hasOwnProperty(g(n.context.tagName)) && v(n), n.context && n.context.tagName == r || !1 === l.matchClosing ? (o = "tag", w) : (o = "tag error", E) + } + return l.allowMissingTagName && "endTag" == e ? (o = "tag bracket", w(e, t, n)) : (o = "error", E) + } + + function w(e, t, n) { + return "endTag" != e ? (o = "error", w) : (v(n), k) + } + + function E(e, t, n) { + return o = "error", w(e, t, n) + } + + function T(e, t, n) { + if ("word" == e) return o = "attribute", S; + if ("endTag" == e || "selfcloseTag" == e) { + var r = n.tagName, + i = n.tagStart; + return n.tagName = n.tagStart = null, "selfcloseTag" == e || l.autoSelfClosers.hasOwnProperty(g(r)) ? y(n, r) : (y(n, r), n.context = new b(n, r, i == n.indented)), k + } + return o = "error", T + } + + function S(e, t, n) { + return "equals" == e ? I : (l.allowMissing || (o = "error"), T(e, t, n)) + } + + function I(e, t, n) { + return "string" == e ? N : "word" == e && l.allowUnquoted ? (o = "string", T) : (o = "error", T(e, t, n)) + } + + function N(e, t, n) { + return "string" == e ? N : T(e, t, n) + } + return d.isInText = !0, { + startState: function(e) { + var t = { + tokenize: d, + state: k, + indented: e || 0, + tagName: null, + tagStart: null, + context: null + }; + return null != e && (t.baseIndent = e), t + }, + token: function(e, t) { + if (!t.tagName && e.sol() && (t.indented = e.indentation()), e.eatSpace()) return null; + a = null; + var n = t.tokenize(e, t); + return (n || a) && "comment" != n && (o = null, t.state = t.state(a || n, e, t), o && (n = "error" == o ? n + " error" : o)), n + }, + indent: function(t, n, r) { + var i = t.context; + if (t.tokenize.isInAttribute) return t.tagStart == t.indented ? t.stringStartCol + 1 : t.indented + s; + if (i && i.noIndent) return e.Pass; + if (t.tokenize != p && t.tokenize != d) return r ? r.match(/^(\s*)/)[0].length : 0; + if (t.tagName) return !1 !== l.multilineTagIndentPastTag ? t.tagStart + t.tagName.length + 2 : t.tagStart + s * (l.multilineTagIndentFactor || 1); + if (l.alignCDATA && /$/, + blockCommentStart: "\x3c!--", + blockCommentEnd: "--\x3e", + configuration: l.htmlMode ? "html" : "xml", + helperType: l.htmlMode ? "html" : "xml", + skipAttribute: function(e) { + e.state == I && (e.state = T) + }, + xmlCurrentTag: function(e) { + return e.tagName ? { + name: e.tagName, + close: "closeTag" == e.type + } : null + }, + xmlCurrentContext: function(e) { + for (var t = [], n = e.context; n; n = n.prev) t.push(n.tagName); + return t.reverse() + } + } + })), e.defineMIME("text/xml", "xml"), e.defineMIME("application/xml", "xml"), e.mimeModes.hasOwnProperty("text/html") || e.defineMIME("text/html", { + name: "xml", + htmlMode: !0 + }) + }(n(4631)) + }, + 61484: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("xquery", (function() { + var e = function() { + function e(e) { + return { + type: e, + style: "keyword" + } + } + for (var t = e("operator"), n = { + type: "atom", + style: "atom" + }, r = { + type: "axis_specifier", + style: "qualifier" + }, i = { + ",": { + type: "punctuation", + style: null + } + }, a = ["after", "all", "allowing", "ancestor", "ancestor-or-self", "any", "array", "as", "ascending", "at", "attribute", "base-uri", "before", "boundary-space", "by", "case", "cast", "castable", "catch", "child", "collation", "comment", "construction", "contains", "content", "context", "copy", "copy-namespaces", "count", "decimal-format", "declare", "default", "delete", "descendant", "descendant-or-self", "descending", "diacritics", "different", "distance", "document", "document-node", "element", "else", "empty", "empty-sequence", "encoding", "end", "entire", "every", "exactly", "except", "external", "first", "following", "following-sibling", "for", "from", "ftand", "ftnot", "ft-option", "ftor", "function", "fuzzy", "greatest", "group", "if", "import", "in", "inherit", "insensitive", "insert", "instance", "intersect", "into", "invoke", "is", "item", "language", "last", "lax", "least", "let", "levels", "lowercase", "map", "modify", "module", "most", "namespace", "next", "no", "node", "nodes", "no-inherit", "no-preserve", "not", "occurs", "of", "only", "option", "order", "ordered", "ordering", "paragraph", "paragraphs", "parent", "phrase", "preceding", "preceding-sibling", "preserve", "previous", "processing-instruction", "relationship", "rename", "replace", "return", "revalidation", "same", "satisfies", "schema", "schema-attribute", "schema-element", "score", "self", "sensitive", "sentence", "sentences", "sequence", "skip", "sliding", "some", "stable", "start", "stemming", "stop", "strict", "strip", "switch", "text", "then", "thesaurus", "times", "to", "transform", "treat", "try", "tumbling", "type", "typeswitch", "union", "unordered", "update", "updating", "uppercase", "using", "validate", "value", "variable", "version", "weight", "when", "where", "wildcards", "window", "with", "without", "word", "words", "xquery"], o = 0, s = a.length; o < s; o++) i[a[o]] = e(a[o]); + var l = ["xs:anyAtomicType", "xs:anySimpleType", "xs:anyType", "xs:anyURI", "xs:base64Binary", "xs:boolean", "xs:byte", "xs:date", "xs:dateTime", "xs:dateTimeStamp", "xs:dayTimeDuration", "xs:decimal", "xs:double", "xs:duration", "xs:ENTITIES", "xs:ENTITY", "xs:float", "xs:gDay", "xs:gMonth", "xs:gMonthDay", "xs:gYear", "xs:gYearMonth", "xs:hexBinary", "xs:ID", "xs:IDREF", "xs:IDREFS", "xs:int", "xs:integer", "xs:item", "xs:java", "xs:language", "xs:long", "xs:Name", "xs:NCName", "xs:negativeInteger", "xs:NMTOKEN", "xs:NMTOKENS", "xs:nonNegativeInteger", "xs:nonPositiveInteger", "xs:normalizedString", "xs:NOTATION", "xs:numeric", "xs:positiveInteger", "xs:precisionDecimal", "xs:QName", "xs:short", "xs:string", "xs:time", "xs:token", "xs:unsignedByte", "xs:unsignedInt", "xs:unsignedLong", "xs:unsignedShort", "xs:untyped", "xs:untypedAtomic", "xs:yearMonthDuration"]; + for (o = 0, s = l.length; o < s; o++) i[l[o]] = n; + var c = ["eq", "ne", "lt", "le", "gt", "ge", ":=", "=", ">", ">=", "<", "<=", ".", "|", "?", "and", "or", "div", "idiv", "mod", "*", "/", "+", "-"]; + for (o = 0, s = c.length; o < s; o++) i[c[o]] = t; + var u = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::", "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"]; + for (o = 0, s = u.length; o < s; o++) i[u[o]] = r; + return i + }(); + + function t(e, t, n) { + return t.tokenize = n, n(e, t) + } + + function n(n, s) { + var p = n.next(), + m = !1, + g = h(n); + if ("<" == p) { + if (n.match("!--", !0)) return t(n, s, l); + if (n.match("![CDATA", !1)) return s.tokenize = c, "tag"; + if (n.match("?", !1)) return t(n, s, u); + var y = n.eat("/"); + n.eatSpace(); + for (var k, x = ""; k = n.eat(/[^\s\u00a0=<>\"\'\/?]/);) x += k; + return t(n, s, o(x, y)) + } + if ("{" == p) return b(s, { + type: "codeblock" + }), null; + if ("}" == p) return v(s), null; + if (d(s)) return ">" == p ? "tag" : "/" == p && n.eat(">") ? (v(s), "tag") : "variable"; + if (/\d/.test(p)) return n.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom"; + if ("(" === p && n.eat(":")) return b(s, { + type: "comment" + }), t(n, s, r); + if (g || '"' !== p && "'" !== p) { + if ("$" === p) return t(n, s, a); + if (":" === p && n.eat("=")) return "keyword"; + if ("(" === p) return b(s, { + type: "paren" + }), null; + if (")" === p) return v(s), null; + if ("[" === p) return b(s, { + type: "bracket" + }), null; + if ("]" === p) return v(s), null; + var _ = e.propertyIsEnumerable(p) && e[p]; + if (g && '"' === p) + for (; + '"' !== n.next();); + if (g && "'" === p) + for (; + "'" !== n.next();); + _ || n.eatWhile(/[\w\$_-]/); + var w = n.eat(":"); + !n.eat(":") && w && n.eatWhile(/[\w\$_-]/), n.match(/^[ \t]*\(/, !1) && (m = !0); + var E = n.current(); + return _ = e.propertyIsEnumerable(E) && e[E], m && !_ && (_ = { + type: "function_call", + style: "variable def" + }), f(s) ? (v(s), "variable") : ("element" != E && "attribute" != E && "axis_specifier" != _.type || b(s, { + type: "xmlconstructor" + }), _ ? _.style : "variable") + } + return t(n, s, i(p)) + } + + function r(e, t) { + for (var n, r = !1, i = !1, a = 0; n = e.next();) { + if (")" == n && r) { + if (!(a > 0)) { + v(t); + break + } + a-- + } else ":" == n && i && a++; + r = ":" == n, i = "(" == n + } + return "comment" + } + + function i(e, t) { + return function(r, a) { + var o; + if (m(a) && r.current() == e) return v(a), t && (a.tokenize = t), "string"; + if (b(a, { + type: "string", + name: e, + tokenize: i(e, t) + }), r.match("{", !1) && p(a)) return a.tokenize = n, "string"; + for (; o = r.next();) { + if (o == e) { + v(a), t && (a.tokenize = t); + break + } + if (r.match("{", !1) && p(a)) return a.tokenize = n, "string" + } + return "string" + } + } + + function a(e, t) { + var r = /[\w\$_-]/; + if (e.eat('"')) { + for (; + '"' !== e.next();); + e.eat(":") + } else e.eatWhile(r), e.match(":=", !1) || e.eat(":"); + return e.eatWhile(r), t.tokenize = n, "variable" + } + + function o(e, t) { + return function(r, i) { + return r.eatSpace(), t && r.eat(">") ? (v(i), i.tokenize = n, "tag") : (r.eat("/") || b(i, { + type: "tag", + name: e, + tokenize: n + }), r.eat(">") ? (i.tokenize = n, "tag") : (i.tokenize = s, "tag")) + } + } + + function s(e, r) { + var a = e.next(); + return "/" == a && e.eat(">") ? (p(r) && v(r), d(r) && v(r), "tag") : ">" == a ? (p(r) && v(r), "tag") : "=" == a ? null : '"' == a || "'" == a ? t(e, r, i(a, s)) : (p(r) || b(r, { + type: "attribute", + tokenize: s + }), e.eat(/[a-zA-Z_:]/), e.eatWhile(/[-a-zA-Z0-9_:.]/), e.eatSpace(), (e.match(">", !1) || e.match("/", !1)) && (v(r), r.tokenize = n), "attribute") + } + + function l(e, t) { + for (var r; r = e.next();) + if ("-" == r && e.match("->", !0)) return t.tokenize = n, "comment" + } + + function c(e, t) { + for (var r; r = e.next();) + if ("]" == r && e.match("]", !0)) return t.tokenize = n, "comment" + } + + function u(e, t) { + for (var r; r = e.next();) + if ("?" == r && e.match(">", !0)) return t.tokenize = n, "comment meta" + } + + function d(e) { + return g(e, "tag") + } + + function p(e) { + return g(e, "attribute") + } + + function f(e) { + return g(e, "xmlconstructor") + } + + function m(e) { + return g(e, "string") + } + + function h(e) { + return '"' === e.current() ? e.match(/^[^\"]+\"\:/, !1) : "'" === e.current() && e.match(/^[^\"]+\'\:/, !1) + } + + function g(e, t) { + return e.stack.length && e.stack[e.stack.length - 1].type == t + } + + function b(e, t) { + e.stack.push(t) + } + + function v(e) { + e.stack.pop(); + var t = e.stack.length && e.stack[e.stack.length - 1].tokenize; + e.tokenize = t || n + } + return { + startState: function() { + return { + tokenize: n, + cc: [], + stack: [] + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + blockCommentStart: "(:", + blockCommentEnd: ":)" + } + })), e.defineMIME("application/xquery", "xquery") + }(n(4631)) + }, + 65278: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("yacas", (function(t, n) { + function r(e) { + for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0; + return t + } + var i = r("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"), + a = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)", + o = new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"), + s = new RegExp(a), + l = new RegExp(a + "?_" + a), + c = new RegExp(a + "\\s*\\("); + + function u(e, t) { + var n; + if ('"' === (n = e.next())) return t.tokenize = d, t.tokenize(e, t); + if ("/" === n) { + if (e.eat("*")) return t.tokenize = p, t.tokenize(e, t); + if (e.eat("/")) return e.skipToEnd(), "comment" + } + e.backUp(1); + var r = e.match(/^(\w+)\s*\(/, !1); + null !== r && i.hasOwnProperty(r[1]) && t.scopes.push("bodied"); + var a = f(t); + if ("bodied" === a && "[" === n && t.scopes.pop(), "[" !== n && "{" !== n && "(" !== n || t.scopes.push(n), ("[" === (a = f(t)) && "]" === n || "{" === a && "}" === n || "(" === a && ")" === n) && t.scopes.pop(), ";" === n) + for (; + "bodied" === a;) t.scopes.pop(), a = f(t); + return e.match(/\d+ *#/, !0, !1) ? "qualifier" : e.match(o, !0, !1) ? "number" : e.match(l, !0, !1) ? "variable-3" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(c, !0, !1) ? (e.backUp(1), "variable") : e.match(s, !0, !1) ? "variable-2" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, !0, !1) ? "operator" : "error" + } + + function d(e, t) { + for (var n, r = !1, i = !1; null != (n = e.next());) { + if ('"' === n && !i) { + r = !0; + break + } + i = !i && "\\" === n + } + return r && !i && (t.tokenize = u), "string" + } + + function p(e, t) { + for (var n, r; null != (r = e.next());) { + if ("*" === n && "/" === r) { + t.tokenize = u; + break + } + n = r + } + return "comment" + } + + function f(e) { + var t = null; + return e.scopes.length > 0 && (t = e.scopes[e.scopes.length - 1]), t + } + return { + startState: function() { + return { + tokenize: u, + scopes: [] + } + }, + token: function(e, t) { + return e.eatSpace() ? null : t.tokenize(e, t) + }, + indent: function(n, r) { + if (n.tokenize !== u && null !== n.tokenize) return e.Pass; + var i = 0; + return "]" !== r && "];" !== r && "}" !== r && "};" !== r && ");" !== r || (i = -1), (n.scopes.length + i) * t.indentUnit + }, + electricChars: "{}[]();", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })), e.defineMIME("text/x-yacas", { + name: "yacas" + }) + }(n(4631)) + }, + 98554: function(e, t, n) { + ! function(e) { + var t = 0, + n = 1, + r = 2; + e.defineMode("yaml-frontmatter", (function(i, a) { + var o = e.getMode(i, "yaml"), + s = e.getMode(i, a && a.base || "gfm"); + + function l(e) { + return e.state == n ? { + mode: o, + state: e.yaml + } : { + mode: s, + state: e.inner + } + } + return { + startState: function() { + return { + state: t, + yaml: null, + inner: e.startState(s) + } + }, + copyState: function(t) { + return { + state: t.state, + yaml: t.yaml && e.copyState(o, t.yaml), + inner: e.copyState(s, t.inner) + } + }, + token: function(i, a) { + if (a.state == t) return i.match("---", !1) ? (a.state = n, a.yaml = e.startState(o), o.token(i, a.yaml)) : (a.state = r, s.token(i, a.inner)); + if (a.state == n) { + var l = i.sol() && i.match(/(---|\.\.\.)/, !1), + c = o.token(i, a.yaml); + return l && (a.state = r, a.yaml = null), c + } + return s.token(i, a.inner) + }, + innerMode: l, + indent: function(t, n, r) { + var i = l(t); + return i.mode.indent ? i.mode.indent(i.state, n, r) : e.Pass + }, + blankLine: function(e) { + var t = l(e); + if (t.mode.blankLine) return t.mode.blankLine(t.state) + } + } + })) + }(n(4631), n(53631)) + }, + 53631: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("yaml", (function() { + var e = new RegExp("\\b((" + ["true", "false", "on", "off", "yes", "no"].join(")|(") + "))$", "i"); + return { + token: function(t, n) { + var r = t.peek(), + i = n.escaped; + if (n.escaped = !1, "#" == r && (0 == t.pos || /\s/.test(t.string.charAt(t.pos - 1)))) return t.skipToEnd(), "comment"; + if (t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) return "string"; + if (n.literal && t.indentation() > n.keyCol) return t.skipToEnd(), "string"; + if (n.literal && (n.literal = !1), t.sol()) { + if (n.keyCol = 0, n.pair = !1, n.pairStart = !1, t.match("---")) return "def"; + if (t.match("...")) return "def"; + if (t.match(/\s*-\s+/)) return "meta" + } + if (t.match(/^(\{|\}|\[|\])/)) return "{" == r ? n.inlinePairs++ : "}" == r ? n.inlinePairs-- : "[" == r ? n.inlineList++ : n.inlineList--, "meta"; + if (n.inlineList > 0 && !i && "," == r) return t.next(), "meta"; + if (n.inlinePairs > 0 && !i && "," == r) return n.keyCol = 0, n.pair = !1, n.pairStart = !1, t.next(), "meta"; + if (n.pairStart) { + if (t.match(/^\s*(\||\>)\s*/)) return n.literal = !0, "meta"; + if (t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) return "variable-2"; + if (0 == n.inlinePairs && t.match(/^\s*-?[0-9\.\,]+\s?$/)) return "number"; + if (n.inlinePairs > 0 && t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) return "number"; + if (t.match(e)) return "keyword" + } + return !n.pair && t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/) ? (n.pair = !0, n.keyCol = t.indentation(), "atom") : n.pair && t.match(/^:\s*/) ? (n.pairStart = !0, "meta") : (n.pairStart = !1, n.escaped = "\\" == r, t.next(), null) + }, + startState: function() { + return { + pair: !1, + pairStart: !1, + keyCol: 0, + inlinePairs: 0, + inlineList: 0, + literal: !1, + escaped: !1 + } + }, + lineComment: "#", + fold: "indent" + } + })), e.defineMIME("text/x-yaml", "yaml"), e.defineMIME("text/yaml", "yaml") + }(n(4631)) + }, + 22245: function(e, t, n) { + ! function(e) { + "use strict"; + e.defineMode("z80", (function(e, t) { + var n, r, i = t.ez80; + i ? (n = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i, r = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i) : (n = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i, r = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i); + var a = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i, + o = /^(n?[zc]|p[oe]?|m)\b/i, + s = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i, + l = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i; + return { + startState: function() { + return { + context: 0 + } + }, + token: function(e, t) { + if (e.column() || (t.context = 0), e.eatSpace()) return null; + var c; + if (e.eatWhile(/\w/)) { + if (i && e.eat(".") && e.eatWhile(/\w/), c = e.current(), !e.indentation()) return e.match(l) ? "number" : null; + if ((1 == t.context || 4 == t.context) && a.test(c)) return t.context = 4, "var2"; + if (2 == t.context && o.test(c)) return t.context = 4, "var3"; + if (n.test(c)) return t.context = 1, "keyword"; + if (r.test(c)) return t.context = 2, "keyword"; + if (4 == t.context && l.test(c)) return "number"; + if (s.test(c)) return "error" + } else { + if (e.eat(";")) return e.skipToEnd(), "comment"; + if (e.eat('"')) { + for (; + (c = e.next()) && '"' != c;) "\\" == c && e.next(); + return "string" + } + if (e.eat("'")) { + if (e.match(/\\?.'/)) return "number" + } else if (e.eat(".") || e.sol() && e.eat("#")) { + if (t.context = 5, e.eatWhile(/\w/)) return "def" + } else if (e.eat("$")) { + if (e.eatWhile(/[\da-f]/i)) return "number" + } else if (e.eat("%")) { + if (e.eatWhile(/[01]/)) return "number" + } else e.next() + } + return null + } + } + })), e.defineMIME("text/x-z80", "z80"), e.defineMIME("text/x-ez80", { + name: "z80", + ez80: !0 + }) + }(n(4631)) + }, + 20640: function(e, t, n) { + "use strict"; + var r = n(11742), + i = { + "text/plain": "Text", + "text/html": "Url", + default: "Text" + }; + e.exports = function(e, t) { + var n, a, o, s, l, c, u = !1; + t || (t = {}), n = t.debug || !1; + try { + if (o = r(), s = document.createRange(), l = document.getSelection(), (c = document.createElement("span")).textContent = e, c.style.all = "unset", c.style.position = "fixed", c.style.top = 0, c.style.clip = "rect(0, 0, 0, 0)", c.style.whiteSpace = "pre", c.style.webkitUserSelect = "text", c.style.MozUserSelect = "text", c.style.msUserSelect = "text", c.style.userSelect = "text", c.addEventListener("copy", (function(r) { + if (r.stopPropagation(), t.format) + if (r.preventDefault(), "undefined" === typeof r.clipboardData) { + n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); + var a = i[t.format] || i.default; + window.clipboardData.setData(a, e) + } else r.clipboardData.clearData(), r.clipboardData.setData(t.format, e); + t.onCopy && (r.preventDefault(), t.onCopy(r.clipboardData)) + })), document.body.appendChild(c), s.selectNodeContents(c), l.addRange(s), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); + u = !0 + } catch (d) { + n && console.error("unable to copy using execCommand: ", d), n && console.warn("trying IE specific stuff"); + try { + window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), u = !0 + } catch (d) { + n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), a = function(e) { + var t = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C"; + return e.replace(/#{\s*key\s*}/g, t) + }("message" in t ? t.message : "Copy to clipboard: #{key}, Enter"), window.prompt(a, e) + } + } finally { + l && ("function" == typeof l.removeRange ? l.removeRange(s) : l.removeAllRanges()), c && document.body.removeChild(c), o() + } + return u + } + }, + 79073: function(e, t, n) { + "use strict"; + + function r(e, t) { + if (!Boolean(e)) throw new Error(t) + } + n.r(t), n.d(t, { + CharacterStream: function() { + return _r + }, + CompletionItemKind: function() { + return wo + }, + DIAGNOSTIC_SEVERITY: function() { + return no + }, + FileChangeTypeKind: function() { + return _o + }, + LexRules: function() { + return Nr + }, + ParseRules: function() { + return Ar + }, + Position: function() { + return ui + }, + Range: function() { + return ci + }, + RuleKinds: function() { + return jr + }, + SEVERITY: function() { + return to + }, + SuggestionCommand: function() { + return qr + }, + canUseDirective: function() { + return Yr + }, + collectVariables: function() { + return Ua + }, + getASTNodeAtPosition: function() { + return si + }, + getAutocompleteSuggestions: function() { + return Br + }, + getDefinitionQueryResultForDefinitionNode: function() { + return Qa + }, + getDefinitionQueryResultForField: function() { + return Za + }, + getDefinitionQueryResultForFragmentSpread: function() { + return Xa + }, + getDefinitionQueryResultForNamedType: function() { + return Ya + }, + getDefinitionState: function() { + return ht + }, + getDiagnostics: function() { + return io + }, + getFieldDef: function() { + return gt + }, + getFragmentDefinitions: function() { + return Gr + }, + getFragmentDependencies: function() { + return Jr + }, + getFragmentDependenciesForAST: function() { + return ei + }, + getHoverInformation: function() { + return fo + }, + getOperationASTFacts: function() { + return ja + }, + getOperationFacts: function() { + return qa + }, + getOutline: function() { + return uo + }, + getQueryFacts: function() { + return Ba + }, + getRange: function() { + return lo + }, + getTokenAtPosition: function() { + return Hr + }, + getTypeInfo: function() { + return Zr + }, + getVariableCompletions: function() { + return Wr + }, + getVariablesJSONSchema: function() { + return oi + }, + isIgnored: function() { + return Ir + }, + list: function() { + return Er + }, + offsetToPosition: function() { + return di + }, + onlineParser: function() { + return Rr + }, + opt: function() { + return wr + }, + p: function() { + return Sr + }, + pointToOffset: function() { + return li + }, + t: function() { + return Tr + }, + validateQuery: function() { + return ao + }, + validateWithCustomRules: function() { + return Pa + } + }); + + function i(e, t) { + const [n, r] = t ? [e, t] : [void 0, e]; + let i = " Did you mean "; + n && (i += n + " "); + const a = r.map((e => `"${e}"`)); + switch (a.length) { + case 0: + return ""; + case 1: + return i + a[0] + "?"; + case 2: + return i + a[0] + " or " + a[1] + "?" + } + const o = a.slice(0, 5), + s = o.pop(); + return i + o.join(", ") + ", or " + s + "?" + } + + function a(e) { + return e + } + + function o(e) { + return s(e, []) + } + + function s(e, t) { + switch (typeof e) { + case "string": + return JSON.stringify(e); + case "function": + return e.name ? `[function ${e.name}]` : "[function]"; + case "object": + return function(e, t) { + if (null === e) return "null"; + if (t.includes(e)) return "[Circular]"; + const n = [...t, e]; + if (function(e) { + return "function" === typeof e.toJSON + }(e)) { + const t = e.toJSON(); + if (t !== e) return "string" === typeof t ? t : s(t, n) + } else if (Array.isArray(e)) return function(e, t) { + if (0 === e.length) return "[]"; + if (t.length > 2) return "[Array]"; + const n = Math.min(10, e.length), + r = e.length - n, + i = []; + for (let a = 0; a < n; ++a) i.push(s(e[a], t)); + 1 === r ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`); + return "[" + i.join(", ") + "]" + }(e, n); + return function(e, t) { + const n = Object.entries(e); + if (0 === n.length) return "{}"; + if (t.length > 2) return "[" + function(e) { + const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, ""); + if ("Object" === t && "function" === typeof e.constructor) { + const t = e.constructor.name; + if ("string" === typeof t && "" !== t) return t + } + return t + }(e) + "]"; + const r = n.map((([e, n]) => e + ": " + s(n, t))); + return "{ " + r.join(", ") + " }" + }(e, n) + }(e, t); + default: + return String(e) + } + } + const l = function(e, t) { + return e instanceof t + }; + + function c(e) { + return "object" == typeof e && null !== e + } + + function u(e, t) { + const n = Object.create(null); + for (const r of e) n[t(r)] = r; + return n + } + + function d(e, t, n) { + const r = Object.create(null); + for (const i of e) r[t(i)] = n(i); + return r + } + + function p(e, t) { + const n = Object.create(null); + for (const r of Object.keys(e)) n[r] = t(e[r], r); + return n + } + + function f(e, t) { + let n = 0, + r = 0; + for (; n < e.length && r < t.length;) { + let i = e.charCodeAt(n), + a = t.charCodeAt(r); + if (h(i) && h(a)) { + let o = 0; + do { + ++n, o = 10 * o + i - m, i = e.charCodeAt(n) + } while (h(i) && o > 0); + let s = 0; + do { + ++r, s = 10 * s + a - m, a = t.charCodeAt(r) + } while (h(a) && s > 0); + if (o < s) return -1; + if (o > s) return 1 + } else { + if (i < a) return -1; + if (i > a) return 1; + ++n, ++r + } + } + return e.length - t.length + } + const m = 48; + + function h(e) { + return !isNaN(e) && m <= e && e <= 57 + } + + function g(e, t) { + const n = Object.create(null), + r = new b(e), + i = Math.floor(.4 * e.length) + 1; + for (const a of t) { + const e = r.measure(a, i); + void 0 !== e && (n[a] = e) + } + return Object.keys(n).sort(((e, t) => { + const r = n[e] - n[t]; + return 0 !== r ? r : f(e, t) + })) + } + class b { + constructor(e) { + this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = v(this._inputLowerCase), this._rows = [new Array(e.length + 1).fill(0), new Array(e.length + 1).fill(0), new Array(e.length + 1).fill(0)] + } + measure(e, t) { + if (this._input === e) return 0; + const n = e.toLowerCase(); + if (this._inputLowerCase === n) return 1; + let r = v(n), + i = this._inputArray; + if (r.length < i.length) { + const e = r; + r = i, i = e + } + const a = r.length, + o = i.length; + if (a - o > t) return; + const s = this._rows; + for (let c = 0; c <= o; c++) s[0][c] = c; + for (let c = 1; c <= a; c++) { + const e = s[(c - 1) % 3], + n = s[c % 3]; + let a = n[0] = c; + for (let t = 1; t <= o; t++) { + const o = r[c - 1] === i[t - 1] ? 0 : 1; + let l = Math.min(e[t] + 1, n[t - 1] + 1, e[t - 1] + o); + if (c > 1 && t > 1 && r[c - 1] === i[t - 2] && r[c - 2] === i[t - 1]) { + const e = s[(c - 2) % 3][t - 2]; + l = Math.min(l, e + 1) + } + l < a && (a = l), n[t] = l + } + if (a > t) return + } + const l = s[a % 3][o]; + return l <= t ? l : void 0 + } + } + + function v(e) { + const t = e.length, + n = new Array(t); + for (let r = 0; r < t; ++r) n[r] = e.charCodeAt(r); + return n + } + + function y(e) { + if (null == e) return Object.create(null); + if (null === Object.getPrototypeOf(e)) return e; + const t = Object.create(null); + for (const [n, r] of Object.entries(e)) t[n] = r; + return t + } + + function k(e, t) { + if (!Boolean(e)) throw new Error(null != t ? t : "Unexpected invariant triggered.") + } + const x = /\r\n|[\n\r]/g; + + function _(e, t) { + let n = 0, + r = 1; + for (const i of e.body.matchAll(x)) { + if ("number" === typeof i.index || k(!1), i.index >= t) break; + n = i.index + i[0].length, r += 1 + } + return { + line: r, + column: t + 1 - n + } + } + + function w(e, t) { + const n = e.locationOffset.column - 1, + r = "".padStart(n) + e.body, + i = t.line - 1, + a = e.locationOffset.line - 1, + o = t.line + a, + s = 1 === t.line ? n : 0, + l = t.column + s, + c = `${e.name}:${o}:${l}\n`, + u = r.split(/\r\n|[\n\r]/g), + d = u[i]; + if (d.length > 120) { + const e = Math.floor(l / 80), + t = l % 80, + n = []; + for (let r = 0; r < d.length; r += 80) n.push(d.slice(r, r + 80)); + return c + E([ + [`${o} |`, n[0]], ...n.slice(1, e + 1).map((e => ["|", e])), ["|", "^".padStart(t)], + ["|", n[e + 1]] + ]) + } + return c + E([ + [o - 1 + " |", u[i - 1]], + [`${o} |`, d], + ["|", "^".padStart(l)], + [`${o+1} |`, u[i + 1]] + ]) + } + + function E(e) { + const t = e.filter((([e, t]) => void 0 !== t)), + n = Math.max(...t.map((([e]) => e.length))); + return t.map((([e, t]) => e.padStart(n) + (t ? " " + t : ""))).join("\n") + } + class T extends Error { + constructor(e, ...t) { + var n, r, i; + const { + nodes: a, + source: o, + positions: s, + path: l, + originalError: u, + extensions: d + } = function(e) { + const t = e[0]; + return null == t || "kind" in t || "length" in t ? { + nodes: t, + source: e[1], + positions: e[2], + path: e[3], + originalError: e[4], + extensions: e[5] + } : t + }(t); + super(e), this.name = "GraphQLError", this.path = null !== l && void 0 !== l ? l : void 0, this.originalError = null !== u && void 0 !== u ? u : void 0, this.nodes = S(Array.isArray(a) ? a : a ? [a] : void 0); + const p = S(null === (n = this.nodes) || void 0 === n ? void 0 : n.map((e => e.loc)).filter((e => null != e))); + this.source = null !== o && void 0 !== o ? o : null === p || void 0 === p || null === (r = p[0]) || void 0 === r ? void 0 : r.source, this.positions = null !== s && void 0 !== s ? s : null === p || void 0 === p ? void 0 : p.map((e => e.start)), this.locations = s && o ? s.map((e => _(o, e))) : null === p || void 0 === p ? void 0 : p.map((e => _(e.source, e.start))); + const f = c(null === u || void 0 === u ? void 0 : u.extensions) ? null === u || void 0 === u ? void 0 : u.extensions : void 0; + this.extensions = null !== (i = null !== d && void 0 !== d ? d : f) && void 0 !== i ? i : Object.create(null), Object.defineProperties(this, { + message: { + writable: !0, + enumerable: !0 + }, + name: { + enumerable: !1 + }, + nodes: { + enumerable: !1 + }, + source: { + enumerable: !1 + }, + positions: { + enumerable: !1 + }, + originalError: { + enumerable: !1 + } + }), null !== u && void 0 !== u && u.stack ? Object.defineProperty(this, "stack", { + value: u.stack, + writable: !0, + configurable: !0 + }) : Error.captureStackTrace ? Error.captureStackTrace(this, T) : Object.defineProperty(this, "stack", { + value: Error().stack, + writable: !0, + configurable: !0 + }) + } + get[Symbol.toStringTag]() { + return "GraphQLError" + } + toString() { + let e = this.message; + if (this.nodes) + for (const n of this.nodes) n.loc && (e += "\n\n" + w((t = n.loc).source, _(t.source, t.start))); + else if (this.source && this.locations) + for (const n of this.locations) e += "\n\n" + w(this.source, n); + var t; + return e + } + toJSON() { + const e = { + message: this.message + }; + return null != this.locations && (e.locations = this.locations), null != this.path && (e.path = this.path), null != this.extensions && Object.keys(this.extensions).length > 0 && (e.extensions = this.extensions), e + } + } + + function S(e) { + return void 0 === e || 0 === e.length ? void 0 : e + } + let I; + + function N(e) { + return 9 === e || 32 === e + } + + function A(e) { + return e >= 48 && e <= 57 + } + + function O(e) { + return e >= 97 && e <= 122 || e >= 65 && e <= 90 + } + + function C(e) { + return O(e) || 95 === e + } + + function D(e) { + return O(e) || A(e) || 95 === e + } + + function R(e) { + var t; + let n = Number.MAX_SAFE_INTEGER, + r = null, + i = -1; + for (let o = 0; o < e.length; ++o) { + var a; + const t = e[o], + s = M(t); + s !== t.length && (r = null !== (a = r) && void 0 !== a ? a : o, i = o, 0 !== o && s < n && (n = s)) + } + return e.map(((e, t) => 0 === t ? e : e.slice(n))).slice(null !== (t = r) && void 0 !== t ? t : 0, i + 1) + } + + function M(e) { + let t = 0; + for (; t < e.length && N(e.charCodeAt(t));) ++t; + return t + }! function(e) { + e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension" + }(I || (I = {})); + const L = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g; + + function z(e) { + return F[e.charCodeAt(0)] + } + const F = ["\\u0000", "\\u0001", "\\u0002", "\\u0003", "\\u0004", "\\u0005", "\\u0006", "\\u0007", "\\b", "\\t", "\\n", "\\u000B", "\\f", "\\r", "\\u000E", "\\u000F", "\\u0010", "\\u0011", "\\u0012", "\\u0013", "\\u0014", "\\u0015", "\\u0016", "\\u0017", "\\u0018", "\\u0019", "\\u001A", "\\u001B", "\\u001C", "\\u001D", "\\u001E", "\\u001F", "", "", '\\"', "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\\\\", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\\u007F", "\\u0080", "\\u0081", "\\u0082", "\\u0083", "\\u0084", "\\u0085", "\\u0086", "\\u0087", "\\u0088", "\\u0089", "\\u008A", "\\u008B", "\\u008C", "\\u008D", "\\u008E", "\\u008F", "\\u0090", "\\u0091", "\\u0092", "\\u0093", "\\u0094", "\\u0095", "\\u0096", "\\u0097", "\\u0098", "\\u0099", "\\u009A", "\\u009B", "\\u009C", "\\u009D", "\\u009E", "\\u009F"]; + class $ { + constructor(e, t, n) { + this.start = e.start, this.end = t.end, this.startToken = e, this.endToken = t, this.source = n + } + get[Symbol.toStringTag]() { + return "Location" + } + toJSON() { + return { + start: this.start, + end: this.end + } + } + } + class P { + constructor(e, t, n, r, i, a) { + this.kind = e, this.start = t, this.end = n, this.line = r, this.column = i, this.value = a, this.prev = null, this.next = null + } + get[Symbol.toStringTag]() { + return "Token" + } + toJSON() { + return { + kind: this.kind, + value: this.value, + line: this.line, + column: this.column + } + } + } + const U = { + Name: [], + Document: ["definitions"], + OperationDefinition: ["name", "variableDefinitions", "directives", "selectionSet"], + VariableDefinition: ["variable", "type", "defaultValue", "directives"], + Variable: ["name"], + SelectionSet: ["selections"], + Field: ["alias", "name", "arguments", "directives", "selectionSet"], + Argument: ["name", "value"], + FragmentSpread: ["name", "directives"], + InlineFragment: ["typeCondition", "directives", "selectionSet"], + FragmentDefinition: ["name", "variableDefinitions", "typeCondition", "directives", "selectionSet"], + IntValue: [], + FloatValue: [], + StringValue: [], + BooleanValue: [], + NullValue: [], + EnumValue: [], + ListValue: ["values"], + ObjectValue: ["fields"], + ObjectField: ["name", "value"], + Directive: ["name", "arguments"], + NamedType: ["name"], + ListType: ["type"], + NonNullType: ["type"], + SchemaDefinition: ["description", "directives", "operationTypes"], + OperationTypeDefinition: ["type"], + ScalarTypeDefinition: ["description", "name", "directives"], + ObjectTypeDefinition: ["description", "name", "interfaces", "directives", "fields"], + FieldDefinition: ["description", "name", "arguments", "type", "directives"], + InputValueDefinition: ["description", "name", "type", "defaultValue", "directives"], + InterfaceTypeDefinition: ["description", "name", "interfaces", "directives", "fields"], + UnionTypeDefinition: ["description", "name", "directives", "types"], + EnumTypeDefinition: ["description", "name", "directives", "values"], + EnumValueDefinition: ["description", "name", "directives"], + InputObjectTypeDefinition: ["description", "name", "directives", "fields"], + DirectiveDefinition: ["description", "name", "arguments", "locations"], + SchemaExtension: ["directives", "operationTypes"], + ScalarTypeExtension: ["name", "directives"], + ObjectTypeExtension: ["name", "interfaces", "directives", "fields"], + InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"], + UnionTypeExtension: ["name", "directives", "types"], + EnumTypeExtension: ["name", "directives", "values"], + InputObjectTypeExtension: ["name", "directives", "fields"] + }, + j = new Set(Object.keys(U)); + + function q(e) { + const t = null === e || void 0 === e ? void 0 : e.kind; + return "string" === typeof t && j.has(t) + } + let B; + ! function(e) { + e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription" + }(B || (B = {})); + const V = Object.freeze({}); + + function W(e, t, n = U) { + const i = new Map; + for (const r of Object.values(I)) i.set(r, G(t, r)); + let a, s, l, c = Array.isArray(e), + u = [e], + d = -1, + p = [], + f = e; + const m = [], + h = []; + do { + d++; + const e = d === u.length, + y = e && 0 !== p.length; + if (e) { + if (s = 0 === h.length ? void 0 : m[m.length - 1], f = l, l = h.pop(), y) + if (c) { + f = f.slice(); + let e = 0; + for (const [t, n] of p) { + const r = t - e; + null === n ? (f.splice(r, 1), e++) : f[r] = n + } + } else { + f = Object.defineProperties({}, Object.getOwnPropertyDescriptors(f)); + for (const [e, t] of p) f[e] = t + } + d = a.index, u = a.keys, p = a.edits, c = a.inArray, a = a.prev + } else if (l) { + if (s = c ? d : u[d], f = l[s], null === f || void 0 === f) continue; + m.push(s) + } + let k; + if (!Array.isArray(f)) { + var g, b; + q(f) || r(!1, `Invalid AST Node: ${o(f)}.`); + const n = e ? null === (g = i.get(f.kind)) || void 0 === g ? void 0 : g.leave : null === (b = i.get(f.kind)) || void 0 === b ? void 0 : b.enter; + if (k = null === n || void 0 === n ? void 0 : n.call(t, f, s, l, m, h), k === V) break; + if (!1 === k) { + if (!e) { + m.pop(); + continue + } + } else if (void 0 !== k && (p.push([s, k]), !e)) { + if (!q(k)) { + m.pop(); + continue + } + f = k + } + } + var v; + if (void 0 === k && y && p.push([s, f]), e) m.pop(); + else a = { + inArray: c, + index: d, + keys: u, + edits: p, + prev: a + }, c = Array.isArray(f), u = c ? f : null !== (v = n[f.kind]) && void 0 !== v ? v : [], d = -1, p = [], l && h.push(l), l = f + } while (void 0 !== a); + return 0 !== p.length ? p[p.length - 1][1] : e + } + + function G(e, t) { + const n = e[t]; + return "object" === typeof n ? n : "function" === typeof n ? { + enter: n, + leave: void 0 + } : { + enter: e.enter, + leave: e.leave + } + } + + function H(e) { + return W(e, K) + } + const K = { + Name: { + leave: e => e.value + }, + Variable: { + leave: e => "$" + e.name + }, + Document: { + leave: e => Y(e.definitions, "\n\n") + }, + OperationDefinition: { + leave(e) { + const t = X("(", Y(e.variableDefinitions, ", "), ")"), + n = Y([e.operation, Y([e.name, t]), Y(e.directives, " ")], " "); + return ("query" === n ? "" : n + " ") + e.selectionSet + } + }, + VariableDefinition: { + leave: ({ + variable: e, + type: t, + defaultValue: n, + directives: r + }) => e + ": " + t + X(" = ", n) + X(" ", Y(r, " ")) + }, + SelectionSet: { + leave: ({ + selections: e + }) => Z(e) + }, + Field: { + leave({ + alias: e, + name: t, + arguments: n, + directives: r, + selectionSet: i + }) { + const a = X("", e, ": ") + t; + let o = a + X("(", Y(n, ", "), ")"); + return o.length > 80 && (o = a + X("(\n", Q(Y(n, "\n")), "\n)")), Y([o, Y(r, " "), i], " ") + } + }, + Argument: { + leave: ({ + name: e, + value: t + }) => e + ": " + t + }, + FragmentSpread: { + leave: ({ + name: e, + directives: t + }) => "..." + e + X(" ", Y(t, " ")) + }, + InlineFragment: { + leave: ({ + typeCondition: e, + directives: t, + selectionSet: n + }) => Y(["...", X("on ", e), Y(t, " "), n], " ") + }, + FragmentDefinition: { + leave: ({ + name: e, + typeCondition: t, + variableDefinitions: n, + directives: r, + selectionSet: i + }) => `fragment ${e}${X("(",Y(n,", "),")")} on ${t} ${X("",Y(r," ")," ")}` + i + }, + IntValue: { + leave: ({ + value: e + }) => e + }, + FloatValue: { + leave: ({ + value: e + }) => e + }, + StringValue: { + leave: ({ + value: e, + block: t + }) => t ? function(e, t) { + const n = e.replace(/"""/g, '\\"""'), + r = n.split(/\r\n|[\n\r]/g), + i = 1 === r.length, + a = r.length > 1 && r.slice(1).every((e => 0 === e.length || N(e.charCodeAt(0)))), + o = n.endsWith('\\"""'), + s = e.endsWith('"') && !o, + l = e.endsWith("\\"), + c = s || l, + u = !(null !== t && void 0 !== t && t.minimize) && (!i || e.length > 70 || c || a || o); + let d = ""; + const p = i && N(e.charCodeAt(0)); + return (u && !p || a) && (d += "\n"), d += n, (u || c) && (d += "\n"), '"""' + d + '"""' + }(e) : `"${e.replace(L,z)}"` + }, + BooleanValue: { + leave: ({ + value: e + }) => e ? "true" : "false" + }, + NullValue: { + leave: () => "null" + }, + EnumValue: { + leave: ({ + value: e + }) => e + }, + ListValue: { + leave: ({ + values: e + }) => "[" + Y(e, ", ") + "]" + }, + ObjectValue: { + leave: ({ + fields: e + }) => "{" + Y(e, ", ") + "}" + }, + ObjectField: { + leave: ({ + name: e, + value: t + }) => e + ": " + t + }, + Directive: { + leave: ({ + name: e, + arguments: t + }) => "@" + e + X("(", Y(t, ", "), ")") + }, + NamedType: { + leave: ({ + name: e + }) => e + }, + ListType: { + leave: ({ + type: e + }) => "[" + e + "]" + }, + NonNullType: { + leave: ({ + type: e + }) => e + "!" + }, + SchemaDefinition: { + leave: ({ + description: e, + directives: t, + operationTypes: n + }) => X("", e, "\n") + Y(["schema", Y(t, " "), Z(n)], " ") + }, + OperationTypeDefinition: { + leave: ({ + operation: e, + type: t + }) => e + ": " + t + }, + ScalarTypeDefinition: { + leave: ({ + description: e, + name: t, + directives: n + }) => X("", e, "\n") + Y(["scalar", t, Y(n, " ")], " ") + }, + ObjectTypeDefinition: { + leave: ({ + description: e, + name: t, + interfaces: n, + directives: r, + fields: i + }) => X("", e, "\n") + Y(["type", t, X("implements ", Y(n, " & ")), Y(r, " "), Z(i)], " ") + }, + FieldDefinition: { + leave: ({ + description: e, + name: t, + arguments: n, + type: r, + directives: i + }) => X("", e, "\n") + t + (J(n) ? X("(\n", Q(Y(n, "\n")), "\n)") : X("(", Y(n, ", "), ")")) + ": " + r + X(" ", Y(i, " ")) + }, + InputValueDefinition: { + leave: ({ + description: e, + name: t, + type: n, + defaultValue: r, + directives: i + }) => X("", e, "\n") + Y([t + ": " + n, X("= ", r), Y(i, " ")], " ") + }, + InterfaceTypeDefinition: { + leave: ({ + description: e, + name: t, + interfaces: n, + directives: r, + fields: i + }) => X("", e, "\n") + Y(["interface", t, X("implements ", Y(n, " & ")), Y(r, " "), Z(i)], " ") + }, + UnionTypeDefinition: { + leave: ({ + description: e, + name: t, + directives: n, + types: r + }) => X("", e, "\n") + Y(["union", t, Y(n, " "), X("= ", Y(r, " | "))], " ") + }, + EnumTypeDefinition: { + leave: ({ + description: e, + name: t, + directives: n, + values: r + }) => X("", e, "\n") + Y(["enum", t, Y(n, " "), Z(r)], " ") + }, + EnumValueDefinition: { + leave: ({ + description: e, + name: t, + directives: n + }) => X("", e, "\n") + Y([t, Y(n, " ")], " ") + }, + InputObjectTypeDefinition: { + leave: ({ + description: e, + name: t, + directives: n, + fields: r + }) => X("", e, "\n") + Y(["input", t, Y(n, " "), Z(r)], " ") + }, + DirectiveDefinition: { + leave: ({ + description: e, + name: t, + arguments: n, + repeatable: r, + locations: i + }) => X("", e, "\n") + "directive @" + t + (J(n) ? X("(\n", Q(Y(n, "\n")), "\n)") : X("(", Y(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + Y(i, " | ") + }, + SchemaExtension: { + leave: ({ + directives: e, + operationTypes: t + }) => Y(["extend schema", Y(e, " "), Z(t)], " ") + }, + ScalarTypeExtension: { + leave: ({ + name: e, + directives: t + }) => Y(["extend scalar", e, Y(t, " ")], " ") + }, + ObjectTypeExtension: { + leave: ({ + name: e, + interfaces: t, + directives: n, + fields: r + }) => Y(["extend type", e, X("implements ", Y(t, " & ")), Y(n, " "), Z(r)], " ") + }, + InterfaceTypeExtension: { + leave: ({ + name: e, + interfaces: t, + directives: n, + fields: r + }) => Y(["extend interface", e, X("implements ", Y(t, " & ")), Y(n, " "), Z(r)], " ") + }, + UnionTypeExtension: { + leave: ({ + name: e, + directives: t, + types: n + }) => Y(["extend union", e, Y(t, " "), X("= ", Y(n, " | "))], " ") + }, + EnumTypeExtension: { + leave: ({ + name: e, + directives: t, + values: n + }) => Y(["extend enum", e, Y(t, " "), Z(n)], " ") + }, + InputObjectTypeExtension: { + leave: ({ + name: e, + directives: t, + fields: n + }) => Y(["extend input", e, Y(t, " "), Z(n)], " ") + } + }; + + function Y(e, t = "") { + var n; + return null !== (n = null === e || void 0 === e ? void 0 : e.filter((e => e)).join(t)) && void 0 !== n ? n : "" + } + + function Z(e) { + return X("{\n", Q(Y(e, "\n")), "\n}") + } + + function X(e, t, n = "") { + return null != t && "" !== t ? e + t + n : "" + } + + function Q(e) { + return X(" ", e.replace(/\n/g, "\n ")) + } + + function J(e) { + var t; + return null !== (t = null === e || void 0 === e ? void 0 : e.some((e => e.includes("\n")))) && void 0 !== t && t + } + + function ee(e, t) { + switch (e.kind) { + case I.NULL: + return null; + case I.INT: + return parseInt(e.value, 10); + case I.FLOAT: + return parseFloat(e.value); + case I.STRING: + case I.ENUM: + case I.BOOLEAN: + return e.value; + case I.LIST: + return e.values.map((e => ee(e, t))); + case I.OBJECT: + return d(e.fields, (e => e.name.value), (e => ee(e.value, t))); + case I.VARIABLE: + return null === t || void 0 === t ? void 0 : t[e.name.value] + } + } + + function te(e) { + if (null != e || r(!1, "Must provide name."), "string" === typeof e || r(!1, "Expected name to be a string."), 0 === e.length) throw new T("Expected name to be a non-empty string."); + for (let t = 1; t < e.length; ++t) + if (!D(e.charCodeAt(t))) throw new T(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`); + if (!C(e.charCodeAt(0))) throw new T(`Names must start with [_a-zA-Z] but "${e}" does not.`); + return e + } + + function ne(e) { + if ("true" === e || "false" === e || "null" === e) throw new T(`Enum values cannot be named: ${e}`); + return te(e) + } + + function re(e) { + return ie(e) || ae(e) || oe(e) || se(e) || le(e) || ce(e) || ue(e) || de(e) + } + + function ie(e) { + return l(e, Se) + } + + function ae(e) { + return l(e, Ie) + } + + function oe(e) { + return l(e, Le) + } + + function se(e) { + return l(e, ze) + } + + function le(e) { + return l(e, $e) + } + + function ce(e) { + return l(e, Ue) + } + + function ue(e) { + return l(e, be) + } + + function de(e) { + return l(e, ve) + } + + function pe(e) { + return ie(e) || le(e) || ce(e) || ye(e) && pe(e.ofType) + } + + function fe(e) { + return ie(e) || ae(e) || oe(e) || se(e) || le(e) || ye(e) && fe(e.ofType) + } + + function me(e) { + return ie(e) || le(e) + } + + function he(e) { + return ae(e) || oe(e) || se(e) + } + + function ge(e) { + return oe(e) || se(e) + } + class be { + constructor(e) { + re(e) || r(!1, `Expected ${o(e)} to be a GraphQL type.`), this.ofType = e + } + get[Symbol.toStringTag]() { + return "GraphQLList" + } + toString() { + return "[" + String(this.ofType) + "]" + } + toJSON() { + return this.toString() + } + } + class ve { + constructor(e) { + ke(e) || r(!1, `Expected ${o(e)} to be a GraphQL nullable type.`), this.ofType = e + } + get[Symbol.toStringTag]() { + return "GraphQLNonNull" + } + toString() { + return String(this.ofType) + "!" + } + toJSON() { + return this.toString() + } + } + + function ye(e) { + return ue(e) || de(e) + } + + function ke(e) { + return re(e) && !de(e) + } + + function xe(e) { + if (e) return de(e) ? e.ofType : e + } + + function _e(e) { + return ie(e) || ae(e) || oe(e) || se(e) || le(e) || ce(e) + } + + function we(e) { + if (e) { + let t = e; + for (; ye(t);) t = t.ofType; + return t + } + } + + function Ee(e) { + return "function" === typeof e ? e() : e + } + + function Te(e) { + return "function" === typeof e ? e() : e + } + class Se { + constructor(e) { + var t, n, i, s; + const l = null !== (t = e.parseValue) && void 0 !== t ? t : a; + this.name = te(e.name), this.description = e.description, this.specifiedByURL = e.specifiedByURL, this.serialize = null !== (n = e.serialize) && void 0 !== n ? n : a, this.parseValue = l, this.parseLiteral = null !== (i = e.parseLiteral) && void 0 !== i ? i : (e, t) => l(ee(e, t)), this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (s = e.extensionASTNodes) && void 0 !== s ? s : [], null == e.specifiedByURL || "string" === typeof e.specifiedByURL || r(!1, `${this.name} must provide "specifiedByURL" as a string, but got: ${o(e.specifiedByURL)}.`), null == e.serialize || "function" === typeof e.serialize || r(!1, `${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`), e.parseLiteral && ("function" === typeof e.parseValue && "function" === typeof e.parseLiteral || r(!1, `${this.name} must provide both "parseValue" and "parseLiteral" functions.`)) + } + get[Symbol.toStringTag]() { + return "GraphQLScalarType" + } + toConfig() { + return { + name: this.name, + description: this.description, + specifiedByURL: this.specifiedByURL, + serialize: this.serialize, + parseValue: this.parseValue, + parseLiteral: this.parseLiteral, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + class Ie { + constructor(e) { + var t; + this.name = te(e.name), this.description = e.description, this.isTypeOf = e.isTypeOf, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._fields = () => Ae(e), this._interfaces = () => Ne(e), null == e.isTypeOf || "function" === typeof e.isTypeOf || r(!1, `${this.name} must provide "isTypeOf" as a function, but got: ${o(e.isTypeOf)}.`) + } + get[Symbol.toStringTag]() { + return "GraphQLObjectType" + } + getFields() { + return "function" === typeof this._fields && (this._fields = this._fields()), this._fields + } + getInterfaces() { + return "function" === typeof this._interfaces && (this._interfaces = this._interfaces()), this._interfaces + } + toConfig() { + return { + name: this.name, + description: this.description, + interfaces: this.getInterfaces(), + fields: De(this.getFields()), + isTypeOf: this.isTypeOf, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + + function Ne(e) { + var t; + const n = Ee(null !== (t = e.interfaces) && void 0 !== t ? t : []); + return Array.isArray(n) || r(!1, `${e.name} interfaces must be an Array or a function which returns an Array.`), n + } + + function Ae(e) { + const t = Te(e.fields); + return Ce(t) || r(!1, `${e.name} fields must be an object with field names as keys or a function which returns such an object.`), p(t, ((t, n) => { + var i; + Ce(t) || r(!1, `${e.name}.${n} field config must be an object.`), null == t.resolve || "function" === typeof t.resolve || r(!1, `${e.name}.${n} field resolver must be a function if provided, but got: ${o(t.resolve)}.`); + const a = null !== (i = t.args) && void 0 !== i ? i : {}; + return Ce(a) || r(!1, `${e.name}.${n} args must be an object with argument names as keys.`), { + name: te(n), + description: t.description, + type: t.type, + args: Oe(a), + resolve: t.resolve, + subscribe: t.subscribe, + deprecationReason: t.deprecationReason, + extensions: y(t.extensions), + astNode: t.astNode + } + })) + } + + function Oe(e) { + return Object.entries(e).map((([e, t]) => ({ + name: te(e), + description: t.description, + type: t.type, + defaultValue: t.defaultValue, + deprecationReason: t.deprecationReason, + extensions: y(t.extensions), + astNode: t.astNode + }))) + } + + function Ce(e) { + return c(e) && !Array.isArray(e) + } + + function De(e) { + return p(e, (e => ({ + description: e.description, + type: e.type, + args: Re(e.args), + resolve: e.resolve, + subscribe: e.subscribe, + deprecationReason: e.deprecationReason, + extensions: e.extensions, + astNode: e.astNode + }))) + } + + function Re(e) { + return d(e, (e => e.name), (e => ({ + description: e.description, + type: e.type, + defaultValue: e.defaultValue, + deprecationReason: e.deprecationReason, + extensions: e.extensions, + astNode: e.astNode + }))) + } + + function Me(e) { + return de(e.type) && void 0 === e.defaultValue + } + class Le { + constructor(e) { + var t; + this.name = te(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._fields = Ae.bind(void 0, e), this._interfaces = Ne.bind(void 0, e), null == e.resolveType || "function" === typeof e.resolveType || r(!1, `${this.name} must provide "resolveType" as a function, but got: ${o(e.resolveType)}.`) + } + get[Symbol.toStringTag]() { + return "GraphQLInterfaceType" + } + getFields() { + return "function" === typeof this._fields && (this._fields = this._fields()), this._fields + } + getInterfaces() { + return "function" === typeof this._interfaces && (this._interfaces = this._interfaces()), this._interfaces + } + toConfig() { + return { + name: this.name, + description: this.description, + interfaces: this.getInterfaces(), + fields: De(this.getFields()), + resolveType: this.resolveType, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + class ze { + constructor(e) { + var t; + this.name = te(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._types = Fe.bind(void 0, e), null == e.resolveType || "function" === typeof e.resolveType || r(!1, `${this.name} must provide "resolveType" as a function, but got: ${o(e.resolveType)}.`) + } + get[Symbol.toStringTag]() { + return "GraphQLUnionType" + } + getTypes() { + return "function" === typeof this._types && (this._types = this._types()), this._types + } + toConfig() { + return { + name: this.name, + description: this.description, + types: this.getTypes(), + resolveType: this.resolveType, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + + function Fe(e) { + const t = Ee(e.types); + return Array.isArray(t) || r(!1, `Must provide Array of types or a function which returns such an array for Union ${e.name}.`), t + } + class $e { + constructor(e) { + var t, n, i; + this.name = te(e.name), this.description = e.description, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._values = (n = this.name, Ce(i = e.values) || r(!1, `${n} values must be an object with value names as keys.`), Object.entries(i).map((([e, t]) => (Ce(t) || r(!1, `${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${o(t)}.`), { + name: ne(e), + description: t.description, + value: void 0 !== t.value ? t.value : e, + deprecationReason: t.deprecationReason, + extensions: y(t.extensions), + astNode: t.astNode + })))), this._valueLookup = new Map(this._values.map((e => [e.value, e]))), this._nameLookup = u(this._values, (e => e.name)) + } + get[Symbol.toStringTag]() { + return "GraphQLEnumType" + } + getValues() { + return this._values + } + getValue(e) { + return this._nameLookup[e] + } + serialize(e) { + const t = this._valueLookup.get(e); + if (void 0 === t) throw new T(`Enum "${this.name}" cannot represent value: ${o(e)}`); + return t.name + } + parseValue(e) { + if ("string" !== typeof e) { + const t = o(e); + throw new T(`Enum "${this.name}" cannot represent non-string value: ${t}.` + Pe(this, t)) + } + const t = this.getValue(e); + if (null == t) throw new T(`Value "${e}" does not exist in "${this.name}" enum.` + Pe(this, e)); + return t.value + } + parseLiteral(e, t) { + if (e.kind !== I.ENUM) { + const t = H(e); + throw new T(`Enum "${this.name}" cannot represent non-enum value: ${t}.` + Pe(this, t), { + nodes: e + }) + } + const n = this.getValue(e.value); + if (null == n) { + const t = H(e); + throw new T(`Value "${t}" does not exist in "${this.name}" enum.` + Pe(this, t), { + nodes: e + }) + } + return n.value + } + toConfig() { + const e = d(this.getValues(), (e => e.name), (e => ({ + description: e.description, + value: e.value, + deprecationReason: e.deprecationReason, + extensions: e.extensions, + astNode: e.astNode + }))); + return { + name: this.name, + description: this.description, + values: e, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + + function Pe(e, t) { + return i("the enum value", g(t, e.getValues().map((e => e.name)))) + } + class Ue { + constructor(e) { + var t; + this.name = te(e.name), this.description = e.description, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._fields = je.bind(void 0, e) + } + get[Symbol.toStringTag]() { + return "GraphQLInputObjectType" + } + getFields() { + return "function" === typeof this._fields && (this._fields = this._fields()), this._fields + } + toConfig() { + const e = p(this.getFields(), (e => ({ + description: e.description, + type: e.type, + defaultValue: e.defaultValue, + deprecationReason: e.deprecationReason, + extensions: e.extensions, + astNode: e.astNode + }))); + return { + name: this.name, + description: this.description, + fields: e, + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes + } + } + toString() { + return this.name + } + toJSON() { + return this.toString() + } + } + + function je(e) { + const t = Te(e.fields); + return Ce(t) || r(!1, `${e.name} fields must be an object with field names as keys or a function which returns such an object.`), p(t, ((t, n) => (!("resolve" in t) || r(!1, `${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`), { + name: te(n), + description: t.description, + type: t.type, + defaultValue: t.defaultValue, + deprecationReason: t.deprecationReason, + extensions: y(t.extensions), + astNode: t.astNode + }))) + } + + function qe(e) { + return de(e.type) && void 0 === e.defaultValue + } + let Be; + ! function(e) { + e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION" + }(Be || (Be = {})); + const Ve = 2147483647, + We = -2147483648, + Ge = new Se({ + name: "Int", + description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", + serialize(e) { + const t = Qe(e); + if ("boolean" === typeof t) return t ? 1 : 0; + let n = t; + if ("string" === typeof t && "" !== t && (n = Number(t)), "number" !== typeof n || !Number.isInteger(n)) throw new T(`Int cannot represent non-integer value: ${o(t)}`); + if (n > Ve || n < We) throw new T("Int cannot represent non 32-bit signed integer value: " + o(t)); + return n + }, + parseValue(e) { + if ("number" !== typeof e || !Number.isInteger(e)) throw new T(`Int cannot represent non-integer value: ${o(e)}`); + if (e > Ve || e < We) throw new T(`Int cannot represent non 32-bit signed integer value: ${e}`); + return e + }, + parseLiteral(e) { + if (e.kind !== I.INT) throw new T(`Int cannot represent non-integer value: ${H(e)}`, { + nodes: e + }); + const t = parseInt(e.value, 10); + if (t > Ve || t < We) throw new T(`Int cannot represent non 32-bit signed integer value: ${e.value}`, { + nodes: e + }); + return t + } + }), + He = new Se({ + name: "Float", + description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + serialize(e) { + const t = Qe(e); + if ("boolean" === typeof t) return t ? 1 : 0; + let n = t; + if ("string" === typeof t && "" !== t && (n = Number(t)), "number" !== typeof n || !Number.isFinite(n)) throw new T(`Float cannot represent non numeric value: ${o(t)}`); + return n + }, + parseValue(e) { + if ("number" !== typeof e || !Number.isFinite(e)) throw new T(`Float cannot represent non numeric value: ${o(e)}`); + return e + }, + parseLiteral(e) { + if (e.kind !== I.FLOAT && e.kind !== I.INT) throw new T(`Float cannot represent non numeric value: ${H(e)}`, e); + return parseFloat(e.value) + } + }), + Ke = new Se({ + name: "String", + description: "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", + serialize(e) { + const t = Qe(e); + if ("string" === typeof t) return t; + if ("boolean" === typeof t) return t ? "true" : "false"; + if ("number" === typeof t && Number.isFinite(t)) return t.toString(); + throw new T(`String cannot represent value: ${o(e)}`) + }, + parseValue(e) { + if ("string" !== typeof e) throw new T(`String cannot represent a non string value: ${o(e)}`); + return e + }, + parseLiteral(e) { + if (e.kind !== I.STRING) throw new T(`String cannot represent a non string value: ${H(e)}`, { + nodes: e + }); + return e.value + } + }), + Ye = new Se({ + name: "Boolean", + description: "The `Boolean` scalar type represents `true` or `false`.", + serialize(e) { + const t = Qe(e); + if ("boolean" === typeof t) return t; + if (Number.isFinite(t)) return 0 !== t; + throw new T(`Boolean cannot represent a non boolean value: ${o(t)}`) + }, + parseValue(e) { + if ("boolean" !== typeof e) throw new T(`Boolean cannot represent a non boolean value: ${o(e)}`); + return e + }, + parseLiteral(e) { + if (e.kind !== I.BOOLEAN) throw new T(`Boolean cannot represent a non boolean value: ${H(e)}`, { + nodes: e + }); + return e.value + } + }), + Ze = new Se({ + name: "ID", + description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.', + serialize(e) { + const t = Qe(e); + if ("string" === typeof t) return t; + if (Number.isInteger(t)) return String(t); + throw new T(`ID cannot represent value: ${o(e)}`) + }, + parseValue(e) { + if ("string" === typeof e) return e; + if ("number" === typeof e && Number.isInteger(e)) return e.toString(); + throw new T(`ID cannot represent value: ${o(e)}`) + }, + parseLiteral(e) { + if (e.kind !== I.STRING && e.kind !== I.INT) throw new T("ID cannot represent a non-string and non-integer value: " + H(e), { + nodes: e + }); + return e.value + } + }), + Xe = Object.freeze([Ke, Ge, He, Ye, Ze]); + + function Qe(e) { + if (c(e)) { + if ("function" === typeof e.valueOf) { + const t = e.valueOf(); + if (!c(t)) return t + } + if ("function" === typeof e.toJSON) return e.toJSON() + } + return e + } + + function Je(e, t) { + if (de(t)) { + const n = Je(e, t.ofType); + return (null === n || void 0 === n ? void 0 : n.kind) === I.NULL ? null : n + } + if (null === e) return { + kind: I.NULL + }; + if (void 0 === e) return null; + if (ue(t)) { + const r = t.ofType; + if ("object" === typeof(n = e) && "function" === typeof(null === n || void 0 === n ? void 0 : n[Symbol.iterator])) { + const t = []; + for (const n of e) { + const e = Je(n, r); + null != e && t.push(e) + } + return { + kind: I.LIST, + values: t + } + } + return Je(e, r) + } + var n; + if (ce(t)) { + if (!c(e)) return null; + const n = []; + for (const r of Object.values(t.getFields())) { + const t = Je(e[r.name], r.type); + t && n.push({ + kind: I.OBJECT_FIELD, + name: { + kind: I.NAME, + value: r.name + }, + value: t + }) + } + return { + kind: I.OBJECT, + fields: n + } + } + if (me(t)) { + const n = t.serialize(e); + if (null == n) return null; + if ("boolean" === typeof n) return { + kind: I.BOOLEAN, + value: n + }; + if ("number" === typeof n && Number.isFinite(n)) { + const e = String(n); + return et.test(e) ? { + kind: I.INT, + value: e + } : { + kind: I.FLOAT, + value: e + } + } + if ("string" === typeof n) return le(t) ? { + kind: I.ENUM, + value: n + } : t === Ze && et.test(n) ? { + kind: I.INT, + value: n + } : { + kind: I.STRING, + value: n + }; + throw new TypeError(`Cannot convert value to AST: ${o(n)}.`) + } + k(!1, "Unexpected input type: " + o(t)) + } + const et = /^-?(?:0|[1-9][0-9]*)$/, + tt = new Ie({ + name: "__Schema", + description: "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", + fields: () => ({ + description: { + type: Ke, + resolve: e => e.description + }, + types: { + description: "A list of all types supported by this server.", + type: new ve(new be(new ve(it))), + resolve: e => Object.values(e.getTypeMap()) + }, + queryType: { + description: "The type that query operations will be rooted at.", + type: new ve(it), + resolve: e => e.getQueryType() + }, + mutationType: { + description: "If this server supports mutation, the type that mutation operations will be rooted at.", + type: it, + resolve: e => e.getMutationType() + }, + subscriptionType: { + description: "If this server support subscription, the type that subscription operations will be rooted at.", + type: it, + resolve: e => e.getSubscriptionType() + }, + directives: { + description: "A list of all directives supported by this server.", + type: new ve(new be(new ve(nt))), + resolve: e => e.getDirectives() + } + }) + }), + nt = new Ie({ + name: "__Directive", + description: "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", + fields: () => ({ + name: { + type: new ve(Ke), + resolve: e => e.name + }, + description: { + type: Ke, + resolve: e => e.description + }, + isRepeatable: { + type: new ve(Ye), + resolve: e => e.isRepeatable + }, + locations: { + type: new ve(new be(new ve(rt))), + resolve: e => e.locations + }, + args: { + type: new ve(new be(new ve(ot))), + args: { + includeDeprecated: { + type: Ye, + defaultValue: !1 + } + }, + resolve: (e, { + includeDeprecated: t + }) => t ? e.args : e.args.filter((e => null == e.deprecationReason)) + } + }) + }), + rt = new $e({ + name: "__DirectiveLocation", + description: "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", + values: { + QUERY: { + value: Be.QUERY, + description: "Location adjacent to a query operation." + }, + MUTATION: { + value: Be.MUTATION, + description: "Location adjacent to a mutation operation." + }, + SUBSCRIPTION: { + value: Be.SUBSCRIPTION, + description: "Location adjacent to a subscription operation." + }, + FIELD: { + value: Be.FIELD, + description: "Location adjacent to a field." + }, + FRAGMENT_DEFINITION: { + value: Be.FRAGMENT_DEFINITION, + description: "Location adjacent to a fragment definition." + }, + FRAGMENT_SPREAD: { + value: Be.FRAGMENT_SPREAD, + description: "Location adjacent to a fragment spread." + }, + INLINE_FRAGMENT: { + value: Be.INLINE_FRAGMENT, + description: "Location adjacent to an inline fragment." + }, + VARIABLE_DEFINITION: { + value: Be.VARIABLE_DEFINITION, + description: "Location adjacent to a variable definition." + }, + SCHEMA: { + value: Be.SCHEMA, + description: "Location adjacent to a schema definition." + }, + SCALAR: { + value: Be.SCALAR, + description: "Location adjacent to a scalar definition." + }, + OBJECT: { + value: Be.OBJECT, + description: "Location adjacent to an object type definition." + }, + FIELD_DEFINITION: { + value: Be.FIELD_DEFINITION, + description: "Location adjacent to a field definition." + }, + ARGUMENT_DEFINITION: { + value: Be.ARGUMENT_DEFINITION, + description: "Location adjacent to an argument definition." + }, + INTERFACE: { + value: Be.INTERFACE, + description: "Location adjacent to an interface definition." + }, + UNION: { + value: Be.UNION, + description: "Location adjacent to a union definition." + }, + ENUM: { + value: Be.ENUM, + description: "Location adjacent to an enum definition." + }, + ENUM_VALUE: { + value: Be.ENUM_VALUE, + description: "Location adjacent to an enum value definition." + }, + INPUT_OBJECT: { + value: Be.INPUT_OBJECT, + description: "Location adjacent to an input object type definition." + }, + INPUT_FIELD_DEFINITION: { + value: Be.INPUT_FIELD_DEFINITION, + description: "Location adjacent to an input object field definition." + } + } + }), + it = new Ie({ + name: "__Type", + description: "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", + fields: () => ({ + kind: { + type: new ve(ct), + resolve: e => ie(e) ? lt.SCALAR : ae(e) ? lt.OBJECT : oe(e) ? lt.INTERFACE : se(e) ? lt.UNION : le(e) ? lt.ENUM : ce(e) ? lt.INPUT_OBJECT : ue(e) ? lt.LIST : de(e) ? lt.NON_NULL : void k(!1, `Unexpected type: "${o(e)}".`) + }, + name: { + type: Ke, + resolve: e => "name" in e ? e.name : void 0 + }, + description: { + type: Ke, + resolve: e => "description" in e ? e.description : void 0 + }, + specifiedByURL: { + type: Ke, + resolve: e => "specifiedByURL" in e ? e.specifiedByURL : void 0 + }, + fields: { + type: new be(new ve(at)), + args: { + includeDeprecated: { + type: Ye, + defaultValue: !1 + } + }, + resolve(e, { + includeDeprecated: t + }) { + if (ae(e) || oe(e)) { + const n = Object.values(e.getFields()); + return t ? n : n.filter((e => null == e.deprecationReason)) + } + } + }, + interfaces: { + type: new be(new ve(it)), + resolve(e) { + if (ae(e) || oe(e)) return e.getInterfaces() + } + }, + possibleTypes: { + type: new be(new ve(it)), + resolve(e, t, n, { + schema: r + }) { + if (ge(e)) return r.getPossibleTypes(e) + } + }, + enumValues: { + type: new be(new ve(st)), + args: { + includeDeprecated: { + type: Ye, + defaultValue: !1 + } + }, + resolve(e, { + includeDeprecated: t + }) { + if (le(e)) { + const n = e.getValues(); + return t ? n : n.filter((e => null == e.deprecationReason)) + } + } + }, + inputFields: { + type: new be(new ve(ot)), + args: { + includeDeprecated: { + type: Ye, + defaultValue: !1 + } + }, + resolve(e, { + includeDeprecated: t + }) { + if (ce(e)) { + const n = Object.values(e.getFields()); + return t ? n : n.filter((e => null == e.deprecationReason)) + } + } + }, + ofType: { + type: it, + resolve: e => "ofType" in e ? e.ofType : void 0 + } + }) + }), + at = new Ie({ + name: "__Field", + description: "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", + fields: () => ({ + name: { + type: new ve(Ke), + resolve: e => e.name + }, + description: { + type: Ke, + resolve: e => e.description + }, + args: { + type: new ve(new be(new ve(ot))), + args: { + includeDeprecated: { + type: Ye, + defaultValue: !1 + } + }, + resolve: (e, { + includeDeprecated: t + }) => t ? e.args : e.args.filter((e => null == e.deprecationReason)) + }, + type: { + type: new ve(it), + resolve: e => e.type + }, + isDeprecated: { + type: new ve(Ye), + resolve: e => null != e.deprecationReason + }, + deprecationReason: { + type: Ke, + resolve: e => e.deprecationReason + } + }) + }), + ot = new Ie({ + name: "__InputValue", + description: "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", + fields: () => ({ + name: { + type: new ve(Ke), + resolve: e => e.name + }, + description: { + type: Ke, + resolve: e => e.description + }, + type: { + type: new ve(it), + resolve: e => e.type + }, + defaultValue: { + type: Ke, + description: "A GraphQL-formatted string representing the default value for this input value.", + resolve(e) { + const { + type: t, + defaultValue: n + } = e, r = Je(n, t); + return r ? H(r) : null + } + }, + isDeprecated: { + type: new ve(Ye), + resolve: e => null != e.deprecationReason + }, + deprecationReason: { + type: Ke, + resolve: e => e.deprecationReason + } + }) + }), + st = new Ie({ + name: "__EnumValue", + description: "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", + fields: () => ({ + name: { + type: new ve(Ke), + resolve: e => e.name + }, + description: { + type: Ke, + resolve: e => e.description + }, + isDeprecated: { + type: new ve(Ye), + resolve: e => null != e.deprecationReason + }, + deprecationReason: { + type: Ke, + resolve: e => e.deprecationReason + } + }) + }); + let lt; + ! function(e) { + e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.INPUT_OBJECT = "INPUT_OBJECT", e.LIST = "LIST", e.NON_NULL = "NON_NULL" + }(lt || (lt = {})); + const ct = new $e({ + name: "__TypeKind", + description: "An enum describing what kind of type a given `__Type` is.", + values: { + SCALAR: { + value: lt.SCALAR, + description: "Indicates this type is a scalar." + }, + OBJECT: { + value: lt.OBJECT, + description: "Indicates this type is an object. `fields` and `interfaces` are valid fields." + }, + INTERFACE: { + value: lt.INTERFACE, + description: "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields." + }, + UNION: { + value: lt.UNION, + description: "Indicates this type is a union. `possibleTypes` is a valid field." + }, + ENUM: { + value: lt.ENUM, + description: "Indicates this type is an enum. `enumValues` is a valid field." + }, + INPUT_OBJECT: { + value: lt.INPUT_OBJECT, + description: "Indicates this type is an input object. `inputFields` is a valid field." + }, + LIST: { + value: lt.LIST, + description: "Indicates this type is a list. `ofType` is a valid field." + }, + NON_NULL: { + value: lt.NON_NULL, + description: "Indicates this type is a non-null. `ofType` is a valid field." + } + } + }), + ut = { + name: "__schema", + type: new ve(tt), + description: "Access the current type schema of this server.", + args: [], + resolve: (e, t, n, { + schema: r + }) => r, + deprecationReason: void 0, + extensions: Object.create(null), + astNode: void 0 + }, + dt = { + name: "__type", + type: it, + description: "Request the type information of a single type.", + args: [{ + name: "name", + description: void 0, + type: new ve(Ke), + defaultValue: void 0, + deprecationReason: void 0, + extensions: Object.create(null), + astNode: void 0 + }], + resolve: (e, { + name: t + }, n, { + schema: r + }) => r.getType(t), + deprecationReason: void 0, + extensions: Object.create(null), + astNode: void 0 + }, + pt = { + name: "__typename", + type: new ve(Ke), + description: "The name of the current Object type at runtime.", + args: [], + resolve: (e, t, n, { + parentType: r + }) => r.name, + deprecationReason: void 0, + extensions: Object.create(null), + astNode: void 0 + }, + ft = Object.freeze([tt, nt, rt, it, at, ot, st, ct]); + + function mt(e) { + return ft.some((({ + name: t + }) => e.name === t)) + } + + function ht(e) { + let t; + return bt(e, (e => { + switch (e.kind) { + case "Query": + case "ShortQuery": + case "Mutation": + case "Subscription": + case "FragmentDefinition": + t = e + } + })), t + } + + function gt(e, t, n) { + return n === ut.name && e.getQueryType() === t ? ut : n === dt.name && e.getQueryType() === t ? dt : n === pt.name && he(t) ? pt : "getFields" in t ? t.getFields()[n] : null + } + + function bt(e, t) { + const n = []; + let r = e; + for (; r && r.kind;) n.push(r), r = r.prevState; + for (let i = n.length - 1; i >= 0; i--) t(n[i]) + } + + function vt(e) { + const t = Object.keys(e), + n = t.length, + r = new Array(n); + for (let i = 0; i < n; ++i) r[i] = e[t[i]]; + return r + } + + function yt(e, t) { + return function(e, t) { + if (!t) return kt(e, (e => !e.isDeprecated)); + return kt(kt(e.map((e => ({ + proximity: _t(xt(e.label), t), + entry: e + }))), (e => e.proximity <= 2)), (e => !e.entry.isDeprecated)).sort(((e, t) => (e.entry.isDeprecated ? 1 : 0) - (t.entry.isDeprecated ? 1 : 0) || e.proximity - t.proximity || e.entry.label.length - t.entry.label.length)).map((e => e.entry)) + }(t, xt(e.string)) + } + + function kt(e, t) { + const n = e.filter(t); + return 0 === n.length ? e : n + } + + function xt(e) { + return e.toLowerCase().replace(/\W/g, "") + } + + function _t(e, t) { + let n = function(e, t) { + let n, r; + const i = [], + a = e.length, + o = t.length; + for (n = 0; n <= a; n++) i[n] = [n]; + for (r = 1; r <= o; r++) i[0][r] = r; + for (n = 1; n <= a; n++) + for (r = 1; r <= o; r++) { + const a = e[n - 1] === t[r - 1] ? 0 : 1; + i[n][r] = Math.min(i[n - 1][r] + 1, i[n][r - 1] + 1, i[n - 1][r - 1] + a), n > 1 && r > 1 && e[n - 1] === t[r - 2] && e[n - 2] === t[r - 1] && (i[n][r] = Math.min(i[n][r], i[n - 2][r - 2] + a)) + } + return i[a][o] + }(t, e); + return e.length > t.length && (n -= e.length - t.length - 1, n += 0 === e.indexOf(t) ? 0 : .5), n + } + var wt, Et, Tt, St, It, Nt, At, Ot, Ct, Dt, Rt, Mt, Lt, zt, Ft, $t, Pt, Ut, jt, qt, Bt, Vt, Wt, Gt, Ht, Kt, Yt, Zt; + ! function(e) { + e.is = function(e) { + return "string" === typeof e + } + }(wt || (wt = {})), + function(e) { + e.is = function(e) { + return "string" === typeof e + } + }(Et || (Et = {})), + function(e) { + e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647, e.is = function(t) { + return "number" === typeof t && e.MIN_VALUE <= t && t <= e.MAX_VALUE + } + }(Tt || (Tt = {})), + function(e) { + e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647, e.is = function(t) { + return "number" === typeof t && e.MIN_VALUE <= t && t <= e.MAX_VALUE + } + }(St || (St = {})), + function(e) { + e.create = function(e, t) { + return e === Number.MAX_VALUE && (e = St.MAX_VALUE), t === Number.MAX_VALUE && (t = St.MAX_VALUE), { + line: e, + character: t + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.uinteger(t.line) && Wn.uinteger(t.character) + } + }(It || (It = {})), + function(e) { + e.create = function(e, t, n, r) { + if (Wn.uinteger(e) && Wn.uinteger(t) && Wn.uinteger(n) && Wn.uinteger(r)) return { + start: It.create(e, t), + end: It.create(n, r) + }; + if (It.is(e) && It.is(t)) return { + start: e, + end: t + }; + throw new Error("Range#create called with invalid arguments[".concat(e, ", ").concat(t, ", ").concat(n, ", ").concat(r, "]")) + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && It.is(t.start) && It.is(t.end) + } + }(Nt || (Nt = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + range: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Nt.is(t.range) && (Wn.string(t.uri) || Wn.undefined(t.uri)) + } + }(At || (At = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + targetUri: e, + targetRange: t, + targetSelectionRange: n, + originSelectionRange: r + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Nt.is(t.targetRange) && Wn.string(t.targetUri) && Nt.is(t.targetSelectionRange) && (Nt.is(t.originSelectionRange) || Wn.undefined(t.originSelectionRange)) + } + }(Ot || (Ot = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + red: e, + green: t, + blue: n, + alpha: r + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.numberRange(t.red, 0, 1) && Wn.numberRange(t.green, 0, 1) && Wn.numberRange(t.blue, 0, 1) && Wn.numberRange(t.alpha, 0, 1) + } + }(Ct || (Ct = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + color: t + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Nt.is(t.range) && Ct.is(t.color) + } + }(Dt || (Dt = {})), + function(e) { + e.create = function(e, t, n) { + return { + label: e, + textEdit: t, + additionalTextEdits: n + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.string(t.label) && (Wn.undefined(t.textEdit) || qt.is(t)) && (Wn.undefined(t.additionalTextEdits) || Wn.typedArray(t.additionalTextEdits, qt.is)) + } + }(Rt || (Rt = {})), + function(e) { + e.Comment = "comment", e.Imports = "imports", e.Region = "region" + }(Mt || (Mt = {})), + function(e) { + e.create = function(e, t, n, r, i, a) { + var o = { + startLine: e, + endLine: t + }; + return Wn.defined(n) && (o.startCharacter = n), Wn.defined(r) && (o.endCharacter = r), Wn.defined(i) && (o.kind = i), Wn.defined(a) && (o.collapsedText = a), o + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.uinteger(t.startLine) && Wn.uinteger(t.startLine) && (Wn.undefined(t.startCharacter) || Wn.uinteger(t.startCharacter)) && (Wn.undefined(t.endCharacter) || Wn.uinteger(t.endCharacter)) && (Wn.undefined(t.kind) || Wn.string(t.kind)) + } + }(Lt || (Lt = {})), + function(e) { + e.create = function(e, t) { + return { + location: e, + message: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && At.is(t.location) && Wn.string(t.message) + } + }(zt || (zt = {})), + function(e) { + e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4 + }(Ft || (Ft = {})), + function(e) { + e.Unnecessary = 1, e.Deprecated = 2 + }($t || ($t = {})), + function(e) { + e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.string(t.href) + } + }(Pt || (Pt = {})), + function(e) { + e.create = function(e, t, n, r, i, a) { + var o = { + range: e, + message: t + }; + return Wn.defined(n) && (o.severity = n), Wn.defined(r) && (o.code = r), Wn.defined(i) && (o.source = i), Wn.defined(a) && (o.relatedInformation = a), o + }, e.is = function(e) { + var t, n = e; + return Wn.defined(n) && Nt.is(n.range) && Wn.string(n.message) && (Wn.number(n.severity) || Wn.undefined(n.severity)) && (Wn.integer(n.code) || Wn.string(n.code) || Wn.undefined(n.code)) && (Wn.undefined(n.codeDescription) || Wn.string(null === (t = n.codeDescription) || void 0 === t ? void 0 : t.href)) && (Wn.string(n.source) || Wn.undefined(n.source)) && (Wn.undefined(n.relatedInformation) || Wn.typedArray(n.relatedInformation, zt.is)) + } + }(Ut || (Ut = {})), + function(e) { + e.create = function(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r]; + var i = { + title: e, + command: t + }; + return Wn.defined(n) && n.length > 0 && (i.arguments = n), i + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.string(t.title) && Wn.string(t.command) + } + }(jt || (jt = {})), + function(e) { + e.replace = function(e, t) { + return { + range: e, + newText: t + } + }, e.insert = function(e, t) { + return { + range: { + start: e, + end: e + }, + newText: t + } + }, e.del = function(e) { + return { + range: e, + newText: "" + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.string(t.newText) && Nt.is(t.range) + } + }(qt || (qt = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + label: e + }; + return void 0 !== t && (r.needsConfirmation = t), void 0 !== n && (r.description = n), r + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Wn.string(t.label) && (Wn.boolean(t.needsConfirmation) || void 0 === t.needsConfirmation) && (Wn.string(t.description) || void 0 === t.description) + } + }(Bt || (Bt = {})), + function(e) { + e.is = function(e) { + var t = e; + return Wn.string(t) + } + }(Vt || (Vt = {})), + function(e) { + e.replace = function(e, t, n) { + return { + range: e, + newText: t, + annotationId: n + } + }, e.insert = function(e, t, n) { + return { + range: { + start: e, + end: e + }, + newText: t, + annotationId: n + } + }, e.del = function(e, t) { + return { + range: e, + newText: "", + annotationId: t + } + }, e.is = function(e) { + var t = e; + return qt.is(t) && (Bt.is(t.annotationId) || Vt.is(t.annotationId)) + } + }(Wt || (Wt = {})), + function(e) { + e.create = function(e, t) { + return { + textDocument: e, + edits: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Jt.is(t.textDocument) && Array.isArray(t.edits) + } + }(Gt || (Gt = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + kind: "create", + uri: e + }; + return void 0 === t || void 0 === t.overwrite && void 0 === t.ignoreIfExists || (r.options = t), void 0 !== n && (r.annotationId = n), r + }, e.is = function(e) { + var t = e; + return t && "create" === t.kind && Wn.string(t.uri) && (void 0 === t.options || (void 0 === t.options.overwrite || Wn.boolean(t.options.overwrite)) && (void 0 === t.options.ignoreIfExists || Wn.boolean(t.options.ignoreIfExists))) && (void 0 === t.annotationId || Vt.is(t.annotationId)) + } + }(Ht || (Ht = {})), + function(e) { + e.create = function(e, t, n, r) { + var i = { + kind: "rename", + oldUri: e, + newUri: t + }; + return void 0 === n || void 0 === n.overwrite && void 0 === n.ignoreIfExists || (i.options = n), void 0 !== r && (i.annotationId = r), i + }, e.is = function(e) { + var t = e; + return t && "rename" === t.kind && Wn.string(t.oldUri) && Wn.string(t.newUri) && (void 0 === t.options || (void 0 === t.options.overwrite || Wn.boolean(t.options.overwrite)) && (void 0 === t.options.ignoreIfExists || Wn.boolean(t.options.ignoreIfExists))) && (void 0 === t.annotationId || Vt.is(t.annotationId)) + } + }(Kt || (Kt = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + kind: "delete", + uri: e + }; + return void 0 === t || void 0 === t.recursive && void 0 === t.ignoreIfNotExists || (r.options = t), void 0 !== n && (r.annotationId = n), r + }, e.is = function(e) { + var t = e; + return t && "delete" === t.kind && Wn.string(t.uri) && (void 0 === t.options || (void 0 === t.options.recursive || Wn.boolean(t.options.recursive)) && (void 0 === t.options.ignoreIfNotExists || Wn.boolean(t.options.ignoreIfNotExists))) && (void 0 === t.annotationId || Vt.is(t.annotationId)) + } + }(Yt || (Yt = {})), + function(e) { + e.is = function(e) { + var t = e; + return t && (void 0 !== t.changes || void 0 !== t.documentChanges) && (void 0 === t.documentChanges || t.documentChanges.every((function(e) { + return Wn.string(e.kind) ? Ht.is(e) || Kt.is(e) || Yt.is(e) : Gt.is(e) + }))) + } + }(Zt || (Zt = {})); + var Xt, Qt, Jt, en, tn, nn, rn, an, on, sn, ln, cn, un, dn, pn, fn, mn, hn, gn, bn, vn, yn, kn, xn, _n, wn, En, Tn, Sn, In, Nn, An, On, Cn, Dn, Rn, Mn, Ln, zn, Fn, $n, Pn, Un, jn, qn = function() { + function e(e, t) { + this.edits = e, this.changeAnnotations = t + } + return e.prototype.insert = function(e, t, n) { + var r, i; + if (void 0 === n ? r = qt.insert(e, t) : Vt.is(n) ? (i = n, r = Wt.insert(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = Wt.insert(e, t, i)), this.edits.push(r), void 0 !== i) return i + }, e.prototype.replace = function(e, t, n) { + var r, i; + if (void 0 === n ? r = qt.replace(e, t) : Vt.is(n) ? (i = n, r = Wt.replace(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = Wt.replace(e, t, i)), this.edits.push(r), void 0 !== i) return i + }, e.prototype.delete = function(e, t) { + var n, r; + if (void 0 === t ? n = qt.del(e) : Vt.is(t) ? (r = t, n = Wt.del(e, t)) : (this.assertChangeAnnotations(this.changeAnnotations), r = this.changeAnnotations.manage(t), n = Wt.del(e, r)), this.edits.push(n), void 0 !== r) return r + }, e.prototype.add = function(e) { + this.edits.push(e) + }, e.prototype.all = function() { + return this.edits + }, e.prototype.clear = function() { + this.edits.splice(0, this.edits.length) + }, e.prototype.assertChangeAnnotations = function(e) { + if (void 0 === e) throw new Error("Text edit change is not configured to manage change annotations.") + }, e + }(), + Bn = function() { + function e(e) { + this._annotations = void 0 === e ? Object.create(null) : e, this._counter = 0, this._size = 0 + } + return e.prototype.all = function() { + return this._annotations + }, Object.defineProperty(e.prototype, "size", { + get: function() { + return this._size + }, + enumerable: !1, + configurable: !0 + }), e.prototype.manage = function(e, t) { + var n; + if (Vt.is(e) ? n = e : (n = this.nextId(), t = e), void 0 !== this._annotations[n]) throw new Error("Id ".concat(n, " is already in use.")); + if (void 0 === t) throw new Error("No annotation provided for id ".concat(n)); + return this._annotations[n] = t, this._size++, n + }, e.prototype.nextId = function() { + return this._counter++, this._counter.toString() + }, e + }(); + ! function() { + function e(e) { + var t = this; + this._textEditChanges = Object.create(null), void 0 !== e ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new Bn(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((function(e) { + if (Gt.is(e)) { + var n = new qn(e.edits, t._changeAnnotations); + t._textEditChanges[e.textDocument.uri] = n + } + }))) : e.changes && Object.keys(e.changes).forEach((function(n) { + var r = new qn(e.changes[n]); + t._textEditChanges[n] = r + }))) : this._workspaceEdit = {} + } + Object.defineProperty(e.prototype, "edit", { + get: function() { + return this.initDocumentChanges(), void 0 !== this._changeAnnotations && (0 === this._changeAnnotations.size ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit + }, + enumerable: !1, + configurable: !0 + }), e.prototype.getTextEditChange = function(e) { + if (Jt.is(e)) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var t = { + uri: e.uri, + version: e.version + }; + if (!(r = this._textEditChanges[t.uri])) { + var n = { + textDocument: t, + edits: i = [] + }; + this._workspaceEdit.documentChanges.push(n), r = new qn(i, this._changeAnnotations), this._textEditChanges[t.uri] = r + } + return r + } + if (this.initChanges(), void 0 === this._workspaceEdit.changes) throw new Error("Workspace edit is not configured for normal text edit changes."); + var r; + if (!(r = this._textEditChanges[e])) { + var i = []; + this._workspaceEdit.changes[e] = i, r = new qn(i), this._textEditChanges[e] = r + } + return r + }, e.prototype.initDocumentChanges = function() { + void 0 === this._workspaceEdit.documentChanges && void 0 === this._workspaceEdit.changes && (this._changeAnnotations = new Bn, this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()) + }, e.prototype.initChanges = function() { + void 0 === this._workspaceEdit.documentChanges && void 0 === this._workspaceEdit.changes && (this._workspaceEdit.changes = Object.create(null)) + }, e.prototype.createFile = function(e, t, n) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var r, i, a; + if (Bt.is(t) || Vt.is(t) ? r = t : n = t, void 0 === r ? i = Ht.create(e, n) : (a = Vt.is(r) ? r : this._changeAnnotations.manage(r), i = Ht.create(e, n, a)), this._workspaceEdit.documentChanges.push(i), void 0 !== a) return a + }, e.prototype.renameFile = function(e, t, n, r) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var i, a, o; + if (Bt.is(n) || Vt.is(n) ? i = n : r = n, void 0 === i ? a = Kt.create(e, t, r) : (o = Vt.is(i) ? i : this._changeAnnotations.manage(i), a = Kt.create(e, t, r, o)), this._workspaceEdit.documentChanges.push(a), void 0 !== o) return o + }, e.prototype.deleteFile = function(e, t, n) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var r, i, a; + if (Bt.is(t) || Vt.is(t) ? r = t : n = t, void 0 === r ? i = Yt.create(e, n) : (a = Vt.is(r) ? r : this._changeAnnotations.manage(r), i = Yt.create(e, n, a)), this._workspaceEdit.documentChanges.push(i), void 0 !== a) return a + } + }(); + ! function(e) { + e.create = function(e) { + return { + uri: e + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.string(t.uri) + } + }(Xt || (Xt = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + version: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.string(t.uri) && Wn.integer(t.version) + } + }(Qt || (Qt = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + version: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.string(t.uri) && (null === t.version || Wn.integer(t.version)) + } + }(Jt || (Jt = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + uri: e, + languageId: t, + version: n, + text: r + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.string(t.uri) && Wn.string(t.languageId) && Wn.integer(t.version) && Wn.string(t.text) + } + }(en || (en = {})), + function(e) { + e.PlainText = "plaintext", e.Markdown = "markdown", e.is = function(t) { + var n = t; + return n === e.PlainText || n === e.Markdown + } + }(tn || (tn = {})), + function(e) { + e.is = function(e) { + var t = e; + return Wn.objectLiteral(e) && tn.is(t.kind) && Wn.string(t.value) + } + }(nn || (nn = {})), + function(e) { + e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25 + }(rn || (rn = {})), + function(e) { + e.PlainText = 1, e.Snippet = 2 + }(an || (an = {})), + function(e) { + e.Deprecated = 1 + }(on || (on = {})), + function(e) { + e.create = function(e, t, n) { + return { + newText: e, + insert: t, + replace: n + } + }, e.is = function(e) { + var t = e; + return t && Wn.string(t.newText) && Nt.is(t.insert) && Nt.is(t.replace) + } + }(sn || (sn = {})), + function(e) { + e.asIs = 1, e.adjustIndentation = 2 + }(ln || (ln = {})), + function(e) { + e.is = function(e) { + var t = e; + return t && (Wn.string(t.detail) || void 0 === t.detail) && (Wn.string(t.description) || void 0 === t.description) + } + }(cn || (cn = {})), + function(e) { + e.create = function(e) { + return { + label: e + } + } + }(un || (un = {})), + function(e) { + e.create = function(e, t) { + return { + items: e || [], + isIncomplete: !!t + } + } + }(dn || (dn = {})), + function(e) { + e.fromPlainText = function(e) { + return e.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&") + }, e.is = function(e) { + var t = e; + return Wn.string(t) || Wn.objectLiteral(t) && Wn.string(t.language) && Wn.string(t.value) + } + }(pn || (pn = {})), + function(e) { + e.is = function(e) { + var t = e; + return !!t && Wn.objectLiteral(t) && (nn.is(t.contents) || pn.is(t.contents) || Wn.typedArray(t.contents, pn.is)) && (void 0 === e.range || Nt.is(e.range)) + } + }(fn || (fn = {})), + function(e) { + e.create = function(e, t) { + return t ? { + label: e, + documentation: t + } : { + label: e + } + } + }(mn || (mn = {})), + function(e) { + e.create = function(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r]; + var i = { + label: e + }; + return Wn.defined(t) && (i.documentation = t), Wn.defined(n) ? i.parameters = n : i.parameters = [], i + } + }(hn || (hn = {})), + function(e) { + e.Text = 1, e.Read = 2, e.Write = 3 + }(gn || (gn = {})), + function(e) { + e.create = function(e, t) { + var n = { + range: e + }; + return Wn.number(t) && (n.kind = t), n + } + }(bn || (bn = {})), + function(e) { + e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26 + }(vn || (vn = {})), + function(e) { + e.Deprecated = 1 + }(yn || (yn = {})), + function(e) { + e.create = function(e, t, n, r, i) { + var a = { + name: e, + kind: t, + location: { + uri: r, + range: n + } + }; + return i && (a.containerName = i), a + } + }(kn || (kn = {})), + function(e) { + e.create = function(e, t, n, r) { + return void 0 !== r ? { + name: e, + kind: t, + location: { + uri: n, + range: r + } + } : { + name: e, + kind: t, + location: { + uri: n + } + } + } + }(xn || (xn = {})), + function(e) { + e.create = function(e, t, n, r, i, a) { + var o = { + name: e, + detail: t, + kind: n, + range: r, + selectionRange: i + }; + return void 0 !== a && (o.children = a), o + }, e.is = function(e) { + var t = e; + return t && Wn.string(t.name) && Wn.number(t.kind) && Nt.is(t.range) && Nt.is(t.selectionRange) && (void 0 === t.detail || Wn.string(t.detail)) && (void 0 === t.deprecated || Wn.boolean(t.deprecated)) && (void 0 === t.children || Array.isArray(t.children)) && (void 0 === t.tags || Array.isArray(t.tags)) + } + }(_n || (_n = {})), + function(e) { + e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll" + }(wn || (wn = {})), + function(e) { + e.Invoked = 1, e.Automatic = 2 + }(En || (En = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + diagnostics: e + }; + return void 0 !== t && null !== t && (r.only = t), void 0 !== n && null !== n && (r.triggerKind = n), r + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.typedArray(t.diagnostics, Ut.is) && (void 0 === t.only || Wn.typedArray(t.only, Wn.string)) && (void 0 === t.triggerKind || t.triggerKind === En.Invoked || t.triggerKind === En.Automatic) + } + }(Tn || (Tn = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + title: e + }, + i = !0; + return "string" === typeof t ? (i = !1, r.kind = t) : jt.is(t) ? r.command = t : r.edit = t, i && void 0 !== n && (r.kind = n), r + }, e.is = function(e) { + var t = e; + return t && Wn.string(t.title) && (void 0 === t.diagnostics || Wn.typedArray(t.diagnostics, Ut.is)) && (void 0 === t.kind || Wn.string(t.kind)) && (void 0 !== t.edit || void 0 !== t.command) && (void 0 === t.command || jt.is(t.command)) && (void 0 === t.isPreferred || Wn.boolean(t.isPreferred)) && (void 0 === t.edit || Zt.is(t.edit)) + } + }(Sn || (Sn = {})), + function(e) { + e.create = function(e, t) { + var n = { + range: e + }; + return Wn.defined(t) && (n.data = t), n + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Nt.is(t.range) && (Wn.undefined(t.command) || jt.is(t.command)) + } + }(In || (In = {})), + function(e) { + e.create = function(e, t) { + return { + tabSize: e, + insertSpaces: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Wn.uinteger(t.tabSize) && Wn.boolean(t.insertSpaces) + } + }(Nn || (Nn = {})), + function(e) { + e.create = function(e, t, n) { + return { + range: e, + target: t, + data: n + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Nt.is(t.range) && (Wn.undefined(t.target) || Wn.string(t.target)) + } + }(An || (An = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + parent: t + } + }, e.is = function(t) { + var n = t; + return Wn.objectLiteral(n) && Nt.is(n.range) && (void 0 === n.parent || e.is(n.parent)) + } + }(On || (On = {})), + function(e) { + e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator" + }(Cn || (Cn = {})), + function(e) { + e.declaration = "declaration", e.definition = "definition", e.readonly = "readonly", e.static = "static", e.deprecated = "deprecated", e.abstract = "abstract", e.async = "async", e.modification = "modification", e.documentation = "documentation", e.defaultLibrary = "defaultLibrary" + }(Dn || (Dn = {})), + function(e) { + e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && (void 0 === t.resultId || "string" === typeof t.resultId) && Array.isArray(t.data) && (0 === t.data.length || "number" === typeof t.data[0]) + } + }(Rn || (Rn = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + text: t + } + }, e.is = function(e) { + var t = e; + return void 0 !== t && null !== t && Nt.is(t.range) && Wn.string(t.text) + } + }(Mn || (Mn = {})), + function(e) { + e.create = function(e, t, n) { + return { + range: e, + variableName: t, + caseSensitiveLookup: n + } + }, e.is = function(e) { + var t = e; + return void 0 !== t && null !== t && Nt.is(t.range) && Wn.boolean(t.caseSensitiveLookup) && (Wn.string(t.variableName) || void 0 === t.variableName) + } + }(Ln || (Ln = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + expression: t + } + }, e.is = function(e) { + var t = e; + return void 0 !== t && null !== t && Nt.is(t.range) && (Wn.string(t.expression) || void 0 === t.expression) + } + }(zn || (zn = {})), + function(e) { + e.create = function(e, t) { + return { + frameId: e, + stoppedLocation: t + } + }, e.is = function(e) { + var t = e; + return Wn.defined(t) && Nt.is(e.stoppedLocation) + } + }(Fn || (Fn = {})), + function(e) { + e.Type = 1, e.Parameter = 2, e.is = function(e) { + return 1 === e || 2 === e + } + }($n || ($n = {})), + function(e) { + e.create = function(e) { + return { + value: e + } + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && (void 0 === t.tooltip || Wn.string(t.tooltip) || nn.is(t.tooltip)) && (void 0 === t.location || At.is(t.location)) && (void 0 === t.command || jt.is(t.command)) + } + }(Pn || (Pn = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + position: e, + label: t + }; + return void 0 !== n && (r.kind = n), r + }, e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && It.is(t.position) && (Wn.string(t.label) || Wn.typedArray(t.label, Pn.is)) && (void 0 === t.kind || $n.is(t.kind)) && void 0 === t.textEdits || Wn.typedArray(t.textEdits, qt.is) && (void 0 === t.tooltip || Wn.string(t.tooltip) || nn.is(t.tooltip)) && (void 0 === t.paddingLeft || Wn.boolean(t.paddingLeft)) && (void 0 === t.paddingRight || Wn.boolean(t.paddingRight)) + } + }(Un || (Un = {})), + function(e) { + e.is = function(e) { + var t = e; + return Wn.objectLiteral(t) && Et.is(t.uri) && Wn.string(t.name) + } + }(jn || (jn = {})); + var Vn; + ! function(e) { + function t(e, n) { + if (e.length <= 1) return e; + var r = e.length / 2 | 0, + i = e.slice(0, r), + a = e.slice(r); + t(i, n), t(a, n); + for (var o = 0, s = 0, l = 0; o < i.length && s < a.length;) { + var c = n(i[o], a[s]); + e[l++] = c <= 0 ? i[o++] : a[s++] + } + for (; o < i.length;) e[l++] = i[o++]; + for (; s < a.length;) e[l++] = a[s++]; + return e + } + e.create = function(e, t, n, r) { + return new Gn(e, t, n, r) + }, e.is = function(e) { + var t = e; + return !!(Wn.defined(t) && Wn.string(t.uri) && (Wn.undefined(t.languageId) || Wn.string(t.languageId)) && Wn.uinteger(t.lineCount) && Wn.func(t.getText) && Wn.func(t.positionAt) && Wn.func(t.offsetAt)) + }, e.applyEdits = function(e, n) { + for (var r = e.getText(), i = t(n, (function(e, t) { + var n = e.range.start.line - t.range.start.line; + return 0 === n ? e.range.start.character - t.range.start.character : n + })), a = r.length, o = i.length - 1; o >= 0; o--) { + var s = i[o], + l = e.offsetAt(s.range.start), + c = e.offsetAt(s.range.end); + if (!(c <= a)) throw new Error("Overlapping edit"); + r = r.substring(0, l) + s.newText + r.substring(c, r.length), a = l + } + return r + } + }(Vn || (Vn = {})); + var Wn, Gn = function() { + function e(e, t, n, r) { + this._uri = e, this._languageId = t, this._version = n, this._content = r, this._lineOffsets = void 0 + } + return Object.defineProperty(e.prototype, "uri", { + get: function() { + return this._uri + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "languageId", { + get: function() { + return this._languageId + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "version", { + get: function() { + return this._version + }, + enumerable: !1, + configurable: !0 + }), e.prototype.getText = function(e) { + if (e) { + var t = this.offsetAt(e.start), + n = this.offsetAt(e.end); + return this._content.substring(t, n) + } + return this._content + }, e.prototype.update = function(e, t) { + this._content = e.text, this._version = t, this._lineOffsets = void 0 + }, e.prototype.getLineOffsets = function() { + if (void 0 === this._lineOffsets) { + for (var e = [], t = this._content, n = !0, r = 0; r < t.length; r++) { + n && (e.push(r), n = !1); + var i = t.charAt(r); + n = "\r" === i || "\n" === i, "\r" === i && r + 1 < t.length && "\n" === t.charAt(r + 1) && r++ + } + n && t.length > 0 && e.push(t.length), this._lineOffsets = e + } + return this._lineOffsets + }, e.prototype.positionAt = function(e) { + e = Math.max(Math.min(e, this._content.length), 0); + var t = this.getLineOffsets(), + n = 0, + r = t.length; + if (0 === r) return It.create(0, e); + for (; n < r;) { + var i = Math.floor((n + r) / 2); + t[i] > e ? r = i : n = i + 1 + } + var a = n - 1; + return It.create(a, e - t[a]) + }, e.prototype.offsetAt = function(e) { + var t = this.getLineOffsets(); + if (e.line >= t.length) return this._content.length; + if (e.line < 0) return 0; + var n = t[e.line], + r = e.line + 1 < t.length ? t[e.line + 1] : this._content.length; + return Math.max(Math.min(n + e.character, r), n) + }, Object.defineProperty(e.prototype, "lineCount", { + get: function() { + return this.getLineOffsets().length + }, + enumerable: !1, + configurable: !0 + }), e + }(); + + function Hn(e, t, n) { + return new T(`Syntax Error: ${n}`, { + source: e, + positions: [t] + }) + } + let Kn; + ! function(e) { + var t = Object.prototype.toString; + e.defined = function(e) { + return "undefined" !== typeof e + }, e.undefined = function(e) { + return "undefined" === typeof e + }, e.boolean = function(e) { + return !0 === e || !1 === e + }, e.string = function(e) { + return "[object String]" === t.call(e) + }, e.number = function(e) { + return "[object Number]" === t.call(e) + }, e.numberRange = function(e, n, r) { + return "[object Number]" === t.call(e) && n <= e && e <= r + }, e.integer = function(e) { + return "[object Number]" === t.call(e) && -2147483648 <= e && e <= 2147483647 + }, e.uinteger = function(e) { + return "[object Number]" === t.call(e) && 0 <= e && e <= 2147483647 + }, e.func = function(e) { + return "[object Function]" === t.call(e) + }, e.objectLiteral = function(e) { + return null !== e && "object" === typeof e + }, e.typedArray = function(e, t) { + return Array.isArray(e) && e.every(t) + } + }(Wn || (Wn = {})), + function(e) { + e.SOF = "", e.EOF = "", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment" + }(Kn || (Kn = {})); + class Yn { + constructor(e) { + const t = new P(Kn.SOF, 0, 0, 0, 0); + this.source = e, this.lastToken = t, this.token = t, this.line = 1, this.lineStart = 0 + } + get[Symbol.toStringTag]() { + return "Lexer" + } + advance() { + this.lastToken = this.token; + return this.token = this.lookahead() + } + lookahead() { + let e = this.token; + if (e.kind !== Kn.EOF) + do { + if (e.next) e = e.next; + else { + const t = nr(this, e.end); + e.next = t, t.prev = e, e = t + } + } while (e.kind === Kn.COMMENT); + return e + } + } + + function Zn(e) { + return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111 + } + + function Xn(e, t) { + return Qn(e.charCodeAt(t)) && Jn(e.charCodeAt(t + 1)) + } + + function Qn(e) { + return e >= 55296 && e <= 56319 + } + + function Jn(e) { + return e >= 56320 && e <= 57343 + } + + function er(e, t) { + const n = e.source.body.codePointAt(t); + if (void 0 === n) return Kn.EOF; + if (n >= 32 && n <= 126) { + const e = String.fromCodePoint(n); + return '"' === e ? "'\"'" : `"${e}"` + } + return "U+" + n.toString(16).toUpperCase().padStart(4, "0") + } + + function tr(e, t, n, r, i) { + const a = e.line, + o = 1 + n - e.lineStart; + return new P(t, n, r, a, o, i) + } + + function nr(e, t) { + const n = e.source.body, + r = n.length; + let i = t; + for (; i < r;) { + const t = n.charCodeAt(i); + switch (t) { + case 65279: + case 9: + case 32: + case 44: + ++i; + continue; + case 10: + ++i, ++e.line, e.lineStart = i; + continue; + case 13: + 10 === n.charCodeAt(i + 1) ? i += 2 : ++i, ++e.line, e.lineStart = i; + continue; + case 35: + return rr(e, i); + case 33: + return tr(e, Kn.BANG, i, i + 1); + case 36: + return tr(e, Kn.DOLLAR, i, i + 1); + case 38: + return tr(e, Kn.AMP, i, i + 1); + case 40: + return tr(e, Kn.PAREN_L, i, i + 1); + case 41: + return tr(e, Kn.PAREN_R, i, i + 1); + case 46: + if (46 === n.charCodeAt(i + 1) && 46 === n.charCodeAt(i + 2)) return tr(e, Kn.SPREAD, i, i + 3); + break; + case 58: + return tr(e, Kn.COLON, i, i + 1); + case 61: + return tr(e, Kn.EQUALS, i, i + 1); + case 64: + return tr(e, Kn.AT, i, i + 1); + case 91: + return tr(e, Kn.BRACKET_L, i, i + 1); + case 93: + return tr(e, Kn.BRACKET_R, i, i + 1); + case 123: + return tr(e, Kn.BRACE_L, i, i + 1); + case 124: + return tr(e, Kn.PIPE, i, i + 1); + case 125: + return tr(e, Kn.BRACE_R, i, i + 1); + case 34: + return 34 === n.charCodeAt(i + 1) && 34 === n.charCodeAt(i + 2) ? pr(e, i) : or(e, i) + } + if (A(t) || 45 === t) return ir(e, i, t); + if (C(t)) return fr(e, i); + throw Hn(e.source, i, 39 === t ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" : Zn(t) || Xn(n, i) ? `Unexpected character: ${er(e,i)}.` : `Invalid character: ${er(e,i)}.`) + } + return tr(e, Kn.EOF, r, r) + } + + function rr(e, t) { + const n = e.source.body, + r = n.length; + let i = t + 1; + for (; i < r;) { + const e = n.charCodeAt(i); + if (10 === e || 13 === e) break; + if (Zn(e)) ++i; + else { + if (!Xn(n, i)) break; + i += 2 + } + } + return tr(e, Kn.COMMENT, t, i, n.slice(t + 1, i)) + } + + function ir(e, t, n) { + const r = e.source.body; + let i = t, + a = n, + o = !1; + if (45 === a && (a = r.charCodeAt(++i)), 48 === a) { + if (a = r.charCodeAt(++i), A(a)) throw Hn(e.source, i, `Invalid number, unexpected digit after 0: ${er(e,i)}.`) + } else i = ar(e, i, a), a = r.charCodeAt(i); + if (46 === a && (o = !0, a = r.charCodeAt(++i), i = ar(e, i, a), a = r.charCodeAt(i)), 69 !== a && 101 !== a || (o = !0, a = r.charCodeAt(++i), 43 !== a && 45 !== a || (a = r.charCodeAt(++i)), i = ar(e, i, a), a = r.charCodeAt(i)), 46 === a || C(a)) throw Hn(e.source, i, `Invalid number, expected digit but got: ${er(e,i)}.`); + return tr(e, o ? Kn.FLOAT : Kn.INT, t, i, r.slice(t, i)) + } + + function ar(e, t, n) { + if (!A(n)) throw Hn(e.source, t, `Invalid number, expected digit but got: ${er(e,t)}.`); + const r = e.source.body; + let i = t + 1; + for (; A(r.charCodeAt(i));) ++i; + return i + } + + function or(e, t) { + const n = e.source.body, + r = n.length; + let i = t + 1, + a = i, + o = ""; + for (; i < r;) { + const r = n.charCodeAt(i); + if (34 === r) return o += n.slice(a, i), tr(e, Kn.STRING, t, i + 1, o); + if (92 !== r) { + if (10 === r || 13 === r) break; + if (Zn(r)) ++i; + else { + if (!Xn(n, i)) throw Hn(e.source, i, `Invalid character within String: ${er(e,i)}.`); + i += 2 + } + } else { + o += n.slice(a, i); + const t = 117 === n.charCodeAt(i + 1) ? 123 === n.charCodeAt(i + 2) ? sr(e, i) : lr(e, i) : dr(e, i); + o += t.value, i += t.size, a = i + } + } + throw Hn(e.source, i, "Unterminated string.") + } + + function sr(e, t) { + const n = e.source.body; + let r = 0, + i = 3; + for (; i < 12;) { + const e = n.charCodeAt(t + i++); + if (125 === e) { + if (i < 5 || !Zn(r)) break; + return { + value: String.fromCodePoint(r), + size: i + } + } + if (r = r << 4 | ur(e), r < 0) break + } + throw Hn(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`) + } + + function lr(e, t) { + const n = e.source.body, + r = cr(n, t + 2); + if (Zn(r)) return { + value: String.fromCodePoint(r), + size: 6 + }; + if (Qn(r) && 92 === n.charCodeAt(t + 6) && 117 === n.charCodeAt(t + 7)) { + const e = cr(n, t + 8); + if (Jn(e)) return { + value: String.fromCodePoint(r, e), + size: 12 + } + } + throw Hn(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`) + } + + function cr(e, t) { + return ur(e.charCodeAt(t)) << 12 | ur(e.charCodeAt(t + 1)) << 8 | ur(e.charCodeAt(t + 2)) << 4 | ur(e.charCodeAt(t + 3)) + } + + function ur(e) { + return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1 + } + + function dr(e, t) { + const n = e.source.body; + switch (n.charCodeAt(t + 1)) { + case 34: + return { + value: '"', + size: 2 + }; + case 92: + return { + value: "\\", + size: 2 + }; + case 47: + return { + value: "/", + size: 2 + }; + case 98: + return { + value: "\b", + size: 2 + }; + case 102: + return { + value: "\f", + size: 2 + }; + case 110: + return { + value: "\n", + size: 2 + }; + case 114: + return { + value: "\r", + size: 2 + }; + case 116: + return { + value: "\t", + size: 2 + } + } + throw Hn(e.source, t, `Invalid character escape sequence: "${n.slice(t,t+2)}".`) + } + + function pr(e, t) { + const n = e.source.body, + r = n.length; + let i = e.lineStart, + a = t + 3, + o = a, + s = ""; + const l = []; + for (; a < r;) { + const r = n.charCodeAt(a); + if (34 === r && 34 === n.charCodeAt(a + 1) && 34 === n.charCodeAt(a + 2)) { + s += n.slice(o, a), l.push(s); + const r = tr(e, Kn.BLOCK_STRING, t, a + 3, R(l).join("\n")); + return e.line += l.length - 1, e.lineStart = i, r + } + if (92 !== r || 34 !== n.charCodeAt(a + 1) || 34 !== n.charCodeAt(a + 2) || 34 !== n.charCodeAt(a + 3)) + if (10 !== r && 13 !== r) + if (Zn(r)) ++a; + else { + if (!Xn(n, a)) throw Hn(e.source, a, `Invalid character within String: ${er(e,a)}.`); + a += 2 + } + else s += n.slice(o, a), l.push(s), 13 === r && 10 === n.charCodeAt(a + 1) ? a += 2 : ++a, s = "", o = a, i = a; + else s += n.slice(o, a), o = a + 1, a += 4 + } + throw Hn(e.source, a, "Unterminated string.") + } + + function fr(e, t) { + const n = e.source.body, + r = n.length; + let i = t + 1; + for (; i < r;) { + if (!D(n.charCodeAt(i))) break; + ++i + } + return tr(e, Kn.NAME, t, i, n.slice(t, i)) + } + class mr { + constructor(e, t = "GraphQL request", n = { + line: 1, + column: 1 + }) { + "string" === typeof e || r(!1, `Body must be a string. Received: ${o(e)}.`), this.body = e, this.name = t, this.locationOffset = n, this.locationOffset.line > 0 || r(!1, "line in locationOffset is 1-indexed and must be positive."), this.locationOffset.column > 0 || r(!1, "column in locationOffset is 1-indexed and must be positive.") + } + get[Symbol.toStringTag]() { + return "Source" + } + } + + function hr(e, t) { + return new gr(e, t).parseDocument() + } + class gr { + constructor(e, t) { + const n = function(e) { + return l(e, mr) + }(e) ? e : new mr(e); + this._lexer = new Yn(n), this._options = t + } + parseName() { + const e = this.expectToken(Kn.NAME); + return this.node(e, { + kind: I.NAME, + value: e.value + }) + } + parseDocument() { + return this.node(this._lexer.token, { + kind: I.DOCUMENT, + definitions: this.many(Kn.SOF, this.parseDefinition, Kn.EOF) + }) + } + parseDefinition() { + if (this.peek(Kn.BRACE_L)) return this.parseOperationDefinition(); + const e = this.peekDescription(), + t = e ? this._lexer.lookahead() : this._lexer.token; + if (t.kind === Kn.NAME) { + switch (t.value) { + case "schema": + return this.parseSchemaDefinition(); + case "scalar": + return this.parseScalarTypeDefinition(); + case "type": + return this.parseObjectTypeDefinition(); + case "interface": + return this.parseInterfaceTypeDefinition(); + case "union": + return this.parseUnionTypeDefinition(); + case "enum": + return this.parseEnumTypeDefinition(); + case "input": + return this.parseInputObjectTypeDefinition(); + case "directive": + return this.parseDirectiveDefinition() + } + if (e) throw Hn(this._lexer.source, this._lexer.token.start, "Unexpected description, descriptions are supported only on type definitions."); + switch (t.value) { + case "query": + case "mutation": + case "subscription": + return this.parseOperationDefinition(); + case "fragment": + return this.parseFragmentDefinition(); + case "extend": + return this.parseTypeSystemExtension() + } + } + throw this.unexpected(t) + } + parseOperationDefinition() { + const e = this._lexer.token; + if (this.peek(Kn.BRACE_L)) return this.node(e, { + kind: I.OPERATION_DEFINITION, + operation: B.QUERY, + name: void 0, + variableDefinitions: [], + directives: [], + selectionSet: this.parseSelectionSet() + }); + const t = this.parseOperationType(); + let n; + return this.peek(Kn.NAME) && (n = this.parseName()), this.node(e, { + kind: I.OPERATION_DEFINITION, + operation: t, + name: n, + variableDefinitions: this.parseVariableDefinitions(), + directives: this.parseDirectives(!1), + selectionSet: this.parseSelectionSet() + }) + } + parseOperationType() { + const e = this.expectToken(Kn.NAME); + switch (e.value) { + case "query": + return B.QUERY; + case "mutation": + return B.MUTATION; + case "subscription": + return B.SUBSCRIPTION + } + throw this.unexpected(e) + } + parseVariableDefinitions() { + return this.optionalMany(Kn.PAREN_L, this.parseVariableDefinition, Kn.PAREN_R) + } + parseVariableDefinition() { + return this.node(this._lexer.token, { + kind: I.VARIABLE_DEFINITION, + variable: this.parseVariable(), + type: (this.expectToken(Kn.COLON), this.parseTypeReference()), + defaultValue: this.expectOptionalToken(Kn.EQUALS) ? this.parseConstValueLiteral() : void 0, + directives: this.parseConstDirectives() + }) + } + parseVariable() { + const e = this._lexer.token; + return this.expectToken(Kn.DOLLAR), this.node(e, { + kind: I.VARIABLE, + name: this.parseName() + }) + } + parseSelectionSet() { + return this.node(this._lexer.token, { + kind: I.SELECTION_SET, + selections: this.many(Kn.BRACE_L, this.parseSelection, Kn.BRACE_R) + }) + } + parseSelection() { + return this.peek(Kn.SPREAD) ? this.parseFragment() : this.parseField() + } + parseField() { + const e = this._lexer.token, + t = this.parseName(); + let n, r; + return this.expectOptionalToken(Kn.COLON) ? (n = t, r = this.parseName()) : r = t, this.node(e, { + kind: I.FIELD, + alias: n, + name: r, + arguments: this.parseArguments(!1), + directives: this.parseDirectives(!1), + selectionSet: this.peek(Kn.BRACE_L) ? this.parseSelectionSet() : void 0 + }) + } + parseArguments(e) { + const t = e ? this.parseConstArgument : this.parseArgument; + return this.optionalMany(Kn.PAREN_L, t, Kn.PAREN_R) + } + parseArgument(e = !1) { + const t = this._lexer.token, + n = this.parseName(); + return this.expectToken(Kn.COLON), this.node(t, { + kind: I.ARGUMENT, + name: n, + value: this.parseValueLiteral(e) + }) + } + parseConstArgument() { + return this.parseArgument(!0) + } + parseFragment() { + const e = this._lexer.token; + this.expectToken(Kn.SPREAD); + const t = this.expectOptionalKeyword("on"); + return !t && this.peek(Kn.NAME) ? this.node(e, { + kind: I.FRAGMENT_SPREAD, + name: this.parseFragmentName(), + directives: this.parseDirectives(!1) + }) : this.node(e, { + kind: I.INLINE_FRAGMENT, + typeCondition: t ? this.parseNamedType() : void 0, + directives: this.parseDirectives(!1), + selectionSet: this.parseSelectionSet() + }) + } + parseFragmentDefinition() { + var e; + const t = this._lexer.token; + return this.expectKeyword("fragment"), !0 === (null === (e = this._options) || void 0 === e ? void 0 : e.allowLegacyFragmentVariables) ? this.node(t, { + kind: I.FRAGMENT_DEFINITION, + name: this.parseFragmentName(), + variableDefinitions: this.parseVariableDefinitions(), + typeCondition: (this.expectKeyword("on"), this.parseNamedType()), + directives: this.parseDirectives(!1), + selectionSet: this.parseSelectionSet() + }) : this.node(t, { + kind: I.FRAGMENT_DEFINITION, + name: this.parseFragmentName(), + typeCondition: (this.expectKeyword("on"), this.parseNamedType()), + directives: this.parseDirectives(!1), + selectionSet: this.parseSelectionSet() + }) + } + parseFragmentName() { + if ("on" === this._lexer.token.value) throw this.unexpected(); + return this.parseName() + } + parseValueLiteral(e) { + const t = this._lexer.token; + switch (t.kind) { + case Kn.BRACKET_L: + return this.parseList(e); + case Kn.BRACE_L: + return this.parseObject(e); + case Kn.INT: + return this._lexer.advance(), this.node(t, { + kind: I.INT, + value: t.value + }); + case Kn.FLOAT: + return this._lexer.advance(), this.node(t, { + kind: I.FLOAT, + value: t.value + }); + case Kn.STRING: + case Kn.BLOCK_STRING: + return this.parseStringLiteral(); + case Kn.NAME: + switch (this._lexer.advance(), t.value) { + case "true": + return this.node(t, { + kind: I.BOOLEAN, + value: !0 + }); + case "false": + return this.node(t, { + kind: I.BOOLEAN, + value: !1 + }); + case "null": + return this.node(t, { + kind: I.NULL + }); + default: + return this.node(t, { + kind: I.ENUM, + value: t.value + }) + } + case Kn.DOLLAR: + if (e) { + if (this.expectToken(Kn.DOLLAR), this._lexer.token.kind === Kn.NAME) { + const e = this._lexer.token.value; + throw Hn(this._lexer.source, t.start, `Unexpected variable "$${e}" in constant value.`) + } + throw this.unexpected(t) + } + return this.parseVariable(); + default: + throw this.unexpected() + } + } + parseConstValueLiteral() { + return this.parseValueLiteral(!0) + } + parseStringLiteral() { + const e = this._lexer.token; + return this._lexer.advance(), this.node(e, { + kind: I.STRING, + value: e.value, + block: e.kind === Kn.BLOCK_STRING + }) + } + parseList(e) { + return this.node(this._lexer.token, { + kind: I.LIST, + values: this.any(Kn.BRACKET_L, (() => this.parseValueLiteral(e)), Kn.BRACKET_R) + }) + } + parseObject(e) { + return this.node(this._lexer.token, { + kind: I.OBJECT, + fields: this.any(Kn.BRACE_L, (() => this.parseObjectField(e)), Kn.BRACE_R) + }) + } + parseObjectField(e) { + const t = this._lexer.token, + n = this.parseName(); + return this.expectToken(Kn.COLON), this.node(t, { + kind: I.OBJECT_FIELD, + name: n, + value: this.parseValueLiteral(e) + }) + } + parseDirectives(e) { + const t = []; + for (; this.peek(Kn.AT);) t.push(this.parseDirective(e)); + return t + } + parseConstDirectives() { + return this.parseDirectives(!0) + } + parseDirective(e) { + const t = this._lexer.token; + return this.expectToken(Kn.AT), this.node(t, { + kind: I.DIRECTIVE, + name: this.parseName(), + arguments: this.parseArguments(e) + }) + } + parseTypeReference() { + const e = this._lexer.token; + let t; + if (this.expectOptionalToken(Kn.BRACKET_L)) { + const n = this.parseTypeReference(); + this.expectToken(Kn.BRACKET_R), t = this.node(e, { + kind: I.LIST_TYPE, + type: n + }) + } else t = this.parseNamedType(); + return this.expectOptionalToken(Kn.BANG) ? this.node(e, { + kind: I.NON_NULL_TYPE, + type: t + }) : t + } + parseNamedType() { + return this.node(this._lexer.token, { + kind: I.NAMED_TYPE, + name: this.parseName() + }) + } + peekDescription() { + return this.peek(Kn.STRING) || this.peek(Kn.BLOCK_STRING) + } + parseDescription() { + if (this.peekDescription()) return this.parseStringLiteral() + } + parseSchemaDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("schema"); + const n = this.parseConstDirectives(), + r = this.many(Kn.BRACE_L, this.parseOperationTypeDefinition, Kn.BRACE_R); + return this.node(e, { + kind: I.SCHEMA_DEFINITION, + description: t, + directives: n, + operationTypes: r + }) + } + parseOperationTypeDefinition() { + const e = this._lexer.token, + t = this.parseOperationType(); + this.expectToken(Kn.COLON); + const n = this.parseNamedType(); + return this.node(e, { + kind: I.OPERATION_TYPE_DEFINITION, + operation: t, + type: n + }) + } + parseScalarTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("scalar"); + const n = this.parseName(), + r = this.parseConstDirectives(); + return this.node(e, { + kind: I.SCALAR_TYPE_DEFINITION, + description: t, + name: n, + directives: r + }) + } + parseObjectTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("type"); + const n = this.parseName(), + r = this.parseImplementsInterfaces(), + i = this.parseConstDirectives(), + a = this.parseFieldsDefinition(); + return this.node(e, { + kind: I.OBJECT_TYPE_DEFINITION, + description: t, + name: n, + interfaces: r, + directives: i, + fields: a + }) + } + parseImplementsInterfaces() { + return this.expectOptionalKeyword("implements") ? this.delimitedMany(Kn.AMP, this.parseNamedType) : [] + } + parseFieldsDefinition() { + return this.optionalMany(Kn.BRACE_L, this.parseFieldDefinition, Kn.BRACE_R) + } + parseFieldDefinition() { + const e = this._lexer.token, + t = this.parseDescription(), + n = this.parseName(), + r = this.parseArgumentDefs(); + this.expectToken(Kn.COLON); + const i = this.parseTypeReference(), + a = this.parseConstDirectives(); + return this.node(e, { + kind: I.FIELD_DEFINITION, + description: t, + name: n, + arguments: r, + type: i, + directives: a + }) + } + parseArgumentDefs() { + return this.optionalMany(Kn.PAREN_L, this.parseInputValueDef, Kn.PAREN_R) + } + parseInputValueDef() { + const e = this._lexer.token, + t = this.parseDescription(), + n = this.parseName(); + this.expectToken(Kn.COLON); + const r = this.parseTypeReference(); + let i; + this.expectOptionalToken(Kn.EQUALS) && (i = this.parseConstValueLiteral()); + const a = this.parseConstDirectives(); + return this.node(e, { + kind: I.INPUT_VALUE_DEFINITION, + description: t, + name: n, + type: r, + defaultValue: i, + directives: a + }) + } + parseInterfaceTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("interface"); + const n = this.parseName(), + r = this.parseImplementsInterfaces(), + i = this.parseConstDirectives(), + a = this.parseFieldsDefinition(); + return this.node(e, { + kind: I.INTERFACE_TYPE_DEFINITION, + description: t, + name: n, + interfaces: r, + directives: i, + fields: a + }) + } + parseUnionTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("union"); + const n = this.parseName(), + r = this.parseConstDirectives(), + i = this.parseUnionMemberTypes(); + return this.node(e, { + kind: I.UNION_TYPE_DEFINITION, + description: t, + name: n, + directives: r, + types: i + }) + } + parseUnionMemberTypes() { + return this.expectOptionalToken(Kn.EQUALS) ? this.delimitedMany(Kn.PIPE, this.parseNamedType) : [] + } + parseEnumTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("enum"); + const n = this.parseName(), + r = this.parseConstDirectives(), + i = this.parseEnumValuesDefinition(); + return this.node(e, { + kind: I.ENUM_TYPE_DEFINITION, + description: t, + name: n, + directives: r, + values: i + }) + } + parseEnumValuesDefinition() { + return this.optionalMany(Kn.BRACE_L, this.parseEnumValueDefinition, Kn.BRACE_R) + } + parseEnumValueDefinition() { + const e = this._lexer.token, + t = this.parseDescription(), + n = this.parseEnumValueName(), + r = this.parseConstDirectives(); + return this.node(e, { + kind: I.ENUM_VALUE_DEFINITION, + description: t, + name: n, + directives: r + }) + } + parseEnumValueName() { + if ("true" === this._lexer.token.value || "false" === this._lexer.token.value || "null" === this._lexer.token.value) throw Hn(this._lexer.source, this._lexer.token.start, `${br(this._lexer.token)} is reserved and cannot be used for an enum value.`); + return this.parseName() + } + parseInputObjectTypeDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("input"); + const n = this.parseName(), + r = this.parseConstDirectives(), + i = this.parseInputFieldsDefinition(); + return this.node(e, { + kind: I.INPUT_OBJECT_TYPE_DEFINITION, + description: t, + name: n, + directives: r, + fields: i + }) + } + parseInputFieldsDefinition() { + return this.optionalMany(Kn.BRACE_L, this.parseInputValueDef, Kn.BRACE_R) + } + parseTypeSystemExtension() { + const e = this._lexer.lookahead(); + if (e.kind === Kn.NAME) switch (e.value) { + case "schema": + return this.parseSchemaExtension(); + case "scalar": + return this.parseScalarTypeExtension(); + case "type": + return this.parseObjectTypeExtension(); + case "interface": + return this.parseInterfaceTypeExtension(); + case "union": + return this.parseUnionTypeExtension(); + case "enum": + return this.parseEnumTypeExtension(); + case "input": + return this.parseInputObjectTypeExtension() + } + throw this.unexpected(e) + } + parseSchemaExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("schema"); + const t = this.parseConstDirectives(), + n = this.optionalMany(Kn.BRACE_L, this.parseOperationTypeDefinition, Kn.BRACE_R); + if (0 === t.length && 0 === n.length) throw this.unexpected(); + return this.node(e, { + kind: I.SCHEMA_EXTENSION, + directives: t, + operationTypes: n + }) + } + parseScalarTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("scalar"); + const t = this.parseName(), + n = this.parseConstDirectives(); + if (0 === n.length) throw this.unexpected(); + return this.node(e, { + kind: I.SCALAR_TYPE_EXTENSION, + name: t, + directives: n + }) + } + parseObjectTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("type"); + const t = this.parseName(), + n = this.parseImplementsInterfaces(), + r = this.parseConstDirectives(), + i = this.parseFieldsDefinition(); + if (0 === n.length && 0 === r.length && 0 === i.length) throw this.unexpected(); + return this.node(e, { + kind: I.OBJECT_TYPE_EXTENSION, + name: t, + interfaces: n, + directives: r, + fields: i + }) + } + parseInterfaceTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("interface"); + const t = this.parseName(), + n = this.parseImplementsInterfaces(), + r = this.parseConstDirectives(), + i = this.parseFieldsDefinition(); + if (0 === n.length && 0 === r.length && 0 === i.length) throw this.unexpected(); + return this.node(e, { + kind: I.INTERFACE_TYPE_EXTENSION, + name: t, + interfaces: n, + directives: r, + fields: i + }) + } + parseUnionTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("union"); + const t = this.parseName(), + n = this.parseConstDirectives(), + r = this.parseUnionMemberTypes(); + if (0 === n.length && 0 === r.length) throw this.unexpected(); + return this.node(e, { + kind: I.UNION_TYPE_EXTENSION, + name: t, + directives: n, + types: r + }) + } + parseEnumTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("enum"); + const t = this.parseName(), + n = this.parseConstDirectives(), + r = this.parseEnumValuesDefinition(); + if (0 === n.length && 0 === r.length) throw this.unexpected(); + return this.node(e, { + kind: I.ENUM_TYPE_EXTENSION, + name: t, + directives: n, + values: r + }) + } + parseInputObjectTypeExtension() { + const e = this._lexer.token; + this.expectKeyword("extend"), this.expectKeyword("input"); + const t = this.parseName(), + n = this.parseConstDirectives(), + r = this.parseInputFieldsDefinition(); + if (0 === n.length && 0 === r.length) throw this.unexpected(); + return this.node(e, { + kind: I.INPUT_OBJECT_TYPE_EXTENSION, + name: t, + directives: n, + fields: r + }) + } + parseDirectiveDefinition() { + const e = this._lexer.token, + t = this.parseDescription(); + this.expectKeyword("directive"), this.expectToken(Kn.AT); + const n = this.parseName(), + r = this.parseArgumentDefs(), + i = this.expectOptionalKeyword("repeatable"); + this.expectKeyword("on"); + const a = this.parseDirectiveLocations(); + return this.node(e, { + kind: I.DIRECTIVE_DEFINITION, + description: t, + name: n, + arguments: r, + repeatable: i, + locations: a + }) + } + parseDirectiveLocations() { + return this.delimitedMany(Kn.PIPE, this.parseDirectiveLocation) + } + parseDirectiveLocation() { + const e = this._lexer.token, + t = this.parseName(); + if (Object.prototype.hasOwnProperty.call(Be, t.value)) return t; + throw this.unexpected(e) + } + node(e, t) { + var n; + return !0 !== (null === (n = this._options) || void 0 === n ? void 0 : n.noLocation) && (t.loc = new $(e, this._lexer.lastToken, this._lexer.source)), t + } + peek(e) { + return this._lexer.token.kind === e + } + expectToken(e) { + const t = this._lexer.token; + if (t.kind === e) return this._lexer.advance(), t; + throw Hn(this._lexer.source, t.start, `Expected ${vr(e)}, found ${br(t)}.`) + } + expectOptionalToken(e) { + return this._lexer.token.kind === e && (this._lexer.advance(), !0) + } + expectKeyword(e) { + const t = this._lexer.token; + if (t.kind !== Kn.NAME || t.value !== e) throw Hn(this._lexer.source, t.start, `Expected "${e}", found ${br(t)}.`); + this._lexer.advance() + } + expectOptionalKeyword(e) { + const t = this._lexer.token; + return t.kind === Kn.NAME && t.value === e && (this._lexer.advance(), !0) + } + unexpected(e) { + const t = null !== e && void 0 !== e ? e : this._lexer.token; + return Hn(this._lexer.source, t.start, `Unexpected ${br(t)}.`) + } + any(e, t, n) { + this.expectToken(e); + const r = []; + for (; !this.expectOptionalToken(n);) r.push(t.call(this)); + return r + } + optionalMany(e, t, n) { + if (this.expectOptionalToken(e)) { + const e = []; + do { + e.push(t.call(this)) + } while (!this.expectOptionalToken(n)); + return e + } + return [] + } + many(e, t, n) { + this.expectToken(e); + const r = []; + do { + r.push(t.call(this)) + } while (!this.expectOptionalToken(n)); + return r + } + delimitedMany(e, t) { + this.expectOptionalToken(e); + const n = []; + do { + n.push(t.call(this)) + } while (this.expectOptionalToken(e)); + return n + } + } + + function br(e) { + const t = e.value; + return vr(e.kind) + (null != t ? ` "${t}"` : "") + } + + function vr(e) { + return function(e) { + return e === Kn.BANG || e === Kn.DOLLAR || e === Kn.AMP || e === Kn.PAREN_L || e === Kn.PAREN_R || e === Kn.SPREAD || e === Kn.COLON || e === Kn.EQUALS || e === Kn.AT || e === Kn.BRACKET_L || e === Kn.BRACKET_R || e === Kn.BRACE_L || e === Kn.PIPE || e === Kn.BRACE_R + }(e) ? `"${e}"` : e + } + + function yr(e, t) { + return e === t || (de(e) && de(t) || !(!ue(e) || !ue(t))) && yr(e.ofType, t.ofType) + } + + function kr(e, t, n) { + return t === n || (de(n) ? !!de(t) && kr(e, t.ofType, n.ofType) : de(t) ? kr(e, t.ofType, n) : ue(n) ? !!ue(t) && kr(e, t.ofType, n.ofType) : !ue(t) && (ge(n) && (oe(t) || ae(t)) && e.isSubType(n, t))) + } + + function xr(e, t, n) { + return t === n || (ge(t) ? ge(n) ? e.getPossibleTypes(t).some((t => e.isSubType(n, t))) : e.isSubType(t, n) : !!ge(n) && e.isSubType(n, t)) + } + class _r { + constructor(e) { + this.getStartOfToken = () => this._start, this.getCurrentPosition = () => this._pos, this.eol = () => this._sourceText.length === this._pos, this.sol = () => 0 === this._pos, this.peek = () => this._sourceText.charAt(this._pos) ? this._sourceText.charAt(this._pos) : null, this.next = () => { + const e = this._sourceText.charAt(this._pos); + return this._pos++, e + }, this.eat = e => { + if (this._testNextCharacter(e)) return this._start = this._pos, this._pos++, this._sourceText.charAt(this._pos - 1) + }, this.eatWhile = e => { + let t = this._testNextCharacter(e), + n = !1; + for (t && (n = t, this._start = this._pos); t;) this._pos++, t = this._testNextCharacter(e), n = !0; + return n + }, this.eatSpace = () => this.eatWhile(/[\s\u00a0]/), this.skipToEnd = () => { + this._pos = this._sourceText.length + }, this.skipTo = e => { + this._pos = e + }, this.match = (e, t = !0, n = !1) => { + let r = null, + i = null; + if ("string" === typeof e) { + i = new RegExp(e, n ? "i" : "g").test(this._sourceText.substr(this._pos, e.length)), r = e + } else e instanceof RegExp && (i = this._sourceText.slice(this._pos).match(e), r = i && i[0]); + return !(null == i || !("string" === typeof e || i instanceof Array && this._sourceText.startsWith(i[0], this._pos))) && (t && (this._start = this._pos, r && r.length && (this._pos += r.length)), i) + }, this.backUp = e => { + this._pos -= e + }, this.column = () => this._pos, this.indentation = () => { + const e = this._sourceText.match(/\s*/); + let t = 0; + if (e && 0 !== e.length) { + const n = e[0]; + let r = 0; + for (; n.length > r;) 9 === n.charCodeAt(r) ? t += 2 : t++, r++ + } + return t + }, this.current = () => this._sourceText.slice(this._start, this._pos), this._start = 0, this._pos = 0, this._sourceText = e + } + _testNextCharacter(e) { + const t = this._sourceText.charAt(this._pos); + let n = !1; + return n = "string" === typeof e ? t === e : e instanceof RegExp ? e.test(t) : e(t), n + } + } + + function wr(e) { + return { + ofRule: e + } + } + + function Er(e, t) { + return { + ofRule: e, + isList: !0, + separator: t + } + } + + function Tr(e, t) { + return { + style: t, + match: t => t.kind === e + } + } + + function Sr(e, t) { + return { + style: t || "punctuation", + match: t => "Punctuation" === t.kind && t.value === e + } + } + const Ir = e => " " === e || "\t" === e || "," === e || "\n" === e || "\r" === e || "\ufeff" === e || "\xa0" === e, + Nr = { + Name: /^[_A-Za-z][_0-9A-Za-z]*/, + Punctuation: /^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/, + Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/, + String: /^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/, + Comment: /^#.*/ + }, + Ar = { + Document: [Er("Definition")], + Definition(e) { + switch (e.value) { + case "{": + return "ShortQuery"; + case "query": + return "Query"; + case "mutation": + return "Mutation"; + case "subscription": + return "Subscription"; + case "fragment": + return I.FRAGMENT_DEFINITION; + case "schema": + return "SchemaDef"; + case "scalar": + return "ScalarDef"; + case "type": + return "ObjectTypeDef"; + case "interface": + return "InterfaceDef"; + case "union": + return "UnionDef"; + case "enum": + return "EnumDef"; + case "input": + return "InputDef"; + case "extend": + return "ExtendDef"; + case "directive": + return "DirectiveDef" + } + }, + ShortQuery: ["SelectionSet"], + Query: [Cr("query"), wr(Dr("def")), wr("VariableDefinitions"), Er("Directive"), "SelectionSet"], + Mutation: [Cr("mutation"), wr(Dr("def")), wr("VariableDefinitions"), Er("Directive"), "SelectionSet"], + Subscription: [Cr("subscription"), wr(Dr("def")), wr("VariableDefinitions"), Er("Directive"), "SelectionSet"], + VariableDefinitions: [Sr("("), Er("VariableDefinition"), Sr(")")], + VariableDefinition: ["Variable", Sr(":"), "Type", wr("DefaultValue")], + Variable: [Sr("$", "variable"), Dr("variable")], + DefaultValue: [Sr("="), "Value"], + SelectionSet: [Sr("{"), Er("Selection"), Sr("}")], + Selection: (e, t) => "..." === e.value ? t.match(/[\s\u00a0,]*(on\b|@|{)/, !1) ? "InlineFragment" : "FragmentSpread" : t.match(/[\s\u00a0,]*:/, !1) ? "AliasedField" : "Field", + AliasedField: [Dr("property"), Sr(":"), Dr("qualifier"), wr("Arguments"), Er("Directive"), wr("SelectionSet")], + Field: [Dr("property"), wr("Arguments"), Er("Directive"), wr("SelectionSet")], + Arguments: [Sr("("), Er("Argument"), Sr(")")], + Argument: [Dr("attribute"), Sr(":"), "Value"], + FragmentSpread: [Sr("..."), Dr("def"), Er("Directive")], + InlineFragment: [Sr("..."), wr("TypeCondition"), Er("Directive"), "SelectionSet"], + FragmentDefinition: [Cr("fragment"), wr(function(e, t) { + const n = e.match; + return e.match = e => { + let r = !1; + return n && (r = n(e)), r && t.every((t => t.match && !t.match(e))) + }, e + }(Dr("def"), [Cr("on")])), "TypeCondition", Er("Directive"), "SelectionSet"], + TypeCondition: [Cr("on"), "NamedType"], + Value(e) { + switch (e.kind) { + case "Number": + return "NumberValue"; + case "String": + return "StringValue"; + case "Punctuation": + switch (e.value) { + case "[": + return "ListValue"; + case "{": + return "ObjectValue"; + case "$": + return "Variable"; + case "&": + return "NamedType" + } + return null; + case "Name": + switch (e.value) { + case "true": + case "false": + return "BooleanValue" + } + return "null" === e.value ? "NullValue" : "EnumValue" + } + }, + NumberValue: [Tr("Number", "number")], + StringValue: [{ + style: "string", + match: e => "String" === e.kind, + update(e, t) { + t.value.startsWith('"""') && (e.inBlockstring = !t.value.slice(3).endsWith('"""')) + } + }], + BooleanValue: [Tr("Name", "builtin")], + NullValue: [Tr("Name", "keyword")], + EnumValue: [Dr("string-2")], + ListValue: [Sr("["), Er("Value"), Sr("]")], + ObjectValue: [Sr("{"), Er("ObjectField"), Sr("}")], + ObjectField: [Dr("attribute"), Sr(":"), "Value"], + Type: e => "[" === e.value ? "ListType" : "NonNullType", + ListType: [Sr("["), "Type", Sr("]"), wr(Sr("!"))], + NonNullType: ["NamedType", wr(Sr("!"))], + NamedType: [(Or = "atom", { + style: Or, + match: e => "Name" === e.kind, + update(e, t) { + e.prevState && e.prevState.prevState && (e.name = t.value, e.prevState.prevState.type = t.value) + } + })], + Directive: [Sr("@", "meta"), Dr("meta"), wr("Arguments")], + DirectiveDef: [Cr("directive"), Sr("@", "meta"), Dr("meta"), wr("ArgumentsDef"), Cr("on"), Er("DirectiveLocation", Sr("|"))], + InterfaceDef: [Cr("interface"), Dr("atom"), wr("Implements"), Er("Directive"), Sr("{"), Er("FieldDef"), Sr("}")], + Implements: [Cr("implements"), Er("NamedType", Sr("&"))], + DirectiveLocation: [Dr("string-2")], + SchemaDef: [Cr("schema"), Er("Directive"), Sr("{"), Er("OperationTypeDef"), Sr("}")], + OperationTypeDef: [Dr("keyword"), Sr(":"), Dr("atom")], + ScalarDef: [Cr("scalar"), Dr("atom"), Er("Directive")], + ObjectTypeDef: [Cr("type"), Dr("atom"), wr("Implements"), Er("Directive"), Sr("{"), Er("FieldDef"), Sr("}")], + FieldDef: [Dr("property"), wr("ArgumentsDef"), Sr(":"), "Type", Er("Directive")], + ArgumentsDef: [Sr("("), Er("InputValueDef"), Sr(")")], + InputValueDef: [Dr("attribute"), Sr(":"), "Type", wr("DefaultValue"), Er("Directive")], + UnionDef: [Cr("union"), Dr("atom"), Er("Directive"), Sr("="), Er("UnionMember", Sr("|"))], + UnionMember: ["NamedType"], + EnumDef: [Cr("enum"), Dr("atom"), Er("Directive"), Sr("{"), Er("EnumValueDef"), Sr("}")], + EnumValueDef: [Dr("string-2"), Er("Directive")], + InputDef: [Cr("input"), Dr("atom"), Er("Directive"), Sr("{"), Er("InputValueDef"), Sr("}")], + ExtendDef: [Cr("extend"), "ObjectTypeDef"] + }; + var Or; + + function Cr(e) { + return { + style: "keyword", + match: t => "Name" === t.kind && t.value === e + } + } + + function Dr(e) { + return { + style: e, + match: e => "Name" === e.kind, + update(e, t) { + e.name = t.value + } + } + } + + function Rr(e = { + eatWhitespace: e => e.eatWhile(Ir), + lexRules: Nr, + parseRules: Ar, + editorConfig: {} + }) { + return { + startState() { + const t = { + level: 0, + step: 0, + name: null, + kind: null, + type: null, + rule: null, + needsSeperator: !1, + prevState: null + }; + return zr(e.parseRules, t, I.DOCUMENT), t + }, + token: (t, n) => function(e, t, n) { + if (t.inBlockstring) return e.match(/.*"""/) ? (t.inBlockstring = !1, "string") : (e.skipToEnd(), "string"); + const { + lexRules: r, + parseRules: i, + eatWhitespace: a, + editorConfig: o + } = n; + t.rule && 0 === t.rule.length ? Fr(t) : t.needsAdvance && (t.needsAdvance = !1, $r(t, !0)); + if (e.sol()) { + const n = o && o.tabSize || 2; + t.indentLevel = Math.floor(e.indentation() / n) + } + if (a(e)) return "ws"; + const s = function(e, t) { + const n = Object.keys(e); + for (let r = 0; r < n.length; r++) { + const i = t.match(e[n[r]]); + if (i && i instanceof Array) return { + kind: n[r], + value: i[0] + } + } + }(r, e); + if (!s) { + return e.match(/\S+/) || e.match(/\s/), zr(Lr, t, "Invalid"), "invalidchar" + } + if ("Comment" === s.kind) return zr(Lr, t, "Comment"), "comment"; + const l = Mr({}, t); + if ("Punctuation" === s.kind) + if (/^[{([]/.test(s.value)) void 0 !== t.indentLevel && (t.levels = (t.levels || []).concat(t.indentLevel + 1)); + else if (/^[})\]]/.test(s.value)) { + const e = t.levels = (t.levels || []).slice(0, -1); + t.indentLevel && e.length > 0 && e[e.length - 1] < t.indentLevel && (t.indentLevel = e[e.length - 1]) + } + for (; t.rule;) { + let n = "function" === typeof t.rule ? 0 === t.step ? t.rule(s, e) : null : t.rule[t.step]; + if (t.needsSeperator && (n = n && (null === n || void 0 === n ? void 0 : n.separator)), n) { + if (n.ofRule && (n = n.ofRule), "string" === typeof n) { + zr(i, t, n); + continue + } + if (n.match && n.match(s)) return n.update && n.update(t, s), "Punctuation" === s.kind ? $r(t, !0) : t.needsAdvance = !0, n.style + } + Ur(t) + } + return Mr(t, l), zr(Lr, t, "Invalid"), "invalidchar" + }(t, n, e) + } + } + + function Mr(e, t) { + const n = Object.keys(t); + for (let r = 0; r < n.length; r++) e[n[r]] = t[n[r]]; + return e + } + const Lr = { + Invalid: [], + Comment: [] + }; + + function zr(e, t, n) { + if (!e[n]) throw new TypeError("Unknown rule: " + n); + t.prevState = Object.assign({}, t), t.kind = n, t.name = null, t.type = null, t.rule = e[n], t.step = 0, t.needsSeperator = !1 + } + + function Fr(e) { + e.prevState && (e.kind = e.prevState.kind, e.name = e.prevState.name, e.type = e.prevState.type, e.rule = e.prevState.rule, e.step = e.prevState.step, e.needsSeperator = e.prevState.needsSeperator, e.prevState = e.prevState.prevState) + } + + function $r(e, t) { + if (Pr(e) && e.rule) { + const n = e.rule[e.step]; + if (n.separator) { + const t = n.separator; + if (e.needsSeperator = !e.needsSeperator, !e.needsSeperator && t.ofRule) return + } + if (t) return + } + for (e.needsSeperator = !1, e.step++; e.rule && !(Array.isArray(e.rule) && e.step < e.rule.length);) Fr(e), e.rule && (Pr(e) ? e.rule && e.rule[e.step].separator && (e.needsSeperator = !e.needsSeperator) : (e.needsSeperator = !1, e.step++)) + } + + function Pr(e) { + const t = Array.isArray(e.rule) && "string" !== typeof e.rule[e.step] && e.rule[e.step]; + return t && t.isList + } + + function Ur(e) { + for (; e.rule && (!Array.isArray(e.rule) || !e.rule[e.step].ofRule);) Fr(e); + e.rule && $r(e, !1) + } + const jr = Object.assign(Object.assign({}, I), { + ALIASED_FIELD: "AliasedField", + ARGUMENTS: "Arguments", + SHORT_QUERY: "ShortQuery", + QUERY: "Query", + MUTATION: "Mutation", + SUBSCRIPTION: "Subscription", + TYPE_CONDITION: "TypeCondition", + INVALID: "Invalid", + COMMENT: "Comment", + SCHEMA_DEF: "SchemaDef", + SCALAR_DEF: "ScalarDef", + OBJECT_TYPE_DEF: "ObjectTypeDef", + OBJECT_VALUE: "ObjectValue", + LIST_VALUE: "ListValue", + INTERFACE_DEF: "InterfaceDef", + UNION_DEF: "UnionDef", + ENUM_DEF: "EnumDef", + ENUM_VALUE: "EnumValue", + FIELD_DEF: "FieldDef", + INPUT_DEF: "InputDef", + INPUT_VALUE_DEF: "InputValueDef", + ARGUMENTS_DEF: "ArgumentsDef", + EXTEND_DEF: "ExtendDef", + DIRECTIVE_DEF: "DirectiveDef", + IMPLEMENTS: "Implements", + VARIABLE_DEFINITIONS: "VariableDefinitions", + TYPE: "Type" + }), + qr = { + command: "editor.action.triggerSuggest", + title: "Suggestions" + }; + + function Br(e, t, n, r, i, a) { + var s; + const l = Object.assign(Object.assign({}, a), { + schema: e + }), + c = r || Hr(t, n), + u = "Invalid" === c.state.kind ? c.state.prevState : c.state; + if (!u) return []; + const d = u.kind, + p = u.step, + f = Zr(e, c.state); + if (d === jr.DOCUMENT) return yt(c, [{ + label: "query", + kind: rn.Function + }, { + label: "mutation", + kind: rn.Function + }, { + label: "subscription", + kind: rn.Function + }, { + label: "fragment", + kind: rn.Function + }, { + label: "{", + kind: rn.Constructor + }]); + if (d === jr.IMPLEMENTS || d === jr.NAMED_TYPE && (null === (s = u.prevState) || void 0 === s ? void 0 : s.kind) === jr.IMPLEMENTS) return function(e, t, n, r, i) { + if (t.needsSeperator) return []; + const a = vt(n.getTypeMap()).filter(oe), + o = a.map((({ + name: e + }) => e)), + s = new Set; + Kr(r, ((e, t) => { + var r, a, l, c, u; + if (t.name && (t.kind !== jr.INTERFACE_DEF || o.includes(t.name) || s.add(t.name), t.kind === jr.NAMED_TYPE && (null === (r = t.prevState) || void 0 === r ? void 0 : r.kind) === jr.IMPLEMENTS)) + if (i.interfaceDef) { + if (null === (a = i.interfaceDef) || void 0 === a ? void 0 : a.getInterfaces().find((({ + name: e + }) => e === t.name))) return; + const e = n.getType(t.name), + r = null === (l = i.interfaceDef) || void 0 === l ? void 0 : l.toConfig(); + i.interfaceDef = new Le(Object.assign(Object.assign({}, r), { + interfaces: [...r.interfaces, e || new Le({ + name: t.name, + fields: {} + })] + })) + } else if (i.objectTypeDef) { + if (null === (c = i.objectTypeDef) || void 0 === c ? void 0 : c.getInterfaces().find((({ + name: e + }) => e === t.name))) return; + const e = n.getType(t.name), + r = null === (u = i.objectTypeDef) || void 0 === u ? void 0 : u.toConfig(); + i.objectTypeDef = new Ie(Object.assign(Object.assign({}, r), { + interfaces: [...r.interfaces, e || new Le({ + name: t.name, + fields: {} + })] + })) + } + })); + const l = i.interfaceDef || i.objectTypeDef, + c = ((null === l || void 0 === l ? void 0 : l.getInterfaces()) || []).map((({ + name: e + }) => e)), + u = a.concat([...s].map((e => ({ + name: e + })))).filter((({ + name: e + }) => e !== (null === l || void 0 === l ? void 0 : l.name) && !c.includes(e))); + return yt(e, u.map((e => { + const t = { + label: e.name, + kind: rn.Interface, + type: e + }; + return (null === e || void 0 === e ? void 0 : e.description) && (t.documentation = e.description), t + }))) + }(c, u, e, t, f); + if (d === jr.SELECTION_SET || d === jr.FIELD || d === jr.ALIASED_FIELD) return function(e, t, n) { + var r; + if (t.parentType) { + const i = t.parentType; + let a = []; + return "getFields" in i && (a = vt(i.getFields())), he(i) && a.push(pt), i === (null === (r = null === n || void 0 === n ? void 0 : n.schema) || void 0 === r ? void 0 : r.getQueryType()) && a.push(ut, dt), yt(e, a.map(((e, t) => { + var n; + const r = { + sortText: String(t) + e.name, + label: e.name, + detail: String(e.type), + documentation: null !== (n = e.description) && void 0 !== n ? n : void 0, + deprecated: Boolean(e.deprecationReason), + isDeprecated: Boolean(e.deprecationReason), + deprecationReason: e.deprecationReason, + kind: rn.Field, + type: e.type + }, + i = (e => { + const t = e.type; + if (he(t)) return Vr; + if (ue(t) && he(t.ofType)) return Vr; + if (de(t)) { + if (he(t.ofType)) return Vr; + if (ue(t.ofType) && he(t.ofType.ofType)) return Vr + } + return null + })(e); + return i && (r.insertText = e.name + i, r.insertTextFormat = an.Snippet, r.command = qr), r + }))) + } + return [] + }(c, f, l); + if (d === jr.ARGUMENTS || d === jr.ARGUMENT && 0 === p) { + const e = f.argDefs; + if (e) return yt(c, e.map((e => { + var t; + return { + label: e.name, + insertText: e.name + ": ", + command: qr, + detail: String(e.type), + documentation: null !== (t = e.description) && void 0 !== t ? t : void 0, + kind: rn.Variable, + type: e.type + } + }))) + } + if ((d === jr.OBJECT_VALUE || d === jr.OBJECT_FIELD && 0 === p) && f.objectFieldDefs) { + const e = vt(f.objectFieldDefs), + t = d === jr.OBJECT_VALUE ? rn.Value : rn.Field; + return yt(c, e.map((e => { + var n; + return { + label: e.name, + detail: String(e.type), + documentation: null !== (n = e.description) && void 0 !== n ? n : void 0, + kind: t, + type: e.type + } + }))) + } + if (d === jr.ENUM_VALUE || d === jr.LIST_VALUE && 1 === p || d === jr.OBJECT_FIELD && 2 === p || d === jr.ARGUMENT && 2 === p) return function(e, t, n, r) { + const i = we(t.inputType), + a = Wr(n, r, e).filter((e => e.detail === i.name)); + if (i instanceof $e) { + return yt(e, i.getValues().map((e => { + var t; + return { + label: e.name, + detail: String(i), + documentation: null !== (t = e.description) && void 0 !== t ? t : void 0, + deprecated: Boolean(e.deprecationReason), + isDeprecated: Boolean(e.deprecationReason), + deprecationReason: e.deprecationReason, + kind: rn.EnumMember, + type: i + } + })).concat(a)) + } + if (i === Ye) return yt(e, a.concat([{ + label: "true", + detail: String(Ye), + documentation: "Not false.", + kind: rn.Variable, + type: Ye + }, { + label: "false", + detail: String(Ye), + documentation: "Not true.", + kind: rn.Variable, + type: Ye + }])); + return a + }(c, f, t, e); + if (d === jr.VARIABLE && 1 === p) { + const n = we(f.inputType); + return yt(c, Wr(t, e, c).filter((e => e.detail === (null === n || void 0 === n ? void 0 : n.name)))) + } + return d === jr.TYPE_CONDITION && 1 === p || d === jr.NAMED_TYPE && null != u.prevState && u.prevState.kind === jr.TYPE_CONDITION ? function(e, t, n, r) { + let i; + if (t.parentType) + if (ge(t.parentType)) { + const e = function(e) { + if (!ge(e)) throw new Error(`Expected ${o(e)} to be a GraphQL abstract type.`); + return e + }(t.parentType), + r = n.getPossibleTypes(e), + a = Object.create(null); + r.forEach((e => { + e.getInterfaces().forEach((e => { + a[e.name] = e + })) + })), i = r.concat(vt(a)) + } else i = [t.parentType]; + else { + i = vt(n.getTypeMap()).filter(he) + } + return yt(e, i.map((e => { + const t = we(e); + return { + label: String(e), + documentation: t && t.description || "", + kind: rn.Field + } + }))) + }(c, f, e) : d === jr.FRAGMENT_SPREAD && 1 === p ? function(e, t, n, r, i) { + if (!r) return []; + const a = n.getTypeMap(), + o = ht(e.state), + s = Gr(r); + i && i.length > 0 && s.push(...i); + const l = s.filter((e => a[e.typeCondition.name.value] && !(o && o.kind === jr.FRAGMENT_DEFINITION && o.name === e.name.value) && he(t.parentType) && he(a[e.typeCondition.name.value]) && xr(n, t.parentType, a[e.typeCondition.name.value]))); + return yt(e, l.map((e => ({ + label: e.name.value, + detail: String(a[e.typeCondition.name.value]), + documentation: `fragment ${e.name.value} on ${e.typeCondition.name.value}`, + kind: rn.Field, + type: a[e.typeCondition.name.value] + })))) + }(c, f, e, t, Array.isArray(i) ? i : (e => { + const t = []; + if (e) try { + W(hr(e), { + FragmentDefinition(e) { + t.push(e) + } + }) + } catch (s) { + return [] + } + return t + })(i)) : d === jr.VARIABLE_DEFINITION && 2 === p || d === jr.LIST_TYPE && 1 === p || d === jr.NAMED_TYPE && u.prevState && (u.prevState.kind === jr.VARIABLE_DEFINITION || u.prevState.kind === jr.LIST_TYPE || u.prevState.kind === jr.NON_NULL_TYPE) ? function(e, t, n) { + const r = vt(t.getTypeMap()).filter(pe); + return yt(e, r.map((e => ({ + label: e.name, + documentation: e.description, + kind: rn.Variable + })))) + }(c, e) : d === jr.DIRECTIVE ? function(e, t, n, r) { + if (t.prevState && t.prevState.kind) { + return yt(e, n.getDirectives().filter((e => Yr(t.prevState, e))).map((e => ({ + label: e.name, + documentation: e.description || "", + kind: rn.Function + })))) + } + return [] + }(c, u, e) : [] + } + const Vr = " {\n $1\n}"; + + function Wr(e, t, n) { + let r, i = null; + const a = Object.create({}); + return Kr(e, ((e, o) => { + if ((null === o || void 0 === o ? void 0 : o.kind) === jr.VARIABLE && o.name && (i = o.name), (null === o || void 0 === o ? void 0 : o.kind) === jr.NAMED_TYPE && i) { + const e = ((e, t) => { + var n, r, i, a, o, s, l, c, u, d; + return (null === (n = e.prevState) || void 0 === n ? void 0 : n.kind) === t ? e.prevState : (null === (i = null === (r = e.prevState) || void 0 === r ? void 0 : r.prevState) || void 0 === i ? void 0 : i.kind) === t ? e.prevState.prevState : (null === (s = null === (o = null === (a = e.prevState) || void 0 === a ? void 0 : a.prevState) || void 0 === o ? void 0 : o.prevState) || void 0 === s ? void 0 : s.kind) === t ? e.prevState.prevState.prevState : (null === (d = null === (u = null === (c = null === (l = e.prevState) || void 0 === l ? void 0 : l.prevState) || void 0 === c ? void 0 : c.prevState) || void 0 === u ? void 0 : u.prevState) || void 0 === d ? void 0 : d.kind) === t ? e.prevState.prevState.prevState.prevState : void 0 + })(o, jr.TYPE); + (null === e || void 0 === e ? void 0 : e.type) && (r = t.getType(null === e || void 0 === e ? void 0 : e.type)) + } + i && r && (a[i] || (a[i] = { + detail: r.toString(), + insertText: "$" === n.string ? i : "$" + i, + label: i, + type: r, + kind: rn.Variable + }, i = null, r = null)) + })), vt(a) + } + + function Gr(e) { + const t = []; + return Kr(e, ((e, n) => { + n.kind === jr.FRAGMENT_DEFINITION && n.name && n.type && t.push({ + kind: jr.FRAGMENT_DEFINITION, + name: { + kind: I.NAME, + value: n.name + }, + selectionSet: { + kind: jr.SELECTION_SET, + selections: [] + }, + typeCondition: { + kind: jr.NAMED_TYPE, + name: { + kind: I.NAME, + value: n.type + } + } + }) + })), t + } + + function Hr(e, t) { + let n = null, + r = null, + i = null; + const a = Kr(e, ((e, a, o, s) => { + if (s === t.line && e.getCurrentPosition() >= t.character) return n = o, r = Object.assign({}, a), i = e.current(), "BREAK" + })); + return { + start: a.start, + end: a.end, + string: i || a.string, + state: r || a.state, + style: n || a.style + } + } + + function Kr(e, t) { + const n = e.split("\n"), + r = Rr(); + let i = r.startState(), + a = "", + o = new _r(""); + for (let s = 0; s < n.length; s++) { + for (o = new _r(n[s]); !o.eol();) { + a = r.token(o, i); + if ("BREAK" === t(o, i, a, s)) break + } + t(o, i, a, s), i.kind || (i = r.startState()) + } + return { + start: o.getStartOfToken(), + end: o.getCurrentPosition(), + string: o.current(), + state: i, + style: a + } + } + + function Yr(e, t) { + if (!e || !e.kind) return !1; + const n = e.kind, + r = t.locations; + switch (n) { + case jr.QUERY: + return -1 !== r.indexOf(Be.QUERY); + case jr.MUTATION: + return -1 !== r.indexOf(Be.MUTATION); + case jr.SUBSCRIPTION: + return -1 !== r.indexOf(Be.SUBSCRIPTION); + case jr.FIELD: + case jr.ALIASED_FIELD: + return -1 !== r.indexOf(Be.FIELD); + case jr.FRAGMENT_DEFINITION: + return -1 !== r.indexOf(Be.FRAGMENT_DEFINITION); + case jr.FRAGMENT_SPREAD: + return -1 !== r.indexOf(Be.FRAGMENT_SPREAD); + case jr.INLINE_FRAGMENT: + return -1 !== r.indexOf(Be.INLINE_FRAGMENT); + case jr.SCHEMA_DEF: + return -1 !== r.indexOf(Be.SCHEMA); + case jr.SCALAR_DEF: + return -1 !== r.indexOf(Be.SCALAR); + case jr.OBJECT_TYPE_DEF: + return -1 !== r.indexOf(Be.OBJECT); + case jr.FIELD_DEF: + return -1 !== r.indexOf(Be.FIELD_DEFINITION); + case jr.INTERFACE_DEF: + return -1 !== r.indexOf(Be.INTERFACE); + case jr.UNION_DEF: + return -1 !== r.indexOf(Be.UNION); + case jr.ENUM_DEF: + return -1 !== r.indexOf(Be.ENUM); + case jr.ENUM_VALUE: + return -1 !== r.indexOf(Be.ENUM_VALUE); + case jr.INPUT_DEF: + return -1 !== r.indexOf(Be.INPUT_OBJECT); + case jr.INPUT_VALUE_DEF: + switch (e.prevState && e.prevState.kind) { + case jr.ARGUMENTS_DEF: + return -1 !== r.indexOf(Be.ARGUMENT_DEFINITION); + case jr.INPUT_DEF: + return -1 !== r.indexOf(Be.INPUT_FIELD_DEFINITION) + } + } + return !1 + } + + function Zr(e, t) { + let n, r, i, a, o, s, l, c, u, d, p; + return bt(t, (t => { + switch (t.kind) { + case jr.QUERY: + case "ShortQuery": + d = e.getQueryType(); + break; + case jr.MUTATION: + d = e.getMutationType(); + break; + case jr.SUBSCRIPTION: + d = e.getSubscriptionType(); + break; + case jr.INLINE_FRAGMENT: + case jr.FRAGMENT_DEFINITION: + t.type && (d = e.getType(t.type)); + break; + case jr.FIELD: + case jr.ALIASED_FIELD: + d && t.name ? (o = u ? gt(e, u, t.name) : null, d = o ? o.type : null) : o = null; + break; + case jr.SELECTION_SET: + u = we(d); + break; + case jr.DIRECTIVE: + i = t.name ? e.getDirective(t.name) : null; + break; + case jr.INTERFACE_DEF: + t.name && (l = null, p = new Le({ + name: t.name, + interfaces: [], + fields: {} + })); + break; + case jr.OBJECT_TYPE_DEF: + t.name && (p = null, l = new Ie({ + name: t.name, + interfaces: [], + fields: {} + })); + break; + case jr.ARGUMENTS: + if (t.prevState) switch (t.prevState.kind) { + case jr.FIELD: + r = o && o.args; + break; + case jr.DIRECTIVE: + r = i && i.args; + break; + case jr.ALIASED_FIELD: + { + const n = t.prevState && t.prevState.name; + if (!n) { + r = null; + break + } + const i = u ? gt(e, u, n) : null; + if (!i) { + r = null; + break + } + r = i.args; + break + } + default: + r = null + } else r = null; + break; + case jr.ARGUMENT: + if (r) + for (let e = 0; e < r.length; e++) + if (r[e].name === t.name) { + n = r[e]; + break + } + s = n && n.type; + break; + case jr.ENUM_VALUE: + const f = we(s); + a = f instanceof $e ? f.getValues().find((e => e.value === t.name)) : null; + break; + case jr.LIST_VALUE: + const m = xe(s); + s = m instanceof be ? m.ofType : null; + break; + case jr.OBJECT_VALUE: + const h = we(s); + c = h instanceof Ue ? h.getFields() : null; + break; + case jr.OBJECT_FIELD: + const g = t.name && c ? c[t.name] : null; + s = g && g.type; + break; + case jr.NAMED_TYPE: + t.name && (d = e.getType(t.name)) + } + })), { + argDef: n, + argDefs: r, + directiveDef: i, + enumValue: a, + fieldDef: o, + inputType: s, + objectFieldDefs: c, + parentType: u, + type: d, + interfaceDef: p, + objectTypeDef: l + } + } + var Xr = n(84357), + Qr = n.n(Xr); + const Jr = (e, t) => { + if (!t) return []; + let n; + try { + n = hr(e) + } catch (r) { + return [] + } + return ei(n, t) + }, + ei = (e, t) => { + if (!t) return []; + const n = new Map, + r = new Set; + W(e, { + FragmentDefinition(e) { + n.set(e.name.value, !0) + }, + FragmentSpread(e) { + r.has(e.name.value) || r.add(e.name.value) + } + }); + const i = new Set; + r.forEach((e => { + !n.has(e) && t.has(e) && i.add(Qr()(t.get(e))) + })); + const a = []; + return i.forEach((e => { + W(e, { + FragmentSpread(e) { + !r.has(e.name.value) && t.get(e.name.value) && (i.add(Qr()(t.get(e.name.value))), r.add(e.name.value)) + } + }), n.has(e.name.value) || a.push(e) + })), a + }; + + function ti(e, t) { + e.push(t) + } + + function ni(e, t) { + de(t) ? (ni(e, t.ofType), ti(e, "!")) : ue(t) ? (ti(e, "["), ni(e, t.ofType), ti(e, "]")) : ti(e, t.name) + } + + function ri(e, t) { + const n = []; + return t && ti(n, "```graphql\n"), ni(n, e), t && ti(n, "\n```"), n.join("") + } + const ii = { + Int: "integer", + String: "string", + Float: "number", + ID: "string", + Boolean: "boolean", + DateTime: "string" + }; + + function ai(e, t) { + var n; + let r = !1, + i = Object.create(null); + const a = Object.create(null); + if ("defaultValue" in e && void 0 !== e.defaultValue && (i.default = e.defaultValue), le(e) && (i.type = "string", i.enum = e.getValues().map((e => e.name))), ie(e) && (i.type = null !== (n = ii[e.name]) && void 0 !== n ? n : "any"), ue(e)) { + i.type = "array"; + const { + definition: n, + definitions: r + } = ai(e.ofType, t); + n.$ref ? i.items = { + $ref: n.$ref + } : i.items = n, r && Object.keys(r).forEach((e => { + a[e] = r[e] + })) + } + if (de(e)) { + r = !0; + const { + definition: n, + definitions: o + } = ai(e.ofType, t); + i = n, o && Object.keys(o).forEach((e => { + a[e] = o[e] + })) + } + if (ce(e)) { + i.$ref = `#/definitions/${e.name}`; + const n = e.getFields(), + r = { + type: "object", + properties: {}, + required: [] + }; + e.description ? (r.description = e.description + "\n" + ri(e), (null === t || void 0 === t ? void 0 : t.useMarkdownDescription) && (r.markdownDescription = e.description + "\n" + ri(e, !0))) : (r.description = ri(e), (null === t || void 0 === t ? void 0 : t.useMarkdownDescription) && (r.markdownDescription = ri(e, !0))), Object.keys(n).forEach((e => { + const i = n[e], + { + required: o, + definition: s, + definitions: l + } = ai(i.type, t), + { + definition: c + } = ai(i, t); + r.properties[e] = Object.assign(Object.assign({}, s), c); + const u = ri(i.type); + if (r.properties[e].description = i.description ? i.description + "\n" + u : u, null === t || void 0 === t ? void 0 : t.useMarkdownDescription) { + const t = ri(i.type, !0); + r.properties[e].markdownDescription = i.description ? i.description + "\n" + t : t + } + o && r.required.push(e), l && Object.keys(l).map((e => { + a[e] = l[e] + })) + })), a[e.name] = r + } + return "description" in e && !ie(e) && e.description && !i.description ? (i.description = e.description + "\n" + ri(e), (null === t || void 0 === t ? void 0 : t.useMarkdownDescription) && (i.markdownDescription = e.description + "\n" + ri(e, !0))) : (i.description = ri(e), (null === t || void 0 === t ? void 0 : t.useMarkdownDescription) && (i.markdownDescription = ri(e, !0))), { + required: r, + definition: i, + definitions: a + } + } + + function oi(e, t) { + const n = { + $schema: "https://json-schema.org/draft/2020-12/schema", + type: "object", + properties: {}, + required: [] + }; + return e && Object.entries(e).forEach((([e, r]) => { + var i; + const { + definition: a, + required: o, + definitions: s + } = ai(r, t); + n.properties[e] = a, o && (null === (i = n.required) || void 0 === i || i.push(e)), s && (n.definitions = Object.assign(Object.assign({}, null === n || void 0 === n ? void 0 : n.definitions), s)) + })), n + } + + function si(e, t, n) { + const r = li(e, n); + let i; + return W(t, { + enter(e) { + if (!("Name" !== e.kind && e.loc && e.loc.start <= r && r <= e.loc.end)) return !1; + i = e + }, + leave(e) { + if (e.loc && e.loc.start <= r && r <= e.loc.end) return !1 + } + }), i + } + + function li(e, t) { + const n = e.split("\n").slice(0, t.line); + return t.character + n.map((e => e.length + 1)).reduce(((e, t) => e + t), 0) + } + class ci { + constructor(e, t) { + this.containsPosition = e => this.start.line === e.line ? this.start.character <= e.character : this.end.line === e.line ? this.end.character >= e.character : this.start.line <= e.line && this.end.line >= e.line, this.start = e, this.end = t + } + setStart(e, t) { + this.start = new ui(e, t) + } + setEnd(e, t) { + this.end = new ui(e, t) + } + } + class ui { + constructor(e, t) { + this.lessThanOrEqualTo = e => this.line < e.line || this.line === e.line && this.character <= e.character, this.line = e, this.character = t + } + setLine(e) { + this.line = e + } + setCharacter(e) { + this.character = e + } + } + + function di(e, t) { + const n = e.slice(0, t), + r = n.split("\n").length - 1, + i = n.lastIndexOf("\n"); + return new ui(r, t - i - 1) + } + + function pi(e) { + var t, n, r; + const i = e.getSchema(), + a = null !== (t = null !== (n = null !== (r = null === i || void 0 === i ? void 0 : i.astNode) && void 0 !== r ? r : null === i || void 0 === i ? void 0 : i.getQueryType()) && void 0 !== n ? n : null === i || void 0 === i ? void 0 : i.getMutationType()) && void 0 !== t ? t : null === i || void 0 === i ? void 0 : i.getSubscriptionType(); + let o = 0; + return { + SchemaDefinition(t) { + a ? e.reportError(new T("Cannot define a new schema within a schema extension.", { + nodes: t + })) : (o > 0 && e.reportError(new T("Must provide only one schema definition.", { + nodes: t + })), ++o) + } + } + } + + function fi(e) { + const t = e.getSchema(), + n = Object.create(null), + r = t ? { + query: t.getQueryType(), + mutation: t.getMutationType(), + subscription: t.getSubscriptionType() + } : {}; + return { + SchemaDefinition: i, + SchemaExtension: i + }; + + function i(t) { + var i; + const a = null !== (i = t.operationTypes) && void 0 !== i ? i : []; + for (const o of a) { + const t = o.operation, + i = n[t]; + r[t] ? e.reportError(new T(`Type for ${t} already defined in the schema. It cannot be redefined.`, { + nodes: o + })) : i ? e.reportError(new T(`There can be only one ${t} type in schema.`, { + nodes: [i, o] + })) : n[t] = o + } + return !1 + } + } + + function mi(e) { + const t = Object.create(null), + n = e.getSchema(); + return { + ScalarTypeDefinition: r, + ObjectTypeDefinition: r, + InterfaceTypeDefinition: r, + UnionTypeDefinition: r, + EnumTypeDefinition: r, + InputObjectTypeDefinition: r + }; + + function r(r) { + const i = r.name.value; + if (null === n || void 0 === n || !n.getType(i)) return t[i] ? e.reportError(new T(`There can be only one type named "${i}".`, { + nodes: [t[i], r.name] + })) : t[i] = r.name, !1; + e.reportError(new T(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`, { + nodes: r.name + })) + } + } + + function hi(e) { + const t = e.getSchema(), + n = t ? t.getTypeMap() : Object.create(null), + r = Object.create(null); + return { + EnumTypeDefinition: i, + EnumTypeExtension: i + }; + + function i(t) { + var i; + const a = t.name.value; + r[a] || (r[a] = Object.create(null)); + const o = null !== (i = t.values) && void 0 !== i ? i : [], + s = r[a]; + for (const r of o) { + const t = r.name.value, + i = n[a]; + le(i) && i.getValue(t) ? e.reportError(new T(`Enum value "${a}.${t}" already exists in the schema. It cannot also be defined in this type extension.`, { + nodes: r.name + })) : s[t] ? e.reportError(new T(`Enum value "${a}.${t}" can only be defined once.`, { + nodes: [s[t], r.name] + })) : s[t] = r.name + } + return !1 + } + } + + function gi(e) { + const t = e.getSchema(), + n = t ? t.getTypeMap() : Object.create(null), + r = Object.create(null); + return { + InputObjectTypeDefinition: i, + InputObjectTypeExtension: i, + InterfaceTypeDefinition: i, + InterfaceTypeExtension: i, + ObjectTypeDefinition: i, + ObjectTypeExtension: i + }; + + function i(t) { + var i; + const a = t.name.value; + r[a] || (r[a] = Object.create(null)); + const o = null !== (i = t.fields) && void 0 !== i ? i : [], + s = r[a]; + for (const r of o) { + const t = r.name.value; + bi(n[a], t) ? e.reportError(new T(`Field "${a}.${t}" already exists in the schema. It cannot also be defined in this type extension.`, { + nodes: r.name + })) : s[t] ? e.reportError(new T(`Field "${a}.${t}" can only be defined once.`, { + nodes: [s[t], r.name] + })) : s[t] = r.name + } + return !1 + } + } + + function bi(e, t) { + return !!(ae(e) || oe(e) || ce(e)) && null != e.getFields()[t] + } + + function vi(e) { + const t = Object.create(null), + n = e.getSchema(); + return { + DirectiveDefinition(r) { + const i = r.name.value; + if (null === n || void 0 === n || !n.getDirective(i)) return t[i] ? e.reportError(new T(`There can be only one directive named "@${i}".`, { + nodes: [t[i], r.name] + })) : t[i] = r.name, !1; + e.reportError(new T(`Directive "@${i}" already exists in the schema. It cannot be redefined.`, { + nodes: r.name + })) + } + } + } + + function yi(e) { + return e.kind === I.OPERATION_DEFINITION || e.kind === I.FRAGMENT_DEFINITION + } + + function ki(e) { + return e.kind === I.SCHEMA_DEFINITION || xi(e) || e.kind === I.DIRECTIVE_DEFINITION + } + + function xi(e) { + return e.kind === I.SCALAR_TYPE_DEFINITION || e.kind === I.OBJECT_TYPE_DEFINITION || e.kind === I.INTERFACE_TYPE_DEFINITION || e.kind === I.UNION_TYPE_DEFINITION || e.kind === I.ENUM_TYPE_DEFINITION || e.kind === I.INPUT_OBJECT_TYPE_DEFINITION + } + + function _i(e) { + return e.kind === I.SCHEMA_EXTENSION || wi(e) + } + + function wi(e) { + return e.kind === I.SCALAR_TYPE_EXTENSION || e.kind === I.OBJECT_TYPE_EXTENSION || e.kind === I.INTERFACE_TYPE_EXTENSION || e.kind === I.UNION_TYPE_EXTENSION || e.kind === I.ENUM_TYPE_EXTENSION || e.kind === I.INPUT_OBJECT_TYPE_EXTENSION + } + + function Ei(e) { + const t = e.getSchema(), + n = t ? t.getTypeMap() : Object.create(null), + r = Object.create(null); + for (const i of e.getDocument().definitions) xi(i) && (r[i.name.value] = !0); + const a = [...Object.keys(n), ...Object.keys(r)]; + return { + NamedType(t, o, s, l, c) { + const u = t.name.value; + if (!n[u] && !r[u]) { + var d; + const n = null !== (d = c[2]) && void 0 !== d ? d : s, + r = null != n && ("kind" in (p = n) && (ki(p) || _i(p))); + if (r && Ti.includes(u)) return; + const o = g(u, r ? Ti.concat(a) : a); + e.reportError(new T(`Unknown type "${u}".` + i(o), { + nodes: t + })) + } + var p + } + } + } + const Ti = [...Xe, ...ft].map((e => e.name)); + + function Si(e) { + return l(e, Ii) + } + class Ii { + constructor(e) { + var t, n; + this.name = te(e.name), this.description = e.description, this.locations = e.locations, this.isRepeatable = null !== (t = e.isRepeatable) && void 0 !== t && t, this.extensions = y(e.extensions), this.astNode = e.astNode, Array.isArray(e.locations) || r(!1, `@${e.name} locations must be an Array.`); + const i = null !== (n = e.args) && void 0 !== n ? n : {}; + c(i) && !Array.isArray(i) || r(!1, `@${e.name} args must be an object with argument names as keys.`), this.args = Oe(i) + } + get[Symbol.toStringTag]() { + return "GraphQLDirective" + } + toConfig() { + return { + name: this.name, + description: this.description, + locations: this.locations, + args: Re(this.args), + isRepeatable: this.isRepeatable, + extensions: this.extensions, + astNode: this.astNode + } + } + toString() { + return "@" + this.name + } + toJSON() { + return this.toString() + } + } + const Ni = new Ii({ + name: "include", + description: "Directs the executor to include this field or fragment only when the `if` argument is true.", + locations: [Be.FIELD, Be.FRAGMENT_SPREAD, Be.INLINE_FRAGMENT], + args: { + if: { + type: new ve(Ye), + description: "Included when true." + } + } + }), + Ai = new Ii({ + name: "skip", + description: "Directs the executor to skip this field or fragment when the `if` argument is true.", + locations: [Be.FIELD, Be.FRAGMENT_SPREAD, Be.INLINE_FRAGMENT], + args: { + if: { + type: new ve(Ye), + description: "Skipped when true." + } + } + }), + Oi = new Ii({ + name: "deprecated", + description: "Marks an element of a GraphQL schema as no longer supported.", + locations: [Be.FIELD_DEFINITION, Be.ARGUMENT_DEFINITION, Be.INPUT_FIELD_DEFINITION, Be.ENUM_VALUE], + args: { + reason: { + type: Ke, + description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).", + defaultValue: "No longer supported" + } + } + }), + Ci = new Ii({ + name: "specifiedBy", + description: "Exposes a URL that specifies the behavior of this scalar.", + locations: [Be.SCALAR], + args: { + url: { + type: new ve(Ke), + description: "The URL that specifies the behavior of this scalar." + } + } + }), + Di = Object.freeze([Ni, Ai, Oi, Ci]); + + function Ri(e) { + const t = Object.create(null), + n = e.getSchema(), + r = n ? n.getDirectives() : Di; + for (const a of r) t[a.name] = a.locations; + const i = e.getDocument().definitions; + for (const a of i) a.kind === I.DIRECTIVE_DEFINITION && (t[a.name.value] = a.locations.map((e => e.value))); + return { + Directive(n, r, i, a, s) { + const l = n.name.value, + c = t[l]; + if (!c) return void e.reportError(new T(`Unknown directive "@${l}".`, { + nodes: n + })); + const u = function(e) { + const t = e[e.length - 1]; + switch ("kind" in t || k(!1), t.kind) { + case I.OPERATION_DEFINITION: + return function(e) { + switch (e) { + case B.QUERY: + return Be.QUERY; + case B.MUTATION: + return Be.MUTATION; + case B.SUBSCRIPTION: + return Be.SUBSCRIPTION + } + }(t.operation); + case I.FIELD: + return Be.FIELD; + case I.FRAGMENT_SPREAD: + return Be.FRAGMENT_SPREAD; + case I.INLINE_FRAGMENT: + return Be.INLINE_FRAGMENT; + case I.FRAGMENT_DEFINITION: + return Be.FRAGMENT_DEFINITION; + case I.VARIABLE_DEFINITION: + return Be.VARIABLE_DEFINITION; + case I.SCHEMA_DEFINITION: + case I.SCHEMA_EXTENSION: + return Be.SCHEMA; + case I.SCALAR_TYPE_DEFINITION: + case I.SCALAR_TYPE_EXTENSION: + return Be.SCALAR; + case I.OBJECT_TYPE_DEFINITION: + case I.OBJECT_TYPE_EXTENSION: + return Be.OBJECT; + case I.FIELD_DEFINITION: + return Be.FIELD_DEFINITION; + case I.INTERFACE_TYPE_DEFINITION: + case I.INTERFACE_TYPE_EXTENSION: + return Be.INTERFACE; + case I.UNION_TYPE_DEFINITION: + case I.UNION_TYPE_EXTENSION: + return Be.UNION; + case I.ENUM_TYPE_DEFINITION: + case I.ENUM_TYPE_EXTENSION: + return Be.ENUM; + case I.ENUM_VALUE_DEFINITION: + return Be.ENUM_VALUE; + case I.INPUT_OBJECT_TYPE_DEFINITION: + case I.INPUT_OBJECT_TYPE_EXTENSION: + return Be.INPUT_OBJECT; + case I.INPUT_VALUE_DEFINITION: + { + const t = e[e.length - 3]; + return "kind" in t || k(!1), + t.kind === I.INPUT_OBJECT_TYPE_DEFINITION ? Be.INPUT_FIELD_DEFINITION : Be.ARGUMENT_DEFINITION + } + default: + k(!1, "Unexpected kind: " + o(t.kind)) + } + }(s); + u && !c.includes(u) && e.reportError(new T(`Directive "@${l}" may not be used on ${u}.`, { + nodes: n + })) + } + } + } + + function Mi(e) { + const t = Object.create(null), + n = e.getSchema(), + r = n ? n.getDirectives() : Di; + for (const s of r) t[s.name] = !s.isRepeatable; + const i = e.getDocument().definitions; + for (const s of i) s.kind === I.DIRECTIVE_DEFINITION && (t[s.name.value] = !s.repeatable); + const a = Object.create(null), + o = Object.create(null); + return { + enter(n) { + if (!("directives" in n) || !n.directives) return; + let r; + if (n.kind === I.SCHEMA_DEFINITION || n.kind === I.SCHEMA_EXTENSION) r = a; + else if (xi(n) || wi(n)) { + const e = n.name.value; + r = o[e], void 0 === r && (o[e] = r = Object.create(null)) + } else r = Object.create(null); + for (const i of n.directives) { + const n = i.name.value; + t[n] && (r[n] ? e.reportError(new T(`The directive "@${n}" can only be used once at this location.`, { + nodes: [r[n], i] + })) : r[n] = i) + } + } + } + } + + function Li(e) { + const t = e.getSchema(), + n = Object.create(null); + for (const i of e.getDocument().definitions) xi(i) && (n[i.name.value] = i); + return { + ScalarTypeExtension: r, + ObjectTypeExtension: r, + InterfaceTypeExtension: r, + UnionTypeExtension: r, + EnumTypeExtension: r, + InputObjectTypeExtension: r + }; + + function r(r) { + const a = r.name.value, + s = n[a], + l = null === t || void 0 === t ? void 0 : t.getType(a); + let c; + if (s ? c = zi[s.kind] : l && (c = function(e) { + if (ie(e)) return I.SCALAR_TYPE_EXTENSION; + if (ae(e)) return I.OBJECT_TYPE_EXTENSION; + if (oe(e)) return I.INTERFACE_TYPE_EXTENSION; + if (se(e)) return I.UNION_TYPE_EXTENSION; + if (le(e)) return I.ENUM_TYPE_EXTENSION; + if (ce(e)) return I.INPUT_OBJECT_TYPE_EXTENSION; + k(!1, "Unexpected type: " + o(e)) + }(l)), c) { + if (c !== r.kind) { + const t = function(e) { + switch (e) { + case I.SCALAR_TYPE_EXTENSION: + return "scalar"; + case I.OBJECT_TYPE_EXTENSION: + return "object"; + case I.INTERFACE_TYPE_EXTENSION: + return "interface"; + case I.UNION_TYPE_EXTENSION: + return "union"; + case I.ENUM_TYPE_EXTENSION: + return "enum"; + case I.INPUT_OBJECT_TYPE_EXTENSION: + return "input object"; + default: + k(!1, "Unexpected kind: " + o(e)) + } + }(r.kind); + e.reportError(new T(`Cannot extend non-${t} type "${a}".`, { + nodes: s ? [s, r] : r + })) + } + } else { + const o = g(a, Object.keys({ ...n, + ...null === t || void 0 === t ? void 0 : t.getTypeMap() + })); + e.reportError(new T(`Cannot extend type "${a}" because it is not defined.` + i(o), { + nodes: r.name + })) + } + } + } + const zi = { + [I.SCALAR_TYPE_DEFINITION]: I.SCALAR_TYPE_EXTENSION, + [I.OBJECT_TYPE_DEFINITION]: I.OBJECT_TYPE_EXTENSION, + [I.INTERFACE_TYPE_DEFINITION]: I.INTERFACE_TYPE_EXTENSION, + [I.UNION_TYPE_DEFINITION]: I.UNION_TYPE_EXTENSION, + [I.ENUM_TYPE_DEFINITION]: I.ENUM_TYPE_EXTENSION, + [I.INPUT_OBJECT_TYPE_DEFINITION]: I.INPUT_OBJECT_TYPE_EXTENSION + }; + + function Fi(e, t) { + const n = new Map; + for (const r of e) { + const e = t(r), + i = n.get(e); + void 0 === i ? n.set(e, [r]) : i.push(r) + } + return n + } + + function $i(e) { + return { + Field: t, + Directive: t + }; + + function t(t) { + var n; + const r = Fi(null !== (n = t.arguments) && void 0 !== n ? n : [], (e => e.name.value)); + for (const [i, a] of r) a.length > 1 && e.reportError(new T(`There can be only one argument named "${i}".`, { + nodes: a.map((e => e.name)) + })) + } + } + + function Pi(e) { + const t = []; + let n = Object.create(null); + return { + ObjectValue: { + enter() { + t.push(n), n = Object.create(null) + }, + leave() { + const e = t.pop(); + e || k(!1), n = e + } + }, + ObjectField(t) { + const r = t.name.value; + n[r] ? e.reportError(new T(`There can be only one input field named "${r}".`, { + nodes: [n[r], t.name] + })) : n[r] = t.name + } + } + } + + function Ui(e) { + return { + Document(t) { + for (const n of t.definitions) + if (!yi(n)) { + const t = n.kind === I.SCHEMA_DEFINITION || n.kind === I.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"'; + e.reportError(new T(`The ${t} definition is not executable.`, { + nodes: n + })) + } + return !1 + } + } + } + + function ji(e, t) { + switch (t.kind) { + case I.LIST_TYPE: + { + const n = ji(e, t.type); + return n && new be(n) + } + case I.NON_NULL_TYPE: + { + const n = ji(e, t.type); + return n && new ve(n) + } + case I.NAMED_TYPE: + return e.getType(t.name.value) + } + } + + function qi(e) { + const t = Object.create(null), + n = e.getSchema(), + r = n ? n.getDirectives() : Di; + for (const i of r) t[i.name] = i.args.map((e => e.name)); + const a = e.getDocument().definitions; + for (const i of a) + if (i.kind === I.DIRECTIVE_DEFINITION) { + var o; + const e = null !== (o = i.arguments) && void 0 !== o ? o : []; + t[i.name.value] = e.map((e => e.name.value)) + } + return { + Directive(n) { + const r = n.name.value, + a = t[r]; + if (n.arguments && a) + for (const t of n.arguments) { + const n = t.name.value; + if (!a.includes(n)) { + const o = g(n, a); + e.reportError(new T(`Unknown argument "${n}" on directive "@${r}".` + i(o), { + nodes: t + })) + } + } + return !1 + } + } + } + + function Bi(e) { + return { + FragmentSpread(t) { + const n = t.name.value; + e.getFragment(n) || e.reportError(new T(`Unknown fragment "${n}".`, { + nodes: t.name + })) + } + } + } + + function Vi(e) { + const t = [], + n = []; + return { + OperationDefinition: e => (t.push(e), !1), + FragmentDefinition: e => (n.push(e), !1), + Document: { + leave() { + const r = Object.create(null); + for (const n of t) + for (const t of e.getRecursivelyReferencedFragments(n)) r[t.name.value] = !0; + for (const t of n) { + const n = t.name.value; + !0 !== r[n] && e.reportError(new T(`Fragment "${n}" is never used.`, { + nodes: t + })) + } + } + } + } + } + + function Wi(e) { + switch (e.kind) { + case I.OBJECT: + return { ...e, + fields: (t = e.fields, t.map((e => ({ ...e, + value: Wi(e.value) + }))).sort(((e, t) => f(e.name.value, t.name.value)))) + }; + case I.LIST: + return { ...e, + values: e.values.map(Wi) + }; + case I.INT: + case I.FLOAT: + case I.STRING: + case I.BOOLEAN: + case I.NULL: + case I.ENUM: + case I.VARIABLE: + return e + } + var t + } + + function Gi(e) { + return Array.isArray(e) ? e.map((([e, t]) => `subfields "${e}" conflict because ` + Gi(t))).join(" and ") : e + } + + function Hi(e, t, n, r, i, a, o) { + const s = e.getFragment(o); + if (!s) return; + const [l, c] = ea(e, n, s); + if (a !== l) { + Yi(e, t, n, r, i, a, l); + for (const s of c) r.has(s, o, i) || (r.add(s, o, i), Hi(e, t, n, r, i, a, s)) + } + } + + function Ki(e, t, n, r, i, a, o) { + if (a === o) return; + if (r.has(a, o, i)) return; + r.add(a, o, i); + const s = e.getFragment(a), + l = e.getFragment(o); + if (!s || !l) return; + const [c, u] = ea(e, n, s), [d, p] = ea(e, n, l); + Yi(e, t, n, r, i, c, d); + for (const f of p) Ki(e, t, n, r, i, a, f); + for (const f of u) Ki(e, t, n, r, i, f, o) + } + + function Yi(e, t, n, r, i, a, o) { + for (const [s, l] of Object.entries(a)) { + const a = o[s]; + if (a) + for (const o of l) + for (const l of a) { + const a = Zi(e, n, r, i, s, o, l); + a && t.push(a) + } + } + } + + function Zi(e, t, n, r, i, a, s) { + const [l, c, u] = a, [d, p, f] = s, m = r || l !== d && ae(l) && ae(d); + if (!m) { + const e = c.name.value, + t = p.name.value; + if (e !== t) return [ + [i, `"${e}" and "${t}" are different fields`], + [c], + [p] + ]; + if (Xi(c) !== Xi(p)) return [ + [i, "they have differing arguments"], + [c], + [p] + ] + } + const h = null === u || void 0 === u ? void 0 : u.type, + g = null === f || void 0 === f ? void 0 : f.type; + if (h && g && Qi(h, g)) return [ + [i, `they return conflicting types "${o(h)}" and "${o(g)}"`], + [c], + [p] + ]; + const b = c.selectionSet, + v = p.selectionSet; + if (b && v) { + const r = function(e, t, n, r, i, a, o, s) { + const l = [], + [c, u] = Ji(e, t, i, a), + [d, p] = Ji(e, t, o, s); + Yi(e, l, t, n, r, c, d); + for (const f of p) Hi(e, l, t, n, r, c, f); + for (const f of u) Hi(e, l, t, n, r, d, f); + for (const f of u) + for (const i of p) Ki(e, l, t, n, r, f, i); + return l + }(e, t, n, m, we(h), b, we(g), v); + return function(e, t, n, r) { + if (e.length > 0) return [ + [t, e.map((([e]) => e))], + [n, ...e.map((([, e]) => e)).flat()], + [r, ...e.map((([, , e]) => e)).flat()] + ] + }(r, i, c, p) + } + } + + function Xi(e) { + var t; + const n = null !== (t = e.arguments) && void 0 !== t ? t : []; + return H(Wi({ + kind: I.OBJECT, + fields: n.map((e => ({ + kind: I.OBJECT_FIELD, + name: e.name, + value: e.value + }))) + })) + } + + function Qi(e, t) { + return ue(e) ? !ue(t) || Qi(e.ofType, t.ofType) : !!ue(t) || (de(e) ? !de(t) || Qi(e.ofType, t.ofType) : !!de(t) || !(!me(e) && !me(t)) && e !== t) + } + + function Ji(e, t, n, r) { + const i = t.get(r); + if (i) return i; + const a = Object.create(null), + o = Object.create(null); + ta(e, n, r, a, o); + const s = [a, Object.keys(o)]; + return t.set(r, s), s + } + + function ea(e, t, n) { + const r = t.get(n.selectionSet); + if (r) return r; + const i = ji(e.getSchema(), n.typeCondition); + return Ji(e, t, i, n.selectionSet) + } + + function ta(e, t, n, r, i) { + for (const a of n.selections) switch (a.kind) { + case I.FIELD: + { + const e = a.name.value; + let n; + (ae(t) || oe(t)) && (n = t.getFields()[e]); + const i = a.alias ? a.alias.value : e;r[i] || (r[i] = []), + r[i].push([t, a, n]); + break + } + case I.FRAGMENT_SPREAD: + i[a.name.value] = !0; + break; + case I.INLINE_FRAGMENT: + { + const n = a.typeCondition, + o = n ? ji(e.getSchema(), n) : t;ta(e, o, a.selectionSet, r, i); + break + } + } + } + class na { + constructor() { + this._data = new Map + } + has(e, t, n) { + var r; + const [i, a] = e < t ? [e, t] : [t, e], o = null === (r = this._data.get(i)) || void 0 === r ? void 0 : r.get(a); + return void 0 !== o && (!!n || n === o) + } + add(e, t, n) { + const [r, i] = e < t ? [e, t] : [t, e], a = this._data.get(r); + void 0 === a ? this._data.set(r, new Map([ + [i, n] + ])) : a.set(i, n) + } + } + + function ra(e) { + var t; + const n = Object.create(null), + r = e.getSchema(), + i = null !== (t = null === r || void 0 === r ? void 0 : r.getDirectives()) && void 0 !== t ? t : Di; + for (const o of i) n[o.name] = u(o.args.filter(Me), (e => e.name)); + const a = e.getDocument().definitions; + for (const o of a) + if (o.kind === I.DIRECTIVE_DEFINITION) { + var s; + const e = null !== (s = o.arguments) && void 0 !== s ? s : []; + n[o.name.value] = u(e.filter(ia), (e => e.name.value)) + } + return { + Directive: { + leave(t) { + const r = t.name.value, + i = n[r]; + if (i) { + var a; + const n = null !== (a = t.arguments) && void 0 !== a ? a : [], + s = new Set(n.map((e => e.name.value))); + for (const [a, l] of Object.entries(i)) + if (!s.has(a)) { + const n = re(l.type) ? o(l.type) : H(l.type); + e.reportError(new T(`Directive "@${r}" argument "${a}" of type "${n}" is required, but it was not provided.`, { + nodes: t + })) + } + } + } + } + } + } + + function ia(e) { + return e.type.kind === I.NON_NULL_TYPE && null == e.defaultValue + } + + function aa(e, t, n) { + if (e) { + if (e.kind === I.VARIABLE) { + const r = e.name.value; + if (null == n || void 0 === n[r]) return; + const i = n[r]; + if (null === i && de(t)) return; + return i + } + if (de(t)) { + if (e.kind === I.NULL) return; + return aa(e, t.ofType, n) + } + if (e.kind === I.NULL) return null; + if (ue(t)) { + const r = t.ofType; + if (e.kind === I.LIST) { + const t = []; + for (const i of e.values) + if (oa(i, n)) { + if (de(r)) return; + t.push(null) + } else { + const e = aa(i, r, n); + if (void 0 === e) return; + t.push(e) + } + return t + } + const i = aa(e, r, n); + if (void 0 === i) return; + return [i] + } + if (ce(t)) { + if (e.kind !== I.OBJECT) return; + const r = Object.create(null), + i = u(e.fields, (e => e.name.value)); + for (const e of Object.values(t.getFields())) { + const t = i[e.name]; + if (!t || oa(t.value, n)) { + if (void 0 !== e.defaultValue) r[e.name] = e.defaultValue; + else if (de(e.type)) return; + continue + } + const a = aa(t.value, e.type, n); + if (void 0 === a) return; + r[e.name] = a + } + return r + } + if (me(t)) { + let i; + try { + i = t.parseLiteral(e, n) + } catch (r) { + return + } + if (void 0 === i) return; + return i + } + k(!1, "Unexpected input type: " + o(t)) + } + } + + function oa(e, t) { + return e.kind === I.VARIABLE && (null == t || void 0 === t[e.name.value]) + } + + function sa(e, t, n) { + var r; + const i = null === (r = t.directives) || void 0 === r ? void 0 : r.find((t => t.name.value === e.name)); + if (i) return function(e, t, n) { + var r; + const i = {}, + a = u(null !== (r = t.arguments) && void 0 !== r ? r : [], (e => e.name.value)); + for (const s of e.args) { + const e = s.name, + r = s.type, + l = a[e]; + if (!l) { + if (void 0 !== s.defaultValue) i[e] = s.defaultValue; + else if (de(r)) throw new T(`Argument "${e}" of required type "${o(r)}" was not provided.`, { + nodes: t + }); + continue + } + const c = l.value; + let u = c.kind === I.NULL; + if (c.kind === I.VARIABLE) { + const t = c.name.value; + if (null == n || !la(n, t)) { + if (void 0 !== s.defaultValue) i[e] = s.defaultValue; + else if (de(r)) throw new T(`Argument "${e}" of required type "${o(r)}" was provided the variable "$${t}" which was not provided a runtime value.`, { + nodes: c + }); + continue + } + u = null == n[t] + } + if (u && de(r)) throw new T(`Argument "${e}" of non-null type "${o(r)}" must not be null.`, { + nodes: c + }); + const d = aa(c, r, n); + if (void 0 === d) throw new T(`Argument "${e}" has invalid value ${H(c)}.`, { + nodes: c + }); + i[e] = d + } + return i + }(e, i, n) + } + + function la(e, t) { + return Object.prototype.hasOwnProperty.call(e, t) + } + + function ca(e, t, n, r, i, a, o) { + for (const l of i.selections) switch (l.kind) { + case I.FIELD: + { + if (!ua(n, l)) continue; + const e = (s = l).alias ? s.alias.value : s.name.value, + t = a.get(e);void 0 !== t ? t.push(l) : a.set(e, [l]); + break + } + case I.INLINE_FRAGMENT: + if (!ua(n, l) || !da(e, l, r)) continue; + ca(e, t, n, r, l.selectionSet, a, o); + break; + case I.FRAGMENT_SPREAD: + { + const i = l.name.value; + if (o.has(i) || !ua(n, l)) continue;o.add(i); + const s = t[i]; + if (!s || !da(e, s, r)) continue;ca(e, t, n, r, s.selectionSet, a, o); + break + } + } + var s + } + + function ua(e, t) { + const n = sa(Ai, t, e); + if (!0 === (null === n || void 0 === n ? void 0 : n.if)) return !1; + const r = sa(Ni, t, e); + return !1 !== (null === r || void 0 === r ? void 0 : r.if) + } + + function da(e, t, n) { + const r = t.typeCondition; + if (!r) return !0; + const i = ji(e, r); + return i === n || !!ge(i) && e.isSubType(i, n) + } + + function pa(e, t) { + const n = e.getInputType(); + if (!n) return; + const r = we(n); + if (me(r)) try { + if (void 0 === r.parseLiteral(t, void 0)) { + const r = o(n); + e.reportError(new T(`Expected value of type "${r}", found ${H(t)}.`, { + nodes: t + })) + } + } catch (i) { + const r = o(n); + i instanceof T ? e.reportError(i) : e.reportError(new T(`Expected value of type "${r}", found ${H(t)}; ` + i.message, { + nodes: t, + originalError: i + })) + } else { + const r = o(n); + e.reportError(new T(`Expected value of type "${r}", found ${H(t)}.`, { + nodes: t + })) + } + } + + function fa(e, t, n, r, i) { + if (de(r) && !de(t)) { + const a = void 0 !== i; + if (!(null != n && n.kind !== I.NULL) && !a) return !1; + return kr(e, t, r.ofType) + } + return kr(e, t, r) + } + const ma = Object.freeze([Ui, function(e) { + const t = Object.create(null); + return { + OperationDefinition(n) { + const r = n.name; + return r && (t[r.value] ? e.reportError(new T(`There can be only one operation named "${r.value}".`, { + nodes: [t[r.value], r] + })) : t[r.value] = r), !1 + }, + FragmentDefinition: () => !1 + } + }, function(e) { + let t = 0; + return { + Document(e) { + t = e.definitions.filter((e => e.kind === I.OPERATION_DEFINITION)).length + }, + OperationDefinition(n) { + !n.name && t > 1 && e.reportError(new T("This anonymous operation must be the only defined operation.", { + nodes: n + })) + } + } + }, function(e) { + return { + OperationDefinition(t) { + if ("subscription" === t.operation) { + const n = e.getSchema(), + r = n.getSubscriptionType(); + if (r) { + const i = t.name ? t.name.value : null, + a = Object.create(null), + o = e.getDocument(), + s = Object.create(null); + for (const e of o.definitions) e.kind === I.FRAGMENT_DEFINITION && (s[e.name.value] = e); + const l = function(e, t, n, r, i) { + const a = new Map; + return ca(e, t, n, r, i, a, new Set), a + }(n, s, a, r, t.selectionSet); + if (l.size > 1) { + const t = [...l.values()].slice(1).flat(); + e.reportError(new T(null != i ? `Subscription "${i}" must select only one top level field.` : "Anonymous Subscription must select only one top level field.", { + nodes: t + })) + } + for (const t of l.values()) { + t[0].name.value.startsWith("__") && e.reportError(new T(null != i ? `Subscription "${i}" must not select an introspection top level field.` : "Anonymous Subscription must not select an introspection top level field.", { + nodes: t + })) + } + } + } + } + } + }, Ei, function(e) { + return { + InlineFragment(t) { + const n = t.typeCondition; + if (n) { + const t = ji(e.getSchema(), n); + if (t && !he(t)) { + const t = H(n); + e.reportError(new T(`Fragment cannot condition on non composite type "${t}".`, { + nodes: n + })) + } + } + }, + FragmentDefinition(t) { + const n = ji(e.getSchema(), t.typeCondition); + if (n && !he(n)) { + const n = H(t.typeCondition); + e.reportError(new T(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`, { + nodes: t.typeCondition + })) + } + } + } + }, function(e) { + return { + VariableDefinition(t) { + const n = ji(e.getSchema(), t.type); + if (void 0 !== n && !pe(n)) { + const n = t.variable.name.value, + r = H(t.type); + e.reportError(new T(`Variable "$${n}" cannot be non-input type "${r}".`, { + nodes: t.type + })) + } + } + } + }, function(e) { + return { + Field(t) { + const n = e.getType(), + r = t.selectionSet; + if (n) + if (me(we(n))) { + if (r) { + const i = t.name.value, + a = o(n); + e.reportError(new T(`Field "${i}" must not have a selection since type "${a}" has no subfields.`, { + nodes: r + })) + } + } else if (!r) { + const r = t.name.value, + i = o(n); + e.reportError(new T(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`, { + nodes: t + })) + } + } + } + }, function(e) { + return { + Field(t) { + const n = e.getParentType(); + if (n) { + if (!e.getFieldDef()) { + const r = e.getSchema(), + a = t.name.value; + let o = i("to use an inline fragment on", function(e, t, n) { + if (!ge(t)) return []; + const r = new Set, + i = Object.create(null); + for (const o of e.getPossibleTypes(t)) + if (o.getFields()[n]) { + r.add(o), i[o.name] = 1; + for (const e of o.getInterfaces()) { + var a; + e.getFields()[n] && (r.add(e), i[e.name] = (null !== (a = i[e.name]) && void 0 !== a ? a : 0) + 1) + } + } + return [...r].sort(((t, n) => { + const r = i[n.name] - i[t.name]; + return 0 !== r ? r : oe(t) && e.isSubType(t, n) ? -1 : oe(n) && e.isSubType(n, t) ? 1 : f(t.name, n.name) + })).map((e => e.name)) + }(r, n, a)); + "" === o && (o = i(function(e, t) { + if (ae(e) || oe(e)) { + return g(t, Object.keys(e.getFields())) + } + return [] + }(n, a))), e.reportError(new T(`Cannot query field "${a}" on type "${n.name}".` + o, { + nodes: t + })) + } + } + } + } + }, function(e) { + const t = Object.create(null); + return { + OperationDefinition: () => !1, + FragmentDefinition(n) { + const r = n.name.value; + return t[r] ? e.reportError(new T(`There can be only one fragment named "${r}".`, { + nodes: [t[r], n.name] + })) : t[r] = n.name, !1 + } + } + }, Bi, Vi, function(e) { + return { + InlineFragment(t) { + const n = e.getType(), + r = e.getParentType(); + if (he(n) && he(r) && !xr(e.getSchema(), n, r)) { + const i = o(r), + a = o(n); + e.reportError(new T(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`, { + nodes: t + })) + } + }, + FragmentSpread(t) { + const n = t.name.value, + r = function(e, t) { + const n = e.getFragment(t); + if (n) { + const t = ji(e.getSchema(), n.typeCondition); + if (he(t)) return t + } + }(e, n), + i = e.getParentType(); + if (r && i && !xr(e.getSchema(), r, i)) { + const a = o(i), + s = o(r); + e.reportError(new T(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${s}".`, { + nodes: t + })) + } + } + } + }, function(e) { + const t = Object.create(null), + n = [], + r = Object.create(null); + return { + OperationDefinition: () => !1, + FragmentDefinition: e => (i(e), !1) + }; + + function i(a) { + if (t[a.name.value]) return; + const o = a.name.value; + t[o] = !0; + const s = e.getFragmentSpreads(a.selectionSet); + if (0 !== s.length) { + r[o] = n.length; + for (const t of s) { + const a = t.name.value, + o = r[a]; + if (n.push(t), void 0 === o) { + const t = e.getFragment(a); + t && i(t) + } else { + const t = n.slice(o), + r = t.slice(0, -1).map((e => '"' + e.name.value + '"')).join(", "); + e.reportError(new T(`Cannot spread fragment "${a}" within itself` + ("" !== r ? ` via ${r}.` : "."), { + nodes: t + })) + } + n.pop() + } + r[o] = void 0 + } + } + }, function(e) { + return { + OperationDefinition(t) { + var n; + const r = Fi(null !== (n = t.variableDefinitions) && void 0 !== n ? n : [], (e => e.variable.name.value)); + for (const [i, a] of r) a.length > 1 && e.reportError(new T(`There can be only one variable named "$${i}".`, { + nodes: a.map((e => e.variable.name)) + })) + } + } + }, function(e) { + let t = Object.create(null); + return { + OperationDefinition: { + enter() { + t = Object.create(null) + }, + leave(n) { + const r = e.getRecursiveVariableUsages(n); + for (const { + node: i + } of r) { + const r = i.name.value; + !0 !== t[r] && e.reportError(new T(n.name ? `Variable "$${r}" is not defined by operation "${n.name.value}".` : `Variable "$${r}" is not defined.`, { + nodes: [i, n] + })) + } + } + }, + VariableDefinition(e) { + t[e.variable.name.value] = !0 + } + } + }, function(e) { + let t = []; + return { + OperationDefinition: { + enter() { + t = [] + }, + leave(n) { + const r = Object.create(null), + i = e.getRecursiveVariableUsages(n); + for (const { + node: e + } of i) r[e.name.value] = !0; + for (const a of t) { + const t = a.variable.name.value; + !0 !== r[t] && e.reportError(new T(n.name ? `Variable "$${t}" is never used in operation "${n.name.value}".` : `Variable "$${t}" is never used.`, { + nodes: a + })) + } + } + }, + VariableDefinition(e) { + t.push(e) + } + } + }, Ri, Mi, function(e) { + return { ...qi(e), + Argument(t) { + const n = e.getArgument(), + r = e.getFieldDef(), + a = e.getParentType(); + if (!n && r && a) { + const n = t.name.value, + o = g(n, r.args.map((e => e.name))); + e.reportError(new T(`Unknown argument "${n}" on field "${a.name}.${r.name}".` + i(o), { + nodes: t + })) + } + } + } + }, $i, function(e) { + return { + ListValue(t) { + if (!ue(xe(e.getParentInputType()))) return pa(e, t), !1 + }, + ObjectValue(t) { + const n = we(e.getInputType()); + if (!ce(n)) return pa(e, t), !1; + const r = u(t.fields, (e => e.name.value)); + for (const i of Object.values(n.getFields())) { + if (!r[i.name] && qe(i)) { + const r = o(i.type); + e.reportError(new T(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`, { + nodes: t + })) + } + } + }, + ObjectField(t) { + const n = we(e.getParentInputType()); + if (!e.getInputType() && ce(n)) { + const r = g(t.name.value, Object.keys(n.getFields())); + e.reportError(new T(`Field "${t.name.value}" is not defined by type "${n.name}".` + i(r), { + nodes: t + })) + } + }, + NullValue(t) { + const n = e.getInputType(); + de(n) && e.reportError(new T(`Expected value of type "${o(n)}", found ${H(t)}.`, { + nodes: t + })) + }, + EnumValue: t => pa(e, t), + IntValue: t => pa(e, t), + FloatValue: t => pa(e, t), + StringValue: t => pa(e, t), + BooleanValue: t => pa(e, t) + } + }, function(e) { + return { ...ra(e), + Field: { + leave(t) { + var n; + const r = e.getFieldDef(); + if (!r) return !1; + const i = new Set(null === (n = t.arguments) || void 0 === n ? void 0 : n.map((e => e.name.value))); + for (const a of r.args) + if (!i.has(a.name) && Me(a)) { + const n = o(a.type); + e.reportError(new T(`Field "${r.name}" argument "${a.name}" of type "${n}" is required, but it was not provided.`, { + nodes: t + })) + } + } + } + } + }, function(e) { + let t = Object.create(null); + return { + OperationDefinition: { + enter() { + t = Object.create(null) + }, + leave(n) { + const r = e.getRecursiveVariableUsages(n); + for (const { + node: i, + type: a, + defaultValue: s + } of r) { + const n = i.name.value, + r = t[n]; + if (r && a) { + const t = e.getSchema(), + l = ji(t, r.type); + if (l && !fa(t, l, r.defaultValue, a, s)) { + const t = o(l), + s = o(a); + e.reportError(new T(`Variable "$${n}" of type "${t}" used in position expecting type "${s}".`, { + nodes: [r, i] + })) + } + } + } + } + }, + VariableDefinition(e) { + t[e.variable.name.value] = e + } + } + }, function(e) { + const t = new na, + n = new Map; + return { + SelectionSet(r) { + const i = function(e, t, n, r, i) { + const a = [], + [o, s] = Ji(e, t, r, i); + if (function(e, t, n, r, i) { + for (const [a, o] of Object.entries(i)) + if (o.length > 1) + for (let i = 0; i < o.length; i++) + for (let s = i + 1; s < o.length; s++) { + const l = Zi(e, n, r, !1, a, o[i], o[s]); + l && t.push(l) + } + }(e, a, t, n, o), 0 !== s.length) + for (let l = 0; l < s.length; l++) { + Hi(e, a, t, n, !1, o, s[l]); + for (let r = l + 1; r < s.length; r++) Ki(e, a, t, n, !1, s[l], s[r]) + } + return a + }(e, n, t, e.getParentType(), r); + for (const [ + [t, n], a, o + ] of i) { + const r = Gi(n); + e.reportError(new T(`Fields "${t}" conflict because ${r}. Use different aliases on the fields to fetch both if this was intentional.`, { + nodes: a.concat(o) + })) + } + } + } + }, Pi]); + Object.freeze([pi, fi, mi, hi, gi, function(e) { + return { + DirectiveDefinition(e) { + var t; + const r = null !== (t = e.arguments) && void 0 !== t ? t : []; + return n(`@${e.name.value}`, r) + }, + InterfaceTypeDefinition: t, + InterfaceTypeExtension: t, + ObjectTypeDefinition: t, + ObjectTypeExtension: t + }; + + function t(e) { + var t; + const r = e.name.value, + i = null !== (t = e.fields) && void 0 !== t ? t : []; + for (const o of i) { + var a; + n(`${r}.${o.name.value}`, null !== (a = o.arguments) && void 0 !== a ? a : []) + } + return !1 + } + + function n(t, n) { + const r = Fi(n, (e => e.name.value)); + for (const [i, a] of r) a.length > 1 && e.reportError(new T(`Argument "${t}(${i}:)" can only be defined once.`, { + nodes: a.map((e => e.name)) + })); + return !1 + } + }, vi, Ei, Ri, Mi, Li, qi, $i, Pi, ra]); + + function ha(e) { + if (! function(e) { + return l(e, ga) + }(e)) throw new Error(`Expected ${o(e)} to be a GraphQL schema.`); + return e + } + class ga { + constructor(e) { + var t, n; + this.__validationErrors = !0 === e.assumeValid ? [] : void 0, c(e) || r(!1, "Must provide configuration object."), !e.types || Array.isArray(e.types) || r(!1, `"types" must be Array if provided but got: ${o(e.types)}.`), !e.directives || Array.isArray(e.directives) || r(!1, `"directives" must be Array if provided but got: ${o(e.directives)}.`), this.description = e.description, this.extensions = y(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = null !== (t = e.extensionASTNodes) && void 0 !== t ? t : [], this._queryType = e.query, this._mutationType = e.mutation, this._subscriptionType = e.subscription, this._directives = null !== (n = e.directives) && void 0 !== n ? n : Di; + const i = new Set(e.types); + if (null != e.types) + for (const r of e.types) i.delete(r), ba(r, i); + null != this._queryType && ba(this._queryType, i), null != this._mutationType && ba(this._mutationType, i), null != this._subscriptionType && ba(this._subscriptionType, i); + for (const r of this._directives) + if (Si(r)) + for (const e of r.args) ba(e.type, i); + ba(tt, i), this._typeMap = Object.create(null), this._subTypeMap = Object.create(null), this._implementationsMap = Object.create(null); + for (const a of i) { + if (null == a) continue; + const e = a.name; + if (e || r(!1, "One of the provided types for building the Schema is missing a name."), void 0 !== this._typeMap[e]) throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`); + if (this._typeMap[e] = a, oe(a)) { + for (const t of a.getInterfaces()) + if (oe(t)) { + let e = this._implementationsMap[t.name]; + void 0 === e && (e = this._implementationsMap[t.name] = { + objects: [], + interfaces: [] + }), e.interfaces.push(a) + } + } else if (ae(a)) + for (const t of a.getInterfaces()) + if (oe(t)) { + let e = this._implementationsMap[t.name]; + void 0 === e && (e = this._implementationsMap[t.name] = { + objects: [], + interfaces: [] + }), e.objects.push(a) + } + } + } + get[Symbol.toStringTag]() { + return "GraphQLSchema" + } + getQueryType() { + return this._queryType + } + getMutationType() { + return this._mutationType + } + getSubscriptionType() { + return this._subscriptionType + } + getRootType(e) { + switch (e) { + case B.QUERY: + return this.getQueryType(); + case B.MUTATION: + return this.getMutationType(); + case B.SUBSCRIPTION: + return this.getSubscriptionType() + } + } + getTypeMap() { + return this._typeMap + } + getType(e) { + return this.getTypeMap()[e] + } + getPossibleTypes(e) { + return se(e) ? e.getTypes() : this.getImplementations(e).objects + } + getImplementations(e) { + const t = this._implementationsMap[e.name]; + return null !== t && void 0 !== t ? t : { + objects: [], + interfaces: [] + } + } + isSubType(e, t) { + let n = this._subTypeMap[e.name]; + if (void 0 === n) { + if (n = Object.create(null), se(e)) + for (const t of e.getTypes()) n[t.name] = !0; + else { + const t = this.getImplementations(e); + for (const e of t.objects) n[e.name] = !0; + for (const e of t.interfaces) n[e.name] = !0 + } + this._subTypeMap[e.name] = n + } + return void 0 !== n[t.name] + } + getDirectives() { + return this._directives + } + getDirective(e) { + return this.getDirectives().find((t => t.name === e)) + } + toConfig() { + return { + description: this.description, + query: this.getQueryType(), + mutation: this.getMutationType(), + subscription: this.getSubscriptionType(), + types: Object.values(this.getTypeMap()), + directives: this.getDirectives(), + extensions: this.extensions, + astNode: this.astNode, + extensionASTNodes: this.extensionASTNodes, + assumeValid: void 0 !== this.__validationErrors + } + } + } + + function ba(e, t) { + const n = we(e); + if (!t.has(n)) + if (t.add(n), se(n)) + for (const r of n.getTypes()) ba(r, t); + else if (ae(n) || oe(n)) { + for (const e of n.getInterfaces()) ba(e, t); + for (const e of Object.values(n.getFields())) { + ba(e.type, t); + for (const n of e.args) ba(n.type, t) + } + } else if (ce(n)) + for (const r of Object.values(n.getFields())) ba(r.type, t); + return t + } + + function va(e) { + if (ha(e), e.__validationErrors) return e.__validationErrors; + const t = new ya(e); + ! function(e) { + const t = e.schema, + n = t.getQueryType(); + if (n) { + if (!ae(n)) { + var r; + e.reportError(`Query root type must be Object type, it cannot be ${o(n)}.`, null !== (r = ka(t, B.QUERY)) && void 0 !== r ? r : n.astNode) + } + } else e.reportError("Query root type must be provided.", t.astNode); + const i = t.getMutationType(); + var a; + i && !ae(i) && e.reportError(`Mutation root type must be Object type if provided, it cannot be ${o(i)}.`, null !== (a = ka(t, B.MUTATION)) && void 0 !== a ? a : i.astNode); + const s = t.getSubscriptionType(); + var l; + s && !ae(s) && e.reportError(`Subscription root type must be Object type if provided, it cannot be ${o(s)}.`, null !== (l = ka(t, B.SUBSCRIPTION)) && void 0 !== l ? l : s.astNode) + }(t), + function(e) { + for (const n of e.schema.getDirectives()) + if (Si(n)) { + xa(e, n); + for (const r of n.args) { + var t; + if (xa(e, r), pe(r.type) || e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${o(r.type)}.`, r.astNode), Me(r) && null != r.deprecationReason) e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`, [Ca(r.astNode), null === (t = r.astNode) || void 0 === t ? void 0 : t.type]) + } + } else e.reportError(`Expected directive but got: ${o(n)}.`, null === n || void 0 === n ? void 0 : n.astNode) + }(t), + function(e) { + const t = function(e) { + const t = Object.create(null), + n = [], + r = Object.create(null); + return i; + + function i(a) { + if (t[a.name]) return; + t[a.name] = !0, r[a.name] = n.length; + const o = Object.values(a.getFields()); + for (const t of o) + if (de(t.type) && ce(t.type.ofType)) { + const a = t.type.ofType, + o = r[a.name]; + if (n.push(t), void 0 === o) i(a); + else { + const t = n.slice(o), + r = t.map((e => e.name)).join("."); + e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${r}".`, t.map((e => e.astNode))) + } + n.pop() + } + r[a.name] = void 0 + } + }(e), + n = e.schema.getTypeMap(); + for (const r of Object.values(n)) _e(r) ? (mt(r) || xa(e, r), ae(r) || oe(r) ? (_a(e, r), wa(e, r)) : se(r) ? Sa(e, r) : le(r) ? Ia(e, r) : ce(r) && (Na(e, r), t(r))) : e.reportError(`Expected GraphQL named type but got: ${o(r)}.`, r.astNode) + }(t); + const n = t.getErrors(); + return e.__validationErrors = n, n + } + class ya { + constructor(e) { + this._errors = [], this.schema = e + } + reportError(e, t) { + const n = Array.isArray(t) ? t.filter(Boolean) : t; + this._errors.push(new T(e, { + nodes: n + })) + } + getErrors() { + return this._errors + } + } + + function ka(e, t) { + var n; + return null === (n = [e.astNode, ...e.extensionASTNodes].flatMap((e => { + var t; + return null !== (t = null === e || void 0 === e ? void 0 : e.operationTypes) && void 0 !== t ? t : [] + })).find((e => e.operation === t))) || void 0 === n ? void 0 : n.type + } + + function xa(e, t) { + t.name.startsWith("__") && e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`, t.astNode) + } + + function _a(e, t) { + const n = Object.values(t.getFields()); + 0 === n.length && e.reportError(`Type ${t.name} must define one or more fields.`, [t.astNode, ...t.extensionASTNodes]); + for (const s of n) { + var r; + if (xa(e, s), !fe(s.type)) e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${o(s.type)}.`, null === (r = s.astNode) || void 0 === r ? void 0 : r.type); + for (const n of s.args) { + const r = n.name; + var i, a; + if (xa(e, n), !pe(n.type)) e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${o(n.type)}.`, null === (i = n.astNode) || void 0 === i ? void 0 : i.type); + if (Me(n) && null != n.deprecationReason) e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`, [Ca(n.astNode), null === (a = n.astNode) || void 0 === a ? void 0 : a.type]) + } + } + } + + function wa(e, t) { + const n = Object.create(null); + for (const r of t.getInterfaces()) oe(r) ? t !== r ? n[r.name] ? e.reportError(`Type ${t.name} can only implement ${r.name} once.`, Aa(t, r)) : (n[r.name] = !0, Ta(e, t, r), Ea(e, t, r)) : e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`, Aa(t, r)) : e.reportError(`Type ${o(t)} must only implement Interface types, it cannot implement ${o(r)}.`, Aa(t, r)) + } + + function Ea(e, t, n) { + const r = t.getFields(); + for (const c of Object.values(n.getFields())) { + const u = c.name, + d = r[u]; + if (d) { + var i, a; + if (!kr(e.schema, d.type, c.type)) e.reportError(`Interface field ${n.name}.${u} expects type ${o(c.type)} but ${t.name}.${u} is type ${o(d.type)}.`, [null === (i = c.astNode) || void 0 === i ? void 0 : i.type, null === (a = d.astNode) || void 0 === a ? void 0 : a.type]); + for (const r of c.args) { + const i = r.name, + a = d.args.find((e => e.name === i)); + var s, l; + if (a) { + if (!yr(r.type, a.type)) e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${o(r.type)} but ${t.name}.${u}(${i}:) is type ${o(a.type)}.`, [null === (s = r.astNode) || void 0 === s ? void 0 : s.type, null === (l = a.astNode) || void 0 === l ? void 0 : l.type]) + } else e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`, [r.astNode, d.astNode]) + } + for (const r of d.args) { + const i = r.name; + !c.args.find((e => e.name === i)) && Me(r) && e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`, [r.astNode, c.astNode]) + } + } else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`, [c.astNode, t.astNode, ...t.extensionASTNodes]) + } + } + + function Ta(e, t, n) { + const r = t.getInterfaces(); + for (const i of n.getInterfaces()) r.includes(i) || e.reportError(i === t ? `Type ${t.name} cannot implement ${n.name} because it would create a circular reference.` : `Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`, [...Aa(n, i), ...Aa(t, n)]) + } + + function Sa(e, t) { + const n = t.getTypes(); + 0 === n.length && e.reportError(`Union type ${t.name} must define one or more member types.`, [t.astNode, ...t.extensionASTNodes]); + const r = Object.create(null); + for (const i of n) r[i.name] ? e.reportError(`Union type ${t.name} can only include type ${i.name} once.`, Oa(t, i.name)) : (r[i.name] = !0, ae(i) || e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${o(i)}.`, Oa(t, String(i)))) + } + + function Ia(e, t) { + const n = t.getValues(); + 0 === n.length && e.reportError(`Enum type ${t.name} must define one or more values.`, [t.astNode, ...t.extensionASTNodes]); + for (const r of n) xa(e, r) + } + + function Na(e, t) { + const n = Object.values(t.getFields()); + 0 === n.length && e.reportError(`Input Object type ${t.name} must define one or more fields.`, [t.astNode, ...t.extensionASTNodes]); + for (const a of n) { + var r, i; + if (xa(e, a), !pe(a.type)) e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${o(a.type)}.`, null === (r = a.astNode) || void 0 === r ? void 0 : r.type); + if (qe(a) && null != a.deprecationReason) e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`, [Ca(a.astNode), null === (i = a.astNode) || void 0 === i ? void 0 : i.type]) + } + } + + function Aa(e, t) { + const { + astNode: n, + extensionASTNodes: r + } = e; + return (null != n ? [n, ...r] : r).flatMap((e => { + var t; + return null !== (t = e.interfaces) && void 0 !== t ? t : [] + })).filter((e => e.name.value === t.name)) + } + + function Oa(e, t) { + const { + astNode: n, + extensionASTNodes: r + } = e; + return (null != n ? [n, ...r] : r).flatMap((e => { + var t; + return null !== (t = e.types) && void 0 !== t ? t : [] + })).filter((e => e.name.value === t)) + } + + function Ca(e) { + var t; + return null === e || void 0 === e || null === (t = e.directives) || void 0 === t ? void 0 : t.find((e => e.name.value === Oi.name)) + } + class Da { + constructor(e, t, n) { + this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = null !== n && void 0 !== n ? n : Ra, t && (pe(t) && this._inputTypeStack.push(t), he(t) && this._parentTypeStack.push(t), fe(t) && this._typeStack.push(t)) + } + get[Symbol.toStringTag]() { + return "TypeInfo" + } + getType() { + if (this._typeStack.length > 0) return this._typeStack[this._typeStack.length - 1] + } + getParentType() { + if (this._parentTypeStack.length > 0) return this._parentTypeStack[this._parentTypeStack.length - 1] + } + getInputType() { + if (this._inputTypeStack.length > 0) return this._inputTypeStack[this._inputTypeStack.length - 1] + } + getParentInputType() { + if (this._inputTypeStack.length > 1) return this._inputTypeStack[this._inputTypeStack.length - 2] + } + getFieldDef() { + if (this._fieldDefStack.length > 0) return this._fieldDefStack[this._fieldDefStack.length - 1] + } + getDefaultValue() { + if (this._defaultValueStack.length > 0) return this._defaultValueStack[this._defaultValueStack.length - 1] + } + getDirective() { + return this._directive + } + getArgument() { + return this._argument + } + getEnumValue() { + return this._enumValue + } + enter(e) { + const t = this._schema; + switch (e.kind) { + case I.SELECTION_SET: + { + const e = we(this.getType());this._parentTypeStack.push(he(e) ? e : void 0); + break + } + case I.FIELD: + { + const n = this.getParentType(); + let r, i;n && (r = this._getFieldDef(t, n, e), r && (i = r.type)), + this._fieldDefStack.push(r), + this._typeStack.push(fe(i) ? i : void 0); + break + } + case I.DIRECTIVE: + this._directive = t.getDirective(e.name.value); + break; + case I.OPERATION_DEFINITION: + { + const n = t.getRootType(e.operation);this._typeStack.push(ae(n) ? n : void 0); + break + } + case I.INLINE_FRAGMENT: + case I.FRAGMENT_DEFINITION: + { + const n = e.typeCondition, + r = n ? ji(t, n) : we(this.getType());this._typeStack.push(fe(r) ? r : void 0); + break + } + case I.VARIABLE_DEFINITION: + { + const n = ji(t, e.type);this._inputTypeStack.push(pe(n) ? n : void 0); + break + } + case I.ARGUMENT: + { + var n; + let t, r; + const i = null !== (n = this.getDirective()) && void 0 !== n ? n : this.getFieldDef();i && (t = i.args.find((t => t.name === e.name.value)), t && (r = t.type)), + this._argument = t, + this._defaultValueStack.push(t ? t.defaultValue : void 0), + this._inputTypeStack.push(pe(r) ? r : void 0); + break + } + case I.LIST: + { + const e = xe(this.getInputType()), + t = ue(e) ? e.ofType : e;this._defaultValueStack.push(void 0), + this._inputTypeStack.push(pe(t) ? t : void 0); + break + } + case I.OBJECT_FIELD: + { + const t = we(this.getInputType()); + let n, r;ce(t) && (r = t.getFields()[e.name.value], r && (n = r.type)), + this._defaultValueStack.push(r ? r.defaultValue : void 0), + this._inputTypeStack.push(pe(n) ? n : void 0); + break + } + case I.ENUM: + { + const t = we(this.getInputType()); + let n;le(t) && (n = t.getValue(e.value)), + this._enumValue = n; + break + } + } + } + leave(e) { + switch (e.kind) { + case I.SELECTION_SET: + this._parentTypeStack.pop(); + break; + case I.FIELD: + this._fieldDefStack.pop(), this._typeStack.pop(); + break; + case I.DIRECTIVE: + this._directive = null; + break; + case I.OPERATION_DEFINITION: + case I.INLINE_FRAGMENT: + case I.FRAGMENT_DEFINITION: + this._typeStack.pop(); + break; + case I.VARIABLE_DEFINITION: + this._inputTypeStack.pop(); + break; + case I.ARGUMENT: + this._argument = null, this._defaultValueStack.pop(), this._inputTypeStack.pop(); + break; + case I.LIST: + case I.OBJECT_FIELD: + this._defaultValueStack.pop(), this._inputTypeStack.pop(); + break; + case I.ENUM: + this._enumValue = null + } + } + } + + function Ra(e, t, n) { + const r = n.name.value; + return r === ut.name && e.getQueryType() === t ? ut : r === dt.name && e.getQueryType() === t ? dt : r === pt.name && he(t) ? pt : ae(t) || oe(t) ? t.getFields()[r] : void 0 + } + + function Ma(e, t) { + return { + enter(...n) { + const r = n[0]; + e.enter(r); + const i = G(t, r.kind).enter; + if (i) { + const a = i.apply(t, n); + return void 0 !== a && (e.leave(r), q(a) && e.enter(a)), a + } + }, + leave(...n) { + const r = n[0], + i = G(t, r.kind).leave; + let a; + return i && (a = i.apply(t, n)), e.leave(r), a + } + } + } + class La { + constructor(e, t) { + this._ast = e, this._fragments = void 0, this._fragmentSpreads = new Map, this._recursivelyReferencedFragments = new Map, this._onError = t + } + get[Symbol.toStringTag]() { + return "ASTValidationContext" + } + reportError(e) { + this._onError(e) + } + getDocument() { + return this._ast + } + getFragment(e) { + let t; + if (this._fragments) t = this._fragments; + else { + t = Object.create(null); + for (const e of this.getDocument().definitions) e.kind === I.FRAGMENT_DEFINITION && (t[e.name.value] = e); + this._fragments = t + } + return t[e] + } + getFragmentSpreads(e) { + let t = this._fragmentSpreads.get(e); + if (!t) { + t = []; + const n = [e]; + let r; + for (; r = n.pop();) + for (const e of r.selections) e.kind === I.FRAGMENT_SPREAD ? t.push(e) : e.selectionSet && n.push(e.selectionSet); + this._fragmentSpreads.set(e, t) + } + return t + } + getRecursivelyReferencedFragments(e) { + let t = this._recursivelyReferencedFragments.get(e); + if (!t) { + t = []; + const n = Object.create(null), + r = [e.selectionSet]; + let i; + for (; i = r.pop();) + for (const e of this.getFragmentSpreads(i)) { + const i = e.name.value; + if (!0 !== n[i]) { + n[i] = !0; + const e = this.getFragment(i); + e && (t.push(e), r.push(e.selectionSet)) + } + } + this._recursivelyReferencedFragments.set(e, t) + } + return t + } + } + Symbol.toStringTag; + class za extends La { + constructor(e, t, n, r) { + super(t, r), this._schema = e, this._typeInfo = n, this._variableUsages = new Map, this._recursiveVariableUsages = new Map + } + get[Symbol.toStringTag]() { + return "ValidationContext" + } + getSchema() { + return this._schema + } + getVariableUsages(e) { + let t = this._variableUsages.get(e); + if (!t) { + const n = [], + r = new Da(this._schema); + W(e, Ma(r, { + VariableDefinition: () => !1, + Variable(e) { + n.push({ + node: e, + type: r.getInputType(), + defaultValue: r.getDefaultValue() + }) + } + })), t = n, this._variableUsages.set(e, t) + } + return t + } + getRecursiveVariableUsages(e) { + let t = this._recursiveVariableUsages.get(e); + if (!t) { + t = this.getVariableUsages(e); + for (const n of this.getRecursivelyReferencedFragments(e)) t = t.concat(this.getVariableUsages(n)); + this._recursiveVariableUsages.set(e, t) + } + return t + } + getType() { + return this._typeInfo.getType() + } + getParentType() { + return this._typeInfo.getParentType() + } + getInputType() { + return this._typeInfo.getInputType() + } + getParentInputType() { + return this._typeInfo.getParentInputType() + } + getFieldDef() { + return this._typeInfo.getFieldDef() + } + getDirective() { + return this._typeInfo.getDirective() + } + getArgument() { + return this._typeInfo.getArgument() + } + getEnumValue() { + return this._typeInfo.getEnumValue() + } + } + + function Fa(e, t, n = ma, i, a = new Da(e)) { + var o; + const s = null !== (o = null === i || void 0 === i ? void 0 : i.maxErrors) && void 0 !== o ? o : 100; + t || r(!1, "Must provide document."), + function(e) { + const t = va(e); + if (0 !== t.length) throw new Error(t.map((e => e.message)).join("\n\n")) + }(e); + const l = Object.freeze({}), + c = [], + u = new za(e, t, a, (e => { + if (c.length >= s) throw c.push(new T("Too many validation errors, error limit reached. Validation aborted.")), l; + c.push(e) + })), + d = function(e) { + const t = new Array(e.length).fill(null), + n = Object.create(null); + for (const r of Object.values(I)) { + let i = !1; + const a = new Array(e.length).fill(void 0), + o = new Array(e.length).fill(void 0); + for (let t = 0; t < e.length; ++t) { + const { + enter: n, + leave: s + } = G(e[t], r); + i || (i = null != n || null != s), a[t] = n, o[t] = s + } + if (!i) continue; + const s = { + enter(...n) { + const r = n[0]; + for (let o = 0; o < e.length; o++) + if (null === t[o]) { + var i; + const s = null === (i = a[o]) || void 0 === i ? void 0 : i.apply(e[o], n); + if (!1 === s) t[o] = r; + else if (s === V) t[o] = V; + else if (void 0 !== s) return s + } + }, + leave(...n) { + const r = n[0]; + for (let a = 0; a < e.length; a++) + if (null === t[a]) { + var i; + const r = null === (i = o[a]) || void 0 === i ? void 0 : i.apply(e[a], n); + if (r === V) t[a] = V; + else if (void 0 !== r && !1 !== r) return r + } else t[a] === r && (t[a] = null) + } + }; + n[r] = s + } + return n + }(n.map((e => e(u)))); + try { + W(t, Ma(a, d)) + } catch (p) { + if (p !== l) throw p + } + return c + } + const $a = [pi, fi, mi, hi, gi, vi, Ei, Ri, Mi, Li, $i, Pi]; + + function Pa(e, t, n, r, i) { + const a = ma.filter((e => e !== Vi && e !== Ui && (!r || e !== Bi))); + n && Array.prototype.push.apply(a, n), i && Array.prototype.push.apply(a, $a); + return Fa(e, t, a).filter((e => { + if (-1 !== e.message.indexOf("Unknown directive") && e.nodes) { + const t = e.nodes[0]; + if (t && t.kind === I.DIRECTIVE) { + const e = t.name.value; + if ("arguments" === e || "argumentDefinitions" === e) return !1 + } + } + return !0 + })) + } + + function Ua(e, t) { + const n = Object.create(null); + return t.definitions.forEach((t => { + if ("OperationDefinition" === t.kind) { + const r = t.variableDefinitions; + r && r.forEach((({ + variable: t, + type: r + }) => { + const i = ji(e, r); + i ? n[t.name.value] = i : r.kind === I.NAMED_TYPE && "Float" === r.name.value && (n[t.name.value] = He) + })) + } + })), n + } + + function ja(e, t) { + const n = t ? Ua(t, e) : void 0, + r = []; + return W(e, { + OperationDefinition(e) { + r.push(e) + } + }), { + variableToType: n, + operations: r + } + } + + function qa(e, t) { + if (t) try { + const n = hr(t); + return Object.assign(Object.assign({}, ja(n, e)), { + documentAST: n + }) + } catch (n) { + return + } + } + const Ba = qa; + var Va = function(e, t, n, r) { + return new(n || (n = Promise))((function(i, a) { + function o(e) { + try { + l(r.next(e)) + } catch (t) { + a(t) + } + } + + function s(e) { + try { + l(r.throw(e)) + } catch (t) { + a(t) + } + } + + function l(e) { + var t; + e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) { + e(t) + }))).then(o, s) + } + l((r = r.apply(e, t || [])).next()) + })) + }; + const Wa = "GraphQL"; + + function Ga(e, t) { + if (!e) throw new Error(t) + } + + function Ha(e, t) { + const n = t.loc; + return Ga(n, "Expected ASTNode to have a location."), + function(e, t) { + const n = di(e, t.start), + r = di(e, t.end); + return new ci(n, r) + }(e, n) + } + + function Ka(e, t) { + const n = t.loc; + return Ga(n, "Expected ASTNode to have a location."), di(e, n.start) + } + + function Ya(e, t, n) { + return Va(this, void 0, void 0, (function*() { + const r = t.name.value, + i = n.filter((({ + definition: e + }) => e.name && e.name.value === r)); + if (0 === i.length) throw Error(`Definition not found for GraphQL type ${r}`); + const a = i.map((({ + filePath: e, + content: t, + definition: n + }) => function(e, t, n) { + const r = n.name; + return Ga(r, "Expected ASTNode to have a Name."), { + path: e, + position: Ka(t, n), + range: Ha(t, n), + name: r.value || "", + language: Wa, + projectRoot: e + } + }(e || "", t, n))); + return { + definitions: a, + queryRange: a.map((n => Ha(e, t))) + } + })) + } + + function Za(e, t, n) { + return Va(this, void 0, void 0, (function*() { + const r = n.filter((({ + definition: e + }) => e.name && e.name.value === t)); + if (0 === r.length) throw Error(`Definition not found for GraphQL type ${t}`); + const i = []; + return r.forEach((({ + filePath: t, + content: n, + definition: r + }) => { + var a; + const o = null === (a = r.fields) || void 0 === a ? void 0 : a.find((t => t.name.value === e)); + if (null == o) return null; + i.push(function(e, t, n) { + const r = n.name; + return Ga(r, "Expected ASTNode to have a Name."), { + path: e, + position: Ka(t, n), + range: Ha(t, n), + name: r.value || "", + language: Wa, + projectRoot: e + } + }(t || "", n, o)) + })), { + definitions: i, + queryRange: [] + } + })) + } + + function Xa(e, t, n) { + return Va(this, void 0, void 0, (function*() { + const r = t.name.value, + i = n.filter((({ + definition: e + }) => e.name.value === r)); + if (0 === i.length) throw Error(`Definition not found for GraphQL fragment ${r}`); + const a = i.map((({ + filePath: e, + content: t, + definition: n + }) => Ja(e || "", t, n))); + return { + definitions: a, + queryRange: a.map((n => Ha(e, t))) + } + })) + } + + function Qa(e, t, n) { + return { + definitions: [Ja(e, t, n)], + queryRange: n.name ? [Ha(t, n.name)] : [] + } + } + + function Ja(e, t, n) { + const r = n.name; + if (!r) throw Error("Expected ASTNode to have a Name."); + return { + path: e, + position: Ka(t, n), + range: Ha(t, n), + name: r.value || "", + language: Wa, + projectRoot: e + } + } + + function eo(e) { + return { + Field(t) { + const n = e.getFieldDef(), + r = null === n || void 0 === n ? void 0 : n.deprecationReason; + if (n && null != r) { + const i = e.getParentType(); + null != i || k(!1), e.reportError(new T(`The field ${i.name}.${n.name} is deprecated. ${r}`, { + nodes: t + })) + } + }, + Argument(t) { + const n = e.getArgument(), + r = null === n || void 0 === n ? void 0 : n.deprecationReason; + if (n && null != r) { + const i = e.getDirective(); + if (null != i) e.reportError(new T(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`, { + nodes: t + })); + else { + const i = e.getParentType(), + a = e.getFieldDef(); + null != i && null != a || k(!1), e.reportError(new T(`Field "${i.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`, { + nodes: t + })) + } + } + }, + ObjectField(t) { + const n = we(e.getParentInputType()); + if (ce(n)) { + const r = n.getFields()[t.name.value], + i = null === r || void 0 === r ? void 0 : r.deprecationReason; + null != i && e.reportError(new T(`The input field ${n.name}.${r.name} is deprecated. ${i}`, { + nodes: t + })) + } + }, + EnumValue(t) { + const n = e.getEnumValue(), + r = null === n || void 0 === n ? void 0 : n.deprecationReason; + if (n && null != r) { + const i = we(e.getInputType()); + null != i || k(!1), e.reportError(new T(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`, { + nodes: t + })) + } + } + } + } + const to = { + Error: "Error", + Warning: "Warning", + Information: "Information", + Hint: "Hint" + }, + no = { + [to.Error]: 1, + [to.Warning]: 2, + [to.Information]: 3, + [to.Hint]: 4 + }, + ro = (e, t) => { + if (!e) throw new Error(t) + }; + + function io(e, t = null, n, r, i) { + let a = null; + i && (e += "string" === typeof i ? "\n\n" + i : "\n\n" + i.reduce(((e, t) => e += H(t) + "\n\n"), "")); + try { + a = hr(e) + } catch (o) { + const t = lo(o.locations[0], e); + return [{ + severity: no.Error, + message: o.message, + source: "GraphQL: Syntax", + range: t + }] + } + return ao(a, t, n, r) + } + + function ao(e, t = null, n, r) { + if (!t) return []; + const i = oo(Pa(t, e, n, r), (e => so(e, no.Error, "Validation"))), + a = oo(Fa(t, e, [eo]), (e => so(e, no.Warning, "Deprecation"))); + return i.concat(a) + } + + function oo(e, t) { + return Array.prototype.concat.apply([], e.map(t)) + } + + function so(e, t, n) { + if (!e.nodes) return []; + const r = []; + return e.nodes.forEach((i => { + const a = "Variable" !== i.kind && "name" in i && void 0 !== i.name ? i.name : "variable" in i && void 0 !== i.variable ? i.variable : i; + if (a) { + ro(e.locations, "GraphQL validation error requires locations."); + const i = e.locations[0], + o = function(e) { + const t = e.loc; + return ro(t, "Expected ASTNode to have a location."), t + }(a), + s = i.column + (o.end - o.start); + r.push({ + source: `GraphQL: ${n}`, + message: e.message, + severity: t, + range: new ci(new ui(i.line - 1, i.column - 1), new ui(i.line - 1, s)) + }) + } + })), r + } + + function lo(e, t) { + const n = Rr(), + r = n.startState(), + i = t.split("\n"); + ro(i.length >= e.line, "Query text must have more lines than where the error happened"); + let a = null; + for (let c = 0; c < e.line; c++) + for (a = new _r(i[c]); !a.eol();) { + if ("invalidchar" === n.token(a, r)) break + } + ro(a, "Expected Parser stream to be available."); + const o = e.line - 1, + s = a.getStartOfToken(), + l = a.getCurrentPosition(); + return new ci(new ui(o, s), new ui(o, l)) + } + const { + INLINE_FRAGMENT: co + } = I; + + function uo(e) { + let t; + try { + t = hr(e) + } catch (r) { + return null + } + const n = function(e) { + const t = t => ({ + representativeName: t.name, + startPosition: di(e, t.loc.start), + endPosition: di(e, t.loc.end), + kind: t.kind, + children: t.selectionSet || t.fields || t.values || t.arguments || [] + }); + return { + Field: e => { + const n = e.alias ? [po("plain", e.alias), po("plain", ": ")] : []; + return n.push(po("plain", e.name)), Object.assign({ + tokenizedText: n + }, t(e)) + }, + OperationDefinition: e => Object.assign({ + tokenizedText: [po("keyword", e.operation), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + Document: e => e.definitions, + SelectionSet: e => function(e, t) { + const n = []; + for (let r = 0; r < e.length; r++) { + const i = t(e[r], r); + Array.isArray(i) ? n.push(...i) : n.push(i) + } + return n + }(e.selections, (e => e.kind === co ? e.selectionSet : e)), + Name: e => e.value, + FragmentDefinition: e => Object.assign({ + tokenizedText: [po("keyword", "fragment"), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + InterfaceTypeDefinition: e => Object.assign({ + tokenizedText: [po("keyword", "interface"), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + EnumTypeDefinition: e => Object.assign({ + tokenizedText: [po("keyword", "enum"), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + EnumValueDefinition: e => Object.assign({ + tokenizedText: [po("plain", e.name)] + }, t(e)), + ObjectTypeDefinition: e => Object.assign({ + tokenizedText: [po("keyword", "type"), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + InputObjectTypeDefinition: e => Object.assign({ + tokenizedText: [po("keyword", "input"), po("whitespace", " "), po("class-name", e.name)] + }, t(e)), + FragmentSpread: e => Object.assign({ + tokenizedText: [po("plain", "..."), po("class-name", e.name)] + }, t(e)), + InputValueDefinition: e => Object.assign({ + tokenizedText: [po("plain", e.name)] + }, t(e)), + FieldDefinition: e => Object.assign({ + tokenizedText: [po("plain", e.name)] + }, t(e)), + InlineFragment: e => e.selectionSet + } + }(e); + return { + outlineTrees: W(t, { + leave: e => void 0 !== n && e.kind in n ? n[e.kind](e) : null + }) + } + } + + function po(e, t) { + return { + kind: e, + value: t + } + } + + function fo(e, t, n, r, i) { + const a = r || Hr(t, n); + if (!e || !a || !a.state) return ""; + const o = a.state, + s = o.kind, + l = o.step, + c = Zr(e, a.state), + u = Object.assign(Object.assign({}, i), { + schema: e + }); + if ("Field" === s && 0 === l && c.fieldDef || "AliasedField" === s && 2 === l && c.fieldDef) { + const e = []; + return mo(e, u), + function(e, t, n) { + go(e, t, n), vo(e, t, n, t.type) + }(e, c, u), ho(e, u), ko(e, u, c.fieldDef), e.join("").trim() + } + if ("Directive" === s && 1 === l && c.directiveDef) { + const e = []; + return mo(e, u), bo(e, c, u), ho(e, u), ko(e, u, c.directiveDef), e.join("").trim() + } + if ("Argument" === s && 0 === l && c.argDef) { + const e = []; + return mo(e, u), + function(e, t, n) { + t.directiveDef ? bo(e, t, n) : t.fieldDef && go(e, t, n); + if (!t.argDef) return; + const r = t.argDef.name; + xo(e, "("), xo(e, r), vo(e, t, n, t.inputType), xo(e, ")") + }(e, c, u), ho(e, u), ko(e, u, c.argDef), e.join("").trim() + } + if ("EnumValue" === s && c.enumValue && "description" in c.enumValue) { + const e = []; + return mo(e, u), + function(e, t, n) { + if (!t.enumValue) return; + const r = t.enumValue.name; + yo(e, t, n, t.inputType), xo(e, "."), xo(e, r) + }(e, c, u), ho(e, u), ko(e, u, c.enumValue), e.join("").trim() + } + if ("NamedType" === s && c.type && "description" in c.type) { + const e = []; + return mo(e, u), yo(e, c, u, c.type), ho(e, u), ko(e, u, c.type), e.join("").trim() + } + return "" + } + + function mo(e, t) { + t.useMarkdown && xo(e, "```graphql\n") + } + + function ho(e, t) { + t.useMarkdown && xo(e, "\n```") + } + + function go(e, t, n) { + if (!t.fieldDef) return; + const r = t.fieldDef.name; + "__" !== r.slice(0, 2) && (yo(e, t, n, t.parentType), xo(e, ".")), xo(e, r) + } + + function bo(e, t, n) { + if (!t.directiveDef) return; + xo(e, "@" + t.directiveDef.name) + } + + function vo(e, t, n, r) { + xo(e, ": "), yo(e, t, n, r) + } + + function yo(e, t, n, r) { + r && (r instanceof ve ? (yo(e, t, n, r.ofType), xo(e, "!")) : r instanceof be ? (xo(e, "["), yo(e, t, n, r.ofType), xo(e, "]")) : xo(e, r.name)) + } + + function ko(e, t, n) { + if (!n) return; + const r = "string" === typeof n.description ? n.description : null; + r && (xo(e, "\n\n"), xo(e, r)), + function(e, t, n) { + if (!n) return; + const r = n.deprecationReason ? n.deprecationReason : null; + if (!r) return; + xo(e, "\n\n"), xo(e, "Deprecated: "), xo(e, r) + }(e, 0, n) + } + + function xo(e, t) { + e.push(t) + } + const _o = { + Created: 1, + Changed: 2, + Deleted: 3 + }; + var wo; + ! function(e) { + e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25 + }(wo || (wo = {})) + }, + 47802: function(e) { + function t(e) { + return e instanceof Map ? e.clear = e.delete = e.set = function() { + throw new Error("map is read-only") + } : e instanceof Set && (e.add = e.clear = e.delete = function() { + throw new Error("set is read-only") + }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((function(n) { + var r = e[n]; + "object" != typeof r || Object.isFrozen(r) || t(r) + })), e + } + var n = t, + r = t; + n.default = r; + class i { + constructor(e) { + void 0 === e.data && (e.data = {}), this.data = e.data, this.isMatchIgnored = !1 + } + ignoreMatch() { + this.isMatchIgnored = !0 + } + } + + function a(e) { + return e.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'") + } + + function o(e, ...t) { + const n = Object.create(null); + for (const r in e) n[r] = e[r]; + return t.forEach((function(e) { + for (const t in e) n[t] = e[t] + })), n + } + const s = e => !!e.kind; + class l { + constructor(e, t) { + this.buffer = "", this.classPrefix = t.classPrefix, e.walk(this) + } + addText(e) { + this.buffer += a(e) + } + openNode(e) { + if (!s(e)) return; + let t = e.kind; + e.sublanguage || (t = `${this.classPrefix}${t}`), this.span(t) + } + closeNode(e) { + s(e) && (this.buffer += "") + } + value() { + return this.buffer + } + span(e) { + this.buffer += `` + } + } + class c { + constructor() { + this.rootNode = { + children: [] + }, this.stack = [this.rootNode] + } + get top() { + return this.stack[this.stack.length - 1] + } + get root() { + return this.rootNode + } + add(e) { + this.top.children.push(e) + } + openNode(e) { + const t = { + kind: e, + children: [] + }; + this.add(t), this.stack.push(t) + } + closeNode() { + if (this.stack.length > 1) return this.stack.pop() + } + closeAllNodes() { + for (; this.closeNode();); + } + toJSON() { + return JSON.stringify(this.rootNode, null, 4) + } + walk(e) { + return this.constructor._walk(e, this.rootNode) + } + static _walk(e, t) { + return "string" === typeof t ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((t => this._walk(e, t))), e.closeNode(t)), e + } + static _collapse(e) { + "string" !== typeof e && e.children && (e.children.every((e => "string" === typeof e)) ? e.children = [e.children.join("")] : e.children.forEach((e => { + c._collapse(e) + }))) + } + } + class u extends c { + constructor(e) { + super(), this.options = e + } + addKeyword(e, t) { + "" !== e && (this.openNode(t), this.addText(e), this.closeNode()) + } + addText(e) { + "" !== e && this.add(e) + } + addSublanguage(e, t) { + const n = e.root; + n.kind = t, n.sublanguage = !0, this.add(n) + } + toHTML() { + return new l(this, this.options).value() + } + finalize() { + return !0 + } + } + + function d(e) { + return e ? "string" === typeof e ? e : e.source : null + } + const p = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; + const f = "[a-zA-Z]\\w*", + m = "[a-zA-Z_]\\w*", + h = "\\b\\d+(\\.\\d+)?", + g = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", + b = "\\b(0b[01]+)", + v = { + begin: "\\\\[\\s\\S]", + relevance: 0 + }, + y = { + className: "string", + begin: "'", + end: "'", + illegal: "\\n", + contains: [v] + }, + k = { + className: "string", + begin: '"', + end: '"', + illegal: "\\n", + contains: [v] + }, + x = { + begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ + }, + _ = function(e, t, n = {}) { + const r = o({ + className: "comment", + begin: e, + end: t, + contains: [] + }, n); + return r.contains.push(x), r.contains.push({ + className: "doctag", + begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", + relevance: 0 + }), r + }, + w = _("//", "$"), + E = _("/\\*", "\\*/"), + T = _("#", "$"), + S = { + className: "number", + begin: h, + relevance: 0 + }, + I = { + className: "number", + begin: g, + relevance: 0 + }, + N = { + className: "number", + begin: b, + relevance: 0 + }, + A = { + className: "number", + begin: h + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", + relevance: 0 + }, + O = { + begin: /(?=\/[^/\n]*\/)/, + contains: [{ + className: "regexp", + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [v, { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [v] + }] + }] + }, + C = { + className: "title", + begin: f, + relevance: 0 + }, + D = { + className: "title", + begin: m, + relevance: 0 + }, + R = { + begin: "\\.\\s*[a-zA-Z_]\\w*", + relevance: 0 + }; + var M = Object.freeze({ + __proto__: null, + MATCH_NOTHING_RE: /\b\B/, + IDENT_RE: f, + UNDERSCORE_IDENT_RE: m, + NUMBER_RE: h, + C_NUMBER_RE: g, + BINARY_NUMBER_RE: b, + RE_STARTERS_RE: "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", + SHEBANG: (e = {}) => { + const t = /^#![ ]*\//; + return e.binary && (e.begin = function(...e) { + return e.map((e => d(e))).join("") + }(t, /.*\b/, e.binary, /\b.*/)), o({ + className: "meta", + begin: t, + end: /$/, + relevance: 0, + "on:begin": (e, t) => { + 0 !== e.index && t.ignoreMatch() + } + }, e) + }, + BACKSLASH_ESCAPE: v, + APOS_STRING_MODE: y, + QUOTE_STRING_MODE: k, + PHRASAL_WORDS_MODE: x, + COMMENT: _, + C_LINE_COMMENT_MODE: w, + C_BLOCK_COMMENT_MODE: E, + HASH_COMMENT_MODE: T, + NUMBER_MODE: S, + C_NUMBER_MODE: I, + BINARY_NUMBER_MODE: N, + CSS_NUMBER_MODE: A, + REGEXP_MODE: O, + TITLE_MODE: C, + UNDERSCORE_TITLE_MODE: D, + METHOD_GUARD: R, + END_SAME_AS_BEGIN: function(e) { + return Object.assign(e, { + "on:begin": (e, t) => { + t.data._beginMatch = e[1] + }, + "on:end": (e, t) => { + t.data._beginMatch !== e[1] && t.ignoreMatch() + } + }) + } + }); + + function L(e, t) { + "." === e.input[e.index - 1] && t.ignoreMatch() + } + + function z(e, t) { + t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = L, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, void 0 === e.relevance && (e.relevance = 0)) + } + + function F(e, t) { + Array.isArray(e.illegal) && (e.illegal = function(...e) { + return "(" + e.map((e => d(e))).join("|") + ")" + }(...e.illegal)) + } + + function $(e, t) { + if (e.match) { + if (e.begin || e.end) throw new Error("begin & end are not supported with match"); + e.begin = e.match, delete e.match + } + } + + function P(e, t) { + void 0 === e.relevance && (e.relevance = 1) + } + const U = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"]; + + function j(e, t, n = "keyword") { + const r = {}; + return "string" === typeof e ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach((function(n) { + Object.assign(r, j(e[n], t, n)) + })), r; + + function i(e, n) { + t && (n = n.map((e => e.toLowerCase()))), n.forEach((function(t) { + const n = t.split("|"); + r[n[0]] = [e, q(n[0], n[1])] + })) + } + } + + function q(e, t) { + return t ? Number(t) : function(e) { + return U.includes(e.toLowerCase()) + }(e) ? 0 : 1 + } + + function B(e, { + plugins: t + }) { + function n(t, n) { + return new RegExp(d(t), "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : "")) + } + class r { + constructor() { + this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0 + } + addRule(e, t) { + t.position = this.position++, this.matchIndexes[this.matchAt] = t, this.regexes.push([t, e]), this.matchAt += function(e) { + return new RegExp(e.toString() + "|").exec("").length - 1 + }(e) + 1 + } + compile() { + 0 === this.regexes.length && (this.exec = () => null); + const e = this.regexes.map((e => e[1])); + this.matcherRe = n(function(e, t = "|") { + let n = 0; + return e.map((e => { + n += 1; + const t = n; + let r = d(e), + i = ""; + for (; r.length > 0;) { + const e = p.exec(r); + if (!e) { + i += r; + break + } + i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), "\\" === e[0][0] && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], "(" === e[0] && n++) + } + return i + })).map((e => `(${e})`)).join(t) + }(e), !0), this.lastIndex = 0 + } + exec(e) { + this.matcherRe.lastIndex = this.lastIndex; + const t = this.matcherRe.exec(e); + if (!t) return null; + const n = t.findIndex(((e, t) => t > 0 && void 0 !== e)), + r = this.matchIndexes[n]; + return t.splice(0, n), Object.assign(t, r) + } + } + class i { + constructor() { + this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0 + } + getMatcher(e) { + if (this.multiRegexes[e]) return this.multiRegexes[e]; + const t = new r; + return this.rules.slice(e).forEach((([e, n]) => t.addRule(e, n))), t.compile(), this.multiRegexes[e] = t, t + } + resumingScanAtSamePosition() { + return 0 !== this.regexIndex + } + considerAll() { + this.regexIndex = 0 + } + addRule(e, t) { + this.rules.push([e, t]), "begin" === t.type && this.count++ + } + exec(e) { + const t = this.getMatcher(this.regexIndex); + t.lastIndex = this.lastIndex; + let n = t.exec(e); + if (this.resumingScanAtSamePosition()) + if (n && n.index === this.lastIndex); + else { + const t = this.getMatcher(0); + t.lastIndex = this.lastIndex + 1, n = t.exec(e) + } + return n && (this.regexIndex += n.position + 1, this.regexIndex === this.count && this.considerAll()), n + } + } + if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation."); + return e.classNameAliases = o(e.classNameAliases || {}), + function t(r, a) { + const s = r; + if (r.isCompiled) return s; + [$].forEach((e => e(r, a))), e.compilerExtensions.forEach((e => e(r, a))), r.__beforeBegin = null, [z, F, P].forEach((e => e(r, a))), r.isCompiled = !0; + let l = null; + if ("object" === typeof r.keywords && (l = r.keywords.$pattern, delete r.keywords.$pattern), r.keywords && (r.keywords = j(r.keywords, e.case_insensitive)), r.lexemes && l) throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) "); + return l = l || r.lexemes || /\w+/, s.keywordPatternRe = n(l, !0), a && (r.begin || (r.begin = /\B|\b/), s.beginRe = n(r.begin), r.endSameAsBegin && (r.end = r.begin), r.end || r.endsWithParent || (r.end = /\B|\b/), r.end && (s.endRe = n(r.end)), s.terminatorEnd = d(r.end) || "", r.endsWithParent && a.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + a.terminatorEnd)), r.illegal && (s.illegalRe = n(r.illegal)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map((function(e) { + return function(e) { + e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map((function(t) { + return o(e, { + variants: null + }, t) + }))); + if (e.cachedVariants) return e.cachedVariants; + if (V(e)) return o(e, { + starts: e.starts ? o(e.starts) : null + }); + if (Object.isFrozen(e)) return o(e); + return e + }("self" === e ? r : e) + }))), r.contains.forEach((function(e) { + t(e, s) + })), r.starts && t(r.starts, a), s.matcher = function(e) { + const t = new i; + return e.contains.forEach((e => t.addRule(e.begin, { + rule: e, + type: "begin" + }))), e.terminatorEnd && t.addRule(e.terminatorEnd, { + type: "end" + }), e.illegal && t.addRule(e.illegal, { + type: "illegal" + }), t + }(s), s + }(e) + } + + function V(e) { + return !!e && (e.endsWithParent || V(e.starts)) + } + + function W(e) { + const t = { + props: ["language", "code", "autodetect"], + data: function() { + return { + detectedLanguage: "", + unknownLanguage: !1 + } + }, + computed: { + className() { + return this.unknownLanguage ? "" : "hljs " + this.detectedLanguage + }, + highlighted() { + if (!this.autoDetect && !e.getLanguage(this.language)) return console.warn(`The language "${this.language}" you specified could not be found.`), this.unknownLanguage = !0, a(this.code); + let t = {}; + return this.autoDetect ? (t = e.highlightAuto(this.code), this.detectedLanguage = t.language) : (t = e.highlight(this.language, this.code, this.ignoreIllegals), this.detectedLanguage = this.language), t.value + }, + autoDetect() { + return !this.language || (e = this.autodetect, Boolean(e || "" === e)); + var e + }, + ignoreIllegals: () => !0 + }, + render(e) { + return e("pre", {}, [e("code", { + class: this.className, + domProps: { + innerHTML: this.highlighted + } + })]) + } + }; + return { + Component: t, + VuePlugin: { + install(e) { + e.component("highlightjs", t) + } + } + } + } + const G = { + "after:highlightElement": ({ + el: e, + result: t, + text: n + }) => { + const r = K(e); + if (!r.length) return; + const i = document.createElement("div"); + i.innerHTML = t.value, t.value = function(e, t, n) { + let r = 0, + i = ""; + const o = []; + + function s() { + return e.length && t.length ? e[0].offset !== t[0].offset ? e[0].offset < t[0].offset ? e : t : "start" === t[0].event ? e : t : e.length ? e : t + } + + function l(e) { + function t(e) { + return " " + e.nodeName + '="' + a(e.value) + '"' + } + i += "<" + H(e) + [].map.call(e.attributes, t).join("") + ">" + } + + function c(e) { + i += "" + } + + function u(e) { + ("start" === e.event ? l : c)(e.node) + } + for (; e.length || t.length;) { + let t = s(); + if (i += a(n.substring(r, t[0].offset)), r = t[0].offset, t === e) { + o.reverse().forEach(c); + do { + u(t.splice(0, 1)[0]), t = s() + } while (t === e && t.length && t[0].offset === r); + o.reverse().forEach(l) + } else "start" === t[0].event ? o.push(t[0].node) : o.pop(), u(t.splice(0, 1)[0]) + } + return i + a(n.substr(r)) + }(r, K(i), n) + } + }; + + function H(e) { + return e.nodeName.toLowerCase() + } + + function K(e) { + const t = []; + return function e(n, r) { + for (let i = n.firstChild; i; i = i.nextSibling) 3 === i.nodeType ? r += i.nodeValue.length : 1 === i.nodeType && (t.push({ + event: "start", + offset: r, + node: i + }), r = e(i, r), H(i).match(/br|hr|img|input/) || t.push({ + event: "stop", + offset: r, + node: i + })); + return r + }(e, 0), t + } + const Y = {}, + Z = e => { + console.error(e) + }, + X = (e, ...t) => { + console.log(`WARN: ${e}`, ...t) + }, + Q = (e, t) => { + Y[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Y[`${e}/${t}`] = !0) + }, + J = a, + ee = o, + te = Symbol("nomatch"); + var ne = function(e) { + const t = Object.create(null), + r = Object.create(null), + a = []; + let o = !0; + const s = /(^(<[^>]+>|\t|)+|\n)/gm, + l = "Could not find the language '{}', did you forget to load/include a language module?", + c = { + disableAutodetect: !0, + name: "Plain text", + contains: [] + }; + let d = { + noHighlightRe: /^(no-?highlight)$/i, + languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, + classPrefix: "hljs-", + tabReplace: null, + useBR: !1, + languages: null, + __emitter: u + }; + + function p(e) { + return d.noHighlightRe.test(e) + } + + function f(e, t, n, r) { + let i = "", + a = ""; + "object" === typeof t ? (i = e, n = t.ignoreIllegals, a = t.language, r = void 0) : (Q("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Q("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = t); + const o = { + code: i, + language: a + }; + S("before:highlight", o); + const s = o.result ? o.result : m(o.language, o.code, n, r); + return s.code = o.code, S("after:highlight", s), s + } + + function m(e, n, r, s) { + function c(e, t) { + const n = x.case_insensitive ? t[0].toLowerCase() : t[0]; + return Object.prototype.hasOwnProperty.call(e.keywords, n) && e.keywords[n] + } + + function u() { + null != T.subLanguage ? function() { + if ("" === N) return; + let e = null; + if ("string" === typeof T.subLanguage) { + if (!t[T.subLanguage]) return void I.addText(N); + e = m(T.subLanguage, N, !0, S[T.subLanguage]), S[T.subLanguage] = e.top + } else e = h(N, T.subLanguage.length ? T.subLanguage : null); + T.relevance > 0 && (A += e.relevance), I.addSublanguage(e.emitter, e.language) + }() : function() { + if (!T.keywords) return void I.addText(N); + let e = 0; + T.keywordPatternRe.lastIndex = 0; + let t = T.keywordPatternRe.exec(N), + n = ""; + for (; t;) { + n += N.substring(e, t.index); + const r = c(T, t); + if (r) { + const [e, i] = r; + if (I.addText(n), n = "", A += i, e.startsWith("_")) n += t[0]; + else { + const n = x.classNameAliases[e] || e; + I.addKeyword(t[0], n) + } + } else n += t[0]; + e = T.keywordPatternRe.lastIndex, t = T.keywordPatternRe.exec(N) + } + n += N.substr(e), I.addText(n) + }(), N = "" + } + + function p(e) { + return e.className && I.openNode(x.classNameAliases[e.className] || e.className), T = Object.create(e, { + parent: { + value: T + } + }), T + } + + function f(e, t, n) { + let r = function(e, t) { + const n = e && e.exec(t); + return n && 0 === n.index + }(e.endRe, n); + if (r) { + if (e["on:end"]) { + const n = new i(e); + e["on:end"](t, n), n.isMatchIgnored && (r = !1) + } + if (r) { + for (; e.endsParent && e.parent;) e = e.parent; + return e + } + } + if (e.endsWithParent) return f(e.parent, t, n) + } + + function g(e) { + return 0 === T.matcher.regexIndex ? (N += e[0], 1) : (D = !0, 0) + } + + function b(e) { + const t = e[0], + n = e.rule, + r = new i(n), + a = [n.__beforeBegin, n["on:begin"]]; + for (const i of a) + if (i && (i(e, r), r.isMatchIgnored)) return g(t); + return n && n.endSameAsBegin && (n.endRe = new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "m")), n.skip ? N += t : (n.excludeBegin && (N += t), u(), n.returnBegin || n.excludeBegin || (N = t)), p(n), n.returnBegin ? 0 : t.length + } + + function v(e) { + const t = e[0], + r = n.substr(e.index), + i = f(T, e, r); + if (!i) return te; + const a = T; + a.skip ? N += t : (a.returnEnd || a.excludeEnd || (N += t), u(), a.excludeEnd && (N = t)); + do { + T.className && I.closeNode(), T.skip || T.subLanguage || (A += T.relevance), T = T.parent + } while (T !== i.parent); + return i.starts && (i.endSameAsBegin && (i.starts.endRe = i.endRe), p(i.starts)), a.returnEnd ? 0 : t.length + } + let y = {}; + + function k(t, i) { + const a = i && i[0]; + if (N += t, null == a) return u(), 0; + if ("begin" === y.type && "end" === i.type && y.index === i.index && "" === a) { + if (N += n.slice(i.index, i.index + 1), !o) { + const t = new Error("0 width match regex"); + throw t.languageName = e, t.badRule = y.rule, t + } + return 1 + } + if (y = i, "begin" === i.type) return b(i); + if ("illegal" === i.type && !r) { + const e = new Error('Illegal lexeme "' + a + '" for mode "' + (T.className || "") + '"'); + throw e.mode = T, e + } + if ("end" === i.type) { + const e = v(i); + if (e !== te) return e + } + if ("illegal" === i.type && "" === a) return 1; + if (C > 1e5 && C > 3 * i.index) { + throw new Error("potential infinite loop, way more iterations than matches") + } + return N += a, a.length + } + const x = w(e); + if (!x) throw Z(l.replace("{}", e)), new Error('Unknown language: "' + e + '"'); + const _ = B(x, { + plugins: a + }); + let E = "", + T = s || _; + const S = {}, + I = new d.__emitter(d); + ! function() { + const e = []; + for (let t = T; t !== x; t = t.parent) t.className && e.unshift(t.className); + e.forEach((e => I.openNode(e))) + }(); + let N = "", + A = 0, + O = 0, + C = 0, + D = !1; + try { + for (T.matcher.considerAll();;) { + C++, D ? D = !1 : T.matcher.considerAll(), T.matcher.lastIndex = O; + const e = T.matcher.exec(n); + if (!e) break; + const t = k(n.substring(O, e.index), e); + O = e.index + t + } + return k(n.substr(O)), I.closeAllNodes(), I.finalize(), E = I.toHTML(), { + relevance: Math.floor(A), + value: E, + language: e, + illegal: !1, + emitter: I, + top: T + } + } catch (R) { + if (R.message && R.message.includes("Illegal")) return { + illegal: !0, + illegalBy: { + msg: R.message, + context: n.slice(O - 100, O + 100), + mode: R.mode + }, + sofar: E, + relevance: 0, + value: J(n), + emitter: I + }; + if (o) return { + illegal: !1, + relevance: 0, + value: J(n), + emitter: I, + language: e, + top: T, + errorRaised: R + }; + throw R + } + } + + function h(e, n) { + n = n || d.languages || Object.keys(t); + const r = function(e) { + const t = { + relevance: 0, + emitter: new d.__emitter(d), + value: J(e), + illegal: !1, + top: c + }; + return t.emitter.addText(e), t + }(e), + i = n.filter(w).filter(T).map((t => m(t, e, !1))); + i.unshift(r); + const a = i.sort(((e, t) => { + if (e.relevance !== t.relevance) return t.relevance - e.relevance; + if (e.language && t.language) { + if (w(e.language).supersetOf === t.language) return 1; + if (w(t.language).supersetOf === e.language) return -1 + } + return 0 + })), + [o, s] = a, + l = o; + return l.second_best = s, l + } + const g = { + "before:highlightElement": ({ + el: e + }) => { + d.useBR && (e.innerHTML = e.innerHTML.replace(/\n/g, "").replace(//g, "\n")) + }, + "after:highlightElement": ({ + result: e + }) => { + d.useBR && (e.value = e.value.replace(/\n/g, "
")) + } + }, + b = /^(<[^>]+>|\t)+/gm, + v = { + "after:highlightElement": ({ + result: e + }) => { + d.tabReplace && (e.value = e.value.replace(b, (e => e.replace(/\t/g, d.tabReplace)))) + } + }; + + function y(e) { + let t = null; + const n = function(e) { + let t = e.className + " "; + t += e.parentNode ? e.parentNode.className : ""; + const n = d.languageDetectRe.exec(t); + if (n) { + const t = w(n[1]); + return t || (X(l.replace("{}", n[1])), X("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight" + } + return t.split(/\s+/).find((e => p(e) || w(e))) + }(e); + if (p(n)) return; + S("before:highlightElement", { + el: e, + language: n + }), t = e; + const i = t.textContent, + a = n ? f(i, { + language: n, + ignoreIllegals: !0 + }) : h(i); + S("after:highlightElement", { + el: e, + result: a, + text: i + }), e.innerHTML = a.value, + function(e, t, n) { + const i = t ? r[t] : n; + e.classList.add("hljs"), i && e.classList.add(i) + }(e, n, a.language), e.result = { + language: a.language, + re: a.relevance, + relavance: a.relevance + }, a.second_best && (e.second_best = { + language: a.second_best.language, + re: a.second_best.relevance, + relavance: a.second_best.relevance + }) + } + const k = () => { + if (k.called) return; + k.called = !0, Q("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."); + document.querySelectorAll("pre code").forEach(y) + }; + let x = !1; + + function _() { + if ("loading" === document.readyState) return void(x = !0); + document.querySelectorAll("pre code").forEach(y) + } + + function w(e) { + return e = (e || "").toLowerCase(), t[e] || t[r[e]] + } + + function E(e, { + languageName: t + }) { + "string" === typeof e && (e = [e]), e.forEach((e => { + r[e.toLowerCase()] = t + })) + } + + function T(e) { + const t = w(e); + return t && !t.disableAutodetect + } + + function S(e, t) { + const n = e; + a.forEach((function(e) { + e[n] && e[n](t) + })) + } + "undefined" !== typeof window && window.addEventListener && window.addEventListener("DOMContentLoaded", (function() { + x && _() + }), !1), Object.assign(e, { + highlight: f, + highlightAuto: h, + highlightAll: _, + fixMarkup: function(e) { + return Q("10.2.0", "fixMarkup will be removed entirely in v11.0"), Q("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"), t = e, d.tabReplace || d.useBR ? t.replace(s, (e => "\n" === e ? d.useBR ? "
" : e : d.tabReplace ? e.replace(/\t/g, d.tabReplace) : e)) : t; + var t + }, + highlightElement: y, + highlightBlock: function(e) { + return Q("10.7.0", "highlightBlock will be removed entirely in v12.0"), Q("10.7.0", "Please use highlightElement now."), y(e) + }, + configure: function(e) { + e.useBR && (Q("10.3.0", "'useBR' will be removed entirely in v11.0"), Q("10.3.0", "Please see https://github.com/highlightjs/highlight.js/issues/2559")), d = ee(d, e) + }, + initHighlighting: k, + initHighlightingOnLoad: function() { + Q("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), x = !0 + }, + registerLanguage: function(n, r) { + let i = null; + try { + i = r(e) + } catch (a) { + if (Z("Language definition for '{}' could not be registered.".replace("{}", n)), !o) throw a; + Z(a), i = c + } + i.name || (i.name = n), t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && E(i.aliases, { + languageName: n + }) + }, + unregisterLanguage: function(e) { + delete t[e]; + for (const t of Object.keys(r)) r[t] === e && delete r[t] + }, + listLanguages: function() { + return Object.keys(t) + }, + getLanguage: w, + registerAliases: E, + requireLanguage: function(e) { + Q("10.4.0", "requireLanguage will be removed entirely in v11."), Q("10.4.0", "Please see https://github.com/highlightjs/highlight.js/pull/2844"); + const t = w(e); + if (t) return t; + throw new Error("The '{}' language is required, but not loaded.".replace("{}", e)) + }, + autoDetection: T, + inherit: ee, + addPlugin: function(e) { + ! function(e) { + e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = t => { + e["before:highlightBlock"](Object.assign({ + block: t.el + }, t)) + }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = t => { + e["after:highlightBlock"](Object.assign({ + block: t.el + }, t)) + }) + }(e), a.push(e) + }, + vuePlugin: W(e).VuePlugin + }), e.debugMode = function() { + o = !1 + }, e.safeMode = function() { + o = !0 + }, e.versionString = "10.7.3"; + for (const i in M) "object" === typeof M[i] && n(M[i]); + return Object.assign(e, M), e.addPlugin(g), e.addPlugin(G), e.addPlugin(v), e + }({}); + e.exports = ne + }, + 96344: function(e) { + const t = "[A-Za-z$_][0-9A-Za-z$_]*", + n = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends"], + r = ["true", "false", "null", "undefined", "NaN", "Infinity"], + i = [].concat(["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], ["arguments", "this", "super", "console", "window", "document", "localStorage", "module", "global"], ["Intl", "DataView", "Number", "Math", "Date", "String", "RegExp", "Object", "Function", "Boolean", "Error", "Symbol", "Set", "Map", "WeakSet", "WeakMap", "Proxy", "Reflect", "JSON", "Promise", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Float32Array", "Array", "Uint8Array", "Uint8ClampedArray", "ArrayBuffer", "BigInt64Array", "BigUint64Array", "BigInt"], ["EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"]); + + function a(e) { + return o("(?=", e, ")") + } + + function o(...e) { + return e.map((e => { + return (t = e) ? "string" === typeof t ? t : t.source : null; + var t + })).join("") + } + e.exports = function(e) { + const s = t, + l = "<>", + c = "", + u = { + begin: /<[A-Za-z0-9\\._:-]+/, + end: /\/[A-Za-z0-9\\._:-]+>|\/>/, + isTrulyOpeningTag: (e, t) => { + const n = e[0].length + e.index, + r = e.input[n]; + "<" !== r ? ">" === r && (((e, { + after: t + }) => { + const n = "", + returnBegin: !0, + end: "\\s*=>", + contains: [{ + className: "params", + variants: [{ + begin: e.UNDERSCORE_IDENT_RE, + relevance: 0 + }, { + className: null, + begin: /\(\s*\)/, + skip: !0 + }, { + begin: /\(/, + end: /\)/, + excludeBegin: !0, + excludeEnd: !0, + keywords: d, + contains: _ + }] + }] + }, { + begin: /,/, + relevance: 0 + }, { + className: "", + begin: /\s/, + end: /\s*/, + skip: !0 + }, { + variants: [{ + begin: l, + end: c + }, { + begin: u.begin, + "on:begin": u.isTrulyOpeningTag, + end: u.end + }], + subLanguage: "xml", + contains: [{ + begin: u.begin, + end: u.end, + skip: !0, + contains: ["self"] + }] + }], + relevance: 0 + }, { + className: "function", + beginKeywords: "function", + end: /[{;]/, + excludeEnd: !0, + keywords: d, + contains: ["self", e.inherit(e.TITLE_MODE, { + begin: s + }), w], + illegal: /%/ + }, { + beginKeywords: "while if switch catch for" + }, { + className: "function", + begin: e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", + returnBegin: !0, + contains: [w, e.inherit(e.TITLE_MODE, { + begin: s + })] + }, { + variants: [{ + begin: "\\." + s + }, { + begin: "\\$" + s + }], + relevance: 0 + }, { + className: "class", + beginKeywords: "class", + end: /[{;=]/, + excludeEnd: !0, + illegal: /[:"[\]]/, + contains: [{ + beginKeywords: "extends" + }, e.UNDERSCORE_TITLE_MODE] + }, { + begin: /\b(?=constructor)/, + end: /[{;]/, + excludeEnd: !0, + contains: [e.inherit(e.TITLE_MODE, { + begin: s + }), "self", w] + }, { + begin: "(get|set)\\s+(?=" + s + "\\()", + end: /\{/, + keywords: "get set", + contains: [e.inherit(e.TITLE_MODE, { + begin: s + }), { + begin: /\(\)/ + }, w] + }, { + begin: /\$[(.]/ + }] + } + } + }, + 11163: function(e, t, n) { + e.exports = n(80880) + }, + 84357: function(e) { + "use strict"; + + function t(e, t) { + if (null != e) return e; + var n = new Error(void 0 !== t ? t : "Got unexpected " + e); + throw n.framesToPop = 1, n + } + e.exports = t, e.exports.default = t, Object.defineProperty(e.exports, "__esModule", { + value: !0 + }) + }, + 29656: function(e, t, n) { + "use strict"; + + function r() { + return r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }, r.apply(this, arguments) + } + + function i(e) { + return i = "function" === typeof Symbol && "symbol" === typeof Symbol.iterator ? function(e) { + return typeof e + } : function(e) { + return e && "function" === typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + }, i(e) + } + var a = function() { + var e = function(t, n) { + return e = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, e(t, n) + }; + return function(t, n) { + function r() { + this.constructor = t + } + e(t, n), t.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r) + } + }(); + t.fk = void 0; + var o, s = n(67294), + l = "undefined" === typeof navigator || !0 === n.g.PREVENT_CODEMIRROR_RENDER; + l || (o = n(4631)); + var c = function() { + function e() {} + return e.equals = function(e, t) { + var n = this, + r = Object.keys, + a = i(e), + o = i(t); + return e && t && "object" === a && a === o ? r(e).length === r(t).length && r(e).every((function(r) { + return n.equals(e[r], t[r]) + })) : e === t + }, e + }(), + u = function() { + function e(e, t) { + this.editor = e, this.props = t + } + return e.prototype.delegateCursor = function(e, t, n) { + var r = this.editor.getDoc(); + n && this.editor.focus(), t ? r.setCursor(e) : r.setCursor(e, null, { + scroll: !1 + }) + }, e.prototype.delegateScroll = function(e) { + this.editor.scrollTo(e.x, e.y) + }, e.prototype.delegateSelection = function(e, t) { + this.editor.getDoc().setSelections(e), t && this.editor.focus() + }, e.prototype.apply = function(e) { + e && e.selection && e.selection.ranges && this.delegateSelection(e.selection.ranges, e.selection.focus || !1), e && e.cursor && this.delegateCursor(e.cursor, e.autoScroll || !1, this.editor.getOption("autofocus") || !1), e && e.scroll && this.delegateScroll(e.scroll) + }, e.prototype.applyNext = function(e, t, n) { + e && e.selection && e.selection.ranges && t && t.selection && t.selection.ranges && !c.equals(e.selection.ranges, t.selection.ranges) && this.delegateSelection(t.selection.ranges, t.selection.focus || !1), e && e.cursor && t && t.cursor && !c.equals(e.cursor, t.cursor) && this.delegateCursor(n.cursor || t.cursor, t.autoScroll || !1, t.autoCursor || !1), e && e.scroll && t && t.scroll && !c.equals(e.scroll, t.scroll) && this.delegateScroll(t.scroll) + }, e.prototype.applyUserDefined = function(e, t) { + t && t.cursor && this.delegateCursor(t.cursor, e.autoScroll || !1, this.editor.getOption("autofocus") || !1) + }, e.prototype.wire = function(e) { + var t = this; + Object.keys(e || {}).filter((function(e) { + return /^on/.test(e) + })).forEach((function(e) { + switch (e) { + case "onBlur": + t.editor.on("blur", (function(e, n) { + t.props.onBlur(t.editor, n) + })); + break; + case "onContextMenu": + t.editor.on("contextmenu", (function(e, n) { + t.props.onContextMenu(t.editor, n) + })); + break; + case "onCopy": + t.editor.on("copy", (function(e, n) { + t.props.onCopy(t.editor, n) + })); + break; + case "onCursor": + t.editor.on("cursorActivity", (function(e) { + t.props.onCursor(t.editor, t.editor.getDoc().getCursor()) + })); + break; + case "onCursorActivity": + t.editor.on("cursorActivity", (function(e) { + t.props.onCursorActivity(t.editor) + })); + break; + case "onCut": + t.editor.on("cut", (function(e, n) { + t.props.onCut(t.editor, n) + })); + break; + case "onDblClick": + t.editor.on("dblclick", (function(e, n) { + t.props.onDblClick(t.editor, n) + })); + break; + case "onDragEnter": + t.editor.on("dragenter", (function(e, n) { + t.props.onDragEnter(t.editor, n) + })); + break; + case "onDragLeave": + t.editor.on("dragleave", (function(e, n) { + t.props.onDragLeave(t.editor, n) + })); + break; + case "onDragOver": + t.editor.on("dragover", (function(e, n) { + t.props.onDragOver(t.editor, n) + })); + break; + case "onDragStart": + t.editor.on("dragstart", (function(e, n) { + t.props.onDragStart(t.editor, n) + })); + break; + case "onDrop": + t.editor.on("drop", (function(e, n) { + t.props.onDrop(t.editor, n) + })); + break; + case "onFocus": + t.editor.on("focus", (function(e, n) { + t.props.onFocus(t.editor, n) + })); + break; + case "onGutterClick": + t.editor.on("gutterClick", (function(e, n, r, i) { + t.props.onGutterClick(t.editor, n, r, i) + })); + break; + case "onInputRead": + t.editor.on("inputRead", (function(e, n) { + t.props.onInputRead(t.editor, n) + })); + break; + case "onKeyDown": + t.editor.on("keydown", (function(e, n) { + t.props.onKeyDown(t.editor, n) + })); + break; + case "onKeyHandled": + t.editor.on("keyHandled", (function(e, n, r) { + t.props.onKeyHandled(t.editor, n, r) + })); + break; + case "onKeyPress": + t.editor.on("keypress", (function(e, n) { + t.props.onKeyPress(t.editor, n) + })); + break; + case "onKeyUp": + t.editor.on("keyup", (function(e, n) { + t.props.onKeyUp(t.editor, n) + })); + break; + case "onMouseDown": + t.editor.on("mousedown", (function(e, n) { + t.props.onMouseDown(t.editor, n) + })); + break; + case "onPaste": + t.editor.on("paste", (function(e, n) { + t.props.onPaste(t.editor, n) + })); + break; + case "onRenderLine": + t.editor.on("renderLine", (function(e, n, r) { + t.props.onRenderLine(t.editor, n, r) + })); + break; + case "onScroll": + t.editor.on("scroll", (function(e) { + t.props.onScroll(t.editor, t.editor.getScrollInfo()) + })); + break; + case "onSelection": + t.editor.on("beforeSelectionChange", (function(e, n) { + t.props.onSelection(t.editor, n) + })); + break; + case "onTouchStart": + t.editor.on("touchstart", (function(e, n) { + t.props.onTouchStart(t.editor, n) + })); + break; + case "onUpdate": + t.editor.on("update", (function(e) { + t.props.onUpdate(t.editor) + })); + break; + case "onViewportChange": + t.editor.on("viewportChange", (function(e, n, r) { + t.props.onViewportChange(t.editor, n, r) + })) + } + })) + }, e + }(), + d = function(e) { + function t(t) { + var n = e.call(this, t) || this; + return l || (n.applied = !1, n.appliedNext = !1, n.appliedUserDefined = !1, n.deferred = null, n.emulating = !1, n.hydrated = !1, n.initCb = function() { + n.props.editorDidConfigure && n.props.editorDidConfigure(n.editor) + }, n.mounted = !1), n + } + return a(t, e), t.prototype.hydrate = function(e) { + var t = this, + n = e && e.options ? e.options : {}, + i = r({}, o.defaults, this.editor.options, n); + Object.keys(i).some((function(e) { + return t.editor.getOption(e) !== i[e] + })) && Object.keys(i).forEach((function(e) { + n.hasOwnProperty(e) && t.editor.getOption(e) !== i[e] && (t.editor.setOption(e, i[e]), t.mirror.setOption(e, i[e])) + })), this.hydrated || (this.deferred ? this.resolveChange(e.value) : this.initChange(e.value || "")), this.hydrated = !0 + }, t.prototype.initChange = function(e) { + this.emulating = !0; + var t = this.editor.getDoc(), + n = t.lastLine(), + r = t.getLine(t.lastLine()).length; + t.replaceRange(e || "", { + line: 0, + ch: 0 + }, { + line: n, + ch: r + }), this.mirror.setValue(e), t.clearHistory(), this.mirror.clearHistory(), this.emulating = !1 + }, t.prototype.resolveChange = function(e) { + this.emulating = !0; + var t = this.editor.getDoc(); + if ("undo" === this.deferred.origin ? t.undo() : "redo" === this.deferred.origin ? t.redo() : t.replaceRange(this.deferred.text, this.deferred.from, this.deferred.to, this.deferred.origin), e && e !== t.getValue()) { + var n = t.getCursor(); + t.setValue(e), t.setCursor(n) + } + this.emulating = !1, this.deferred = null + }, t.prototype.mirrorChange = function(e) { + var t = this.editor.getDoc(); + return "undo" === e.origin ? (t.setHistory(this.mirror.getHistory()), this.mirror.undo()) : "redo" === e.origin ? (t.setHistory(this.mirror.getHistory()), this.mirror.redo()) : this.mirror.replaceRange(e.text, e.from, e.to, e.origin), this.mirror.getValue() + }, t.prototype.componentDidMount = function() { + var e = this; + l || (this.props.defineMode && this.props.defineMode.name && this.props.defineMode.fn && o.defineMode(this.props.defineMode.name, this.props.defineMode.fn), this.editor = o(this.ref, this.props.options), this.shared = new u(this.editor, this.props), this.mirror = o((function() {}), this.props.options), this.editor.on("electricInput", (function() { + e.mirror.setHistory(e.editor.getDoc().getHistory()) + })), this.editor.on("cursorActivity", (function() { + e.mirror.setCursor(e.editor.getDoc().getCursor()) + })), this.editor.on("beforeChange", (function(t, n) { + if (!e.emulating) { + n.cancel(), e.deferred = n; + var r = e.mirrorChange(e.deferred); + e.props.onBeforeChange && e.props.onBeforeChange(e.editor, e.deferred, r) + } + })), this.editor.on("change", (function(t, n) { + e.mounted && e.props.onChange && e.props.onChange(e.editor, n, e.editor.getValue()) + })), this.hydrate(this.props), this.shared.apply(this.props), this.applied = !0, this.mounted = !0, this.shared.wire(this.props), this.editor.getOption("autofocus") && this.editor.focus(), this.props.editorDidMount && this.props.editorDidMount(this.editor, this.editor.getValue(), this.initCb)) + }, t.prototype.componentDidUpdate = function(e) { + if (!l) { + var t = { + cursor: null + }; + this.props.value !== e.value && (this.hydrated = !1), this.props.autoCursor || void 0 === this.props.autoCursor || (t.cursor = this.editor.getDoc().getCursor()), this.hydrate(this.props), this.appliedNext || (this.shared.applyNext(e, this.props, t), this.appliedNext = !0), this.shared.applyUserDefined(e, t), this.appliedUserDefined = !0 + } + }, t.prototype.componentWillUnmount = function() { + l || this.props.editorWillUnmount && this.props.editorWillUnmount(o) + }, t.prototype.shouldComponentUpdate = function(e, t) { + return !l + }, t.prototype.render = function() { + var e = this; + if (l) return null; + var t = this.props.className ? "react-codemirror2 " + this.props.className : "react-codemirror2"; + return s.createElement("div", { + className: t, + ref: function(t) { + return e.ref = t + } + }) + }, t + }(s.Component); + t.fk = d, + function(e) { + function t(t) { + var n = e.call(this, t) || this; + return l || (n.applied = !1, n.appliedUserDefined = !1, n.continueChange = !1, n.detached = !1, n.hydrated = !1, n.initCb = function() { + n.props.editorDidConfigure && n.props.editorDidConfigure(n.editor) + }, n.mounted = !1, n.onBeforeChangeCb = function() { + n.continueChange = !0 + }), n + } + a(t, e), t.prototype.hydrate = function(e) { + var t = this, + n = e && e.options ? e.options : {}, + i = r({}, o.defaults, this.editor.options, n); + if (Object.keys(i).some((function(e) { + return t.editor.getOption(e) !== i[e] + })) && Object.keys(i).forEach((function(e) { + n.hasOwnProperty(e) && t.editor.getOption(e) !== i[e] && t.editor.setOption(e, i[e]) + })), !this.hydrated) { + var a = this.editor.getDoc(), + s = a.lastLine(), + l = a.getLine(a.lastLine()).length; + a.replaceRange(e.value || "", { + line: 0, + ch: 0 + }, { + line: s, + ch: l + }) + } + this.hydrated = !0 + }, t.prototype.componentDidMount = function() { + var e = this; + l || (this.detached = !0 === this.props.detach, this.props.defineMode && this.props.defineMode.name && this.props.defineMode.fn && o.defineMode(this.props.defineMode.name, this.props.defineMode.fn), this.editor = o(this.ref, this.props.options), this.shared = new u(this.editor, this.props), this.editor.on("beforeChange", (function(t, n) { + e.props.onBeforeChange && e.props.onBeforeChange(e.editor, n, e.editor.getValue(), e.onBeforeChangeCb) + })), this.editor.on("change", (function(t, n) { + e.mounted && e.props.onChange && (e.props.onBeforeChange ? e.continueChange && e.props.onChange(e.editor, n, e.editor.getValue()) : e.props.onChange(e.editor, n, e.editor.getValue())) + })), this.hydrate(this.props), this.shared.apply(this.props), this.applied = !0, this.mounted = !0, this.shared.wire(this.props), this.editor.getDoc().clearHistory(), this.props.editorDidMount && this.props.editorDidMount(this.editor, this.editor.getValue(), this.initCb)) + }, t.prototype.componentDidUpdate = function(e) { + if (this.detached && !1 === this.props.detach && (this.detached = !1, e.editorDidAttach && e.editorDidAttach(this.editor)), this.detached || !0 !== this.props.detach || (this.detached = !0, e.editorDidDetach && e.editorDidDetach(this.editor)), !l && !this.detached) { + var t = { + cursor: null + }; + this.props.value !== e.value && (this.hydrated = !1, this.applied = !1, this.appliedUserDefined = !1), e.autoCursor || void 0 === e.autoCursor || (t.cursor = this.editor.getDoc().getCursor()), this.hydrate(this.props), this.applied || (this.shared.apply(e), this.applied = !0), this.appliedUserDefined || (this.shared.applyUserDefined(e, t), this.appliedUserDefined = !0) + } + }, t.prototype.componentWillUnmount = function() { + l || this.props.editorWillUnmount && this.props.editorWillUnmount(o) + }, t.prototype.shouldComponentUpdate = function(e, t) { + var n = !0; + return l && (n = !1), this.detached && e.detach && (n = !1), n + }, t.prototype.render = function() { + var e = this; + if (l) return null; + var t = this.props.className ? "react-codemirror2 " + this.props.className : "react-codemirror2"; + return s.createElement("div", { + className: t, + ref: function(t) { + return e.ref = t + } + }) + } + }(s.Component) + }, + 69590: function(e) { + var t = "undefined" !== typeof Element, + n = "function" === typeof Map, + r = "function" === typeof Set, + i = "function" === typeof ArrayBuffer && !!ArrayBuffer.isView; + + function a(e, o) { + if (e === o) return !0; + if (e && o && "object" == typeof e && "object" == typeof o) { + if (e.constructor !== o.constructor) return !1; + var s, l, c, u; + if (Array.isArray(e)) { + if ((s = e.length) != o.length) return !1; + for (l = s; 0 !== l--;) + if (!a(e[l], o[l])) return !1; + return !0 + } + if (n && e instanceof Map && o instanceof Map) { + if (e.size !== o.size) return !1; + for (u = e.entries(); !(l = u.next()).done;) + if (!o.has(l.value[0])) return !1; + for (u = e.entries(); !(l = u.next()).done;) + if (!a(l.value[1], o.get(l.value[0]))) return !1; + return !0 + } + if (r && e instanceof Set && o instanceof Set) { + if (e.size !== o.size) return !1; + for (u = e.entries(); !(l = u.next()).done;) + if (!o.has(l.value[0])) return !1; + return !0 + } + if (i && ArrayBuffer.isView(e) && ArrayBuffer.isView(o)) { + if ((s = e.length) != o.length) return !1; + for (l = s; 0 !== l--;) + if (e[l] !== o[l]) return !1; + return !0 + } + if (e.constructor === RegExp) return e.source === o.source && e.flags === o.flags; + if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === o.valueOf(); + if (e.toString !== Object.prototype.toString) return e.toString() === o.toString(); + if ((s = (c = Object.keys(e)).length) !== Object.keys(o).length) return !1; + for (l = s; 0 !== l--;) + if (!Object.prototype.hasOwnProperty.call(o, c[l])) return !1; + if (t && e instanceof Element) return !1; + for (l = s; 0 !== l--;) + if (("_owner" !== c[l] && "__v" !== c[l] && "__o" !== c[l] || !e.$$typeof) && !a(e[c[l]], o[c[l]])) return !1; + return !0 + } + return e !== e && o !== o + } + e.exports = function(e, t) { + try { + return a(e, t) + } catch (n) { + if ((n.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1; + throw n + } + } + }, + 11742: function(e) { + e.exports = function() { + var e = document.getSelection(); + if (!e.rangeCount) return function() {}; + for (var t = document.activeElement, n = [], r = 0; r < e.rangeCount; r++) n.push(e.getRangeAt(r)); + switch (t.tagName.toUpperCase()) { + case "INPUT": + case "TEXTAREA": + t.blur(); + break; + default: + t = null + } + return e.removeAllRanges(), + function() { + "Caret" === e.type && e.removeAllRanges(), e.rangeCount || n.forEach((function(t) { + e.addRange(t) + })), t && t.focus() + } + } + } + } +]); \ No newline at end of file