a||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/1601.4154c4f9ed460feae33b.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/1601.4154c4f9ed460feae33b.js
new file mode 100644
index 0000000000000000000000000000000000000000..2a68f0bed76447c1603b358b6dcbc7b4db70e53d
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/1601.4154c4f9ed460feae33b.js
@@ -0,0 +1,1455 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1601,661],{
+
+/***/ 70661:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ javascript: () => (/* binding */ javascript),
+/* harmony export */ json: () => (/* binding */ json),
+/* harmony export */ jsonld: () => (/* binding */ jsonld),
+/* harmony export */ typescript: () => (/* binding */ typescript)
+/* harmony export */ });
+function mkJavaScript(parserConfig) {
+ var statementIndent = parserConfig.statementIndent;
+ var jsonldMode = parserConfig.jsonld;
+ var jsonMode = parserConfig.json || jsonldMode;
+ var isTS = parserConfig.typescript;
+ var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
+
+ // Tokenizer
+
+ var keywords = function(){
+ function kw(type) {return {type: type, style: "keyword"};}
+ var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
+ var operator = kw("operator"), atom = {type: "atom", style: "atom"};
+
+ return {
+ "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
+ "return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
+ "debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
+ "function": kw("function"), "catch": kw("catch"),
+ "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
+ "in": operator, "typeof": operator, "instanceof": operator,
+ "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
+ "this": kw("this"), "class": kw("class"), "super": kw("atom"),
+ "yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
+ "await": C
+ };
+ }();
+
+ var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
+ var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
+
+ function readRegexp(stream) {
+ var escaped = false, next, inSet = false;
+ while ((next = stream.next()) != null) {
+ if (!escaped) {
+ if (next == "/" && !inSet) return;
+ if (next == "[") inSet = true;
+ else if (inSet && next == "]") inSet = false;
+ }
+ escaped = !escaped && next == "\\";
+ }
+ }
+
+ // Used as scratch variables to communicate multiple values without
+ // consing up tons of objects.
+ var type, content;
+ function ret(tp, style, cont) {
+ type = tp; content = cont;
+ return style;
+ }
+ function tokenBase(stream, state) {
+ var ch = stream.next();
+ if (ch == '"' || ch == "'") {
+ state.tokenize = tokenString(ch);
+ return state.tokenize(stream, state);
+ } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
+ return ret("number", "number");
+ } else if (ch == "." && stream.match("..")) {
+ return ret("spread", "meta");
+ } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
+ return ret(ch);
+ } else if (ch == "=" && stream.eat(">")) {
+ return ret("=>", "operator");
+ } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
+ return ret("number", "number");
+ } else if (/\d/.test(ch)) {
+ stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
+ return ret("number", "number");
+ } else if (ch == "/") {
+ if (stream.eat("*")) {
+ state.tokenize = tokenComment;
+ return tokenComment(stream, state);
+ } else if (stream.eat("/")) {
+ stream.skipToEnd();
+ return ret("comment", "comment");
+ } else if (expressionAllowed(stream, state, 1)) {
+ readRegexp(stream);
+ stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
+ return ret("regexp", "string.special");
+ } else {
+ stream.eat("=");
+ return ret("operator", "operator", stream.current());
+ }
+ } else if (ch == "`") {
+ state.tokenize = tokenQuasi;
+ return tokenQuasi(stream, state);
+ } else if (ch == "#" && stream.peek() == "!") {
+ stream.skipToEnd();
+ return ret("meta", "meta");
+ } else if (ch == "#" && stream.eatWhile(wordRE)) {
+ return ret("variable", "property")
+ } else if (ch == "<" && stream.match("!--") ||
+ (ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
+ stream.skipToEnd()
+ return ret("comment", "comment")
+ } else if (isOperatorChar.test(ch)) {
+ if (ch != ">" || !state.lexical || state.lexical.type != ">") {
+ if (stream.eat("=")) {
+ if (ch == "!" || ch == "=") stream.eat("=")
+ } else if (/[<>*+\-|&?]/.test(ch)) {
+ stream.eat(ch)
+ if (ch == ">") stream.eat(ch)
+ }
+ }
+ if (ch == "?" && stream.eat(".")) return ret(".")
+ return ret("operator", "operator", stream.current());
+ } else if (wordRE.test(ch)) {
+ stream.eatWhile(wordRE);
+ var word = stream.current()
+ if (state.lastType != ".") {
+ if (keywords.propertyIsEnumerable(word)) {
+ var kw = keywords[word]
+ return ret(kw.type, kw.style, word)
+ }
+ if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
+ return ret("async", "keyword", word)
+ }
+ return ret("variable", "variable", word)
+ }
+ }
+
+ function tokenString(quote) {
+ return function(stream, state) {
+ var escaped = false, next;
+ if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
+ state.tokenize = tokenBase;
+ return ret("jsonld-keyword", "meta");
+ }
+ while ((next = stream.next()) != null) {
+ if (next == quote && !escaped) break;
+ escaped = !escaped && next == "\\";
+ }
+ if (!escaped) state.tokenize = tokenBase;
+ return ret("string", "string");
+ };
+ }
+
+ function tokenComment(stream, state) {
+ var maybeEnd = false, ch;
+ while (ch = stream.next()) {
+ if (ch == "/" && maybeEnd) {
+ state.tokenize = tokenBase;
+ break;
+ }
+ maybeEnd = (ch == "*");
+ }
+ return ret("comment", "comment");
+ }
+
+ function tokenQuasi(stream, state) {
+ var escaped = false, next;
+ while ((next = stream.next()) != null) {
+ if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
+ state.tokenize = tokenBase;
+ break;
+ }
+ escaped = !escaped && next == "\\";
+ }
+ return ret("quasi", "string.special", stream.current());
+ }
+
+ var brackets = "([{}])";
+ // This is a crude lookahead trick to try and notice that we're
+ // parsing the argument patterns for a fat-arrow function before we
+ // actually hit the arrow token. It only works if the arrow is on
+ // the same line as the arguments and there's no strange noise
+ // (comments) in between. Fallback is to only notice when we hit the
+ // arrow, and not declare the arguments as locals for the arrow
+ // body.
+ function findFatArrow(stream, state) {
+ if (state.fatArrowAt) state.fatArrowAt = null;
+ var arrow = stream.string.indexOf("=>", stream.start);
+ if (arrow < 0) return;
+
+ if (isTS) { // Try to skip TypeScript return type declarations after the arguments
+ var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow))
+ if (m) arrow = m.index
+ }
+
+ var depth = 0, sawSomething = false;
+ for (var pos = arrow - 1; pos >= 0; --pos) {
+ var ch = stream.string.charAt(pos);
+ var bracket = brackets.indexOf(ch);
+ if (bracket >= 0 && bracket < 3) {
+ if (!depth) { ++pos; break; }
+ if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
+ } else if (bracket >= 3 && bracket < 6) {
+ ++depth;
+ } else if (wordRE.test(ch)) {
+ sawSomething = true;
+ } else if (/["'\/`]/.test(ch)) {
+ for (;; --pos) {
+ if (pos == 0) return
+ var next = stream.string.charAt(pos - 1)
+ if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
+ }
+ } else if (sawSomething && !depth) {
+ ++pos;
+ break;
+ }
+ }
+ if (sawSomething && !depth) state.fatArrowAt = pos;
+ }
+
+ // Parser
+
+ var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
+ "regexp": true, "this": true, "import": true, "jsonld-keyword": true};
+
+ function JSLexical(indented, column, type, align, prev, info) {
+ this.indented = indented;
+ this.column = column;
+ this.type = type;
+ this.prev = prev;
+ this.info = info;
+ if (align != null) this.align = align;
+ }
+
+ function inScope(state, varname) {
+ for (var v = state.localVars; v; v = v.next)
+ if (v.name == varname) return true;
+ for (var cx = state.context; cx; cx = cx.prev) {
+ for (var v = cx.vars; v; v = v.next)
+ if (v.name == varname) return true;
+ }
+ }
+
+ function parseJS(state, style, type, content, stream) {
+ var cc = state.cc;
+ // Communicate our context to the combinators.
+ // (Less wasteful than consing up a hundred closures on every call.)
+ cx.state = state; cx.stream = stream; cx.marked = null; cx.cc = cc; cx.style = style;
+
+ if (!state.lexical.hasOwnProperty("align"))
+ state.lexical.align = true;
+
+ while(true) {
+ var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
+ if (combinator(type, content)) {
+ while(cc.length && cc[cc.length - 1].lex)
+ cc.pop()();
+ if (cx.marked) return cx.marked;
+ if (type == "variable" && inScope(state, content)) return "variableName.local";
+ return style;
+ }
+ }
+ }
+
+ // Combinator utils
+
+ var cx = {state: null, column: null, marked: null, cc: null};
+ function pass() {
+ for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
+ }
+ function cont() {
+ pass.apply(null, arguments);
+ return true;
+ }
+ function inList(name, list) {
+ for (var v = list; v; v = v.next) if (v.name == name) return true
+ return false;
+ }
+ function register(varname) {
+ var state = cx.state;
+ cx.marked = "def";
+ if (state.context) {
+ if (state.lexical.info == "var" && state.context && state.context.block) {
+ // FIXME function decls are also not block scoped
+ var newContext = registerVarScoped(varname, state.context)
+ if (newContext != null) {
+ state.context = newContext
+ return
+ }
+ } else if (!inList(varname, state.localVars)) {
+ state.localVars = new Var(varname, state.localVars)
+ return
+ }
+ }
+ // Fall through means this is global
+ if (parserConfig.globalVars && !inList(varname, state.globalVars))
+ state.globalVars = new Var(varname, state.globalVars)
+ }
+ function registerVarScoped(varname, context) {
+ if (!context) {
+ return null
+ } else if (context.block) {
+ var inner = registerVarScoped(varname, context.prev)
+ if (!inner) return null
+ if (inner == context.prev) return context
+ return new Context(inner, context.vars, true)
+ } else if (inList(varname, context.vars)) {
+ return context
+ } else {
+ return new Context(context.prev, new Var(varname, context.vars), false)
+ }
+ }
+
+ function isModifier(name) {
+ return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
+ }
+
+ // Combinators
+
+ function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block }
+ function Var(name, next) { this.name = name; this.next = next }
+
+ var defaultVars = new Var("this", new Var("arguments", null))
+ function pushcontext() {
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, false)
+ cx.state.localVars = defaultVars
+ }
+ function pushblockcontext() {
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, true)
+ cx.state.localVars = null
+ }
+ pushcontext.lex = pushblockcontext.lex = true
+ function popcontext() {
+ cx.state.localVars = cx.state.context.vars
+ cx.state.context = cx.state.context.prev
+ }
+ popcontext.lex = true
+ function pushlex(type, info) {
+ var result = function() {
+ var state = cx.state, indent = state.indented;
+ if (state.lexical.type == "stat") indent = state.lexical.indented;
+ else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
+ indent = outer.indented;
+ state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
+ };
+ result.lex = true;
+ return result;
+ }
+ function poplex() {
+ var state = cx.state;
+ if (state.lexical.prev) {
+ if (state.lexical.type == ")")
+ state.indented = state.lexical.indented;
+ state.lexical = state.lexical.prev;
+ }
+ }
+ poplex.lex = true;
+
+ function expect(wanted) {
+ function exp(type) {
+ if (type == wanted) return cont();
+ else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
+ else return cont(exp);
+ };
+ return exp;
+ }
+
+ function statement(type, value) {
+ if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
+ if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
+ if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
+ if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
+ if (type == "debugger") return cont(expect(";"));
+ if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
+ if (type == ";") return cont();
+ if (type == "if") {
+ if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
+ cx.state.cc.pop()();
+ return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
+ }
+ if (type == "function") return cont(functiondef);
+ if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
+ if (type == "class" || (isTS && value == "interface")) {
+ cx.marked = "keyword"
+ return cont(pushlex("form", type == "class" ? type : value), className, poplex)
+ }
+ if (type == "variable") {
+ if (isTS && value == "declare") {
+ cx.marked = "keyword"
+ return cont(statement)
+ } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
+ cx.marked = "keyword"
+ if (value == "enum") return cont(enumdef);
+ else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
+ else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
+ } else if (isTS && value == "namespace") {
+ cx.marked = "keyword"
+ return cont(pushlex("form"), expression, statement, poplex)
+ } else if (isTS && value == "abstract") {
+ cx.marked = "keyword"
+ return cont(statement)
+ } else {
+ return cont(pushlex("stat"), maybelabel);
+ }
+ }
+ if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
+ block, poplex, poplex, popcontext);
+ if (type == "case") return cont(expression, expect(":"));
+ if (type == "default") return cont(expect(":"));
+ if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
+ if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
+ if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
+ if (type == "async") return cont(statement)
+ if (value == "@") return cont(expression, statement)
+ return pass(pushlex("stat"), expression, expect(";"), poplex);
+ }
+ function maybeCatchBinding(type) {
+ if (type == "(") return cont(funarg, expect(")"))
+ }
+ function expression(type, value) {
+ return expressionInner(type, value, false);
+ }
+ function expressionNoComma(type, value) {
+ return expressionInner(type, value, true);
+ }
+ function parenExpr(type) {
+ if (type != "(") return pass()
+ return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
+ }
+ function expressionInner(type, value, noComma) {
+ if (cx.state.fatArrowAt == cx.stream.start) {
+ var body = noComma ? arrowBodyNoComma : arrowBody;
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
+ else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
+ }
+
+ var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
+ if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
+ if (type == "function") return cont(functiondef, maybeop);
+ if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
+ if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
+ if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
+ if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
+ if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
+ if (type == "{") return contCommasep(objprop, "}", null, maybeop);
+ if (type == "quasi") return pass(quasi, maybeop);
+ if (type == "new") return cont(maybeTarget(noComma));
+ return cont();
+ }
+ function maybeexpression(type) {
+ if (type.match(/[;\}\)\],]/)) return pass();
+ return pass(expression);
+ }
+
+ function maybeoperatorComma(type, value) {
+ if (type == ",") return cont(maybeexpression);
+ return maybeoperatorNoComma(type, value, false);
+ }
+ function maybeoperatorNoComma(type, value, noComma) {
+ var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
+ var expr = noComma == false ? expression : expressionNoComma;
+ if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
+ if (type == "operator") {
+ if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
+ if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
+ return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
+ if (value == "?") return cont(expression, expect(":"), expr);
+ return cont(expr);
+ }
+ if (type == "quasi") { return pass(quasi, me); }
+ if (type == ";") return;
+ if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
+ if (type == ".") return cont(property, me);
+ if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
+ if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
+ if (type == "regexp") {
+ cx.state.lastType = cx.marked = "operator"
+ cx.stream.backUp(cx.stream.pos - cx.stream.start - 1)
+ return cont(expr)
+ }
+ }
+ function quasi(type, value) {
+ if (type != "quasi") return pass();
+ if (value.slice(value.length - 2) != "${") return cont(quasi);
+ return cont(maybeexpression, continueQuasi);
+ }
+ function continueQuasi(type) {
+ if (type == "}") {
+ cx.marked = "string.special";
+ cx.state.tokenize = tokenQuasi;
+ return cont(quasi);
+ }
+ }
+ function arrowBody(type) {
+ findFatArrow(cx.stream, cx.state);
+ return pass(type == "{" ? statement : expression);
+ }
+ function arrowBodyNoComma(type) {
+ findFatArrow(cx.stream, cx.state);
+ return pass(type == "{" ? statement : expressionNoComma);
+ }
+ function maybeTarget(noComma) {
+ return function(type) {
+ if (type == ".") return cont(noComma ? targetNoComma : target);
+ else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
+ else return pass(noComma ? expressionNoComma : expression);
+ };
+ }
+ function target(_, value) {
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
+ }
+ function targetNoComma(_, value) {
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
+ }
+ function maybelabel(type) {
+ if (type == ":") return cont(poplex, statement);
+ return pass(maybeoperatorComma, expect(";"), poplex);
+ }
+ function property(type) {
+ if (type == "variable") {cx.marked = "property"; return cont();}
+ }
+ function objprop(type, value) {
+ if (type == "async") {
+ cx.marked = "property";
+ return cont(objprop);
+ } else if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property";
+ if (value == "get" || value == "set") return cont(getterSetter);
+ var m // Work around fat-arrow-detection complication for detecting typescript typed arrow params
+ if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
+ cx.state.fatArrowAt = cx.stream.pos + m[0].length
+ return cont(afterprop);
+ } else if (type == "number" || type == "string") {
+ cx.marked = jsonldMode ? "property" : (cx.style + " property");
+ return cont(afterprop);
+ } else if (type == "jsonld-keyword") {
+ return cont(afterprop);
+ } else if (isTS && isModifier(value)) {
+ cx.marked = "keyword"
+ return cont(objprop)
+ } else if (type == "[") {
+ return cont(expression, maybetype, expect("]"), afterprop);
+ } else if (type == "spread") {
+ return cont(expressionNoComma, afterprop);
+ } else if (value == "*") {
+ cx.marked = "keyword";
+ return cont(objprop);
+ } else if (type == ":") {
+ return pass(afterprop)
+ }
+ }
+ function getterSetter(type) {
+ if (type != "variable") return pass(afterprop);
+ cx.marked = "property";
+ return cont(functiondef);
+ }
+ function afterprop(type) {
+ if (type == ":") return cont(expressionNoComma);
+ if (type == "(") return pass(functiondef);
+ }
+ function commasep(what, end, sep) {
+ function proceed(type, value) {
+ if (sep ? sep.indexOf(type) > -1 : type == ",") {
+ var lex = cx.state.lexical;
+ if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
+ return cont(function(type, value) {
+ if (type == end || value == end) return pass()
+ return pass(what)
+ }, proceed);
+ }
+ if (type == end || value == end) return cont();
+ if (sep && sep.indexOf(";") > -1) return pass(what)
+ return cont(expect(end));
+ }
+ return function(type, value) {
+ if (type == end || value == end) return cont();
+ return pass(what, proceed);
+ };
+ }
+ function contCommasep(what, end, info) {
+ for (var i = 3; i < arguments.length; i++)
+ cx.cc.push(arguments[i]);
+ return cont(pushlex(end, info), commasep(what, end), poplex);
+ }
+ function block(type) {
+ if (type == "}") return cont();
+ return pass(statement, block);
+ }
+ function maybetype(type, value) {
+ if (isTS) {
+ if (type == ":") return cont(typeexpr);
+ if (value == "?") return cont(maybetype);
+ }
+ }
+ function maybetypeOrIn(type, value) {
+ if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
+ }
+ function mayberettype(type) {
+ if (isTS && type == ":") {
+ if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
+ else return cont(typeexpr)
+ }
+ }
+ function isKW(_, value) {
+ if (value == "is") {
+ cx.marked = "keyword"
+ return cont()
+ }
+ }
+ function typeexpr(type, value) {
+ if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
+ cx.marked = "keyword"
+ return cont(value == "typeof" ? expressionNoComma : typeexpr)
+ }
+ if (type == "variable" || value == "void") {
+ cx.marked = "type"
+ return cont(afterType)
+ }
+ if (value == "|" || value == "&") return cont(typeexpr)
+ if (type == "string" || type == "number" || type == "atom") return cont(afterType);
+ if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
+ if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
+ if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
+ if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
+ if (type == "quasi") return pass(quasiType, afterType)
+ }
+ function maybeReturnType(type) {
+ if (type == "=>") return cont(typeexpr)
+ }
+ function typeprops(type) {
+ if (type.match(/[\}\)\]]/)) return cont()
+ if (type == "," || type == ";") return cont(typeprops)
+ return pass(typeprop, typeprops)
+ }
+ function typeprop(type, value) {
+ if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property"
+ return cont(typeprop)
+ } else if (value == "?" || type == "number" || type == "string") {
+ return cont(typeprop)
+ } else if (type == ":") {
+ return cont(typeexpr)
+ } else if (type == "[") {
+ return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
+ } else if (type == "(") {
+ return pass(functiondecl, typeprop)
+ } else if (!type.match(/[;\}\)\],]/)) {
+ return cont()
+ }
+ }
+ function quasiType(type, value) {
+ if (type != "quasi") return pass();
+ if (value.slice(value.length - 2) != "${") return cont(quasiType);
+ return cont(typeexpr, continueQuasiType);
+ }
+ function continueQuasiType(type) {
+ if (type == "}") {
+ cx.marked = "string.special";
+ cx.state.tokenize = tokenQuasi;
+ return cont(quasiType);
+ }
+ }
+ function typearg(type, value) {
+ if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
+ if (type == ":") return cont(typeexpr)
+ if (type == "spread") return cont(typearg)
+ return pass(typeexpr)
+ }
+ function afterType(type, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
+ if (value == "|" || type == "." || value == "&") return cont(typeexpr)
+ if (type == "[") return cont(typeexpr, expect("]"), afterType)
+ if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
+ if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
+ }
+ function maybeTypeArgs(_, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
+ }
+ function typeparam() {
+ return pass(typeexpr, maybeTypeDefault)
+ }
+ function maybeTypeDefault(_, value) {
+ if (value == "=") return cont(typeexpr)
+ }
+ function vardef(_, value) {
+ if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
+ return pass(pattern, maybetype, maybeAssign, vardefCont);
+ }
+ function pattern(type, value) {
+ if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
+ if (type == "variable") { register(value); return cont(); }
+ if (type == "spread") return cont(pattern);
+ if (type == "[") return contCommasep(eltpattern, "]");
+ if (type == "{") return contCommasep(proppattern, "}");
+ }
+ function proppattern(type, value) {
+ if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
+ register(value);
+ return cont(maybeAssign);
+ }
+ if (type == "variable") cx.marked = "property";
+ if (type == "spread") return cont(pattern);
+ if (type == "}") return pass();
+ if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
+ return cont(expect(":"), pattern, maybeAssign);
+ }
+ function eltpattern() {
+ return pass(pattern, maybeAssign)
+ }
+ function maybeAssign(_type, value) {
+ if (value == "=") return cont(expressionNoComma);
+ }
+ function vardefCont(type) {
+ if (type == ",") return cont(vardef);
+ }
+ function maybeelse(type, value) {
+ if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
+ }
+ function forspec(type, value) {
+ if (value == "await") return cont(forspec);
+ if (type == "(") return cont(pushlex(")"), forspec1, poplex);
+ }
+ function forspec1(type) {
+ if (type == "var") return cont(vardef, forspec2);
+ if (type == "variable") return cont(forspec2);
+ return pass(forspec2)
+ }
+ function forspec2(type, value) {
+ if (type == ")") return cont()
+ if (type == ";") return cont(forspec2)
+ if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
+ return pass(expression, forspec2)
+ }
+ function functiondef(type, value) {
+ if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
+ if (type == "variable") {register(value); return cont(functiondef);}
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
+ }
+ function functiondecl(type, value) {
+ if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
+ if (type == "variable") {register(value); return cont(functiondecl);}
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
+ }
+ function typename(type, value) {
+ if (type == "keyword" || type == "variable") {
+ cx.marked = "type"
+ return cont(typename)
+ } else if (value == "<") {
+ return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
+ }
+ }
+ function funarg(type, value) {
+ if (value == "@") cont(expression, funarg)
+ if (type == "spread") return cont(funarg);
+ if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
+ if (isTS && type == "this") return cont(maybetype, maybeAssign)
+ return pass(pattern, maybetype, maybeAssign);
+ }
+ function classExpression(type, value) {
+ // Class expressions may have an optional name.
+ if (type == "variable") return className(type, value);
+ return classNameAfter(type, value);
+ }
+ function className(type, value) {
+ if (type == "variable") {register(value); return cont(classNameAfter);}
+ }
+ function classNameAfter(type, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
+ if (value == "extends" || value == "implements" || (isTS && type == ",")) {
+ if (value == "implements") cx.marked = "keyword";
+ return cont(isTS ? typeexpr : expression, classNameAfter);
+ }
+ if (type == "{") return cont(pushlex("}"), classBody, poplex);
+ }
+ function classBody(type, value) {
+ if (type == "async" ||
+ (type == "variable" &&
+ (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
+ cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
+ cx.marked = "keyword";
+ return cont(classBody);
+ }
+ if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property";
+ return cont(classfield, classBody);
+ }
+ if (type == "number" || type == "string") return cont(classfield, classBody);
+ if (type == "[")
+ return cont(expression, maybetype, expect("]"), classfield, classBody)
+ if (value == "*") {
+ cx.marked = "keyword";
+ return cont(classBody);
+ }
+ if (isTS && type == "(") return pass(functiondecl, classBody)
+ if (type == ";" || type == ",") return cont(classBody);
+ if (type == "}") return cont();
+ if (value == "@") return cont(expression, classBody)
+ }
+ function classfield(type, value) {
+ if (value == "!" || value == "?") return cont(classfield)
+ if (type == ":") return cont(typeexpr, maybeAssign)
+ if (value == "=") return cont(expressionNoComma)
+ var context = cx.state.lexical.prev, isInterface = context && context.info == "interface"
+ return pass(isInterface ? functiondecl : functiondef)
+ }
+ function afterExport(type, value) {
+ if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
+ if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
+ if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
+ return pass(statement);
+ }
+ function exportField(type, value) {
+ if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
+ if (type == "variable") return pass(expressionNoComma, exportField);
+ }
+ function afterImport(type) {
+ if (type == "string") return cont();
+ if (type == "(") return pass(expression);
+ if (type == ".") return pass(maybeoperatorComma);
+ return pass(importSpec, maybeMoreImports, maybeFrom);
+ }
+ function importSpec(type, value) {
+ if (type == "{") return contCommasep(importSpec, "}");
+ if (type == "variable") register(value);
+ if (value == "*") cx.marked = "keyword";
+ return cont(maybeAs);
+ }
+ function maybeMoreImports(type) {
+ if (type == ",") return cont(importSpec, maybeMoreImports)
+ }
+ function maybeAs(_type, value) {
+ if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
+ }
+ function maybeFrom(_type, value) {
+ if (value == "from") { cx.marked = "keyword"; return cont(expression); }
+ }
+ function arrayLiteral(type) {
+ if (type == "]") return cont();
+ return pass(commasep(expressionNoComma, "]"));
+ }
+ function enumdef() {
+ return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
+ }
+ function enummember() {
+ return pass(pattern, maybeAssign);
+ }
+
+ function isContinuedStatement(state, textAfter) {
+ return state.lastType == "operator" || state.lastType == "," ||
+ isOperatorChar.test(textAfter.charAt(0)) ||
+ /[,.]/.test(textAfter.charAt(0));
+ }
+
+ function expressionAllowed(stream, state, backUp) {
+ return state.tokenize == tokenBase &&
+ /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
+ (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
+ }
+
+ // Interface
+
+ return {
+ name: parserConfig.name,
+
+ startState: function(indentUnit) {
+ var state = {
+ tokenize: tokenBase,
+ lastType: "sof",
+ cc: [],
+ lexical: new JSLexical(-indentUnit, 0, "block", false),
+ localVars: parserConfig.localVars,
+ context: parserConfig.localVars && new Context(null, null, false),
+ indented: 0
+ };
+ if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
+ state.globalVars = parserConfig.globalVars;
+ return state;
+ },
+
+ token: function(stream, state) {
+ if (stream.sol()) {
+ if (!state.lexical.hasOwnProperty("align"))
+ state.lexical.align = false;
+ state.indented = stream.indentation();
+ findFatArrow(stream, state);
+ }
+ if (state.tokenize != tokenComment && stream.eatSpace()) return null;
+ var style = state.tokenize(stream, state);
+ if (type == "comment") return style;
+ state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
+ return parseJS(state, style, type, content, stream);
+ },
+
+ indent: function(state, textAfter, cx) {
+ if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
+ if (state.tokenize != tokenBase) return 0;
+ var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
+ // Kludge to prevent 'maybelse' from blocking lexical scope pops
+ if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
+ var c = state.cc[i];
+ if (c == poplex) lexical = lexical.prev;
+ else if (c != maybeelse && c != popcontext) break;
+ }
+ while ((lexical.type == "stat" || lexical.type == "form") &&
+ (firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
+ (top == maybeoperatorComma || top == maybeoperatorNoComma) &&
+ !/^[,\.=+\-*:?[\(]/.test(textAfter))))
+ lexical = lexical.prev;
+ if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
+ lexical = lexical.prev;
+ var type = lexical.type, closing = firstChar == type;
+
+ if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
+ else if (type == "form" && firstChar == "{") return lexical.indented;
+ else if (type == "form") return lexical.indented + cx.unit;
+ else if (type == "stat")
+ return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx.unit : 0);
+ else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
+ return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx.unit : 2 * cx.unit);
+ else if (lexical.align) return lexical.column + (closing ? 0 : 1);
+ else return lexical.indented + (closing ? 0 : cx.unit);
+ },
+
+ languageData: {
+ indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
+ commentTokens: jsonMode ? undefined : {line: "//", block: {open: "/*", close: "*/"}},
+ closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]},
+ wordChars: "$"
+ }
+ };
+};
+
+const javascript = mkJavaScript({name: "javascript"})
+const json = mkJavaScript({name: "json", json: true})
+const jsonld = mkJavaScript({name: "json", jsonld: true})
+const typescript = mkJavaScript({name: "typescript", typescript: true})
+
+
+/***/ }),
+
+/***/ 51601:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ pug: () => (/* binding */ pug)
+/* harmony export */ });
+/* harmony import */ var _javascript_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70661);
+
+
+var ATTRS_NEST = {
+ '{': '}',
+ '(': ')',
+ '[': ']'
+}
+
+function defaultCopyState(state) {
+ if (typeof state != "object") return state
+ let newState = {}
+ for (let prop in state) {
+ let val = state[prop]
+ newState[prop] = val instanceof Array ? val.slice() : val
+ }
+ return newState
+}
+
+class State {
+ constructor(indentUnit) {
+ this.indentUnit = indentUnit
+
+ this.javaScriptLine = false
+ this.javaScriptLineExcludesColon = false
+
+ this.javaScriptArguments = false
+ this.javaScriptArgumentsDepth = 0
+
+ this.isInterpolating = false
+ this.interpolationNesting = 0
+
+ this.jsState = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.startState(indentUnit)
+
+ this.restOfLine = ''
+
+ this.isIncludeFiltered = false
+ this.isEach = false
+
+ this.lastTag = ''
+
+ // Attributes Mode
+ this.isAttrs = false
+ this.attrsNest = []
+ this.inAttributeName = true
+ this.attributeIsType = false
+ this.attrValue = ''
+
+ // Indented Mode
+ this.indentOf = Infinity
+ this.indentToken = ''
+ }
+
+ copy() {
+ var res = new State(this.indentUnit)
+ res.javaScriptLine = this.javaScriptLine
+ res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon
+ res.javaScriptArguments = this.javaScriptArguments
+ res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth
+ res.isInterpolating = this.isInterpolating
+ res.interpolationNesting = this.interpolationNesting
+
+ res.jsState = (_javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.copyState || defaultCopyState)(this.jsState)
+
+ res.restOfLine = this.restOfLine
+
+ res.isIncludeFiltered = this.isIncludeFiltered
+ res.isEach = this.isEach
+ res.lastTag = this.lastTag
+ res.isAttrs = this.isAttrs
+ res.attrsNest = this.attrsNest.slice()
+ res.inAttributeName = this.inAttributeName
+ res.attributeIsType = this.attributeIsType
+ res.attrValue = this.attrValue
+ res.indentOf = this.indentOf
+ res.indentToken = this.indentToken
+
+ return res
+ }
+}
+
+function javaScript(stream, state) {
+ if (stream.sol()) {
+ // if javaScriptLine was set at end of line, ignore it
+ state.javaScriptLine = false
+ state.javaScriptLineExcludesColon = false
+ }
+ if (state.javaScriptLine) {
+ if (state.javaScriptLineExcludesColon && stream.peek() === ':') {
+ state.javaScriptLine = false
+ state.javaScriptLineExcludesColon = false
+ return
+ }
+ var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
+ if (stream.eol()) state.javaScriptLine = false
+ return tok || true
+ }
+}
+function javaScriptArguments(stream, state) {
+ if (state.javaScriptArguments) {
+ if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') {
+ state.javaScriptArguments = false
+ return
+ }
+ if (stream.peek() === '(') {
+ state.javaScriptArgumentsDepth++
+ } else if (stream.peek() === ')') {
+ state.javaScriptArgumentsDepth--
+ }
+ if (state.javaScriptArgumentsDepth === 0) {
+ state.javaScriptArguments = false
+ return
+ }
+
+ var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
+ return tok || true
+ }
+}
+
+function yieldStatement(stream) {
+ if (stream.match(/^yield\b/)) {
+ return 'keyword'
+ }
+}
+
+function doctype(stream) {
+ if (stream.match(/^(?:doctype) *([^\n]+)?/)) return 'meta'
+}
+
+function interpolation(stream, state) {
+ if (stream.match('#{')) {
+ state.isInterpolating = true
+ state.interpolationNesting = 0
+ return 'punctuation'
+ }
+}
+
+function interpolationContinued(stream, state) {
+ if (state.isInterpolating) {
+ if (stream.peek() === '}') {
+ state.interpolationNesting--
+ if (state.interpolationNesting < 0) {
+ stream.next()
+ state.isInterpolating = false
+ return 'punctuation'
+ }
+ } else if (stream.peek() === '{') {
+ state.interpolationNesting++
+ }
+ return _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState) || true
+ }
+}
+
+function caseStatement(stream, state) {
+ if (stream.match(/^case\b/)) {
+ state.javaScriptLine = true
+ return 'keyword'
+ }
+}
+
+function when(stream, state) {
+ if (stream.match(/^when\b/)) {
+ state.javaScriptLine = true
+ state.javaScriptLineExcludesColon = true
+ return 'keyword'
+ }
+}
+
+function defaultStatement(stream) {
+ if (stream.match(/^default\b/)) {
+ return 'keyword'
+ }
+}
+
+function extendsStatement(stream, state) {
+ if (stream.match(/^extends?\b/)) {
+ state.restOfLine = 'string'
+ return 'keyword'
+ }
+}
+
+function append(stream, state) {
+ if (stream.match(/^append\b/)) {
+ state.restOfLine = 'variable'
+ return 'keyword'
+ }
+}
+function prepend(stream, state) {
+ if (stream.match(/^prepend\b/)) {
+ state.restOfLine = 'variable'
+ return 'keyword'
+ }
+}
+function block(stream, state) {
+ if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) {
+ state.restOfLine = 'variable'
+ return 'keyword'
+ }
+}
+
+function include(stream, state) {
+ if (stream.match(/^include\b/)) {
+ state.restOfLine = 'string'
+ return 'keyword'
+ }
+}
+
+function includeFiltered(stream, state) {
+ if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) {
+ state.isIncludeFiltered = true
+ return 'keyword'
+ }
+}
+
+function includeFilteredContinued(stream, state) {
+ if (state.isIncludeFiltered) {
+ var tok = filter(stream, state)
+ state.isIncludeFiltered = false
+ state.restOfLine = 'string'
+ return tok
+ }
+}
+
+function mixin(stream, state) {
+ if (stream.match(/^mixin\b/)) {
+ state.javaScriptLine = true
+ return 'keyword'
+ }
+}
+
+function call(stream, state) {
+ if (stream.match(/^\+([-\w]+)/)) {
+ if (!stream.match(/^\( *[-\w]+ *=/, false)) {
+ state.javaScriptArguments = true
+ state.javaScriptArgumentsDepth = 0
+ }
+ return 'variable'
+ }
+ if (stream.match('+#{', false)) {
+ stream.next()
+ state.mixinCallAfter = true
+ return interpolation(stream, state)
+ }
+}
+function callArguments(stream, state) {
+ if (state.mixinCallAfter) {
+ state.mixinCallAfter = false
+ if (!stream.match(/^\( *[-\w]+ *=/, false)) {
+ state.javaScriptArguments = true
+ state.javaScriptArgumentsDepth = 0
+ }
+ return true
+ }
+}
+
+function conditional(stream, state) {
+ if (stream.match(/^(if|unless|else if|else)\b/)) {
+ state.javaScriptLine = true
+ return 'keyword'
+ }
+}
+
+function each(stream, state) {
+ if (stream.match(/^(- *)?(each|for)\b/)) {
+ state.isEach = true
+ return 'keyword'
+ }
+}
+function eachContinued(stream, state) {
+ if (state.isEach) {
+ if (stream.match(/^ in\b/)) {
+ state.javaScriptLine = true
+ state.isEach = false
+ return 'keyword'
+ } else if (stream.sol() || stream.eol()) {
+ state.isEach = false
+ } else if (stream.next()) {
+ while (!stream.match(/^ in\b/, false) && stream.next()) {}
+ return 'variable'
+ }
+ }
+}
+
+function whileStatement(stream, state) {
+ if (stream.match(/^while\b/)) {
+ state.javaScriptLine = true
+ return 'keyword'
+ }
+}
+
+function tag(stream, state) {
+ var captures
+ if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) {
+ state.lastTag = captures[1].toLowerCase()
+ return 'tag'
+ }
+}
+
+function filter(stream, state) {
+ if (stream.match(/^:([\w\-]+)/)) {
+ setStringMode(stream, state)
+ return 'atom'
+ }
+}
+
+function code(stream, state) {
+ if (stream.match(/^(!?=|-)/)) {
+ state.javaScriptLine = true
+ return 'punctuation'
+ }
+}
+
+function id(stream) {
+ if (stream.match(/^#([\w-]+)/)) {
+ return 'builtin'
+ }
+}
+
+function className(stream) {
+ if (stream.match(/^\.([\w-]+)/)) {
+ return 'className'
+ }
+}
+
+function attrs(stream, state) {
+ if (stream.peek() == '(') {
+ stream.next()
+ state.isAttrs = true
+ state.attrsNest = []
+ state.inAttributeName = true
+ state.attrValue = ''
+ state.attributeIsType = false
+ return 'punctuation'
+ }
+}
+
+function attrsContinued(stream, state) {
+ if (state.isAttrs) {
+ if (ATTRS_NEST[stream.peek()]) {
+ state.attrsNest.push(ATTRS_NEST[stream.peek()])
+ }
+ if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) {
+ state.attrsNest.pop()
+ } else if (stream.eat(')')) {
+ state.isAttrs = false
+ return 'punctuation'
+ }
+ if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) {
+ if (stream.peek() === '=' || stream.peek() === '!') {
+ state.inAttributeName = false
+ state.jsState = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.startState(2)
+ if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') {
+ state.attributeIsType = true
+ } else {
+ state.attributeIsType = false
+ }
+ }
+ return 'attribute'
+ }
+
+ var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
+ if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) {
+ try {
+ Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, ''))
+ state.inAttributeName = true
+ state.attrValue = ''
+ stream.backUp(stream.current().length)
+ return attrsContinued(stream, state)
+ } catch (ex) {
+ //not the end of an attribute
+ }
+ }
+ state.attrValue += stream.current()
+ return tok || true
+ }
+}
+
+function attributesBlock(stream, state) {
+ if (stream.match(/^&attributes\b/)) {
+ state.javaScriptArguments = true
+ state.javaScriptArgumentsDepth = 0
+ return 'keyword'
+ }
+}
+
+function indent(stream) {
+ if (stream.sol() && stream.eatSpace()) {
+ return 'indent'
+ }
+}
+
+function comment(stream, state) {
+ if (stream.match(/^ *\/\/(-)?([^\n]*)/)) {
+ state.indentOf = stream.indentation()
+ state.indentToken = 'comment'
+ return 'comment'
+ }
+}
+
+function colon(stream) {
+ if (stream.match(/^: */)) {
+ return 'colon'
+ }
+}
+
+function text(stream, state) {
+ if (stream.match(/^(?:\| ?| )([^\n]+)/)) {
+ return 'string'
+ }
+ if (stream.match(/^(<[^\n]*)/, false)) {
+ // html string
+ setStringMode(stream, state)
+ stream.skipToEnd()
+ return state.indentToken
+ }
+}
+
+function dot(stream, state) {
+ if (stream.eat('.')) {
+ setStringMode(stream, state)
+ return 'dot'
+ }
+}
+
+function fail(stream) {
+ stream.next()
+ return null
+}
+
+
+function setStringMode(stream, state) {
+ state.indentOf = stream.indentation()
+ state.indentToken = 'string'
+}
+function restOfLine(stream, state) {
+ if (stream.sol()) {
+ // if restOfLine was set at end of line, ignore it
+ state.restOfLine = ''
+ }
+ if (state.restOfLine) {
+ stream.skipToEnd()
+ var tok = state.restOfLine
+ state.restOfLine = ''
+ return tok
+ }
+}
+
+
+function startState(indentUnit) {
+ return new State(indentUnit)
+}
+function copyState(state) {
+ return state.copy()
+}
+function nextToken(stream, state) {
+ var tok = restOfLine(stream, state)
+ || interpolationContinued(stream, state)
+ || includeFilteredContinued(stream, state)
+ || eachContinued(stream, state)
+ || attrsContinued(stream, state)
+ || javaScript(stream, state)
+ || javaScriptArguments(stream, state)
+ || callArguments(stream, state)
+
+ || yieldStatement(stream)
+ || doctype(stream)
+ || interpolation(stream, state)
+ || caseStatement(stream, state)
+ || when(stream, state)
+ || defaultStatement(stream)
+ || extendsStatement(stream, state)
+ || append(stream, state)
+ || prepend(stream, state)
+ || block(stream, state)
+ || include(stream, state)
+ || includeFiltered(stream, state)
+ || mixin(stream, state)
+ || call(stream, state)
+ || conditional(stream, state)
+ || each(stream, state)
+ || whileStatement(stream, state)
+ || tag(stream, state)
+ || filter(stream, state)
+ || code(stream, state)
+ || id(stream)
+ || className(stream)
+ || attrs(stream, state)
+ || attributesBlock(stream, state)
+ || indent(stream)
+ || text(stream, state)
+ || comment(stream, state)
+ || colon(stream)
+ || dot(stream, state)
+ || fail(stream)
+
+ return tok === true ? null : tok
+}
+
+const pug = {
+ startState: startState,
+ copyState: copyState,
+ token: nextToken
+}
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=1601.4154c4f9ed460feae33b.js.map?v=4154c4f9ed460feae33b
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/1618.da67fb30732c49b969ba.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/1618.da67fb30732c49b969ba.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..53f6ef3e02e7032e34c18aa4652fff4c8cd36f21
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/1618.da67fb30732c49b969ba.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"1618.da67fb30732c49b969ba.js?v=da67fb30732c49b969ba","mappings":";;;;;;;;;;AAAA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,UAAU;AACtC;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,GAAG;;AAEH;AACA,6BAA6B;AAC7B,oBAAoB,oBAAoB,yBAAyB;AACjE,oBAAoB,uBAAuB;AAC3C;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/swift.js"],"sourcesContent":["function wordSet(words) {\n var set = {}\n for (var i = 0; i < words.length; i++) set[words[i]] = true\n return set\n}\n\nvar keywords = wordSet([\"_\",\"var\",\"let\",\"actor\",\"class\",\"enum\",\"extension\",\"import\",\"protocol\",\"struct\",\"func\",\"typealias\",\"associatedtype\",\n \"open\",\"public\",\"internal\",\"fileprivate\",\"private\",\"deinit\",\"init\",\"new\",\"override\",\"self\",\"subscript\",\"super\",\n \"convenience\",\"dynamic\",\"final\",\"indirect\",\"lazy\",\"required\",\"static\",\"unowned\",\"unowned(safe)\",\"unowned(unsafe)\",\"weak\",\"as\",\"is\",\n \"break\",\"case\",\"continue\",\"default\",\"else\",\"fallthrough\",\"for\",\"guard\",\"if\",\"in\",\"repeat\",\"switch\",\"where\",\"while\",\n \"defer\",\"return\",\"inout\",\"mutating\",\"nonmutating\",\"isolated\",\"nonisolated\",\"catch\",\"do\",\"rethrows\",\"throw\",\"throws\",\"async\",\"await\",\"try\",\"didSet\",\"get\",\"set\",\"willSet\",\n \"assignment\",\"associativity\",\"infix\",\"left\",\"none\",\"operator\",\"postfix\",\"precedence\",\"precedencegroup\",\"prefix\",\"right\",\n \"Any\",\"AnyObject\",\"Type\",\"dynamicType\",\"Self\",\"Protocol\",\"__COLUMN__\",\"__FILE__\",\"__FUNCTION__\",\"__LINE__\"])\nvar definingKeywords = wordSet([\"var\",\"let\",\"actor\",\"class\",\"enum\",\"extension\",\"import\",\"protocol\",\"struct\",\"func\",\"typealias\",\"associatedtype\",\"for\"])\nvar atoms = wordSet([\"true\",\"false\",\"nil\",\"self\",\"super\",\"_\"])\nvar types = wordSet([\"Array\",\"Bool\",\"Character\",\"Dictionary\",\"Double\",\"Float\",\"Int\",\"Int8\",\"Int16\",\"Int32\",\"Int64\",\"Never\",\"Optional\",\"Set\",\"String\",\n \"UInt8\",\"UInt16\",\"UInt32\",\"UInt64\",\"Void\"])\nvar operators = \"+-/*%=|&<>~^?!\"\nvar punc = \":;,.(){}[]\"\nvar binary = /^\\-?0b[01][01_]*/\nvar octal = /^\\-?0o[0-7][0-7_]*/\nvar hexadecimal = /^\\-?0x[\\dA-Fa-f][\\dA-Fa-f_]*(?:(?:\\.[\\dA-Fa-f][\\dA-Fa-f_]*)?[Pp]\\-?\\d[\\d_]*)?/\nvar decimal = /^\\-?\\d[\\d_]*(?:\\.\\d[\\d_]*)?(?:[Ee]\\-?\\d[\\d_]*)?/\nvar identifier = /^\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1/\nvar property = /^\\.(?:\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1)/\nvar instruction = /^\\#[A-Za-z]+/\nvar attribute = /^@(?:\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1)/\n//var regexp = /^\\/(?!\\s)(?:\\/\\/)?(?:\\\\.|[^\\/])+\\//\n\nfunction tokenBase(stream, state, prev) {\n if (stream.sol()) state.indented = stream.indentation()\n if (stream.eatSpace()) return null\n\n var ch = stream.peek()\n if (ch == \"/\") {\n if (stream.match(\"//\")) {\n stream.skipToEnd()\n return \"comment\"\n }\n if (stream.match(\"/*\")) {\n state.tokenize.push(tokenComment)\n return tokenComment(stream, state)\n }\n }\n if (stream.match(instruction)) return \"builtin\"\n if (stream.match(attribute)) return \"attribute\"\n if (stream.match(binary)) return \"number\"\n if (stream.match(octal)) return \"number\"\n if (stream.match(hexadecimal)) return \"number\"\n if (stream.match(decimal)) return \"number\"\n if (stream.match(property)) return \"property\"\n if (operators.indexOf(ch) > -1) {\n stream.next()\n return \"operator\"\n }\n if (punc.indexOf(ch) > -1) {\n stream.next()\n stream.match(\"..\")\n return \"punctuation\"\n }\n var stringMatch\n if (stringMatch = stream.match(/(\"\"\"|\"|')/)) {\n var tokenize = tokenString.bind(null, stringMatch[0])\n state.tokenize.push(tokenize)\n return tokenize(stream, state)\n }\n\n if (stream.match(identifier)) {\n var ident = stream.current()\n if (types.hasOwnProperty(ident)) return \"type\"\n if (atoms.hasOwnProperty(ident)) return \"atom\"\n if (keywords.hasOwnProperty(ident)) {\n if (definingKeywords.hasOwnProperty(ident))\n state.prev = \"define\"\n return \"keyword\"\n }\n if (prev == \"define\") return \"def\"\n return \"variable\"\n }\n\n stream.next()\n return null\n}\n\nfunction tokenUntilClosingParen() {\n var depth = 0\n return function(stream, state, prev) {\n var inner = tokenBase(stream, state, prev)\n if (inner == \"punctuation\") {\n if (stream.current() == \"(\") ++depth\n else if (stream.current() == \")\") {\n if (depth == 0) {\n stream.backUp(1)\n state.tokenize.pop()\n return state.tokenize[state.tokenize.length - 1](stream, state)\n }\n else --depth\n }\n }\n return inner\n }\n}\n\nfunction tokenString(openQuote, stream, state) {\n var singleLine = openQuote.length == 1\n var ch, escaped = false\n while (ch = stream.peek()) {\n if (escaped) {\n stream.next()\n if (ch == \"(\") {\n state.tokenize.push(tokenUntilClosingParen())\n return \"string\"\n }\n escaped = false\n } else if (stream.match(openQuote)) {\n state.tokenize.pop()\n return \"string\"\n } else {\n stream.next()\n escaped = ch == \"\\\\\"\n }\n }\n if (singleLine) {\n state.tokenize.pop()\n }\n return \"string\"\n}\n\nfunction tokenComment(stream, state) {\n var ch\n while (ch = stream.next()) {\n if (ch === \"/\" && stream.eat(\"*\")) {\n state.tokenize.push(tokenComment)\n } else if (ch === \"*\" && stream.eat(\"/\")) {\n state.tokenize.pop()\n break\n }\n }\n return \"comment\"\n}\n\nfunction Context(prev, align, indented) {\n this.prev = prev\n this.align = align\n this.indented = indented\n}\n\nfunction pushContext(state, stream) {\n var align = stream.match(/^\\s*($|\\/[\\/\\*]|[)}\\]])/, false) ? null : stream.column() + 1\n state.context = new Context(state.context, align, state.indented)\n}\n\nfunction popContext(state) {\n if (state.context) {\n state.indented = state.context.indented\n state.context = state.context.prev\n }\n}\n\nexport const swift = {\n name: \"swift\",\n startState: function() {\n return {\n prev: null,\n context: null,\n indented: 0,\n tokenize: []\n }\n },\n\n token: function(stream, state) {\n var prev = state.prev\n state.prev = null\n var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase\n var style = tokenize(stream, state, prev)\n if (!style || style == \"comment\") state.prev = prev\n else if (!state.prev) state.prev = style\n\n if (style == \"punctuation\") {\n var bracket = /[\\(\\[\\{]|([\\]\\)\\}])/.exec(stream.current())\n if (bracket) (bracket[1] ? popContext : pushContext)(state, stream)\n }\n\n return style\n },\n\n indent: function(state, textAfter, iCx) {\n var cx = state.context\n if (!cx) return 0\n var closing = /^[\\]\\}\\)]/.test(textAfter)\n if (cx.align != null) return cx.align - (closing ? 1 : 0)\n return cx.indented + (closing ? 0 : iCx.unit)\n },\n\n languageData: {\n indentOnInput: /^\\s*[\\)\\}\\]]$/,\n commentTokens: {line: \"//\", block: {open: \"/*\", close: \"*/\"}},\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", \"'\", '\"', \"`\"]}\n }\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/1650.8d7f95fed9378b01c97b.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/1650.8d7f95fed9378b01c97b.js
new file mode 100644
index 0000000000000000000000000000000000000000..38fe4eab1c5cd9c9c3c46c2fce1be4db64d7a4c7
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/1650.8d7f95fed9378b01c97b.js
@@ -0,0 +1,110 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1650,8875],{
+
+/***/ 71650:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76107);
+/* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89598);
+/* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87362);
+/* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _lumino_signaling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2159);
+/* harmony import */ var _lumino_signaling__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_lumino_signaling__WEBPACK_IMPORTED_MODULE_3__);
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+
+
+
+/**
+ * A plugin to open documents in a new browser tab.
+ *
+ */
+const opener = {
+ id: '@jupyter-notebook/docmanager-extension:opener',
+ autoStart: true,
+ optional: [_jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.INotebookPathOpener, _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.INotebookShell],
+ provides: _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__.IDocumentWidgetOpener,
+ description: 'Open documents in a new browser tab',
+ activate: (app, notebookPathOpener, notebookShell) => {
+ const baseUrl = _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.PageConfig.getBaseUrl();
+ const docRegistry = app.docRegistry;
+ const pathOpener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.defaultNotebookPathOpener;
+ let id = 0;
+ return new (class {
+ constructor() {
+ this._opened = new _lumino_signaling__WEBPACK_IMPORTED_MODULE_3__.Signal(this);
+ }
+ async open(widget, options) {
+ var _a, _b, _c;
+ const widgetName = (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : '';
+ const ref = options === null || options === void 0 ? void 0 : options.ref;
+ // check if there is an setting override and if it would add the widget in the main area
+ const userLayoutArea = (_c = (_b = notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.userLayout) === null || _b === void 0 ? void 0 : _b[widgetName]) === null || _c === void 0 ? void 0 : _c.area;
+ if (ref !== '_noref' && userLayoutArea === undefined) {
+ const path = widget.context.path;
+ const ext = _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.PathExt.extname(path);
+ let route = 'edit';
+ if ((widgetName === 'default' && ext === '.ipynb') ||
+ widgetName.includes('Notebook')) {
+ // make sure to save the notebook before opening it in a new tab
+ // so the kernel info is saved (if created from the New dropdown)
+ if (widget.context.sessionContext.kernelPreference.name) {
+ await widget.context.save();
+ }
+ route = 'notebooks';
+ }
+ // append ?factory only if it's not the default
+ const defaultFactory = docRegistry.defaultWidgetFactory(path);
+ let searchParams = undefined;
+ if (widgetName !== defaultFactory.name) {
+ searchParams = new URLSearchParams({
+ factory: widgetName,
+ });
+ }
+ pathOpener.open({
+ prefix: _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.URLExt.join(baseUrl, route),
+ path,
+ searchParams,
+ });
+ // dispose the widget since it is not used on this page
+ widget.dispose();
+ return;
+ }
+ // otherwise open the document on the current page
+ if (!widget.id) {
+ widget.id = `document-manager-${++id}`;
+ }
+ widget.title.dataset = {
+ type: 'document-title',
+ ...widget.title.dataset,
+ };
+ if (!widget.isAttached) {
+ app.shell.add(widget, 'main', options || {});
+ }
+ app.shell.activateById(widget.id);
+ this._opened.emit(widget);
+ }
+ get opened() {
+ return this._opened;
+ }
+ })();
+ },
+};
+/**
+ * Export the plugins as default.
+ */
+const plugins = [opener];
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plugins);
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=1650.8d7f95fed9378b01c97b.js.map?v=8d7f95fed9378b01c97b
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/1837.6bbfd9967be58e1325f1.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/1837.6bbfd9967be58e1325f1.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..ddd836b586b1896737866551fa30c5089d927f69
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/1837.6bbfd9967be58e1325f1.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"1837.6bbfd9967be58e1325f1.js?v=6bbfd9967be58e1325f1","mappings":";;;;;;;;;;AAAA;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA,yBAAyB,IAAI;AAC7B,gCAAgC,IAAI;AACpC;AACA;;AAEA;AACA;AACA,OAAO,IAAI;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,GAAG;AAC1B;AACA,IAAI,0BAA0B,IAAI;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,GAAG,GAAG;AAC9B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA,0CAA0C,wBAAwB;AAClE,sCAAsC,wBAAwB;AAC9D,uCAAuC,wBAAwB;AAC/D;AACA,uHAAuH;AACvH,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B,qBAAqB;AACrB;AACA,IAAI,wBAAwB;AAC5B;AACA;AACA;AACA,yBAAyB,EAAE;AAC3B,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI,4CAA4C,IAAI;AACpD;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,IAAI,+CAA+C,IAAI;AACvD;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oBAAoB,mBAAmB,yBAAyB;AAChE,oBAAoB,uBAAuB,QAAQ;AACnD;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/julia.js"],"sourcesContent":["function wordRegexp(words, end, pre) {\n if (typeof pre === \"undefined\") pre = \"\";\n if (typeof end === \"undefined\") { end = \"\\\\b\"; }\n return new RegExp(\"^\" + pre + \"((\" + words.join(\")|(\") + \"))\" + end);\n}\n\nvar octChar = \"\\\\\\\\[0-7]{1,3}\";\nvar hexChar = \"\\\\\\\\x[A-Fa-f0-9]{1,2}\";\nvar sChar = \"\\\\\\\\[abefnrtv0%?'\\\"\\\\\\\\]\";\nvar uChar = \"([^\\\\u0027\\\\u005C\\\\uD800-\\\\uDFFF]|[\\\\uD800-\\\\uDFFF][\\\\uDC00-\\\\uDFFF])\";\n\nvar asciiOperatorsList = [\n \"[<>]:\", \"[<>=]=\", \"<<=?\", \">>>?=?\", \"=>\", \"--?>\", \"<--[->]?\", \"\\\\/\\\\/\",\n \"\\\\.{2,3}\", \"[\\\\.\\\\\\\\%*+\\\\-<>!\\\\/^|&]=?\", \"\\\\?\", \"\\\\$\", \"~\", \":\"\n];\nvar operators = wordRegexp([\n \"[<>]:\", \"[<>=]=\", \"[!=]==\", \"<<=?\", \">>>?=?\", \"=>?\", \"--?>\", \"<--[->]?\", \"\\\\/\\\\/\",\n \"[\\\\\\\\%*+\\\\-<>!\\\\/^|&\\\\u00F7\\\\u22BB]=?\", \"\\\\?\", \"\\\\$\", \"~\", \":\",\n \"\\\\u00D7\", \"\\\\u2208\", \"\\\\u2209\", \"\\\\u220B\", \"\\\\u220C\", \"\\\\u2218\",\n \"\\\\u221A\", \"\\\\u221B\", \"\\\\u2229\", \"\\\\u222A\", \"\\\\u2260\", \"\\\\u2264\",\n \"\\\\u2265\", \"\\\\u2286\", \"\\\\u2288\", \"\\\\u228A\", \"\\\\u22C5\",\n \"\\\\b(in|isa)\\\\b(?!\\.?\\\\()\"\n], \"\");\nvar delimiters = /^[;,()[\\]{}]/;\nvar identifiers = /^[_A-Za-z\\u00A1-\\u2217\\u2219-\\uFFFF][\\w\\u00A1-\\u2217\\u2219-\\uFFFF]*!*/;\n\nvar chars = wordRegexp([octChar, hexChar, sChar, uChar], \"'\");\n\nvar openersList = [\"begin\", \"function\", \"type\", \"struct\", \"immutable\", \"let\",\n \"macro\", \"for\", \"while\", \"quote\", \"if\", \"else\", \"elseif\", \"try\",\n \"finally\", \"catch\", \"do\"];\n\nvar closersList = [\"end\", \"else\", \"elseif\", \"catch\", \"finally\"];\n\nvar keywordsList = [\"if\", \"else\", \"elseif\", \"while\", \"for\", \"begin\", \"let\",\n \"end\", \"do\", \"try\", \"catch\", \"finally\", \"return\", \"break\", \"continue\",\n \"global\", \"local\", \"const\", \"export\", \"import\", \"importall\", \"using\",\n \"function\", \"where\", \"macro\", \"module\", \"baremodule\", \"struct\", \"type\",\n \"mutable\", \"immutable\", \"quote\", \"typealias\", \"abstract\", \"primitive\",\n \"bitstype\"];\n\nvar builtinsList = [\"true\", \"false\", \"nothing\", \"NaN\", \"Inf\"];\n\nvar openers = wordRegexp(openersList);\nvar closers = wordRegexp(closersList);\nvar keywords = wordRegexp(keywordsList);\nvar builtins = wordRegexp(builtinsList);\n\nvar macro = /^@[_A-Za-z\\u00A1-\\uFFFF][\\w\\u00A1-\\uFFFF]*!*/;\nvar symbol = /^:[_A-Za-z\\u00A1-\\uFFFF][\\w\\u00A1-\\uFFFF]*!*/;\nvar stringPrefixes = /^(`|([_A-Za-z\\u00A1-\\uFFFF]*\"(\"\")?))/;\n\nvar macroOperators = wordRegexp(asciiOperatorsList, \"\", \"@\");\nvar symbolOperators = wordRegexp(asciiOperatorsList, \"\", \":\");\n\nfunction inArray(state) {\n return (state.nestedArrays > 0);\n}\n\nfunction inGenerator(state) {\n return (state.nestedGenerators > 0);\n}\n\nfunction currentScope(state, n) {\n if (typeof(n) === \"undefined\") { n = 0; }\n if (state.scopes.length <= n) {\n return null;\n }\n return state.scopes[state.scopes.length - (n + 1)];\n}\n\n// tokenizers\nfunction tokenBase(stream, state) {\n // Handle multiline comments\n if (stream.match('#=', false)) {\n state.tokenize = tokenComment;\n return state.tokenize(stream, state);\n }\n\n // Handle scope changes\n var leavingExpr = state.leavingExpr;\n if (stream.sol()) {\n leavingExpr = false;\n }\n state.leavingExpr = false;\n\n if (leavingExpr) {\n if (stream.match(/^'+/)) {\n return \"operator\";\n }\n }\n\n if (stream.match(/\\.{4,}/)) {\n return \"error\";\n } else if (stream.match(/\\.{1,3}/)) {\n return \"operator\";\n }\n\n if (stream.eatSpace()) {\n return null;\n }\n\n var ch = stream.peek();\n\n // Handle single line comments\n if (ch === '#') {\n stream.skipToEnd();\n return \"comment\";\n }\n\n if (ch === '[') {\n state.scopes.push('[');\n state.nestedArrays++;\n }\n\n if (ch === '(') {\n state.scopes.push('(');\n state.nestedGenerators++;\n }\n\n if (inArray(state) && ch === ']') {\n while (state.scopes.length && currentScope(state) !== \"[\") { state.scopes.pop(); }\n state.scopes.pop();\n state.nestedArrays--;\n state.leavingExpr = true;\n }\n\n if (inGenerator(state) && ch === ')') {\n while (state.scopes.length && currentScope(state) !== \"(\") { state.scopes.pop(); }\n state.scopes.pop();\n state.nestedGenerators--;\n state.leavingExpr = true;\n }\n\n if (inArray(state)) {\n if (state.lastToken == \"end\" && stream.match(':')) {\n return \"operator\";\n }\n if (stream.match('end')) {\n return \"number\";\n }\n }\n\n var match;\n if (match = stream.match(openers, false)) {\n state.scopes.push(match[0]);\n }\n\n if (stream.match(closers, false)) {\n state.scopes.pop();\n }\n\n // Handle type annotations\n if (stream.match(/^::(?![:\\$])/)) {\n state.tokenize = tokenAnnotation;\n return state.tokenize(stream, state);\n }\n\n // Handle symbols\n if (!leavingExpr && (stream.match(symbol) || stream.match(symbolOperators))) {\n return \"builtin\";\n }\n\n // Handle parametric types\n //if (stream.match(/^{[^}]*}(?=\\()/)) {\n // return \"builtin\";\n //}\n\n // Handle operators and Delimiters\n if (stream.match(operators)) {\n return \"operator\";\n }\n\n // Handle Number Literals\n if (stream.match(/^\\.?\\d/, false)) {\n var imMatcher = RegExp(/^im\\b/);\n var numberLiteral = false;\n if (stream.match(/^0x\\.[0-9a-f_]+p[\\+\\-]?[_\\d]+/i)) { numberLiteral = true; }\n // Integers\n if (stream.match(/^0x[0-9a-f_]+/i)) { numberLiteral = true; } // Hex\n if (stream.match(/^0b[01_]+/i)) { numberLiteral = true; } // Binary\n if (stream.match(/^0o[0-7_]+/i)) { numberLiteral = true; } // Octal\n // Floats\n if (stream.match(/^(?:(?:\\d[_\\d]*)?\\.(?!\\.)(?:\\d[_\\d]*)?|\\d[_\\d]*\\.(?!\\.)(?:\\d[_\\d]*))?([Eef][\\+\\-]?[_\\d]+)?/i)) { numberLiteral = true; }\n if (stream.match(/^\\d[_\\d]*(e[\\+\\-]?\\d+)?/i)) { numberLiteral = true; } // Decimal\n if (numberLiteral) {\n // Integer literals may be \"long\"\n stream.match(imMatcher);\n state.leavingExpr = true;\n return \"number\";\n }\n }\n\n // Handle Chars\n if (stream.match(\"'\")) {\n state.tokenize = tokenChar;\n return state.tokenize(stream, state);\n }\n\n // Handle Strings\n if (stream.match(stringPrefixes)) {\n state.tokenize = tokenStringFactory(stream.current());\n return state.tokenize(stream, state);\n }\n\n if (stream.match(macro) || stream.match(macroOperators)) {\n return \"meta\";\n }\n\n if (stream.match(delimiters)) {\n return null;\n }\n\n if (stream.match(keywords)) {\n return \"keyword\";\n }\n\n if (stream.match(builtins)) {\n return \"builtin\";\n }\n\n var isDefinition = state.isDefinition || state.lastToken == \"function\" ||\n state.lastToken == \"macro\" || state.lastToken == \"type\" ||\n state.lastToken == \"struct\" || state.lastToken == \"immutable\";\n\n if (stream.match(identifiers)) {\n if (isDefinition) {\n if (stream.peek() === '.') {\n state.isDefinition = true;\n return \"variable\";\n }\n state.isDefinition = false;\n return \"def\";\n }\n state.leavingExpr = true;\n return \"variable\";\n }\n\n // Handle non-detected items\n stream.next();\n return \"error\";\n}\n\nfunction tokenAnnotation(stream, state) {\n stream.match(/.*?(?=[,;{}()=\\s]|$)/);\n if (stream.match('{')) {\n state.nestedParameters++;\n } else if (stream.match('}') && state.nestedParameters > 0) {\n state.nestedParameters--;\n }\n if (state.nestedParameters > 0) {\n stream.match(/.*?(?={|})/) || stream.next();\n } else if (state.nestedParameters == 0) {\n state.tokenize = tokenBase;\n }\n return \"builtin\";\n}\n\nfunction tokenComment(stream, state) {\n if (stream.match('#=')) {\n state.nestedComments++;\n }\n if (!stream.match(/.*?(?=(#=|=#))/)) {\n stream.skipToEnd();\n }\n if (stream.match('=#')) {\n state.nestedComments--;\n if (state.nestedComments == 0)\n state.tokenize = tokenBase;\n }\n return \"comment\";\n}\n\nfunction tokenChar(stream, state) {\n var isChar = false, match;\n if (stream.match(chars)) {\n isChar = true;\n } else if (match = stream.match(/\\\\u([a-f0-9]{1,4})(?=')/i)) {\n var value = parseInt(match[1], 16);\n if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF)\n isChar = true;\n stream.next();\n }\n } else if (match = stream.match(/\\\\U([A-Fa-f0-9]{5,8})(?=')/)) {\n var value = parseInt(match[1], 16);\n if (value <= 1114111) { // U+10FFFF\n isChar = true;\n stream.next();\n }\n }\n if (isChar) {\n state.leavingExpr = true;\n state.tokenize = tokenBase;\n return \"string\";\n }\n if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); }\n if (stream.match(\"'\")) { state.tokenize = tokenBase; }\n return \"error\";\n}\n\nfunction tokenStringFactory(delimiter) {\n if (delimiter.substr(-3) === '\"\"\"') {\n delimiter = '\"\"\"';\n } else if (delimiter.substr(-1) === '\"') {\n delimiter = '\"';\n }\n function tokenString(stream, state) {\n if (stream.eat('\\\\')) {\n stream.next();\n } else if (stream.match(delimiter)) {\n state.tokenize = tokenBase;\n state.leavingExpr = true;\n return \"string\";\n } else {\n stream.eat(/[`\"]/);\n }\n stream.eatWhile(/[^\\\\`\"]/);\n return \"string\";\n }\n return tokenString;\n}\n\nexport const julia = {\n name: \"julia\",\n startState: function() {\n return {\n tokenize: tokenBase,\n scopes: [],\n lastToken: null,\n leavingExpr: false,\n isDefinition: false,\n nestedArrays: 0,\n nestedComments: 0,\n nestedGenerators: 0,\n nestedParameters: 0,\n firstParenPos: -1\n };\n },\n\n token: function(stream, state) {\n var style = state.tokenize(stream, state);\n var current = stream.current();\n\n if (current && style) {\n state.lastToken = current;\n }\n\n return style;\n },\n\n indent: function(state, textAfter, cx) {\n var delta = 0;\n if ( textAfter === ']' || textAfter === ')' || /^end\\b/.test(textAfter) ||\n /^else/.test(textAfter) || /^catch\\b/.test(textAfter) || /^elseif\\b/.test(textAfter) ||\n /^finally/.test(textAfter) ) {\n delta = -1;\n }\n return (state.scopes.length + delta) * cx.unit;\n },\n\n languageData: {\n indentOnInput: /^\\s*(end|else|catch|finally)\\b$/,\n commentTokens: {line: \"#\", block: {open: \"#=\", close: \"=#\"}},\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", '\"']},\n autocomplete: keywordsList.concat(builtinsList)\n }\n};\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/1869.c994a53965ffbc5a22b5.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/1869.c994a53965ffbc5a22b5.js
new file mode 100644
index 0000000000000000000000000000000000000000..57dc75d1a9374e52ab292c1995b85c8c7b75f354
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/1869.c994a53965ffbc5a22b5.js
@@ -0,0 +1,59 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1869],{
+
+/***/ 81869:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ mangle: () => (/* binding */ mangle)
+/* harmony export */ });
+function mangle() {
+ return {
+ mangle: false, // remove this once mangle option is removed
+ walkTokens(token) {
+ if (token.type !== 'link') {
+ return;
+ }
+
+ if (!token.href.startsWith('mailto:')) {
+ return;
+ }
+
+ const email = token.href.substring(7);
+ const mangledEmail = mangleEmail(email);
+
+ token.href = `mailto:${mangledEmail}`;
+
+ if (token.tokens.length !== 1 || token.tokens[0].type !== 'text' || token.tokens[0].text !== email) {
+ return;
+ }
+
+ token.text = mangledEmail;
+ token.tokens[0].text = mangledEmail;
+ }
+ };
+}
+
+function mangleEmail(text) {
+ let out = '',
+ i,
+ ch;
+
+ const l = text.length;
+ for (i = 0; i < l; i++) {
+ ch = text.charCodeAt(i);
+ if (Math.random() > 0.5) {
+ ch = 'x' + ch.toString(16);
+ }
+ out += '' + ch + ';';
+ }
+
+ return out;
+}
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=1869.c994a53965ffbc5a22b5.js.map?v=c994a53965ffbc5a22b5
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/2188.8a4dbc0baaccf031e5c4.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/2188.8a4dbc0baaccf031e5c4.js
new file mode 100644
index 0000000000000000000000000000000000000000..3039976b71a6921116fba363cd70f778f5b08466
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/2188.8a4dbc0baaccf031e5c4.js
@@ -0,0 +1,188 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[2188],{
+
+/***/ 42188:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ r: () => (/* binding */ r)
+/* harmony export */ });
+function wordObj(words) {
+ var res = {};
+ for (var i = 0; i < words.length; ++i) res[words[i]] = true;
+ return res;
+}
+var commonAtoms = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"];
+var commonBuiltins = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"];
+var commonKeywords = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"];
+var commonBlockKeywords = ["if", "else", "repeat", "while", "function", "for"];
+
+var atoms = wordObj(commonAtoms);
+var builtins = wordObj(commonBuiltins);
+var keywords = wordObj(commonKeywords);
+var blockkeywords = wordObj(commonBlockKeywords);
+var opChars = /[+\-*\/^<>=!&|~$:]/;
+var curPunc;
+
+function tokenBase(stream, state) {
+ curPunc = null;
+ var ch = stream.next();
+ if (ch == "#") {
+ stream.skipToEnd();
+ return "comment";
+ } else if (ch == "0" && stream.eat("x")) {
+ stream.eatWhile(/[\da-f]/i);
+ return "number";
+ } else if (ch == "." && stream.eat(/\d/)) {
+ stream.match(/\d*(?:e[+\-]?\d+)?/);
+ return "number";
+ } else if (/\d/.test(ch)) {
+ stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);
+ return "number";
+ } else if (ch == "'" || ch == '"') {
+ state.tokenize = tokenString(ch);
+ return "string";
+ } else if (ch == "`") {
+ stream.match(/[^`]+`/);
+ return "string.special";
+ } else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) {
+ return "keyword";
+ } else if (/[a-zA-Z\.]/.test(ch)) {
+ stream.eatWhile(/[\w\.]/);
+ var word = stream.current();
+ if (atoms.propertyIsEnumerable(word)) return "atom";
+ if (keywords.propertyIsEnumerable(word)) {
+ // Block keywords start new blocks, except 'else if', which only starts
+ // one new block for the 'if', no block for the 'else'.
+ if (blockkeywords.propertyIsEnumerable(word) &&
+ !stream.match(/\s*if(\s+|$)/, false))
+ curPunc = "block";
+ return "keyword";
+ }
+ if (builtins.propertyIsEnumerable(word)) return "builtin";
+ return "variable";
+ } else if (ch == "%") {
+ if (stream.skipTo("%")) stream.next();
+ return "variableName.special";
+ } else if (
+ (ch == "<" && stream.eat("-")) ||
+ (ch == "<" && stream.match("<-")) ||
+ (ch == "-" && stream.match(/>>?/))
+ ) {
+ return "operator";
+ } else if (ch == "=" && state.ctx.argList) {
+ return "operator";
+ } else if (opChars.test(ch)) {
+ if (ch == "$") return "operator";
+ stream.eatWhile(opChars);
+ return "operator";
+ } else if (/[\(\){}\[\];]/.test(ch)) {
+ curPunc = ch;
+ if (ch == ";") return "punctuation";
+ return null;
+ } else {
+ return null;
+ }
+}
+
+function tokenString(quote) {
+ return function(stream, state) {
+ if (stream.eat("\\")) {
+ var ch = stream.next();
+ if (ch == "x") stream.match(/^[a-f0-9]{2}/i);
+ else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next();
+ else if (ch == "u") stream.match(/^[a-f0-9]{4}/i);
+ else if (ch == "U") stream.match(/^[a-f0-9]{8}/i);
+ else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/);
+ return "string.special";
+ } else {
+ var next;
+ while ((next = stream.next()) != null) {
+ if (next == quote) { state.tokenize = tokenBase; break; }
+ if (next == "\\") { stream.backUp(1); break; }
+ }
+ return "string";
+ }
+ };
+}
+
+var ALIGN_YES = 1, ALIGN_NO = 2, BRACELESS = 4
+
+function push(state, type, stream) {
+ state.ctx = {type: type,
+ indent: state.indent,
+ flags: 0,
+ column: stream.column(),
+ prev: state.ctx};
+}
+function setFlag(state, flag) {
+ var ctx = state.ctx
+ state.ctx = {type: ctx.type,
+ indent: ctx.indent,
+ flags: ctx.flags | flag,
+ column: ctx.column,
+ prev: ctx.prev}
+}
+function pop(state) {
+ state.indent = state.ctx.indent;
+ state.ctx = state.ctx.prev;
+}
+
+const r = {
+ name: "r",
+ startState: function(indentUnit) {
+ return {tokenize: tokenBase,
+ ctx: {type: "top",
+ indent: -indentUnit,
+ flags: ALIGN_NO},
+ indent: 0,
+ afterIdent: false};
+ },
+
+ token: function(stream, state) {
+ if (stream.sol()) {
+ if ((state.ctx.flags & 3) == 0) state.ctx.flags |= ALIGN_NO
+ if (state.ctx.flags & BRACELESS) pop(state)
+ state.indent = stream.indentation();
+ }
+ if (stream.eatSpace()) return null;
+ var style = state.tokenize(stream, state);
+ if (style != "comment" && (state.ctx.flags & ALIGN_NO) == 0) setFlag(state, ALIGN_YES)
+
+ if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && state.ctx.type == "block") pop(state);
+ if (curPunc == "{") push(state, "}", stream);
+ else if (curPunc == "(") {
+ push(state, ")", stream);
+ if (state.afterIdent) state.ctx.argList = true;
+ }
+ else if (curPunc == "[") push(state, "]", stream);
+ else if (curPunc == "block") push(state, "block", stream);
+ else if (curPunc == state.ctx.type) pop(state);
+ else if (state.ctx.type == "block" && style != "comment") setFlag(state, BRACELESS)
+ state.afterIdent = style == "variable" || style == "keyword";
+ return style;
+ },
+
+ indent: function(state, textAfter, cx) {
+ if (state.tokenize != tokenBase) return 0;
+ var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx,
+ closing = firstChar == ctx.type;
+ if (ctx.flags & BRACELESS) ctx = ctx.prev
+ if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : cx.unit);
+ else if (ctx.flags & ALIGN_YES) return ctx.column + (closing ? 0 : 1);
+ else return ctx.indent + (closing ? 0 : cx.unit);
+ },
+
+ languageData: {
+ wordChars: ".",
+ commentTokens: {line: "#"},
+ autocomplete: commonAtoms.concat(commonBuiltins, commonKeywords)
+ }
+};
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=2188.8a4dbc0baaccf031e5c4.js.map?v=8a4dbc0baaccf031e5c4
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/2343.76b08c834d1f3e6c0655.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/2343.76b08c834d1f3e6c0655.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..112e3786a3d14024877ce9dcda1269b9092e5062
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/2343.76b08c834d1f3e6c0655.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"2343.76b08c834d1f3e6c0655.js?v=76b08c834d1f3e6c0655","mappings":";;;;;;;;;;;AAA2C;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO,mBAAmB,oEAAU;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,CAAC;;;;;;;;;;;;ACpMM;AACP;AACA,kBAAkB,kCAAkC;AACpD;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL;AACA,eAAe;AACf;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,oBAAoB;AAC9C;AACA,kCAAkC,2CAA2C;AAC7E;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/dockerfile.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/simple-mode.js"],"sourcesContent":["import {simpleMode} from \"./simple-mode.js\"\n\nvar from = \"from\";\nvar fromRegex = new RegExp(\"^(\\\\s*)\\\\b(\" + from + \")\\\\b\", \"i\");\n\nvar shells = [\"run\", \"cmd\", \"entrypoint\", \"shell\"];\nvar shellsAsArrayRegex = new RegExp(\"^(\\\\s*)(\" + shells.join('|') + \")(\\\\s+\\\\[)\", \"i\");\n\nvar expose = \"expose\";\nvar exposeRegex = new RegExp(\"^(\\\\s*)(\" + expose + \")(\\\\s+)\", \"i\");\n\nvar others = [\n \"arg\", \"from\", \"maintainer\", \"label\", \"env\",\n \"add\", \"copy\", \"volume\", \"user\",\n \"workdir\", \"onbuild\", \"stopsignal\", \"healthcheck\", \"shell\"\n];\n\n// Collect all Dockerfile directives\nvar instructions = [from, expose].concat(shells).concat(others),\n instructionRegex = \"(\" + instructions.join('|') + \")\",\n instructionOnlyLine = new RegExp(\"^(\\\\s*)\" + instructionRegex + \"(\\\\s*)(#.*)?$\", \"i\"),\n instructionWithArguments = new RegExp(\"^(\\\\s*)\" + instructionRegex + \"(\\\\s+)\", \"i\");\n\nexport const dockerFile = simpleMode({\n start: [\n // Block comment: This is a line starting with a comment\n {\n regex: /^\\s*#.*$/,\n sol: true,\n token: \"comment\"\n },\n {\n regex: fromRegex,\n token: [null, \"keyword\"],\n sol: true,\n next: \"from\"\n },\n // Highlight an instruction without any arguments (for convenience)\n {\n regex: instructionOnlyLine,\n token: [null, \"keyword\", null, \"error\"],\n sol: true\n },\n {\n regex: shellsAsArrayRegex,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"array\"\n },\n {\n regex: exposeRegex,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"expose\"\n },\n // Highlight an instruction followed by arguments\n {\n regex: instructionWithArguments,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"arguments\"\n },\n {\n regex: /./,\n token: null\n }\n ],\n from: [\n {\n regex: /\\s*$/,\n token: null,\n next: \"start\"\n },\n {\n // Line comment without instruction arguments is an error\n regex: /(\\s*)(#.*)$/,\n token: [null, \"error\"],\n next: \"start\"\n },\n {\n regex: /(\\s*\\S+\\s+)(as)/i,\n token: [null, \"keyword\"],\n next: \"start\"\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n single: [\n {\n regex: /(?:[^\\\\']|\\\\.)/,\n token: \"string\"\n },\n {\n regex: /'/,\n token: \"string\",\n pop: true\n }\n ],\n double: [\n {\n regex: /(?:[^\\\\\"]|\\\\.)/,\n token: \"string\"\n },\n {\n regex: /\"/,\n token: \"string\",\n pop: true\n }\n ],\n array: [\n {\n regex: /\\]/,\n token: null,\n next: \"start\"\n },\n {\n regex: /\"(?:[^\\\\\"]|\\\\.)*\"?/,\n token: \"string\"\n }\n ],\n expose: [\n {\n regex: /\\d+$/,\n token: \"number\",\n next: \"start\"\n },\n {\n regex: /[^\\d]+$/,\n token: null,\n next: \"start\"\n },\n {\n regex: /\\d+/,\n token: \"number\"\n },\n {\n regex: /[^\\d]+/,\n token: null\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n arguments: [\n {\n regex: /^\\s*#.*$/,\n sol: true,\n token: \"comment\"\n },\n {\n regex: /\"(?:[^\\\\\"]|\\\\.)*\"?$/,\n token: \"string\",\n next: \"start\"\n },\n {\n regex: /\"/,\n token: \"string\",\n push: \"double\"\n },\n {\n regex: /'(?:[^\\\\']|\\\\.)*'?$/,\n token: \"string\",\n next: \"start\"\n },\n {\n regex: /'/,\n token: \"string\",\n push: \"single\"\n },\n {\n regex: /[^#\"']+[\\\\`]$/,\n token: null\n },\n {\n regex: /[^#\"']+$/,\n token: null,\n next: \"start\"\n },\n {\n regex: /[^#\"']+/,\n token: null\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n languageData: {\n commentTokens: {line: \"#\"}\n }\n});\n\n","export function simpleMode(states) {\n ensureState(states, \"start\");\n var states_ = {}, meta = states.languageData || {}, hasIndentation = false;\n for (var state in states) if (state != meta && states.hasOwnProperty(state)) {\n var list = states_[state] = [], orig = states[state];\n for (var i = 0; i < orig.length; i++) {\n var data = orig[i];\n list.push(new Rule(data, states));\n if (data.indent || data.dedent) hasIndentation = true;\n }\n }\n return {\n name: meta.name,\n startState: function() {\n return {state: \"start\", pending: null, indent: hasIndentation ? [] : null};\n },\n copyState: function(state) {\n var s = {state: state.state, pending: state.pending, indent: state.indent && state.indent.slice(0)};\n if (state.stack)\n s.stack = state.stack.slice(0);\n return s;\n },\n token: tokenFunction(states_),\n indent: indentFunction(states_, meta),\n languageData: meta\n }\n};\n\nfunction ensureState(states, name) {\n if (!states.hasOwnProperty(name))\n throw new Error(\"Undefined state \" + name + \" in simple mode\");\n}\n\nfunction toRegex(val, caret) {\n if (!val) return /(?:)/;\n var flags = \"\";\n if (val instanceof RegExp) {\n if (val.ignoreCase) flags = \"i\";\n val = val.source;\n } else {\n val = String(val);\n }\n return new RegExp((caret === false ? \"\" : \"^\") + \"(?:\" + val + \")\", flags);\n}\n\nfunction asToken(val) {\n if (!val) return null;\n if (val.apply) return val\n if (typeof val == \"string\") return val.replace(/\\./g, \" \");\n var result = [];\n for (var i = 0; i < val.length; i++)\n result.push(val[i] && val[i].replace(/\\./g, \" \"));\n return result;\n}\n\nfunction Rule(data, states) {\n if (data.next || data.push) ensureState(states, data.next || data.push);\n this.regex = toRegex(data.regex);\n this.token = asToken(data.token);\n this.data = data;\n}\n\nfunction tokenFunction(states) {\n return function(stream, state) {\n if (state.pending) {\n var pend = state.pending.shift();\n if (state.pending.length == 0) state.pending = null;\n stream.pos += pend.text.length;\n return pend.token;\n }\n\n var curState = states[state.state];\n for (var i = 0; i < curState.length; i++) {\n var rule = curState[i];\n var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);\n if (matches) {\n if (rule.data.next) {\n state.state = rule.data.next;\n } else if (rule.data.push) {\n (state.stack || (state.stack = [])).push(state.state);\n state.state = rule.data.push;\n } else if (rule.data.pop && state.stack && state.stack.length) {\n state.state = state.stack.pop();\n }\n\n if (rule.data.indent)\n state.indent.push(stream.indentation() + stream.indentUnit);\n if (rule.data.dedent)\n state.indent.pop();\n var token = rule.token\n if (token && token.apply) token = token(matches)\n if (matches.length > 2 && rule.token && typeof rule.token != \"string\") {\n state.pending = [];\n for (var j = 2; j < matches.length; j++)\n if (matches[j])\n state.pending.push({text: matches[j], token: rule.token[j - 1]});\n stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));\n return token[0];\n } else if (token && token.join) {\n return token[0];\n } else {\n return token;\n }\n }\n }\n stream.next();\n return null;\n };\n}\n\nfunction indentFunction(states, meta) {\n return function(state, textAfter) {\n if (state.indent == null || meta.dontIndentStates && meta.doneIndentState.indexOf(state.state) > -1)\n return null\n\n var pos = state.indent.length - 1, rules = states[state.state];\n scan: for (;;) {\n for (var i = 0; i < rules.length; i++) {\n var rule = rules[i];\n if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {\n var m = rule.regex.exec(textAfter);\n if (m && m[0]) {\n pos--;\n if (rule.next || rule.push) rules = states[rule.next || rule.push];\n textAfter = textAfter.slice(m[0].length);\n continue scan;\n }\n }\n }\n break;\n }\n return pos < 0 ? 0 : state.indent[pos];\n };\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/2520.ade7434a32fdecec9d43.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/2520.ade7434a32fdecec9d43.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..04f4ad7e66cb5ae4773e3b9dc68c2b4a57897ea1
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/2520.ade7434a32fdecec9d43.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"2520.ade7434a32fdecec9d43.js?v=ade7434a32fdecec9d43","mappings":";;;;;;;;;;;;;;;;AAAqS;AAC5P;AACtB;AACJ;AACkB;AACd;AACH;AACc;AACF;AACZ;AACc;AAC9B;AACA;AACA,sBAAsB,gBAAgB,KAAK;AAC3C;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL,UAAU;AACV,gBAAgB,8yBAA8yB;AAC9zB,kBAAkB,qlBAAqlB;AACvmB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,uDAAuD,IAAI,QAAQ,IAAI,uDAAuD,IAAI,uDAAuD,mBAAmB,OAAO,wDAAwD,WAAW,IAAI,WAAW,gBAAgB,iSAAiS,qBAAqB,kCAAkC,gBAAgB,+QAA+Q,uDAAuD,aAAa,IAAI,aAAa,IAAI,aAAa,sCAAsC,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,iJAAiJ,qVAAqV,iJAAiJ,qBAAqB,iJAAiJ,qBAAqB,oIAAoI,qBAAqB,oIAAoI,qBAAqB,oIAAoI,qBAAqB,oIAAoI,KAAK,aAAa,wFAAwF,qIAAqI,qBAAqB,qIAAqI,KAAK,aAAa,oBAAoB,oIAAoI,qBAAqB,oIAAoI;AACz8H,sBAAsB,sBAAsB;AAC5C;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,4DAA4D;AAC5D;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP,iBAAiB,0BAA0B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,0BAA0B,qBAAqB,iNAAiN,gBAAgB,eAAe,ijBAAijB;AACh1B,oBAAoB,aAAa,mCAAmC,eAAe,mCAAmC,mBAAmB,uCAAuC,2BAA2B,uCAAuC,iBAAiB,kCAAkC,iBAAiB,kCAAkC,aAAa,kCAAkC,iBAAiB,uCAAuC,cAAc,uCAAuC,eAAe;AACngB;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,8BAA8B,uDAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mDAAa;AACvC,yBAAyB,mDAAa;AACtC,2BAA2B,mDAAa;AACxC,4BAA4B,mDAAa;AACzC,8BAA8B,mDAAa;AAC3C,gCAAgC,mDAAa;AAC7C,gCAAgC,mDAAa;AAC7C,iCAAiC,mDAAa;AAC9C,iCAAiC,mDAAa;AAC9C,oCAAoC,mDAAa;AACjD,qCAAqC,mDAAa;AAClD,+BAA+B,mDAAa;AAC5C,iCAAiC,mDAAa;AAC9C,0BAA0B,mDAAa;AACvC,4BAA4B,mDAAa;AACzC,4BAA4B,mDAAa;AACzC,gDAAgD,mDAAa;AAC7D,gDAAgD,mDAAa;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,mDAAG;AACP;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,IAAI,mDAAG;AACP,oBAAoB;AACpB;AACA;AACA,IAAI,mDAAG;AACP,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,4BAA4B;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,mEAAmE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,2DAA2D;AACvE,kBAAkB,0DAAW;AAC7B,kBAAkB,0DAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uDAAS;AACxB;AACA,SAAS,uDAAY;AACrB;AACA;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,6CAA6C;AACzE;AACA;AACA,4BAA4B,2CAA2C;AACvE;AACA;AACA,4BAA4B,8CAA8C;AAC1E;AACA;AACA,+BAA+B,yCAAyC;AACxE;AACA;AACA,8BAA8B,mBAAmB;AACjD;AACA;AACA,8BAA8B,qBAAqB;AACnD;AACA;AACA,kBAAkB,uDAAS;AAC3B,UAAU,qDAAqD;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,4BAA4B,WAAW,uDAAe,IAAI;AAC1D;AACA;AACA;AACA;AACA,EAAE,uDAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,aAAa;AACb,iBAAiB;AACjB,iBAAiB;AACjB,mBAAmB;AACnB,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO,IAAI,OAAO,WAAW,mBAAmB;AACxE;AACA,eAAe,uDAAS;AACxB,EAAE,mDAAG;AACL;AACA;AACA;AACA,qBAAqB,oDAAM;AAC3B;AACA,6CAA6C,oDAAM,mDAAmD,oDAAM;AAC5G,kCAAkC,GAAG;AACrC;AACA;AACA;AACA,EAAE,uDAAgB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGE","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mermaid/dist/quadrantDiagram-d70906b3.js"],"sourcesContent":["import { D as getThemeVariables, A as defaultConfig, l as log, s as setAccTitle, g as getAccTitle, q as setDiagramTitle, r as getDiagramTitle, a as getAccDescription, b as setAccDescription, c as getConfig, t as clear$1, d as sanitizeText, i as configureSvgSize } from \"./mermaid-04fb0060.js\";\nimport { scaleLinear, select } from \"d3\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"lodash-es/merge.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [1, 7], $V5 = [1, 5, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V6 = [1, 5, 6, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V7 = [32, 33, 34], $V8 = [2, 7], $V9 = [1, 13], $Va = [1, 17], $Vb = [1, 18], $Vc = [1, 19], $Vd = [1, 20], $Ve = [1, 21], $Vf = [1, 22], $Vg = [1, 23], $Vh = [1, 24], $Vi = [1, 25], $Vj = [1, 26], $Vk = [1, 27], $Vl = [1, 30], $Vm = [1, 31], $Vn = [1, 32], $Vo = [1, 33], $Vp = [1, 34], $Vq = [1, 35], $Vr = [1, 36], $Vs = [1, 37], $Vt = [1, 38], $Vu = [1, 39], $Vv = [1, 40], $Vw = [1, 41], $Vx = [1, 42], $Vy = [1, 57], $Vz = [1, 58], $VA = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"eol\": 4, \"SPACE\": 5, \"QUADRANT\": 6, \"document\": 7, \"line\": 8, \"statement\": 9, \"axisDetails\": 10, \"quadrantDetails\": 11, \"points\": 12, \"title\": 13, \"title_value\": 14, \"acc_title\": 15, \"acc_title_value\": 16, \"acc_descr\": 17, \"acc_descr_value\": 18, \"acc_descr_multiline_value\": 19, \"section\": 20, \"text\": 21, \"point_start\": 22, \"point_x\": 23, \"point_y\": 24, \"X-AXIS\": 25, \"AXIS-TEXT-DELIMITER\": 26, \"Y-AXIS\": 27, \"QUADRANT_1\": 28, \"QUADRANT_2\": 29, \"QUADRANT_3\": 30, \"QUADRANT_4\": 31, \"NEWLINE\": 32, \"SEMI\": 33, \"EOF\": 34, \"alphaNumToken\": 35, \"textNoTagsToken\": 36, \"STR\": 37, \"MD_STR\": 38, \"alphaNum\": 39, \"PUNCTUATION\": 40, \"AMP\": 41, \"NUM\": 42, \"ALPHA\": 43, \"COMMA\": 44, \"PLUS\": 45, \"EQUALS\": 46, \"MULT\": 47, \"DOT\": 48, \"BRKT\": 49, \"UNDERSCORE\": 50, \"MINUS\": 51, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 5: \"SPACE\", 6: \"QUADRANT\", 13: \"title\", 14: \"title_value\", 15: \"acc_title\", 16: \"acc_title_value\", 17: \"acc_descr\", 18: \"acc_descr_value\", 19: \"acc_descr_multiline_value\", 20: \"section\", 22: \"point_start\", 23: \"point_x\", 24: \"point_y\", 25: \"X-AXIS\", 26: \"AXIS-TEXT-DELIMITER\", 27: \"Y-AXIS\", 28: \"QUADRANT_1\", 29: \"QUADRANT_2\", 30: \"QUADRANT_3\", 31: \"QUADRANT_4\", 32: \"NEWLINE\", 33: \"SEMI\", 34: \"EOF\", 37: \"STR\", 38: \"MD_STR\", 40: \"PUNCTUATION\", 41: \"AMP\", 42: \"NUM\", 43: \"ALPHA\", 44: \"COMMA\", 45: \"PLUS\", 46: \"EQUALS\", 47: \"MULT\", 48: \"DOT\", 49: \"BRKT\", 50: \"UNDERSCORE\", 51: \"MINUS\" },\n productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [9, 0], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [12, 4], [10, 4], [10, 3], [10, 2], [10, 4], [10, 3], [10, 2], [11, 2], [11, 2], [11, 2], [11, 2], [4, 1], [4, 1], [4, 1], [21, 1], [21, 2], [21, 1], [21, 1], [39, 1], [39, 2], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [36, 1], [36, 1], [36, 1]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n switch (yystate) {\n case 12:\n this.$ = $$[$0].trim();\n yy.setDiagramTitle(this.$);\n break;\n case 13:\n this.$ = $$[$0].trim();\n yy.setAccTitle(this.$);\n break;\n case 14:\n case 15:\n this.$ = $$[$0].trim();\n yy.setAccDescription(this.$);\n break;\n case 16:\n yy.addSection($$[$0].substr(8));\n this.$ = $$[$0].substr(8);\n break;\n case 17:\n yy.addPoint($$[$0 - 3], $$[$0 - 1], $$[$0]);\n break;\n case 18:\n yy.setXAxisLeftText($$[$0 - 2]);\n yy.setXAxisRightText($$[$0]);\n break;\n case 19:\n $$[$0 - 1].text += \" ⟶ \";\n yy.setXAxisLeftText($$[$0 - 1]);\n break;\n case 20:\n yy.setXAxisLeftText($$[$0]);\n break;\n case 21:\n yy.setYAxisBottomText($$[$0 - 2]);\n yy.setYAxisTopText($$[$0]);\n break;\n case 22:\n $$[$0 - 1].text += \" ⟶ \";\n yy.setYAxisBottomText($$[$0 - 1]);\n break;\n case 23:\n yy.setYAxisBottomText($$[$0]);\n break;\n case 24:\n yy.setQuadrant1Text($$[$0]);\n break;\n case 25:\n yy.setQuadrant2Text($$[$0]);\n break;\n case 26:\n yy.setQuadrant3Text($$[$0]);\n break;\n case 27:\n yy.setQuadrant4Text($$[$0]);\n break;\n case 31:\n this.$ = { text: $$[$0], type: \"text\" };\n break;\n case 32:\n this.$ = { text: $$[$0 - 1].text + \"\" + $$[$0], type: $$[$0 - 1].type };\n break;\n case 33:\n this.$ = { text: $$[$0], type: \"text\" };\n break;\n case 34:\n this.$ = { text: $$[$0], type: \"markdown\" };\n break;\n case 35:\n this.$ = $$[$0];\n break;\n case 36:\n this.$ = $$[$0 - 1] + \"\" + $$[$0];\n break;\n }\n },\n table: [{ 3: 1, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 1: [3] }, { 3: 8, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 3: 9, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, o($V5, [2, 4], { 7: 10 }), o($V6, [2, 28]), o($V6, [2, 29]), o($V6, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, o($V7, $V8, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V5, [2, 5]), { 4: 43, 32: $V2, 33: $V3, 34: $V4 }, o($V7, $V8, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 9]), o($V7, [2, 10]), o($V7, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, o($V7, [2, 15]), o($V7, [2, 16]), { 21: 48, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 49, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 50, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 51, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 52, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 53, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 5: $Vy, 22: [1, 54], 35: 56, 36: 55, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }, o($VA, [2, 31]), o($VA, [2, 33]), o($VA, [2, 34]), o($VA, [2, 37]), o($VA, [2, 38]), o($VA, [2, 39]), o($VA, [2, 40]), o($VA, [2, 41]), o($VA, [2, 42]), o($VA, [2, 43]), o($VA, [2, 44]), o($VA, [2, 45]), o($VA, [2, 46]), o($VA, [2, 47]), o($V5, [2, 6]), o($V7, [2, 8]), o($V7, [2, 12]), o($V7, [2, 13]), o($V7, [2, 14]), o($V7, [2, 20], { 36: 55, 35: 56, 5: $Vy, 26: [1, 59], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 23], { 36: 55, 35: 56, 5: $Vy, 26: [1, 60], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 24], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 25], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 26], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 27], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), { 23: [1, 61] }, o($VA, [2, 32]), o($VA, [2, 48]), o($VA, [2, 49]), o($VA, [2, 50]), o($V7, [2, 19], { 35: 29, 21: 62, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 22], { 35: 29, 21: 63, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), { 24: [1, 64] }, o($V7, [2, 18], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 21], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 17])],\n defaultActions: { 8: [2, 1], 9: [2, 2] },\n parseError: function parseError(str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n },\n parse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = \"\", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer2 = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer2.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer2;\n sharedState.yy.parser = this;\n if (typeof lexer2.yylloc == \"undefined\") {\n lexer2.yylloc = {};\n }\n var yyloc = lexer2.yylloc;\n lstack.push(yyloc);\n var ranges = lexer2.options && lexer2.options.ranges;\n if (typeof sharedState.yy.parseError === \"function\") {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer2.lex() || EOF;\n if (typeof token !== \"number\") {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, state, action, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == \"undefined\") {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === \"undefined\" || !action.length || !action[0]) {\n var errStr = \"\";\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push(\"'\" + this.terminals_[p] + \"'\");\n }\n }\n if (lexer2.showPosition) {\n errStr = \"Parse error on line \" + (yylineno + 1) + \":\\n\" + lexer2.showPosition() + \"\\nExpecting \" + expected.join(\", \") + \", got '\" + (this.terminals_[symbol] || symbol) + \"'\";\n } else {\n errStr = \"Parse error on line \" + (yylineno + 1) + \": Unexpected \" + (symbol == EOF ? \"end of input\" : \"'\" + (this.terminals_[symbol] || symbol) + \"'\");\n }\n this.parseError(errStr, {\n text: lexer2.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer2.yylineno,\n loc: yyloc,\n expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\"Parse Error: multiple actions possible at state: \" + state + \", token: \" + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer2.yytext);\n lstack.push(lexer2.yylloc);\n stack.push(action[1]);\n symbol = null;\n {\n yyleng = lexer2.yyleng;\n yytext = lexer2.yytext;\n yylineno = lexer2.yylineno;\n yyloc = lexer2.yylloc;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== \"undefined\") {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n }\n };\n var lexer = function() {\n var lexer2 = {\n EOF: 1,\n parseError: function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n // resets the lexer, sets new input\n setInput: function(input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = \"\";\n this.conditionStack = [\"INITIAL\"];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0, 0];\n }\n this.offset = 0;\n return this;\n },\n // consumes and returns one char from the input\n input: function() {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n this._input = this._input.slice(1);\n return ch;\n },\n // unshifts one char (or a string) into the input\n unput: function(ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len\n };\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n // When called from action, caches matched text and appends it on next action\n more: function() {\n this._more = true;\n return this;\n },\n // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\n reject: function() {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError(\"Lexical error on line \" + (this.yylineno + 1) + \". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n return this;\n },\n // retain first n characters of the match\n less: function(n) {\n this.unput(this.match.slice(n));\n },\n // displays already matched input, i.e. for error messages\n pastInput: function() {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? \"...\" : \"\") + past.substr(-20).replace(/\\n/g, \"\");\n },\n // displays upcoming input, i.e. for error messages\n upcomingInput: function() {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20 - next.length);\n }\n return (next.substr(0, 20) + (next.length > 20 ? \"...\" : \"\")).replace(/\\n/g, \"\");\n },\n // displays the character position where the lexing error occurred, i.e. for error messages\n showPosition: function() {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n // test the lexed token: return FALSE when not a match, otherwise return token\n test_match: function(match, indexed_rule) {\n var token, lines, backup;\n if (this.options.backtrack_lexer) {\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length : this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false;\n }\n return false;\n },\n // return next match in input\n next: function() {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n var token, match, tempMatch, index;\n if (!this._more) {\n this.yytext = \"\";\n this.match = \"\";\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue;\n } else {\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError(\"Lexical error on line \" + (this.yylineno + 1) + \". Unrecognized text.\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n // return next match that has a token\n lex: function lex() {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\n begin: function begin(condition) {\n this.conditionStack.push(condition);\n },\n // pop the previously active lexer condition state off the condition stack\n popState: function popState() {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n // produce the lexer rule set which is active for the currently active lexer condition state\n _currentRules: function _currentRules() {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\n topState: function topState(n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n // alias for begin(condition)\n pushState: function pushState(condition) {\n this.begin(condition);\n },\n // return the number of states currently on the stack\n stateStackSize: function stateStackSize() {\n return this.conditionStack.length;\n },\n options: { \"case-insensitive\": true },\n performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {\n switch ($avoiding_name_collisions) {\n case 0:\n break;\n case 1:\n break;\n case 2:\n return 32;\n case 3:\n break;\n case 4:\n this.begin(\"title\");\n return 13;\n case 5:\n this.popState();\n return \"title_value\";\n case 6:\n this.begin(\"acc_title\");\n return 15;\n case 7:\n this.popState();\n return \"acc_title_value\";\n case 8:\n this.begin(\"acc_descr\");\n return 17;\n case 9:\n this.popState();\n return \"acc_descr_value\";\n case 10:\n this.begin(\"acc_descr_multiline\");\n break;\n case 11:\n this.popState();\n break;\n case 12:\n return \"acc_descr_multiline_value\";\n case 13:\n return 25;\n case 14:\n return 27;\n case 15:\n return 26;\n case 16:\n return 28;\n case 17:\n return 29;\n case 18:\n return 30;\n case 19:\n return 31;\n case 20:\n this.begin(\"md_string\");\n break;\n case 21:\n return \"MD_STR\";\n case 22:\n this.popState();\n break;\n case 23:\n this.begin(\"string\");\n break;\n case 24:\n this.popState();\n break;\n case 25:\n return \"STR\";\n case 26:\n this.begin(\"point_start\");\n return 22;\n case 27:\n this.begin(\"point_x\");\n return 23;\n case 28:\n this.popState();\n break;\n case 29:\n this.popState();\n this.begin(\"point_y\");\n break;\n case 30:\n this.popState();\n return 24;\n case 31:\n return 6;\n case 32:\n return 43;\n case 33:\n return \"COLON\";\n case 34:\n return 45;\n case 35:\n return 44;\n case 36:\n return 46;\n case 37:\n return 46;\n case 38:\n return 47;\n case 39:\n return 49;\n case 40:\n return 50;\n case 41:\n return 48;\n case 42:\n return 41;\n case 43:\n return 51;\n case 44:\n return 42;\n case 45:\n return 5;\n case 46:\n return 33;\n case 47:\n return 40;\n case 48:\n return 34;\n }\n },\n rules: [/^(?:%%(?!\\{)[^\\n]*)/i, /^(?:[^\\}]%%[^\\n]*)/i, /^(?:[\\n\\r]+)/i, /^(?:%%[^\\n]*)/i, /^(?:title\\b)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accTitle\\s*:\\s*)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accDescr\\s*:\\s*)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accDescr\\s*\\{\\s*)/i, /^(?:[\\}])/i, /^(?:[^\\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:[\"][`])/i, /^(?:[^`\"]+)/i, /^(?:[`][\"])/i, /^(?:[\"])/i, /^(?:[\"])/i, /^(?:[^\"]*)/i, /^(?:\\s*:\\s*\\[\\s*)/i, /^(?:(1)|(0(.\\d+)?))/i, /^(?:\\s*\\] *)/i, /^(?:\\s*,\\s*)/i, /^(?:(1)|(0(.\\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\\*)/i, /^(?:#)/i, /^(?:[\\_])/i, /^(?:\\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\\s)/i, /^(?:;)/i, /^(?:[!\"#$%&'*+,-.`?\\\\_/])/i, /^(?:$)/i],\n conditions: { \"point_y\": { \"rules\": [30], \"inclusive\": false }, \"point_x\": { \"rules\": [29], \"inclusive\": false }, \"point_start\": { \"rules\": [27, 28], \"inclusive\": false }, \"acc_descr_multiline\": { \"rules\": [11, 12], \"inclusive\": false }, \"acc_descr\": { \"rules\": [9], \"inclusive\": false }, \"acc_title\": { \"rules\": [7], \"inclusive\": false }, \"title\": { \"rules\": [5], \"inclusive\": false }, \"md_string\": { \"rules\": [21, 22], \"inclusive\": false }, \"string\": { \"rules\": [24, 25], \"inclusive\": false }, \"INITIAL\": { \"rules\": [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 23, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], \"inclusive\": true } }\n };\n return lexer2;\n }();\n parser2.lexer = lexer;\n function Parser() {\n this.yy = {};\n }\n Parser.prototype = parser2;\n parser2.Parser = Parser;\n return new Parser();\n}();\nparser.parser = parser;\nconst parser$1 = parser;\nconst defaultThemeVariables = getThemeVariables();\nclass QuadrantBuilder {\n constructor() {\n this.config = this.getDefaultConfig();\n this.themeConfig = this.getDefaultThemeConfig();\n this.data = this.getDefaultData();\n }\n getDefaultData() {\n return {\n titleText: \"\",\n quadrant1Text: \"\",\n quadrant2Text: \"\",\n quadrant3Text: \"\",\n quadrant4Text: \"\",\n xAxisLeftText: \"\",\n xAxisRightText: \"\",\n yAxisBottomText: \"\",\n yAxisTopText: \"\",\n points: []\n };\n }\n getDefaultConfig() {\n var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;\n return {\n showXAxis: true,\n showYAxis: true,\n showTitle: true,\n chartHeight: ((_a = defaultConfig.quadrantChart) == null ? void 0 : _a.chartWidth) || 500,\n chartWidth: ((_b = defaultConfig.quadrantChart) == null ? void 0 : _b.chartHeight) || 500,\n titlePadding: ((_c = defaultConfig.quadrantChart) == null ? void 0 : _c.titlePadding) || 10,\n titleFontSize: ((_d = defaultConfig.quadrantChart) == null ? void 0 : _d.titleFontSize) || 20,\n quadrantPadding: ((_e = defaultConfig.quadrantChart) == null ? void 0 : _e.quadrantPadding) || 5,\n xAxisLabelPadding: ((_f = defaultConfig.quadrantChart) == null ? void 0 : _f.xAxisLabelPadding) || 5,\n yAxisLabelPadding: ((_g = defaultConfig.quadrantChart) == null ? void 0 : _g.yAxisLabelPadding) || 5,\n xAxisLabelFontSize: ((_h = defaultConfig.quadrantChart) == null ? void 0 : _h.xAxisLabelFontSize) || 16,\n yAxisLabelFontSize: ((_i = defaultConfig.quadrantChart) == null ? void 0 : _i.yAxisLabelFontSize) || 16,\n quadrantLabelFontSize: ((_j = defaultConfig.quadrantChart) == null ? void 0 : _j.quadrantLabelFontSize) || 16,\n quadrantTextTopPadding: ((_k = defaultConfig.quadrantChart) == null ? void 0 : _k.quadrantTextTopPadding) || 5,\n pointTextPadding: ((_l = defaultConfig.quadrantChart) == null ? void 0 : _l.pointTextPadding) || 5,\n pointLabelFontSize: ((_m = defaultConfig.quadrantChart) == null ? void 0 : _m.pointLabelFontSize) || 12,\n pointRadius: ((_n = defaultConfig.quadrantChart) == null ? void 0 : _n.pointRadius) || 5,\n xAxisPosition: ((_o = defaultConfig.quadrantChart) == null ? void 0 : _o.xAxisPosition) || \"top\",\n yAxisPosition: ((_p = defaultConfig.quadrantChart) == null ? void 0 : _p.yAxisPosition) || \"left\",\n quadrantInternalBorderStrokeWidth: ((_q = defaultConfig.quadrantChart) == null ? void 0 : _q.quadrantInternalBorderStrokeWidth) || 1,\n quadrantExternalBorderStrokeWidth: ((_r = defaultConfig.quadrantChart) == null ? void 0 : _r.quadrantExternalBorderStrokeWidth) || 2\n };\n }\n getDefaultThemeConfig() {\n return {\n quadrant1Fill: defaultThemeVariables.quadrant1Fill,\n quadrant2Fill: defaultThemeVariables.quadrant2Fill,\n quadrant3Fill: defaultThemeVariables.quadrant3Fill,\n quadrant4Fill: defaultThemeVariables.quadrant4Fill,\n quadrant1TextFill: defaultThemeVariables.quadrant1TextFill,\n quadrant2TextFill: defaultThemeVariables.quadrant2TextFill,\n quadrant3TextFill: defaultThemeVariables.quadrant3TextFill,\n quadrant4TextFill: defaultThemeVariables.quadrant4TextFill,\n quadrantPointFill: defaultThemeVariables.quadrantPointFill,\n quadrantPointTextFill: defaultThemeVariables.quadrantPointTextFill,\n quadrantXAxisTextFill: defaultThemeVariables.quadrantXAxisTextFill,\n quadrantYAxisTextFill: defaultThemeVariables.quadrantYAxisTextFill,\n quadrantTitleFill: defaultThemeVariables.quadrantTitleFill,\n quadrantInternalBorderStrokeFill: defaultThemeVariables.quadrantInternalBorderStrokeFill,\n quadrantExternalBorderStrokeFill: defaultThemeVariables.quadrantExternalBorderStrokeFill\n };\n }\n clear() {\n this.config = this.getDefaultConfig();\n this.themeConfig = this.getDefaultThemeConfig();\n this.data = this.getDefaultData();\n log.info(\"clear called\");\n }\n setData(data) {\n this.data = { ...this.data, ...data };\n }\n addPoints(points) {\n this.data.points = [...points, ...this.data.points];\n }\n setConfig(config2) {\n log.trace(\"setConfig called with: \", config2);\n this.config = { ...this.config, ...config2 };\n }\n setThemeConfig(themeConfig) {\n log.trace(\"setThemeConfig called with: \", themeConfig);\n this.themeConfig = { ...this.themeConfig, ...themeConfig };\n }\n calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle) {\n const xAxisSpaceCalculation = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize;\n const xAxisSpace = {\n top: xAxisPosition === \"top\" && showXAxis ? xAxisSpaceCalculation : 0,\n bottom: xAxisPosition === \"bottom\" && showXAxis ? xAxisSpaceCalculation : 0\n };\n const yAxisSpaceCalculation = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize;\n const yAxisSpace = {\n left: this.config.yAxisPosition === \"left\" && showYAxis ? yAxisSpaceCalculation : 0,\n right: this.config.yAxisPosition === \"right\" && showYAxis ? yAxisSpaceCalculation : 0\n };\n const titleSpaceCalculation = this.config.titleFontSize + this.config.titlePadding * 2;\n const titleSpace = {\n top: showTitle ? titleSpaceCalculation : 0\n };\n const quadrantLeft = this.config.quadrantPadding + yAxisSpace.left;\n const quadrantTop = this.config.quadrantPadding + xAxisSpace.top + titleSpace.top;\n const quadrantWidth = this.config.chartWidth - this.config.quadrantPadding * 2 - yAxisSpace.left - yAxisSpace.right;\n const quadrantHeight = this.config.chartHeight - this.config.quadrantPadding * 2 - xAxisSpace.top - xAxisSpace.bottom - titleSpace.top;\n const quadrantHalfWidth = quadrantWidth / 2;\n const quadrantHalfHeight = quadrantHeight / 2;\n const quadrantSpace = {\n quadrantLeft,\n quadrantTop,\n quadrantWidth,\n quadrantHalfWidth,\n quadrantHeight,\n quadrantHalfHeight\n };\n return {\n xAxisSpace,\n yAxisSpace,\n titleSpace,\n quadrantSpace\n };\n }\n getAxisLabels(xAxisPosition, showXAxis, showYAxis, spaceData) {\n const { quadrantSpace, titleSpace } = spaceData;\n const {\n quadrantHalfHeight,\n quadrantHeight,\n quadrantLeft,\n quadrantHalfWidth,\n quadrantTop,\n quadrantWidth\n } = quadrantSpace;\n const drawXAxisLabelsInMiddle = Boolean(this.data.xAxisRightText);\n const drawYAxisLabelsInMiddle = Boolean(this.data.yAxisTopText);\n const axisLabels = [];\n if (this.data.xAxisLeftText && showXAxis) {\n axisLabels.push({\n text: this.data.xAxisLeftText,\n fill: this.themeConfig.quadrantXAxisTextFill,\n x: quadrantLeft + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),\n y: xAxisPosition === \"top\" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,\n fontSize: this.config.xAxisLabelFontSize,\n verticalPos: drawXAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: 0\n });\n }\n if (this.data.xAxisRightText && showXAxis) {\n axisLabels.push({\n text: this.data.xAxisRightText,\n fill: this.themeConfig.quadrantXAxisTextFill,\n x: quadrantLeft + quadrantHalfWidth + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),\n y: xAxisPosition === \"top\" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,\n fontSize: this.config.xAxisLabelFontSize,\n verticalPos: drawXAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: 0\n });\n }\n if (this.data.yAxisBottomText && showYAxis) {\n axisLabels.push({\n text: this.data.yAxisBottomText,\n fill: this.themeConfig.quadrantYAxisTextFill,\n x: this.config.yAxisPosition === \"left\" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,\n y: quadrantTop + quadrantHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),\n fontSize: this.config.yAxisLabelFontSize,\n verticalPos: drawYAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: -90\n });\n }\n if (this.data.yAxisTopText && showYAxis) {\n axisLabels.push({\n text: this.data.yAxisTopText,\n fill: this.themeConfig.quadrantYAxisTextFill,\n x: this.config.yAxisPosition === \"left\" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,\n y: quadrantTop + quadrantHalfHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),\n fontSize: this.config.yAxisLabelFontSize,\n verticalPos: drawYAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: -90\n });\n }\n return axisLabels;\n }\n getQuadrants(spaceData) {\n const { quadrantSpace } = spaceData;\n const { quadrantHalfHeight, quadrantLeft, quadrantHalfWidth, quadrantTop } = quadrantSpace;\n const quadrants = [\n {\n text: {\n text: this.data.quadrant1Text,\n fill: this.themeConfig.quadrant1TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft + quadrantHalfWidth,\n y: quadrantTop,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant1Fill\n },\n {\n text: {\n text: this.data.quadrant2Text,\n fill: this.themeConfig.quadrant2TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft,\n y: quadrantTop,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant2Fill\n },\n {\n text: {\n text: this.data.quadrant3Text,\n fill: this.themeConfig.quadrant3TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft,\n y: quadrantTop + quadrantHalfHeight,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant3Fill\n },\n {\n text: {\n text: this.data.quadrant4Text,\n fill: this.themeConfig.quadrant4TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft + quadrantHalfWidth,\n y: quadrantTop + quadrantHalfHeight,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant4Fill\n }\n ];\n for (const quadrant of quadrants) {\n quadrant.text.x = quadrant.x + quadrant.width / 2;\n if (this.data.points.length === 0) {\n quadrant.text.y = quadrant.y + quadrant.height / 2;\n quadrant.text.horizontalPos = \"middle\";\n } else {\n quadrant.text.y = quadrant.y + this.config.quadrantTextTopPadding;\n quadrant.text.horizontalPos = \"top\";\n }\n }\n return quadrants;\n }\n getQuadrantPoints(spaceData) {\n const { quadrantSpace } = spaceData;\n const { quadrantHeight, quadrantLeft, quadrantTop, quadrantWidth } = quadrantSpace;\n const xAxis = scaleLinear().domain([0, 1]).range([quadrantLeft, quadrantWidth + quadrantLeft]);\n const yAxis = scaleLinear().domain([0, 1]).range([quadrantHeight + quadrantTop, quadrantTop]);\n const points = this.data.points.map((point) => {\n const props = {\n x: xAxis(point.x),\n y: yAxis(point.y),\n fill: this.themeConfig.quadrantPointFill,\n radius: this.config.pointRadius,\n text: {\n text: point.text,\n fill: this.themeConfig.quadrantPointTextFill,\n x: xAxis(point.x),\n y: yAxis(point.y) + this.config.pointTextPadding,\n verticalPos: \"center\",\n horizontalPos: \"top\",\n fontSize: this.config.pointLabelFontSize,\n rotation: 0\n }\n };\n return props;\n });\n return points;\n }\n getBorders(spaceData) {\n const halfExternalBorderWidth = this.config.quadrantExternalBorderStrokeWidth / 2;\n const { quadrantSpace } = spaceData;\n const {\n quadrantHalfHeight,\n quadrantHeight,\n quadrantLeft,\n quadrantHalfWidth,\n quadrantTop,\n quadrantWidth\n } = quadrantSpace;\n const borderLines = [\n // top border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft - halfExternalBorderWidth,\n y1: quadrantTop,\n x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,\n y2: quadrantTop\n },\n // right border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft + quadrantWidth,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft + quadrantWidth,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // bottom border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft - halfExternalBorderWidth,\n y1: quadrantTop + quadrantHeight,\n x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,\n y2: quadrantTop + quadrantHeight\n },\n // left border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // vertical inner border\n {\n strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,\n strokeWidth: this.config.quadrantInternalBorderStrokeWidth,\n x1: quadrantLeft + quadrantHalfWidth,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft + quadrantHalfWidth,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // horizontal inner border\n {\n strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,\n strokeWidth: this.config.quadrantInternalBorderStrokeWidth,\n x1: quadrantLeft + halfExternalBorderWidth,\n y1: quadrantTop + quadrantHalfHeight,\n x2: quadrantLeft + quadrantWidth - halfExternalBorderWidth,\n y2: quadrantTop + quadrantHalfHeight\n }\n ];\n return borderLines;\n }\n getTitle(showTitle) {\n if (showTitle) {\n return {\n text: this.data.titleText,\n fill: this.themeConfig.quadrantTitleFill,\n fontSize: this.config.titleFontSize,\n horizontalPos: \"top\",\n verticalPos: \"center\",\n rotation: 0,\n y: this.config.titlePadding,\n x: this.config.chartWidth / 2\n };\n }\n return;\n }\n build() {\n const showXAxis = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText);\n const showYAxis = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText);\n const showTitle = this.config.showTitle && !!this.data.titleText;\n const xAxisPosition = this.data.points.length > 0 ? \"bottom\" : this.config.xAxisPosition;\n const calculatedSpace = this.calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle);\n return {\n points: this.getQuadrantPoints(calculatedSpace),\n quadrants: this.getQuadrants(calculatedSpace),\n axisLabels: this.getAxisLabels(xAxisPosition, showXAxis, showYAxis, calculatedSpace),\n borderLines: this.getBorders(calculatedSpace),\n title: this.getTitle(showTitle)\n };\n }\n}\nconst config = getConfig();\nfunction textSanitizer(text) {\n return sanitizeText(text.trim(), config);\n}\nconst quadrantBuilder = new QuadrantBuilder();\nfunction setQuadrant1Text(textObj) {\n quadrantBuilder.setData({ quadrant1Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant2Text(textObj) {\n quadrantBuilder.setData({ quadrant2Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant3Text(textObj) {\n quadrantBuilder.setData({ quadrant3Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant4Text(textObj) {\n quadrantBuilder.setData({ quadrant4Text: textSanitizer(textObj.text) });\n}\nfunction setXAxisLeftText(textObj) {\n quadrantBuilder.setData({ xAxisLeftText: textSanitizer(textObj.text) });\n}\nfunction setXAxisRightText(textObj) {\n quadrantBuilder.setData({ xAxisRightText: textSanitizer(textObj.text) });\n}\nfunction setYAxisTopText(textObj) {\n quadrantBuilder.setData({ yAxisTopText: textSanitizer(textObj.text) });\n}\nfunction setYAxisBottomText(textObj) {\n quadrantBuilder.setData({ yAxisBottomText: textSanitizer(textObj.text) });\n}\nfunction addPoint(textObj, x, y) {\n quadrantBuilder.addPoints([{ x, y, text: textSanitizer(textObj.text) }]);\n}\nfunction setWidth(width) {\n quadrantBuilder.setConfig({ chartWidth: width });\n}\nfunction setHeight(height) {\n quadrantBuilder.setConfig({ chartHeight: height });\n}\nfunction getQuadrantData() {\n const config2 = getConfig();\n const { themeVariables, quadrantChart: quadrantChartConfig } = config2;\n if (quadrantChartConfig) {\n quadrantBuilder.setConfig(quadrantChartConfig);\n }\n quadrantBuilder.setThemeConfig({\n quadrant1Fill: themeVariables.quadrant1Fill,\n quadrant2Fill: themeVariables.quadrant2Fill,\n quadrant3Fill: themeVariables.quadrant3Fill,\n quadrant4Fill: themeVariables.quadrant4Fill,\n quadrant1TextFill: themeVariables.quadrant1TextFill,\n quadrant2TextFill: themeVariables.quadrant2TextFill,\n quadrant3TextFill: themeVariables.quadrant3TextFill,\n quadrant4TextFill: themeVariables.quadrant4TextFill,\n quadrantPointFill: themeVariables.quadrantPointFill,\n quadrantPointTextFill: themeVariables.quadrantPointTextFill,\n quadrantXAxisTextFill: themeVariables.quadrantXAxisTextFill,\n quadrantYAxisTextFill: themeVariables.quadrantYAxisTextFill,\n quadrantExternalBorderStrokeFill: themeVariables.quadrantExternalBorderStrokeFill,\n quadrantInternalBorderStrokeFill: themeVariables.quadrantInternalBorderStrokeFill,\n quadrantTitleFill: themeVariables.quadrantTitleFill\n });\n quadrantBuilder.setData({ titleText: getDiagramTitle() });\n return quadrantBuilder.build();\n}\nconst clear = function() {\n quadrantBuilder.clear();\n clear$1();\n};\nconst db = {\n setWidth,\n setHeight,\n setQuadrant1Text,\n setQuadrant2Text,\n setQuadrant3Text,\n setQuadrant4Text,\n setXAxisLeftText,\n setXAxisRightText,\n setYAxisTopText,\n setYAxisBottomText,\n addPoint,\n getQuadrantData,\n clear,\n setAccTitle,\n getAccTitle,\n setDiagramTitle,\n getDiagramTitle,\n getAccDescription,\n setAccDescription\n};\nconst draw = (txt, id, _version, diagObj) => {\n var _a, _b, _c;\n function getDominantBaseLine(horizontalPos) {\n return horizontalPos === \"top\" ? \"hanging\" : \"middle\";\n }\n function getTextAnchor(verticalPos) {\n return verticalPos === \"left\" ? \"start\" : \"middle\";\n }\n function getTransformation(data) {\n return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;\n }\n const conf = getConfig();\n log.debug(\"Rendering quadrant chart\\n\" + txt);\n const securityLevel = conf.securityLevel;\n let sandboxElement;\n if (securityLevel === \"sandbox\") {\n sandboxElement = select(\"#i\" + id);\n }\n const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n const svg = root.select(`[id=\"${id}\"]`);\n const group = svg.append(\"g\").attr(\"class\", \"main\");\n const width = ((_a = conf.quadrantChart) == null ? void 0 : _a.chartWidth) || 500;\n const height = ((_b = conf.quadrantChart) == null ? void 0 : _b.chartHeight) || 500;\n configureSvgSize(svg, height, width, ((_c = conf.quadrantChart) == null ? void 0 : _c.useMaxWidth) || true);\n svg.attr(\"viewBox\", \"0 0 \" + width + \" \" + height);\n diagObj.db.setHeight(height);\n diagObj.db.setWidth(width);\n const quadrantData = diagObj.db.getQuadrantData();\n const quadrantsGroup = group.append(\"g\").attr(\"class\", \"quadrants\");\n const borderGroup = group.append(\"g\").attr(\"class\", \"border\");\n const dataPointGroup = group.append(\"g\").attr(\"class\", \"data-points\");\n const labelGroup = group.append(\"g\").attr(\"class\", \"labels\");\n const titleGroup = group.append(\"g\").attr(\"class\", \"title\");\n if (quadrantData.title) {\n titleGroup.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).attr(\"fill\", quadrantData.title.fill).attr(\"font-size\", quadrantData.title.fontSize).attr(\"dominant-baseline\", getDominantBaseLine(quadrantData.title.horizontalPos)).attr(\"text-anchor\", getTextAnchor(quadrantData.title.verticalPos)).attr(\"transform\", getTransformation(quadrantData.title)).text(quadrantData.title.text);\n }\n if (quadrantData.borderLines) {\n borderGroup.selectAll(\"line\").data(quadrantData.borderLines).enter().append(\"line\").attr(\"x1\", (data) => data.x1).attr(\"y1\", (data) => data.y1).attr(\"x2\", (data) => data.x2).attr(\"y2\", (data) => data.y2).style(\"stroke\", (data) => data.strokeFill).style(\"stroke-width\", (data) => data.strokeWidth);\n }\n const quadrants = quadrantsGroup.selectAll(\"g.quadrant\").data(quadrantData.quadrants).enter().append(\"g\").attr(\"class\", \"quadrant\");\n quadrants.append(\"rect\").attr(\"x\", (data) => data.x).attr(\"y\", (data) => data.y).attr(\"width\", (data) => data.width).attr(\"height\", (data) => data.height).attr(\"fill\", (data) => data.fill);\n quadrants.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).attr(\"fill\", (data) => data.text.fill).attr(\"font-size\", (data) => data.text.fontSize).attr(\n \"dominant-baseline\",\n (data) => getDominantBaseLine(data.text.horizontalPos)\n ).attr(\"text-anchor\", (data) => getTextAnchor(data.text.verticalPos)).attr(\"transform\", (data) => getTransformation(data.text)).text((data) => data.text.text);\n const labels = labelGroup.selectAll(\"g.label\").data(quadrantData.axisLabels).enter().append(\"g\").attr(\"class\", \"label\");\n labels.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).text((data) => data.text).attr(\"fill\", (data) => data.fill).attr(\"font-size\", (data) => data.fontSize).attr(\"dominant-baseline\", (data) => getDominantBaseLine(data.horizontalPos)).attr(\"text-anchor\", (data) => getTextAnchor(data.verticalPos)).attr(\"transform\", (data) => getTransformation(data));\n const dataPoints = dataPointGroup.selectAll(\"g.data-point\").data(quadrantData.points).enter().append(\"g\").attr(\"class\", \"data-point\");\n dataPoints.append(\"circle\").attr(\"cx\", (data) => data.x).attr(\"cy\", (data) => data.y).attr(\"r\", (data) => data.radius).attr(\"fill\", (data) => data.fill);\n dataPoints.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).text((data) => data.text.text).attr(\"fill\", (data) => data.text.fill).attr(\"font-size\", (data) => data.text.fontSize).attr(\n \"dominant-baseline\",\n (data) => getDominantBaseLine(data.text.horizontalPos)\n ).attr(\"text-anchor\", (data) => getTextAnchor(data.text.verticalPos)).attr(\"transform\", (data) => getTransformation(data.text));\n};\nconst renderer = {\n draw\n};\nconst diagram = {\n parser: parser$1,\n db,\n renderer,\n styles: () => \"\"\n};\nexport {\n diagram\n};\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/2816.03541f3103bf4c09e591.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/2816.03541f3103bf4c09e591.js
new file mode 100644
index 0000000000000000000000000000000000000000..4a38b02420ad3d4126ffcd0fe96262d223cd204f
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/2816.03541f3103bf4c09e591.js
@@ -0,0 +1,2454 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[2816],{
+
+/***/ 92816:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+// ESM COMPAT FLAG
+__webpack_require__.r(__webpack_exports__);
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Accordion: () => (/* reexport */ Accordion),
+ AccordionItem: () => (/* reexport */ AccordionItem),
+ Anchor: () => (/* reexport */ Anchor),
+ AnchoredRegion: () => (/* reexport */ AnchoredRegion),
+ Avatar: () => (/* reexport */ Avatar),
+ Badge: () => (/* reexport */ Badge),
+ Breadcrumb: () => (/* reexport */ Breadcrumb),
+ BreadcrumbItem: () => (/* reexport */ BreadcrumbItem),
+ Button: () => (/* reexport */ Button),
+ Card: () => (/* reexport */ Card),
+ Checkbox: () => (/* reexport */ Checkbox),
+ Combobox: () => (/* reexport */ Combobox),
+ DataGrid: () => (/* reexport */ DataGrid),
+ DataGridCell: () => (/* reexport */ DataGridCell),
+ DataGridRow: () => (/* reexport */ DataGridRow),
+ DateField: () => (/* reexport */ DateField),
+ Dialog: () => (/* reexport */ Dialog),
+ Disclosure: () => (/* reexport */ Disclosure),
+ Divider: () => (/* reexport */ Divider),
+ Listbox: () => (/* reexport */ Listbox),
+ Menu: () => (/* reexport */ Menu),
+ MenuItem: () => (/* reexport */ MenuItem),
+ NumberField: () => (/* reexport */ NumberField),
+ Option: () => (/* reexport */ Option),
+ Picker: () => (/* reexport */ Picker),
+ PickerList: () => (/* reexport */ PickerList),
+ PickerListItem: () => (/* reexport */ PickerListItem),
+ PickerMenu: () => (/* reexport */ PickerMenu),
+ PickerMenuOption: () => (/* reexport */ PickerMenuOption),
+ Progress: () => (/* reexport */ Progress),
+ ProgressRing: () => (/* reexport */ ProgressRing),
+ Radio: () => (/* reexport */ Radio),
+ RadioGroup: () => (/* reexport */ RadioGroup),
+ Search: () => (/* reexport */ Search),
+ Select: () => (/* reexport */ Select),
+ Skeleton: () => (/* reexport */ Skeleton),
+ Slider: () => (/* reexport */ Slider),
+ SliderLabel: () => (/* reexport */ SliderLabel),
+ Switch: () => (/* reexport */ Switch),
+ Tab: () => (/* reexport */ Tab),
+ TabPanel: () => (/* reexport */ TabPanel),
+ Tabs: () => (/* reexport */ Tabs),
+ TextArea: () => (/* reexport */ TextArea),
+ TextField: () => (/* reexport */ TextField),
+ Toolbar: () => (/* reexport */ Toolbar),
+ Tooltip: () => (/* reexport */ Tooltip),
+ TreeItem: () => (/* reexport */ TreeItem),
+ TreeView: () => (/* reexport */ TreeView)
+});
+
+// EXTERNAL MODULE: consume shared module (default) @jupyter/web-components@~0.16.7 (singleton) (fallback: ../node_modules/@jupyter/web-components/dist/esm/index.js)
+var index_js_ = __webpack_require__(83074);
+// EXTERNAL MODULE: consume shared module (default) react@~18.2.0 (singleton) (fallback: ../node_modules/react/index.js)
+var react_index_js_ = __webpack_require__(78156);
+var react_index_js_default = /*#__PURE__*/__webpack_require__.n(react_index_js_);
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/react-utils.js
+
+
+function useProperties(targetElement, propName, value) {
+ (0,react_index_js_.useEffect)(() => {
+ if (
+ value !== undefined &&
+ targetElement.current &&
+ targetElement.current[propName] !== value
+ ) {
+ // add try catch to avoid errors when setting read-only properties
+ try {
+ targetElement.current[propName] = value;
+ } catch (e) {
+ console.warn(e);
+ }
+ }
+ }, [value, targetElement.current]);
+}
+
+function useEventListener(targetElement, eventName, eventHandler) {
+ (0,react_index_js_.useLayoutEffect)(() => {
+ if (eventHandler !== undefined) {
+ targetElement?.current?.addEventListener(eventName, eventHandler);
+ }
+
+ return () => {
+ if (eventHandler?.cancel) {
+ eventHandler.cancel();
+ }
+
+ targetElement?.current?.removeEventListener(eventName, eventHandler);
+ };
+ }, [eventName, eventHandler, targetElement.current]);
+}
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Accordion.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAccordion)());
+
+const Accordion = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, expandMode, ...filteredProps } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-accordion',
+ {
+ ref,
+ ...filteredProps,
+ 'expand-mode': props.expandMode || props['expand-mode'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/AccordionItem.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAccordionItem)());
+
+const AccordionItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, headingLevel, id, expanded, ...filteredProps } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'expanded', props.expanded);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-accordion-item',
+ {
+ ref,
+ ...filteredProps,
+ 'heading-level': props.headingLevel || props['heading-level'],
+ id: props.id,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/AnchoredRegion.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAnchoredRegion)());
+
+const AnchoredRegion = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ horizontalViewportLock,
+ horizontalInset,
+ verticalViewportLock,
+ verticalInset,
+ fixedPlacement,
+ anchor,
+ viewport,
+ horizontalPositioningMode,
+ horizontalDefaultPosition,
+ horizontalThreshold,
+ horizontalScaling,
+ verticalPositioningMode,
+ verticalDefaultPosition,
+ verticalThreshold,
+ verticalScaling,
+ autoUpdateMode,
+ anchorElement,
+ viewportElement,
+ verticalPosition,
+ horizontalPosition,
+ update,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'loaded', props.onLoaded);
+ useEventListener(ref, 'positionchange', props.onPositionchange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'anchorElement', props.anchorElement);
+ useProperties(ref, 'viewportElement', props.viewportElement);
+ useProperties(ref, 'verticalPosition', props.verticalPosition);
+ useProperties(ref, 'horizontalPosition', props.horizontalPosition);
+ useProperties(ref, 'update', props.update);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-anchored-region',
+ {
+ ref,
+ ...filteredProps,
+ anchor: props.anchor,
+ viewport: props.viewport,
+ 'horizontal-positioning-mode':
+ props.horizontalPositioningMode || props['horizontal-positioning-mode'],
+ 'horizontal-default-position':
+ props.horizontalDefaultPosition || props['horizontal-default-position'],
+ 'horizontal-threshold':
+ props.horizontalThreshold || props['horizontal-threshold'],
+ 'horizontal-scaling':
+ props.horizontalScaling || props['horizontal-scaling'],
+ 'vertical-positioning-mode':
+ props.verticalPositioningMode || props['vertical-positioning-mode'],
+ 'vertical-default-position':
+ props.verticalDefaultPosition || props['vertical-default-position'],
+ 'vertical-threshold':
+ props.verticalThreshold || props['vertical-threshold'],
+ 'vertical-scaling': props.verticalScaling || props['vertical-scaling'],
+ 'auto-update-mode': props.autoUpdateMode || props['auto-update-mode'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'horizontal-viewport-lock': props.horizontalViewportLock ? '' : undefined,
+ 'horizontal-inset': props.horizontalInset ? '' : undefined,
+ 'vertical-viewport-lock': props.verticalViewportLock ? '' : undefined,
+ 'vertical-inset': props.verticalInset ? '' : undefined,
+ 'fixed-placement': props.fixedPlacement ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Anchor.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAnchor)());
+
+const Anchor = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ appearance,
+ download,
+ href,
+ hreflang,
+ ping,
+ referrerpolicy,
+ rel,
+ target,
+ type,
+ control,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'control', props.control);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-anchor',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ download: props.download,
+ href: props.href,
+ hreflang: props.hreflang,
+ ping: props.ping,
+ referrerpolicy: props.referrerpolicy,
+ rel: props.rel,
+ target: props.target,
+ type: props.type,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Avatar.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAvatar)());
+
+const Avatar = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, src, alt, fill, color, link, shape, ...filteredProps } =
+ props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-avatar',
+ {
+ ref,
+ ...filteredProps,
+ src: props.src,
+ alt: props.alt,
+ fill: props.fill,
+ color: props.color,
+ link: props.link,
+ shape: props.shape,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Badge.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBadge)());
+
+const Badge = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, fill, color, circular, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'circular', props.circular);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-badge',
+ {
+ ref,
+ ...filteredProps,
+ fill: props.fill,
+ color: props.color,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Breadcrumb.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBreadcrumb)());
+
+const Breadcrumb = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-breadcrumb',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/BreadcrumbItem.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBreadcrumbItem)());
+
+const BreadcrumbItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ download,
+ href,
+ hreflang,
+ ping,
+ referrerpolicy,
+ rel,
+ target,
+ type,
+ control,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'control', props.control);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-breadcrumb-item',
+ {
+ ref,
+ ...filteredProps,
+ download: props.download,
+ href: props.href,
+ hreflang: props.hreflang,
+ ping: props.ping,
+ referrerpolicy: props.referrerpolicy,
+ rel: props.rel,
+ target: props.target,
+ type: props.type,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Button.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpButton)());
+
+const Button = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ minimal,
+ appearance,
+ form,
+ formaction,
+ formenctype,
+ formmethod,
+ formtarget,
+ type,
+ autofocus,
+ formnovalidate,
+ defaultSlottedContent,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'formnovalidate', props.formnovalidate);
+ useProperties(ref, 'defaultSlottedContent', props.defaultSlottedContent);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-button',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ form: props.form,
+ formaction: props.formaction,
+ formenctype: props.formenctype,
+ formmethod: props.formmethod,
+ formtarget: props.formtarget,
+ type: props.type,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ minimal: props.minimal ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Card.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCard)());
+
+const Card = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-card',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Checkbox.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCheckbox)());
+
+const Checkbox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ readOnly,
+ indeterminate,
+ checked,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'indeterminate', props.indeterminate);
+ useProperties(ref, 'checked', props.checked);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current?.indeterminate) {
+ allClasses += ' indeterminate';
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-checkbox',
+ {
+ ref,
+ ...filteredProps,
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Combobox.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCombobox)());
+
+const Combobox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ autowidth,
+ minimal,
+ open,
+ autocomplete,
+ placeholder,
+ position,
+ autoWidth,
+ filteredOptions,
+ options,
+ value,
+ length,
+ disabled,
+ selectedIndex,
+ selectedOptions,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'input', props.onInput);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'autoWidth', props.autoWidth);
+ useProperties(ref, 'filteredOptions', props.filteredOptions);
+ useProperties(ref, 'options', props.options);
+ useProperties(ref, 'value', props.value);
+ useProperties(ref, 'length', props.length);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'selectedIndex', props.selectedIndex);
+ useProperties(ref, 'selectedOptions', props.selectedOptions);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-combobox',
+ {
+ ref,
+ ...filteredProps,
+ autocomplete: props.autocomplete,
+ placeholder: props.placeholder,
+ position: props.position,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ autowidth: props.autowidth ? '' : undefined,
+ minimal: props.minimal ? '' : undefined,
+ open: props.open ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DateField.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDateField)());
+
+const DateField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ autofocus,
+ step,
+ max,
+ min,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'input', props.onInput);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'step', props.step);
+ useProperties(ref, 'max', props.max);
+ useProperties(ref, 'min', props.min);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-date-field',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGridCell.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGridCell)());
+
+const DataGridCell = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ cellType,
+ gridColumn,
+ rowData,
+ columnDefinition,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'cell-focused', props.onCellFocused);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'rowData', props.rowData);
+ useProperties(ref, 'columnDefinition', props.columnDefinition);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current?.cellType === 'columnheader') {
+ allClasses += ' column-header';
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-data-grid-cell',
+ {
+ ref,
+ ...filteredProps,
+ 'cell-type': props.cellType || props['cell-type'],
+ 'grid-column': props.gridColumn || props['grid-column'],
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGridRow.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGridRow)());
+
+const DataGridRow = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ gridTemplateColumns,
+ rowType,
+ rowData,
+ columnDefinitions,
+ cellItemTemplate,
+ headerCellItemTemplate,
+ rowIndex,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'row-focused', props.onRowFocused);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'rowData', props.rowData);
+ useProperties(ref, 'columnDefinitions', props.columnDefinitions);
+ useProperties(ref, 'cellItemTemplate', props.cellItemTemplate);
+ useProperties(ref, 'headerCellItemTemplate', props.headerCellItemTemplate);
+ useProperties(ref, 'rowIndex', props.rowIndex);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current) {
+ if (ref.current.rowType !== 'default') {
+ allClasses += ` ${ref.current.rowType}`;
+ }
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-data-grid-row',
+ {
+ ref,
+ ...filteredProps,
+ 'grid-template-columns':
+ props.gridTemplateColumns || props['grid-template-columns'],
+ 'row-type': props.rowType || props['row-type'],
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGrid.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGrid)());
+
+const DataGrid = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ noTabbing,
+ generateHeader,
+ gridTemplateColumns,
+ rowsData,
+ columnDefinitions,
+ rowItemTemplate,
+ cellItemTemplate,
+ headerCellItemTemplate,
+ focusRowIndex,
+ focusColumnIndex,
+ rowElementTag,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'rowsData', props.rowsData);
+ useProperties(ref, 'columnDefinitions', props.columnDefinitions);
+ useProperties(ref, 'rowItemTemplate', props.rowItemTemplate);
+ useProperties(ref, 'cellItemTemplate', props.cellItemTemplate);
+ useProperties(ref, 'headerCellItemTemplate', props.headerCellItemTemplate);
+ useProperties(ref, 'focusRowIndex', props.focusRowIndex);
+ useProperties(ref, 'focusColumnIndex', props.focusColumnIndex);
+ useProperties(ref, 'rowElementTag', props.rowElementTag);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-data-grid',
+ {
+ ref,
+ ...filteredProps,
+ 'generate-header': props.generateHeader || props['generate-header'],
+ 'grid-template-columns':
+ props.gridTemplateColumns || props['grid-template-columns'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'no-tabbing': props.noTabbing ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Dialog.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDialog)());
+
+const Dialog = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ trapFocus,
+ ariaDescribedby,
+ ariaLabelledby,
+ ariaLabel,
+ modal,
+ hidden,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'cancel', props.onCancel);
+ useEventListener(ref, 'close', props.onClose);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'modal', props.modal);
+ useProperties(ref, 'hidden', props.hidden);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ({
+ show: () => ref.current.show(),
+ hide: () => ref.current.hide(),
+ compose: (this_, elementDefinition) =>
+ ref.current.compose(this_, elementDefinition)
+ }));
+
+ return react_index_js_default().createElement(
+ 'jp-dialog',
+ {
+ ref,
+ ...filteredProps,
+ 'aria-describedby': props.ariaDescribedby || props['aria-describedby'],
+ 'aria-labelledby': props.ariaLabelledby || props['aria-labelledby'],
+ 'aria-label': props.ariaLabel || props['aria-label'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'trap-focus': props.trapFocus ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Disclosure.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDisclosure)());
+
+const Disclosure = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, appearance, title, expanded, ...filteredProps } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'toggle', props.onToggle);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'expanded', props.expanded);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-disclosure',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ title: props.title,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Divider.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDivider)());
+
+const Divider = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, role, orientation, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-divider',
+ {
+ ref,
+ ...filteredProps,
+ role: props.role,
+ orientation: props.orientation,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Listbox.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpListbox)());
+
+const Listbox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ multiple,
+ size,
+ length,
+ options,
+ disabled,
+ selectedIndex,
+ selectedOptions,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'multiple', props.multiple);
+ useProperties(ref, 'size', props.size);
+ useProperties(ref, 'length', props.length);
+ useProperties(ref, 'options', props.options);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'selectedIndex', props.selectedIndex);
+ useProperties(ref, 'selectedOptions', props.selectedOptions);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-listbox',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/MenuItem.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpMenuItem)());
+
+const MenuItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, role, disabled, expanded, checked, ...filteredProps } =
+ props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'expanded-change', props.onExpand);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'expanded', props.expanded);
+ useProperties(ref, 'checked', props.checked);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current) {
+ allClasses += ` indent-${ref.current.startColumnCount}`;
+ if (ref.current.expanded) {
+ allClasses += ' expanded';
+ }
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-menu-item',
+ {
+ ref,
+ ...filteredProps,
+ role: props.role,
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Menu.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpMenu)());
+
+const Menu = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-menu',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/NumberField.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpNumberField)());
+
+const NumberField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ hideStep,
+ appearance,
+ placeholder,
+ list,
+ readOnly,
+ autofocus,
+ maxlength,
+ minlength,
+ size,
+ step,
+ max,
+ min,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'input', props.onInput);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'maxlength', props.maxlength);
+ useProperties(ref, 'minlength', props.minlength);
+ useProperties(ref, 'size', props.size);
+ useProperties(ref, 'step', props.step);
+ useProperties(ref, 'max', props.max);
+ useProperties(ref, 'min', props.min);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-number-field',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ placeholder: props.placeholder,
+ list: props.list,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ 'hide-step': props.hideStep ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Option.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpOption)());
+
+const Option = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ selected,
+ value,
+ checked,
+ content,
+ defaultSelected,
+ disabled,
+ selectedAttribute,
+ dirtyValue,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'checked', props.checked);
+ useProperties(ref, 'content', props.content);
+ useProperties(ref, 'defaultSelected', props.defaultSelected);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'selectedAttribute', props.selectedAttribute);
+ useProperties(ref, 'dirtyValue', props.dirtyValue);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-option',
+ {
+ ref,
+ ...filteredProps,
+ value: props.value,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ selected: props.selected ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/ProgressRing.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpProgressRing)());
+
+const ProgressRing = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, value, min, max, paused, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'value', props.value);
+ useProperties(ref, 'min', props.min);
+ useProperties(ref, 'max', props.max);
+ useProperties(ref, 'paused', props.paused);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-progress-ring',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Progress.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpProgress)());
+
+const Progress = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, value, min, max, paused, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'value', props.value);
+ useProperties(ref, 'min', props.min);
+ useProperties(ref, 'max', props.max);
+ useProperties(ref, 'paused', props.paused);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-progress',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Radio.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpRadio)());
+
+const Radio = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ readOnly,
+ name,
+ checked,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'name', props.name);
+ useProperties(ref, 'checked', props.checked);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-radio',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/RadioGroup.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpRadioGroup)());
+
+const RadioGroup = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ disabled,
+ name,
+ value,
+ orientation,
+ readOnly,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-radio-group',
+ {
+ ref,
+ ...filteredProps,
+ name: props.name,
+ value: props.value,
+ orientation: props.orientation,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ disabled: props.disabled ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Search.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSearch)());
+
+const Search = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ appearance,
+ placeholder,
+ list,
+ pattern,
+ readOnly,
+ autofocus,
+ maxlength,
+ minlength,
+ size,
+ spellcheck,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'input', props.onInput);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'maxlength', props.maxlength);
+ useProperties(ref, 'minlength', props.minlength);
+ useProperties(ref, 'size', props.size);
+ useProperties(ref, 'spellcheck', props.spellcheck);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-search',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ placeholder: props.placeholder,
+ list: props.list,
+ pattern: props.pattern,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Select.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSelect)());
+
+const Select = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ autowidth,
+ minimal,
+ open,
+ position,
+ autoWidth,
+ value,
+ displayValue,
+ multiple,
+ size,
+ length,
+ options,
+ disabled,
+ selectedIndex,
+ selectedOptions,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'input', props.onInput);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'autoWidth', props.autoWidth);
+ useProperties(ref, 'value', props.value);
+ useProperties(ref, 'displayValue', props.displayValue);
+ useProperties(ref, 'multiple', props.multiple);
+ useProperties(ref, 'size', props.size);
+ useProperties(ref, 'length', props.length);
+ useProperties(ref, 'options', props.options);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'selectedIndex', props.selectedIndex);
+ useProperties(ref, 'selectedOptions', props.selectedOptions);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-select',
+ {
+ ref,
+ ...filteredProps,
+ position: props.position,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ autowidth: props.autowidth ? '' : undefined,
+ minimal: props.minimal ? '' : undefined,
+ open: props.open ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Skeleton.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSkeleton)());
+
+const Skeleton = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, fill, shape, pattern, shimmer, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'shimmer', props.shimmer);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-skeleton',
+ {
+ ref,
+ ...filteredProps,
+ fill: props.fill,
+ shape: props.shape,
+ pattern: props.pattern,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Slider.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSlider)());
+
+const Slider = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ orientation,
+ mode,
+ readOnly,
+ valueAsNumber,
+ valueTextFormatter,
+ min,
+ max,
+ step,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'valueAsNumber', props.valueAsNumber);
+ useProperties(ref, 'valueTextFormatter', props.valueTextFormatter);
+ useProperties(ref, 'min', props.min);
+ useProperties(ref, 'max', props.max);
+ useProperties(ref, 'step', props.step);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-slider',
+ {
+ ref,
+ ...filteredProps,
+ orientation: props.orientation,
+ mode: props.mode,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/SliderLabel.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSliderLabel)());
+
+const SliderLabel = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, hideMark, disabled, position, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current?.disabled) {
+ allClasses += ' disabled';
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-slider-label',
+ {
+ ref,
+ ...filteredProps,
+ position: props.position,
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'hide-mark': props.hideMark ? '' : undefined,
+ disabled: props.disabled ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Switch.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSwitch)());
+
+const Switch = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ readOnly,
+ checked,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'checked', props.checked);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-switch',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tab.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTab)());
+
+const Tab = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, disabled, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'disabled', props.disabled);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current?.classList.contains('vertical')) {
+ allClasses += ' vertical';
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-tab',
+ {
+ ref,
+ ...filteredProps,
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TabPanel.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTabPanel)());
+
+const TabPanel = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-tab-panel',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tabs.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTabs)());
+
+const Tabs = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ orientation,
+ activeid,
+ activeindicator,
+ activetab,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'activeindicator', props.activeindicator);
+ useProperties(ref, 'activetab', props.activetab);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-tabs',
+ {
+ ref,
+ ...filteredProps,
+ orientation: props.orientation,
+ activeid: props.activeid,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TextArea.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTextArea)());
+
+const TextArea = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ appearance,
+ resize,
+ form,
+ list,
+ name,
+ placeholder,
+ readOnly,
+ autofocus,
+ maxlength,
+ minlength,
+ cols,
+ rows,
+ spellcheck,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'select', props.onSelect);
+ useEventListener(ref, 'change', props.onChange);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'maxlength', props.maxlength);
+ useProperties(ref, 'minlength', props.minlength);
+ useProperties(ref, 'cols', props.cols);
+ useProperties(ref, 'rows', props.rows);
+ useProperties(ref, 'spellcheck', props.spellcheck);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-text-area',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ resize: props.resize,
+ form: props.form,
+ list: props.list,
+ name: props.name,
+ placeholder: props.placeholder,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TextField.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTextField)());
+
+const TextField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ readonly,
+ appearance,
+ placeholder,
+ type,
+ list,
+ pattern,
+ readOnly,
+ autofocus,
+ maxlength,
+ minlength,
+ size,
+ spellcheck,
+ disabled,
+ required,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'change', props.onChange);
+ useEventListener(ref, 'input', props.onInput);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'readOnly', props.readOnly);
+ useProperties(ref, 'autofocus', props.autofocus);
+ useProperties(ref, 'maxlength', props.maxlength);
+ useProperties(ref, 'minlength', props.minlength);
+ useProperties(ref, 'size', props.size);
+ useProperties(ref, 'spellcheck', props.spellcheck);
+ useProperties(ref, 'disabled', props.disabled);
+ useProperties(ref, 'required', props.required);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-text-field',
+ {
+ ref,
+ ...filteredProps,
+ appearance: props.appearance,
+ placeholder: props.placeholder,
+ type: props.type,
+ list: props.list,
+ pattern: props.pattern,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ readonly: props.readonly ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Toolbar.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpToolbar)());
+
+const Toolbar = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-toolbar',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tooltip.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTooltip)());
+
+const Tooltip = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ horizontalViewportLock,
+ verticalViewportLock,
+ anchor,
+ delay,
+ position,
+ autoUpdateMode,
+ visible,
+ anchorElement,
+ ...filteredProps
+ } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'dismiss', props.onDismiss);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'visible', props.visible);
+ useProperties(ref, 'anchorElement', props.anchorElement);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-tooltip',
+ {
+ ref,
+ ...filteredProps,
+ anchor: props.anchor,
+ delay: props.delay,
+ position: props.position,
+ 'auto-update-mode': props.autoUpdateMode || props['auto-update-mode'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'horizontal-viewport-lock': props.horizontalViewportLock ? '' : undefined,
+ 'vertical-viewport-lock': props.verticalViewportLock ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TreeItem.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTreeItem)());
+
+const TreeItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, expanded, selected, disabled, ...filteredProps } = props;
+
+ /** Event listeners - run once */
+ useEventListener(ref, 'expanded-change', props.onExpand);
+ useEventListener(ref, 'selected-change', props.onSelect);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'expanded', props.expanded);
+ useProperties(ref, 'selected', props.selected);
+ useProperties(ref, 'disabled', props.disabled);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ // Add web component internal classes on top of `className`
+ let allClasses = className ?? '';
+ if (ref.current?.nested) {
+ allClasses += ' nested';
+ }
+
+ return react_index_js_default().createElement(
+ 'jp-tree-item',
+ {
+ ref,
+ ...filteredProps,
+ class: allClasses.trim(),
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TreeView.js
+
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTreeView)());
+
+const TreeView = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, renderCollapsedNodes, currentSelected, ...filteredProps } =
+ props;
+
+ (0,react_index_js_.useLayoutEffect)(() => {
+ // Fix using private API to force refresh of nested flag on
+ // first level of tree items.
+ ref.current?.setItems();
+ }, [ref.current]);
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'currentSelected', props.currentSelected);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-tree-view',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'render-collapsed-nodes': props.renderCollapsedNodes ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Picker.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPicker)());
+
+const Picker = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const {
+ className,
+ filterSelected,
+ filterQuery,
+ selection,
+ options,
+ maxSelected,
+ noSuggestionsText,
+ suggestionsAvailableText,
+ loadingText,
+ label,
+ labelledby,
+ placeholder,
+ menuPlacement,
+ showLoading,
+ listItemTemplate,
+ defaultListItemTemplate,
+ menuOptionTemplate,
+ defaultMenuOptionTemplate,
+ listItemContentsTemplate,
+ menuOptionContentsTemplate,
+ optionsList,
+ query,
+ itemsPlaceholderElement,
+ ...filteredProps
+ } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'showLoading', props.showLoading);
+ useProperties(ref, 'listItemTemplate', props.listItemTemplate);
+ useProperties(ref, 'defaultListItemTemplate', props.defaultListItemTemplate);
+ useProperties(ref, 'menuOptionTemplate', props.menuOptionTemplate);
+ useProperties(
+ ref,
+ 'defaultMenuOptionTemplate',
+ props.defaultMenuOptionTemplate
+ );
+ useProperties(
+ ref,
+ 'listItemContentsTemplate',
+ props.listItemContentsTemplate
+ );
+ useProperties(
+ ref,
+ 'menuOptionContentsTemplate',
+ props.menuOptionContentsTemplate
+ );
+ useProperties(ref, 'optionsList', props.optionsList);
+ useProperties(ref, 'query', props.query);
+ useProperties(ref, 'itemsPlaceholderElement', props.itemsPlaceholderElement);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-draft-picker',
+ {
+ ref,
+ ...filteredProps,
+ selection: props.selection,
+ options: props.options,
+ 'max-selected': props.maxSelected || props['max-selected'],
+ 'no-suggestions-text':
+ props.noSuggestionsText || props['no-suggestions-text'],
+ 'suggestions-available-text':
+ props.suggestionsAvailableText || props['suggestions-available-text'],
+ 'loading-text': props.loadingText || props['loading-text'],
+ label: props.label,
+ labelledby: props.labelledby,
+ placeholder: props.placeholder,
+ 'menu-placement': props.menuPlacement || props['menu-placement'],
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ 'filter-selected': props.filterSelected ? '' : undefined,
+ 'filter-query': props.filterQuery ? '' : undefined,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerMenu.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerMenu)());
+
+const PickerMenu = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, suggestionsAvailableText, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(
+ ref,
+ 'suggestionsAvailableText',
+ props.suggestionsAvailableText
+ );
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-draft-picker-menu',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerMenuOption.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerMenuOption)());
+
+const PickerMenuOption = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, value, contentsTemplate, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'contentsTemplate', props.contentsTemplate);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-draft-picker-menu-option',
+ {
+ ref,
+ ...filteredProps,
+ value: props.value,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerList.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerList)());
+
+const PickerList = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-draft-picker-list',
+ {
+ ref,
+ ...filteredProps,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerListItem.js
+
+
+
+(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerListItem)());
+
+const PickerListItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
+ const ref = (0,react_index_js_.useRef)(null);
+ const { className, value, contentsTemplate, ...filteredProps } = props;
+
+ /** Properties - run whenever a property has changed */
+ useProperties(ref, 'contentsTemplate', props.contentsTemplate);
+
+ /** Methods - uses `useImperativeHandle` hook to pass ref to component */
+ (0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
+
+ return react_index_js_default().createElement(
+ 'jp-draft-picker-list-item',
+ {
+ ref,
+ ...filteredProps,
+ value: props.value,
+ class: props.className,
+ exportparts: props.exportparts,
+ for: props.htmlFor,
+ part: props.part,
+ tabindex: props.tabIndex,
+ style: { ...props.style }
+ },
+ props.children
+ );
+});
+
+;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/index.js
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=2816.03541f3103bf4c09e591.js.map?v=03541f3103bf4c09e591
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/306.dd9ffcf982b0c863872b.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/306.dd9ffcf982b0c863872b.js
new file mode 100644
index 0000000000000000000000000000000000000000..b843697f13d8ef225035eb131dbe87627f5d47a1
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/306.dd9ffcf982b0c863872b.js
@@ -0,0 +1,4262 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[306],{
+
+/***/ 50306:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ pV: () => (/* binding */ buildParser)
+/* harmony export */ });
+/* unused harmony exports GenError, buildParserFile */
+/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79352);
+/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_lezer_common__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _lezer_lr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49906);
+/* provided dependency */ var process = __webpack_require__(27061);
+
+
+
+class Node {
+ constructor(start) {
+ this.start = start;
+ }
+}
+class GrammarDeclaration extends Node {
+ constructor(start, rules, topRules, tokens, localTokens, context, externalTokens, externalSpecializers, externalPropSources, precedences, mainSkip, scopedSkip, dialects, externalProps, autoDelim) {
+ super(start);
+ this.rules = rules;
+ this.topRules = topRules;
+ this.tokens = tokens;
+ this.localTokens = localTokens;
+ this.context = context;
+ this.externalTokens = externalTokens;
+ this.externalSpecializers = externalSpecializers;
+ this.externalPropSources = externalPropSources;
+ this.precedences = precedences;
+ this.mainSkip = mainSkip;
+ this.scopedSkip = scopedSkip;
+ this.dialects = dialects;
+ this.externalProps = externalProps;
+ this.autoDelim = autoDelim;
+ }
+ toString() { return Object.values(this.rules).join("\n"); }
+}
+class RuleDeclaration extends Node {
+ constructor(start, id, props, params, expr) {
+ super(start);
+ this.id = id;
+ this.props = props;
+ this.params = params;
+ this.expr = expr;
+ }
+ toString() {
+ return this.id.name + (this.params.length ? `<${this.params.join()}>` : "") + " -> " + this.expr;
+ }
+}
+class PrecDeclaration extends Node {
+ constructor(start, items) {
+ super(start);
+ this.items = items;
+ }
+}
+class TokenPrecDeclaration extends Node {
+ constructor(start, items) {
+ super(start);
+ this.items = items;
+ }
+}
+class TokenConflictDeclaration extends Node {
+ constructor(start, a, b) {
+ super(start);
+ this.a = a;
+ this.b = b;
+ }
+}
+class TokenDeclaration extends Node {
+ constructor(start, precedences, conflicts, rules, literals) {
+ super(start);
+ this.precedences = precedences;
+ this.conflicts = conflicts;
+ this.rules = rules;
+ this.literals = literals;
+ }
+}
+class LocalTokenDeclaration extends Node {
+ constructor(start, precedences, rules, fallback) {
+ super(start);
+ this.precedences = precedences;
+ this.rules = rules;
+ this.fallback = fallback;
+ }
+}
+class LiteralDeclaration extends Node {
+ constructor(start, literal, props) {
+ super(start);
+ this.literal = literal;
+ this.props = props;
+ }
+}
+class ContextDeclaration extends Node {
+ constructor(start, id, source) {
+ super(start);
+ this.id = id;
+ this.source = source;
+ }
+}
+class ExternalTokenDeclaration extends Node {
+ constructor(start, id, source, tokens) {
+ super(start);
+ this.id = id;
+ this.source = source;
+ this.tokens = tokens;
+ }
+}
+class ExternalSpecializeDeclaration extends Node {
+ constructor(start, type, token, id, source, tokens) {
+ super(start);
+ this.type = type;
+ this.token = token;
+ this.id = id;
+ this.source = source;
+ this.tokens = tokens;
+ }
+}
+class ExternalPropSourceDeclaration extends Node {
+ constructor(start, id, source) {
+ super(start);
+ this.id = id;
+ this.source = source;
+ }
+}
+class ExternalPropDeclaration extends Node {
+ constructor(start, id, externalID, source) {
+ super(start);
+ this.id = id;
+ this.externalID = externalID;
+ this.source = source;
+ }
+}
+class Identifier extends Node {
+ constructor(start, name) {
+ super(start);
+ this.name = name;
+ }
+ toString() { return this.name; }
+}
+class Expression extends Node {
+ walk(f) { return f(this); }
+ eq(_other) { return false; }
+}
+Expression.prototype.prec = 10;
+class NameExpression extends Expression {
+ constructor(start, id, args) {
+ super(start);
+ this.id = id;
+ this.args = args;
+ }
+ toString() { return this.id.name + (this.args.length ? `<${this.args.join()}>` : ""); }
+ eq(other) {
+ return this.id.name == other.id.name && exprsEq(this.args, other.args);
+ }
+ walk(f) {
+ let args = walkExprs(this.args, f);
+ return f(args == this.args ? this : new NameExpression(this.start, this.id, args));
+ }
+}
+class SpecializeExpression extends Expression {
+ constructor(start, type, props, token, content) {
+ super(start);
+ this.type = type;
+ this.props = props;
+ this.token = token;
+ this.content = content;
+ }
+ toString() { return `@${this.type}[${this.props.join(",")}]<${this.token}, ${this.content}>`; }
+ eq(other) {
+ return this.type == other.type && Prop.eqProps(this.props, other.props) && exprEq(this.token, other.token) &&
+ exprEq(this.content, other.content);
+ }
+ walk(f) {
+ let token = this.token.walk(f), content = this.content.walk(f);
+ return f(token == this.token && content == this.content ? this : new SpecializeExpression(this.start, this.type, this.props, token, content));
+ }
+}
+class InlineRuleExpression extends Expression {
+ constructor(start, rule) {
+ super(start);
+ this.rule = rule;
+ }
+ toString() {
+ let rule = this.rule;
+ return `${rule.id}${rule.props.length ? `[${rule.props.join(",")}]` : ""} { ${rule.expr} }`;
+ }
+ eq(other) {
+ let rule = this.rule, oRule = other.rule;
+ return exprEq(rule.expr, oRule.expr) && rule.id.name == oRule.id.name && Prop.eqProps(rule.props, oRule.props);
+ }
+ walk(f) {
+ let rule = this.rule, expr = rule.expr.walk(f);
+ return f(expr == rule.expr ? this :
+ new InlineRuleExpression(this.start, new RuleDeclaration(rule.start, rule.id, rule.props, [], expr)));
+ }
+}
+class ChoiceExpression extends Expression {
+ constructor(start, exprs) {
+ super(start);
+ this.exprs = exprs;
+ }
+ toString() { return this.exprs.map(e => maybeParens(e, this)).join(" | "); }
+ eq(other) {
+ return exprsEq(this.exprs, other.exprs);
+ }
+ walk(f) {
+ let exprs = walkExprs(this.exprs, f);
+ return f(exprs == this.exprs ? this : new ChoiceExpression(this.start, exprs));
+ }
+}
+ChoiceExpression.prototype.prec = 1;
+class SequenceExpression extends Expression {
+ constructor(start, exprs, markers, empty = false) {
+ super(start);
+ this.exprs = exprs;
+ this.markers = markers;
+ this.empty = empty;
+ }
+ toString() { return this.empty ? "()" : this.exprs.map(e => maybeParens(e, this)).join(" "); }
+ eq(other) {
+ return exprsEq(this.exprs, other.exprs) && this.markers.every((m, i) => {
+ let om = other.markers[i];
+ return m.length == om.length && m.every((x, i) => x.eq(om[i]));
+ });
+ }
+ walk(f) {
+ let exprs = walkExprs(this.exprs, f);
+ return f(exprs == this.exprs ? this : new SequenceExpression(this.start, exprs, this.markers, this.empty && !exprs.length));
+ }
+}
+SequenceExpression.prototype.prec = 2;
+class ConflictMarker extends Node {
+ constructor(start, id, type) {
+ super(start);
+ this.id = id;
+ this.type = type;
+ }
+ toString() { return (this.type == "ambig" ? "~" : "!") + this.id.name; }
+ eq(other) { return this.id.name == other.id.name && this.type == other.type; }
+}
+class RepeatExpression extends Expression {
+ constructor(start, expr, kind) {
+ super(start);
+ this.expr = expr;
+ this.kind = kind;
+ }
+ toString() { return maybeParens(this.expr, this) + this.kind; }
+ eq(other) {
+ return exprEq(this.expr, other.expr) && this.kind == other.kind;
+ }
+ walk(f) {
+ let expr = this.expr.walk(f);
+ return f(expr == this.expr ? this : new RepeatExpression(this.start, expr, this.kind));
+ }
+}
+RepeatExpression.prototype.prec = 3;
+class LiteralExpression extends Expression {
+ // value.length is always > 0
+ constructor(start, value) {
+ super(start);
+ this.value = value;
+ }
+ toString() { return JSON.stringify(this.value); }
+ eq(other) { return this.value == other.value; }
+}
+class SetExpression extends Expression {
+ constructor(start, ranges, inverted) {
+ super(start);
+ this.ranges = ranges;
+ this.inverted = inverted;
+ }
+ toString() {
+ return `[${this.inverted ? "^" : ""}${this.ranges.map(([a, b]) => {
+ return String.fromCodePoint(a) + (b == a + 1 ? "" : "-" + String.fromCodePoint(b));
+ })}]`;
+ }
+ eq(other) {
+ return this.inverted == other.inverted && this.ranges.length == other.ranges.length &&
+ this.ranges.every(([a, b], i) => { let [x, y] = other.ranges[i]; return a == x && b == y; });
+ }
+}
+class AnyExpression extends Expression {
+ constructor(start) {
+ super(start);
+ }
+ toString() { return "_"; }
+ eq() { return true; }
+}
+function walkExprs(exprs, f) {
+ let result = null;
+ for (let i = 0; i < exprs.length; i++) {
+ let expr = exprs[i].walk(f);
+ if (expr != exprs[i] && !result)
+ result = exprs.slice(0, i);
+ if (result)
+ result.push(expr);
+ }
+ return result || exprs;
+}
+const CharClasses = {
+ asciiLetter: [[65, 91], [97, 123]],
+ asciiLowercase: [[97, 123]],
+ asciiUppercase: [[65, 91]],
+ digit: [[48, 58]],
+ whitespace: [[9, 14], [32, 33], [133, 134], [160, 161], [5760, 5761], [8192, 8203],
+ [8232, 8234], [8239, 8240], [8287, 8288], [12288, 12289]],
+ eof: [[0xffff, 0xffff]]
+};
+class CharClass extends Expression {
+ constructor(start, type) {
+ super(start);
+ this.type = type;
+ }
+ toString() { return "@" + this.type; }
+ eq(expr) { return this.type == expr.type; }
+}
+function exprEq(a, b) {
+ return a.constructor == b.constructor && a.eq(b);
+}
+function exprsEq(a, b) {
+ return a.length == b.length && a.every((e, i) => exprEq(e, b[i]));
+}
+class Prop extends Node {
+ constructor(start, at, name, value) {
+ super(start);
+ this.at = at;
+ this.name = name;
+ this.value = value;
+ }
+ eq(other) {
+ return this.name == other.name && this.value.length == other.value.length &&
+ this.value.every((v, i) => v.value == other.value[i].value && v.name == other.value[i].name);
+ }
+ toString() {
+ let result = (this.at ? "@" : "") + this.name;
+ if (this.value.length) {
+ result += "=";
+ for (let { name, value } of this.value)
+ result += name ? `{${name}}` : /[^\w-]/.test(value) ? JSON.stringify(value) : value;
+ }
+ return result;
+ }
+ static eqProps(a, b) {
+ return a.length == b.length && a.every((p, i) => p.eq(b[i]));
+ }
+}
+class PropPart extends Node {
+ constructor(start, value, name) {
+ super(start);
+ this.value = value;
+ this.name = name;
+ }
+}
+function maybeParens(node, parent) {
+ return node.prec < parent.prec ? "(" + node.toString() + ")" : node.toString();
+}
+
+/**
+The type of error raised when the parser generator finds an issue.
+*/
+class GenError extends Error {
+}
+
+function hasProps(props) {
+ for (let _p in props)
+ return true;
+ return false;
+}
+let termHash = 0;
+class Term {
+ constructor(name, flags, nodeName, props = {}) {
+ this.name = name;
+ this.flags = flags;
+ this.nodeName = nodeName;
+ this.props = props;
+ this.hash = ++termHash; // Used for sorting and hashing during parser generation
+ this.id = -1; // Assigned in a later stage, used in actual output
+ // Filled in only after the rules are simplified, used in automaton.ts
+ this.rules = [];
+ }
+ toString() { return this.name; }
+ get nodeType() { return this.top || this.nodeName != null || hasProps(this.props) || this.repeated; }
+ get terminal() { return (this.flags & 1 /* TermFlag.Terminal */) > 0; }
+ get eof() { return (this.flags & 4 /* TermFlag.Eof */) > 0; }
+ get error() { return "error" in this.props; }
+ get top() { return (this.flags & 2 /* TermFlag.Top */) > 0; }
+ get interesting() { return this.flags > 0 || this.nodeName != null; }
+ get repeated() { return (this.flags & 16 /* TermFlag.Repeated */) > 0; }
+ set preserve(value) { this.flags = value ? this.flags | 8 /* TermFlag.Preserve */ : this.flags & ~8 /* TermFlag.Preserve */; }
+ get preserve() { return (this.flags & 8 /* TermFlag.Preserve */) > 0; }
+ set inline(value) { this.flags = value ? this.flags | 32 /* TermFlag.Inline */ : this.flags & ~32 /* TermFlag.Inline */; }
+ get inline() { return (this.flags & 32 /* TermFlag.Inline */) > 0; }
+ cmp(other) { return this.hash - other.hash; }
+}
+class TermSet {
+ constructor() {
+ this.terms = [];
+ // Map from term names to Term instances
+ this.names = Object.create(null);
+ this.tops = [];
+ this.eof = this.term("␄", null, 1 /* TermFlag.Terminal */ | 4 /* TermFlag.Eof */);
+ this.error = this.term("⚠", "⚠", 8 /* TermFlag.Preserve */);
+ }
+ term(name, nodeName, flags = 0, props = {}) {
+ let term = new Term(name, flags, nodeName, props);
+ this.terms.push(term);
+ this.names[name] = term;
+ return term;
+ }
+ makeTop(nodeName, props) {
+ const term = this.term("@top", nodeName, 2 /* TermFlag.Top */, props);
+ this.tops.push(term);
+ return term;
+ }
+ makeTerminal(name, nodeName, props = {}) {
+ return this.term(name, nodeName, 1 /* TermFlag.Terminal */, props);
+ }
+ makeNonTerminal(name, nodeName, props = {}) {
+ return this.term(name, nodeName, 0, props);
+ }
+ makeRepeat(name) {
+ return this.term(name, null, 16 /* TermFlag.Repeated */);
+ }
+ uniqueName(name) {
+ for (let i = 0;; i++) {
+ let cur = i ? `${name}-${i}` : name;
+ if (!this.names[cur])
+ return cur;
+ }
+ }
+ finish(rules) {
+ for (let rule of rules)
+ rule.name.rules.push(rule);
+ this.terms = this.terms.filter(t => t.terminal || t.preserve || rules.some(r => r.name == t || r.parts.includes(t)));
+ let names = {};
+ let nodeTypes = [this.error];
+ this.error.id = 0 /* T.Err */;
+ let nextID = 0 /* T.Err */ + 1;
+ // Assign ids to terms that represent node types
+ for (let term of this.terms)
+ if (term.id < 0 && term.nodeType && !term.repeated) {
+ term.id = nextID++;
+ nodeTypes.push(term);
+ }
+ // Put all repeated terms after the regular node types
+ let minRepeatTerm = nextID;
+ for (let term of this.terms)
+ if (term.repeated) {
+ term.id = nextID++;
+ nodeTypes.push(term);
+ }
+ // Then comes the EOF term
+ this.eof.id = nextID++;
+ // And then the remaining (non-node, non-repeat) terms.
+ for (let term of this.terms) {
+ if (term.id < 0)
+ term.id = nextID++;
+ if (term.name)
+ names[term.id] = term.name;
+ }
+ if (nextID >= 0xfffe)
+ throw new GenError("Too many terms");
+ return { nodeTypes, names, minRepeatTerm, maxTerm: nextID - 1 };
+ }
+}
+function cmpSet(a, b, cmp) {
+ if (a.length != b.length)
+ return a.length - b.length;
+ for (let i = 0; i < a.length; i++) {
+ let diff = cmp(a[i], b[i]);
+ if (diff)
+ return diff;
+ }
+ return 0;
+}
+const none$3 = [];
+class Conflicts {
+ constructor(precedence, ambigGroups = none$3, cut = 0) {
+ this.precedence = precedence;
+ this.ambigGroups = ambigGroups;
+ this.cut = cut;
+ }
+ join(other) {
+ if (this == Conflicts.none || this == other)
+ return other;
+ if (other == Conflicts.none)
+ return this;
+ return new Conflicts(Math.max(this.precedence, other.precedence), union(this.ambigGroups, other.ambigGroups), Math.max(this.cut, other.cut));
+ }
+ cmp(other) {
+ return this.precedence - other.precedence || cmpSet(this.ambigGroups, other.ambigGroups, (a, b) => a < b ? -1 : a > b ? 1 : 0) ||
+ this.cut - other.cut;
+ }
+}
+Conflicts.none = new Conflicts(0);
+function union(a, b) {
+ if (a.length == 0 || a == b)
+ return b;
+ if (b.length == 0)
+ return a;
+ let result = a.slice();
+ for (let value of b)
+ if (!a.includes(value))
+ result.push(value);
+ return result.sort();
+}
+let ruleID = 0;
+class Rule {
+ constructor(name, parts, conflicts, skip) {
+ this.name = name;
+ this.parts = parts;
+ this.conflicts = conflicts;
+ this.skip = skip;
+ this.id = ruleID++;
+ }
+ cmp(rule) {
+ return this.id - rule.id;
+ }
+ cmpNoName(rule) {
+ return this.parts.length - rule.parts.length ||
+ this.skip.hash - rule.skip.hash ||
+ this.parts.reduce((r, s, i) => r || s.cmp(rule.parts[i]), 0) ||
+ cmpSet(this.conflicts, rule.conflicts, (a, b) => a.cmp(b));
+ }
+ toString() {
+ return this.name + " -> " + this.parts.join(" ");
+ }
+ get isRepeatWrap() {
+ return this.name.repeated && this.parts.length == 2 && this.parts[0] == this.name;
+ }
+ sameReduce(other) {
+ return this.name == other.name && this.parts.length == other.parts.length && this.isRepeatWrap == other.isRepeatWrap;
+ }
+}
+
+const MAX_CHAR = 0xffff;
+class Edge {
+ constructor(from, to, target) {
+ this.from = from;
+ this.to = to;
+ this.target = target;
+ }
+ toString() {
+ return `-> ${this.target.id}[label=${JSON.stringify(this.from < 0 ? "ε" : charFor(this.from) +
+ (this.to > this.from + 1 ? "-" + charFor(this.to - 1) : ""))}]`;
+ }
+}
+function charFor(n) {
+ return n > MAX_CHAR ? "∞"
+ : n == 10 ? "\\n"
+ : n == 13 ? "\\r"
+ : n < 32 || n >= 0xd800 && n < 0xdfff ? "\\u{" + n.toString(16) + "}"
+ : String.fromCharCode(n);
+}
+function minimize(states, start) {
+ let partition = Object.create(null);
+ let byAccepting = Object.create(null);
+ for (let state of states) {
+ let id = ids(state.accepting);
+ let group = byAccepting[id] || (byAccepting[id] = []);
+ group.push(state);
+ partition[state.id] = group;
+ }
+ for (;;) {
+ let split = false, newPartition = Object.create(null);
+ for (let state of states) {
+ if (newPartition[state.id])
+ continue;
+ let group = partition[state.id];
+ if (group.length == 1) {
+ newPartition[group[0].id] = group;
+ continue;
+ }
+ let parts = [];
+ groups: for (let state of group) {
+ for (let p of parts) {
+ if (isEquivalent(state, p[0], partition)) {
+ p.push(state);
+ continue groups;
+ }
+ }
+ parts.push([state]);
+ }
+ if (parts.length > 1)
+ split = true;
+ for (let p of parts)
+ for (let s of p)
+ newPartition[s.id] = p;
+ }
+ if (!split)
+ return applyMinimization(states, start, partition);
+ partition = newPartition;
+ }
+}
+function isEquivalent(a, b, partition) {
+ if (a.edges.length != b.edges.length)
+ return false;
+ for (let i = 0; i < a.edges.length; i++) {
+ let eA = a.edges[i], eB = b.edges[i];
+ if (eA.from != eB.from || eA.to != eB.to || partition[eA.target.id] != partition[eB.target.id])
+ return false;
+ }
+ return true;
+}
+function applyMinimization(states, start, partition) {
+ for (let state of states) {
+ for (let i = 0; i < state.edges.length; i++) {
+ let edge = state.edges[i], target = partition[edge.target.id][0];
+ if (target != edge.target)
+ state.edges[i] = new Edge(edge.from, edge.to, target);
+ }
+ }
+ return partition[start.id][0];
+}
+let stateID = 1;
+let State$1 = class State {
+ constructor(accepting = [], id = stateID++) {
+ this.accepting = accepting;
+ this.id = id;
+ this.edges = [];
+ }
+ edge(from, to, target) {
+ this.edges.push(new Edge(from, to, target));
+ }
+ nullEdge(target) { this.edge(-1, -1, target); }
+ compile() {
+ let labeled = Object.create(null), localID = 0;
+ let startState = explore(this.closure().sort((a, b) => a.id - b.id));
+ return minimize(Object.values(labeled), startState);
+ function explore(states) {
+ let newState = labeled[ids(states)] =
+ new State(states.reduce((a, s) => union(a, s.accepting), []), localID++);
+ let out = [];
+ for (let state of states)
+ for (let edge of state.edges) {
+ if (edge.from >= 0)
+ out.push(edge);
+ }
+ let transitions = mergeEdges(out);
+ for (let merged of transitions) {
+ let targets = merged.targets.sort((a, b) => a.id - b.id);
+ newState.edge(merged.from, merged.to, labeled[ids(targets)] || explore(targets));
+ }
+ return newState;
+ }
+ }
+ closure() {
+ let result = [], seen = Object.create(null);
+ function explore(state) {
+ if (seen[state.id])
+ return;
+ seen[state.id] = true;
+ // States with only epsilon edges and no accepting term that
+ // isn't also in the next states are left out to help reduce the
+ // number of unique state combinations
+ if (state.edges.some(e => e.from >= 0) ||
+ (state.accepting.length > 0 && !state.edges.some(e => sameSet$1(state.accepting, e.target.accepting))))
+ result.push(state);
+ for (let edge of state.edges)
+ if (edge.from < 0)
+ explore(edge.target);
+ }
+ explore(this);
+ return result;
+ }
+ findConflicts(occurTogether) {
+ let conflicts = [], cycleTerms = this.cycleTerms();
+ function add(a, b, soft, aEdges, bEdges) {
+ if (a.id < b.id) {
+ [a, b] = [b, a];
+ soft = -soft;
+ }
+ let found = conflicts.find(c => c.a == a && c.b == b);
+ if (!found)
+ conflicts.push(new Conflict$1(a, b, soft, exampleFromEdges(aEdges), bEdges && exampleFromEdges(bEdges)));
+ else if (found.soft != soft)
+ found.soft = 0;
+ }
+ this.reachable((state, edges) => {
+ if (state.accepting.length == 0)
+ return;
+ for (let i = 0; i < state.accepting.length; i++)
+ for (let j = i + 1; j < state.accepting.length; j++)
+ add(state.accepting[i], state.accepting[j], 0, edges);
+ state.reachable((s, es) => {
+ if (s != state)
+ for (let term of s.accepting) {
+ let hasCycle = cycleTerms.includes(term);
+ for (let orig of state.accepting)
+ if (term != orig)
+ add(term, orig, hasCycle || cycleTerms.includes(orig) || !occurTogether(term, orig) ? 0 : 1, edges, edges.concat(es));
+ }
+ });
+ });
+ return conflicts;
+ }
+ cycleTerms() {
+ let work = [];
+ this.reachable(state => {
+ for (let { target } of state.edges)
+ work.push(state, target);
+ });
+ let table = new Map;
+ let haveCycle = [];
+ for (let i = 0; i < work.length;) {
+ let from = work[i++], to = work[i++];
+ let entry = table.get(from);
+ if (!entry)
+ table.set(from, entry = []);
+ if (entry.includes(to))
+ continue;
+ if (from == to) {
+ if (!haveCycle.includes(from))
+ haveCycle.push(from);
+ }
+ else {
+ for (let next of entry)
+ work.push(from, next);
+ entry.push(to);
+ }
+ }
+ let result = [];
+ for (let state of haveCycle) {
+ for (let term of state.accepting) {
+ if (!result.includes(term))
+ result.push(term);
+ }
+ }
+ return result;
+ }
+ reachable(f) {
+ let seen = [], edges = [];
+ (function explore(s) {
+ f(s, edges);
+ seen.push(s);
+ for (let edge of s.edges)
+ if (!seen.includes(edge.target)) {
+ edges.push(edge);
+ explore(edge.target);
+ edges.pop();
+ }
+ })(this);
+ }
+ toString() {
+ let out = "digraph {\n";
+ this.reachable(state => {
+ if (state.accepting.length)
+ out += ` ${state.id} [label=${JSON.stringify(state.accepting.join())}];\n`;
+ for (let edge of state.edges)
+ out += ` ${state.id} ${edge};\n`;
+ });
+ return out + "}";
+ }
+ // Tokenizer data is represented as a single flat array. This
+ // contains regions for each tokenizer state. Region offsets are
+ // used to identify states.
+ //
+ // Each state is laid out as:
+ // - Token group mask
+ // - Offset of the end of the accepting data
+ // - Number of outgoing edges in the state
+ // - Pairs of token masks and term ids that indicate the accepting
+ // states, sorted by precedence
+ // - Triples for the edges: each with a low and high bound and the
+ // offset of the next state.
+ toArray(groupMasks, precedence) {
+ let offsets = []; // Used to 'link' the states after building the arrays
+ let data = [];
+ this.reachable(state => {
+ let start = data.length;
+ let acceptEnd = start + 3 + state.accepting.length * 2;
+ offsets[state.id] = start;
+ data.push(state.stateMask(groupMasks), acceptEnd, state.edges.length);
+ state.accepting.sort((a, b) => precedence.indexOf(a.id) - precedence.indexOf(b.id));
+ for (let term of state.accepting)
+ data.push(term.id, groupMasks[term.id] || 0xffff);
+ for (let edge of state.edges)
+ data.push(edge.from, edge.to, -edge.target.id - 1);
+ });
+ // Replace negative numbers with resolved state offsets
+ for (let i = 0; i < data.length; i++)
+ if (data[i] < 0)
+ data[i] = offsets[-data[i] - 1];
+ if (data.length > Math.pow(2, 16))
+ throw new GenError("Tokenizer tables too big to represent with 16-bit offsets.");
+ return Uint16Array.from(data);
+ }
+ stateMask(groupMasks) {
+ let mask = 0;
+ this.reachable(state => {
+ for (let term of state.accepting)
+ mask |= (groupMasks[term.id] || 0xffff);
+ });
+ return mask;
+ }
+};
+let Conflict$1 = class Conflict {
+ constructor(a, b,
+ // Conflicts between two non-cyclic tokens are marked as
+ // 'soft', with a negative number if a is shorter than
+ // b, and a positive if b is shorter than a.
+ soft, exampleA, exampleB) {
+ this.a = a;
+ this.b = b;
+ this.soft = soft;
+ this.exampleA = exampleA;
+ this.exampleB = exampleB;
+ }
+};
+function exampleFromEdges(edges) {
+ let str = "";
+ for (let i = 0; i < edges.length; i++)
+ str += String.fromCharCode(edges[i].from);
+ return str;
+}
+function ids(elts) {
+ let result = "";
+ for (let elt of elts) {
+ if (result.length)
+ result += "-";
+ result += elt.id;
+ }
+ return result;
+}
+function sameSet$1(a, b) {
+ if (a.length != b.length)
+ return false;
+ for (let i = 0; i < a.length; i++)
+ if (a[i] != b[i])
+ return false;
+ return true;
+}
+class MergedEdge {
+ constructor(from, to, targets) {
+ this.from = from;
+ this.to = to;
+ this.targets = targets;
+ }
+}
+// Merge multiple edges (tagged by character ranges) into a set of
+// mutually exclusive ranges pointing at all target states for that
+// range
+function mergeEdges(edges) {
+ let separate = [], result = [];
+ for (let edge of edges) {
+ if (!separate.includes(edge.from))
+ separate.push(edge.from);
+ if (!separate.includes(edge.to))
+ separate.push(edge.to);
+ }
+ separate.sort((a, b) => a - b);
+ for (let i = 1; i < separate.length; i++) {
+ let from = separate[i - 1], to = separate[i];
+ let found = [];
+ for (let edge of edges)
+ if (edge.to > from && edge.from < to) {
+ for (let target of edge.target.closure())
+ if (!found.includes(target))
+ found.push(target);
+ }
+ if (found.length)
+ result.push(new MergedEdge(from, to, found));
+ }
+ let eof = edges.filter(e => e.from == 65535 /* Seq.End */ && e.to == 65535 /* Seq.End */);
+ if (eof.length) {
+ let found = [];
+ for (let edge of eof)
+ for (let target of edge.target.closure())
+ if (!found.includes(target))
+ found.push(target);
+ if (found.length)
+ result.push(new MergedEdge(65535 /* Seq.End */, 65535 /* Seq.End */, found));
+ }
+ return result;
+}
+
+// Note that this is the parser for grammar files, not the generated parser
+let word = /[\w_-]+/gy;
+// Some engines (specifically SpiderMonkey) have still not implemented \p
+try {
+ word = /[\p{Alphabetic}\d_-]+/ugy;
+}
+catch (_) { }
+const none$2 = [];
+class Input {
+ constructor(string, fileName = null) {
+ this.string = string;
+ this.fileName = fileName;
+ this.type = "sof";
+ this.value = null;
+ this.start = 0;
+ this.end = 0;
+ this.next();
+ }
+ lineInfo(pos) {
+ for (let line = 1, cur = 0;;) {
+ let next = this.string.indexOf("\n", cur);
+ if (next > -1 && next < pos) {
+ ++line;
+ cur = next + 1;
+ }
+ else {
+ return { line, ch: pos - cur };
+ }
+ }
+ }
+ message(msg, pos = -1) {
+ let posInfo = this.fileName || "";
+ if (pos > -1) {
+ let info = this.lineInfo(pos);
+ posInfo += (posInfo ? " " : "") + info.line + ":" + info.ch;
+ }
+ return posInfo ? msg + ` (${posInfo})` : msg;
+ }
+ raise(msg, pos = -1) {
+ throw new GenError(this.message(msg, pos));
+ }
+ match(pos, re) {
+ let match = re.exec(this.string.slice(pos));
+ return match ? pos + match[0].length : -1;
+ }
+ next() {
+ let start = this.match(this.end, /^(\s|\/\/.*|\/\*[^]*?\*\/)*/);
+ if (start == this.string.length)
+ return this.set("eof", null, start, start);
+ let next = this.string[start];
+ if (next == '"') {
+ let end = this.match(start + 1, /^(\\.|[^"\\])*"/);
+ if (end == -1)
+ this.raise("Unterminated string literal", start);
+ return this.set("string", readString(this.string.slice(start + 1, end - 1)), start, end);
+ }
+ else if (next == "'") {
+ let end = this.match(start + 1, /^(\\.|[^'\\])*'/);
+ if (end == -1)
+ this.raise("Unterminated string literal", start);
+ return this.set("string", readString(this.string.slice(start + 1, end - 1)), start, end);
+ }
+ else if (next == "@") {
+ word.lastIndex = start + 1;
+ let m = word.exec(this.string);
+ if (!m)
+ return this.raise("@ without a name", start);
+ return this.set("at", m[0], start, start + 1 + m[0].length);
+ }
+ else if ((next == "$" || next == "!") && this.string[start + 1] == "[") {
+ let end = this.match(start + 2, /^(?:\\.|[^\]\\])*\]/);
+ if (end == -1)
+ this.raise("Unterminated character set", start);
+ return this.set("set", this.string.slice(start + 2, end - 1), start, end);
+ }
+ else if (/[\[\]()!~+*?{}<>\.,|:$=]/.test(next)) {
+ return this.set(next, null, start, start + 1);
+ }
+ else {
+ word.lastIndex = start;
+ let m = word.exec(this.string);
+ if (!m)
+ return this.raise("Unexpected character " + JSON.stringify(next), start);
+ return this.set("id", m[0], start, start + m[0].length);
+ }
+ }
+ set(type, value, start, end) {
+ this.type = type;
+ this.value = value;
+ this.start = start;
+ this.end = end;
+ }
+ eat(type, value = null) {
+ if (this.type == type && (value == null || this.value === value)) {
+ this.next();
+ return true;
+ }
+ else {
+ return false;
+ }
+ }
+ unexpected() {
+ return this.raise(`Unexpected token '${this.string.slice(this.start, this.end)}'`, this.start);
+ }
+ expect(type, value = null) {
+ let val = this.value;
+ if (this.type != type || !(value == null || val === value))
+ this.unexpected();
+ this.next();
+ return val;
+ }
+ parse() {
+ return parseGrammar(this);
+ }
+}
+function parseGrammar(input) {
+ let start = input.start;
+ let rules = [];
+ let prec = null;
+ let tokens = null;
+ let localTokens = [];
+ let mainSkip = null;
+ let scopedSkip = [];
+ let dialects = [];
+ let context = null;
+ let external = [];
+ let specialized = [];
+ let props = [];
+ let propSources = [];
+ let tops = [];
+ let sawTop = false;
+ let autoDelim = false;
+ while (input.type != "eof") {
+ let start = input.start;
+ if (input.eat("at", "top")) {
+ if (input.type != "id")
+ input.raise(`Top rules must have a name`, input.start);
+ tops.push(parseRule(input, parseIdent(input)));
+ sawTop = true;
+ }
+ else if (input.type == "at" && input.value == "tokens") {
+ if (tokens)
+ input.raise(`Multiple @tokens declaractions`, input.start);
+ else
+ tokens = parseTokens(input);
+ }
+ else if (input.eat("at", "local")) {
+ input.expect("id", "tokens");
+ localTokens.push(parseLocalTokens(input, start));
+ }
+ else if (input.eat("at", "context")) {
+ if (context)
+ input.raise(`Multiple @context declarations`, start);
+ let id = parseIdent(input);
+ input.expect("id", "from");
+ let source = input.expect("string");
+ context = new ContextDeclaration(start, id, source);
+ }
+ else if (input.eat("at", "external")) {
+ if (input.eat("id", "tokens"))
+ external.push(parseExternalTokens(input, start));
+ else if (input.eat("id", "prop"))
+ props.push(parseExternalProp(input, start));
+ else if (input.eat("id", "extend"))
+ specialized.push(parseExternalSpecialize(input, "extend", start));
+ else if (input.eat("id", "specialize"))
+ specialized.push(parseExternalSpecialize(input, "specialize", start));
+ else if (input.eat("id", "propSource"))
+ propSources.push(parseExternalPropSource(input, start));
+ else
+ input.unexpected();
+ }
+ else if (input.eat("at", "dialects")) {
+ input.expect("{");
+ for (let first = true; !input.eat("}"); first = false) {
+ if (!first)
+ input.eat(",");
+ dialects.push(parseIdent(input));
+ }
+ }
+ else if (input.type == "at" && input.value == "precedence") {
+ if (prec)
+ input.raise(`Multiple precedence declarations`, input.start);
+ prec = parsePrecedence(input);
+ }
+ else if (input.eat("at", "detectDelim")) {
+ autoDelim = true;
+ }
+ else if (input.eat("at", "skip")) {
+ let skip = parseBracedExpr(input);
+ if (input.type == "{") {
+ input.next();
+ let rules = [], topRules = [];
+ while (!input.eat("}")) {
+ if (input.eat("at", "top")) {
+ topRules.push(parseRule(input, parseIdent(input)));
+ sawTop = true;
+ }
+ else {
+ rules.push(parseRule(input));
+ }
+ }
+ scopedSkip.push({ expr: skip, topRules, rules });
+ }
+ else {
+ if (mainSkip)
+ input.raise(`Multiple top-level skip declarations`, input.start);
+ mainSkip = skip;
+ }
+ }
+ else {
+ rules.push(parseRule(input));
+ }
+ }
+ if (!sawTop)
+ return input.raise(`Missing @top declaration`);
+ return new GrammarDeclaration(start, rules, tops, tokens, localTokens, context, external, specialized, propSources, prec, mainSkip, scopedSkip, dialects, props, autoDelim);
+}
+function parseRule(input, named) {
+ let start = named ? named.start : input.start;
+ let id = named || parseIdent(input);
+ let props = parseProps(input);
+ let params = [];
+ if (input.eat("<"))
+ while (!input.eat(">")) {
+ if (params.length)
+ input.expect(",");
+ params.push(parseIdent(input));
+ }
+ let expr = parseBracedExpr(input);
+ return new RuleDeclaration(start, id, props, params, expr);
+}
+function parseProps(input) {
+ if (input.type != "[")
+ return none$2;
+ let props = [];
+ input.expect("[");
+ while (!input.eat("]")) {
+ if (props.length)
+ input.expect(",");
+ props.push(parseProp(input));
+ }
+ return props;
+}
+function parseProp(input) {
+ let start = input.start, value = [], name = input.value, at = input.type == "at";
+ if (!input.eat("at") && !input.eat("id"))
+ input.unexpected();
+ if (input.eat("="))
+ for (;;) {
+ if (input.type == "string" || input.type == "id") {
+ value.push(new PropPart(input.start, input.value, null));
+ input.next();
+ }
+ else if (input.eat(".")) {
+ value.push(new PropPart(input.start, ".", null));
+ }
+ else if (input.eat("{")) {
+ value.push(new PropPart(input.start, null, input.expect("id")));
+ input.expect("}");
+ }
+ else {
+ break;
+ }
+ }
+ return new Prop(start, at, name, value);
+}
+function parseBracedExpr(input) {
+ input.expect("{");
+ let expr = parseExprChoice(input);
+ input.expect("}");
+ return expr;
+}
+const SET_MARKER = "\ufdda"; // (Invalid unicode character)
+function parseExprInner(input) {
+ let start = input.start;
+ if (input.eat("(")) {
+ if (input.eat(")"))
+ return new SequenceExpression(start, none$2, [none$2, none$2]);
+ let expr = parseExprChoice(input);
+ input.expect(")");
+ return expr;
+ }
+ else if (input.type == "string") {
+ let value = input.value;
+ input.next();
+ if (value.length == 0)
+ return new SequenceExpression(start, none$2, [none$2, none$2]);
+ return new LiteralExpression(start, value);
+ }
+ else if (input.eat("id", "_")) {
+ return new AnyExpression(start);
+ }
+ else if (input.type == "set") {
+ let content = input.value, invert = input.string[input.start] == "!";
+ let unescaped = readString(content.replace(/\\.|-|"/g, (m) => {
+ return m == "-" ? SET_MARKER : m == '"' ? '\\"' : m;
+ }));
+ let ranges = [];
+ for (let pos = 0; pos < unescaped.length;) {
+ let code = unescaped.codePointAt(pos);
+ pos += code > 0xffff ? 2 : 1;
+ if (pos < unescaped.length - 1 && unescaped[pos] == SET_MARKER) {
+ let end = unescaped.codePointAt(pos + 1);
+ pos += end > 0xffff ? 3 : 2;
+ if (end < code)
+ input.raise("Invalid character range", input.start);
+ addRange(input, ranges, code, end + 1);
+ }
+ else {
+ if (code == SET_MARKER.charCodeAt(0))
+ code = 45;
+ addRange(input, ranges, code, code + 1);
+ }
+ }
+ input.next();
+ return new SetExpression(start, ranges.sort((a, b) => a[0] - b[0]), invert);
+ }
+ else if (input.type == "at" && (input.value == "specialize" || input.value == "extend")) {
+ let { start, value } = input;
+ input.next();
+ let props = parseProps(input);
+ input.expect("<");
+ let token = parseExprChoice(input), content;
+ if (input.eat(",")) {
+ content = parseExprChoice(input);
+ }
+ else if (token instanceof LiteralExpression) {
+ content = token;
+ }
+ else {
+ input.raise(`@${value} requires two arguments when its first argument isn't a literal string`);
+ }
+ input.expect(">");
+ return new SpecializeExpression(start, value, props, token, content);
+ }
+ else if (input.type == "at" && CharClasses.hasOwnProperty(input.value)) {
+ let cls = new CharClass(input.start, input.value);
+ input.next();
+ return cls;
+ }
+ else if (input.type == "[") {
+ let rule = parseRule(input, new Identifier(start, "_anon"));
+ if (rule.params.length)
+ input.raise(`Inline rules can't have parameters`, rule.start);
+ return new InlineRuleExpression(start, rule);
+ }
+ else {
+ let id = parseIdent(input);
+ if (input.type == "[" || input.type == "{") {
+ let rule = parseRule(input, id);
+ if (rule.params.length)
+ input.raise(`Inline rules can't have parameters`, rule.start);
+ return new InlineRuleExpression(start, rule);
+ }
+ else {
+ if (input.eat(".") && id.name == "std" && CharClasses.hasOwnProperty(input.value)) {
+ let cls = new CharClass(start, input.value);
+ input.next();
+ return cls;
+ }
+ return new NameExpression(start, id, parseArgs(input));
+ }
+ }
+}
+function parseArgs(input) {
+ let args = [];
+ if (input.eat("<"))
+ while (!input.eat(">")) {
+ if (args.length)
+ input.expect(",");
+ args.push(parseExprChoice(input));
+ }
+ return args;
+}
+function addRange(input, ranges, from, to) {
+ if (!ranges.every(([a, b]) => b <= from || a >= to))
+ input.raise("Overlapping character range", input.start);
+ ranges.push([from, to]);
+}
+function parseExprSuffix(input) {
+ let start = input.start;
+ let expr = parseExprInner(input);
+ for (;;) {
+ let kind = input.type;
+ if (input.eat("*") || input.eat("?") || input.eat("+"))
+ expr = new RepeatExpression(start, expr, kind);
+ else
+ return expr;
+ }
+}
+function endOfSequence(input) {
+ return input.type == "}" || input.type == ")" || input.type == "|" || input.type == "/" ||
+ input.type == "/\\" || input.type == "{" || input.type == "," || input.type == ">";
+}
+function parseExprSequence(input) {
+ let start = input.start, exprs = [], markers = [none$2];
+ do {
+ // Add markers at this position
+ for (;;) {
+ let localStart = input.start, markerType;
+ if (input.eat("~"))
+ markerType = "ambig";
+ else if (input.eat("!"))
+ markerType = "prec";
+ else
+ break;
+ markers[markers.length - 1] =
+ markers[markers.length - 1].concat(new ConflictMarker(localStart, parseIdent(input), markerType));
+ }
+ if (endOfSequence(input))
+ break;
+ exprs.push(parseExprSuffix(input));
+ markers.push(none$2);
+ } while (!endOfSequence(input));
+ if (exprs.length == 1 && markers.every(ms => ms.length == 0))
+ return exprs[0];
+ return new SequenceExpression(start, exprs, markers, !exprs.length);
+}
+function parseExprChoice(input) {
+ let start = input.start, left = parseExprSequence(input);
+ if (!input.eat("|"))
+ return left;
+ let exprs = [left];
+ do {
+ exprs.push(parseExprSequence(input));
+ } while (input.eat("|"));
+ let empty = exprs.find(s => s instanceof SequenceExpression && s.empty);
+ if (empty)
+ input.raise("Empty expression in choice operator. If this is intentional, use () to make it explicit.", empty.start);
+ return new ChoiceExpression(start, exprs);
+}
+function parseIdent(input) {
+ if (input.type != "id")
+ input.unexpected();
+ let start = input.start, name = input.value;
+ input.next();
+ return new Identifier(start, name);
+}
+function parsePrecedence(input) {
+ let start = input.start;
+ input.next();
+ input.expect("{");
+ let items = [];
+ while (!input.eat("}")) {
+ if (items.length)
+ input.eat(",");
+ items.push({
+ id: parseIdent(input),
+ type: input.eat("at", "left") ? "left" : input.eat("at", "right") ? "right" : input.eat("at", "cut") ? "cut" : null
+ });
+ }
+ return new PrecDeclaration(start, items);
+}
+function parseTokens(input) {
+ let start = input.start;
+ input.next();
+ input.expect("{");
+ let tokenRules = [];
+ let literals = [];
+ let precedences = [];
+ let conflicts = [];
+ while (!input.eat("}")) {
+ if (input.type == "at" && input.value == "precedence") {
+ precedences.push(parseTokenPrecedence(input));
+ }
+ else if (input.type == "at" && input.value == "conflict") {
+ conflicts.push(parseTokenConflict(input));
+ }
+ else if (input.type == "string") {
+ literals.push(new LiteralDeclaration(input.start, input.expect("string"), parseProps(input)));
+ }
+ else {
+ tokenRules.push(parseRule(input));
+ }
+ }
+ return new TokenDeclaration(start, precedences, conflicts, tokenRules, literals);
+}
+function parseLocalTokens(input, start) {
+ input.expect("{");
+ let tokenRules = [];
+ let precedences = [];
+ let fallback = null;
+ while (!input.eat("}")) {
+ if (input.type == "at" && input.value == "precedence") {
+ precedences.push(parseTokenPrecedence(input));
+ }
+ else if (input.eat("at", "else") && !fallback) {
+ fallback = { id: parseIdent(input), props: parseProps(input) };
+ }
+ else {
+ tokenRules.push(parseRule(input));
+ }
+ }
+ return new LocalTokenDeclaration(start, precedences, tokenRules, fallback);
+}
+function parseTokenPrecedence(input) {
+ let start = input.start;
+ input.next();
+ input.expect("{");
+ let tokens = [];
+ while (!input.eat("}")) {
+ if (tokens.length)
+ input.eat(",");
+ let expr = parseExprInner(input);
+ if (expr instanceof LiteralExpression || expr instanceof NameExpression)
+ tokens.push(expr);
+ else
+ input.raise(`Invalid expression in token precedences`, expr.start);
+ }
+ return new TokenPrecDeclaration(start, tokens);
+}
+function parseTokenConflict(input) {
+ let start = input.start;
+ input.next();
+ input.expect("{");
+ let a = parseExprInner(input);
+ if (!(a instanceof LiteralExpression || a instanceof NameExpression))
+ input.raise(`Invalid expression in token conflict`, a.start);
+ input.eat(",");
+ let b = parseExprInner(input);
+ if (!(b instanceof LiteralExpression || b instanceof NameExpression))
+ input.raise(`Invalid expression in token conflict`, b.start);
+ input.expect("}");
+ return new TokenConflictDeclaration(start, a, b);
+}
+function parseExternalTokenSet(input) {
+ let tokens = [];
+ input.expect("{");
+ while (!input.eat("}")) {
+ if (tokens.length)
+ input.eat(",");
+ let id = parseIdent(input);
+ let props = parseProps(input);
+ tokens.push({ id, props });
+ }
+ return tokens;
+}
+function parseExternalTokens(input, start) {
+ let id = parseIdent(input);
+ input.expect("id", "from");
+ let from = input.expect("string");
+ return new ExternalTokenDeclaration(start, id, from, parseExternalTokenSet(input));
+}
+function parseExternalSpecialize(input, type, start) {
+ let token = parseBracedExpr(input);
+ let id = parseIdent(input);
+ input.expect("id", "from");
+ let from = input.expect("string");
+ return new ExternalSpecializeDeclaration(start, type, token, id, from, parseExternalTokenSet(input));
+}
+function parseExternalPropSource(input, start) {
+ let id = parseIdent(input);
+ input.expect("id", "from");
+ return new ExternalPropSourceDeclaration(start, id, input.expect("string"));
+}
+function parseExternalProp(input, start) {
+ let externalID = parseIdent(input);
+ let id = input.eat("id", "as") ? parseIdent(input) : externalID;
+ input.expect("id", "from");
+ let from = input.expect("string");
+ return new ExternalPropDeclaration(start, id, externalID, from);
+}
+function readString(string) {
+ let point = /\\(?:u\{([\da-f]+)\}|u([\da-f]{4})|x([\da-f]{2})|([ntbrf0])|(.))|[^]/yig;
+ let out = "", m;
+ while (m = point.exec(string)) {
+ let [all, u1, u2, u3, single, unknown] = m;
+ if (u1 || u2 || u3)
+ out += String.fromCodePoint(parseInt(u1 || u2 || u3, 16));
+ else if (single)
+ out += single == "n" ? "\n" : single == "t" ? "\t" : single == "0" ? "\0" : single == "r" ? "\r" : single == "f" ? "\f" : "\b";
+ else if (unknown)
+ out += unknown;
+ else
+ out += all;
+ }
+ return out;
+}
+
+function hash(a, b) { return (a << 5) + a + b; }
+function hashString(h, s) {
+ for (let i = 0; i < s.length; i++)
+ h = hash(h, s.charCodeAt(i));
+ return h;
+}
+
+const verbose = (typeof process != "undefined" && process.env.LOG) || "";
+const timing = /\btime\b/.test(verbose);
+const time = timing ? (label, f) => {
+ let t0 = Date.now();
+ let result = f();
+ console.log(`${label} (${((Date.now() - t0) / 1000).toFixed(2)}s)`);
+ return result;
+} : (_label, f) => f();
+
+class Pos {
+ constructor(rule, pos,
+ // NOTE `ahead` and `ambigAhead` aren't mutated anymore after `finish()` has been called
+ ahead, ambigAhead, skipAhead, via) {
+ this.rule = rule;
+ this.pos = pos;
+ this.ahead = ahead;
+ this.ambigAhead = ambigAhead;
+ this.skipAhead = skipAhead;
+ this.via = via;
+ this.hash = 0;
+ }
+ finish() {
+ let h = hash(hash(this.rule.id, this.pos), this.skipAhead.hash);
+ for (let a of this.ahead)
+ h = hash(h, a.hash);
+ for (let group of this.ambigAhead)
+ h = hashString(h, group);
+ this.hash = h;
+ return this;
+ }
+ get next() {
+ return this.pos < this.rule.parts.length ? this.rule.parts[this.pos] : null;
+ }
+ advance() {
+ return new Pos(this.rule, this.pos + 1, this.ahead, this.ambigAhead, this.skipAhead, this.via).finish();
+ }
+ get skip() {
+ return this.pos == this.rule.parts.length ? this.skipAhead : this.rule.skip;
+ }
+ cmp(pos) {
+ return this.rule.cmp(pos.rule) || this.pos - pos.pos || this.skipAhead.hash - pos.skipAhead.hash ||
+ cmpSet(this.ahead, pos.ahead, (a, b) => a.cmp(b)) || cmpSet(this.ambigAhead, pos.ambigAhead, cmpStr);
+ }
+ eqSimple(pos) {
+ return pos.rule == this.rule && pos.pos == this.pos;
+ }
+ toString() {
+ let parts = this.rule.parts.map(t => t.name);
+ parts.splice(this.pos, 0, "·");
+ return `${this.rule.name} -> ${parts.join(" ")}`;
+ }
+ eq(other) {
+ return this == other ||
+ this.hash == other.hash && this.rule == other.rule && this.pos == other.pos && this.skipAhead == other.skipAhead &&
+ sameSet(this.ahead, other.ahead) &&
+ sameSet(this.ambigAhead, other.ambigAhead);
+ }
+ trail(maxLen = 60) {
+ let result = [];
+ for (let pos = this; pos; pos = pos.via) {
+ for (let i = pos.pos - 1; i >= 0; i--)
+ result.push(pos.rule.parts[i]);
+ }
+ let value = result.reverse().join(" ");
+ if (value.length > maxLen)
+ value = value.slice(value.length - maxLen).replace(/.*? /, "… ");
+ return value;
+ }
+ conflicts(pos = this.pos) {
+ let result = this.rule.conflicts[pos];
+ if (pos == this.rule.parts.length && this.ambigAhead.length)
+ result = result.join(new Conflicts(0, this.ambigAhead));
+ return result;
+ }
+ static addOrigins(group, context) {
+ let result = group.slice();
+ for (let i = 0; i < result.length; i++) {
+ let next = result[i];
+ if (next.pos == 0)
+ for (let pos of context) {
+ if (pos.next == next.rule.name && !result.includes(pos))
+ result.push(pos);
+ }
+ }
+ return result;
+ }
+}
+function conflictsAt(group) {
+ let result = Conflicts.none;
+ for (let pos of group)
+ result = result.join(pos.conflicts());
+ return result;
+}
+// Applies automatic action precedence based on repeat productions.
+// These are left-associative, so reducing the `R -> R R` rule has
+// higher precedence.
+function compareRepeatPrec(a, b) {
+ for (let pos of a)
+ if (pos.rule.name.repeated) {
+ for (let posB of b)
+ if (posB.rule.name == pos.rule.name) {
+ if (pos.rule.isRepeatWrap && pos.pos == 2)
+ return 1;
+ if (posB.rule.isRepeatWrap && posB.pos == 2)
+ return -1;
+ }
+ }
+ return 0;
+}
+function cmpStr(a, b) {
+ return a < b ? -1 : a > b ? 1 : 0;
+}
+function termsAhead(rule, pos, after, first) {
+ let found = [];
+ for (let i = pos + 1; i < rule.parts.length; i++) {
+ let next = rule.parts[i], cont = false;
+ if (next.terminal) {
+ addTo(next, found);
+ }
+ else
+ for (let term of first[next.name]) {
+ if (term == null)
+ cont = true;
+ else
+ addTo(term, found);
+ }
+ if (!cont)
+ return found;
+ }
+ for (let a of after)
+ addTo(a, found);
+ return found;
+}
+function eqSet(a, b) {
+ if (a.length != b.length)
+ return false;
+ for (let i = 0; i < a.length; i++)
+ if (!a[i].eq(b[i]))
+ return false;
+ return true;
+}
+function sameSet(a, b) {
+ if (a.length != b.length)
+ return false;
+ for (let i = 0; i < a.length; i++)
+ if (a[i] != b[i])
+ return false;
+ return true;
+}
+class Shift {
+ constructor(term, target) {
+ this.term = term;
+ this.target = target;
+ }
+ eq(other) { return other instanceof Shift && this.term == other.term && other.target.id == this.target.id; }
+ cmp(other) { return other instanceof Reduce ? -1 : this.term.id - other.term.id || this.target.id - other.target.id; }
+ matches(other, mapping) {
+ return other instanceof Shift && mapping[other.target.id] == mapping[this.target.id];
+ }
+ toString() { return "s" + this.target.id; }
+ map(mapping, states) {
+ let mapped = states[mapping[this.target.id]];
+ return mapped == this.target ? this : new Shift(this.term, mapped);
+ }
+}
+class Reduce {
+ constructor(term, rule) {
+ this.term = term;
+ this.rule = rule;
+ }
+ eq(other) {
+ return other instanceof Reduce && this.term == other.term && other.rule.sameReduce(this.rule);
+ }
+ cmp(other) {
+ return other instanceof Shift ? 1 : this.term.id - other.term.id || this.rule.name.id - other.rule.name.id ||
+ this.rule.parts.length - other.rule.parts.length;
+ }
+ matches(other, mapping) {
+ return other instanceof Reduce && other.rule.sameReduce(this.rule);
+ }
+ toString() { return `${this.rule.name.name}(${this.rule.parts.length})`; }
+ map() { return this; }
+}
+function hashPositions(set) {
+ let h = 5381;
+ for (let pos of set)
+ h = hash(h, pos.hash);
+ return h;
+}
+class ConflictContext {
+ constructor(first) {
+ this.first = first;
+ this.conflicts = [];
+ }
+}
+class State {
+ constructor(id, set, flags = 0, skip, hash = hashPositions(set), startRule = null) {
+ this.id = id;
+ this.set = set;
+ this.flags = flags;
+ this.skip = skip;
+ this.hash = hash;
+ this.startRule = startRule;
+ this.actions = [];
+ this.actionPositions = [];
+ this.goto = [];
+ this.tokenGroup = -1;
+ this.defaultReduce = null;
+ this._actionsByTerm = null;
+ }
+ toString() {
+ let actions = this.actions.map(t => t.term + "=" + t).join(",") +
+ (this.goto.length ? " | " + this.goto.map(g => g.term + "=" + g).join(",") : "");
+ return this.id + ": " + this.set.filter(p => p.pos > 0).join() +
+ (this.defaultReduce ? `\n always ${this.defaultReduce.name}(${this.defaultReduce.parts.length})`
+ : actions.length ? "\n " + actions : "");
+ }
+ addActionInner(value, positions) {
+ check: for (let i = 0; i < this.actions.length; i++) {
+ let action = this.actions[i];
+ if (action.term == value.term) {
+ if (action.eq(value))
+ return null;
+ let fullPos = Pos.addOrigins(positions, this.set), actionFullPos = Pos.addOrigins(this.actionPositions[i], this.set);
+ let conflicts = conflictsAt(fullPos), actionConflicts = conflictsAt(actionFullPos);
+ let diff = compareRepeatPrec(fullPos, actionFullPos) || conflicts.precedence - actionConflicts.precedence;
+ if (diff > 0) { // Drop the existing action
+ this.actions.splice(i, 1);
+ this.actionPositions.splice(i, 1);
+ i--;
+ continue check;
+ }
+ else if (diff < 0) { // Drop this one
+ return null;
+ }
+ else if (conflicts.ambigGroups.some(g => actionConflicts.ambigGroups.includes(g))) { // Explicitly allowed ambiguity
+ continue check;
+ }
+ else { // Not resolved
+ return action;
+ }
+ }
+ }
+ this.actions.push(value);
+ this.actionPositions.push(positions);
+ return null;
+ }
+ addAction(value, positions, context) {
+ let conflict = this.addActionInner(value, positions);
+ if (conflict) {
+ let conflictPos = this.actionPositions[this.actions.indexOf(conflict)][0];
+ let rules = [positions[0].rule.name, conflictPos.rule.name];
+ if (context.conflicts.some(c => c.rules.some(r => rules.includes(r))))
+ return;
+ let error;
+ if (conflict instanceof Shift)
+ error = `shift/reduce conflict between\n ${conflictPos}\nand\n ${positions[0].rule}`;
+ else
+ error = `reduce/reduce conflict between\n ${conflictPos.rule}\nand\n ${positions[0].rule}`;
+ error += `\nWith input:\n ${positions[0].trail(70)} · ${value.term} …`;
+ if (conflict instanceof Shift)
+ error += findConflictShiftSource(positions[0], conflict.term, context.first);
+ error += findConflictOrigin(conflictPos, positions[0]);
+ context.conflicts.push(new Conflict(error, rules));
+ }
+ }
+ getGoto(term) {
+ return this.goto.find(a => a.term == term);
+ }
+ hasSet(set) {
+ return eqSet(this.set, set);
+ }
+ actionsByTerm() {
+ let result = this._actionsByTerm;
+ if (!result) {
+ this._actionsByTerm = result = Object.create(null);
+ for (let action of this.actions)
+ (result[action.term.id] || (result[action.term.id] = [])).push(action);
+ }
+ return result;
+ }
+ finish() {
+ if (this.actions.length) {
+ let first = this.actions[0];
+ if (first instanceof Reduce) {
+ let { rule } = first;
+ if (this.actions.every(a => a instanceof Reduce && a.rule.sameReduce(rule)))
+ this.defaultReduce = rule;
+ }
+ }
+ this.actions.sort((a, b) => a.cmp(b));
+ this.goto.sort((a, b) => a.cmp(b));
+ }
+ eq(other) {
+ let dThis = this.defaultReduce, dOther = other.defaultReduce;
+ if (dThis || dOther)
+ return dThis && dOther ? dThis.sameReduce(dOther) : false;
+ return this.skip == other.skip &&
+ this.tokenGroup == other.tokenGroup &&
+ eqSet(this.actions, other.actions) &&
+ eqSet(this.goto, other.goto);
+ }
+}
+function closure(set, first) {
+ let added = [], redo = [];
+ function addFor(name, ahead, ambigAhead, skipAhead, via) {
+ for (let rule of name.rules) {
+ let add = added.find(a => a.rule == rule);
+ if (!add) {
+ let existing = set.find(p => p.pos == 0 && p.rule == rule);
+ add = existing ? new Pos(rule, 0, existing.ahead.slice(), existing.ambigAhead, existing.skipAhead, existing.via)
+ : new Pos(rule, 0, [], none$1, skipAhead, via);
+ added.push(add);
+ }
+ if (add.skipAhead != skipAhead)
+ throw new GenError("Inconsistent skip sets after " + via.trail());
+ add.ambigAhead = union(add.ambigAhead, ambigAhead);
+ for (let term of ahead)
+ if (!add.ahead.includes(term)) {
+ add.ahead.push(term);
+ if (add.rule.parts.length && !add.rule.parts[0].terminal)
+ addTo(add, redo);
+ }
+ }
+ }
+ for (let pos of set) {
+ let next = pos.next;
+ if (next && !next.terminal)
+ addFor(next, termsAhead(pos.rule, pos.pos, pos.ahead, first), pos.conflicts(pos.pos + 1).ambigGroups, pos.pos == pos.rule.parts.length - 1 ? pos.skipAhead : pos.rule.skip, pos);
+ }
+ while (redo.length) {
+ let add = redo.pop();
+ addFor(add.rule.parts[0], termsAhead(add.rule, 0, add.ahead, first), union(add.rule.conflicts[1].ambigGroups, add.rule.parts.length == 1 ? add.ambigAhead : none$1), add.rule.parts.length == 1 ? add.skipAhead : add.rule.skip, add);
+ }
+ let result = set.slice();
+ for (let add of added) {
+ add.ahead.sort((a, b) => a.hash - b.hash);
+ add.finish();
+ let origIndex = set.findIndex(p => p.pos == 0 && p.rule == add.rule);
+ if (origIndex > -1)
+ result[origIndex] = add;
+ else
+ result.push(add);
+ }
+ return result.sort((a, b) => a.cmp(b));
+}
+function addTo(value, array) {
+ if (!array.includes(value))
+ array.push(value);
+}
+function computeFirstSets(terms) {
+ let table = Object.create(null);
+ for (let t of terms.terms)
+ if (!t.terminal)
+ table[t.name] = [];
+ for (;;) {
+ let change = false;
+ for (let nt of terms.terms)
+ if (!nt.terminal)
+ for (let rule of nt.rules) {
+ let set = table[nt.name];
+ let found = false, startLen = set.length;
+ for (let part of rule.parts) {
+ found = true;
+ if (part.terminal) {
+ addTo(part, set);
+ }
+ else {
+ for (let t of table[part.name]) {
+ if (t == null)
+ found = false;
+ else
+ addTo(t, set);
+ }
+ }
+ if (found)
+ break;
+ }
+ if (!found)
+ addTo(null, set);
+ if (set.length > startLen)
+ change = true;
+ }
+ if (!change)
+ return table;
+ }
+}
+class Core {
+ constructor(set, state) {
+ this.set = set;
+ this.state = state;
+ }
+}
+class Conflict {
+ constructor(error, rules) {
+ this.error = error;
+ this.rules = rules;
+ }
+}
+function findConflictOrigin(a, b) {
+ if (a.eqSimple(b))
+ return "";
+ function via(root, start) {
+ let hist = [];
+ for (let p = start.via; !p.eqSimple(root); p = p.via)
+ hist.push(p);
+ if (!hist.length)
+ return "";
+ hist.unshift(start);
+ return hist.reverse().map((p, i) => "\n" + " ".repeat(i + 1) + (p == start ? "" : "via ") + p).join("");
+ }
+ for (let p = a; p; p = p.via)
+ for (let p2 = b; p2; p2 = p2.via) {
+ if (p.eqSimple(p2))
+ return "\nShared origin: " + p + via(p, a) + via(p, b);
+ }
+ return "";
+}
+// Search for the reason that a given 'after' token exists at the
+// given pos, by scanning up the trail of positions. Because the `via`
+// link is only one source of a pos, of potentially many, this
+// requires a re-simulation of the whole path up to the pos.
+function findConflictShiftSource(conflictPos, termAfter, first) {
+ let pos = conflictPos, path = [];
+ for (;;) {
+ for (let i = pos.pos - 1; i >= 0; i--)
+ path.push(pos.rule.parts[i]);
+ if (!pos.via)
+ break;
+ pos = pos.via;
+ }
+ path.reverse();
+ let seen = new Set();
+ function explore(pos, i, hasMatch) {
+ if (i == path.length && hasMatch && !pos.next)
+ return `\nThe reduction of ${conflictPos.rule.name} is allowed before ${termAfter} because of this rule:\n ${hasMatch}`;
+ for (let next; next = pos.next;) {
+ if (i < path.length && next == path[i]) {
+ let inner = explore(pos.advance(), i + 1, hasMatch);
+ if (inner)
+ return inner;
+ }
+ let after = pos.rule.parts[pos.pos + 1], match = pos.pos + 1 == pos.rule.parts.length ? hasMatch : null;
+ if (after && (after.terminal ? after == termAfter : first[after.name].includes(termAfter)))
+ match = pos.advance();
+ for (let rule of next.rules) {
+ let hash = (rule.id << 5) + i + (match ? 555 : 0);
+ if (!seen.has(hash)) {
+ seen.add(hash);
+ let inner = explore(new Pos(rule, 0, [], [], next, pos), i, match);
+ if (inner)
+ return inner;
+ }
+ }
+ if (!next.terminal && first[next.name].includes(null))
+ pos = pos.advance();
+ else
+ break;
+ }
+ return "";
+ }
+ return explore(pos, 0, null);
+}
+// Builds a full LR(1) automaton
+function buildFullAutomaton(terms, startTerms, first) {
+ let states = [], statesBySetHash = {};
+ let cores = {};
+ let t0 = Date.now();
+ function getState(core, top) {
+ if (core.length == 0)
+ return null;
+ let coreHash = hashPositions(core), byHash = cores[coreHash];
+ let skip;
+ for (let pos of core) {
+ if (!skip)
+ skip = pos.skip;
+ else if (skip != pos.skip)
+ throw new GenError("Inconsistent skip sets after " + pos.trail());
+ }
+ if (byHash)
+ for (let known of byHash)
+ if (eqSet(core, known.set)) {
+ if (known.state.skip != skip)
+ throw new GenError("Inconsistent skip sets after " + known.set[0].trail());
+ return known.state;
+ }
+ let set = closure(core, first);
+ let hash = hashPositions(set), forHash = statesBySetHash[hash] || (statesBySetHash[hash] = []);
+ let found;
+ if (!top)
+ for (let state of forHash)
+ if (state.hasSet(set))
+ found = state;
+ if (!found) {
+ found = new State(states.length, set, 0, skip, hash, top);
+ forHash.push(found);
+ states.push(found);
+ if (timing && states.length % 500 == 0)
+ console.log(`${states.length} states after ${((Date.now() - t0) / 1000).toFixed(2)}s`);
+ }
+ (cores[coreHash] || (cores[coreHash] = [])).push(new Core(core, found));
+ return found;
+ }
+ for (const startTerm of startTerms) {
+ const startSkip = startTerm.rules.length ? startTerm.rules[0].skip : terms.names["%noskip"];
+ getState(startTerm.rules.map(rule => new Pos(rule, 0, [terms.eof], none$1, startSkip, null).finish()), startTerm);
+ }
+ let conflicts = new ConflictContext(first);
+ for (let filled = 0; filled < states.length; filled++) {
+ let state = states[filled];
+ let byTerm = [], byTermPos = [], atEnd = [];
+ for (let pos of state.set) {
+ if (pos.pos == pos.rule.parts.length) {
+ if (!pos.rule.name.top)
+ atEnd.push(pos);
+ }
+ else {
+ let next = pos.rule.parts[pos.pos];
+ let index = byTerm.indexOf(next);
+ if (index < 0) {
+ byTerm.push(next);
+ byTermPos.push([pos]);
+ }
+ else {
+ byTermPos[index].push(pos);
+ }
+ }
+ }
+ for (let i = 0; i < byTerm.length; i++) {
+ let term = byTerm[i], positions = byTermPos[i].map(p => p.advance());
+ if (term.terminal) {
+ let set = applyCut(positions);
+ let next = getState(set);
+ if (next)
+ state.addAction(new Shift(term, next), byTermPos[i], conflicts);
+ }
+ else {
+ let goto = getState(positions);
+ if (goto)
+ state.goto.push(new Shift(term, goto));
+ }
+ }
+ let replaced = false;
+ for (let pos of atEnd)
+ for (let ahead of pos.ahead) {
+ let count = state.actions.length;
+ state.addAction(new Reduce(ahead, pos.rule), [pos], conflicts);
+ if (state.actions.length == count)
+ replaced = true;
+ }
+ // If some actions were replaced by others, double-check whether
+ // goto entries are now superfluous (for example, in an operator
+ // precedence-related state that has a shift for `*` but only a
+ // reduce for `+`, we don't need a goto entry for rules that start
+ // with `+`)
+ if (replaced)
+ for (let i = 0; i < state.goto.length; i++) {
+ let start = first[state.goto[i].term.name];
+ if (!start.some(term => state.actions.some(a => a.term == term && (a instanceof Shift))))
+ state.goto.splice(i--, 1);
+ }
+ }
+ if (conflicts.conflicts.length)
+ throw new GenError(conflicts.conflicts.map(c => c.error).join("\n\n"));
+ // Resolve alwaysReduce and sort actions
+ for (let state of states)
+ state.finish();
+ if (timing)
+ console.log(`${states.length} states total.`);
+ return states;
+}
+function applyCut(set) {
+ let found = null, cut = 1;
+ for (let pos of set) {
+ let value = pos.rule.conflicts[pos.pos - 1].cut;
+ if (value < cut)
+ continue;
+ if (!found || value > cut) {
+ cut = value;
+ found = [];
+ }
+ found.push(pos);
+ }
+ return found || set;
+}
+// Verify that there are no conflicting actions or goto entries in the
+// two given states (using the state ID remapping provided in mapping)
+function canMerge(a, b, mapping) {
+ // If a goto for the same term differs, that makes the states
+ // incompatible
+ for (let goto of a.goto)
+ for (let other of b.goto) {
+ if (goto.term == other.term && mapping[goto.target.id] != mapping[other.target.id])
+ return false;
+ }
+ // If there is an action where a conflicting action exists in the
+ // other state, the merge is only allowed when both states have the
+ // exact same set of actions for this term.
+ let byTerm = b.actionsByTerm();
+ for (let action of a.actions) {
+ let setB = byTerm[action.term.id];
+ if (setB && setB.some(other => !other.matches(action, mapping))) {
+ if (setB.length == 1)
+ return false;
+ let setA = a.actionsByTerm()[action.term.id];
+ if (setA.length != setB.length || setA.some(a1 => !setB.some(a2 => a1.matches(a2, mapping))))
+ return false;
+ }
+ }
+ return true;
+}
+function mergeStates(states, mapping) {
+ let newStates = [];
+ for (let state of states) {
+ let newID = mapping[state.id];
+ if (!newStates[newID]) {
+ newStates[newID] = new State(newID, state.set, 0, state.skip, state.hash, state.startRule);
+ newStates[newID].tokenGroup = state.tokenGroup;
+ newStates[newID].defaultReduce = state.defaultReduce;
+ }
+ }
+ for (let state of states) {
+ let newID = mapping[state.id], target = newStates[newID];
+ target.flags |= state.flags;
+ for (let i = 0; i < state.actions.length; i++) {
+ let action = state.actions[i].map(mapping, newStates);
+ if (!target.actions.some(a => a.eq(action))) {
+ target.actions.push(action);
+ target.actionPositions.push(state.actionPositions[i]);
+ }
+ }
+ for (let goto of state.goto) {
+ let mapped = goto.map(mapping, newStates);
+ if (!target.goto.some(g => g.eq(mapped)))
+ target.goto.push(mapped);
+ }
+ }
+ return newStates;
+}
+class Group {
+ constructor(origin, member) {
+ this.origin = origin;
+ this.members = [member];
+ }
+}
+function samePosSet(a, b) {
+ if (a.length != b.length)
+ return false;
+ for (let i = 0; i < a.length; i++)
+ if (!a[i].eqSimple(b[i]))
+ return false;
+ return true;
+}
+// Collapse an LR(1) automaton to an LALR-like automaton
+function collapseAutomaton(states) {
+ let mapping = [], groups = [];
+ assignGroups: for (let i = 0; i < states.length; i++) {
+ let state = states[i];
+ if (!state.startRule)
+ for (let j = 0; j < groups.length; j++) {
+ let group = groups[j], other = states[group.members[0]];
+ if (state.tokenGroup == other.tokenGroup &&
+ state.skip == other.skip &&
+ !other.startRule &&
+ samePosSet(state.set, other.set)) {
+ group.members.push(i);
+ mapping.push(j);
+ continue assignGroups;
+ }
+ }
+ mapping.push(groups.length);
+ groups.push(new Group(groups.length, i));
+ }
+ function spill(groupIndex, index) {
+ let group = groups[groupIndex], state = states[group.members[index]];
+ let pop = group.members.pop();
+ if (index != group.members.length)
+ group.members[index] = pop;
+ for (let i = groupIndex + 1; i < groups.length; i++) {
+ mapping[state.id] = i;
+ if (groups[i].origin == group.origin &&
+ groups[i].members.every(id => canMerge(state, states[id], mapping))) {
+ groups[i].members.push(state.id);
+ return;
+ }
+ }
+ mapping[state.id] = groups.length;
+ groups.push(new Group(group.origin, state.id));
+ }
+ for (let pass = 1;; pass++) {
+ let conflicts = false, t0 = Date.now();
+ for (let g = 0, startLen = groups.length; g < startLen; g++) {
+ let group = groups[g];
+ for (let i = 0; i < group.members.length - 1; i++) {
+ for (let j = i + 1; j < group.members.length; j++) {
+ let idA = group.members[i], idB = group.members[j];
+ if (!canMerge(states[idA], states[idB], mapping)) {
+ conflicts = true;
+ spill(g, j--);
+ }
+ }
+ }
+ }
+ if (timing)
+ console.log(`Collapse pass ${pass}${conflicts ? `` : `, done`} (${((Date.now() - t0) / 1000).toFixed(2)}s)`);
+ if (!conflicts)
+ return mergeStates(states, mapping);
+ }
+}
+function mergeIdentical(states) {
+ for (let pass = 1;; pass++) {
+ let mapping = [], didMerge = false, t0 = Date.now();
+ let newStates = [];
+ // Find states that either have the same alwaysReduce or the same
+ // actions, and merge them.
+ for (let i = 0; i < states.length; i++) {
+ let state = states[i];
+ let match = newStates.findIndex(s => state.eq(s));
+ if (match < 0) {
+ mapping[i] = newStates.length;
+ newStates.push(state);
+ }
+ else {
+ mapping[i] = match;
+ didMerge = true;
+ let other = newStates[match], add = null;
+ for (let pos of state.set)
+ if (!other.set.some(p => p.eqSimple(pos)))
+ (add || (add = [])).push(pos);
+ if (add)
+ other.set = add.concat(other.set).sort((a, b) => a.cmp(b));
+ }
+ }
+ if (timing)
+ console.log(`Merge identical pass ${pass}${didMerge ? "" : ", done"} (${((Date.now() - t0) / 1000).toFixed(2)}s)`);
+ if (!didMerge)
+ return states;
+ // Make sure actions point at merged state objects
+ for (let state of newStates)
+ if (!state.defaultReduce) {
+ state.actions = state.actions.map(a => a.map(mapping, newStates));
+ state.goto = state.goto.map(a => a.map(mapping, newStates));
+ }
+ // Renumber ids
+ for (let i = 0; i < newStates.length; i++)
+ newStates[i].id = i;
+ states = newStates;
+ }
+}
+const none$1 = [];
+function finishAutomaton(full) {
+ return mergeIdentical(collapseAutomaton(full));
+}
+
+// Encode numbers as groups of printable ascii characters
+//
+// - 0xffff, which is often used as placeholder, is encoded as "~"
+//
+// - The characters from " " (32) to "}" (125), excluding '"' and
+// "\\", indicate values from 0 to 92
+//
+// - The first bit in a 'digit' is used to indicate whether this is
+// the end of a number.
+//
+// - That leaves 46 other values, which are actually significant.
+//
+// - The digits in a number are ordered from high to low significance.
+function digitToChar(digit) {
+ let ch = digit + 32 /* Encode.Start */;
+ if (ch >= 34 /* Encode.Gap1 */)
+ ch++;
+ if (ch >= 92 /* Encode.Gap2 */)
+ ch++;
+ return String.fromCharCode(ch);
+}
+function encode(value, max = 0xffff) {
+ if (value > max)
+ throw new Error("Trying to encode a number that's too big: " + value);
+ if (value == 65535 /* Encode.BigVal */)
+ return String.fromCharCode(126 /* Encode.BigValCode */);
+ let result = "";
+ for (let first = 46 /* Encode.Base */;; first = 0) {
+ let low = value % 46 /* Encode.Base */, rest = value - low;
+ result = digitToChar(low + first) + result;
+ if (rest == 0)
+ break;
+ value = rest / 46 /* Encode.Base */;
+ }
+ return result;
+}
+function encodeArray(values, max = 0xffff) {
+ let result = '"' + encode(values.length, 0xffffffff);
+ for (let i = 0; i < values.length; i++)
+ result += encode(values[i], max);
+ result += '"';
+ return result;
+}
+
+const none = [];
+class Parts {
+ constructor(terms, conflicts) {
+ this.terms = terms;
+ this.conflicts = conflicts;
+ }
+ concat(other) {
+ if (this == Parts.none)
+ return other;
+ if (other == Parts.none)
+ return this;
+ let conflicts = null;
+ if (this.conflicts || other.conflicts) {
+ conflicts = this.conflicts ? this.conflicts.slice() : this.ensureConflicts();
+ let otherConflicts = other.ensureConflicts();
+ conflicts[conflicts.length - 1] = conflicts[conflicts.length - 1].join(otherConflicts[0]);
+ for (let i = 1; i < otherConflicts.length; i++)
+ conflicts.push(otherConflicts[i]);
+ }
+ return new Parts(this.terms.concat(other.terms), conflicts);
+ }
+ withConflicts(pos, conflicts) {
+ if (conflicts == Conflicts.none)
+ return this;
+ let array = this.conflicts ? this.conflicts.slice() : this.ensureConflicts();
+ array[pos] = array[pos].join(conflicts);
+ return new Parts(this.terms, array);
+ }
+ ensureConflicts() {
+ if (this.conflicts)
+ return this.conflicts;
+ let empty = [];
+ for (let i = 0; i <= this.terms.length; i++)
+ empty.push(Conflicts.none);
+ return empty;
+ }
+}
+Parts.none = new Parts(none, null);
+function p(...terms) { return new Parts(terms, null); }
+class BuiltRule {
+ constructor(id, args, term) {
+ this.id = id;
+ this.args = args;
+ this.term = term;
+ }
+ matches(expr) {
+ return this.id == expr.id.name && exprsEq(expr.args, this.args);
+ }
+ matchesRepeat(expr) {
+ return this.id == "+" && exprEq(expr.expr, this.args[0]);
+ }
+}
+class Builder {
+ constructor(text, options) {
+ this.options = options;
+ this.terms = new TermSet;
+ this.specialized = Object.create(null);
+ this.tokenOrigins = Object.create(null);
+ this.rules = [];
+ this.built = [];
+ this.ruleNames = Object.create(null);
+ this.namespaces = Object.create(null);
+ this.namedTerms = Object.create(null);
+ this.termTable = Object.create(null);
+ this.knownProps = Object.create(null);
+ this.dynamicRulePrecedences = [];
+ this.definedGroups = [];
+ this.astRules = [];
+ this.currentSkip = [];
+ time("Parse", () => {
+ this.input = new Input(text, options.fileName);
+ this.ast = this.input.parse();
+ });
+ let NP = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp;
+ for (let prop in NP) {
+ if (NP[prop] instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp && !NP[prop].perNode)
+ this.knownProps[prop] = { prop: NP[prop], source: { name: prop, from: null } };
+ }
+ for (let prop of this.ast.externalProps) {
+ this.knownProps[prop.id.name] = {
+ prop: this.options.externalProp ? this.options.externalProp(prop.id.name) : new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp(),
+ source: { name: prop.externalID.name, from: prop.source }
+ };
+ }
+ this.dialects = this.ast.dialects.map(d => d.name);
+ this.tokens = new MainTokenSet(this, this.ast.tokens);
+ this.localTokens = this.ast.localTokens.map(g => new LocalTokenSet(this, g));
+ this.externalTokens = this.ast.externalTokens.map(ext => new ExternalTokenSet(this, ext));
+ this.externalSpecializers = this.ast.externalSpecializers.map(decl => new ExternalSpecializer(this, decl));
+ time("Build rules", () => {
+ let noSkip = this.newName("%noskip", true);
+ this.defineRule(noSkip, []);
+ let mainSkip = this.ast.mainSkip ? this.newName("%mainskip", true) : noSkip;
+ let scopedSkip = [], topRules = [];
+ for (let rule of this.ast.rules)
+ this.astRules.push({ skip: mainSkip, rule });
+ for (let rule of this.ast.topRules)
+ topRules.push({ skip: mainSkip, rule });
+ for (let scoped of this.ast.scopedSkip) {
+ let skip = noSkip, found = this.ast.scopedSkip.findIndex((sc, i) => i < scopedSkip.length && exprEq(sc.expr, scoped.expr));
+ if (found > -1)
+ skip = scopedSkip[found];
+ else if (this.ast.mainSkip && exprEq(scoped.expr, this.ast.mainSkip))
+ skip = mainSkip;
+ else if (!isEmpty(scoped.expr))
+ skip = this.newName("%skip", true);
+ scopedSkip.push(skip);
+ for (let rule of scoped.rules)
+ this.astRules.push({ skip, rule });
+ for (let rule of scoped.topRules)
+ topRules.push({ skip, rule });
+ }
+ for (let { rule } of this.astRules) {
+ this.unique(rule.id);
+ }
+ this.currentSkip.push(noSkip);
+ this.skipRules = mainSkip == noSkip ? [mainSkip] : [noSkip, mainSkip];
+ if (mainSkip != noSkip)
+ this.defineRule(mainSkip, this.normalizeExpr(this.ast.mainSkip));
+ for (let i = 0; i < this.ast.scopedSkip.length; i++) {
+ let skip = scopedSkip[i];
+ if (!this.skipRules.includes(skip)) {
+ this.skipRules.push(skip);
+ if (skip != noSkip)
+ this.defineRule(skip, this.normalizeExpr(this.ast.scopedSkip[i].expr));
+ }
+ }
+ this.currentSkip.pop();
+ for (let { rule, skip } of topRules.sort((a, b) => a.rule.start - b.rule.start)) {
+ this.unique(rule.id);
+ this.used(rule.id.name);
+ this.currentSkip.push(skip);
+ let { name, props } = this.nodeInfo(rule.props, "a", rule.id.name, none, none, rule.expr);
+ let term = this.terms.makeTop(name, props);
+ this.namedTerms[name] = term;
+ this.defineRule(term, this.normalizeExpr(rule.expr));
+ this.currentSkip.pop();
+ }
+ for (let ext of this.externalSpecializers)
+ ext.finish();
+ for (let { skip, rule } of this.astRules) {
+ if (this.ruleNames[rule.id.name] && isExported(rule) && !rule.params.length) {
+ this.buildRule(rule, [], skip, false);
+ if (rule.expr instanceof SequenceExpression && rule.expr.exprs.length == 0)
+ this.used(rule.id.name);
+ }
+ }
+ });
+ for (let name in this.ruleNames) {
+ let value = this.ruleNames[name];
+ if (value)
+ this.warn(`Unused rule '${value.name}'`, value.start);
+ }
+ this.tokens.takePrecedences();
+ this.tokens.takeConflicts();
+ for (let lt of this.localTokens)
+ lt.takePrecedences();
+ for (let { name, group, rule } of this.definedGroups)
+ this.defineGroup(name, group, rule);
+ this.checkGroups();
+ }
+ unique(id) {
+ if (id.name in this.ruleNames)
+ this.raise(`Duplicate definition of rule '${id.name}'`, id.start);
+ this.ruleNames[id.name] = id;
+ }
+ used(name) {
+ this.ruleNames[name] = null;
+ }
+ newName(base, nodeName = null, props = {}) {
+ for (let i = nodeName ? 0 : 1;; i++) {
+ let name = i ? `${base}-${i}` : base;
+ if (!this.terms.names[name])
+ return this.terms.makeNonTerminal(name, nodeName === true ? null : nodeName, props);
+ }
+ }
+ prepareParser() {
+ let rules = time("Simplify rules", () => simplifyRules(this.rules, [
+ ...this.skipRules,
+ ...this.terms.tops
+ ]));
+ let { nodeTypes, names: termNames, minRepeatTerm, maxTerm } = this.terms.finish(rules);
+ for (let prop in this.namedTerms)
+ this.termTable[prop] = this.namedTerms[prop].id;
+ if (/\bgrammar\b/.test(verbose))
+ console.log(rules.join("\n"));
+ let startTerms = this.terms.tops.slice();
+ let first = computeFirstSets(this.terms);
+ let skipInfo = this.skipRules.map((name, id) => {
+ let skip = [], startTokens = [], rules = [];
+ for (let rule of name.rules) {
+ if (!rule.parts.length)
+ continue;
+ let start = rule.parts[0];
+ for (let t of start.terminal ? [start] : first[start.name] || [])
+ if (t && !startTokens.includes(t))
+ startTokens.push(t);
+ if (start.terminal && rule.parts.length == 1 && !rules.some(r => r != rule && r.parts[0] == start))
+ skip.push(start);
+ else
+ rules.push(rule);
+ }
+ name.rules = rules;
+ if (rules.length)
+ startTerms.push(name);
+ return { skip, rule: rules.length ? name : null, startTokens, id };
+ });
+ let fullTable = time("Build full automaton", () => buildFullAutomaton(this.terms, startTerms, first));
+ let localTokens = this.localTokens
+ .map((grp, i) => grp.buildLocalGroup(fullTable, skipInfo, i));
+ let { tokenGroups, tokenPrec, tokenData } = time("Build token groups", () => this.tokens.buildTokenGroups(fullTable, skipInfo, localTokens.length));
+ let table = time("Finish automaton", () => finishAutomaton(fullTable));
+ let skipState = findSkipStates(table, this.terms.tops);
+ if (/\blr\b/.test(verbose))
+ console.log(table.join("\n"));
+ let specialized = [];
+ for (let ext of this.externalSpecializers)
+ specialized.push(ext);
+ for (let name in this.specialized)
+ specialized.push({ token: this.terms.names[name], table: buildSpecializeTable(this.specialized[name]) });
+ let tokStart = (tokenizer) => {
+ if (tokenizer instanceof ExternalTokenSet)
+ return tokenizer.ast.start;
+ return this.tokens.ast ? this.tokens.ast.start : -1;
+ };
+ let tokenizers = tokenGroups
+ .concat(this.externalTokens)
+ .sort((a, b) => tokStart(a) - tokStart(b))
+ .concat(localTokens);
+ let data = new DataBuilder;
+ let skipData = skipInfo.map(info => {
+ let actions = [];
+ for (let term of info.skip)
+ actions.push(term.id, 0, 262144 /* Action.StayFlag */ >> 16);
+ if (info.rule) {
+ let state = table.find(s => s.startRule == info.rule);
+ for (let action of state.actions)
+ actions.push(action.term.id, state.id, 131072 /* Action.GotoFlag */ >> 16);
+ }
+ actions.push(65535 /* Seq.End */, 0 /* Seq.Done */);
+ return data.storeArray(actions);
+ });
+ let states = time("Finish states", () => {
+ let states = new Uint32Array(table.length * 6 /* ParseState.Size */);
+ let forceReductions = this.computeForceReductions(table, skipInfo);
+ let finishCx = new FinishStateContext(tokenizers, data, states, skipData, skipInfo, table, this);
+ for (let s of table)
+ finishCx.finish(s, skipState(s.id), forceReductions[s.id]);
+ return states;
+ });
+ let dialects = Object.create(null);
+ for (let i = 0; i < this.dialects.length; i++)
+ dialects[this.dialects[i]] = data.storeArray((this.tokens.byDialect[i] || none).map(t => t.id).concat(65535 /* Seq.End */));
+ let dynamicPrecedences = null;
+ if (this.dynamicRulePrecedences.length) {
+ dynamicPrecedences = Object.create(null);
+ for (let { rule, prec } of this.dynamicRulePrecedences)
+ dynamicPrecedences[rule.id] = prec;
+ }
+ let topRules = Object.create(null);
+ for (let term of this.terms.tops)
+ topRules[term.nodeName] = [table.find(state => state.startRule == term).id, term.id];
+ let precTable = data.storeArray(tokenPrec.concat(65535 /* Seq.End */));
+ let { nodeProps, skippedTypes } = this.gatherNodeProps(nodeTypes);
+ return {
+ states,
+ stateData: data.finish(),
+ goto: computeGotoTable(table),
+ nodeNames: nodeTypes.filter(t => t.id < minRepeatTerm).map(t => t.nodeName).join(" "),
+ nodeProps,
+ skippedTypes,
+ maxTerm,
+ repeatNodeCount: nodeTypes.length - minRepeatTerm,
+ tokenizers,
+ tokenData,
+ topRules,
+ dialects,
+ dynamicPrecedences,
+ specialized,
+ tokenPrec: precTable,
+ termNames
+ };
+ }
+ getParser() {
+ let { states, stateData, goto, nodeNames, nodeProps: rawNodeProps, skippedTypes, maxTerm, repeatNodeCount, tokenizers, tokenData, topRules, dialects, dynamicPrecedences, specialized: rawSpecialized, tokenPrec, termNames } = this.prepareParser();
+ let specialized = rawSpecialized.map(v => {
+ if (v instanceof ExternalSpecializer) {
+ let ext = this.options.externalSpecializer(v.ast.id.name, this.termTable);
+ return {
+ term: v.term.id,
+ get: (value, stack) => (ext(value, stack) << 1) |
+ (v.ast.type == "extend" ? 1 /* Specialize.Extend */ : 0 /* Specialize.Specialize */),
+ external: ext,
+ extend: v.ast.type == "extend"
+ };
+ }
+ else {
+ return { term: v.token.id, get: (value) => v.table[value] || -1 };
+ }
+ });
+ return _lezer_lr__WEBPACK_IMPORTED_MODULE_1__/* .LRParser */ .WQ.deserialize({
+ version: 14 /* File.Version */,
+ states,
+ stateData,
+ goto,
+ nodeNames,
+ maxTerm,
+ repeatNodeCount,
+ nodeProps: rawNodeProps.map(({ prop, terms }) => [this.knownProps[prop].prop, ...terms]),
+ propSources: !this.options.externalPropSource ? undefined
+ : this.ast.externalPropSources.map(s => this.options.externalPropSource(s.id.name)),
+ skippedNodes: skippedTypes,
+ tokenData,
+ tokenizers: tokenizers.map(tok => tok.create()),
+ context: !this.ast.context ? undefined
+ : typeof this.options.contextTracker == "function" ? this.options.contextTracker(this.termTable)
+ : this.options.contextTracker,
+ topRules,
+ dialects,
+ dynamicPrecedences,
+ specialized,
+ tokenPrec,
+ termNames
+ });
+ }
+ getParserFile() {
+ let { states, stateData, goto, nodeNames, nodeProps: rawNodeProps, skippedTypes, maxTerm, repeatNodeCount, tokenizers: rawTokenizers, tokenData, topRules, dialects: rawDialects, dynamicPrecedences, specialized: rawSpecialized, tokenPrec, termNames } = this.prepareParser();
+ let mod = this.options.moduleStyle || "es";
+ let gen = "// This file was generated by lezer-generator. You probably shouldn't edit it.\n", head = gen;
+ let imports = {}, imported = Object.create(null);
+ let defined = Object.create(null);
+ for (let word of KEYWORDS)
+ defined[word] = true;
+ let exportName = this.options.exportName || "parser";
+ defined[exportName] = true;
+ let getName = (prefix) => {
+ for (let i = 0;; i++) {
+ let id = prefix + (i ? "_" + i : "");
+ if (!defined[id])
+ return id;
+ }
+ };
+ let importName = (name, source, prefix = name) => {
+ let spec = name + " from " + source;
+ if (imported[spec])
+ return imported[spec];
+ let src = JSON.stringify(source), varName = name;
+ if (name in defined) {
+ varName = getName(prefix);
+ name += `${mod == "cjs" ? ":" : " as"} ${varName}`;
+ }
+ defined[varName] = true;
+ (imports[src] || (imports[src] = [])).push(name);
+ return imported[spec] = varName;
+ };
+ let lrParser = importName("LRParser", "@lezer/lr");
+ let tokenizers = rawTokenizers.map(tok => tok.createSource(importName));
+ let context = this.ast.context ? importName(this.ast.context.id.name, this.ast.context.source) : null;
+ let nodeProps = rawNodeProps.map(({ prop, terms }) => {
+ let { source } = this.knownProps[prop];
+ let propID = source.from ? importName(source.name, source.from) : JSON.stringify(source.name);
+ return `[${propID}, ${terms.map(serializePropValue).join(",")}]`;
+ });
+ function specializationTableString(table) {
+ return "{__proto__:null," + Object.keys(table).map(key => `${/^(\d+|[a-zA-Z_]\w*)$/.test(key) ? key : JSON.stringify(key)}:${table[key]}`)
+ .join(", ") + "}";
+ }
+ let specHead = "";
+ let specialized = rawSpecialized.map(v => {
+ if (v instanceof ExternalSpecializer) {
+ let name = importName(v.ast.id.name, v.ast.source);
+ let ts = this.options.typeScript ? ": any" : "";
+ return `{term: ${v.term.id}, get: (value${ts}, stack${ts}) => (${name}(value, stack) << 1)${v.ast.type == "extend" ? ` | ${1 /* Specialize.Extend */}` : ''}, external: ${name}${v.ast.type == "extend" ? ', extend: true' : ''}}`;
+ }
+ else {
+ let tableName = getName("spec_" + v.token.name.replace(/\W/g, ""));
+ defined[tableName] = true;
+ specHead += `const ${tableName} = ${specializationTableString(v.table)}\n`;
+ let ts = this.options.typeScript ? `: keyof typeof ${tableName}` : "";
+ return `{term: ${v.token.id}, get: (value${ts}) => ${tableName}[value] || -1}`;
+ }
+ });
+ let propSources = this.ast.externalPropSources.map(s => importName(s.id.name, s.source));
+ for (let source in imports) {
+ if (mod == "cjs")
+ head += `const {${imports[source].join(", ")}} = require(${source})\n`;
+ else
+ head += `import {${imports[source].join(", ")}} from ${source}\n`;
+ }
+ head += specHead;
+ function serializePropValue(value) {
+ return typeof value != "string" || /^(true|false|\d+(\.\d+)?|\.\d+)$/.test(value) ? value : JSON.stringify(value);
+ }
+ let dialects = Object.keys(rawDialects).map(d => `${d}: ${rawDialects[d]}`);
+ let parserStr = `${lrParser}.deserialize({
+ version: ${14 /* File.Version */},
+ states: ${encodeArray(states, 0xffffffff)},
+ stateData: ${encodeArray(stateData)},
+ goto: ${encodeArray(goto)},
+ nodeNames: ${JSON.stringify(nodeNames)},
+ maxTerm: ${maxTerm}${context ? `,
+ context: ${context}` : ""}${nodeProps.length ? `,
+ nodeProps: [
+ ${nodeProps.join(",\n ")}
+ ]` : ""}${propSources.length ? `,
+ propSources: [${propSources.join()}]` : ""}${skippedTypes.length ? `,
+ skippedNodes: ${JSON.stringify(skippedTypes)}` : ""},
+ repeatNodeCount: ${repeatNodeCount},
+ tokenData: ${encodeArray(tokenData)},
+ tokenizers: [${tokenizers.join(", ")}],
+ topRules: ${JSON.stringify(topRules)}${dialects.length ? `,
+ dialects: {${dialects.join(", ")}}` : ""}${dynamicPrecedences ? `,
+ dynamicPrecedences: ${JSON.stringify(dynamicPrecedences)}` : ""}${specialized.length ? `,
+ specialized: [${specialized.join(",")}]` : ""},
+ tokenPrec: ${tokenPrec}${this.options.includeNames ? `,
+ termNames: ${JSON.stringify(termNames)}` : ''}
+})`;
+ let terms = [];
+ for (let name in this.termTable) {
+ let id = name;
+ if (KEYWORDS.includes(id))
+ for (let i = 1;; i++) {
+ id = "_".repeat(i) + name;
+ if (!(id in this.termTable))
+ break;
+ }
+ else if (!/^[\w$]+$/.test(name)) {
+ continue;
+ }
+ terms.push(`${id}${mod == "cjs" ? ":" : " ="} ${this.termTable[name]}`);
+ }
+ for (let id = 0; id < this.dialects.length; id++)
+ terms.push(`Dialect_${this.dialects[id]}${mod == "cjs" ? ":" : " ="} ${id}`);
+ return {
+ parser: head + (mod == "cjs" ? `exports.${exportName} = ${parserStr}\n` : `export const ${exportName} = ${parserStr}\n`),
+ terms: mod == "cjs" ? `${gen}module.exports = {\n ${terms.join(",\n ")}\n}`
+ : `${gen}export const\n ${terms.join(",\n ")}\n`
+ };
+ }
+ gatherNonSkippedNodes() {
+ let seen = Object.create(null);
+ let work = [];
+ let add = (term) => {
+ if (!seen[term.id]) {
+ seen[term.id] = true;
+ work.push(term);
+ }
+ };
+ this.terms.tops.forEach(add);
+ for (let i = 0; i < work.length; i++) {
+ for (let rule of work[i].rules)
+ for (let part of rule.parts)
+ add(part);
+ }
+ return seen;
+ }
+ gatherNodeProps(nodeTypes) {
+ let notSkipped = this.gatherNonSkippedNodes(), skippedTypes = [];
+ let nodeProps = [];
+ for (let type of nodeTypes) {
+ if (!notSkipped[type.id] && !type.error)
+ skippedTypes.push(type.id);
+ for (let prop in type.props) {
+ let known = this.knownProps[prop];
+ if (!known)
+ throw new GenError("No known prop type for " + prop);
+ if (known.source.from == null && (known.source.name == "repeated" || known.source.name == "error"))
+ continue;
+ let rec = nodeProps.find(r => r.prop == prop);
+ if (!rec)
+ nodeProps.push(rec = { prop, values: {} });
+ (rec.values[type.props[prop]] || (rec.values[type.props[prop]] = [])).push(type.id);
+ }
+ }
+ return {
+ nodeProps: nodeProps.map(({ prop, values }) => {
+ let terms = [];
+ for (let val in values) {
+ let ids = values[val];
+ if (ids.length == 1) {
+ terms.push(ids[0], val);
+ }
+ else {
+ terms.push(-ids.length);
+ for (let id of ids)
+ terms.push(id);
+ terms.push(val);
+ }
+ }
+ return { prop, terms };
+ }),
+ skippedTypes
+ };
+ }
+ makeTerminal(name, tag, props) {
+ return this.terms.makeTerminal(this.terms.uniqueName(name), tag, props);
+ }
+ computeForceReductions(states, skipInfo) {
+ // This finds a forced reduction for every state, trying to guard
+ // against cyclic forced reductions, where a given parse stack can
+ // endlessly continue running forced reductions without making any
+ // progress.
+ //
+ // This occurs with length-1 reductions. We never generate
+ // length-0 reductions, and length-2+ reductions always shrink the
+ // stack, so they are guaranteed to make progress.
+ //
+ // If there are states S1 and S2 whose forced reductions reduce
+ // terms T1 and T2 respectively, both with a length of 1, _and_
+ // there is a state S3, which has goto entries T1 -> S2, T2 -> S1,
+ // you can get cyclic reductions. Of course, the cycle may also
+ // contain more than two steps.
+ let reductions = [];
+ let candidates = [];
+ // A map from terms to states that they are mapped to in goto
+ // entries.
+ let gotoEdges = Object.create(null);
+ for (let state of states) {
+ reductions.push(0);
+ for (let edge of state.goto) {
+ let array = gotoEdges[edge.term.id] || (gotoEdges[edge.term.id] = []);
+ let found = array.find(o => o.target == edge.target.id);
+ if (found)
+ found.parents.push(state.id);
+ else
+ array.push({ parents: [state.id], target: edge.target.id });
+ }
+ candidates[state.id] = state.set.filter(pos => pos.pos > 0 && !pos.rule.name.top)
+ .sort((a, b) => b.pos - a.pos || a.rule.parts.length - b.rule.parts.length);
+ }
+ // Mapping from state ids to terms that that state has a length-1
+ // forced reduction for.
+ let length1Reductions = Object.create(null);
+ function createsCycle(term, startState, parents = null) {
+ let edges = gotoEdges[term];
+ if (!edges)
+ return false;
+ return edges.some(val => {
+ let parentIntersection = parents ? parents.filter(id => val.parents.includes(id)) : val.parents;
+ if (parentIntersection.length == 0)
+ return false;
+ if (val.target == startState)
+ return true;
+ let found = length1Reductions[val.target];
+ return found != null && createsCycle(found, startState, parentIntersection);
+ });
+ }
+ for (let state of states) {
+ if (state.defaultReduce && state.defaultReduce.parts.length > 0) {
+ reductions[state.id] = reduceAction(state.defaultReduce, skipInfo);
+ if (state.defaultReduce.parts.length == 1)
+ length1Reductions[state.id] = state.defaultReduce.name.id;
+ }
+ }
+ // To avoid painting states that only have one potential forced
+ // reduction into a corner, reduction assignment is done by
+ // candidate size, starting with the states with fewer candidates.
+ for (let setSize = 1;; setSize++) {
+ let done = true;
+ for (let state of states) {
+ if (state.defaultReduce)
+ continue;
+ let set = candidates[state.id];
+ if (set.length != setSize) {
+ if (set.length > setSize)
+ done = false;
+ continue;
+ }
+ for (let pos of set) {
+ if (pos.pos != 1 || !createsCycle(pos.rule.name.id, state.id)) {
+ reductions[state.id] = reduceAction(pos.rule, skipInfo, pos.pos);
+ if (pos.pos == 1)
+ length1Reductions[state.id] = pos.rule.name.id;
+ break;
+ }
+ }
+ }
+ if (done)
+ break;
+ }
+ return reductions;
+ }
+ substituteArgs(expr, args, params) {
+ if (args.length == 0)
+ return expr;
+ return expr.walk(expr => {
+ let found;
+ if (expr instanceof NameExpression &&
+ (found = params.findIndex(p => p.name == expr.id.name)) > -1) {
+ let arg = args[found];
+ if (expr.args.length) {
+ if (arg instanceof NameExpression && !arg.args.length)
+ return new NameExpression(expr.start, arg.id, expr.args);
+ this.raise(`Passing arguments to a parameter that already has arguments`, expr.start);
+ }
+ return arg;
+ }
+ else if (expr instanceof InlineRuleExpression) {
+ let r = expr.rule, props = this.substituteArgsInProps(r.props, args, params);
+ return props == r.props ? expr :
+ new InlineRuleExpression(expr.start, new RuleDeclaration(r.start, r.id, props, r.params, r.expr));
+ }
+ else if (expr instanceof SpecializeExpression) {
+ let props = this.substituteArgsInProps(expr.props, args, params);
+ return props == expr.props ? expr :
+ new SpecializeExpression(expr.start, expr.type, props, expr.token, expr.content);
+ }
+ return expr;
+ });
+ }
+ substituteArgsInProps(props, args, params) {
+ let substituteInValue = (value) => {
+ let result = value;
+ for (let i = 0; i < value.length; i++) {
+ let part = value[i];
+ if (!part.name)
+ continue;
+ let found = params.findIndex(p => p.name == part.name);
+ if (found < 0)
+ continue;
+ if (result == value)
+ result = value.slice();
+ let expr = args[found];
+ if (expr instanceof NameExpression && !expr.args.length)
+ result[i] = new PropPart(part.start, expr.id.name, null);
+ else if (expr instanceof LiteralExpression)
+ result[i] = new PropPart(part.start, expr.value, null);
+ else
+ this.raise(`Trying to interpolate expression '${expr}' into a prop`, part.start);
+ }
+ return result;
+ };
+ let result = props;
+ for (let i = 0; i < props.length; i++) {
+ let prop = props[i], value = substituteInValue(prop.value);
+ if (value != prop.value) {
+ if (result == props)
+ result = props.slice();
+ result[i] = new Prop(prop.start, prop.at, prop.name, value);
+ }
+ }
+ return result;
+ }
+ conflictsFor(markers) {
+ let here = Conflicts.none, atEnd = Conflicts.none;
+ for (let marker of markers) {
+ if (marker.type == "ambig") {
+ here = here.join(new Conflicts(0, [marker.id.name]));
+ }
+ else {
+ let precs = this.ast.precedences;
+ let index = precs ? precs.items.findIndex(item => item.id.name == marker.id.name) : -1;
+ if (index < 0)
+ this.raise(`Reference to unknown precedence: '${marker.id.name}'`, marker.id.start);
+ let prec = precs.items[index], value = precs.items.length - index;
+ if (prec.type == "cut") {
+ here = here.join(new Conflicts(0, none, value));
+ }
+ else {
+ here = here.join(new Conflicts(value << 2));
+ atEnd = atEnd.join(new Conflicts((value << 2) + (prec.type == "left" ? 1 : prec.type == "right" ? -1 : 0)));
+ }
+ }
+ }
+ return { here, atEnd };
+ }
+ raise(message, pos = 1) {
+ return this.input.raise(message, pos);
+ }
+ warn(message, pos = -1) {
+ let msg = this.input.message(message, pos);
+ if (this.options.warn)
+ this.options.warn(msg);
+ else
+ console.warn(msg);
+ }
+ defineRule(name, choices) {
+ let skip = this.currentSkip[this.currentSkip.length - 1];
+ for (let choice of choices)
+ this.rules.push(new Rule(name, choice.terms, choice.ensureConflicts(), skip));
+ }
+ resolve(expr) {
+ for (let built of this.built)
+ if (built.matches(expr))
+ return [p(built.term)];
+ let found = this.tokens.getToken(expr);
+ if (found)
+ return [p(found)];
+ for (let grp of this.localTokens) {
+ let found = grp.getToken(expr);
+ if (found)
+ return [p(found)];
+ }
+ for (let ext of this.externalTokens) {
+ let found = ext.getToken(expr);
+ if (found)
+ return [p(found)];
+ }
+ for (let ext of this.externalSpecializers) {
+ let found = ext.getToken(expr);
+ if (found)
+ return [p(found)];
+ }
+ let known = this.astRules.find(r => r.rule.id.name == expr.id.name);
+ if (!known)
+ return this.raise(`Reference to undefined rule '${expr.id.name}'`, expr.start);
+ if (known.rule.params.length != expr.args.length)
+ this.raise(`Wrong number or arguments for '${expr.id.name}'`, expr.start);
+ this.used(known.rule.id.name);
+ return [p(this.buildRule(known.rule, expr.args, known.skip))];
+ }
+ // For tree-balancing reasons, repeat expressions X+ have to be
+ // normalized to something like
+ //
+ // R -> X | R R
+ //
+ // Returns the `R` term.
+ normalizeRepeat(expr) {
+ let known = this.built.find(b => b.matchesRepeat(expr));
+ if (known)
+ return p(known.term);
+ let name = expr.expr.prec < expr.prec ? `(${expr.expr})+` : `${expr.expr}+`;
+ let term = this.terms.makeRepeat(this.terms.uniqueName(name));
+ this.built.push(new BuiltRule("+", [expr.expr], term));
+ this.defineRule(term, this.normalizeExpr(expr.expr).concat(p(term, term)));
+ return p(term);
+ }
+ normalizeSequence(expr) {
+ let result = expr.exprs.map(e => this.normalizeExpr(e));
+ let builder = this;
+ function complete(start, from, endConflicts) {
+ let { here, atEnd } = builder.conflictsFor(expr.markers[from]);
+ if (from == result.length)
+ return [start.withConflicts(start.terms.length, here.join(endConflicts))];
+ let choices = [];
+ for (let choice of result[from]) {
+ for (let full of complete(start.concat(choice).withConflicts(start.terms.length, here), from + 1, endConflicts.join(atEnd)))
+ choices.push(full);
+ }
+ return choices;
+ }
+ return complete(Parts.none, 0, Conflicts.none);
+ }
+ normalizeExpr(expr) {
+ if (expr instanceof RepeatExpression && expr.kind == "?") {
+ return [Parts.none, ...this.normalizeExpr(expr.expr)];
+ }
+ else if (expr instanceof RepeatExpression) {
+ let repeated = this.normalizeRepeat(expr);
+ return expr.kind == "+" ? [repeated] : [Parts.none, repeated];
+ }
+ else if (expr instanceof ChoiceExpression) {
+ return expr.exprs.reduce((o, e) => o.concat(this.normalizeExpr(e)), []);
+ }
+ else if (expr instanceof SequenceExpression) {
+ return this.normalizeSequence(expr);
+ }
+ else if (expr instanceof LiteralExpression) {
+ return [p(this.tokens.getLiteral(expr))];
+ }
+ else if (expr instanceof NameExpression) {
+ return this.resolve(expr);
+ }
+ else if (expr instanceof SpecializeExpression) {
+ return [p(this.resolveSpecialization(expr))];
+ }
+ else if (expr instanceof InlineRuleExpression) {
+ return [p(this.buildRule(expr.rule, none, this.currentSkip[this.currentSkip.length - 1], true))];
+ }
+ else {
+ return this.raise(`This type of expression ('${expr}') may not occur in non-token rules`, expr.start);
+ }
+ }
+ buildRule(rule, args, skip, inline = false) {
+ let expr = this.substituteArgs(rule.expr, args, rule.params);
+ let { name: nodeName, props, dynamicPrec, inline: explicitInline, group, exported } = this.nodeInfo(rule.props || none, inline ? "pg" : "pgi", rule.id.name, args, rule.params, rule.expr);
+ if (exported && rule.params.length)
+ this.warn(`Can't export parameterized rules`, rule.start);
+ if (exported && inline)
+ this.warn(`Can't export inline rule`, rule.start);
+ let name = this.newName(rule.id.name + (args.length ? "<" + args.join(",") + ">" : ""), nodeName || true, props);
+ if (explicitInline)
+ name.inline = true;
+ if (dynamicPrec)
+ this.registerDynamicPrec(name, dynamicPrec);
+ if ((name.nodeType || exported) && rule.params.length == 0) {
+ if (!nodeName)
+ name.preserve = true;
+ if (!inline)
+ this.namedTerms[exported || rule.id.name] = name;
+ }
+ if (!inline)
+ this.built.push(new BuiltRule(rule.id.name, args, name));
+ this.currentSkip.push(skip);
+ let parts = this.normalizeExpr(expr);
+ if (parts.length > 100 * (expr instanceof ChoiceExpression ? expr.exprs.length : 1))
+ this.warn(`Rule ${rule.id.name} is generating a lot (${parts.length}) of choices.\n Consider splitting it up or reducing the amount of ? or | operator uses.`, rule.start);
+ if (/\brulesize\b/.test(verbose) && parts.length > 10)
+ console.log(`Rule ${rule.id.name}: ${parts.length} variants`);
+ this.defineRule(name, parts);
+ this.currentSkip.pop();
+ if (group)
+ this.definedGroups.push({ name, group, rule });
+ return name;
+ }
+ nodeInfo(props,
+ // p for dynamic precedence, d for dialect, i for inline, g for group, a for disabling the ignore test for default name
+ allow, defaultName = null, args = none, params = none, expr, defaultProps) {
+ let result = {};
+ let name = defaultName && (allow.indexOf("a") > -1 || !ignored(defaultName)) && !/ /.test(defaultName) ? defaultName : null;
+ let dialect = null, dynamicPrec = 0, inline = false, group = null, exported = null;
+ for (let prop of props) {
+ if (!prop.at) {
+ if (!this.knownProps[prop.name]) {
+ let builtin = ["name", "dialect", "dynamicPrecedence", "export", "isGroup"].includes(prop.name)
+ ? ` (did you mean '@${prop.name}'?)` : "";
+ this.raise(`Unknown prop name '${prop.name}'${builtin}`, prop.start);
+ }
+ result[prop.name] = this.finishProp(prop, args, params);
+ }
+ else if (prop.name == "name") {
+ name = this.finishProp(prop, args, params);
+ if (/ /.test(name))
+ this.raise(`Node names cannot have spaces ('${name}')`, prop.start);
+ }
+ else if (prop.name == "dialect") {
+ if (allow.indexOf("d") < 0)
+ this.raise("Can't specify a dialect on non-token rules", props[0].start);
+ if (prop.value.length != 1 && !prop.value[0].value)
+ this.raise("The '@dialect' rule prop must hold a plain string value");
+ let dialectID = this.dialects.indexOf(prop.value[0].value);
+ if (dialectID < 0)
+ this.raise(`Unknown dialect '${prop.value[0].value}'`, prop.value[0].start);
+ dialect = dialectID;
+ }
+ else if (prop.name == "dynamicPrecedence") {
+ if (allow.indexOf("p") < 0)
+ this.raise("Dynamic precedence can only be specified on nonterminals");
+ if (prop.value.length != 1 || !/^-?(?:10|\d)$/.test(prop.value[0].value))
+ this.raise("The '@dynamicPrecedence' rule prop must hold an integer between -10 and 10");
+ dynamicPrec = +prop.value[0].value;
+ }
+ else if (prop.name == "inline") {
+ if (prop.value.length)
+ this.raise("'@inline' doesn't take a value", prop.value[0].start);
+ if (allow.indexOf("i") < 0)
+ this.raise("Inline can only be specified on nonterminals");
+ inline = true;
+ }
+ else if (prop.name == "isGroup") {
+ if (allow.indexOf("g") < 0)
+ this.raise("'@isGroup' can only be specified on nonterminals");
+ group = prop.value.length ? this.finishProp(prop, args, params) : defaultName;
+ }
+ else if (prop.name == "export") {
+ if (prop.value.length)
+ exported = this.finishProp(prop, args, params);
+ else
+ exported = defaultName;
+ }
+ else {
+ this.raise(`Unknown built-in prop name '@${prop.name}'`, prop.start);
+ }
+ }
+ if (expr && this.ast.autoDelim && (name || hasProps(result))) {
+ let delim = this.findDelimiters(expr);
+ if (delim) {
+ addToProp(delim[0], "closedBy", delim[1].nodeName);
+ addToProp(delim[1], "openedBy", delim[0].nodeName);
+ }
+ }
+ if (defaultProps && hasProps(defaultProps)) {
+ for (let prop in defaultProps)
+ if (!(prop in result))
+ result[prop] = defaultProps[prop];
+ }
+ if (hasProps(result) && !name)
+ this.raise(`Node has properties but no name`, props.length ? props[0].start : expr.start);
+ if (inline && (hasProps(result) || dialect || dynamicPrec))
+ this.raise(`Inline nodes can't have props, dynamic precedence, or a dialect`, props[0].start);
+ if (inline && name)
+ name = null;
+ return { name, props: result, dialect, dynamicPrec, inline, group, exported };
+ }
+ finishProp(prop, args, params) {
+ return prop.value.map(part => {
+ if (part.value)
+ return part.value;
+ let pos = params.findIndex(param => param.name == part.name);
+ if (pos < 0)
+ this.raise(`Property refers to '${part.name}', but no parameter by that name is in scope`, part.start);
+ let expr = args[pos];
+ if (expr instanceof NameExpression && !expr.args.length)
+ return expr.id.name;
+ if (expr instanceof LiteralExpression)
+ return expr.value;
+ return this.raise(`Expression '${expr}' can not be used as part of a property value`, part.start);
+ }).join("");
+ }
+ resolveSpecialization(expr) {
+ let type = expr.type;
+ let { name, props, dialect, exported } = this.nodeInfo(expr.props, "d");
+ let terminal = this.normalizeExpr(expr.token);
+ if (terminal.length != 1 || terminal[0].terms.length != 1 || !terminal[0].terms[0].terminal)
+ this.raise(`The first argument to '${type}' must resolve to a token`, expr.token.start);
+ let values;
+ if (expr.content instanceof LiteralExpression)
+ values = [expr.content.value];
+ else if ((expr.content instanceof ChoiceExpression) && expr.content.exprs.every(e => e instanceof LiteralExpression))
+ values = expr.content.exprs.map(expr => expr.value);
+ else
+ return this.raise(`The second argument to '${expr.type}' must be a literal or choice of literals`, expr.content.start);
+ let term = terminal[0].terms[0], token = null;
+ let table = this.specialized[term.name] || (this.specialized[term.name] = []);
+ for (let value of values) {
+ let known = table.find(sp => sp.value == value);
+ if (known == null) {
+ if (!token) {
+ token = this.makeTerminal(term.name + "/" + JSON.stringify(value), name, props);
+ if (dialect != null)
+ (this.tokens.byDialect[dialect] || (this.tokens.byDialect[dialect] = [])).push(token);
+ }
+ table.push({ value, term: token, type, dialect, name });
+ this.tokenOrigins[token.name] = { spec: term };
+ if (name || exported) {
+ if (!name)
+ token.preserve = true;
+ this.namedTerms[exported || name] = token;
+ }
+ }
+ else {
+ if (known.type != type)
+ this.raise(`Conflicting specialization types for ${JSON.stringify(value)} of ${term.name} (${type} vs ${known.type})`, expr.start);
+ if (known.dialect != dialect)
+ this.raise(`Conflicting dialects for specialization ${JSON.stringify(value)} of ${term.name}`, expr.start);
+ if (known.name != name)
+ this.raise(`Conflicting names for specialization ${JSON.stringify(value)} of ${term.name}`, expr.start);
+ if (token && known.term != token)
+ this.raise(`Conflicting specialization tokens for ${JSON.stringify(value)} of ${term.name}`, expr.start);
+ token = known.term;
+ }
+ }
+ return token;
+ }
+ findDelimiters(expr) {
+ if (!(expr instanceof SequenceExpression) || expr.exprs.length < 2)
+ return null;
+ let findToken = (expr) => {
+ if (expr instanceof LiteralExpression)
+ return { term: this.tokens.getLiteral(expr), str: expr.value };
+ if (expr instanceof NameExpression && expr.args.length == 0) {
+ let rule = this.ast.rules.find(r => r.id.name == expr.id.name);
+ if (rule)
+ return findToken(rule.expr);
+ let token = this.tokens.rules.find(r => r.id.name == expr.id.name);
+ if (token && token.expr instanceof LiteralExpression)
+ return { term: this.tokens.getToken(expr), str: token.expr.value };
+ }
+ return null;
+ };
+ let lastToken = findToken(expr.exprs[expr.exprs.length - 1]);
+ if (!lastToken || !lastToken.term.nodeName)
+ return null;
+ const brackets = ["()", "[]", "{}", "<>"];
+ let bracket = brackets.find(b => lastToken.str.indexOf(b[1]) > -1 && lastToken.str.indexOf(b[0]) < 0);
+ if (!bracket)
+ return null;
+ let firstToken = findToken(expr.exprs[0]);
+ if (!firstToken || !firstToken.term.nodeName ||
+ firstToken.str.indexOf(bracket[0]) < 0 || firstToken.str.indexOf(bracket[1]) > -1)
+ return null;
+ return [firstToken.term, lastToken.term];
+ }
+ registerDynamicPrec(term, prec) {
+ this.dynamicRulePrecedences.push({ rule: term, prec });
+ term.preserve = true;
+ }
+ defineGroup(rule, group, ast) {
+ var _a;
+ let recur = [];
+ let getNamed = (rule) => {
+ if (rule.nodeName)
+ return [rule];
+ if (recur.includes(rule))
+ this.raise(`Rule '${ast.id.name}' cannot define a group because it contains a non-named recursive rule ('${rule.name}')`, ast.start);
+ let result = [];
+ recur.push(rule);
+ for (let r of this.rules)
+ if (r.name == rule) {
+ let names = r.parts.map(getNamed).filter(x => x.length);
+ if (names.length > 1)
+ this.raise(`Rule '${ast.id.name}' cannot define a group because some choices produce multiple named nodes`, ast.start);
+ if (names.length == 1)
+ for (let n of names[0])
+ result.push(n);
+ }
+ recur.pop();
+ return result;
+ };
+ for (let name of getNamed(rule))
+ name.props["group"] = (((_a = name.props["group"]) === null || _a === void 0 ? void 0 : _a.split(" ")) || []).concat(group).sort().join(" ");
+ }
+ checkGroups() {
+ let groups = Object.create(null), nodeNames = Object.create(null);
+ for (let term of this.terms.terms)
+ if (term.nodeName) {
+ nodeNames[term.nodeName] = true;
+ if (term.props["group"])
+ for (let group of term.props["group"].split(" ")) {
+ (groups[group] || (groups[group] = [])).push(term);
+ }
+ }
+ let names = Object.keys(groups);
+ for (let i = 0; i < names.length; i++) {
+ let name = names[i], terms = groups[name];
+ if (nodeNames[name])
+ this.warn(`Group name '${name}' conflicts with a node of the same name`);
+ for (let j = i + 1; j < names.length; j++) {
+ let other = groups[names[j]];
+ if (terms.some(t => other.includes(t)) &&
+ (terms.length > other.length ? other.some(t => !terms.includes(t)) : terms.some(t => !other.includes(t))))
+ this.warn(`Groups '${name}' and '${names[j]}' overlap without one being a superset of the other`);
+ }
+ }
+ }
+}
+const MinSharedActions = 5;
+class FinishStateContext {
+ constructor(tokenizers, data, stateArray, skipData, skipInfo, states, builder) {
+ this.tokenizers = tokenizers;
+ this.data = data;
+ this.stateArray = stateArray;
+ this.skipData = skipData;
+ this.skipInfo = skipInfo;
+ this.states = states;
+ this.builder = builder;
+ this.sharedActions = [];
+ }
+ findSharedActions(state) {
+ if (state.actions.length < MinSharedActions)
+ return null;
+ let found = null;
+ for (let shared of this.sharedActions) {
+ if ((!found || shared.actions.length > found.actions.length) &&
+ shared.actions.every(a => state.actions.some(b => b.eq(a))))
+ found = shared;
+ }
+ if (found)
+ return found;
+ let max = null, scratch = [];
+ for (let i = state.id + 1; i < this.states.length; i++) {
+ let other = this.states[i], fill = 0;
+ if (other.defaultReduce || other.actions.length < MinSharedActions)
+ continue;
+ for (let a of state.actions)
+ for (let b of other.actions)
+ if (a.eq(b))
+ scratch[fill++] = a;
+ if (fill >= MinSharedActions && (!max || max.length < fill)) {
+ max = scratch;
+ scratch = [];
+ }
+ }
+ if (!max)
+ return null;
+ let result = { actions: max, addr: this.storeActions(max, -1, null) };
+ this.sharedActions.push(result);
+ return result;
+ }
+ storeActions(actions, skipReduce, shared) {
+ if (skipReduce < 0 && shared && shared.actions.length == actions.length)
+ return shared.addr;
+ let data = [];
+ for (let action of actions) {
+ if (shared && shared.actions.some(a => a.eq(action)))
+ continue;
+ if (action instanceof Shift) {
+ data.push(action.term.id, action.target.id, 0);
+ }
+ else {
+ let code = reduceAction(action.rule, this.skipInfo);
+ if (code != skipReduce)
+ data.push(action.term.id, code & 65535 /* Action.ValueMask */, code >> 16);
+ }
+ }
+ data.push(65535 /* Seq.End */);
+ if (skipReduce > -1)
+ data.push(2 /* Seq.Other */, skipReduce & 65535 /* Action.ValueMask */, skipReduce >> 16);
+ else if (shared)
+ data.push(1 /* Seq.Next */, shared.addr & 0xffff, shared.addr >> 16);
+ else
+ data.push(0 /* Seq.Done */);
+ return this.data.storeArray(data);
+ }
+ finish(state, isSkip, forcedReduce) {
+ let b = this.builder;
+ let skipID = b.skipRules.indexOf(state.skip);
+ let skipTable = this.skipData[skipID], skipTerms = this.skipInfo[skipID].startTokens;
+ let defaultReduce = state.defaultReduce ? reduceAction(state.defaultReduce, this.skipInfo) : 0;
+ let flags = isSkip ? 1 /* StateFlag.Skipped */ : 0;
+ let skipReduce = -1, shared = null;
+ if (defaultReduce == 0) {
+ if (isSkip)
+ for (const action of state.actions)
+ if (action instanceof Reduce && action.term.eof)
+ skipReduce = reduceAction(action.rule, this.skipInfo);
+ if (skipReduce < 0)
+ shared = this.findSharedActions(state);
+ }
+ if (state.set.some(p => p.rule.name.top && p.pos == p.rule.parts.length))
+ flags |= 2 /* StateFlag.Accepting */;
+ let external = [];
+ for (let i = 0; i < state.actions.length + skipTerms.length; i++) {
+ let term = i < state.actions.length ? state.actions[i].term : skipTerms[i - state.actions.length];
+ for (;;) {
+ let orig = b.tokenOrigins[term.name];
+ if (orig && orig.spec) {
+ term = orig.spec;
+ continue;
+ }
+ if (orig && (orig.external instanceof ExternalTokenSet))
+ addToSet(external, orig.external);
+ break;
+ }
+ }
+ let tokenizerMask = 0;
+ for (let i = 0; i < this.tokenizers.length; i++) {
+ let tok = this.tokenizers[i];
+ if (external.includes(tok) || tok.groupID == state.tokenGroup)
+ tokenizerMask |= (1 << i);
+ }
+ let base = state.id * 6 /* ParseState.Size */;
+ this.stateArray[base + 0 /* ParseState.Flags */] = flags;
+ this.stateArray[base + 1 /* ParseState.Actions */] = this.storeActions(defaultReduce ? none : state.actions, skipReduce, shared);
+ this.stateArray[base + 2 /* ParseState.Skip */] = skipTable;
+ this.stateArray[base + 3 /* ParseState.TokenizerMask */] = tokenizerMask;
+ this.stateArray[base + 4 /* ParseState.DefaultReduce */] = defaultReduce;
+ this.stateArray[base + 5 /* ParseState.ForcedReduce */] = forcedReduce;
+ }
+}
+function addToProp(term, prop, value) {
+ let cur = term.props[prop];
+ if (!cur || cur.split(" ").indexOf(value) < 0)
+ term.props[prop] = cur ? cur + " " + value : value;
+}
+function buildSpecializeTable(spec) {
+ let table = Object.create(null);
+ for (let { value, term, type } of spec) {
+ let code = type == "specialize" ? 0 /* Specialize.Specialize */ : 1 /* Specialize.Extend */;
+ table[value] = (term.id << 1) | code;
+ }
+ return table;
+}
+function reduceAction(rule, skipInfo, depth = rule.parts.length) {
+ return rule.name.id | 65536 /* Action.ReduceFlag */ |
+ (rule.isRepeatWrap && depth == rule.parts.length ? 131072 /* Action.RepeatFlag */ : 0) |
+ (skipInfo.some(i => i.rule == rule.name) ? 262144 /* Action.StayFlag */ : 0) |
+ (depth << 19 /* Action.ReduceDepthShift */);
+}
+function findArray(data, value) {
+ search: for (let i = 0;;) {
+ let next = data.indexOf(value[0], i);
+ if (next == -1 || next + value.length > data.length)
+ break;
+ for (let j = 1; j < value.length; j++) {
+ if (value[j] != data[next + j]) {
+ i = next + 1;
+ continue search;
+ }
+ }
+ return next;
+ }
+ return -1;
+}
+function findSkipStates(table, startRules) {
+ let nonSkip = Object.create(null);
+ let work = [];
+ let add = (state) => {
+ if (!nonSkip[state.id]) {
+ nonSkip[state.id] = true;
+ work.push(state);
+ }
+ };
+ for (let state of table)
+ if (state.startRule && startRules.includes(state.startRule))
+ add(state);
+ for (let i = 0; i < work.length; i++) {
+ for (let a of work[i].actions)
+ if (a instanceof Shift)
+ add(a.target);
+ for (let a of work[i].goto)
+ add(a.target);
+ }
+ return (id) => !nonSkip[id];
+}
+class DataBuilder {
+ constructor() {
+ this.data = [];
+ }
+ storeArray(data) {
+ let found = findArray(this.data, data);
+ if (found > -1)
+ return found;
+ let pos = this.data.length;
+ for (let num of data)
+ this.data.push(num);
+ return pos;
+ }
+ finish() {
+ return Uint16Array.from(this.data);
+ }
+}
+// The goto table maps a start state + a term to a new state, and is
+// used to determine the new state when reducing. Because this allows
+// more more efficient representation and access, unlike the action
+// tables, the goto table is organized by term, with groups of start
+// states that map to a given end state enumerated for each term.
+// Since many terms only have a single valid goto target, this makes
+// it cheaper to look those up.
+//
+// (Unfortunately, though the standard LR parsing mechanism never
+// looks up invalid goto states, the incremental parsing mechanism
+// needs accurate goto information for a state/term pair, so we do
+// need to store state ids even for terms that have only one target.)
+//
+// - First comes the amount of terms in the table
+//
+// - Then, for each term, the offset of the term's data
+//
+// - At these offsets, there's a record for each target state
+//
+// - Such a record starts with the amount of start states that go to
+// this target state, shifted one to the left, with the first bit
+// only set if this is the last record for this term.
+//
+// - Then follows the target state id
+//
+// - And then the start state ids
+function computeGotoTable(states) {
+ let goto = {};
+ let maxTerm = 0;
+ for (let state of states) {
+ for (let entry of state.goto) {
+ maxTerm = Math.max(entry.term.id, maxTerm);
+ let set = goto[entry.term.id] || (goto[entry.term.id] = {});
+ (set[entry.target.id] || (set[entry.target.id] = [])).push(state.id);
+ }
+ }
+ let data = new DataBuilder;
+ let index = [];
+ let offset = maxTerm + 2; // Offset of the data, taking index size into account
+ for (let term = 0; term <= maxTerm; term++) {
+ let entries = goto[term];
+ if (!entries) {
+ index.push(1);
+ continue;
+ }
+ let termTable = [];
+ let keys = Object.keys(entries);
+ for (let target of keys) {
+ let list = entries[target];
+ termTable.push((target == keys[keys.length - 1] ? 1 : 0) + (list.length << 1));
+ termTable.push(+target);
+ for (let source of list)
+ termTable.push(source);
+ }
+ index.push(data.storeArray(termTable) + offset);
+ }
+ if (index.some(n => n > 0xffff))
+ throw new GenError("Goto table too large");
+ return Uint16Array.from([maxTerm + 1, ...index, ...data.data]);
+}
+class TokenGroup {
+ constructor(tokens, groupID) {
+ this.tokens = tokens;
+ this.groupID = groupID;
+ }
+ create() { return this.groupID; }
+ createSource() { return String(this.groupID); }
+}
+function addToSet(set, value) {
+ if (!set.includes(value))
+ set.push(value);
+}
+function buildTokenMasks(groups) {
+ let masks = Object.create(null);
+ for (let group of groups) {
+ let groupMask = 1 << group.groupID;
+ for (let term of group.tokens) {
+ masks[term.id] = (masks[term.id] || 0) | groupMask;
+ }
+ }
+ return masks;
+}
+class TokenArg {
+ constructor(name, expr, scope) {
+ this.name = name;
+ this.expr = expr;
+ this.scope = scope;
+ }
+}
+class BuildingRule {
+ constructor(name, start, to, args) {
+ this.name = name;
+ this.start = start;
+ this.to = to;
+ this.args = args;
+ }
+}
+class TokenSet {
+ constructor(b, ast) {
+ this.b = b;
+ this.ast = ast;
+ this.startState = new State$1;
+ this.built = [];
+ this.building = []; // Used for recursion check
+ this.byDialect = Object.create(null);
+ this.precedenceRelations = [];
+ this.rules = ast ? ast.rules : none;
+ for (let rule of this.rules)
+ b.unique(rule.id);
+ }
+ getToken(expr) {
+ for (let built of this.built)
+ if (built.matches(expr))
+ return built.term;
+ let name = expr.id.name;
+ let rule = this.rules.find(r => r.id.name == name);
+ if (!rule)
+ return null;
+ let { name: nodeName, props, dialect, exported } = this.b.nodeInfo(rule.props, "d", name, expr.args, rule.params.length != expr.args.length ? none : rule.params);
+ let term = this.b.makeTerminal(expr.toString(), nodeName, props);
+ if (dialect != null)
+ (this.byDialect[dialect] || (this.byDialect[dialect] = [])).push(term);
+ if ((term.nodeType || exported) && rule.params.length == 0) {
+ if (!term.nodeType)
+ term.preserve = true;
+ this.b.namedTerms[exported || name] = term;
+ }
+ this.buildRule(rule, expr, this.startState, new State$1([term]));
+ this.built.push(new BuiltRule(name, expr.args, term));
+ return term;
+ }
+ buildRule(rule, expr, from, to, args = none) {
+ let name = expr.id.name;
+ if (rule.params.length != expr.args.length)
+ this.b.raise(`Incorrect number of arguments for token '${name}'`, expr.start);
+ let building = this.building.find(b => b.name == name && exprsEq(expr.args, b.args));
+ if (building) {
+ if (building.to == to) {
+ from.nullEdge(building.start);
+ return;
+ }
+ let lastIndex = this.building.length - 1;
+ while (this.building[lastIndex].name != name)
+ lastIndex--;
+ this.b.raise(`Invalid (non-tail) recursion in token rules: ${this.building.slice(lastIndex).map(b => b.name).join(" -> ")}`, expr.start);
+ }
+ this.b.used(rule.id.name);
+ let start = new State$1;
+ from.nullEdge(start);
+ this.building.push(new BuildingRule(name, start, to, expr.args));
+ this.build(this.b.substituteArgs(rule.expr, expr.args, rule.params), start, to, expr.args.map((e, i) => new TokenArg(rule.params[i].name, e, args)));
+ this.building.pop();
+ }
+ build(expr, from, to, args) {
+ if (expr instanceof NameExpression) {
+ let name = expr.id.name, arg = args.find(a => a.name == name);
+ if (arg)
+ return this.build(arg.expr, from, to, arg.scope);
+ let rule;
+ for (let i = 0, lt = this.b.localTokens; i <= lt.length; i++) {
+ let set = i == lt.length ? this.b.tokens : lt[i];
+ rule = set.rules.find(r => r.id.name == name);
+ }
+ if (!rule)
+ return this.b.raise(`Reference to token rule '${expr.id.name}', which isn't found`, expr.start);
+ this.buildRule(rule, expr, from, to, args);
+ }
+ else if (expr instanceof CharClass) {
+ for (let [a, b] of CharClasses[expr.type])
+ from.edge(a, b, to);
+ }
+ else if (expr instanceof ChoiceExpression) {
+ for (let choice of expr.exprs)
+ this.build(choice, from, to, args);
+ }
+ else if (isEmpty(expr)) {
+ from.nullEdge(to);
+ }
+ else if (expr instanceof SequenceExpression) {
+ let conflict = expr.markers.find(c => c.length > 0);
+ if (conflict)
+ this.b.raise("Conflict marker in token expression", conflict[0].start);
+ for (let i = 0; i < expr.exprs.length; i++) {
+ let next = i == expr.exprs.length - 1 ? to : new State$1;
+ this.build(expr.exprs[i], from, next, args);
+ from = next;
+ }
+ }
+ else if (expr instanceof RepeatExpression) {
+ if (expr.kind == "*") {
+ let loop = new State$1;
+ from.nullEdge(loop);
+ this.build(expr.expr, loop, loop, args);
+ loop.nullEdge(to);
+ }
+ else if (expr.kind == "+") {
+ let loop = new State$1;
+ this.build(expr.expr, from, loop, args);
+ this.build(expr.expr, loop, loop, args);
+ loop.nullEdge(to);
+ }
+ else { // expr.kind == "?"
+ from.nullEdge(to);
+ this.build(expr.expr, from, to, args);
+ }
+ }
+ else if (expr instanceof SetExpression) {
+ for (let [a, b] of expr.inverted ? invertRanges(expr.ranges) : expr.ranges)
+ rangeEdges(from, to, a, b);
+ }
+ else if (expr instanceof LiteralExpression) {
+ for (let i = 0; i < expr.value.length; i++) {
+ let ch = expr.value.charCodeAt(i);
+ let next = i == expr.value.length - 1 ? to : new State$1;
+ from.edge(ch, ch + 1, next);
+ from = next;
+ }
+ }
+ else if (expr instanceof AnyExpression) {
+ let mid = new State$1;
+ from.edge(0, 0xDC00, to);
+ from.edge(0xDC00, MAX_CHAR + 1, to);
+ from.edge(0xD800, 0xDC00, mid);
+ mid.edge(0xDC00, 0xE000, to);
+ }
+ else {
+ return this.b.raise(`Unrecognized expression type in token`, expr.start);
+ }
+ }
+ takePrecedences() {
+ let rel = this.precedenceRelations = [];
+ if (this.ast)
+ for (let group of this.ast.precedences) {
+ let prev = [];
+ for (let item of group.items) {
+ let level = [];
+ if (item instanceof NameExpression) {
+ for (let built of this.built)
+ if (item.args.length ? built.matches(item) : built.id == item.id.name)
+ level.push(built.term);
+ }
+ else {
+ let id = JSON.stringify(item.value), found = this.built.find(b => b.id == id);
+ if (found)
+ level.push(found.term);
+ }
+ if (!level.length)
+ this.b.warn(`Precedence specified for unknown token ${item}`, item.start);
+ for (let term of level)
+ addRel(rel, term, prev);
+ prev = prev.concat(level);
+ }
+ }
+ }
+ precededBy(a, b) {
+ let found = this.precedenceRelations.find(r => r.term == a);
+ return found && found.after.includes(b);
+ }
+ buildPrecTable(softConflicts) {
+ let precTable = [], rel = this.precedenceRelations.slice();
+ // Add entries for soft-conflicting tokens that are in the
+ // precedence table, to make sure they'll appear in the right
+ // order and don't mess up the longer-wins default rule.
+ for (let { a, b, soft } of softConflicts)
+ if (soft) {
+ if (!rel.some(r => r.term == a) || !rel.some(r => r.term == b))
+ continue;
+ if (soft < 0)
+ [a, b] = [b, a]; // Now a is longer than b (and should thus take precedence)
+ addRel(rel, b, [a]);
+ addRel(rel, a, []);
+ }
+ add: while (rel.length) {
+ for (let i = 0; i < rel.length; i++) {
+ let record = rel[i];
+ if (record.after.every(t => precTable.includes(t.id))) {
+ precTable.push(record.term.id);
+ if (rel.length == 1)
+ break add;
+ rel[i] = rel.pop();
+ continue add;
+ }
+ }
+ this.b.raise(`Cyclic token precedence relation between ${rel.map(r => r.term).join(", ")}`);
+ }
+ return precTable;
+ }
+}
+class MainTokenSet extends TokenSet {
+ constructor() {
+ super(...arguments);
+ this.explicitConflicts = [];
+ }
+ getLiteral(expr) {
+ let id = JSON.stringify(expr.value);
+ for (let built of this.built)
+ if (built.id == id)
+ return built.term;
+ let name = null, props = {}, dialect = null, exported = null;
+ let decl = this.ast ? this.ast.literals.find(l => l.literal == expr.value) : null;
+ if (decl)
+ ({ name, props, dialect, exported } = this.b.nodeInfo(decl.props, "da", expr.value));
+ let term = this.b.makeTerminal(id, name, props);
+ if (dialect != null)
+ (this.byDialect[dialect] || (this.byDialect[dialect] = [])).push(term);
+ if (exported)
+ this.b.namedTerms[exported] = term;
+ this.build(expr, this.startState, new State$1([term]), none);
+ this.built.push(new BuiltRule(id, none, term));
+ return term;
+ }
+ takeConflicts() {
+ var _a;
+ let resolve = (expr) => {
+ if (expr instanceof NameExpression) {
+ for (let built of this.built)
+ if (built.matches(expr))
+ return built.term;
+ }
+ else {
+ let id = JSON.stringify(expr.value), found = this.built.find(b => b.id == id);
+ if (found)
+ return found.term;
+ }
+ this.b.warn(`Precedence specified for unknown token ${expr}`, expr.start);
+ return null;
+ };
+ for (let c of ((_a = this.ast) === null || _a === void 0 ? void 0 : _a.conflicts) || []) {
+ let a = resolve(c.a), b = resolve(c.b);
+ if (a && b) {
+ if (a.id < b.id)
+ [a, b] = [b, a];
+ this.explicitConflicts.push({ a, b });
+ }
+ }
+ }
+ // Token groups are a mechanism for allowing conflicting (matching
+ // overlapping input, without an explicit precedence being given)
+ // tokens to exist in a grammar _if_ they don't occur in the same
+ // place (aren't used in the same states).
+ //
+ // States that use tokens that conflict will raise an error when any
+ // of the conflicting pairs of tokens both occur in that state.
+ // Otherwise, they are assigned a token group, which includes all
+ // the potentially-conflicting tokens they use. If there's already a
+ // group that doesn't have any conflicts with those tokens, that is
+ // reused, otherwise a new group is created.
+ //
+ // So each state has zero or one token groups, and each conflicting
+ // token may belong to one or more groups. Tokens get assigned a
+ // 16-bit bitmask with the groups they belong to set to 1 (all-1s
+ // for non-conflicting tokens). When tokenizing, that mask is
+ // compared to the current state's group (again using all-1s for
+ // group-less states) to determine whether a token is applicable for
+ // this state.
+ //
+ // Extended/specialized tokens are treated as their parent token for
+ // this purpose.
+ buildTokenGroups(states, skipInfo, startID) {
+ let tokens = this.startState.compile();
+ if (tokens.accepting.length)
+ this.b.raise(`Grammar contains zero-length tokens (in '${tokens.accepting[0].name}')`, this.rules.find(r => r.id.name == tokens.accepting[0].name).start);
+ if (/\btokens\b/.test(verbose))
+ console.log(tokens.toString());
+ // If there is a precedence specified for the pair, the conflict is resolved
+ let allConflicts = tokens.findConflicts(checkTogether(states, this.b, skipInfo))
+ .filter(({ a, b }) => !this.precededBy(a, b) && !this.precededBy(b, a));
+ for (let { a, b } of this.explicitConflicts) {
+ if (!allConflicts.some(c => c.a == a && c.b == b))
+ allConflicts.push(new Conflict$1(a, b, 0, "", ""));
+ }
+ let softConflicts = allConflicts.filter(c => c.soft), conflicts = allConflicts.filter(c => !c.soft);
+ let errors = [];
+ let groups = [];
+ for (let state of states) {
+ if (state.defaultReduce || state.tokenGroup > -1)
+ continue;
+ // Find potentially-conflicting terms (in terms) and the things
+ // they conflict with (in conflicts), and raise an error if
+ // there's a token conflict directly in this state.
+ let terms = [], incompatible = [];
+ let skip = skipInfo[this.b.skipRules.indexOf(state.skip)].startTokens;
+ for (let term of skip)
+ if (state.actions.some(a => a.term == term))
+ this.b.raise(`Use of token ${term.name} conflicts with skip rule`);
+ let stateTerms = [];
+ for (let i = 0; i < state.actions.length + (skip ? skip.length : 0); i++) {
+ let term = i < state.actions.length ? state.actions[i].term : skip[i - state.actions.length];
+ let orig = this.b.tokenOrigins[term.name];
+ if (orig && orig.spec)
+ term = orig.spec;
+ else if (orig && orig.external)
+ continue;
+ addToSet(stateTerms, term);
+ }
+ if (stateTerms.length == 0)
+ continue;
+ for (let term of stateTerms) {
+ for (let conflict of conflicts) {
+ let conflicting = conflict.a == term ? conflict.b : conflict.b == term ? conflict.a : null;
+ if (!conflicting)
+ continue;
+ if (stateTerms.includes(conflicting) && !errors.some(e => e.conflict == conflict)) {
+ let example = conflict.exampleA ? ` (example: ${JSON.stringify(conflict.exampleA)}${conflict.exampleB ? ` vs ${JSON.stringify(conflict.exampleB)}` : ""})` : "";
+ errors.push({
+ error: `Overlapping tokens ${term.name} and ${conflicting.name} used in same context${example}\n` +
+ `After: ${state.set[0].trail()}`,
+ conflict
+ });
+ }
+ addToSet(terms, term);
+ addToSet(incompatible, conflicting);
+ }
+ }
+ let tokenGroup = null;
+ for (let group of groups) {
+ if (incompatible.some(term => group.tokens.includes(term)))
+ continue;
+ for (let term of terms)
+ addToSet(group.tokens, term);
+ tokenGroup = group;
+ break;
+ }
+ if (!tokenGroup) {
+ tokenGroup = new TokenGroup(terms, groups.length + startID);
+ groups.push(tokenGroup);
+ }
+ state.tokenGroup = tokenGroup.groupID;
+ }
+ if (errors.length)
+ this.b.raise(errors.map(e => e.error).join("\n\n"));
+ if (groups.length + startID > 16)
+ this.b.raise(`Too many different token groups (${groups.length}) to represent them as a 16-bit bitfield`);
+ let precTable = this.buildPrecTable(softConflicts);
+ return {
+ tokenGroups: groups,
+ tokenPrec: precTable,
+ tokenData: tokens.toArray(buildTokenMasks(groups), precTable)
+ };
+ }
+}
+class LocalTokenSet extends TokenSet {
+ constructor(b, ast) {
+ super(b, ast);
+ this.fallback = null;
+ if (ast.fallback)
+ b.unique(ast.fallback.id);
+ }
+ getToken(expr) {
+ let term = null;
+ if (this.ast.fallback && this.ast.fallback.id.name == expr.id.name) {
+ if (expr.args.length)
+ this.b.raise(`Incorrect number of arguments for ${expr.id.name}`, expr.start);
+ if (!this.fallback) {
+ let { name: nodeName, props, exported } = this.b.nodeInfo(this.ast.fallback.props, "", expr.id.name, none, none);
+ let term = this.fallback = this.b.makeTerminal(expr.id.name, nodeName, props);
+ if (term.nodeType || exported) {
+ if (!term.nodeType)
+ term.preserve = true;
+ this.b.namedTerms[exported || expr.id.name] = term;
+ }
+ this.b.used(expr.id.name);
+ }
+ term = this.fallback;
+ }
+ else {
+ term = super.getToken(expr);
+ }
+ if (term && !this.b.tokenOrigins[term.name])
+ this.b.tokenOrigins[term.name] = { group: this };
+ return term;
+ }
+ buildLocalGroup(states, skipInfo, id) {
+ let tokens = this.startState.compile();
+ if (tokens.accepting.length)
+ this.b.raise(`Grammar contains zero-length tokens (in '${tokens.accepting[0].name}')`, this.rules.find(r => r.id.name == tokens.accepting[0].name).start);
+ for (let { a, b, exampleA } of tokens.findConflicts(() => true)) {
+ if (!this.precededBy(a, b) && !this.precededBy(b, a))
+ this.b.raise(`Overlapping tokens ${a.name} and ${b.name} in local token group${exampleA ? ` (example: ${JSON.stringify(exampleA)})` : ''}`);
+ }
+ for (let state of states) {
+ if (state.defaultReduce)
+ continue;
+ // See if this state uses any of the tokens in this group, and
+ // if so, make sure it *only* uses tokens from this group.
+ let usesThis = null;
+ let usesOther = skipInfo[this.b.skipRules.indexOf(state.skip)].startTokens[0];
+ for (let { term } of state.actions) {
+ let orig = this.b.tokenOrigins[term.name];
+ if ((orig === null || orig === void 0 ? void 0 : orig.group) == this)
+ usesThis = term;
+ else
+ usesOther = term;
+ }
+ if (usesThis) {
+ if (usesOther)
+ this.b.raise(`Tokens from a local token group used together with other tokens (${usesThis.name} with ${usesOther.name})`);
+ state.tokenGroup = id;
+ }
+ }
+ let precTable = this.buildPrecTable(none);
+ let tokenData = tokens.toArray({ [id]: 65535 /* Seq.End */ }, precTable);
+ let precOffset = tokenData.length;
+ let fullData = new Uint16Array(tokenData.length + precTable.length + 1);
+ fullData.set(tokenData, 0);
+ fullData.set(precTable, precOffset);
+ fullData[fullData.length - 1] = 65535 /* Seq.End */;
+ return {
+ groupID: id,
+ create: () => new _lezer_lr__WEBPACK_IMPORTED_MODULE_1__/* .LocalTokenGroup */ .RA(fullData, precOffset, this.fallback ? this.fallback.id : undefined),
+ createSource: importName => `new ${importName("LocalTokenGroup", "@lezer/lr")}(${encodeArray(fullData)}, ${precOffset}${this.fallback ? `, ${this.fallback.id}` : ''})`
+ };
+ }
+}
+function checkTogether(states, b, skipInfo) {
+ let cache = Object.create(null);
+ function hasTerm(state, term) {
+ return state.actions.some(a => a.term == term) ||
+ skipInfo[b.skipRules.indexOf(state.skip)].startTokens.includes(term);
+ }
+ return (a, b) => {
+ if (a.id < b.id)
+ [a, b] = [b, a];
+ let key = a.id | (b.id << 16), cached = cache[key];
+ if (cached != null)
+ return cached;
+ return cache[key] = states.some(state => hasTerm(state, a) && hasTerm(state, b));
+ };
+}
+function invertRanges(ranges) {
+ let pos = 0, result = [];
+ for (let [a, b] of ranges) {
+ if (a > pos)
+ result.push([pos, a]);
+ pos = b;
+ }
+ if (pos <= MAX_CODE)
+ result.push([pos, MAX_CODE + 1]);
+ return result;
+}
+const ASTRAL = 0x10000, GAP_START = 0xd800, GAP_END = 0xe000, MAX_CODE = 0x10ffff;
+const LOW_SURR_B = 0xdc00, HIGH_SURR_B = 0xdfff;
+// Create intermediate states for astral characters in a range, if
+// necessary, since the tokenizer acts on UTF16 characters
+function rangeEdges(from, to, low, hi) {
+ if (low < ASTRAL) {
+ if (low < GAP_START)
+ from.edge(low, Math.min(hi, GAP_START), to);
+ if (hi > GAP_END)
+ from.edge(Math.max(low, GAP_END), Math.min(hi, MAX_CHAR + 1), to);
+ low = ASTRAL;
+ }
+ if (hi <= ASTRAL)
+ return;
+ let lowStr = String.fromCodePoint(low), hiStr = String.fromCodePoint(hi - 1);
+ let lowA = lowStr.charCodeAt(0), lowB = lowStr.charCodeAt(1);
+ let hiA = hiStr.charCodeAt(0), hiB = hiStr.charCodeAt(1);
+ if (lowA == hiA) { // Share the first char code
+ let hop = new State$1;
+ from.edge(lowA, lowA + 1, hop);
+ hop.edge(lowB, hiB + 1, to);
+ }
+ else {
+ let midStart = lowA, midEnd = hiA;
+ if (lowB > LOW_SURR_B) {
+ midStart++;
+ let hop = new State$1;
+ from.edge(lowA, lowA + 1, hop);
+ hop.edge(lowB, HIGH_SURR_B + 1, to);
+ }
+ if (hiB < HIGH_SURR_B) {
+ midEnd--;
+ let hop = new State$1;
+ from.edge(hiA, hiA + 1, hop);
+ hop.edge(LOW_SURR_B, hiB + 1, to);
+ }
+ if (midStart <= midEnd) {
+ let hop = new State$1;
+ from.edge(midStart, midEnd + 1, hop);
+ hop.edge(LOW_SURR_B, HIGH_SURR_B + 1, to);
+ }
+ }
+}
+function isEmpty(expr) {
+ return expr instanceof SequenceExpression && expr.exprs.length == 0;
+}
+function gatherExtTokens(b, tokens) {
+ let result = Object.create(null);
+ for (let token of tokens) {
+ b.unique(token.id);
+ let { name, props, dialect } = b.nodeInfo(token.props, "d", token.id.name);
+ let term = b.makeTerminal(token.id.name, name, props);
+ if (dialect != null)
+ (b.tokens.byDialect[dialect] || (b.tokens.byDialect[dialect] = [])).push(term);
+ b.namedTerms[token.id.name] = result[token.id.name] = term;
+ }
+ return result;
+}
+function findExtToken(b, tokens, expr) {
+ let found = tokens[expr.id.name];
+ if (!found)
+ return null;
+ if (expr.args.length)
+ b.raise("External tokens cannot take arguments", expr.args[0].start);
+ b.used(expr.id.name);
+ return found;
+}
+function addRel(rel, term, after) {
+ let found = rel.findIndex(r => r.term == term);
+ if (found < 0)
+ rel.push({ term, after });
+ else
+ rel[found] = { term, after: rel[found].after.concat(after) };
+}
+class ExternalTokenSet {
+ constructor(b, ast) {
+ this.b = b;
+ this.ast = ast;
+ this.tokens = gatherExtTokens(b, ast.tokens);
+ for (let name in this.tokens)
+ this.b.tokenOrigins[this.tokens[name].name] = { external: this };
+ }
+ getToken(expr) { return findExtToken(this.b, this.tokens, expr); }
+ create() {
+ return this.b.options.externalTokenizer(this.ast.id.name, this.b.termTable);
+ }
+ createSource(importName) {
+ let { source, id: { name } } = this.ast;
+ return importName(name, source);
+ }
+}
+class ExternalSpecializer {
+ constructor(b, ast) {
+ this.b = b;
+ this.ast = ast;
+ this.term = null;
+ this.tokens = gatherExtTokens(b, ast.tokens);
+ }
+ finish() {
+ let terms = this.b.normalizeExpr(this.ast.token);
+ if (terms.length != 1 || terms[0].terms.length != 1 || !terms[0].terms[0].terminal)
+ this.b.raise(`The token expression to '@external ${this.ast.type}' must resolve to a token`, this.ast.token.start);
+ this.term = terms[0].terms[0];
+ for (let name in this.tokens)
+ this.b.tokenOrigins[this.tokens[name].name] = { spec: this.term, external: this };
+ }
+ getToken(expr) { return findExtToken(this.b, this.tokens, expr); }
+}
+function inlineRules(rules, preserve) {
+ for (let pass = 0;; pass++) {
+ let inlinable = Object.create(null), found;
+ if (pass == 0)
+ for (let rule of rules) {
+ if (rule.name.inline && !inlinable[rule.name.name]) {
+ let group = rules.filter(r => r.name == rule.name);
+ if (group.some(r => r.parts.includes(rule.name)))
+ continue;
+ found = inlinable[rule.name.name] = group;
+ }
+ }
+ for (let i = 0; i < rules.length; i++) {
+ let rule = rules[i];
+ if (!rule.name.interesting && !rule.parts.includes(rule.name) && rule.parts.length < 3 &&
+ !preserve.includes(rule.name) &&
+ (rule.parts.length == 1 || rules.every(other => other.skip == rule.skip || !other.parts.includes(rule.name))) &&
+ !rule.parts.some(p => !!inlinable[p.name]) &&
+ !rules.some((r, j) => j != i && r.name == rule.name))
+ found = inlinable[rule.name.name] = [rule];
+ }
+ if (!found)
+ return rules;
+ let newRules = [];
+ for (let rule of rules) {
+ if (inlinable[rule.name.name])
+ continue;
+ if (!rule.parts.some(p => !!inlinable[p.name])) {
+ newRules.push(rule);
+ continue;
+ }
+ function expand(at, conflicts, parts) {
+ if (at == rule.parts.length) {
+ newRules.push(new Rule(rule.name, parts, conflicts, rule.skip));
+ return;
+ }
+ let next = rule.parts[at], replace = inlinable[next.name];
+ if (!replace) {
+ expand(at + 1, conflicts.concat(rule.conflicts[at + 1]), parts.concat(next));
+ return;
+ }
+ for (let r of replace)
+ expand(at + 1, conflicts.slice(0, conflicts.length - 1)
+ .concat(conflicts[at].join(r.conflicts[0]))
+ .concat(r.conflicts.slice(1, r.conflicts.length - 1))
+ .concat(rule.conflicts[at + 1].join(r.conflicts[r.conflicts.length - 1])), parts.concat(r.parts));
+ }
+ expand(0, [rule.conflicts[0]], []);
+ }
+ rules = newRules;
+ }
+}
+function mergeRules(rules) {
+ let merged = Object.create(null), found;
+ for (let i = 0; i < rules.length;) {
+ let groupStart = i;
+ let name = rules[i++].name;
+ while (i < rules.length && rules[i].name == name)
+ i++;
+ let size = i - groupStart;
+ if (name.interesting)
+ continue;
+ for (let j = i; j < rules.length;) {
+ let otherStart = j, otherName = rules[j++].name;
+ while (j < rules.length && rules[j].name == otherName)
+ j++;
+ if (j - otherStart != size || otherName.interesting)
+ continue;
+ let match = true;
+ for (let k = 0; k < size && match; k++) {
+ let a = rules[groupStart + k], b = rules[otherStart + k];
+ if (a.cmpNoName(b) != 0)
+ match = false;
+ }
+ if (match)
+ found = merged[name.name] = otherName;
+ }
+ }
+ if (!found)
+ return rules;
+ let newRules = [];
+ for (let rule of rules)
+ if (!merged[rule.name.name]) {
+ newRules.push(rule.parts.every(p => !merged[p.name]) ? rule :
+ new Rule(rule.name, rule.parts.map(p => merged[p.name] || p), rule.conflicts, rule.skip));
+ }
+ return newRules;
+}
+function simplifyRules(rules, preserve) {
+ return mergeRules(inlineRules(rules, preserve));
+}
+/**
+Build an in-memory parser instance for a given grammar. This is
+mostly useful for testing. If your grammar uses external
+tokenizers, you'll have to provide the `externalTokenizer` option
+for the returned parser to be able to parse anything.
+*/
+function buildParser(text, options = {}) {
+ let builder = new Builder(text, options), parser = builder.getParser();
+ parser.termTable = builder.termTable;
+ return parser;
+}
+const KEYWORDS = ["await", "break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally",
+ "for", "function", "if", "return", "switch", "throw", "try", "var", "while", "with",
+ "null", "true", "false", "instanceof", "typeof", "void", "delete", "new", "in", "this",
+ "const", "class", "extends", "export", "import", "super", "enum", "implements", "interface",
+ "let", "package", "private", "protected", "public", "static", "yield", "require"];
+/**
+Build the code that represents the parser tables for a given
+grammar description. The `parser` property in the return value
+holds the main file that exports the `Parser` instance. The
+`terms` property holds a declaration file that defines constants
+for all of the named terms in grammar, holding their ids as value.
+This is useful when external code, such as a tokenizer, needs to
+be able to use these ids. It is recommended to run a tree-shaking
+bundler when importing this file, since you usually only need a
+handful of the many terms in your code.
+*/
+function buildParserFile(text, options = {}) {
+ return new Builder(text, options).getParserFile();
+}
+function ignored(name) {
+ let first = name[0];
+ return first == "_" || first.toUpperCase() != first;
+}
+function isExported(rule) {
+ return rule.props.some(p => p.at && p.name == "export");
+}
+
+
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=306.dd9ffcf982b0c863872b.js.map?v=dd9ffcf982b0c863872b
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js
new file mode 100644
index 0000000000000000000000000000000000000000..e3f4103c092f372e61784983426ed0a9974f992d
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js
@@ -0,0 +1,262 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[311],{
+
+/***/ 60311:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ stex: () => (/* binding */ stex),
+/* harmony export */ stexMath: () => (/* binding */ stexMath)
+/* harmony export */ });
+function mkStex(mathMode) {
+ function pushCommand(state, command) {
+ state.cmdState.push(command);
+ }
+
+ function peekCommand(state) {
+ if (state.cmdState.length > 0) {
+ return state.cmdState[state.cmdState.length - 1];
+ } else {
+ return null;
+ }
+ }
+
+ function popCommand(state) {
+ var plug = state.cmdState.pop();
+ if (plug) {
+ plug.closeBracket();
+ }
+ }
+
+ // returns the non-default plugin closest to the end of the list
+ function getMostPowerful(state) {
+ var context = state.cmdState;
+ for (var i = context.length - 1; i >= 0; i--) {
+ var plug = context[i];
+ if (plug.name == "DEFAULT") {
+ continue;
+ }
+ return plug;
+ }
+ return { styleIdentifier: function() { return null; } };
+ }
+
+ function addPluginPattern(pluginName, cmdStyle, styles) {
+ return function () {
+ this.name = pluginName;
+ this.bracketNo = 0;
+ this.style = cmdStyle;
+ this.styles = styles;
+ this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin
+
+ this.styleIdentifier = function() {
+ return this.styles[this.bracketNo - 1] || null;
+ };
+ this.openBracket = function() {
+ this.bracketNo++;
+ return "bracket";
+ };
+ this.closeBracket = function() {};
+ };
+ }
+
+ var plugins = {};
+
+ plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]);
+ plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]);
+ plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]);
+ plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]);
+ plugins["end"] = addPluginPattern("end", "tag", ["atom"]);
+
+ plugins["label" ] = addPluginPattern("label" , "tag", ["atom"]);
+ plugins["ref" ] = addPluginPattern("ref" , "tag", ["atom"]);
+ plugins["eqref" ] = addPluginPattern("eqref" , "tag", ["atom"]);
+ plugins["cite" ] = addPluginPattern("cite" , "tag", ["atom"]);
+ plugins["bibitem" ] = addPluginPattern("bibitem" , "tag", ["atom"]);
+ plugins["Bibitem" ] = addPluginPattern("Bibitem" , "tag", ["atom"]);
+ plugins["RBibitem" ] = addPluginPattern("RBibitem" , "tag", ["atom"]);
+
+ plugins["DEFAULT"] = function () {
+ this.name = "DEFAULT";
+ this.style = "tag";
+
+ this.styleIdentifier = this.openBracket = this.closeBracket = function() {};
+ };
+
+ function setState(state, f) {
+ state.f = f;
+ }
+
+ // called when in a normal (no environment) context
+ function normal(source, state) {
+ var plug;
+ // Do we look like '\command' ? If so, attempt to apply the plugin 'command'
+ if (source.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)) {
+ var cmdName = source.current().slice(1);
+ plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins["DEFAULT"];
+ plug = new plug();
+ pushCommand(state, plug);
+ setState(state, beginParams);
+ return plug.style;
+ }
+
+ // escape characters
+ if (source.match(/^\\[$&%#{}_]/)) {
+ return "tag";
+ }
+
+ // white space control characters
+ if (source.match(/^\\[,;!\/\\]/)) {
+ return "tag";
+ }
+
+ // find if we're starting various math modes
+ if (source.match("\\[")) {
+ setState(state, function(source, state){ return inMathMode(source, state, "\\]"); });
+ return "keyword";
+ }
+ if (source.match("\\(")) {
+ setState(state, function(source, state){ return inMathMode(source, state, "\\)"); });
+ return "keyword";
+ }
+ if (source.match("$$")) {
+ setState(state, function(source, state){ return inMathMode(source, state, "$$"); });
+ return "keyword";
+ }
+ if (source.match("$")) {
+ setState(state, function(source, state){ return inMathMode(source, state, "$"); });
+ return "keyword";
+ }
+
+ var ch = source.next();
+ if (ch == "%") {
+ source.skipToEnd();
+ return "comment";
+ } else if (ch == '}' || ch == ']') {
+ plug = peekCommand(state);
+ if (plug) {
+ plug.closeBracket(ch);
+ setState(state, beginParams);
+ } else {
+ return "error";
+ }
+ return "bracket";
+ } else if (ch == '{' || ch == '[') {
+ plug = plugins["DEFAULT"];
+ plug = new plug();
+ pushCommand(state, plug);
+ return "bracket";
+ } else if (/\d/.test(ch)) {
+ source.eatWhile(/[\w.%]/);
+ return "atom";
+ } else {
+ source.eatWhile(/[\w\-_]/);
+ plug = getMostPowerful(state);
+ if (plug.name == 'begin') {
+ plug.argument = source.current();
+ }
+ return plug.styleIdentifier();
+ }
+ }
+
+ function inMathMode(source, state, endModeSeq) {
+ if (source.eatSpace()) {
+ return null;
+ }
+ if (endModeSeq && source.match(endModeSeq)) {
+ setState(state, normal);
+ return "keyword";
+ }
+ if (source.match(/^\\[a-zA-Z@]+/)) {
+ return "tag";
+ }
+ if (source.match(/^[a-zA-Z]+/)) {
+ return "variableName.special";
+ }
+ // escape characters
+ if (source.match(/^\\[$&%#{}_]/)) {
+ return "tag";
+ }
+ // white space control characters
+ if (source.match(/^\\[,;!\/]/)) {
+ return "tag";
+ }
+ // special math-mode characters
+ if (source.match(/^[\^_&]/)) {
+ return "tag";
+ }
+ // non-special characters
+ if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) {
+ return null;
+ }
+ if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) {
+ return "number";
+ }
+ var ch = source.next();
+ if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") {
+ return "bracket";
+ }
+
+ if (ch == "%") {
+ source.skipToEnd();
+ return "comment";
+ }
+ return "error";
+ }
+
+ function beginParams(source, state) {
+ var ch = source.peek(), lastPlug;
+ if (ch == '{' || ch == '[') {
+ lastPlug = peekCommand(state);
+ lastPlug.openBracket(ch);
+ source.eat(ch);
+ setState(state, normal);
+ return "bracket";
+ }
+ if (/[ \t\r]/.test(ch)) {
+ source.eat(ch);
+ return null;
+ }
+ setState(state, normal);
+ popCommand(state);
+
+ return normal(source, state);
+ }
+
+ return {
+ name: "stex",
+ startState: function() {
+ var f = mathMode ? function(source, state){ return inMathMode(source, state); } : normal;
+ return {
+ cmdState: [],
+ f: f
+ };
+ },
+ copyState: function(s) {
+ return {
+ cmdState: s.cmdState.slice(),
+ f: s.f
+ };
+ },
+ token: function(stream, state) {
+ return state.f(stream, state);
+ },
+ blankLine: function(state) {
+ state.f = normal;
+ state.cmdState.length = 0;
+ },
+ languageData: {
+ commentTokens: {line: "%"}
+ }
+ };
+};
+
+const stex = mkStex(false)
+const stexMath = mkStex(true)
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=311.d6a177e2f8f1b1690911.js.map?v=d6a177e2f8f1b1690911
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..cf3a987c8ce95383904a4c7fb3c0d8e8ee2e5770
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"311.d6a177e2f8f1b1690911.js?v=d6a177e2f8f1b1690911","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC,QAAQ;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,8BAA8B;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,+CAA+C,yCAAyC;AACxF;AACA;AACA;AACA,+CAA+C,wCAAwC;AACvF;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM,iBAAiB;AACvB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM,iBAAiB;AACvB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,aAAa;AAC7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD,oCAAoC;AACtF;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,sBAAsB;AACtB;AACA;AACA;;AAEO;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/stex.js"],"sourcesContent":["function mkStex(mathMode) {\n function pushCommand(state, command) {\n state.cmdState.push(command);\n }\n\n function peekCommand(state) {\n if (state.cmdState.length > 0) {\n return state.cmdState[state.cmdState.length - 1];\n } else {\n return null;\n }\n }\n\n function popCommand(state) {\n var plug = state.cmdState.pop();\n if (plug) {\n plug.closeBracket();\n }\n }\n\n // returns the non-default plugin closest to the end of the list\n function getMostPowerful(state) {\n var context = state.cmdState;\n for (var i = context.length - 1; i >= 0; i--) {\n var plug = context[i];\n if (plug.name == \"DEFAULT\") {\n continue;\n }\n return plug;\n }\n return { styleIdentifier: function() { return null; } };\n }\n\n function addPluginPattern(pluginName, cmdStyle, styles) {\n return function () {\n this.name = pluginName;\n this.bracketNo = 0;\n this.style = cmdStyle;\n this.styles = styles;\n this.argument = null; // \\begin and \\end have arguments that follow. These are stored in the plugin\n\n this.styleIdentifier = function() {\n return this.styles[this.bracketNo - 1] || null;\n };\n this.openBracket = function() {\n this.bracketNo++;\n return \"bracket\";\n };\n this.closeBracket = function() {};\n };\n }\n\n var plugins = {};\n\n plugins[\"importmodule\"] = addPluginPattern(\"importmodule\", \"tag\", [\"string\", \"builtin\"]);\n plugins[\"documentclass\"] = addPluginPattern(\"documentclass\", \"tag\", [\"\", \"atom\"]);\n plugins[\"usepackage\"] = addPluginPattern(\"usepackage\", \"tag\", [\"atom\"]);\n plugins[\"begin\"] = addPluginPattern(\"begin\", \"tag\", [\"atom\"]);\n plugins[\"end\"] = addPluginPattern(\"end\", \"tag\", [\"atom\"]);\n\n plugins[\"label\" ] = addPluginPattern(\"label\" , \"tag\", [\"atom\"]);\n plugins[\"ref\" ] = addPluginPattern(\"ref\" , \"tag\", [\"atom\"]);\n plugins[\"eqref\" ] = addPluginPattern(\"eqref\" , \"tag\", [\"atom\"]);\n plugins[\"cite\" ] = addPluginPattern(\"cite\" , \"tag\", [\"atom\"]);\n plugins[\"bibitem\" ] = addPluginPattern(\"bibitem\" , \"tag\", [\"atom\"]);\n plugins[\"Bibitem\" ] = addPluginPattern(\"Bibitem\" , \"tag\", [\"atom\"]);\n plugins[\"RBibitem\" ] = addPluginPattern(\"RBibitem\" , \"tag\", [\"atom\"]);\n\n plugins[\"DEFAULT\"] = function () {\n this.name = \"DEFAULT\";\n this.style = \"tag\";\n\n this.styleIdentifier = this.openBracket = this.closeBracket = function() {};\n };\n\n function setState(state, f) {\n state.f = f;\n }\n\n // called when in a normal (no environment) context\n function normal(source, state) {\n var plug;\n // Do we look like '\\command' ? If so, attempt to apply the plugin 'command'\n if (source.match(/^\\\\[a-zA-Z@\\xc0-\\u1fff\\u2060-\\uffff]+/)) {\n var cmdName = source.current().slice(1);\n plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins[\"DEFAULT\"];\n plug = new plug();\n pushCommand(state, plug);\n setState(state, beginParams);\n return plug.style;\n }\n\n // escape characters\n if (source.match(/^\\\\[$&%#{}_]/)) {\n return \"tag\";\n }\n\n // white space control characters\n if (source.match(/^\\\\[,;!\\/\\\\]/)) {\n return \"tag\";\n }\n\n // find if we're starting various math modes\n if (source.match(\"\\\\[\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"\\\\]\"); });\n return \"keyword\";\n }\n if (source.match(\"\\\\(\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"\\\\)\"); });\n return \"keyword\";\n }\n if (source.match(\"$$\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"$$\"); });\n return \"keyword\";\n }\n if (source.match(\"$\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"$\"); });\n return \"keyword\";\n }\n\n var ch = source.next();\n if (ch == \"%\") {\n source.skipToEnd();\n return \"comment\";\n } else if (ch == '}' || ch == ']') {\n plug = peekCommand(state);\n if (plug) {\n plug.closeBracket(ch);\n setState(state, beginParams);\n } else {\n return \"error\";\n }\n return \"bracket\";\n } else if (ch == '{' || ch == '[') {\n plug = plugins[\"DEFAULT\"];\n plug = new plug();\n pushCommand(state, plug);\n return \"bracket\";\n } else if (/\\d/.test(ch)) {\n source.eatWhile(/[\\w.%]/);\n return \"atom\";\n } else {\n source.eatWhile(/[\\w\\-_]/);\n plug = getMostPowerful(state);\n if (plug.name == 'begin') {\n plug.argument = source.current();\n }\n return plug.styleIdentifier();\n }\n }\n\n function inMathMode(source, state, endModeSeq) {\n if (source.eatSpace()) {\n return null;\n }\n if (endModeSeq && source.match(endModeSeq)) {\n setState(state, normal);\n return \"keyword\";\n }\n if (source.match(/^\\\\[a-zA-Z@]+/)) {\n return \"tag\";\n }\n if (source.match(/^[a-zA-Z]+/)) {\n return \"variableName.special\";\n }\n // escape characters\n if (source.match(/^\\\\[$&%#{}_]/)) {\n return \"tag\";\n }\n // white space control characters\n if (source.match(/^\\\\[,;!\\/]/)) {\n return \"tag\";\n }\n // special math-mode characters\n if (source.match(/^[\\^_&]/)) {\n return \"tag\";\n }\n // non-special characters\n if (source.match(/^[+\\-<>|=,\\/@!*:;'\"`~#?]/)) {\n return null;\n }\n if (source.match(/^(\\d+\\.\\d*|\\d*\\.\\d+|\\d+)/)) {\n return \"number\";\n }\n var ch = source.next();\n if (ch == \"{\" || ch == \"}\" || ch == \"[\" || ch == \"]\" || ch == \"(\" || ch == \")\") {\n return \"bracket\";\n }\n\n if (ch == \"%\") {\n source.skipToEnd();\n return \"comment\";\n }\n return \"error\";\n }\n\n function beginParams(source, state) {\n var ch = source.peek(), lastPlug;\n if (ch == '{' || ch == '[') {\n lastPlug = peekCommand(state);\n lastPlug.openBracket(ch);\n source.eat(ch);\n setState(state, normal);\n return \"bracket\";\n }\n if (/[ \\t\\r]/.test(ch)) {\n source.eat(ch);\n return null;\n }\n setState(state, normal);\n popCommand(state);\n\n return normal(source, state);\n }\n\n return {\n name: \"stex\",\n startState: function() {\n var f = mathMode ? function(source, state){ return inMathMode(source, state); } : normal;\n return {\n cmdState: [],\n f: f\n };\n },\n copyState: function(s) {\n return {\n cmdState: s.cmdState.slice(),\n f: s.f\n };\n },\n token: function(stream, state) {\n return state.f(stream, state);\n },\n blankLine: function(state) {\n state.f = normal;\n state.cmdState.length = 0;\n },\n languageData: {\n commentTokens: {line: \"%\"}\n }\n };\n};\n\nexport const stex = mkStex(false)\nexport const stexMath = mkStex(true)\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/3230.25e2cf51e31209917c87.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/3230.25e2cf51e31209917c87.js
new file mode 100644
index 0000000000000000000000000000000000000000..4c37b95e9ffc8b5fc2a3dcfe7000aa97eb79eeec
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/3230.25e2cf51e31209917c87.js
@@ -0,0 +1,444 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[3230],{
+
+/***/ 83230:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ xQuery: () => (/* binding */ xQuery)
+/* harmony export */ });
+// The keywords object is set to the result of this self executing
+// function. Each keyword is a property of the keywords object whose
+// value is {type: atype, style: astyle}
+var keywords = function(){
+ // convenience functions used to build keywords object
+ function kw(type) {return {type: type, style: "keyword"};}
+ var operator = kw("operator")
+ , atom = {type: "atom", style: "atom"}
+ , punctuation = {type: "punctuation", style: null}
+ , qualifier = {type: "axis_specifier", style: "qualifier"};
+
+ // kwObj is what is return from this function at the end
+ var kwObj = {
+ ',': punctuation
+ };
+
+ // a list of 'basic' keywords. For each add a property to kwObj with the value of
+ // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"}
+ var basic = ['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'];
+ for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);};
+
+ // a list of types. For each add a property to kwObj with the value of
+ // {type: "atom", style: "atom"}
+ var types = ['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(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;};
+
+ // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"}
+ var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-'];
+ for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;};
+
+ // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"}
+ var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::",
+ "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"];
+ for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; };
+
+ return kwObj;
+}();
+
+function chain(stream, state, f) {
+ state.tokenize = f;
+ return f(stream, state);
+}
+
+// the primary mode tokenizer
+function tokenBase(stream, state) {
+ var ch = stream.next(),
+ mightBeFunction = false,
+ isEQName = isEQNameAhead(stream);
+
+ // an XML tag (if not in some sub, chained tokenizer)
+ if (ch == "<") {
+ if(stream.match("!--", true))
+ return chain(stream, state, tokenXMLComment);
+
+ if(stream.match("![CDATA", false)) {
+ state.tokenize = tokenCDATA;
+ return "tag";
+ }
+
+ if(stream.match("?", false)) {
+ return chain(stream, state, tokenPreProcessing);
+ }
+
+ var isclose = stream.eat("/");
+ stream.eatSpace();
+ var tagName = "", c;
+ while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;
+
+ return chain(stream, state, tokenTag(tagName, isclose));
+ }
+ // start code block
+ else if(ch == "{") {
+ pushStateStack(state, { type: "codeblock"});
+ return null;
+ }
+ // end code block
+ else if(ch == "}") {
+ popStateStack(state);
+ return null;
+ }
+ // if we're in an XML block
+ else if(isInXmlBlock(state)) {
+ if(ch == ">")
+ return "tag";
+ else if(ch == "/" && stream.eat(">")) {
+ popStateStack(state);
+ return "tag";
+ }
+ else
+ return "variable";
+ }
+ // if a number
+ else if (/\d/.test(ch)) {
+ stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);
+ return "atom";
+ }
+ // comment start
+ else if (ch === "(" && stream.eat(":")) {
+ pushStateStack(state, { type: "comment"});
+ return chain(stream, state, tokenComment);
+ }
+ // quoted string
+ else if (!isEQName && (ch === '"' || ch === "'"))
+ return chain(stream, state, tokenString(ch));
+ // variable
+ else if(ch === "$") {
+ return chain(stream, state, tokenVariable);
+ }
+ // assignment
+ else if(ch ===":" && stream.eat("=")) {
+ return "keyword";
+ }
+ // open paren
+ else if(ch === "(") {
+ pushStateStack(state, { type: "paren"});
+ return null;
+ }
+ // close paren
+ else if(ch === ")") {
+ popStateStack(state);
+ return null;
+ }
+ // open paren
+ else if(ch === "[") {
+ pushStateStack(state, { type: "bracket"});
+ return null;
+ }
+ // close paren
+ else if(ch === "]") {
+ popStateStack(state);
+ return null;
+ }
+ else {
+ var known = keywords.propertyIsEnumerable(ch) && keywords[ch];
+
+ // if there's a EQName ahead, consume the rest of the string portion, it's likely a function
+ if(isEQName && ch === '\"') while(stream.next() !== '"'){}
+ if(isEQName && ch === '\'') while(stream.next() !== '\''){}
+
+ // gobble up a word if the character is not known
+ if(!known) stream.eatWhile(/[\w\$_-]/);
+
+ // gobble a colon in the case that is a lib func type call fn:doc
+ var foundColon = stream.eat(":");
+
+ // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier
+ // which should get matched as a keyword
+ if(!stream.eat(":") && foundColon) {
+ stream.eatWhile(/[\w\$_-]/);
+ }
+ // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort)
+ if(stream.match(/^[ \t]*\(/, false)) {
+ mightBeFunction = true;
+ }
+ // is the word a keyword?
+ var word = stream.current();
+ known = keywords.propertyIsEnumerable(word) && keywords[word];
+
+ // if we think it's a function call but not yet known,
+ // set style to variable for now for lack of something better
+ if(mightBeFunction && !known) known = {type: "function_call", style: "def"};
+
+ // if the previous word was element, attribute, axis specifier, this word should be the name of that
+ if(isInXmlConstructor(state)) {
+ popStateStack(state);
+ return "variable";
+ }
+ // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and
+ // push the stack so we know to look for it on the next word
+ if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"});
+
+ // if the word is known, return the details of that else just call this a generic 'word'
+ return known ? known.style : "variable";
+ }
+}
+
+// handle comments, including nested
+function tokenComment(stream, state) {
+ var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
+ while (ch = stream.next()) {
+ if (ch == ")" && maybeEnd) {
+ if(nestedCount > 0)
+ nestedCount--;
+ else {
+ popStateStack(state);
+ break;
+ }
+ }
+ else if(ch == ":" && maybeNested) {
+ nestedCount++;
+ }
+ maybeEnd = (ch == ":");
+ maybeNested = (ch == "(");
+ }
+
+ return "comment";
+}
+
+// tokenizer for string literals
+// optionally pass a tokenizer function to set state.tokenize back to when finished
+function tokenString(quote, f) {
+ return function(stream, state) {
+ var ch;
+
+ if(isInString(state) && stream.current() == quote) {
+ popStateStack(state);
+ if(f) state.tokenize = f;
+ return "string";
+ }
+
+ pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) });
+
+ // if we're in a string and in an XML block, allow an embedded code block
+ if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
+ state.tokenize = tokenBase;
+ return "string";
+ }
+
+
+ while (ch = stream.next()) {
+ if (ch == quote) {
+ popStateStack(state);
+ if(f) state.tokenize = f;
+ break;
+ }
+ else {
+ // if we're in a string and in an XML block, allow an embedded code block in an attribute
+ if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
+ state.tokenize = tokenBase;
+ return "string";
+ }
+
+ }
+ }
+
+ return "string";
+ };
+}
+
+// tokenizer for variables
+function tokenVariable(stream, state) {
+ var isVariableChar = /[\w\$_-]/;
+
+ // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote
+ if(stream.eat("\"")) {
+ while(stream.next() !== '\"'){};
+ stream.eat(":");
+ } else {
+ stream.eatWhile(isVariableChar);
+ if(!stream.match(":=", false)) stream.eat(":");
+ }
+ stream.eatWhile(isVariableChar);
+ state.tokenize = tokenBase;
+ return "variable";
+}
+
+// tokenizer for XML tags
+function tokenTag(name, isclose) {
+ return function(stream, state) {
+ stream.eatSpace();
+ if(isclose && stream.eat(">")) {
+ popStateStack(state);
+ state.tokenize = tokenBase;
+ return "tag";
+ }
+ // self closing tag without attributes?
+ if(!stream.eat("/"))
+ pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase});
+ if(!stream.eat(">")) {
+ state.tokenize = tokenAttribute;
+ return "tag";
+ }
+ else {
+ state.tokenize = tokenBase;
+ }
+ return "tag";
+ };
+}
+
+// tokenizer for XML attributes
+function tokenAttribute(stream, state) {
+ var ch = stream.next();
+
+ if(ch == "/" && stream.eat(">")) {
+ if(isInXmlAttributeBlock(state)) popStateStack(state);
+ if(isInXmlBlock(state)) popStateStack(state);
+ return "tag";
+ }
+ if(ch == ">") {
+ if(isInXmlAttributeBlock(state)) popStateStack(state);
+ return "tag";
+ }
+ if(ch == "=")
+ return null;
+ // quoted string
+ if (ch == '"' || ch == "'")
+ return chain(stream, state, tokenString(ch, tokenAttribute));
+
+ if(!isInXmlAttributeBlock(state))
+ pushStateStack(state, { type: "attribute", tokenize: tokenAttribute});
+
+ stream.eat(/[a-zA-Z_:]/);
+ stream.eatWhile(/[-a-zA-Z0-9_:.]/);
+ stream.eatSpace();
+
+ // the case where the attribute has not value and the tag was closed
+ if(stream.match(">", false) || stream.match("/", false)) {
+ popStateStack(state);
+ state.tokenize = tokenBase;
+ }
+
+ return "attribute";
+}
+
+// handle comments, including nested
+function tokenXMLComment(stream, state) {
+ var ch;
+ while (ch = stream.next()) {
+ if (ch == "-" && stream.match("->", true)) {
+ state.tokenize = tokenBase;
+ return "comment";
+ }
+ }
+}
+
+
+// handle CDATA
+function tokenCDATA(stream, state) {
+ var ch;
+ while (ch = stream.next()) {
+ if (ch == "]" && stream.match("]", true)) {
+ state.tokenize = tokenBase;
+ return "comment";
+ }
+ }
+}
+
+// handle preprocessing instructions
+function tokenPreProcessing(stream, state) {
+ var ch;
+ while (ch = stream.next()) {
+ if (ch == "?" && stream.match(">", true)) {
+ state.tokenize = tokenBase;
+ return "processingInstruction";
+ }
+ }
+}
+
+
+// functions to test the current context of the state
+function isInXmlBlock(state) { return isIn(state, "tag"); }
+function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); }
+function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); }
+function isInString(state) { return isIn(state, "string"); }
+
+function isEQNameAhead(stream) {
+ // assume we've already eaten a quote (")
+ if(stream.current() === '"')
+ return stream.match(/^[^\"]+\"\:/, false);
+ else if(stream.current() === '\'')
+ return stream.match(/^[^\"]+\'\:/, false);
+ else
+ return false;
+}
+
+function isIn(state, type) {
+ return (state.stack.length && state.stack[state.stack.length - 1].type == type);
+}
+
+function pushStateStack(state, newState) {
+ state.stack.push(newState);
+}
+
+function popStateStack(state) {
+ state.stack.pop();
+ var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize;
+ state.tokenize = reinstateTokenize || tokenBase;
+}
+
+// the interface for the mode API
+const xQuery = {
+ name: "xquery",
+ startState: function() {
+ return {
+ tokenize: tokenBase,
+ cc: [],
+ stack: []
+ };
+ },
+
+ token: function(stream, state) {
+ if (stream.eatSpace()) return null;
+ var style = state.tokenize(stream, state);
+ return style;
+ },
+
+ languageData: {
+ commentTokens: {block: {open: "(:", close: ":)"}}
+ }
+};
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=3230.25e2cf51e31209917c87.js.map?v=25e2cf51e31209917c87
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/3336.1430b8576b899f650fb9.js b/vlmpy310/lib/python3.10/site-packages/notebook/static/3336.1430b8576b899f650fb9.js
new file mode 100644
index 0000000000000000000000000000000000000000..312656333f770dea5fe8a732d3842bc214908926
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/3336.1430b8576b899f650fb9.js
@@ -0,0 +1,139 @@
+"use strict";
+(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[3336],{
+
+/***/ 33336:
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ octave: () => (/* binding */ octave)
+/* harmony export */ });
+function wordRegexp(words) {
+ return new RegExp("^((" + words.join(")|(") + "))\\b");
+}
+
+var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
+var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;\\.]');
+var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
+var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
+var tripleDelimiters = new RegExp("^((>>=)|(<<=))");
+var expressionEnd = new RegExp("^[\\]\\)]");
+var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
+
+var builtins = wordRegexp([
+ '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'
+]);
+
+var keywords = wordRegexp([
+ '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'
+]);
+
+
+// tokenizers
+function tokenTranspose(stream, state) {
+ if (!stream.sol() && stream.peek() === '\'') {
+ stream.next();
+ state.tokenize = tokenBase;
+ return 'operator';
+ }
+ state.tokenize = tokenBase;
+ return tokenBase(stream, state);
+}
+
+
+function tokenComment(stream, state) {
+ if (stream.match(/^.*%}/)) {
+ state.tokenize = tokenBase;
+ return 'comment';
+ };
+ stream.skipToEnd();
+ return 'comment';
+}
+
+function tokenBase(stream, state) {
+ // whitespaces
+ if (stream.eatSpace()) return null;
+
+ // Handle one line Comments
+ if (stream.match('%{')){
+ state.tokenize = tokenComment;
+ stream.skipToEnd();
+ return 'comment';
+ }
+
+ if (stream.match(/^[%#]/)){
+ stream.skipToEnd();
+ return 'comment';
+ }
+
+ // Handle Number Literals
+ if (stream.match(/^[0-9\.+-]/, false)) {
+ if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
+ stream.tokenize = tokenBase;
+ return 'number'; };
+ if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
+ if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
+ }
+ if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
+
+ // Handle Strings
+ var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/)
+ if (m) { return m[1] ? 'string' : "error"; }
+
+ // Handle words
+ if (stream.match(keywords)) { return 'keyword'; } ;
+ if (stream.match(builtins)) { return 'builtin'; } ;
+ if (stream.match(identifiers)) { return 'variable'; } ;
+
+ if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
+ if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
+
+ if (stream.match(expressionEnd)) {
+ state.tokenize = tokenTranspose;
+ return null;
+ };
+
+
+ // Handle non-detected items
+ stream.next();
+ return 'error';
+};
+
+
+const octave = {
+ name: "octave",
+
+ startState: function() {
+ return {
+ tokenize: tokenBase
+ };
+ },
+
+ token: function(stream, state) {
+ var style = state.tokenize(stream, state);
+ if (style === 'number' || style === 'variable'){
+ state.tokenize = tokenTranspose;
+ }
+ return style;
+ },
+
+ languageData: {
+ commentTokens: {line: "%"}
+ }
+};
+
+
+
+/***/ })
+
+}]);
+//# sourceMappingURL=3336.1430b8576b899f650fb9.js.map?v=1430b8576b899f650fb9
\ No newline at end of file
diff --git a/vlmpy310/lib/python3.10/site-packages/notebook/static/3462.0383dfd16602627036bd.js.map b/vlmpy310/lib/python3.10/site-packages/notebook/static/3462.0383dfd16602627036bd.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..cca45ca92a18071464b7a054d90329ba459de71a
--- /dev/null
+++ b/vlmpy310/lib/python3.10/site-packages/notebook/static/3462.0383dfd16602627036bd.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"3462.0383dfd16602627036bd.js?v=0383dfd16602627036bd","mappings":";;;;;;AAAA,eAAe,KAAiD,oBAAoB,CAAqH,CAAC,iBAAiB,aAAa,OAAO,cAAc,sCAAsC,SAAS,2BAA2B,gGAAgG,6BAA6B,aAAa,oBAAoB,kBAAkB,wCAAwC,iCAAiC,+2BAA+2B,EAAE,oNAAoN,gLAAgL,2CAA2C,sBAAsB,IAAI,cAAc,2DAA2D,kBAAkB,iCAAiC,cAAc,eAAe,oBAAoB,wBAAwB,iCAAiC,wDAAwD,oBAAoB,0BAA0B,qBAAqB,2NAA2N,qBAAqB,2DAA2D,sWAAsW,YAAY,+BAA+B,qEAAqE,UAAU,0WAA0W,mBAAmB,iCAAiC,oBAAoB,oFAAoF,oBAAoB,gCAAgC,oBAAoB,sHAAsH,gCAAgC,6CAA6C,6JAA6J,oCAAoC,+JAA+J,+BAA+B,iFAAiF,qCAAqC,sBAAsB,YAAY,IAAI,KAAK,oJAAoJ,gGAAgG,uCAAuC,gCAAgC,iFAAiF,qCAAqC,qDAAqD,mEAAmE,sBAAsB,YAAY,IAAI,KAAK,sCAAsC,sBAAsB,6DAA6D,gCAAgC,iFAAiF,qCAAqC,uDAAuD,iGAAiG,yGAAyG,2BAA2B,2HAA2H,2BAA2B,qCAAqC,0JAA0J,YAAY,0MAA0M,qBAAqB,wTAAwT,0BAA0B,4FAA4F,SAAS,gaAAga,kBAAkB,kDAAkD,yHAAyH,MAAM,6XAA6X,gnBAAgnB,eAAe,wcAAwc,YAAY,wJAAwJ,cAAc,SAAS,eAAe,EAAE,6FAA6F,EAAE,sEAAsE,KAAK,2CAA2C,GAAG,oBAAoB,QAAQ,aAAa,oBAAoB,eAAe,2FAA2F,UAAU,2LAA2L,YAAY,0HAA0H,4DAA4D,wDAAwD,eAAe,sCAAsC,SAAS,0BAA0B,qFAAqF,6BAA6B,mCAAmC,skBAAskB,0DAA0D,kkBAAkkB,8GAA8G,0WAA0W,qJAAqJ,2CAA2C,8CAA8C,8CAA8C,IAAI,mBAAmB,yCAAyC,+BAA+B,kLAAkL,kBAAkB,yBAAyB,4DAA4D,mCAAmC,iCAAiC,wCAAwC,kCAAkC,IAAI,wBAAwB,qEAAqE,aAAa,wCAAwC,cAAc,yCAAyC,iCAAiC,oIAAoI,uCAAuC,EAAE,mBAAmB,8CAA8C,QAAQ,mCAAmC,iBAAiB,uCAAuC,gBAAgB,2DAA2D,oBAAoB,wDAAwD,oBAAoB,8CAA8C,qCAAqC,orCAAorC,qCAAqC,6EAA6E,4DAA4D,8BAA8B,yBAAyB,4BAA4B,uCAAuC,GAAG,mBAAmB,eAAe,sCAAsC,SAAS,6BAA6B,mDAAmD,kCAAkC,iCAAiC,2LAA2L,sCAAsC,wBAAwB,4KAA4K,kGAAkG,UAAU,6BAA6B,uCAAuC,QAAQ,8GAA8G,aAAa,yEAAyE,oEAAoE,EAAE,cAAc,0EAA0E,oEAAoE,EAAE,wBAAwB,wQAAwQ,oEAAoE,EAAE,mBAAmB,6DAA6D,uBAAuB,gKAAgK,WAAW,4GAA4G,2GAA2G,oEAAoE,0EAA0E,+FAA+F,wCAAwC,8FAA8F,0GAA0G,8MAA8M,8FAA8F,gBAAgB,uNAAuN,oBAAoB,gSAAgS,0BAA0B,eAAe,0JAA0J,sCAAsC,EAAE,wBAAwB,wKAAwK,0BAA0B,gOAAgO,8BAA8B,+HAA+H,4BAA4B,4IAA4I,sBAAsB,aAAa,sCAAsC,SAAS,uCAAuC,cAAc,cAAc,YAAY,YAAY,IAAI,KAAK,0CAA0C,+BAA+B,IAAI,+BAA+B,uBAAuB,oBAAoB,QAAQ,YAAY,oBAAoB,gBAAgB,uBAAuB,8BAA8B,cAAc,sCAAsC,SAAS,2BAA2B,iCAAiC,kCAAkC,+BAA+B,yLAAyL,UAAU,mCAAmC,QAAQ,yBAAyB,oBAAoB,gBAAgB,kFAAkF,wCAAwC,qIAAqI,4BAA4B,oTAAoT,KAAK,mDAAmD,iBAAiB,OAAO,4CAA4C,yCAAyC,cAAc,4BAA4B,0BAA0B,oBAAoB,eAAe,sCAAsC,SAAS,gCAAgC,eAAe,kCAAkC,6BAA6B,yDAAyD,cAAc,aAAa,8DAA8D,UAAU,gPAAgP,QAAQ,0EAA0E,aAAa,gJAAgJ,cAAc,gJAAgJ,8BAA8B,iEAAiE,wBAAwB,wEAAwE,0DAA0D,+IAA+I,uFAAuF,KAAK,6LAA6L,8BAA8B,yBAAyB,KAAK,2DAA2D,2BAA2B,0BAA0B,4DAA4D,4CAA4C,0BAA0B,6IAA6I,yBAAyB,8JAA8J,0BAA0B,2CAA2C,yBAAyB,eAAe,sCAAsC,SAAS,2BAA2B,4DAA4D,kCAAkC,iCAAiC,2IAA2I,sJAAsJ,UAAU,gBAAgB,6BAA6B,mKAAmK,4FAA4F,QAAQ,qCAAqC,oBAAoB,YAAY,KAAK,KAAK,2IAA2I,YAAY,2BAA2B,KAAK,6BAA6B,8BAA8B,qBAAqB,4BAA4B,KAAK,kBAAkB,4FAA4F,0IAA0I,qBAAqB,6CAA6C,mBAAmB,0CAA0C,WAAW,4FAA4F,qDAAqD,2EAA2E,qDAAqD,2EAA2E,SAAS,iGAAiG,2GAA2G,sJAAsJ,oEAAoE,qBAAqB,yDAAyD,uBAAuB,uLAAuL,kBAAkB,6BAA6B,4BAA4B,qBAAqB,uFAAuF,oDAAoD,wEAAwE,+DAA+D,oBAAoB,eAAe,sCAAsC,SAAS,6BAA6B,iCAAiC,iCAAiC,0BAA0B,yBAAyB,2JAA2J,iBAAiB,iBAAiB,iNAAiN,wGAAwG,wBAAwB,qEAAqE,0IAA0I,sEAAsE,0DAA0D,2DAA2D,sFAAsF,MAAM,iDAAiD,MAAM,oDAAoD,qCAAqC,sFAAsF,MAAM,iDAAiD,uJAAuJ,6HAA6H,+HAA+H,iLAAiL,KAAK,2DAA2D,sFAAsF,MAAM,iDAAiD,qCAAqC,sFAAsF,MAAM,iDAAiD,MAAM,oDAAoD,uJAAuJ,MAAM,+DAA+D,0IAA0I,2lBAA2lB,eAAe,sCAAsC,SAAS,yDAAyD,6BAA6B,gDAAgD,4CAA4C,YAAY,WAAW,KAAK,oCAAoC,SAAS,iDAAiD,6EAA6E,OAAO,YAAY,WAAW,KAAK,aAAa,mEAAmE,mBAAmB,4EAA4E,yBAAyB,uCAAuC,YAAY,WAAW,KAAK,gCAAgC,WAAW,sFAAsF,SAAS,eAAe,sCAAsC,SAAS,sDAAsD,eAAe,yCAAyC,SAAS,8YAA8Y,OAAO,uaAAua,8BAA8B,YAAY,uBAAuB,8DAA8D,2lBAA2lB,0BAA0B,uDAAuD,eAAe,sCAAsC,SAAS,gEAAgE,eAAe,iHAAiH,aAAa,sCAAsC,SAAS,mCAAmC,gCAAgC,iBAAiB,sIAAsI,eAAe,sDAAsD,UAAU,oXAAoX,wBAAwB,wLAAwL,mDAAmD,KAAK,wBAAwB,8LAA8L,iCAAiC,sDAAsD,gFAAgF,yGAAyG,mDAAmD,yEAAyE,iCAAiC,sDAAsD,yEAAyE,4HAA4H,mDAAmD,GAAG,OAAO,KAAK,QAAQ,4YAA4Y,SAAS,wGAAwG,eAAe,sCAAsC,SAAS,sGAAsG,eAAe,2BAA2B,MAAM,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,QAAQ,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,SAAS,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,2GAA2G,yBAAyB,KAAK,gBAAgB,MAAM,gBAAgB,MAAM,gBAAgB,MAAM,gBAAgB,MAAM,wBAAwB,MAAM,wBAAwB,MAAM,uBAAuB,MAAM,uBAAuB,MAAM,uBAAuB,MAAM,uBAAuB,MAAM,uBAAuB,MAAM,uBAAuB,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,6BAA6B,MAAM,4BAA4B,MAAM,4BAA4B,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,iBAAiB,MAAM,eAAe,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,KAAK,EAAE,MAAM,aAAa,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,IAAI,MAAM,sBAAsB,MAAM,KAAK,MAAM,MAAM,MAAM,KAAK,KAAK,EAAE,MAAM,aAAa,KAAK,MAAM,KAAK,aAAa,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,eAAe,MAAM,MAAM,MAAM,WAAW,MAAM,MAAM,KAAK,EAAE,MAAM,aAAa,KAAK,MAAM,KAAK,aAAa,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,sBAAsB,MAAM,KAAK,MAAM,MAAM,MAAM,KAAK,KAAK,EAAE,MAAM,mBAAmB,KAAK,OAAO,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,eAAe,MAAM,MAAM,MAAM,WAAW,MAAM,MAAM,KAAK,EAAE,MAAM,mBAAmB,KAAK,OAAO,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,4BAA4B,MAAM,KAAK,MAAM,MAAM,MAAM,KAAK,KAAK,EAAE,MAAM,aAAa,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,WAAW,MAAM,aAAa,KAAK,MAAM,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,2BAA2B,MAAM,MAAM,MAAM,KAAK,MAAM,MAAM,KAAK,EAAE,MAAM,mBAAmB,KAAK,OAAO,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,IAAI,MAAM,aAAa,KAAK,MAAM,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,eAAe,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,MAAM,MAAM,OAAO,MAAM,yBAAyB,KAAK,OAAO,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,KAAK,MAAM,KAAK,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,sBAAsB,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,KAAK,EAAE,MAAM,yBAAyB,KAAK,OAAO,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,MAAM,eAAe,MAAM,KAAK,MAAM,KAAK,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,2BAA2B,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,KAAK,EAAE,MAAM,yBAAyB,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,IAAI,MAAM,eAAe,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,cAAc,MAAM,cAAc,MAAM,wBAAwB,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,kCAAkC,MAAM,iCAAiC,MAAM,yCAAyC,MAAM,wCAAwC,MAAM,iCAAiC,MAAM,wCAAwC,MAAM,yCAAyC,MAAM,iCAAiC,MAAM,wCAAwC,MAAM,wCAAwC,MAAM,iCAAiC,MAAM,wCAAwC,MAAM,wCAAwC,MAAM,yCAAyC,MAAM,wCAAwC,MAAM,iCAAiC,MAAM,iCAAiC,MAAM,wCAAwC,MAAM,yCAAyC,MAAM,wCAAwC,MAAM,wCAAwC,MAAM,iCAAiC,MAAM,iCAAiC,MAAM,wCAAwC,MAAM,wCAAwC,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,gCAAgC,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,gCAAgC,MAAM,+CAA+C,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,+CAA+C,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,8CAA8C,MAAM,gCAAgC,MAAM,gCAAgC,MAAM,0DAA0D,MAAM,0DAA0D,MAAM,gEAAgE,MAAM,gEAAgE,MAAM,gCAAgC,MAAM,gCAAgC,MAAM,0DAA0D,MAAM,0DAA0D,MAAM,yDAAyD,MAAM,yDAAyD,MAAM,sBAAsB,aAAa,MAAM,YAAY,aAAa,MAAM,sBAAsB,aAAa,MAAM,YAAY,aAAa,MAAM,sBAAsB,aAAa,MAAM,YAAY,aAAa,MAAM,sBAAsB,aAAa,MAAM,YAAY,cAAc,yBAAyB,KAAK,0CAA0C,MAAM,8DAA8D,MAAM,yCAAyC,MAAM,4DAA4D,MAAM,+EAA+E,MAAM,6EAA6E,MAAM,8EAA8E,MAAM,iFAAiF,MAAM,sCAAsC,MAAM,0DAA0D,MAAM,sCAAsC,MAAM,sCAAsC,MAAM,0DAA0D,MAAM,uCAAuC,+JAA+J,qCAAqC,kCAAkC,YAAY,WAAW,KAAK,yBAAyB,yCAAyC,iBAAiB,aAAa,kCAAkC,eAAe,0BAA0B,oBAAoB,oEAAoE,EAAE,IAAI,eAAe,OAAO,gFAAgF,qBAAqB,oEAAoE,YAAY,oJAAoJ,KAAK,+EAA+E,EAAE,+BAA+B,uEAAuE,YAAY,IAAI,gBAAgB,IAAI,wGAAwG,+EAA+E,kCAAkC,iBAAiB,mCAAmC,oCAAoC,0BAA0B,oCAAoC,MAAM,uFAAuF,6BAA6B,oBAAoB,OAAO,0DAA0D,EAAE,IAAI,SAAS,kCAAkC,mCAAmC,0BAA0B,mBAAmB,kCAAkC,sCAAsC,mBAAmB,wCAAwC,aAAa,gBAAgB,+BAA+B,oBAAoB,OAAO,0DAA0D,EAAE,IAAI,SAAS,kCAAkC,sFAAsF,yEAAyE,uBAAuB,gBAAgB,oBAAoB,iCAAiC,SAAS,mHAAmH,kCAAkC,+CAA+C,mEAAmE,YAAY,WAAW,mFAAmF,YAAY,WAAW,uEAAuE,UAAU,cAAc,sCAAsC,SAAS,wCAAwC,eAAe,+CAA+C,gCAAgC,kCAAkC,aAAa,4EAA4E,6FAA6F,iBAAiB,GAAG,IAAI,aAAa,iCAAiC,EAAE,MAAM,wBAAwB,iDAAiD,aAAa,cAAc,0BAA0B,cAAc,6KAA6K,sCAAsC,SAAS,gNAAgN,iDAAiD,SAAS,+DAA+D,0BAA0B,gDAAgD,gFAAgF,0BAA0B,IAAI,2CAA2C,yBAAyB,wBAAwB,IAAI,qCAAqC,OAAO,KAAK,QAAQ,iBAAiB,OAAO,kBAAkB,SAAS,QAAQ,iBAAiB,OAAO,iBAAiB,OAAO,iCAAiC,8CAA8C,iDAAiD,aAAa,sCAAsC,SAAS,sCAAsC,QAAQ,cAAc,aAAa,QAAQ,wOAAwO,mBAAmB,uGAAuG,wFAAwF,uNAAuN,sBAAsB,2mBAA2mB,wCAAwC,cAAc,eAAe,sCAAsC,SAAS,wBAAwB,0FAA0F,+BAA+B,QAAQ,2BAA2B,QAAQ,SAAS,QAAQ,OAAO,QAAQ,gBAAgB,UAAU,MAAM,QAAQ,YAAY,mBAAmB,mBAAmB,6MAA6M,8BAA8B,wfAAwf,2DAA2D,GAAG,UAAU,4CAA4C,wCAAwC,SAAS,uDAAuD,YAAY,4BAA4B,aAAa,MAAM,oBAAoB,yEAAyE,2EAA2E,uEAAuE,GAAG,aAAa,+BAA+B,eAAe,qEAAqE,qCAAqC,0EAA0E,iBAAiB,qEAAqE,2LAA2L,aAAa,YAAY,WAAW,qDAAqD,qBAAqB,0IAA0I,YAAY,qBAAqB,KAAK,2BAA2B,2FAA2F,gDAAgD,oGAAoG,iBAAiB,wDAAwD,8BAA8B,6DAA6D,8BAA8B,sPAAsP,gDAAgD,qCAAqC,sCAAsC,SAAS,eAAe,wBAAwB,YAAY,qBAAqB,KAAK,uBAAuB,wCAAwC,aAAa,0CAA0C,+DAA+D,8BAA8B,uDAAuD,iCAAiC,+EAA+E,0BAA0B,mFAAmF,mCAAmC,6BAA6B,sDAAsD,MAAM,UAAU,6DAA6D,MAAM,oDAAoD,qCAAqC,MAAM,0FAA0F,SAAS,yCAAyC,2DAA2D,cAAc,MAAM,UAAU,qHAAqH,MAAM,oDAAoD,qCAAqC,MAAM,0EAA0E,+GAA+G,8BAA8B,UAAU,uEAAuE,0BAA0B,0FAA0F,gCAAgC,UAAU,+HAA+H,0BAA0B,0FAA0F,8CAA8C,mDAAmD,oDAAoD,+BAA+B,8JAA8J,uCAAuC,yDAAyD,2BAA2B,qBAAqB,iFAAiF,2BAA2B,sIAAsI,mDAAmD,oEAAoE,4NAA4N,+RAA+R,wKAAwK,MAAM,UAAU,QAAQ,UAAU,QAAQ,0CAA0C,sMAAsM,8EAA8E,qBAAqB,GAAG,EAAE,GAAG,EAAE,oDAAoD,KAAK,wBAAwB,4CAA4C,iOAAiO,6BAA6B,cAAc,SAAS,+LAA+L,WAAW,sGAAsG,oBAAoB,qGAAqG,8HAA8H,2FAA2F,kFAAkF,GAAG,KAAK,KAAK,kDAAkD,mJAAmJ,yBAAyB,iFAAiF,0DAA0D,YAAY,IAAI,KAAK,oBAAoB,mHAAmH,wDAAwD,2GAA2G,MAAM,8IAA8I,uXAAuX,MAAM,sCAAsC,+UAA+U,MAAM,yEAAyE,oFAAoF,MAAM,0DAA0D,6CAA6C,mGAAmG,2DAA2D,oCAAoC,wFAAwF,oBAAoB,mBAAmB,8QAA8Q,MAAM,qGAAqG,6MAA6M,2GAA2G,yGAAyG,iBAAiB,4TAA4T,MAAM,MAAM,0HAA0H,qSAAqS,uBAAuB,oFAAoF,MAAM,gDAAgD,YAAY,gBAAgB,+BAA+B,SAAS,0BAA0B,oEAAoE,QAAQ,MAAM,EAAE,iCAAiC,8BAA8B,qCAAqC,MAAM,+DAA+D,qFAAqF,qCAAqC,KAAK,uHAAuH,uDAAuD,SAAS,iEAAiE,MAAM,iGAAiG,IAAI,MAAM,SAAS,mJAAmJ,KAAK,8BAA8B,2CAA2C,6DAA6D,yDAAyD,mCAAmC,4BAA4B,EAAE,sCAAsC,+FAA+F,2gBAA2gB,mCAAmC,QAAQ,kGAAkG,SAAS,YAAY,IAAI,KAAK,YAAY,IAAI,KAAK,wCAAwC,kBAAkB,aAAa,OAAO,WAAW,cAAc,YAAY,MAAM,KAAK,YAAY,IAAI,KAAK,wCAAwC,kBAAkB,cAAc,OAAO,WAAW,eAAe,gBAAgB,KAAK,KAAK,YAAY,IAAI,KAAK,wCAAwC,kBAAkB,eAAe,OAAO,WAAW,gBAAgB,cAAc,KAAK,KAAK,YAAY,IAAI,KAAK,wCAAwC,kBAAkB,gBAAgB,OAAO,WAAW,OAAO,+BAA+B,QAAQ,2BAA2B,QAAQ,OAAO,sCAAsC,gBAAgB,sCAAsC,SAAS,gOAAgO,iBAAiB,QAAQ,qBAAqB,+DAA+D,aAAa,oBAAoB,YAAY,yDAAyD,mBAAmB,sEAAsE,iBAAiB,qGAAqG,8EAA8E,SAAS,GAAG,QAAQ,sKAAsK,oBAAoB,qKAAqK,SAAS,YAAY,gBAAgB,oJAAoJ,SAAS,kBAAkB,kCAAkC,+BAA+B,qBAAqB,+CAA+C,mFAAmF,6FAA6F,0BAA0B,KAAK,oDAAoD,8CAA8C,qCAAqC,qBAAqB,WAAW,sCAAsC,SAAS,mDAAmD,yCAAyC,gCAAgC,mBAAmB,wGAAwG,aAAa,eAAe,WAAW,mBAAmB,WAAW,yBAAyB,UAAU,eAAe,mBAAmB,mCAAmC,gBAAgB,gEAAgE,mBAAmB,uCAAuC,eAAe,4GAA4G,YAAY,SAAS,4CAA4C,2CAA2C,cAAc,YAAY,gCAAgC,qFAAqF,SAAS,uBAAuB,8CAA8C,gDAAgD,6BAA6B,qCAAqC,0CAA0C,YAAY,uBAAuB,mEAAmE,iDAAiD,UAAU,yCAAyC,YAAY,WAAW,iBAAiB,gDAAgD,mEAAmE,iCAAiC,yCAAyC,YAAY,WAAW,iBAAiB,SAAS,4BAA4B,yBAAyB,SAAS,IAAI,uCAAuC,SAAS,iBAAiB,YAAY,gCAAgC,QAAQ,6CAA6C,YAAY,WAAW,2BAA2B,SAAS,iBAAiB,+CAA+C,iCAAiC,wBAAwB,MAAM,YAAY,2BAA2B,KAAK,6EAA6E,UAAU,uCAAuC,4BAA4B,2BAA2B,MAAM,oCAAoC,yBAAyB,SAAS,YAAY,WAAW,KAAK,aAAa,MAAM,sCAAsC,mEAAmE,kBAAkB,KAAK,uCAAuC,gDAAgD,4CAA4C,6CAA6C,wDAAwD,aAAa,sCAAsC,SAAS,0FAA0F,oBAAoB,cAAc,cAAc,uBAAuB,0BAA0B,gBAAgB,2CAA2C,cAAc,uBAAuB,aAAa,0BAA0B,sBAAsB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,MAAM,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gCAAgC,+BAA+B,6BAA6B,OAAO,8CAA8C,oBAAoB,eAAe,gBAAgB,yDAAyD,6CAA6C,sBAAsB,mCAAmC,uBAAuB,0GAA0G,gFAAgF,yCAAyC,wBAAwB,yBAAyB,uCAAuC,+CAA+C,oDAAoD,sBAAsB,yBAAyB,+BAA+B,2BAA2B,6CAA6C,iCAAiC,0BAA0B,qDAAqD,iBAAiB,eAAe,QAAQ,IAAI,yCAAyC,qBAAqB,2BAA2B,sBAAsB,EAAE,6EAA6E,OAAO,sBAAsB,qBAAqB,IAAI,qBAAqB,iJAAiJ,yLAAyL,cAAc,iDAAiD,cAAc,wCAAwC,+BAA+B,IAAI,YAAY,IAAI,YAAY,IAAI,mCAAmC,uIAAuI,iEAAiE,mHAAmH,6HAA6H,OAAO,+BAA+B,eAAe,eAAe,kBAAkB,8BAA8B,2KAA2K,gCAAgC,mCAAmC,wBAAwB,eAAe,eAAe,kBAAkB,yCAAyC,oGAAoG,KAAK,qBAAqB,2JAA2J,iCAAiC,kBAAkB,yCAAyC,oGAAoG,KAAK,2BAA2B,sLAAsL,iCAAiC,sBAAsB,gCAAgC,4EAA4E,+FAA+F,uCAAuC,8DAA8D,aAAa,QAAQ,kDAAkD,QAAQ,iBAAiB,4CAA4C,SAAS,kDAAkD,QAAQ,iBAAiB,4CAA4C,UAAU,oEAAoE,4CAA4C,gBAAgB,qCAAqC,aAAa,sCAAsC,SAAS,8EAA8E,cAAc,qCAAqC,YAAY,8DAA8D,aAAa,+BAA+B,yBAAyB,uEAAuE,eAAe,UAAU,WAAW,YAAY,yBAAyB,+BAA+B,YAAY,WAAW,0BAA0B,UAAU,wCAAwC,iBAAiB,6CAA6C,8BAA8B,yBAAyB,iCAAiC,+BAA+B,aAAa,cAAc,6BAA6B,WAAW,sCAAsC,SAAS,uHAAuH,cAAc,yCAAyC,UAAU,oBAAoB,6CAA6C,2BAA2B,YAAY,mCAAmC,cAAc,qCAAqC,uCAAuC,2BAA2B,cAAc,oBAAoB,YAAY,2CAA2C,aAAa,0EAA0E,QAAQ,kBAAkB,UAAU,+DAA+D,4BAA4B,OAAO,WAAW,0DAA0D,OAAO,mBAAmB,aAAa,sCAAsC,SAAS,kCAAkC,QAAQ,cAAc,cAAc,WAAW,gCAAgC,qBAAqB,SAAS,6CAA6C,QAAQ,eAAe,iCAAiC,cAAc,iBAAiB,eAAe,8EAA8E,aAAa,qCAAqC,QAAQ,qBAAqB,aAAa,sCAAsC,SAAS,uKAAuK,OAAO,YAAY,OAAO,CAAC,iFAAiF,sJAAsJ,wBAAwB,kCAAkC,6CAA6C,wOAAwO,eAAe,sCAAsC,SAAS,iEAAiE,eAAe,QAAQ,cAAc,yBAAyB,WAAW,kCAAkC,QAAQ,KAAK,2BAA2B,mCAAmC,aAAa,QAAQ,wHAAwH,SAAS,yFAAyF,YAAY,0BAA0B,oCAAoC,KAAK,2BAA2B,EAAE,kMAAkM,0BAA0B,wBAAwB,IAAI,cAAc,kBAAkB,oBAAoB,qDAAqD,mBAAmB,gBAAgB,mBAAmB,qBAAqB,OAAO,6CAA6C,gGAAgG,oBAAoB,8BAA8B,mBAAmB,uBAAuB,6BAA6B,cAAc,gCAAgC,OAAO,2CAA2C,QAAQ,sBAAsB,aAAa,sCAAsC,SAAS,yCAAyC,QAAQ,cAAc,wCAAwC,qBAAqB,mCAAmC,uBAAuB,4CAA4C,QAAQ,cAAc,oEAAoE,YAAY,wBAAwB,SAAS,yBAAyB,cAAc,qFAAqF,UAAU,yBAAyB,cAAc,0BAA0B,WAAW,wBAAwB,QAAQ,yBAAyB,kBAAkB,0BAA0B,cAAc,yBAAyB,aAAa,0BAA0B,iBAAiB,wBAAwB,iBAAiB,wBAAwB,UAAU,oCAAoC,UAAU,oCAAoC,cAAc,kEAAkE,cAAc,kEAAkE,cAAc,6BAA6B,cAAc,6BAA6B,qBAAqB,gCAAgC,aAAa,yBAAyB,+CAA+C,sCAAsC,kBAAkB,aAAa,yBAAyB,+CAA+C,sCAAsC,kBAAkB,mBAAmB,yBAAyB,iBAAiB,+DAA+D,oBAAoB,kGAAkG,oEAAoE,2DAA2D,iCAAiC,yBAAyB,wBAAwB,oHAAoH,sBAAsB,yHAAyH,0BAA0B,gLAAgL,0BAA0B,sHAAsH,oBAAoB,4EAA4E,4BAA4B,6CAA6C,kBAAkB,QAAQ,UAAU,0EAA0E,WAAW,YAAY,qBAAqB,+CAA+C,sBAAsB,iDAAiD,qBAAqB,0BAA0B,sBAAsB,2CAA2C,YAAY,mBAAmB,aAAa,cAAc,6BAA6B,mCAAmC,0BAA0B,8BAA8B,iDAAiD,qBAAqB,oDAAoD,QAAQ,oCAAoC,UAAU,iDAAiD,kBAAkB,eAAe,sCAAsC,SAAS,oBAAoB,iCAAiC,gCAAgC,cAAc,8GAA8G,uBAAuB,cAAc,8BAA8B,aAAa,4BAA4B,WAAW,wBAAwB,WAAW,sHAAsH,UAAU,uGAAuG,mBAAmB,4CAA4C,SAAS,2CAA2C,8CAA8C,gDAAgD,uBAAuB,gDAAgD,iGAAiG,UAAU,yFAAyF,qGAAqG,gBAAgB,gEAAgE,aAAa,aAAa,sCAAsC,SAAS,okBAAokB,aAAa,sCAAsC,SAAS,+GAA+G,sHAAsH,4CAA4C,SAAS,YAAY,IAAI,KAAK,WAAW,qHAAqH,SAAS,uBAAuB,cAAc,gBAAgB,QAAQ,gBAAgB,YAAY,iBAAiB,eAAe,YAAY,kBAAkB,0BAA0B,mHAAmH,YAAY,IAAI,KAAK,wBAAwB,uBAAuB,mCAAmC,wBAAwB,2EAA2E,2BAA2B,UAAU,qBAAqB,cAAc,+BAA+B,QAAQ,qBAAqB,YAAY,iBAAiB,eAAe,wBAAwB,oBAAoB,2BAA2B,qCAAqC,UAAU,KAAK,8BAA8B,YAAY,0EAA0E,KAAK,IAAI,EAAE,iBAAiB,0BAA0B,SAAS,MAAM,kCAAkC,0IAA0I,YAAY,QAAQ,KAAK,IAAI,EAAE,KAAK,wEAAwE,0CAA0C,2BAA2B,sBAAsB,mCAAmC,0BAA0B,IAAI,SAAS,2BAA2B,IAAI,SAAS,SAAS,sBAAsB,mCAAmC,0BAA0B,IAAI,SAAS,qDAAqD,0BAA0B,IAAI,SAAS,8EAA8E,SAAS,sBAAsB,mCAAmC,0BAA0B,IAAI,SAAS,qDAAqD,0BAA0B,IAAI,SAAS,uEAAuE,0BAA0B,IAAI,SAAS,qEAAqE,UAAU,WAAW,qBAAqB,+CAA+C,mFAAmF,6FAA6F,0BAA0B,KAAK,oDAAoD,8CAA8C,qCAAqC,qBAAqB,WAAW,sCAAsC,SAAS,mDAAmD,0BAA0B,2JAA2J,gDAAgD,eAAe,sBAAsB,eAAe,mMAAmM,kBAAkB,2DAA2D,2BAA2B,YAAY,WAAW,2CAA2C,YAAY,6GAA6G,cAAc,uJAAuJ,cAAc,uJAAuJ,aAAa,sJAAsJ,aAAa,sJAAsJ,cAAc,2JAA2J,0EAA0E,IAAI,6BAA6B,+DAA+D,gBAAgB,uBAAuB,4DAA4D,yBAAyB,OAAO,GAAG,yCAAyC,IAAI,wBAAwB,gCAAgC,QAAQ,eAAe,aAAa,sCAAsC,SAAS,sEAAsE,wCAAwC,+DAA+D,gBAAgB,+BAA+B,4DAA4D,wBAAwB,4GAA4G,iBAAiB,oBAAoB,aAAa,UAAU,aAAa,UAAU,SAAS,sDAAsD,cAAc,sCAAsC,SAAS,+MAA+M,eAAe,MAAM,sTAAsT,sHAAsH,wBAAwB,oSAAoS,MAAM,cAAc,WAAW,+BAA+B,YAAY,YAAY,oDAAoD,SAAS,YAAY,QAAQ,sCAAsC,SAAS,uBAAuB,0CAA0C,6BAA6B,cAAc,6QAA6Q,mBAAmB,oCAAoC,YAAY,gBAAgB,8EAA8E,iBAAiB,qPAAqP,gYAAgY,oIAAoI,IAAI,oBAAoB,qCAAqC,gBAAgB,MAAM;AAC973F;;;;;;;ACDA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@xterm/addon-canvas/lib/addon-canvas.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/process/browser.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.CanvasAddon=t():e.CanvasAddon=t()}(self,(()=>(()=>{\"use strict\";var e={903:(e,t,i)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.BaseRenderLayer=void 0;const s=i(274),r=i(627),o=i(237),n=i(860),a=i(374),h=i(296),l=i(345),c=i(859),d=i(399),_=i(855);class u extends c.Disposable{get canvas(){return this._canvas}get cacheCanvas(){return this._charAtlas?.pages[0].canvas}constructor(e,t,i,r,o,n,a,d,_,u){super(),this._terminal=e,this._container=t,this._alpha=o,this._themeService=n,this._bufferService=a,this._optionsService=d,this._decorationService=_,this._coreBrowserService=u,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._selectionModel=(0,h.createSelectionRenderModel)(),this._bitmapGenerator=[],this._charAtlasDisposable=this.register(new c.MutableDisposable),this._onAddTextureAtlasCanvas=this.register(new l.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._cellColorResolver=new s.CellColorResolver(this._terminal,this._optionsService,this._selectionModel,this._decorationService,this._coreBrowserService,this._themeService),this._canvas=this._coreBrowserService.mainDocument.createElement(\"canvas\"),this._canvas.classList.add(`xterm-${i}-layer`),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._refreshCharAtlas(this._themeService.colors),this.register(this._themeService.onChangeColors((e=>{this._refreshCharAtlas(e),this.reset(),this.handleSelectionChanged(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}))),this.register((0,c.toDisposable)((()=>{this._canvas.remove()})))}_initCanvas(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext(\"2d\",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(){}handleFocus(){}handleCursorMove(){}handleGridChanged(e,t){}handleSelectionChanged(e,t,i=!1){this._selectionModel.update(this._terminal._core,e,t,i)}_setTransparency(e){if(e===this._alpha)return;const t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._themeService.colors),this.handleGridChanged(0,this._bufferService.rows-1)}_refreshCharAtlas(e){if(!(this._deviceCharWidth<=0&&this._deviceCharHeight<=0)){this._charAtlas=(0,r.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,e,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlasDisposable.value=(0,l.forwardEvent)(this._charAtlas.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),this._charAtlas.warmUp();for(let e=0;e>8));if(n_(r,l.relativeLuminance(t>>8))?o:t}return o}const n=a(e,i,s),h=_(r,l.relativeLuminance(n>>8));if(h_(r,l.relativeLuminance(o>>8))?n:o}return n}},e.reduceLuminance=t,e.increaseLuminance=a,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}}(c||(t.rgba=c={})),t.toPaddedHex=d,t.contrastRatio=_},345:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;t} ARR
+ * @param {ARR} arr
+ * @param {function(S, number, ARR):boolean} f
+ * @return {boolean}
+ */
+const some = (arr, f) => {
+ for (let i = 0; i < arr.length; i++) {
+ if (f(arr[i], i, arr)) {
+ return true
+ }
+ }
+ return false
+}
+
+/**
+ * @template ELEM
+ *
+ * @param {ArrayLike
+ `)}
+`;
+/**
+ * A function that returns a {@link @microsoft/fast-foundation#Avatar} registration for configuring the component with a DesignSystem.
+ * {@link @microsoft/fast-foundation#avatarTemplate}
+ *
+ *
+ * @public
+ * @remarks
+ * Generates HTML Element: `
l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#C}O#;dQUO,5>{O#;iQUO'#KwO#>8));if(n_(r,l.relativeLuminance(t>>8))?o:t}return o}const n=a(e,i,s),h=_(r,l.relativeLuminance(n>>8));if(h_(r,l.relativeLuminance(o>>8))?n:o}return n}},e.reduceLuminance=t,e.increaseLuminance=a,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}}(c||(t.rgba=c={})),t.toPaddedHex=d,t.contrastRatio=_},345:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;t} ARR
+ * @param {ARR} arr
+ * @param {function(S, number, ARR):boolean} f
+ * @return {boolean}
+ */
+const some = (arr, f) => {
+ for (let i = 0; i < arr.length; i++) {
+ if (f(arr[i], i, arr)) {
+ return true
+ }
+ }
+ return false
+}
+
+/**
+ * @template ELEM
+ *
+ * @param {ArrayLike