%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/livescript-Dpfx6Fgf.chunk.mjs.map |
{"version":3,"file":"livescript-Dpfx6Fgf.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/livescript.js"],"sourcesContent":["const KEYWORDS = [\n \"as\", // for exports\n \"in\",\n \"of\",\n \"if\",\n \"for\",\n \"while\",\n \"finally\",\n \"var\",\n \"new\",\n \"function\",\n \"do\",\n \"return\",\n \"void\",\n \"else\",\n \"break\",\n \"catch\",\n \"instanceof\",\n \"with\",\n \"throw\",\n \"case\",\n \"default\",\n \"try\",\n \"switch\",\n \"continue\",\n \"typeof\",\n \"delete\",\n \"let\",\n \"yield\",\n \"const\",\n \"class\",\n // JS handles these with a special rule\n // \"get\",\n // \"set\",\n \"debugger\",\n \"async\",\n \"await\",\n \"static\",\n \"import\",\n \"from\",\n \"export\",\n \"extends\"\n];\nconst LITERALS = [\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n \"NaN\",\n \"Infinity\"\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects\nconst TYPES = [\n // Fundamental objects\n \"Object\",\n \"Function\",\n \"Boolean\",\n \"Symbol\",\n // numbers and dates\n \"Math\",\n \"Date\",\n \"Number\",\n \"BigInt\",\n // text\n \"String\",\n \"RegExp\",\n // Indexed collections\n \"Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n // Keyed collections\n \"Set\",\n \"Map\",\n \"WeakSet\",\n \"WeakMap\",\n // Structured data\n \"ArrayBuffer\",\n \"SharedArrayBuffer\",\n \"Atomics\",\n \"DataView\",\n \"JSON\",\n // Control abstraction objects\n \"Promise\",\n \"Generator\",\n \"GeneratorFunction\",\n \"AsyncFunction\",\n // Reflection\n \"Reflect\",\n \"Proxy\",\n // Internationalization\n \"Intl\",\n // WebAssembly\n \"WebAssembly\"\n];\n\nconst ERROR_TYPES = [\n \"Error\",\n \"EvalError\",\n \"InternalError\",\n \"RangeError\",\n \"ReferenceError\",\n \"SyntaxError\",\n \"TypeError\",\n \"URIError\"\n];\n\nconst BUILT_IN_GLOBALS = [\n \"setInterval\",\n \"setTimeout\",\n \"clearInterval\",\n \"clearTimeout\",\n\n \"require\",\n \"exports\",\n\n \"eval\",\n \"isFinite\",\n \"isNaN\",\n \"parseFloat\",\n \"parseInt\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"unescape\"\n];\n\nconst BUILT_INS = [].concat(\n BUILT_IN_GLOBALS,\n TYPES,\n ERROR_TYPES\n);\n\n/*\nLanguage: LiveScript\nAuthor: Taneli Vatanen <taneli.vatanen@gmail.com>\nContributors: Jen Evers-Corvina <jen@sevvie.net>\nOrigin: coffeescript.js\nDescription: LiveScript is a programming language that transcompiles to JavaScript. For info about language see http://livescript.net/\nWebsite: https://livescript.net\nCategory: scripting\n*/\n\n\nfunction livescript(hljs) {\n const LIVESCRIPT_BUILT_INS = [\n 'npm',\n 'print'\n ];\n const LIVESCRIPT_LITERALS = [\n 'yes',\n 'no',\n 'on',\n 'off',\n 'it',\n 'that',\n 'void'\n ];\n const LIVESCRIPT_KEYWORDS = [\n 'then',\n 'unless',\n 'until',\n 'loop',\n 'of',\n 'by',\n 'when',\n 'and',\n 'or',\n 'is',\n 'isnt',\n 'not',\n 'it',\n 'that',\n 'otherwise',\n 'from',\n 'to',\n 'til',\n 'fallthrough',\n 'case',\n 'enum',\n 'native',\n 'list',\n 'map',\n '__hasProp',\n '__extends',\n '__slice',\n '__bind',\n '__indexOf'\n ];\n const KEYWORDS$1 = {\n keyword: KEYWORDS.concat(LIVESCRIPT_KEYWORDS),\n literal: LITERALS.concat(LIVESCRIPT_LITERALS),\n built_in: BUILT_INS.concat(LIVESCRIPT_BUILT_INS)\n };\n const JS_IDENT_RE = '[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*';\n const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE });\n const SUBST = {\n className: 'subst',\n begin: /#\\{/,\n end: /\\}/,\n keywords: KEYWORDS$1\n };\n const SUBST_SIMPLE = {\n className: 'subst',\n begin: /#[A-Za-z$_]/,\n end: /(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,\n keywords: KEYWORDS$1\n };\n const EXPRESSIONS = [\n hljs.BINARY_NUMBER_MODE,\n {\n className: 'number',\n begin: '(\\\\b0[xX][a-fA-F0-9_]+)|(\\\\b\\\\d(\\\\d|_\\\\d)*(\\\\.(\\\\d(\\\\d|_\\\\d)*)?)?(_*[eE]([-+]\\\\d(_\\\\d|\\\\d)*)?)?[_a-z]*)',\n relevance: 0,\n starts: {\n end: '(\\\\s*/)?',\n relevance: 0\n } // a number tries to eat the following slash to prevent treating it as a regexp\n },\n {\n className: 'string',\n variants: [\n {\n begin: /'''/,\n end: /'''/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n },\n {\n begin: /'/,\n end: /'/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n },\n {\n begin: /\"\"\"/,\n end: /\"\"\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n SUBST_SIMPLE\n ]\n },\n {\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n SUBST_SIMPLE\n ]\n },\n {\n begin: /\\\\/,\n end: /(\\s|$)/,\n excludeEnd: true\n }\n ]\n },\n {\n className: 'regexp',\n variants: [\n {\n begin: '//',\n end: '//[gim]*',\n contains: [\n SUBST,\n hljs.HASH_COMMENT_MODE\n ]\n },\n {\n // regex can't start with space to parse x / 2 / 3 as two divisions\n // regex can't start with *, and it supports an \"illegal\" in the main mode\n begin: /\\/(?![ *])(\\\\.|[^\\\\\\n])*?\\/[gim]*(?=\\W)/ }\n ]\n },\n { begin: '@' + JS_IDENT_RE },\n {\n begin: '``',\n end: '``',\n excludeBegin: true,\n excludeEnd: true,\n subLanguage: 'javascript'\n }\n ];\n SUBST.contains = EXPRESSIONS;\n\n const PARAMS = {\n className: 'params',\n begin: '\\\\(',\n returnBegin: true,\n /* We need another contained nameless mode to not have every nested\n pair of parens to be called \"params\" */\n contains: [\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS$1,\n contains: [ 'self' ].concat(EXPRESSIONS)\n }\n ]\n };\n\n const SYMBOLS = { begin: '(#=>|=>|\\\\|>>|-?->|!->)' };\n\n const CLASS_DEFINITION = {\n variants: [\n { match: [\n /class\\s+/,\n JS_IDENT_RE,\n /\\s+extends\\s+/,\n JS_IDENT_RE\n ] },\n { match: [\n /class\\s+/,\n JS_IDENT_RE\n ] }\n ],\n scope: {\n 2: \"title.class\",\n 4: \"title.class.inherited\"\n },\n keywords: KEYWORDS$1\n };\n\n return {\n name: 'LiveScript',\n aliases: [ 'ls' ],\n keywords: KEYWORDS$1,\n illegal: /\\/\\*/,\n contains: EXPRESSIONS.concat([\n hljs.COMMENT('\\\\/\\\\*', '\\\\*\\\\/'),\n hljs.HASH_COMMENT_MODE,\n SYMBOLS, // relevance booster\n {\n className: 'function',\n contains: [\n TITLE,\n PARAMS\n ],\n returnBegin: true,\n variants: [\n {\n begin: '(' + JS_IDENT_RE + '\\\\s*(?:=|:=)\\\\s*)?(\\\\(.*\\\\)\\\\s*)?\\\\B->\\\\*?',\n end: '->\\\\*?'\n },\n {\n begin: '(' + JS_IDENT_RE + '\\\\s*(?:=|:=)\\\\s*)?!?(\\\\(.*\\\\)\\\\s*)?\\\\B[-~]{1,2}>\\\\*?',\n end: '[-~]{1,2}>\\\\*?'\n },\n {\n begin: '(' + JS_IDENT_RE + '\\\\s*(?:=|:=)\\\\s*)?(\\\\(.*\\\\)\\\\s*)?\\\\B!?[-~]{1,2}>\\\\*?',\n end: '!?[-~]{1,2}>\\\\*?'\n }\n ]\n },\n CLASS_DEFINITION,\n {\n begin: JS_IDENT_RE + ':',\n end: ':',\n returnBegin: true,\n returnEnd: true,\n relevance: 0\n }\n ])\n };\n}\n\nmodule.exports = livescript;\n"],"names":["KEYWORDS","LITERALS","TYPES","ERROR_TYPES","BUILT_IN_GLOBALS","BUILT_INS","livescript","hljs","LIVESCRIPT_BUILT_INS","LIVESCRIPT_LITERALS","LIVESCRIPT_KEYWORDS","KEYWORDS$1","JS_IDENT_RE","TITLE","SUBST","SUBST_SIMPLE","EXPRESSIONS","PARAMS","SYMBOLS","CLASS_DEFINITION","livescript_1"],"mappings":";4YAAA,MAAMA,EAAW,CACf,KACA,KACA,KACA,KACA,MACA,QACA,UACA,MACA,MACA,WACA,KACA,SACA,OACA,OACA,QACA,QACA,aACA,OACA,QACA,OACA,UACA,MACA,SACA,WACA,SACA,SACA,MACA,QACA,QACA,QAIA,WACA,QACA,QACA,SACA,SACA,OACA,SACA,SACF,EACMC,EAAW,CACf,OACA,QACA,OACA,YACA,MACA,UACF,EAGMC,EAAQ,CAEZ,SACA,WACA,UACA,SAEA,OACA,OACA,SACA,SAEA,SACA,SAEA,QACA,eACA,eACA,YACA,aACA,oBACA,aACA,aACA,cACA,cACA,gBACA,iBAEA,MACA,MACA,UACA,UAEA,cACA,oBACA,UACA,WACA,OAEA,UACA,YACA,oBACA,gBAEA,UACA,QAEA,OAEA,aACF,EAEMC,EAAc,CAClB,QACA,YACA,gBACA,aACA,iBACA,cACA,YACA,UACF,EAEMC,EAAmB,CACvB,cACA,aACA,gBACA,eAEA,UACA,UAEA,OACA,WACA,QACA,aACA,WACA,YACA,qBACA,YACA,qBACA,SACA,UACF,EAEMC,EAAY,CAAE,EAAC,OACnBD,EACAF,EACAC,CACF,EAaA,SAASG,EAAWC,EAAM,CACxB,MAAMC,EAAuB,CAC3B,MACA,OACJ,EACQC,EAAsB,CAC1B,MACA,KACA,KACA,MACA,KACA,OACA,MACJ,EACQC,EAAsB,CAC1B,OACA,SACA,QACA,OACA,KACA,KACA,OACA,MACA,KACA,KACA,OACA,MACA,KACA,OACA,YACA,OACA,KACA,MACA,cACA,OACA,OACA,SACA,OACA,MACA,YACA,YACA,UACA,SACA,WACJ,EACQC,EAAa,CACjB,QAASX,EAAS,OAAOU,CAAmB,EAC5C,QAAST,EAAS,OAAOQ,CAAmB,EAC5C,SAAUJ,EAAU,OAAOG,CAAoB,CACnD,EACQI,EAAc,8CACdC,EAAQN,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAOK,CAAW,CAAE,EAC5DE,EAAQ,CACZ,UAAW,QACX,MAAO,MACP,IAAK,KACL,SAAUH,CACd,EACQI,EAAe,CACnB,UAAW,QACX,MAAO,cACP,IAAK,oCACL,SAAUJ,CACd,EACQK,EAAc,CAClBT,EAAK,mBACL,CACE,UAAW,SACX,MAAO,0GACP,UAAW,EACX,OAAQ,CACN,IAAK,WACL,UAAW,CACZ,CACF,EACD,CACE,UAAW,SACX,SAAU,CACR,CACE,MAAO,MACP,IAAK,MACL,SAAU,CAAEA,EAAK,gBAAkB,CACpC,EACD,CACE,MAAO,IACP,IAAK,IACL,SAAU,CAAEA,EAAK,gBAAkB,CACpC,EACD,CACE,MAAO,MACP,IAAK,MACL,SAAU,CACRA,EAAK,iBACLO,EACAC,CACD,CACF,EACD,CACE,MAAO,IACP,IAAK,IACL,SAAU,CACRR,EAAK,iBACLO,EACAC,CACD,CACF,EACD,CACE,MAAO,KACP,IAAK,SACL,WAAY,EACb,CACF,CACF,EACD,CACE,UAAW,SACX,SAAU,CACR,CACE,MAAO,KACP,IAAK,WACL,SAAU,CACRD,EACAP,EAAK,iBACN,CACF,EACD,CAGE,MAAO,yCAA2C,CACrD,CACF,EACD,CAAE,MAAO,IAAMK,CAAa,EAC5B,CACE,MAAO,KACP,IAAK,KACL,aAAc,GACd,WAAY,GACZ,YAAa,YACd,CACL,EACEE,EAAM,SAAWE,EAEjB,MAAMC,EAAS,CACb,UAAW,SACX,MAAO,MACP,YAAa,GAGb,SAAU,CACR,CACE,MAAO,KACP,IAAK,KACL,SAAUN,EACV,SAAU,CAAE,QAAS,OAAOK,CAAW,CACxC,CACF,CACL,EAEQE,EAAU,CAAE,MAAO,2BAEnBC,EAAmB,CACvB,SAAU,CACR,CAAE,MAAO,CACP,WACAP,EACA,gBACAA,CACR,CAAS,EACH,CAAE,MAAO,CACP,WACAA,CACR,CAAS,CACJ,EACD,MAAO,CACL,EAAG,cACH,EAAG,uBACJ,EACD,SAAUD,CACd,EAEE,MAAO,CACL,KAAM,aACN,QAAS,CAAE,IAAM,EACjB,SAAUA,EACV,QAAS,OACT,SAAUK,EAAY,OAAO,CAC3BT,EAAK,QAAQ,SAAU,QAAQ,EAC/BA,EAAK,kBACLW,EACA,CACE,UAAW,WACX,SAAU,CACRL,EACAI,CACD,EACD,YAAa,GACb,SAAU,CACR,CACE,MAAO,IAAML,EAAc,6CAC3B,IAAK,QACN,EACD,CACE,MAAO,IAAMA,EAAc,uDAC3B,IAAK,gBACN,EACD,CACE,MAAO,IAAMA,EAAc,uDAC3B,IAAK,kBACN,CACF,CACF,EACDO,EACA,CACE,MAAOP,EAAc,IACrB,IAAK,IACL,YAAa,GACb,UAAW,GACX,UAAW,CACZ,CACP,CAAK,CACL,CACA,CAEA,IAAAQ,EAAiBd","x_google_ignoreList":[0]}