File: C:/Python311/Lib/site-packages/notebook/static/899.5a5d6e7bd36baebe76af.js.map
{"version":3,"file":"899.5a5d6e7bd36baebe76af.js?v=5a5d6e7bd36baebe76af","mappings":";;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA,cAAc;AACd,kBAAkB,kBAAkB;AACpC;AACA;;AAEA;AACA;;AAEA,0CAA0C;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yNAAyN;AACzN,oOAAoO;AACpO,0PAA0P;AAC1P,uiBAAuiB;;AAEviB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,QAAQ;AACR;AACA;AACA;AACA,YAAY;AACZ;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR,kDAAkD;AAClD,kCAAkC;AAClC;AACA,UAAU,2CAA2C;AACrD;AACA,UAAU,sBAAsB,qBAAqB;AACrD;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,YAAY;AACZ,oCAAoC;AACpC;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,kEAAkE;AAC1E;AACA,QAAQ,iBAAiB,KAAK;AAC9B,4BAA4B;AAC5B;AACA,QAAQ;AACR,0BAA0B;AAC1B;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA,+CAA+C;AAC/C;AACA;;AAEA,8EAA8E;;AAE9E;AACA,UAAU,OAAO;AACjB;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,YAAY;AACZ,wEAAwE;AACxE;AACA;AACA,oDAAoD;;AAEpD;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC,0CAA0C;AAC1C;AACA;AACA;AACA;AACA,iCAAiC;AACjC,wCAAwC;AACxC;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA,oBAAoB,uBAAuB,QAAQ;AACnD,oBAAoB,SAAS;AAC7B;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/scheme.js"],"sourcesContent":["var BUILTIN = \"builtin\", COMMENT = \"comment\", STRING = \"string\",\n SYMBOL = \"symbol\", ATOM = \"atom\", NUMBER = \"number\", BRACKET = \"bracket\";\nvar INDENT_WORD_SKIP = 2;\n\nfunction makeKeywords(str) {\n var obj = {}, words = str.split(\" \");\n for (var i = 0; i < words.length; ++i) obj[words[i]] = true;\n return obj;\n}\n\nvar keywords = makeKeywords(\"λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?\");\nvar indentKeys = makeKeywords(\"define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless\");\n\nfunction stateStack(indent, type, prev) { // represents a state stack object\n this.indent = indent;\n this.type = type;\n this.prev = prev;\n}\n\nfunction pushStack(state, indent, type) {\n state.indentStack = new stateStack(indent, type, state.indentStack);\n}\n\nfunction popStack(state) {\n state.indentStack = state.indentStack.prev;\n}\n\nvar binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\\/[01]+#*)?i|[-+]?[01]+#*(?:\\/[01]+#*)?@[-+]?[01]+#*(?:\\/[01]+#*)?|[-+]?[01]+#*(?:\\/[01]+#*)?[-+](?:[01]+#*(?:\\/[01]+#*)?)?i|[-+]?[01]+#*(?:\\/[01]+#*)?)(?=[()\\s;\"]|$)/i);\nvar octalMatcher = new RegExp(/^(?:[-+]i|[-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*\\/\\d+#*))(?=[()\\s;\"]|$)/i);\n\nfunction isBinaryNumber (stream) {\n return stream.match(binaryMatcher);\n}\n\nfunction isOctalNumber (stream) {\n return stream.match(octalMatcher);\n}\n\nfunction isDecimalNumber (stream, backup) {\n if (backup === true) {\n stream.backUp(1);\n }\n return stream.match(decimalMatcher);\n}\n\nfunction isHexNumber (stream) {\n return stream.match(hexMatcher);\n}\n\nfunction processEscapedSequence(stream, options) {\n var next, escaped = false;\n while ((next = stream.next()) != null) {\n if (next == options.token && !escaped) {\n options.state.mode = false;\n break;\n }\n escaped = !escaped && next == \"\\\\\";\n }\n}\n\nexport const scheme = {\n name: \"scheme\",\n startState: function () {\n return {\n indentStack: null,\n indentation: 0,\n mode: false,\n sExprComment: false,\n sExprQuote: false\n };\n },\n\n token: function (stream, state) {\n if (state.indentStack == null && stream.sol()) {\n // update indentation, but only if indentStack is empty\n state.indentation = stream.indentation();\n }\n\n // skip spaces\n if (stream.eatSpace()) {\n return null;\n }\n var returnType = null;\n\n switch(state.mode){\n case \"string\": // multi-line string parsing mode\n processEscapedSequence(stream, {\n token: \"\\\"\",\n state: state\n });\n returnType = STRING; // continue on in scheme-string mode\n break;\n case \"symbol\": // escape symbol\n processEscapedSequence(stream, {\n token: \"|\",\n state: state\n });\n returnType = SYMBOL; // continue on in scheme-symbol mode\n break;\n case \"comment\": // comment parsing mode\n var next, maybeEnd = false;\n while ((next = stream.next()) != null) {\n if (next == \"#\" && maybeEnd) {\n\n state.mode = false;\n break;\n }\n maybeEnd = (next == \"|\");\n }\n returnType = COMMENT;\n break;\n case \"s-expr-comment\": // s-expr commenting mode\n state.mode = false;\n if(stream.peek() == \"(\" || stream.peek() == \"[\"){\n // actually start scheme s-expr commenting mode\n state.sExprComment = 0;\n }else{\n // if not we just comment the entire of the next token\n stream.eatWhile(/[^\\s\\(\\)\\[\\]]/); // eat symbol atom\n returnType = COMMENT;\n break;\n }\n default: // default parsing mode\n var ch = stream.next();\n\n if (ch == \"\\\"\") {\n state.mode = \"string\";\n returnType = STRING;\n\n } else if (ch == \"'\") {\n if (stream.peek() == \"(\" || stream.peek() == \"[\"){\n if (typeof state.sExprQuote != \"number\") {\n state.sExprQuote = 0;\n } // else already in a quoted expression\n returnType = ATOM;\n } else {\n stream.eatWhile(/[\\w_\\-!$%&*+\\.\\/:<=>?@\\^~]/);\n returnType = ATOM;\n }\n } else if (ch == '|') {\n state.mode = \"symbol\";\n returnType = SYMBOL;\n } else if (ch == '#') {\n if (stream.eat(\"|\")) { // Multi-line comment\n state.mode = \"comment\"; // toggle to comment mode\n returnType = COMMENT;\n } else if (stream.eat(/[tf]/i)) { // #t/#f (atom)\n returnType = ATOM;\n } else if (stream.eat(';')) { // S-Expr comment\n state.mode = \"s-expr-comment\";\n returnType = COMMENT;\n } else {\n var numTest = null, hasExactness = false, hasRadix = true;\n if (stream.eat(/[ei]/i)) {\n hasExactness = true;\n } else {\n stream.backUp(1); // must be radix specifier\n }\n if (stream.match(/^#b/i)) {\n numTest = isBinaryNumber;\n } else if (stream.match(/^#o/i)) {\n numTest = isOctalNumber;\n } else if (stream.match(/^#x/i)) {\n numTest = isHexNumber;\n } else if (stream.match(/^#d/i)) {\n numTest = isDecimalNumber;\n } else if (stream.match(/^[-+0-9.]/, false)) {\n hasRadix = false;\n numTest = isDecimalNumber;\n // re-consume the initial # if all matches failed\n } else if (!hasExactness) {\n stream.eat('#');\n }\n if (numTest != null) {\n if (hasRadix && !hasExactness) {\n // consume optional exactness after radix\n stream.match(/^#[ei]/i);\n }\n if (numTest(stream))\n returnType = NUMBER;\n }\n }\n } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal\n returnType = NUMBER;\n } else if (ch == \";\") { // comment\n stream.skipToEnd(); // rest of the line is a comment\n returnType = COMMENT;\n } else if (ch == \"(\" || ch == \"[\") {\n var keyWord = ''; var indentTemp = stream.column(), letter;\n /**\n Either\n (indent-word ..\n (non-indent-word ..\n (;something else, bracket, etc.\n */\n\n while ((letter = stream.eat(/[^\\s\\(\\[\\;\\)\\]]/)) != null) {\n keyWord += letter;\n }\n\n if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word\n\n pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);\n } else { // non-indent word\n // we continue eating the spaces\n stream.eatSpace();\n if (stream.eol() || stream.peek() == \";\") {\n // nothing significant after\n // we restart indentation 1 space after\n pushStack(state, indentTemp + 1, ch);\n } else {\n pushStack(state, indentTemp + stream.current().length, ch); // else we match\n }\n }\n stream.backUp(stream.current().length - 1); // undo all the eating\n\n if(typeof state.sExprComment == \"number\") state.sExprComment++;\n if(typeof state.sExprQuote == \"number\") state.sExprQuote++;\n\n returnType = BRACKET;\n } else if (ch == \")\" || ch == \"]\") {\n returnType = BRACKET;\n if (state.indentStack != null && state.indentStack.type == (ch == \")\" ? \"(\" : \"[\")) {\n popStack(state);\n\n if(typeof state.sExprComment == \"number\"){\n if(--state.sExprComment == 0){\n returnType = COMMENT; // final closing bracket\n state.sExprComment = false; // turn off s-expr commenting mode\n }\n }\n if(typeof state.sExprQuote == \"number\"){\n if(--state.sExprQuote == 0){\n returnType = ATOM; // final closing bracket\n state.sExprQuote = false; // turn off s-expr quote mode\n }\n }\n }\n } else {\n stream.eatWhile(/[\\w_\\-!$%&*+\\.\\/:<=>?@\\^~]/);\n\n if (keywords && keywords.propertyIsEnumerable(stream.current())) {\n returnType = BUILTIN;\n } else returnType = \"variable\";\n }\n }\n return (typeof state.sExprComment == \"number\") ? COMMENT : ((typeof state.sExprQuote == \"number\") ? ATOM : returnType);\n },\n\n indent: function (state) {\n if (state.indentStack == null) return state.indentation;\n return state.indentStack.indent;\n },\n\n languageData: {\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", '\"']},\n commentTokens: {line: \";;\"}\n }\n};\n"],"names":[],"sourceRoot":""}