All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.f15362a7feef894b2e7f706252e6c510.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"sources":["webpack://graylog-web-interface/f15362a7feef894b2e7f706252e6c510.js"],"sourcesContent":["ace.define(\"ace/ext/simple_tokenizer\",[\"require\",\"exports\",\"module\",\"ace/tokenizer\",\"ace/layer/text_util\"], function(require, exports, module){\"use strict\";\nvar Tokenizer = require(\"../tokenizer\").Tokenizer;\nvar isTextToken = require(\"../layer/text_util\").isTextToken;\nvar SimpleTokenizer = /** @class */ (function () {\n    function SimpleTokenizer(content, tokenizer) {\n        this._lines = content.split(/\\r\\n|\\r|\\n/);\n        this._states = [];\n        this._tokenizer = tokenizer;\n    }\n    SimpleTokenizer.prototype.getTokens = function (row) {\n        var line = this._lines[row];\n        var previousState = this._states[row - 1];\n        var data = this._tokenizer.getLineTokens(line, previousState);\n        this._states[row] = data.state;\n        return data.tokens;\n    };\n    SimpleTokenizer.prototype.getLength = function () {\n        return this._lines.length;\n    };\n    return SimpleTokenizer;\n}());\nfunction tokenize(content, highlightRules) {\n    var tokenizer = new SimpleTokenizer(content, new Tokenizer(highlightRules.getRules()));\n    var result = [];\n    for (var lineIndex = 0; lineIndex < tokenizer.getLength(); lineIndex++) {\n        var lineTokens = tokenizer.getTokens(lineIndex);\n        result.push(lineTokens.map(function (token) { return ({\n            className: isTextToken(token.type) ? undefined : \"ace_\" + token.type.replace(/\\./g, \" ace_\"),\n            value: token.value\n        }); }));\n    }\n    return result;\n}\nmodule.exports = {\n    tokenize: tokenize\n};\n\n});                (function() {\n                    ace.require([\"ace/ext/simple_tokenizer\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "],"mappings":"oEAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,KAAI,OAAO,2BAA2B,CAAC,UAAU,UAAU,SAAS,gBAAgB,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e6c510","__commonJSMin","exports","module","require","Tokenizer","isTextToken","SimpleTokenizer","content","tokenizer","row","line","previousState","data","tokenize","highlightRules","result","lineIndex","lineTokens","token","m"],"sourceRoot":"","file":"f15362a7feef894b2e7f706252e6c510.js"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy