chunk-APHQCZPF.js 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837
  1. import {
  2. require_codemirror
  3. } from "./chunk-SPLH5WDX.js";
  4. import {
  5. __commonJS
  6. } from "./chunk-2LSFTFF7.js";
  7. // node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/mode/css/css.js
  8. var require_css = __commonJS({
  9. "node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/mode/css/css.js"(exports, module) {
  10. (function(mod) {
  11. if (typeof exports == "object" && typeof module == "object")
  12. mod(require_codemirror());
  13. else if (typeof define == "function" && define.amd)
  14. define(["../../lib/codemirror"], mod);
  15. else
  16. mod(CodeMirror);
  17. })(function(CodeMirror2) {
  18. "use strict";
  19. CodeMirror2.defineMode("css", function(config, parserConfig) {
  20. var inline = parserConfig.inline;
  21. if (!parserConfig.propertyKeywords)
  22. parserConfig = CodeMirror2.resolveMode("text/css");
  23. var indentUnit = config.indentUnit, tokenHooks = parserConfig.tokenHooks, documentTypes2 = parserConfig.documentTypes || {}, mediaTypes2 = parserConfig.mediaTypes || {}, mediaFeatures2 = parserConfig.mediaFeatures || {}, mediaValueKeywords2 = parserConfig.mediaValueKeywords || {}, propertyKeywords2 = parserConfig.propertyKeywords || {}, nonStandardPropertyKeywords2 = parserConfig.nonStandardPropertyKeywords || {}, fontProperties2 = parserConfig.fontProperties || {}, counterDescriptors2 = parserConfig.counterDescriptors || {}, colorKeywords2 = parserConfig.colorKeywords || {}, valueKeywords2 = parserConfig.valueKeywords || {}, allowNested = parserConfig.allowNested, lineComment = parserConfig.lineComment, supportsAtComponent = parserConfig.supportsAtComponent === true, highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
  24. var type, override;
  25. function ret(style, tp) {
  26. type = tp;
  27. return style;
  28. }
  29. function tokenBase(stream, state) {
  30. var ch = stream.next();
  31. if (tokenHooks[ch]) {
  32. var result = tokenHooks[ch](stream, state);
  33. if (result !== false)
  34. return result;
  35. }
  36. if (ch == "@") {
  37. stream.eatWhile(/[\w\\\-]/);
  38. return ret("def", stream.current());
  39. } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
  40. return ret(null, "compare");
  41. } else if (ch == '"' || ch == "'") {
  42. state.tokenize = tokenString(ch);
  43. return state.tokenize(stream, state);
  44. } else if (ch == "#") {
  45. stream.eatWhile(/[\w\\\-]/);
  46. return ret("atom", "hash");
  47. } else if (ch == "!") {
  48. stream.match(/^\s*\w*/);
  49. return ret("keyword", "important");
  50. } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
  51. stream.eatWhile(/[\w.%]/);
  52. return ret("number", "unit");
  53. } else if (ch === "-") {
  54. if (/[\d.]/.test(stream.peek())) {
  55. stream.eatWhile(/[\w.%]/);
  56. return ret("number", "unit");
  57. } else if (stream.match(/^-[\w\\\-]*/)) {
  58. stream.eatWhile(/[\w\\\-]/);
  59. if (stream.match(/^\s*:/, false))
  60. return ret("variable-2", "variable-definition");
  61. return ret("variable-2", "variable");
  62. } else if (stream.match(/^\w+-/)) {
  63. return ret("meta", "meta");
  64. }
  65. } else if (/[,+>*\/]/.test(ch)) {
  66. return ret(null, "select-op");
  67. } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
  68. return ret("qualifier", "qualifier");
  69. } else if (/[:;{}\[\]\(\)]/.test(ch)) {
  70. return ret(null, ch);
  71. } else if (stream.match(/^[\w-.]+(?=\()/)) {
  72. if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
  73. state.tokenize = tokenParenthesized;
  74. }
  75. return ret("variable callee", "variable");
  76. } else if (/[\w\\\-]/.test(ch)) {
  77. stream.eatWhile(/[\w\\\-]/);
  78. return ret("property", "word");
  79. } else {
  80. return ret(null, null);
  81. }
  82. }
  83. function tokenString(quote) {
  84. return function(stream, state) {
  85. var escaped = false, ch;
  86. while ((ch = stream.next()) != null) {
  87. if (ch == quote && !escaped) {
  88. if (quote == ")")
  89. stream.backUp(1);
  90. break;
  91. }
  92. escaped = !escaped && ch == "\\";
  93. }
  94. if (ch == quote || !escaped && quote != ")")
  95. state.tokenize = null;
  96. return ret("string", "string");
  97. };
  98. }
  99. function tokenParenthesized(stream, state) {
  100. stream.next();
  101. if (!stream.match(/^\s*[\"\')]/, false))
  102. state.tokenize = tokenString(")");
  103. else
  104. state.tokenize = null;
  105. return ret(null, "(");
  106. }
  107. function Context(type2, indent, prev) {
  108. this.type = type2;
  109. this.indent = indent;
  110. this.prev = prev;
  111. }
  112. function pushContext(state, stream, type2, indent) {
  113. state.context = new Context(type2, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
  114. return type2;
  115. }
  116. function popContext(state) {
  117. if (state.context.prev)
  118. state.context = state.context.prev;
  119. return state.context.type;
  120. }
  121. function pass(type2, stream, state) {
  122. return states[state.context.type](type2, stream, state);
  123. }
  124. function popAndPass(type2, stream, state, n) {
  125. for (var i = n || 1; i > 0; i--)
  126. state.context = state.context.prev;
  127. return pass(type2, stream, state);
  128. }
  129. function wordAsValue(stream) {
  130. var word = stream.current().toLowerCase();
  131. if (valueKeywords2.hasOwnProperty(word))
  132. override = "atom";
  133. else if (colorKeywords2.hasOwnProperty(word))
  134. override = "keyword";
  135. else
  136. override = "variable";
  137. }
  138. var states = {};
  139. states.top = function(type2, stream, state) {
  140. if (type2 == "{") {
  141. return pushContext(state, stream, "block");
  142. } else if (type2 == "}" && state.context.prev) {
  143. return popContext(state);
  144. } else if (supportsAtComponent && /@component/i.test(type2)) {
  145. return pushContext(state, stream, "atComponentBlock");
  146. } else if (/^@(-moz-)?document$/i.test(type2)) {
  147. return pushContext(state, stream, "documentTypes");
  148. } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type2)) {
  149. return pushContext(state, stream, "atBlock");
  150. } else if (/^@(font-face|counter-style)/i.test(type2)) {
  151. state.stateArg = type2;
  152. return "restricted_atBlock_before";
  153. } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type2)) {
  154. return "keyframes";
  155. } else if (type2 && type2.charAt(0) == "@") {
  156. return pushContext(state, stream, "at");
  157. } else if (type2 == "hash") {
  158. override = "builtin";
  159. } else if (type2 == "word") {
  160. override = "tag";
  161. } else if (type2 == "variable-definition") {
  162. return "maybeprop";
  163. } else if (type2 == "interpolation") {
  164. return pushContext(state, stream, "interpolation");
  165. } else if (type2 == ":") {
  166. return "pseudo";
  167. } else if (allowNested && type2 == "(") {
  168. return pushContext(state, stream, "parens");
  169. }
  170. return state.context.type;
  171. };
  172. states.block = function(type2, stream, state) {
  173. if (type2 == "word") {
  174. var word = stream.current().toLowerCase();
  175. if (propertyKeywords2.hasOwnProperty(word)) {
  176. override = "property";
  177. return "maybeprop";
  178. } else if (nonStandardPropertyKeywords2.hasOwnProperty(word)) {
  179. override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
  180. return "maybeprop";
  181. } else if (allowNested) {
  182. override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
  183. return "block";
  184. } else {
  185. override += " error";
  186. return "maybeprop";
  187. }
  188. } else if (type2 == "meta") {
  189. return "block";
  190. } else if (!allowNested && (type2 == "hash" || type2 == "qualifier")) {
  191. override = "error";
  192. return "block";
  193. } else {
  194. return states.top(type2, stream, state);
  195. }
  196. };
  197. states.maybeprop = function(type2, stream, state) {
  198. if (type2 == ":")
  199. return pushContext(state, stream, "prop");
  200. return pass(type2, stream, state);
  201. };
  202. states.prop = function(type2, stream, state) {
  203. if (type2 == ";")
  204. return popContext(state);
  205. if (type2 == "{" && allowNested)
  206. return pushContext(state, stream, "propBlock");
  207. if (type2 == "}" || type2 == "{")
  208. return popAndPass(type2, stream, state);
  209. if (type2 == "(")
  210. return pushContext(state, stream, "parens");
  211. if (type2 == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {
  212. override += " error";
  213. } else if (type2 == "word") {
  214. wordAsValue(stream);
  215. } else if (type2 == "interpolation") {
  216. return pushContext(state, stream, "interpolation");
  217. }
  218. return "prop";
  219. };
  220. states.propBlock = function(type2, _stream, state) {
  221. if (type2 == "}")
  222. return popContext(state);
  223. if (type2 == "word") {
  224. override = "property";
  225. return "maybeprop";
  226. }
  227. return state.context.type;
  228. };
  229. states.parens = function(type2, stream, state) {
  230. if (type2 == "{" || type2 == "}")
  231. return popAndPass(type2, stream, state);
  232. if (type2 == ")")
  233. return popContext(state);
  234. if (type2 == "(")
  235. return pushContext(state, stream, "parens");
  236. if (type2 == "interpolation")
  237. return pushContext(state, stream, "interpolation");
  238. if (type2 == "word")
  239. wordAsValue(stream);
  240. return "parens";
  241. };
  242. states.pseudo = function(type2, stream, state) {
  243. if (type2 == "meta")
  244. return "pseudo";
  245. if (type2 == "word") {
  246. override = "variable-3";
  247. return state.context.type;
  248. }
  249. return pass(type2, stream, state);
  250. };
  251. states.documentTypes = function(type2, stream, state) {
  252. if (type2 == "word" && documentTypes2.hasOwnProperty(stream.current())) {
  253. override = "tag";
  254. return state.context.type;
  255. } else {
  256. return states.atBlock(type2, stream, state);
  257. }
  258. };
  259. states.atBlock = function(type2, stream, state) {
  260. if (type2 == "(")
  261. return pushContext(state, stream, "atBlock_parens");
  262. if (type2 == "}" || type2 == ";")
  263. return popAndPass(type2, stream, state);
  264. if (type2 == "{")
  265. return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
  266. if (type2 == "interpolation")
  267. return pushContext(state, stream, "interpolation");
  268. if (type2 == "word") {
  269. var word = stream.current().toLowerCase();
  270. if (word == "only" || word == "not" || word == "and" || word == "or")
  271. override = "keyword";
  272. else if (mediaTypes2.hasOwnProperty(word))
  273. override = "attribute";
  274. else if (mediaFeatures2.hasOwnProperty(word))
  275. override = "property";
  276. else if (mediaValueKeywords2.hasOwnProperty(word))
  277. override = "keyword";
  278. else if (propertyKeywords2.hasOwnProperty(word))
  279. override = "property";
  280. else if (nonStandardPropertyKeywords2.hasOwnProperty(word))
  281. override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
  282. else if (valueKeywords2.hasOwnProperty(word))
  283. override = "atom";
  284. else if (colorKeywords2.hasOwnProperty(word))
  285. override = "keyword";
  286. else
  287. override = "error";
  288. }
  289. return state.context.type;
  290. };
  291. states.atComponentBlock = function(type2, stream, state) {
  292. if (type2 == "}")
  293. return popAndPass(type2, stream, state);
  294. if (type2 == "{")
  295. return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
  296. if (type2 == "word")
  297. override = "error";
  298. return state.context.type;
  299. };
  300. states.atBlock_parens = function(type2, stream, state) {
  301. if (type2 == ")")
  302. return popContext(state);
  303. if (type2 == "{" || type2 == "}")
  304. return popAndPass(type2, stream, state, 2);
  305. return states.atBlock(type2, stream, state);
  306. };
  307. states.restricted_atBlock_before = function(type2, stream, state) {
  308. if (type2 == "{")
  309. return pushContext(state, stream, "restricted_atBlock");
  310. if (type2 == "word" && state.stateArg == "@counter-style") {
  311. override = "variable";
  312. return "restricted_atBlock_before";
  313. }
  314. return pass(type2, stream, state);
  315. };
  316. states.restricted_atBlock = function(type2, stream, state) {
  317. if (type2 == "}") {
  318. state.stateArg = null;
  319. return popContext(state);
  320. }
  321. if (type2 == "word") {
  322. if (state.stateArg == "@font-face" && !fontProperties2.hasOwnProperty(stream.current().toLowerCase()) || state.stateArg == "@counter-style" && !counterDescriptors2.hasOwnProperty(stream.current().toLowerCase()))
  323. override = "error";
  324. else
  325. override = "property";
  326. return "maybeprop";
  327. }
  328. return "restricted_atBlock";
  329. };
  330. states.keyframes = function(type2, stream, state) {
  331. if (type2 == "word") {
  332. override = "variable";
  333. return "keyframes";
  334. }
  335. if (type2 == "{")
  336. return pushContext(state, stream, "top");
  337. return pass(type2, stream, state);
  338. };
  339. states.at = function(type2, stream, state) {
  340. if (type2 == ";")
  341. return popContext(state);
  342. if (type2 == "{" || type2 == "}")
  343. return popAndPass(type2, stream, state);
  344. if (type2 == "word")
  345. override = "tag";
  346. else if (type2 == "hash")
  347. override = "builtin";
  348. return "at";
  349. };
  350. states.interpolation = function(type2, stream, state) {
  351. if (type2 == "}")
  352. return popContext(state);
  353. if (type2 == "{" || type2 == ";")
  354. return popAndPass(type2, stream, state);
  355. if (type2 == "word")
  356. override = "variable";
  357. else if (type2 != "variable" && type2 != "(" && type2 != ")")
  358. override = "error";
  359. return "interpolation";
  360. };
  361. return {
  362. startState: function(base) {
  363. return {
  364. tokenize: null,
  365. state: inline ? "block" : "top",
  366. stateArg: null,
  367. context: new Context(inline ? "block" : "top", base || 0, null)
  368. };
  369. },
  370. token: function(stream, state) {
  371. if (!state.tokenize && stream.eatSpace())
  372. return null;
  373. var style = (state.tokenize || tokenBase)(stream, state);
  374. if (style && typeof style == "object") {
  375. type = style[1];
  376. style = style[0];
  377. }
  378. override = style;
  379. if (type != "comment")
  380. state.state = states[state.state](type, stream, state);
  381. return override;
  382. },
  383. indent: function(state, textAfter) {
  384. var cx = state.context, ch = textAfter && textAfter.charAt(0);
  385. var indent = cx.indent;
  386. if (cx.type == "prop" && (ch == "}" || ch == ")"))
  387. cx = cx.prev;
  388. if (cx.prev) {
  389. if (ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
  390. cx = cx.prev;
  391. indent = cx.indent;
  392. } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") || ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
  393. indent = Math.max(0, cx.indent - indentUnit);
  394. }
  395. }
  396. return indent;
  397. },
  398. electricChars: "}",
  399. blockCommentStart: "/*",
  400. blockCommentEnd: "*/",
  401. blockCommentContinue: " * ",
  402. lineComment,
  403. fold: "brace"
  404. };
  405. });
  406. function keySet(array) {
  407. var keys = {};
  408. for (var i = 0; i < array.length; ++i) {
  409. keys[array[i].toLowerCase()] = true;
  410. }
  411. return keys;
  412. }
  413. var documentTypes_ = [
  414. "domain",
  415. "regexp",
  416. "url",
  417. "url-prefix"
  418. ], documentTypes = keySet(documentTypes_);
  419. var mediaTypes_ = [
  420. "all",
  421. "aural",
  422. "braille",
  423. "handheld",
  424. "print",
  425. "projection",
  426. "screen",
  427. "tty",
  428. "tv",
  429. "embossed"
  430. ], mediaTypes = keySet(mediaTypes_);
  431. var mediaFeatures_ = [
  432. "width",
  433. "min-width",
  434. "max-width",
  435. "height",
  436. "min-height",
  437. "max-height",
  438. "device-width",
  439. "min-device-width",
  440. "max-device-width",
  441. "device-height",
  442. "min-device-height",
  443. "max-device-height",
  444. "aspect-ratio",
  445. "min-aspect-ratio",
  446. "max-aspect-ratio",
  447. "device-aspect-ratio",
  448. "min-device-aspect-ratio",
  449. "max-device-aspect-ratio",
  450. "color",
  451. "min-color",
  452. "max-color",
  453. "color-index",
  454. "min-color-index",
  455. "max-color-index",
  456. "monochrome",
  457. "min-monochrome",
  458. "max-monochrome",
  459. "resolution",
  460. "min-resolution",
  461. "max-resolution",
  462. "scan",
  463. "grid",
  464. "orientation",
  465. "device-pixel-ratio",
  466. "min-device-pixel-ratio",
  467. "max-device-pixel-ratio",
  468. "pointer",
  469. "any-pointer",
  470. "hover",
  471. "any-hover",
  472. "prefers-color-scheme",
  473. "dynamic-range",
  474. "video-dynamic-range"
  475. ], mediaFeatures = keySet(mediaFeatures_);
  476. var mediaValueKeywords_ = [
  477. "landscape",
  478. "portrait",
  479. "none",
  480. "coarse",
  481. "fine",
  482. "on-demand",
  483. "hover",
  484. "interlace",
  485. "progressive",
  486. "dark",
  487. "light",
  488. "standard",
  489. "high"
  490. ], mediaValueKeywords = keySet(mediaValueKeywords_);
  491. var propertyKeywords_ = [
  492. "align-content",
  493. "align-items",
  494. "align-self",
  495. "alignment-adjust",
  496. "alignment-baseline",
  497. "all",
  498. "anchor-point",
  499. "animation",
  500. "animation-delay",
  501. "animation-direction",
  502. "animation-duration",
  503. "animation-fill-mode",
  504. "animation-iteration-count",
  505. "animation-name",
  506. "animation-play-state",
  507. "animation-timing-function",
  508. "appearance",
  509. "azimuth",
  510. "backdrop-filter",
  511. "backface-visibility",
  512. "background",
  513. "background-attachment",
  514. "background-blend-mode",
  515. "background-clip",
  516. "background-color",
  517. "background-image",
  518. "background-origin",
  519. "background-position",
  520. "background-position-x",
  521. "background-position-y",
  522. "background-repeat",
  523. "background-size",
  524. "baseline-shift",
  525. "binding",
  526. "bleed",
  527. "block-size",
  528. "bookmark-label",
  529. "bookmark-level",
  530. "bookmark-state",
  531. "bookmark-target",
  532. "border",
  533. "border-bottom",
  534. "border-bottom-color",
  535. "border-bottom-left-radius",
  536. "border-bottom-right-radius",
  537. "border-bottom-style",
  538. "border-bottom-width",
  539. "border-collapse",
  540. "border-color",
  541. "border-image",
  542. "border-image-outset",
  543. "border-image-repeat",
  544. "border-image-slice",
  545. "border-image-source",
  546. "border-image-width",
  547. "border-left",
  548. "border-left-color",
  549. "border-left-style",
  550. "border-left-width",
  551. "border-radius",
  552. "border-right",
  553. "border-right-color",
  554. "border-right-style",
  555. "border-right-width",
  556. "border-spacing",
  557. "border-style",
  558. "border-top",
  559. "border-top-color",
  560. "border-top-left-radius",
  561. "border-top-right-radius",
  562. "border-top-style",
  563. "border-top-width",
  564. "border-width",
  565. "bottom",
  566. "box-decoration-break",
  567. "box-shadow",
  568. "box-sizing",
  569. "break-after",
  570. "break-before",
  571. "break-inside",
  572. "caption-side",
  573. "caret-color",
  574. "clear",
  575. "clip",
  576. "color",
  577. "color-profile",
  578. "column-count",
  579. "column-fill",
  580. "column-gap",
  581. "column-rule",
  582. "column-rule-color",
  583. "column-rule-style",
  584. "column-rule-width",
  585. "column-span",
  586. "column-width",
  587. "columns",
  588. "contain",
  589. "content",
  590. "counter-increment",
  591. "counter-reset",
  592. "crop",
  593. "cue",
  594. "cue-after",
  595. "cue-before",
  596. "cursor",
  597. "direction",
  598. "display",
  599. "dominant-baseline",
  600. "drop-initial-after-adjust",
  601. "drop-initial-after-align",
  602. "drop-initial-before-adjust",
  603. "drop-initial-before-align",
  604. "drop-initial-size",
  605. "drop-initial-value",
  606. "elevation",
  607. "empty-cells",
  608. "fit",
  609. "fit-content",
  610. "fit-position",
  611. "flex",
  612. "flex-basis",
  613. "flex-direction",
  614. "flex-flow",
  615. "flex-grow",
  616. "flex-shrink",
  617. "flex-wrap",
  618. "float",
  619. "float-offset",
  620. "flow-from",
  621. "flow-into",
  622. "font",
  623. "font-family",
  624. "font-feature-settings",
  625. "font-kerning",
  626. "font-language-override",
  627. "font-optical-sizing",
  628. "font-size",
  629. "font-size-adjust",
  630. "font-stretch",
  631. "font-style",
  632. "font-synthesis",
  633. "font-variant",
  634. "font-variant-alternates",
  635. "font-variant-caps",
  636. "font-variant-east-asian",
  637. "font-variant-ligatures",
  638. "font-variant-numeric",
  639. "font-variant-position",
  640. "font-variation-settings",
  641. "font-weight",
  642. "gap",
  643. "grid",
  644. "grid-area",
  645. "grid-auto-columns",
  646. "grid-auto-flow",
  647. "grid-auto-rows",
  648. "grid-column",
  649. "grid-column-end",
  650. "grid-column-gap",
  651. "grid-column-start",
  652. "grid-gap",
  653. "grid-row",
  654. "grid-row-end",
  655. "grid-row-gap",
  656. "grid-row-start",
  657. "grid-template",
  658. "grid-template-areas",
  659. "grid-template-columns",
  660. "grid-template-rows",
  661. "hanging-punctuation",
  662. "height",
  663. "hyphens",
  664. "icon",
  665. "image-orientation",
  666. "image-rendering",
  667. "image-resolution",
  668. "inline-box-align",
  669. "inset",
  670. "inset-block",
  671. "inset-block-end",
  672. "inset-block-start",
  673. "inset-inline",
  674. "inset-inline-end",
  675. "inset-inline-start",
  676. "isolation",
  677. "justify-content",
  678. "justify-items",
  679. "justify-self",
  680. "left",
  681. "letter-spacing",
  682. "line-break",
  683. "line-height",
  684. "line-height-step",
  685. "line-stacking",
  686. "line-stacking-ruby",
  687. "line-stacking-shift",
  688. "line-stacking-strategy",
  689. "list-style",
  690. "list-style-image",
  691. "list-style-position",
  692. "list-style-type",
  693. "margin",
  694. "margin-bottom",
  695. "margin-left",
  696. "margin-right",
  697. "margin-top",
  698. "marks",
  699. "marquee-direction",
  700. "marquee-loop",
  701. "marquee-play-count",
  702. "marquee-speed",
  703. "marquee-style",
  704. "mask-clip",
  705. "mask-composite",
  706. "mask-image",
  707. "mask-mode",
  708. "mask-origin",
  709. "mask-position",
  710. "mask-repeat",
  711. "mask-size",
  712. "mask-type",
  713. "max-block-size",
  714. "max-height",
  715. "max-inline-size",
  716. "max-width",
  717. "min-block-size",
  718. "min-height",
  719. "min-inline-size",
  720. "min-width",
  721. "mix-blend-mode",
  722. "move-to",
  723. "nav-down",
  724. "nav-index",
  725. "nav-left",
  726. "nav-right",
  727. "nav-up",
  728. "object-fit",
  729. "object-position",
  730. "offset",
  731. "offset-anchor",
  732. "offset-distance",
  733. "offset-path",
  734. "offset-position",
  735. "offset-rotate",
  736. "opacity",
  737. "order",
  738. "orphans",
  739. "outline",
  740. "outline-color",
  741. "outline-offset",
  742. "outline-style",
  743. "outline-width",
  744. "overflow",
  745. "overflow-style",
  746. "overflow-wrap",
  747. "overflow-x",
  748. "overflow-y",
  749. "padding",
  750. "padding-bottom",
  751. "padding-left",
  752. "padding-right",
  753. "padding-top",
  754. "page",
  755. "page-break-after",
  756. "page-break-before",
  757. "page-break-inside",
  758. "page-policy",
  759. "pause",
  760. "pause-after",
  761. "pause-before",
  762. "perspective",
  763. "perspective-origin",
  764. "pitch",
  765. "pitch-range",
  766. "place-content",
  767. "place-items",
  768. "place-self",
  769. "play-during",
  770. "position",
  771. "presentation-level",
  772. "punctuation-trim",
  773. "quotes",
  774. "region-break-after",
  775. "region-break-before",
  776. "region-break-inside",
  777. "region-fragment",
  778. "rendering-intent",
  779. "resize",
  780. "rest",
  781. "rest-after",
  782. "rest-before",
  783. "richness",
  784. "right",
  785. "rotate",
  786. "rotation",
  787. "rotation-point",
  788. "row-gap",
  789. "ruby-align",
  790. "ruby-overhang",
  791. "ruby-position",
  792. "ruby-span",
  793. "scale",
  794. "scroll-behavior",
  795. "scroll-margin",
  796. "scroll-margin-block",
  797. "scroll-margin-block-end",
  798. "scroll-margin-block-start",
  799. "scroll-margin-bottom",
  800. "scroll-margin-inline",
  801. "scroll-margin-inline-end",
  802. "scroll-margin-inline-start",
  803. "scroll-margin-left",
  804. "scroll-margin-right",
  805. "scroll-margin-top",
  806. "scroll-padding",
  807. "scroll-padding-block",
  808. "scroll-padding-block-end",
  809. "scroll-padding-block-start",
  810. "scroll-padding-bottom",
  811. "scroll-padding-inline",
  812. "scroll-padding-inline-end",
  813. "scroll-padding-inline-start",
  814. "scroll-padding-left",
  815. "scroll-padding-right",
  816. "scroll-padding-top",
  817. "scroll-snap-align",
  818. "scroll-snap-type",
  819. "shape-image-threshold",
  820. "shape-inside",
  821. "shape-margin",
  822. "shape-outside",
  823. "size",
  824. "speak",
  825. "speak-as",
  826. "speak-header",
  827. "speak-numeral",
  828. "speak-punctuation",
  829. "speech-rate",
  830. "stress",
  831. "string-set",
  832. "tab-size",
  833. "table-layout",
  834. "target",
  835. "target-name",
  836. "target-new",
  837. "target-position",
  838. "text-align",
  839. "text-align-last",
  840. "text-combine-upright",
  841. "text-decoration",
  842. "text-decoration-color",
  843. "text-decoration-line",
  844. "text-decoration-skip",
  845. "text-decoration-skip-ink",
  846. "text-decoration-style",
  847. "text-emphasis",
  848. "text-emphasis-color",
  849. "text-emphasis-position",
  850. "text-emphasis-style",
  851. "text-height",
  852. "text-indent",
  853. "text-justify",
  854. "text-orientation",
  855. "text-outline",
  856. "text-overflow",
  857. "text-rendering",
  858. "text-shadow",
  859. "text-size-adjust",
  860. "text-space-collapse",
  861. "text-transform",
  862. "text-underline-position",
  863. "text-wrap",
  864. "top",
  865. "touch-action",
  866. "transform",
  867. "transform-origin",
  868. "transform-style",
  869. "transition",
  870. "transition-delay",
  871. "transition-duration",
  872. "transition-property",
  873. "transition-timing-function",
  874. "translate",
  875. "unicode-bidi",
  876. "user-select",
  877. "vertical-align",
  878. "visibility",
  879. "voice-balance",
  880. "voice-duration",
  881. "voice-family",
  882. "voice-pitch",
  883. "voice-range",
  884. "voice-rate",
  885. "voice-stress",
  886. "voice-volume",
  887. "volume",
  888. "white-space",
  889. "widows",
  890. "width",
  891. "will-change",
  892. "word-break",
  893. "word-spacing",
  894. "word-wrap",
  895. "writing-mode",
  896. "z-index",
  897. // SVG-specific
  898. "clip-path",
  899. "clip-rule",
  900. "mask",
  901. "enable-background",
  902. "filter",
  903. "flood-color",
  904. "flood-opacity",
  905. "lighting-color",
  906. "stop-color",
  907. "stop-opacity",
  908. "pointer-events",
  909. "color-interpolation",
  910. "color-interpolation-filters",
  911. "color-rendering",
  912. "fill",
  913. "fill-opacity",
  914. "fill-rule",
  915. "image-rendering",
  916. "marker",
  917. "marker-end",
  918. "marker-mid",
  919. "marker-start",
  920. "paint-order",
  921. "shape-rendering",
  922. "stroke",
  923. "stroke-dasharray",
  924. "stroke-dashoffset",
  925. "stroke-linecap",
  926. "stroke-linejoin",
  927. "stroke-miterlimit",
  928. "stroke-opacity",
  929. "stroke-width",
  930. "text-rendering",
  931. "baseline-shift",
  932. "dominant-baseline",
  933. "glyph-orientation-horizontal",
  934. "glyph-orientation-vertical",
  935. "text-anchor",
  936. "writing-mode"
  937. ], propertyKeywords = keySet(propertyKeywords_);
  938. var nonStandardPropertyKeywords_ = [
  939. "accent-color",
  940. "aspect-ratio",
  941. "border-block",
  942. "border-block-color",
  943. "border-block-end",
  944. "border-block-end-color",
  945. "border-block-end-style",
  946. "border-block-end-width",
  947. "border-block-start",
  948. "border-block-start-color",
  949. "border-block-start-style",
  950. "border-block-start-width",
  951. "border-block-style",
  952. "border-block-width",
  953. "border-inline",
  954. "border-inline-color",
  955. "border-inline-end",
  956. "border-inline-end-color",
  957. "border-inline-end-style",
  958. "border-inline-end-width",
  959. "border-inline-start",
  960. "border-inline-start-color",
  961. "border-inline-start-style",
  962. "border-inline-start-width",
  963. "border-inline-style",
  964. "border-inline-width",
  965. "content-visibility",
  966. "margin-block",
  967. "margin-block-end",
  968. "margin-block-start",
  969. "margin-inline",
  970. "margin-inline-end",
  971. "margin-inline-start",
  972. "overflow-anchor",
  973. "overscroll-behavior",
  974. "padding-block",
  975. "padding-block-end",
  976. "padding-block-start",
  977. "padding-inline",
  978. "padding-inline-end",
  979. "padding-inline-start",
  980. "scroll-snap-stop",
  981. "scrollbar-3d-light-color",
  982. "scrollbar-arrow-color",
  983. "scrollbar-base-color",
  984. "scrollbar-dark-shadow-color",
  985. "scrollbar-face-color",
  986. "scrollbar-highlight-color",
  987. "scrollbar-shadow-color",
  988. "scrollbar-track-color",
  989. "searchfield-cancel-button",
  990. "searchfield-decoration",
  991. "searchfield-results-button",
  992. "searchfield-results-decoration",
  993. "shape-inside",
  994. "zoom"
  995. ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
  996. var fontProperties_ = [
  997. "font-display",
  998. "font-family",
  999. "src",
  1000. "unicode-range",
  1001. "font-variant",
  1002. "font-feature-settings",
  1003. "font-stretch",
  1004. "font-weight",
  1005. "font-style"
  1006. ], fontProperties = keySet(fontProperties_);
  1007. var counterDescriptors_ = [
  1008. "additive-symbols",
  1009. "fallback",
  1010. "negative",
  1011. "pad",
  1012. "prefix",
  1013. "range",
  1014. "speak-as",
  1015. "suffix",
  1016. "symbols",
  1017. "system"
  1018. ], counterDescriptors = keySet(counterDescriptors_);
  1019. var colorKeywords_ = [
  1020. "aliceblue",
  1021. "antiquewhite",
  1022. "aqua",
  1023. "aquamarine",
  1024. "azure",
  1025. "beige",
  1026. "bisque",
  1027. "black",
  1028. "blanchedalmond",
  1029. "blue",
  1030. "blueviolet",
  1031. "brown",
  1032. "burlywood",
  1033. "cadetblue",
  1034. "chartreuse",
  1035. "chocolate",
  1036. "coral",
  1037. "cornflowerblue",
  1038. "cornsilk",
  1039. "crimson",
  1040. "cyan",
  1041. "darkblue",
  1042. "darkcyan",
  1043. "darkgoldenrod",
  1044. "darkgray",
  1045. "darkgreen",
  1046. "darkgrey",
  1047. "darkkhaki",
  1048. "darkmagenta",
  1049. "darkolivegreen",
  1050. "darkorange",
  1051. "darkorchid",
  1052. "darkred",
  1053. "darksalmon",
  1054. "darkseagreen",
  1055. "darkslateblue",
  1056. "darkslategray",
  1057. "darkslategrey",
  1058. "darkturquoise",
  1059. "darkviolet",
  1060. "deeppink",
  1061. "deepskyblue",
  1062. "dimgray",
  1063. "dimgrey",
  1064. "dodgerblue",
  1065. "firebrick",
  1066. "floralwhite",
  1067. "forestgreen",
  1068. "fuchsia",
  1069. "gainsboro",
  1070. "ghostwhite",
  1071. "gold",
  1072. "goldenrod",
  1073. "gray",
  1074. "grey",
  1075. "green",
  1076. "greenyellow",
  1077. "honeydew",
  1078. "hotpink",
  1079. "indianred",
  1080. "indigo",
  1081. "ivory",
  1082. "khaki",
  1083. "lavender",
  1084. "lavenderblush",
  1085. "lawngreen",
  1086. "lemonchiffon",
  1087. "lightblue",
  1088. "lightcoral",
  1089. "lightcyan",
  1090. "lightgoldenrodyellow",
  1091. "lightgray",
  1092. "lightgreen",
  1093. "lightgrey",
  1094. "lightpink",
  1095. "lightsalmon",
  1096. "lightseagreen",
  1097. "lightskyblue",
  1098. "lightslategray",
  1099. "lightslategrey",
  1100. "lightsteelblue",
  1101. "lightyellow",
  1102. "lime",
  1103. "limegreen",
  1104. "linen",
  1105. "magenta",
  1106. "maroon",
  1107. "mediumaquamarine",
  1108. "mediumblue",
  1109. "mediumorchid",
  1110. "mediumpurple",
  1111. "mediumseagreen",
  1112. "mediumslateblue",
  1113. "mediumspringgreen",
  1114. "mediumturquoise",
  1115. "mediumvioletred",
  1116. "midnightblue",
  1117. "mintcream",
  1118. "mistyrose",
  1119. "moccasin",
  1120. "navajowhite",
  1121. "navy",
  1122. "oldlace",
  1123. "olive",
  1124. "olivedrab",
  1125. "orange",
  1126. "orangered",
  1127. "orchid",
  1128. "palegoldenrod",
  1129. "palegreen",
  1130. "paleturquoise",
  1131. "palevioletred",
  1132. "papayawhip",
  1133. "peachpuff",
  1134. "peru",
  1135. "pink",
  1136. "plum",
  1137. "powderblue",
  1138. "purple",
  1139. "rebeccapurple",
  1140. "red",
  1141. "rosybrown",
  1142. "royalblue",
  1143. "saddlebrown",
  1144. "salmon",
  1145. "sandybrown",
  1146. "seagreen",
  1147. "seashell",
  1148. "sienna",
  1149. "silver",
  1150. "skyblue",
  1151. "slateblue",
  1152. "slategray",
  1153. "slategrey",
  1154. "snow",
  1155. "springgreen",
  1156. "steelblue",
  1157. "tan",
  1158. "teal",
  1159. "thistle",
  1160. "tomato",
  1161. "turquoise",
  1162. "violet",
  1163. "wheat",
  1164. "white",
  1165. "whitesmoke",
  1166. "yellow",
  1167. "yellowgreen"
  1168. ], colorKeywords = keySet(colorKeywords_);
  1169. var valueKeywords_ = [
  1170. "above",
  1171. "absolute",
  1172. "activeborder",
  1173. "additive",
  1174. "activecaption",
  1175. "afar",
  1176. "after-white-space",
  1177. "ahead",
  1178. "alias",
  1179. "all",
  1180. "all-scroll",
  1181. "alphabetic",
  1182. "alternate",
  1183. "always",
  1184. "amharic",
  1185. "amharic-abegede",
  1186. "antialiased",
  1187. "appworkspace",
  1188. "arabic-indic",
  1189. "armenian",
  1190. "asterisks",
  1191. "attr",
  1192. "auto",
  1193. "auto-flow",
  1194. "avoid",
  1195. "avoid-column",
  1196. "avoid-page",
  1197. "avoid-region",
  1198. "axis-pan",
  1199. "background",
  1200. "backwards",
  1201. "baseline",
  1202. "below",
  1203. "bidi-override",
  1204. "binary",
  1205. "bengali",
  1206. "blink",
  1207. "block",
  1208. "block-axis",
  1209. "blur",
  1210. "bold",
  1211. "bolder",
  1212. "border",
  1213. "border-box",
  1214. "both",
  1215. "bottom",
  1216. "break",
  1217. "break-all",
  1218. "break-word",
  1219. "brightness",
  1220. "bullets",
  1221. "button",
  1222. "buttonface",
  1223. "buttonhighlight",
  1224. "buttonshadow",
  1225. "buttontext",
  1226. "calc",
  1227. "cambodian",
  1228. "capitalize",
  1229. "caps-lock-indicator",
  1230. "caption",
  1231. "captiontext",
  1232. "caret",
  1233. "cell",
  1234. "center",
  1235. "checkbox",
  1236. "circle",
  1237. "cjk-decimal",
  1238. "cjk-earthly-branch",
  1239. "cjk-heavenly-stem",
  1240. "cjk-ideographic",
  1241. "clear",
  1242. "clip",
  1243. "close-quote",
  1244. "col-resize",
  1245. "collapse",
  1246. "color",
  1247. "color-burn",
  1248. "color-dodge",
  1249. "column",
  1250. "column-reverse",
  1251. "compact",
  1252. "condensed",
  1253. "conic-gradient",
  1254. "contain",
  1255. "content",
  1256. "contents",
  1257. "content-box",
  1258. "context-menu",
  1259. "continuous",
  1260. "contrast",
  1261. "copy",
  1262. "counter",
  1263. "counters",
  1264. "cover",
  1265. "crop",
  1266. "cross",
  1267. "crosshair",
  1268. "cubic-bezier",
  1269. "currentcolor",
  1270. "cursive",
  1271. "cyclic",
  1272. "darken",
  1273. "dashed",
  1274. "decimal",
  1275. "decimal-leading-zero",
  1276. "default",
  1277. "default-button",
  1278. "dense",
  1279. "destination-atop",
  1280. "destination-in",
  1281. "destination-out",
  1282. "destination-over",
  1283. "devanagari",
  1284. "difference",
  1285. "disc",
  1286. "discard",
  1287. "disclosure-closed",
  1288. "disclosure-open",
  1289. "document",
  1290. "dot-dash",
  1291. "dot-dot-dash",
  1292. "dotted",
  1293. "double",
  1294. "down",
  1295. "drop-shadow",
  1296. "e-resize",
  1297. "ease",
  1298. "ease-in",
  1299. "ease-in-out",
  1300. "ease-out",
  1301. "element",
  1302. "ellipse",
  1303. "ellipsis",
  1304. "embed",
  1305. "end",
  1306. "ethiopic",
  1307. "ethiopic-abegede",
  1308. "ethiopic-abegede-am-et",
  1309. "ethiopic-abegede-gez",
  1310. "ethiopic-abegede-ti-er",
  1311. "ethiopic-abegede-ti-et",
  1312. "ethiopic-halehame-aa-er",
  1313. "ethiopic-halehame-aa-et",
  1314. "ethiopic-halehame-am-et",
  1315. "ethiopic-halehame-gez",
  1316. "ethiopic-halehame-om-et",
  1317. "ethiopic-halehame-sid-et",
  1318. "ethiopic-halehame-so-et",
  1319. "ethiopic-halehame-ti-er",
  1320. "ethiopic-halehame-ti-et",
  1321. "ethiopic-halehame-tig",
  1322. "ethiopic-numeric",
  1323. "ew-resize",
  1324. "exclusion",
  1325. "expanded",
  1326. "extends",
  1327. "extra-condensed",
  1328. "extra-expanded",
  1329. "fantasy",
  1330. "fast",
  1331. "fill",
  1332. "fill-box",
  1333. "fixed",
  1334. "flat",
  1335. "flex",
  1336. "flex-end",
  1337. "flex-start",
  1338. "footnotes",
  1339. "forwards",
  1340. "from",
  1341. "geometricPrecision",
  1342. "georgian",
  1343. "grayscale",
  1344. "graytext",
  1345. "grid",
  1346. "groove",
  1347. "gujarati",
  1348. "gurmukhi",
  1349. "hand",
  1350. "hangul",
  1351. "hangul-consonant",
  1352. "hard-light",
  1353. "hebrew",
  1354. "help",
  1355. "hidden",
  1356. "hide",
  1357. "higher",
  1358. "highlight",
  1359. "highlighttext",
  1360. "hiragana",
  1361. "hiragana-iroha",
  1362. "horizontal",
  1363. "hsl",
  1364. "hsla",
  1365. "hue",
  1366. "hue-rotate",
  1367. "icon",
  1368. "ignore",
  1369. "inactiveborder",
  1370. "inactivecaption",
  1371. "inactivecaptiontext",
  1372. "infinite",
  1373. "infobackground",
  1374. "infotext",
  1375. "inherit",
  1376. "initial",
  1377. "inline",
  1378. "inline-axis",
  1379. "inline-block",
  1380. "inline-flex",
  1381. "inline-grid",
  1382. "inline-table",
  1383. "inset",
  1384. "inside",
  1385. "intrinsic",
  1386. "invert",
  1387. "italic",
  1388. "japanese-formal",
  1389. "japanese-informal",
  1390. "justify",
  1391. "kannada",
  1392. "katakana",
  1393. "katakana-iroha",
  1394. "keep-all",
  1395. "khmer",
  1396. "korean-hangul-formal",
  1397. "korean-hanja-formal",
  1398. "korean-hanja-informal",
  1399. "landscape",
  1400. "lao",
  1401. "large",
  1402. "larger",
  1403. "left",
  1404. "level",
  1405. "lighter",
  1406. "lighten",
  1407. "line-through",
  1408. "linear",
  1409. "linear-gradient",
  1410. "lines",
  1411. "list-item",
  1412. "listbox",
  1413. "listitem",
  1414. "local",
  1415. "logical",
  1416. "loud",
  1417. "lower",
  1418. "lower-alpha",
  1419. "lower-armenian",
  1420. "lower-greek",
  1421. "lower-hexadecimal",
  1422. "lower-latin",
  1423. "lower-norwegian",
  1424. "lower-roman",
  1425. "lowercase",
  1426. "ltr",
  1427. "luminosity",
  1428. "malayalam",
  1429. "manipulation",
  1430. "match",
  1431. "matrix",
  1432. "matrix3d",
  1433. "media-play-button",
  1434. "media-slider",
  1435. "media-sliderthumb",
  1436. "media-volume-slider",
  1437. "media-volume-sliderthumb",
  1438. "medium",
  1439. "menu",
  1440. "menulist",
  1441. "menulist-button",
  1442. "menutext",
  1443. "message-box",
  1444. "middle",
  1445. "min-intrinsic",
  1446. "mix",
  1447. "mongolian",
  1448. "monospace",
  1449. "move",
  1450. "multiple",
  1451. "multiple_mask_images",
  1452. "multiply",
  1453. "myanmar",
  1454. "n-resize",
  1455. "narrower",
  1456. "ne-resize",
  1457. "nesw-resize",
  1458. "no-close-quote",
  1459. "no-drop",
  1460. "no-open-quote",
  1461. "no-repeat",
  1462. "none",
  1463. "normal",
  1464. "not-allowed",
  1465. "nowrap",
  1466. "ns-resize",
  1467. "numbers",
  1468. "numeric",
  1469. "nw-resize",
  1470. "nwse-resize",
  1471. "oblique",
  1472. "octal",
  1473. "opacity",
  1474. "open-quote",
  1475. "optimizeLegibility",
  1476. "optimizeSpeed",
  1477. "oriya",
  1478. "oromo",
  1479. "outset",
  1480. "outside",
  1481. "outside-shape",
  1482. "overlay",
  1483. "overline",
  1484. "padding",
  1485. "padding-box",
  1486. "painted",
  1487. "page",
  1488. "paused",
  1489. "persian",
  1490. "perspective",
  1491. "pinch-zoom",
  1492. "plus-darker",
  1493. "plus-lighter",
  1494. "pointer",
  1495. "polygon",
  1496. "portrait",
  1497. "pre",
  1498. "pre-line",
  1499. "pre-wrap",
  1500. "preserve-3d",
  1501. "progress",
  1502. "push-button",
  1503. "radial-gradient",
  1504. "radio",
  1505. "read-only",
  1506. "read-write",
  1507. "read-write-plaintext-only",
  1508. "rectangle",
  1509. "region",
  1510. "relative",
  1511. "repeat",
  1512. "repeating-linear-gradient",
  1513. "repeating-radial-gradient",
  1514. "repeating-conic-gradient",
  1515. "repeat-x",
  1516. "repeat-y",
  1517. "reset",
  1518. "reverse",
  1519. "rgb",
  1520. "rgba",
  1521. "ridge",
  1522. "right",
  1523. "rotate",
  1524. "rotate3d",
  1525. "rotateX",
  1526. "rotateY",
  1527. "rotateZ",
  1528. "round",
  1529. "row",
  1530. "row-resize",
  1531. "row-reverse",
  1532. "rtl",
  1533. "run-in",
  1534. "running",
  1535. "s-resize",
  1536. "sans-serif",
  1537. "saturate",
  1538. "saturation",
  1539. "scale",
  1540. "scale3d",
  1541. "scaleX",
  1542. "scaleY",
  1543. "scaleZ",
  1544. "screen",
  1545. "scroll",
  1546. "scrollbar",
  1547. "scroll-position",
  1548. "se-resize",
  1549. "searchfield",
  1550. "searchfield-cancel-button",
  1551. "searchfield-decoration",
  1552. "searchfield-results-button",
  1553. "searchfield-results-decoration",
  1554. "self-start",
  1555. "self-end",
  1556. "semi-condensed",
  1557. "semi-expanded",
  1558. "separate",
  1559. "sepia",
  1560. "serif",
  1561. "show",
  1562. "sidama",
  1563. "simp-chinese-formal",
  1564. "simp-chinese-informal",
  1565. "single",
  1566. "skew",
  1567. "skewX",
  1568. "skewY",
  1569. "skip-white-space",
  1570. "slide",
  1571. "slider-horizontal",
  1572. "slider-vertical",
  1573. "sliderthumb-horizontal",
  1574. "sliderthumb-vertical",
  1575. "slow",
  1576. "small",
  1577. "small-caps",
  1578. "small-caption",
  1579. "smaller",
  1580. "soft-light",
  1581. "solid",
  1582. "somali",
  1583. "source-atop",
  1584. "source-in",
  1585. "source-out",
  1586. "source-over",
  1587. "space",
  1588. "space-around",
  1589. "space-between",
  1590. "space-evenly",
  1591. "spell-out",
  1592. "square",
  1593. "square-button",
  1594. "start",
  1595. "static",
  1596. "status-bar",
  1597. "stretch",
  1598. "stroke",
  1599. "stroke-box",
  1600. "sub",
  1601. "subpixel-antialiased",
  1602. "svg_masks",
  1603. "super",
  1604. "sw-resize",
  1605. "symbolic",
  1606. "symbols",
  1607. "system-ui",
  1608. "table",
  1609. "table-caption",
  1610. "table-cell",
  1611. "table-column",
  1612. "table-column-group",
  1613. "table-footer-group",
  1614. "table-header-group",
  1615. "table-row",
  1616. "table-row-group",
  1617. "tamil",
  1618. "telugu",
  1619. "text",
  1620. "text-bottom",
  1621. "text-top",
  1622. "textarea",
  1623. "textfield",
  1624. "thai",
  1625. "thick",
  1626. "thin",
  1627. "threeddarkshadow",
  1628. "threedface",
  1629. "threedhighlight",
  1630. "threedlightshadow",
  1631. "threedshadow",
  1632. "tibetan",
  1633. "tigre",
  1634. "tigrinya-er",
  1635. "tigrinya-er-abegede",
  1636. "tigrinya-et",
  1637. "tigrinya-et-abegede",
  1638. "to",
  1639. "top",
  1640. "trad-chinese-formal",
  1641. "trad-chinese-informal",
  1642. "transform",
  1643. "translate",
  1644. "translate3d",
  1645. "translateX",
  1646. "translateY",
  1647. "translateZ",
  1648. "transparent",
  1649. "ultra-condensed",
  1650. "ultra-expanded",
  1651. "underline",
  1652. "unidirectional-pan",
  1653. "unset",
  1654. "up",
  1655. "upper-alpha",
  1656. "upper-armenian",
  1657. "upper-greek",
  1658. "upper-hexadecimal",
  1659. "upper-latin",
  1660. "upper-norwegian",
  1661. "upper-roman",
  1662. "uppercase",
  1663. "urdu",
  1664. "url",
  1665. "var",
  1666. "vertical",
  1667. "vertical-text",
  1668. "view-box",
  1669. "visible",
  1670. "visibleFill",
  1671. "visiblePainted",
  1672. "visibleStroke",
  1673. "visual",
  1674. "w-resize",
  1675. "wait",
  1676. "wave",
  1677. "wider",
  1678. "window",
  1679. "windowframe",
  1680. "windowtext",
  1681. "words",
  1682. "wrap",
  1683. "wrap-reverse",
  1684. "x-large",
  1685. "x-small",
  1686. "xor",
  1687. "xx-large",
  1688. "xx-small"
  1689. ], valueKeywords = keySet(valueKeywords_);
  1690. var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_).concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);
  1691. CodeMirror2.registerHelper("hintWords", "css", allWords);
  1692. function tokenCComment(stream, state) {
  1693. var maybeEnd = false, ch;
  1694. while ((ch = stream.next()) != null) {
  1695. if (maybeEnd && ch == "/") {
  1696. state.tokenize = null;
  1697. break;
  1698. }
  1699. maybeEnd = ch == "*";
  1700. }
  1701. return ["comment", "comment"];
  1702. }
  1703. CodeMirror2.defineMIME("text/css", {
  1704. documentTypes,
  1705. mediaTypes,
  1706. mediaFeatures,
  1707. mediaValueKeywords,
  1708. propertyKeywords,
  1709. nonStandardPropertyKeywords,
  1710. fontProperties,
  1711. counterDescriptors,
  1712. colorKeywords,
  1713. valueKeywords,
  1714. tokenHooks: {
  1715. "/": function(stream, state) {
  1716. if (!stream.eat("*"))
  1717. return false;
  1718. state.tokenize = tokenCComment;
  1719. return tokenCComment(stream, state);
  1720. }
  1721. },
  1722. name: "css"
  1723. });
  1724. CodeMirror2.defineMIME("text/x-scss", {
  1725. mediaTypes,
  1726. mediaFeatures,
  1727. mediaValueKeywords,
  1728. propertyKeywords,
  1729. nonStandardPropertyKeywords,
  1730. colorKeywords,
  1731. valueKeywords,
  1732. fontProperties,
  1733. allowNested: true,
  1734. lineComment: "//",
  1735. tokenHooks: {
  1736. "/": function(stream, state) {
  1737. if (stream.eat("/")) {
  1738. stream.skipToEnd();
  1739. return ["comment", "comment"];
  1740. } else if (stream.eat("*")) {
  1741. state.tokenize = tokenCComment;
  1742. return tokenCComment(stream, state);
  1743. } else {
  1744. return ["operator", "operator"];
  1745. }
  1746. },
  1747. ":": function(stream) {
  1748. if (stream.match(/^\s*\{/, false))
  1749. return [null, null];
  1750. return false;
  1751. },
  1752. "$": function(stream) {
  1753. stream.match(/^[\w-]+/);
  1754. if (stream.match(/^\s*:/, false))
  1755. return ["variable-2", "variable-definition"];
  1756. return ["variable-2", "variable"];
  1757. },
  1758. "#": function(stream) {
  1759. if (!stream.eat("{"))
  1760. return false;
  1761. return [null, "interpolation"];
  1762. }
  1763. },
  1764. name: "css",
  1765. helperType: "scss"
  1766. });
  1767. CodeMirror2.defineMIME("text/x-less", {
  1768. mediaTypes,
  1769. mediaFeatures,
  1770. mediaValueKeywords,
  1771. propertyKeywords,
  1772. nonStandardPropertyKeywords,
  1773. colorKeywords,
  1774. valueKeywords,
  1775. fontProperties,
  1776. allowNested: true,
  1777. lineComment: "//",
  1778. tokenHooks: {
  1779. "/": function(stream, state) {
  1780. if (stream.eat("/")) {
  1781. stream.skipToEnd();
  1782. return ["comment", "comment"];
  1783. } else if (stream.eat("*")) {
  1784. state.tokenize = tokenCComment;
  1785. return tokenCComment(stream, state);
  1786. } else {
  1787. return ["operator", "operator"];
  1788. }
  1789. },
  1790. "@": function(stream) {
  1791. if (stream.eat("{"))
  1792. return [null, "interpolation"];
  1793. if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false))
  1794. return false;
  1795. stream.eatWhile(/[\w\\\-]/);
  1796. if (stream.match(/^\s*:/, false))
  1797. return ["variable-2", "variable-definition"];
  1798. return ["variable-2", "variable"];
  1799. },
  1800. "&": function() {
  1801. return ["atom", "atom"];
  1802. }
  1803. },
  1804. name: "css",
  1805. helperType: "less"
  1806. });
  1807. CodeMirror2.defineMIME("text/x-gss", {
  1808. documentTypes,
  1809. mediaTypes,
  1810. mediaFeatures,
  1811. propertyKeywords,
  1812. nonStandardPropertyKeywords,
  1813. fontProperties,
  1814. counterDescriptors,
  1815. colorKeywords,
  1816. valueKeywords,
  1817. supportsAtComponent: true,
  1818. tokenHooks: {
  1819. "/": function(stream, state) {
  1820. if (!stream.eat("*"))
  1821. return false;
  1822. state.tokenize = tokenCComment;
  1823. return tokenCComment(stream, state);
  1824. }
  1825. },
  1826. name: "css",
  1827. helperType: "gss"
  1828. });
  1829. });
  1830. }
  1831. });
  1832. export {
  1833. require_css
  1834. };
  1835. //# sourceMappingURL=chunk-APHQCZPF.js.map