import { require_csharp } from "./chunk-SGM4KGGR.js"; import { __commonJS } from "./chunk-2TUXWMP5.js"; // node_modules/refractor/lang/cshtml.js var require_cshtml = __commonJS({ "node_modules/refractor/lang/cshtml.js"(exports, module) { var refractorCsharp = require_csharp(); module.exports = cshtml; cshtml.displayName = "cshtml"; cshtml.aliases = ["razor"]; function cshtml(Prism) { Prism.register(refractorCsharp); (function(Prism2) { var commentLike = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source; var stringLike = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source; function nested(pattern, depthLog2) { for (var i = 0; i < depthLog2; i++) { pattern = pattern.replace(//g, function() { return "(?:" + pattern + ")"; }); } return pattern.replace(//g, "[^\\s\\S]").replace(//g, "(?:" + stringLike + ")").replace(//g, "(?:" + commentLike + ")"); } var round = nested(/\((?:[^()'"@/]|||)*\)/.source, 2); var square = nested(/\[(?:[^\[\]'"@/]|||)*\]/.source, 2); var curly = nested(/\{(?:[^{}'"@/]|||)*\}/.source, 2); var angle = nested(/<(?:[^<>'"@/]|||)*>/.source, 2); var tagAttrs = /(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source; var tagContent = /(?!\d)[^\s>\/=$<%]+/.source + tagAttrs + /\s*\/?>/.source; var tagRegion = /\B@?/.source + "(?:" + /<([a-zA-Z][\w:]*)/.source + tagAttrs + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag // eslint-disable-next-line regexp/strict /<\/?(?!\1\b)/.source + tagContent + "|" + // nested start tag nested( // eslint-disable-next-line regexp/strict /<\1/.source + tagAttrs + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag // eslint-disable-next-line regexp/strict /<\/?(?!\1\b)/.source + tagContent + "|") + ")*" + // eslint-disable-next-line regexp/strict /<\/\1\s*>/.source, 2 )) + ")*" + // eslint-disable-next-line regexp/strict /<\/\1\s*>/.source + "|" + /