@vuetify/vue-repl 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/vue-repl.js +846 -831
- package/dist/vue-repl.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-repl.js
CHANGED
|
@@ -12249,868 +12249,877 @@ var javascript = {exports: {}};
|
|
|
12249
12249
|
|
|
12250
12250
|
var css$2 = {exports: {}};
|
|
12251
12251
|
|
|
12252
|
-
|
|
12253
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12254
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12252
|
+
var hasRequiredCss;
|
|
12255
12253
|
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12254
|
+
function requireCss () {
|
|
12255
|
+
if (hasRequiredCss) return css$2.exports;
|
|
12256
|
+
hasRequiredCss = 1;
|
|
12257
|
+
(function (module, exports) {
|
|
12258
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12259
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12259
12260
|
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
var indentUnit = config.indentUnit,
|
|
12265
|
-
tokenHooks = parserConfig.tokenHooks,
|
|
12266
|
-
documentTypes = parserConfig.documentTypes || {},
|
|
12267
|
-
mediaTypes = parserConfig.mediaTypes || {},
|
|
12268
|
-
mediaFeatures = parserConfig.mediaFeatures || {},
|
|
12269
|
-
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
|
|
12270
|
-
propertyKeywords = parserConfig.propertyKeywords || {},
|
|
12271
|
-
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
|
|
12272
|
-
fontProperties = parserConfig.fontProperties || {},
|
|
12273
|
-
counterDescriptors = parserConfig.counterDescriptors || {},
|
|
12274
|
-
colorKeywords = parserConfig.colorKeywords || {},
|
|
12275
|
-
valueKeywords = parserConfig.valueKeywords || {},
|
|
12276
|
-
allowNested = parserConfig.allowNested,
|
|
12277
|
-
lineComment = parserConfig.lineComment,
|
|
12278
|
-
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
|
12279
|
-
highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
|
|
12280
|
-
|
|
12281
|
-
var type, override;
|
|
12282
|
-
function ret(style, tp) { type = tp; return style; }
|
|
12283
|
-
|
|
12284
|
-
// Tokenizers
|
|
12261
|
+
(function(mod) {
|
|
12262
|
+
mod(requireCodemirror());
|
|
12263
|
+
})(function(CodeMirror) {
|
|
12285
12264
|
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
} else if (ch === "-") {
|
|
12310
|
-
if (/[\d.]/.test(stream.peek())) {
|
|
12311
|
-
stream.eatWhile(/[\w.%]/);
|
|
12312
|
-
return ret("number", "unit");
|
|
12313
|
-
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
12314
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12315
|
-
if (stream.match(/^\s*:/, false))
|
|
12316
|
-
return ret("variable-2", "variable-definition");
|
|
12317
|
-
return ret("variable-2", "variable");
|
|
12318
|
-
} else if (stream.match(/^\w+-/)) {
|
|
12319
|
-
return ret("meta", "meta");
|
|
12320
|
-
}
|
|
12321
|
-
} else if (/[,+>*\/]/.test(ch)) {
|
|
12322
|
-
return ret(null, "select-op");
|
|
12323
|
-
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
12324
|
-
return ret("qualifier", "qualifier");
|
|
12325
|
-
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
12326
|
-
return ret(null, ch);
|
|
12327
|
-
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
12328
|
-
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
12329
|
-
state.tokenize = tokenParenthesized;
|
|
12330
|
-
}
|
|
12331
|
-
return ret("variable callee", "variable");
|
|
12332
|
-
} else if (/[\w\\\-]/.test(ch)) {
|
|
12333
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12334
|
-
return ret("property", "word");
|
|
12335
|
-
} else {
|
|
12336
|
-
return ret(null, null);
|
|
12337
|
-
}
|
|
12338
|
-
}
|
|
12265
|
+
CodeMirror.defineMode("css", function(config, parserConfig) {
|
|
12266
|
+
var inline = parserConfig.inline;
|
|
12267
|
+
if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
|
|
12268
|
+
|
|
12269
|
+
var indentUnit = config.indentUnit,
|
|
12270
|
+
tokenHooks = parserConfig.tokenHooks,
|
|
12271
|
+
documentTypes = parserConfig.documentTypes || {},
|
|
12272
|
+
mediaTypes = parserConfig.mediaTypes || {},
|
|
12273
|
+
mediaFeatures = parserConfig.mediaFeatures || {},
|
|
12274
|
+
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
|
|
12275
|
+
propertyKeywords = parserConfig.propertyKeywords || {},
|
|
12276
|
+
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
|
|
12277
|
+
fontProperties = parserConfig.fontProperties || {},
|
|
12278
|
+
counterDescriptors = parserConfig.counterDescriptors || {},
|
|
12279
|
+
colorKeywords = parserConfig.colorKeywords || {},
|
|
12280
|
+
valueKeywords = parserConfig.valueKeywords || {},
|
|
12281
|
+
allowNested = parserConfig.allowNested,
|
|
12282
|
+
lineComment = parserConfig.lineComment,
|
|
12283
|
+
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
|
12284
|
+
highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
|
|
12285
|
+
|
|
12286
|
+
var type, override;
|
|
12287
|
+
function ret(style, tp) { type = tp; return style; }
|
|
12339
12288
|
|
|
12340
|
-
|
|
12341
|
-
return function(stream, state) {
|
|
12342
|
-
var escaped = false, ch;
|
|
12343
|
-
while ((ch = stream.next()) != null) {
|
|
12344
|
-
if (ch == quote && !escaped) {
|
|
12345
|
-
if (quote == ")") stream.backUp(1);
|
|
12346
|
-
break;
|
|
12347
|
-
}
|
|
12348
|
-
escaped = !escaped && ch == "\\";
|
|
12349
|
-
}
|
|
12350
|
-
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
12351
|
-
return ret("string", "string");
|
|
12352
|
-
};
|
|
12353
|
-
}
|
|
12289
|
+
// Tokenizers
|
|
12354
12290
|
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12291
|
+
function tokenBase(stream, state) {
|
|
12292
|
+
var ch = stream.next();
|
|
12293
|
+
if (tokenHooks[ch]) {
|
|
12294
|
+
var result = tokenHooks[ch](stream, state);
|
|
12295
|
+
if (result !== false) return result;
|
|
12296
|
+
}
|
|
12297
|
+
if (ch == "@") {
|
|
12298
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12299
|
+
return ret("def", stream.current());
|
|
12300
|
+
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
|
|
12301
|
+
return ret(null, "compare");
|
|
12302
|
+
} else if (ch == "\"" || ch == "'") {
|
|
12303
|
+
state.tokenize = tokenString(ch);
|
|
12304
|
+
return state.tokenize(stream, state);
|
|
12305
|
+
} else if (ch == "#") {
|
|
12306
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12307
|
+
return ret("atom", "hash");
|
|
12308
|
+
} else if (ch == "!") {
|
|
12309
|
+
stream.match(/^\s*\w*/);
|
|
12310
|
+
return ret("keyword", "important");
|
|
12311
|
+
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
|
|
12312
|
+
stream.eatWhile(/[\w.%]/);
|
|
12313
|
+
return ret("number", "unit");
|
|
12314
|
+
} else if (ch === "-") {
|
|
12315
|
+
if (/[\d.]/.test(stream.peek())) {
|
|
12316
|
+
stream.eatWhile(/[\w.%]/);
|
|
12317
|
+
return ret("number", "unit");
|
|
12318
|
+
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
12319
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12320
|
+
if (stream.match(/^\s*:/, false))
|
|
12321
|
+
return ret("variable-2", "variable-definition");
|
|
12322
|
+
return ret("variable-2", "variable");
|
|
12323
|
+
} else if (stream.match(/^\w+-/)) {
|
|
12324
|
+
return ret("meta", "meta");
|
|
12325
|
+
}
|
|
12326
|
+
} else if (/[,+>*\/]/.test(ch)) {
|
|
12327
|
+
return ret(null, "select-op");
|
|
12328
|
+
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
12329
|
+
return ret("qualifier", "qualifier");
|
|
12330
|
+
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
12331
|
+
return ret(null, ch);
|
|
12332
|
+
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
12333
|
+
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
12334
|
+
state.tokenize = tokenParenthesized;
|
|
12335
|
+
}
|
|
12336
|
+
return ret("variable callee", "variable");
|
|
12337
|
+
} else if (/[\w\\\-]/.test(ch)) {
|
|
12338
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12339
|
+
return ret("property", "word");
|
|
12340
|
+
} else {
|
|
12341
|
+
return ret(null, null);
|
|
12342
|
+
}
|
|
12343
|
+
}
|
|
12363
12344
|
|
|
12364
|
-
|
|
12345
|
+
function tokenString(quote) {
|
|
12346
|
+
return function(stream, state) {
|
|
12347
|
+
var escaped = false, ch;
|
|
12348
|
+
while ((ch = stream.next()) != null) {
|
|
12349
|
+
if (ch == quote && !escaped) {
|
|
12350
|
+
if (quote == ")") stream.backUp(1);
|
|
12351
|
+
break;
|
|
12352
|
+
}
|
|
12353
|
+
escaped = !escaped && ch == "\\";
|
|
12354
|
+
}
|
|
12355
|
+
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
12356
|
+
return ret("string", "string");
|
|
12357
|
+
};
|
|
12358
|
+
}
|
|
12365
12359
|
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12360
|
+
function tokenParenthesized(stream, state) {
|
|
12361
|
+
stream.next(); // Must be '('
|
|
12362
|
+
if (!stream.match(/^\s*[\"\')]/, false))
|
|
12363
|
+
state.tokenize = tokenString(")");
|
|
12364
|
+
else
|
|
12365
|
+
state.tokenize = null;
|
|
12366
|
+
return ret(null, "(");
|
|
12367
|
+
}
|
|
12371
12368
|
|
|
12372
|
-
|
|
12373
|
-
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
|
|
12374
|
-
return type;
|
|
12375
|
-
}
|
|
12369
|
+
// Context management
|
|
12376
12370
|
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12371
|
+
function Context(type, indent, prev) {
|
|
12372
|
+
this.type = type;
|
|
12373
|
+
this.indent = indent;
|
|
12374
|
+
this.prev = prev;
|
|
12375
|
+
}
|
|
12382
12376
|
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
for (var i = n || 1; i > 0; i--)
|
|
12388
|
-
state.context = state.context.prev;
|
|
12389
|
-
return pass(type, stream, state);
|
|
12390
|
-
}
|
|
12377
|
+
function pushContext(state, stream, type, indent) {
|
|
12378
|
+
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
|
|
12379
|
+
return type;
|
|
12380
|
+
}
|
|
12391
12381
|
|
|
12392
|
-
|
|
12382
|
+
function popContext(state) {
|
|
12383
|
+
if (state.context.prev)
|
|
12384
|
+
state.context = state.context.prev;
|
|
12385
|
+
return state.context.type;
|
|
12386
|
+
}
|
|
12393
12387
|
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
}
|
|
12388
|
+
function pass(type, stream, state) {
|
|
12389
|
+
return states[state.context.type](type, stream, state);
|
|
12390
|
+
}
|
|
12391
|
+
function popAndPass(type, stream, state, n) {
|
|
12392
|
+
for (var i = n || 1; i > 0; i--)
|
|
12393
|
+
state.context = state.context.prev;
|
|
12394
|
+
return pass(type, stream, state);
|
|
12395
|
+
}
|
|
12403
12396
|
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
states.top = function(type, stream, state) {
|
|
12407
|
-
if (type == "{") {
|
|
12408
|
-
return pushContext(state, stream, "block");
|
|
12409
|
-
} else if (type == "}" && state.context.prev) {
|
|
12410
|
-
return popContext(state);
|
|
12411
|
-
} else if (supportsAtComponent && /@component/i.test(type)) {
|
|
12412
|
-
return pushContext(state, stream, "atComponentBlock");
|
|
12413
|
-
} else if (/^@(-moz-)?document$/i.test(type)) {
|
|
12414
|
-
return pushContext(state, stream, "documentTypes");
|
|
12415
|
-
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
|
|
12416
|
-
return pushContext(state, stream, "atBlock");
|
|
12417
|
-
} else if (/^@(font-face|counter-style)/i.test(type)) {
|
|
12418
|
-
state.stateArg = type;
|
|
12419
|
-
return "restricted_atBlock_before";
|
|
12420
|
-
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
|
|
12421
|
-
return "keyframes";
|
|
12422
|
-
} else if (type && type.charAt(0) == "@") {
|
|
12423
|
-
return pushContext(state, stream, "at");
|
|
12424
|
-
} else if (type == "hash") {
|
|
12425
|
-
override = "builtin";
|
|
12426
|
-
} else if (type == "word") {
|
|
12427
|
-
override = "tag";
|
|
12428
|
-
} else if (type == "variable-definition") {
|
|
12429
|
-
return "maybeprop";
|
|
12430
|
-
} else if (type == "interpolation") {
|
|
12431
|
-
return pushContext(state, stream, "interpolation");
|
|
12432
|
-
} else if (type == ":") {
|
|
12433
|
-
return "pseudo";
|
|
12434
|
-
} else if (allowNested && type == "(") {
|
|
12435
|
-
return pushContext(state, stream, "parens");
|
|
12436
|
-
}
|
|
12437
|
-
return state.context.type;
|
|
12438
|
-
};
|
|
12397
|
+
// Parser
|
|
12439
12398
|
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
} else if (allowNested) {
|
|
12450
|
-
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
12451
|
-
return "block";
|
|
12452
|
-
} else {
|
|
12453
|
-
override += " error";
|
|
12454
|
-
return "maybeprop";
|
|
12455
|
-
}
|
|
12456
|
-
} else if (type == "meta") {
|
|
12457
|
-
return "block";
|
|
12458
|
-
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
|
|
12459
|
-
override = "error";
|
|
12460
|
-
return "block";
|
|
12461
|
-
} else {
|
|
12462
|
-
return states.top(type, stream, state);
|
|
12463
|
-
}
|
|
12464
|
-
};
|
|
12399
|
+
function wordAsValue(stream) {
|
|
12400
|
+
var word = stream.current().toLowerCase();
|
|
12401
|
+
if (valueKeywords.hasOwnProperty(word))
|
|
12402
|
+
override = "atom";
|
|
12403
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
12404
|
+
override = "keyword";
|
|
12405
|
+
else
|
|
12406
|
+
override = "variable";
|
|
12407
|
+
}
|
|
12465
12408
|
|
|
12466
|
-
|
|
12467
|
-
if (type == ":") return pushContext(state, stream, "prop");
|
|
12468
|
-
return pass(type, stream, state);
|
|
12469
|
-
};
|
|
12409
|
+
var states = {};
|
|
12470
12410
|
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12411
|
+
states.top = function(type, stream, state) {
|
|
12412
|
+
if (type == "{") {
|
|
12413
|
+
return pushContext(state, stream, "block");
|
|
12414
|
+
} else if (type == "}" && state.context.prev) {
|
|
12415
|
+
return popContext(state);
|
|
12416
|
+
} else if (supportsAtComponent && /@component/i.test(type)) {
|
|
12417
|
+
return pushContext(state, stream, "atComponentBlock");
|
|
12418
|
+
} else if (/^@(-moz-)?document$/i.test(type)) {
|
|
12419
|
+
return pushContext(state, stream, "documentTypes");
|
|
12420
|
+
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
|
|
12421
|
+
return pushContext(state, stream, "atBlock");
|
|
12422
|
+
} else if (/^@(font-face|counter-style)/i.test(type)) {
|
|
12423
|
+
state.stateArg = type;
|
|
12424
|
+
return "restricted_atBlock_before";
|
|
12425
|
+
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
|
|
12426
|
+
return "keyframes";
|
|
12427
|
+
} else if (type && type.charAt(0) == "@") {
|
|
12428
|
+
return pushContext(state, stream, "at");
|
|
12429
|
+
} else if (type == "hash") {
|
|
12430
|
+
override = "builtin";
|
|
12431
|
+
} else if (type == "word") {
|
|
12432
|
+
override = "tag";
|
|
12433
|
+
} else if (type == "variable-definition") {
|
|
12434
|
+
return "maybeprop";
|
|
12435
|
+
} else if (type == "interpolation") {
|
|
12436
|
+
return pushContext(state, stream, "interpolation");
|
|
12437
|
+
} else if (type == ":") {
|
|
12438
|
+
return "pseudo";
|
|
12439
|
+
} else if (allowNested && type == "(") {
|
|
12440
|
+
return pushContext(state, stream, "parens");
|
|
12441
|
+
}
|
|
12442
|
+
return state.context.type;
|
|
12443
|
+
};
|
|
12486
12444
|
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12445
|
+
states.block = function(type, stream, state) {
|
|
12446
|
+
if (type == "word") {
|
|
12447
|
+
var word = stream.current().toLowerCase();
|
|
12448
|
+
if (propertyKeywords.hasOwnProperty(word)) {
|
|
12449
|
+
override = "property";
|
|
12450
|
+
return "maybeprop";
|
|
12451
|
+
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
|
|
12452
|
+
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12453
|
+
return "maybeprop";
|
|
12454
|
+
} else if (allowNested) {
|
|
12455
|
+
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
12456
|
+
return "block";
|
|
12457
|
+
} else {
|
|
12458
|
+
override += " error";
|
|
12459
|
+
return "maybeprop";
|
|
12460
|
+
}
|
|
12461
|
+
} else if (type == "meta") {
|
|
12462
|
+
return "block";
|
|
12463
|
+
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
|
|
12464
|
+
override = "error";
|
|
12465
|
+
return "block";
|
|
12466
|
+
} else {
|
|
12467
|
+
return states.top(type, stream, state);
|
|
12468
|
+
}
|
|
12469
|
+
};
|
|
12492
12470
|
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12498
|
-
if (type == "word") wordAsValue(stream);
|
|
12499
|
-
return "parens";
|
|
12500
|
-
};
|
|
12471
|
+
states.maybeprop = function(type, stream, state) {
|
|
12472
|
+
if (type == ":") return pushContext(state, stream, "prop");
|
|
12473
|
+
return pass(type, stream, state);
|
|
12474
|
+
};
|
|
12501
12475
|
|
|
12502
|
-
|
|
12503
|
-
|
|
12476
|
+
states.prop = function(type, stream, state) {
|
|
12477
|
+
if (type == ";") return popContext(state);
|
|
12478
|
+
if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
|
|
12479
|
+
if (type == "}" || type == "{") return popAndPass(type, stream, state);
|
|
12480
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
12504
12481
|
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12482
|
+
if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
|
|
12483
|
+
override += " error";
|
|
12484
|
+
} else if (type == "word") {
|
|
12485
|
+
wordAsValue(stream);
|
|
12486
|
+
} else if (type == "interpolation") {
|
|
12487
|
+
return pushContext(state, stream, "interpolation");
|
|
12488
|
+
}
|
|
12489
|
+
return "prop";
|
|
12490
|
+
};
|
|
12511
12491
|
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
return states.atBlock(type, stream, state);
|
|
12518
|
-
}
|
|
12519
|
-
};
|
|
12492
|
+
states.propBlock = function(type, _stream, state) {
|
|
12493
|
+
if (type == "}") return popContext(state);
|
|
12494
|
+
if (type == "word") { override = "property"; return "maybeprop"; }
|
|
12495
|
+
return state.context.type;
|
|
12496
|
+
};
|
|
12520
12497
|
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
var word = stream.current().toLowerCase();
|
|
12530
|
-
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
12531
|
-
override = "keyword";
|
|
12532
|
-
else if (mediaTypes.hasOwnProperty(word))
|
|
12533
|
-
override = "attribute";
|
|
12534
|
-
else if (mediaFeatures.hasOwnProperty(word))
|
|
12535
|
-
override = "property";
|
|
12536
|
-
else if (mediaValueKeywords.hasOwnProperty(word))
|
|
12537
|
-
override = "keyword";
|
|
12538
|
-
else if (propertyKeywords.hasOwnProperty(word))
|
|
12539
|
-
override = "property";
|
|
12540
|
-
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
|
12541
|
-
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12542
|
-
else if (valueKeywords.hasOwnProperty(word))
|
|
12543
|
-
override = "atom";
|
|
12544
|
-
else if (colorKeywords.hasOwnProperty(word))
|
|
12545
|
-
override = "keyword";
|
|
12546
|
-
else
|
|
12547
|
-
override = "error";
|
|
12548
|
-
}
|
|
12549
|
-
return state.context.type;
|
|
12550
|
-
};
|
|
12498
|
+
states.parens = function(type, stream, state) {
|
|
12499
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
12500
|
+
if (type == ")") return popContext(state);
|
|
12501
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
12502
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12503
|
+
if (type == "word") wordAsValue(stream);
|
|
12504
|
+
return "parens";
|
|
12505
|
+
};
|
|
12551
12506
|
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
return popAndPass(type, stream, state);
|
|
12555
|
-
if (type == "{")
|
|
12556
|
-
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
|
|
12557
|
-
if (type == "word")
|
|
12558
|
-
override = "error";
|
|
12559
|
-
return state.context.type;
|
|
12560
|
-
};
|
|
12507
|
+
states.pseudo = function(type, stream, state) {
|
|
12508
|
+
if (type == "meta") return "pseudo";
|
|
12561
12509
|
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12510
|
+
if (type == "word") {
|
|
12511
|
+
override = "variable-3";
|
|
12512
|
+
return state.context.type;
|
|
12513
|
+
}
|
|
12514
|
+
return pass(type, stream, state);
|
|
12515
|
+
};
|
|
12567
12516
|
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
};
|
|
12517
|
+
states.documentTypes = function(type, stream, state) {
|
|
12518
|
+
if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
|
|
12519
|
+
override = "tag";
|
|
12520
|
+
return state.context.type;
|
|
12521
|
+
} else {
|
|
12522
|
+
return states.atBlock(type, stream, state);
|
|
12523
|
+
}
|
|
12524
|
+
};
|
|
12577
12525
|
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
}
|
|
12583
|
-
if (type == "word") {
|
|
12584
|
-
if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
|
|
12585
|
-
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
|
|
12586
|
-
override = "error";
|
|
12587
|
-
else
|
|
12588
|
-
override = "property";
|
|
12589
|
-
return "maybeprop";
|
|
12590
|
-
}
|
|
12591
|
-
return "restricted_atBlock";
|
|
12592
|
-
};
|
|
12526
|
+
states.atBlock = function(type, stream, state) {
|
|
12527
|
+
if (type == "(") return pushContext(state, stream, "atBlock_parens");
|
|
12528
|
+
if (type == "}" || type == ";") return popAndPass(type, stream, state);
|
|
12529
|
+
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
|
|
12593
12530
|
|
|
12594
|
-
|
|
12595
|
-
if (type == "word") { override = "variable"; return "keyframes"; }
|
|
12596
|
-
if (type == "{") return pushContext(state, stream, "top");
|
|
12597
|
-
return pass(type, stream, state);
|
|
12598
|
-
};
|
|
12531
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12599
12532
|
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12533
|
+
if (type == "word") {
|
|
12534
|
+
var word = stream.current().toLowerCase();
|
|
12535
|
+
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
12536
|
+
override = "keyword";
|
|
12537
|
+
else if (mediaTypes.hasOwnProperty(word))
|
|
12538
|
+
override = "attribute";
|
|
12539
|
+
else if (mediaFeatures.hasOwnProperty(word))
|
|
12540
|
+
override = "property";
|
|
12541
|
+
else if (mediaValueKeywords.hasOwnProperty(word))
|
|
12542
|
+
override = "keyword";
|
|
12543
|
+
else if (propertyKeywords.hasOwnProperty(word))
|
|
12544
|
+
override = "property";
|
|
12545
|
+
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
|
12546
|
+
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12547
|
+
else if (valueKeywords.hasOwnProperty(word))
|
|
12548
|
+
override = "atom";
|
|
12549
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
12550
|
+
override = "keyword";
|
|
12551
|
+
else
|
|
12552
|
+
override = "error";
|
|
12553
|
+
}
|
|
12554
|
+
return state.context.type;
|
|
12555
|
+
};
|
|
12607
12556
|
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12557
|
+
states.atComponentBlock = function(type, stream, state) {
|
|
12558
|
+
if (type == "}")
|
|
12559
|
+
return popAndPass(type, stream, state);
|
|
12560
|
+
if (type == "{")
|
|
12561
|
+
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
|
|
12562
|
+
if (type == "word")
|
|
12563
|
+
override = "error";
|
|
12564
|
+
return state.context.type;
|
|
12565
|
+
};
|
|
12615
12566
|
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
context: new Context(inline ? "block" : "top", base || 0, null)};
|
|
12622
|
-
},
|
|
12567
|
+
states.atBlock_parens = function(type, stream, state) {
|
|
12568
|
+
if (type == ")") return popContext(state);
|
|
12569
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
|
|
12570
|
+
return states.atBlock(type, stream, state);
|
|
12571
|
+
};
|
|
12623
12572
|
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
state.state = states[state.state](type, stream, state);
|
|
12634
|
-
return override;
|
|
12635
|
-
},
|
|
12573
|
+
states.restricted_atBlock_before = function(type, stream, state) {
|
|
12574
|
+
if (type == "{")
|
|
12575
|
+
return pushContext(state, stream, "restricted_atBlock");
|
|
12576
|
+
if (type == "word" && state.stateArg == "@counter-style") {
|
|
12577
|
+
override = "variable";
|
|
12578
|
+
return "restricted_atBlock_before";
|
|
12579
|
+
}
|
|
12580
|
+
return pass(type, stream, state);
|
|
12581
|
+
};
|
|
12636
12582
|
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
}
|
|
12653
|
-
return indent;
|
|
12654
|
-
},
|
|
12583
|
+
states.restricted_atBlock = function(type, stream, state) {
|
|
12584
|
+
if (type == "}") {
|
|
12585
|
+
state.stateArg = null;
|
|
12586
|
+
return popContext(state);
|
|
12587
|
+
}
|
|
12588
|
+
if (type == "word") {
|
|
12589
|
+
if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
|
|
12590
|
+
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
|
|
12591
|
+
override = "error";
|
|
12592
|
+
else
|
|
12593
|
+
override = "property";
|
|
12594
|
+
return "maybeprop";
|
|
12595
|
+
}
|
|
12596
|
+
return "restricted_atBlock";
|
|
12597
|
+
};
|
|
12655
12598
|
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
fold: "brace"
|
|
12662
|
-
};
|
|
12663
|
-
});
|
|
12599
|
+
states.keyframes = function(type, stream, state) {
|
|
12600
|
+
if (type == "word") { override = "variable"; return "keyframes"; }
|
|
12601
|
+
if (type == "{") return pushContext(state, stream, "top");
|
|
12602
|
+
return pass(type, stream, state);
|
|
12603
|
+
};
|
|
12664
12604
|
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12605
|
+
states.at = function(type, stream, state) {
|
|
12606
|
+
if (type == ";") return popContext(state);
|
|
12607
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
12608
|
+
if (type == "word") override = "tag";
|
|
12609
|
+
else if (type == "hash") override = "builtin";
|
|
12610
|
+
return "at";
|
|
12611
|
+
};
|
|
12672
12612
|
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
], mediaTypes = keySet(mediaTypes_);
|
|
12681
|
-
|
|
12682
|
-
var mediaFeatures_ = [
|
|
12683
|
-
"width", "min-width", "max-width", "height", "min-height", "max-height",
|
|
12684
|
-
"device-width", "min-device-width", "max-device-width", "device-height",
|
|
12685
|
-
"min-device-height", "max-device-height", "aspect-ratio",
|
|
12686
|
-
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
|
|
12687
|
-
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
|
|
12688
|
-
"max-color", "color-index", "min-color-index", "max-color-index",
|
|
12689
|
-
"monochrome", "min-monochrome", "max-monochrome", "resolution",
|
|
12690
|
-
"min-resolution", "max-resolution", "scan", "grid", "orientation",
|
|
12691
|
-
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
|
|
12692
|
-
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
|
|
12693
|
-
"dynamic-range", "video-dynamic-range"
|
|
12694
|
-
], mediaFeatures = keySet(mediaFeatures_);
|
|
12695
|
-
|
|
12696
|
-
var mediaValueKeywords_ = [
|
|
12697
|
-
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
|
|
12698
|
-
"interlace", "progressive",
|
|
12699
|
-
"dark", "light",
|
|
12700
|
-
"standard", "high"
|
|
12701
|
-
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
12702
|
-
|
|
12703
|
-
var propertyKeywords_ = [
|
|
12704
|
-
"align-content", "align-items", "align-self", "alignment-adjust",
|
|
12705
|
-
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
|
|
12706
|
-
"animation-direction", "animation-duration", "animation-fill-mode",
|
|
12707
|
-
"animation-iteration-count", "animation-name", "animation-play-state",
|
|
12708
|
-
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",
|
|
12709
|
-
"backface-visibility", "background", "background-attachment",
|
|
12710
|
-
"background-blend-mode", "background-clip", "background-color",
|
|
12711
|
-
"background-image", "background-origin", "background-position",
|
|
12712
|
-
"background-position-x", "background-position-y", "background-repeat",
|
|
12713
|
-
"background-size", "baseline-shift", "binding", "bleed", "block-size",
|
|
12714
|
-
"bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
|
|
12715
|
-
"border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
|
|
12716
|
-
"border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
|
|
12717
|
-
"border-collapse", "border-color", "border-image", "border-image-outset",
|
|
12718
|
-
"border-image-repeat", "border-image-slice", "border-image-source",
|
|
12719
|
-
"border-image-width", "border-left", "border-left-color", "border-left-style",
|
|
12720
|
-
"border-left-width", "border-radius", "border-right", "border-right-color",
|
|
12721
|
-
"border-right-style", "border-right-width", "border-spacing", "border-style",
|
|
12722
|
-
"border-top", "border-top-color", "border-top-left-radius",
|
|
12723
|
-
"border-top-right-radius", "border-top-style", "border-top-width",
|
|
12724
|
-
"border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
|
|
12725
|
-
"break-after", "break-before", "break-inside", "caption-side", "caret-color",
|
|
12726
|
-
"clear", "clip", "color", "color-profile", "column-count", "column-fill",
|
|
12727
|
-
"column-gap", "column-rule", "column-rule-color", "column-rule-style",
|
|
12728
|
-
"column-rule-width", "column-span", "column-width", "columns", "contain",
|
|
12729
|
-
"content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
|
|
12730
|
-
"cue-before", "cursor", "direction", "display", "dominant-baseline",
|
|
12731
|
-
"drop-initial-after-adjust", "drop-initial-after-align",
|
|
12732
|
-
"drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
|
|
12733
|
-
"drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
|
|
12734
|
-
"flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
|
|
12735
|
-
"flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
|
|
12736
|
-
"font", "font-family", "font-feature-settings", "font-kerning",
|
|
12737
|
-
"font-language-override", "font-optical-sizing", "font-size",
|
|
12738
|
-
"font-size-adjust", "font-stretch", "font-style", "font-synthesis",
|
|
12739
|
-
"font-variant", "font-variant-alternates", "font-variant-caps",
|
|
12740
|
-
"font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
|
|
12741
|
-
"font-variant-position", "font-variation-settings", "font-weight", "gap",
|
|
12742
|
-
"grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
|
|
12743
|
-
"grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
|
|
12744
|
-
"grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
|
|
12745
|
-
"grid-template", "grid-template-areas", "grid-template-columns",
|
|
12746
|
-
"grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
|
|
12747
|
-
"image-orientation", "image-rendering", "image-resolution", "inline-box-align",
|
|
12748
|
-
"inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
|
|
12749
|
-
"inset-inline-end", "inset-inline-start", "isolation", "justify-content",
|
|
12750
|
-
"justify-items", "justify-self", "left", "letter-spacing", "line-break",
|
|
12751
|
-
"line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
|
|
12752
|
-
"line-stacking-shift", "line-stacking-strategy", "list-style",
|
|
12753
|
-
"list-style-image", "list-style-position", "list-style-type", "margin",
|
|
12754
|
-
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
|
|
12755
|
-
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
|
|
12756
|
-
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
|
|
12757
|
-
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
|
|
12758
|
-
"max-block-size", "max-height", "max-inline-size",
|
|
12759
|
-
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
|
|
12760
|
-
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
|
|
12761
|
-
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
|
|
12762
|
-
"offset-distance", "offset-path", "offset-position", "offset-rotate",
|
|
12763
|
-
"opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
|
|
12764
|
-
"outline-style", "outline-width", "overflow", "overflow-style",
|
|
12765
|
-
"overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
|
|
12766
|
-
"padding-left", "padding-right", "padding-top", "page", "page-break-after",
|
|
12767
|
-
"page-break-before", "page-break-inside", "page-policy", "pause",
|
|
12768
|
-
"pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
|
|
12769
|
-
"pitch-range", "place-content", "place-items", "place-self", "play-during",
|
|
12770
|
-
"position", "presentation-level", "punctuation-trim", "quotes",
|
|
12771
|
-
"region-break-after", "region-break-before", "region-break-inside",
|
|
12772
|
-
"region-fragment", "rendering-intent", "resize", "rest", "rest-after",
|
|
12773
|
-
"rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
|
|
12774
|
-
"row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
|
|
12775
|
-
"scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
|
|
12776
|
-
"scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
|
|
12777
|
-
"scroll-margin-inline", "scroll-margin-inline-end",
|
|
12778
|
-
"scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
|
|
12779
|
-
"scroll-margin-top", "scroll-padding", "scroll-padding-block",
|
|
12780
|
-
"scroll-padding-block-end", "scroll-padding-block-start",
|
|
12781
|
-
"scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
|
|
12782
|
-
"scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
|
|
12783
|
-
"scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
|
|
12784
|
-
"shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
|
|
12785
|
-
"size", "speak", "speak-as", "speak-header", "speak-numeral",
|
|
12786
|
-
"speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
|
|
12787
|
-
"table-layout", "target", "target-name", "target-new", "target-position",
|
|
12788
|
-
"text-align", "text-align-last", "text-combine-upright", "text-decoration",
|
|
12789
|
-
"text-decoration-color", "text-decoration-line", "text-decoration-skip",
|
|
12790
|
-
"text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
|
|
12791
|
-
"text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
|
|
12792
|
-
"text-height", "text-indent", "text-justify", "text-orientation",
|
|
12793
|
-
"text-outline", "text-overflow", "text-rendering", "text-shadow",
|
|
12794
|
-
"text-size-adjust", "text-space-collapse", "text-transform",
|
|
12795
|
-
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
|
|
12796
|
-
"transform-style", "transition", "transition-delay", "transition-duration",
|
|
12797
|
-
"transition-property", "transition-timing-function", "translate",
|
|
12798
|
-
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
|
|
12799
|
-
"voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
|
|
12800
|
-
"voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
|
|
12801
|
-
"will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
|
|
12802
|
-
// SVG-specific
|
|
12803
|
-
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
|
|
12804
|
-
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
|
|
12805
|
-
"color-interpolation", "color-interpolation-filters",
|
|
12806
|
-
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
|
|
12807
|
-
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
|
|
12808
|
-
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
|
|
12809
|
-
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
|
|
12810
|
-
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
|
|
12811
|
-
"glyph-orientation-vertical", "text-anchor", "writing-mode",
|
|
12812
|
-
], propertyKeywords = keySet(propertyKeywords_);
|
|
12813
|
-
|
|
12814
|
-
var nonStandardPropertyKeywords_ = [
|
|
12815
|
-
"accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
|
|
12816
|
-
"border-block-end-color", "border-block-end-style", "border-block-end-width",
|
|
12817
|
-
"border-block-start", "border-block-start-color", "border-block-start-style",
|
|
12818
|
-
"border-block-start-width", "border-block-style", "border-block-width",
|
|
12819
|
-
"border-inline", "border-inline-color", "border-inline-end",
|
|
12820
|
-
"border-inline-end-color", "border-inline-end-style",
|
|
12821
|
-
"border-inline-end-width", "border-inline-start", "border-inline-start-color",
|
|
12822
|
-
"border-inline-start-style", "border-inline-start-width",
|
|
12823
|
-
"border-inline-style", "border-inline-width", "content-visibility", "margin-block",
|
|
12824
|
-
"margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
|
|
12825
|
-
"margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
|
|
12826
|
-
"padding-block-start", "padding-inline", "padding-inline-end",
|
|
12827
|
-
"padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
|
|
12828
|
-
"scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
|
|
12829
|
-
"scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
|
|
12830
|
-
"scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
|
|
12831
|
-
"searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
|
|
12832
|
-
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
12833
|
-
|
|
12834
|
-
var fontProperties_ = [
|
|
12835
|
-
"font-display", "font-family", "src", "unicode-range", "font-variant",
|
|
12836
|
-
"font-feature-settings", "font-stretch", "font-weight", "font-style"
|
|
12837
|
-
], fontProperties = keySet(fontProperties_);
|
|
12838
|
-
|
|
12839
|
-
var counterDescriptors_ = [
|
|
12840
|
-
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
|
|
12841
|
-
"speak-as", "suffix", "symbols", "system"
|
|
12842
|
-
], counterDescriptors = keySet(counterDescriptors_);
|
|
12843
|
-
|
|
12844
|
-
var colorKeywords_ = [
|
|
12845
|
-
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
12846
|
-
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
12847
|
-
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
12848
|
-
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
12849
|
-
"darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
12850
|
-
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
12851
|
-
"darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
|
|
12852
|
-
"deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
|
|
12853
|
-
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
12854
|
-
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
12855
|
-
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
12856
|
-
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
12857
|
-
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
|
|
12858
|
-
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
|
|
12859
|
-
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
12860
|
-
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
12861
|
-
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
12862
|
-
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
12863
|
-
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
12864
|
-
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
12865
|
-
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
12866
|
-
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
12867
|
-
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
12868
|
-
"slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
|
|
12869
|
-
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
12870
|
-
"whitesmoke", "yellow", "yellowgreen"
|
|
12871
|
-
], colorKeywords = keySet(colorKeywords_);
|
|
12872
|
-
|
|
12873
|
-
var valueKeywords_ = [
|
|
12874
|
-
"above", "absolute", "activeborder", "additive", "activecaption", "afar",
|
|
12875
|
-
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
|
|
12876
|
-
"always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
|
|
12877
|
-
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
|
12878
|
-
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
|
12879
|
-
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
|
12880
|
-
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel",
|
|
12881
|
-
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
|
12882
|
-
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
|
12883
|
-
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
|
12884
|
-
"cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
|
|
12885
|
-
"col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
|
|
12886
|
-
"compact", "condensed", "conic-gradient", "contain", "content", "contents",
|
|
12887
|
-
"content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
|
|
12888
|
-
"cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
12889
|
-
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
|
|
12890
|
-
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
|
|
12891
|
-
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
|
|
12892
|
-
"dot-dash", "dot-dot-dash",
|
|
12893
|
-
"dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
|
|
12894
|
-
"element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
|
|
12895
|
-
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
|
|
12896
|
-
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
|
|
12897
|
-
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
|
|
12898
|
-
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
|
|
12899
|
-
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
|
|
12900
|
-
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
|
|
12901
|
-
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
|
|
12902
|
-
"extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
|
|
12903
|
-
"forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
|
|
12904
|
-
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
|
|
12905
|
-
"help", "hidden", "hide", "higher", "highlight", "highlighttext",
|
|
12906
|
-
"hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
|
|
12907
|
-
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
|
|
12908
|
-
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
|
|
12909
|
-
"inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
|
|
12910
|
-
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
|
|
12911
|
-
"katakana", "katakana-iroha", "keep-all", "khmer",
|
|
12912
|
-
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
|
|
12913
|
-
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
|
|
12914
|
-
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
|
|
12915
|
-
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
|
12916
|
-
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
|
12917
|
-
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
|
12918
|
-
"media-controls-background", "media-current-time-display",
|
|
12919
|
-
"media-fullscreen-button", "media-mute-button", "media-play-button",
|
|
12920
|
-
"media-return-to-realtime-button", "media-rewind-button",
|
|
12921
|
-
"media-seek-back-button", "media-seek-forward-button", "media-slider",
|
|
12922
|
-
"media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
|
|
12923
|
-
"media-volume-slider-container", "media-volume-sliderthumb", "medium",
|
|
12924
|
-
"menu", "menulist", "menulist-button", "menulist-text",
|
|
12925
|
-
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
|
|
12926
|
-
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
|
12927
|
-
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
|
12928
|
-
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
|
12929
|
-
"ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
|
|
12930
|
-
"optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
|
|
12931
|
-
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
|
|
12932
|
-
"painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
|
|
12933
|
-
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
|
|
12934
|
-
"progress", "push-button", "radial-gradient", "radio", "read-only",
|
|
12935
|
-
"read-write", "read-write-plaintext-only", "rectangle", "region",
|
|
12936
|
-
"relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
|
|
12937
|
-
"repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
12938
|
-
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
|
|
12939
|
-
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
|
|
12940
|
-
"s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
|
|
12941
|
-
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
|
|
12942
|
-
"searchfield-cancel-button", "searchfield-decoration",
|
|
12943
|
-
"searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
|
|
12944
|
-
"semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
|
|
12945
|
-
"simp-chinese-formal", "simp-chinese-informal", "single",
|
|
12946
|
-
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
12947
|
-
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
|
|
12948
|
-
"small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
|
|
12949
|
-
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
|
|
12950
|
-
"square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
|
|
12951
|
-
"subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
|
|
12952
|
-
"table-caption", "table-cell", "table-column", "table-column-group",
|
|
12953
|
-
"table-footer-group", "table-header-group", "table-row", "table-row-group",
|
|
12954
|
-
"tamil",
|
|
12955
|
-
"telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
|
|
12956
|
-
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
|
|
12957
|
-
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
|
|
12958
|
-
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
|
|
12959
|
-
"trad-chinese-formal", "trad-chinese-informal", "transform",
|
|
12960
|
-
"translate", "translate3d", "translateX", "translateY", "translateZ",
|
|
12961
|
-
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
|
|
12962
|
-
"upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
|
|
12963
|
-
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
|
|
12964
|
-
"var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
|
|
12965
|
-
"visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
|
|
12966
|
-
"window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
|
|
12967
|
-
"xx-large", "xx-small"
|
|
12968
|
-
], valueKeywords = keySet(valueKeywords_);
|
|
12969
|
-
|
|
12970
|
-
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
|
|
12971
|
-
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
|
|
12972
|
-
.concat(valueKeywords_);
|
|
12973
|
-
CodeMirror.registerHelper("hintWords", "css", allWords);
|
|
12974
|
-
|
|
12975
|
-
function tokenCComment(stream, state) {
|
|
12976
|
-
var maybeEnd = false, ch;
|
|
12977
|
-
while ((ch = stream.next()) != null) {
|
|
12978
|
-
if (maybeEnd && ch == "/") {
|
|
12979
|
-
state.tokenize = null;
|
|
12980
|
-
break;
|
|
12981
|
-
}
|
|
12982
|
-
maybeEnd = (ch == "*");
|
|
12983
|
-
}
|
|
12984
|
-
return ["comment", "comment"];
|
|
12985
|
-
}
|
|
12613
|
+
states.interpolation = function(type, stream, state) {
|
|
12614
|
+
if (type == "}") return popContext(state);
|
|
12615
|
+
if (type == "{" || type == ";") return popAndPass(type, stream, state);
|
|
12616
|
+
if (type == "word") override = "variable";
|
|
12617
|
+
else if (type != "variable" && type != "(" && type != ")") override = "error";
|
|
12618
|
+
return "interpolation";
|
|
12619
|
+
};
|
|
12986
12620
|
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
fontProperties: fontProperties,
|
|
12995
|
-
counterDescriptors: counterDescriptors,
|
|
12996
|
-
colorKeywords: colorKeywords,
|
|
12997
|
-
valueKeywords: valueKeywords,
|
|
12998
|
-
tokenHooks: {
|
|
12999
|
-
"/": function(stream, state) {
|
|
13000
|
-
if (!stream.eat("*")) return false;
|
|
13001
|
-
state.tokenize = tokenCComment;
|
|
13002
|
-
return tokenCComment(stream, state);
|
|
13003
|
-
}
|
|
13004
|
-
},
|
|
13005
|
-
name: "css"
|
|
13006
|
-
});
|
|
12621
|
+
return {
|
|
12622
|
+
startState: function(base) {
|
|
12623
|
+
return {tokenize: null,
|
|
12624
|
+
state: inline ? "block" : "top",
|
|
12625
|
+
stateArg: null,
|
|
12626
|
+
context: new Context(inline ? "block" : "top", base || 0, null)};
|
|
12627
|
+
},
|
|
13007
12628
|
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
"/": function(stream, state) {
|
|
13021
|
-
if (stream.eat("/")) {
|
|
13022
|
-
stream.skipToEnd();
|
|
13023
|
-
return ["comment", "comment"];
|
|
13024
|
-
} else if (stream.eat("*")) {
|
|
13025
|
-
state.tokenize = tokenCComment;
|
|
13026
|
-
return tokenCComment(stream, state);
|
|
13027
|
-
} else {
|
|
13028
|
-
return ["operator", "operator"];
|
|
13029
|
-
}
|
|
13030
|
-
},
|
|
13031
|
-
":": function(stream) {
|
|
13032
|
-
if (stream.match(/^\s*\{/, false))
|
|
13033
|
-
return [null, null]
|
|
13034
|
-
return false;
|
|
13035
|
-
},
|
|
13036
|
-
"$": function(stream) {
|
|
13037
|
-
stream.match(/^[\w-]+/);
|
|
13038
|
-
if (stream.match(/^\s*:/, false))
|
|
13039
|
-
return ["variable-2", "variable-definition"];
|
|
13040
|
-
return ["variable-2", "variable"];
|
|
13041
|
-
},
|
|
13042
|
-
"#": function(stream) {
|
|
13043
|
-
if (!stream.eat("{")) return false;
|
|
13044
|
-
return [null, "interpolation"];
|
|
13045
|
-
}
|
|
13046
|
-
},
|
|
13047
|
-
name: "css",
|
|
13048
|
-
helperType: "scss"
|
|
13049
|
-
});
|
|
12629
|
+
token: function(stream, state) {
|
|
12630
|
+
if (!state.tokenize && stream.eatSpace()) return null;
|
|
12631
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
12632
|
+
if (style && typeof style == "object") {
|
|
12633
|
+
type = style[1];
|
|
12634
|
+
style = style[0];
|
|
12635
|
+
}
|
|
12636
|
+
override = style;
|
|
12637
|
+
if (type != "comment")
|
|
12638
|
+
state.state = states[state.state](type, stream, state);
|
|
12639
|
+
return override;
|
|
12640
|
+
},
|
|
13050
12641
|
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
return tokenCComment(stream, state);
|
|
13070
|
-
} else {
|
|
13071
|
-
return ["operator", "operator"];
|
|
13072
|
-
}
|
|
13073
|
-
},
|
|
13074
|
-
"@": function(stream) {
|
|
13075
|
-
if (stream.eat("{")) return [null, "interpolation"];
|
|
13076
|
-
if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
|
|
13077
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
13078
|
-
if (stream.match(/^\s*:/, false))
|
|
13079
|
-
return ["variable-2", "variable-definition"];
|
|
13080
|
-
return ["variable-2", "variable"];
|
|
13081
|
-
},
|
|
13082
|
-
"&": function() {
|
|
13083
|
-
return ["atom", "atom"];
|
|
13084
|
-
}
|
|
13085
|
-
},
|
|
13086
|
-
name: "css",
|
|
13087
|
-
helperType: "less"
|
|
13088
|
-
});
|
|
12642
|
+
indent: function(state, textAfter) {
|
|
12643
|
+
var cx = state.context, ch = textAfter && textAfter.charAt(0);
|
|
12644
|
+
var indent = cx.indent;
|
|
12645
|
+
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
|
|
12646
|
+
if (cx.prev) {
|
|
12647
|
+
if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
|
|
12648
|
+
cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
|
|
12649
|
+
// Resume indentation from parent context.
|
|
12650
|
+
cx = cx.prev;
|
|
12651
|
+
indent = cx.indent;
|
|
12652
|
+
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
|
|
12653
|
+
ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
|
|
12654
|
+
// Dedent relative to current context.
|
|
12655
|
+
indent = Math.max(0, cx.indent - indentUnit);
|
|
12656
|
+
}
|
|
12657
|
+
}
|
|
12658
|
+
return indent;
|
|
12659
|
+
},
|
|
13089
12660
|
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
colorKeywords: colorKeywords,
|
|
13099
|
-
valueKeywords: valueKeywords,
|
|
13100
|
-
supportsAtComponent: true,
|
|
13101
|
-
tokenHooks: {
|
|
13102
|
-
"/": function(stream, state) {
|
|
13103
|
-
if (!stream.eat("*")) return false;
|
|
13104
|
-
state.tokenize = tokenCComment;
|
|
13105
|
-
return tokenCComment(stream, state);
|
|
13106
|
-
}
|
|
13107
|
-
},
|
|
13108
|
-
name: "css",
|
|
13109
|
-
helperType: "gss"
|
|
13110
|
-
});
|
|
12661
|
+
electricChars: "}",
|
|
12662
|
+
blockCommentStart: "/*",
|
|
12663
|
+
blockCommentEnd: "*/",
|
|
12664
|
+
blockCommentContinue: " * ",
|
|
12665
|
+
lineComment: lineComment,
|
|
12666
|
+
fold: "brace"
|
|
12667
|
+
};
|
|
12668
|
+
});
|
|
13111
12669
|
|
|
13112
|
-
|
|
12670
|
+
function keySet(array) {
|
|
12671
|
+
var keys = {};
|
|
12672
|
+
for (var i = 0; i < array.length; ++i) {
|
|
12673
|
+
keys[array[i].toLowerCase()] = true;
|
|
12674
|
+
}
|
|
12675
|
+
return keys;
|
|
12676
|
+
}
|
|
12677
|
+
|
|
12678
|
+
var documentTypes_ = [
|
|
12679
|
+
"domain", "regexp", "url", "url-prefix"
|
|
12680
|
+
], documentTypes = keySet(documentTypes_);
|
|
12681
|
+
|
|
12682
|
+
var mediaTypes_ = [
|
|
12683
|
+
"all", "aural", "braille", "handheld", "print", "projection", "screen",
|
|
12684
|
+
"tty", "tv", "embossed"
|
|
12685
|
+
], mediaTypes = keySet(mediaTypes_);
|
|
12686
|
+
|
|
12687
|
+
var mediaFeatures_ = [
|
|
12688
|
+
"width", "min-width", "max-width", "height", "min-height", "max-height",
|
|
12689
|
+
"device-width", "min-device-width", "max-device-width", "device-height",
|
|
12690
|
+
"min-device-height", "max-device-height", "aspect-ratio",
|
|
12691
|
+
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
|
|
12692
|
+
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
|
|
12693
|
+
"max-color", "color-index", "min-color-index", "max-color-index",
|
|
12694
|
+
"monochrome", "min-monochrome", "max-monochrome", "resolution",
|
|
12695
|
+
"min-resolution", "max-resolution", "scan", "grid", "orientation",
|
|
12696
|
+
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
|
|
12697
|
+
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
|
|
12698
|
+
"dynamic-range", "video-dynamic-range"
|
|
12699
|
+
], mediaFeatures = keySet(mediaFeatures_);
|
|
12700
|
+
|
|
12701
|
+
var mediaValueKeywords_ = [
|
|
12702
|
+
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
|
|
12703
|
+
"interlace", "progressive",
|
|
12704
|
+
"dark", "light",
|
|
12705
|
+
"standard", "high"
|
|
12706
|
+
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
12707
|
+
|
|
12708
|
+
var propertyKeywords_ = [
|
|
12709
|
+
"align-content", "align-items", "align-self", "alignment-adjust",
|
|
12710
|
+
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
|
|
12711
|
+
"animation-direction", "animation-duration", "animation-fill-mode",
|
|
12712
|
+
"animation-iteration-count", "animation-name", "animation-play-state",
|
|
12713
|
+
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",
|
|
12714
|
+
"backface-visibility", "background", "background-attachment",
|
|
12715
|
+
"background-blend-mode", "background-clip", "background-color",
|
|
12716
|
+
"background-image", "background-origin", "background-position",
|
|
12717
|
+
"background-position-x", "background-position-y", "background-repeat",
|
|
12718
|
+
"background-size", "baseline-shift", "binding", "bleed", "block-size",
|
|
12719
|
+
"bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
|
|
12720
|
+
"border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
|
|
12721
|
+
"border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
|
|
12722
|
+
"border-collapse", "border-color", "border-image", "border-image-outset",
|
|
12723
|
+
"border-image-repeat", "border-image-slice", "border-image-source",
|
|
12724
|
+
"border-image-width", "border-left", "border-left-color", "border-left-style",
|
|
12725
|
+
"border-left-width", "border-radius", "border-right", "border-right-color",
|
|
12726
|
+
"border-right-style", "border-right-width", "border-spacing", "border-style",
|
|
12727
|
+
"border-top", "border-top-color", "border-top-left-radius",
|
|
12728
|
+
"border-top-right-radius", "border-top-style", "border-top-width",
|
|
12729
|
+
"border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
|
|
12730
|
+
"break-after", "break-before", "break-inside", "caption-side", "caret-color",
|
|
12731
|
+
"clear", "clip", "color", "color-profile", "column-count", "column-fill",
|
|
12732
|
+
"column-gap", "column-rule", "column-rule-color", "column-rule-style",
|
|
12733
|
+
"column-rule-width", "column-span", "column-width", "columns", "contain",
|
|
12734
|
+
"content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
|
|
12735
|
+
"cue-before", "cursor", "direction", "display", "dominant-baseline",
|
|
12736
|
+
"drop-initial-after-adjust", "drop-initial-after-align",
|
|
12737
|
+
"drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
|
|
12738
|
+
"drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
|
|
12739
|
+
"flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
|
|
12740
|
+
"flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
|
|
12741
|
+
"font", "font-family", "font-feature-settings", "font-kerning",
|
|
12742
|
+
"font-language-override", "font-optical-sizing", "font-size",
|
|
12743
|
+
"font-size-adjust", "font-stretch", "font-style", "font-synthesis",
|
|
12744
|
+
"font-variant", "font-variant-alternates", "font-variant-caps",
|
|
12745
|
+
"font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
|
|
12746
|
+
"font-variant-position", "font-variation-settings", "font-weight", "gap",
|
|
12747
|
+
"grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
|
|
12748
|
+
"grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
|
|
12749
|
+
"grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
|
|
12750
|
+
"grid-template", "grid-template-areas", "grid-template-columns",
|
|
12751
|
+
"grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
|
|
12752
|
+
"image-orientation", "image-rendering", "image-resolution", "inline-box-align",
|
|
12753
|
+
"inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
|
|
12754
|
+
"inset-inline-end", "inset-inline-start", "isolation", "justify-content",
|
|
12755
|
+
"justify-items", "justify-self", "left", "letter-spacing", "line-break",
|
|
12756
|
+
"line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
|
|
12757
|
+
"line-stacking-shift", "line-stacking-strategy", "list-style",
|
|
12758
|
+
"list-style-image", "list-style-position", "list-style-type", "margin",
|
|
12759
|
+
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
|
|
12760
|
+
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
|
|
12761
|
+
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
|
|
12762
|
+
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
|
|
12763
|
+
"max-block-size", "max-height", "max-inline-size",
|
|
12764
|
+
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
|
|
12765
|
+
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
|
|
12766
|
+
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
|
|
12767
|
+
"offset-distance", "offset-path", "offset-position", "offset-rotate",
|
|
12768
|
+
"opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
|
|
12769
|
+
"outline-style", "outline-width", "overflow", "overflow-style",
|
|
12770
|
+
"overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
|
|
12771
|
+
"padding-left", "padding-right", "padding-top", "page", "page-break-after",
|
|
12772
|
+
"page-break-before", "page-break-inside", "page-policy", "pause",
|
|
12773
|
+
"pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
|
|
12774
|
+
"pitch-range", "place-content", "place-items", "place-self", "play-during",
|
|
12775
|
+
"position", "presentation-level", "punctuation-trim", "quotes",
|
|
12776
|
+
"region-break-after", "region-break-before", "region-break-inside",
|
|
12777
|
+
"region-fragment", "rendering-intent", "resize", "rest", "rest-after",
|
|
12778
|
+
"rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
|
|
12779
|
+
"row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
|
|
12780
|
+
"scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
|
|
12781
|
+
"scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
|
|
12782
|
+
"scroll-margin-inline", "scroll-margin-inline-end",
|
|
12783
|
+
"scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
|
|
12784
|
+
"scroll-margin-top", "scroll-padding", "scroll-padding-block",
|
|
12785
|
+
"scroll-padding-block-end", "scroll-padding-block-start",
|
|
12786
|
+
"scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
|
|
12787
|
+
"scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
|
|
12788
|
+
"scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
|
|
12789
|
+
"shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
|
|
12790
|
+
"size", "speak", "speak-as", "speak-header", "speak-numeral",
|
|
12791
|
+
"speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
|
|
12792
|
+
"table-layout", "target", "target-name", "target-new", "target-position",
|
|
12793
|
+
"text-align", "text-align-last", "text-combine-upright", "text-decoration",
|
|
12794
|
+
"text-decoration-color", "text-decoration-line", "text-decoration-skip",
|
|
12795
|
+
"text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
|
|
12796
|
+
"text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
|
|
12797
|
+
"text-height", "text-indent", "text-justify", "text-orientation",
|
|
12798
|
+
"text-outline", "text-overflow", "text-rendering", "text-shadow",
|
|
12799
|
+
"text-size-adjust", "text-space-collapse", "text-transform",
|
|
12800
|
+
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
|
|
12801
|
+
"transform-style", "transition", "transition-delay", "transition-duration",
|
|
12802
|
+
"transition-property", "transition-timing-function", "translate",
|
|
12803
|
+
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
|
|
12804
|
+
"voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
|
|
12805
|
+
"voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
|
|
12806
|
+
"will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
|
|
12807
|
+
// SVG-specific
|
|
12808
|
+
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
|
|
12809
|
+
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
|
|
12810
|
+
"color-interpolation", "color-interpolation-filters",
|
|
12811
|
+
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
|
|
12812
|
+
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
|
|
12813
|
+
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
|
|
12814
|
+
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
|
|
12815
|
+
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
|
|
12816
|
+
"glyph-orientation-vertical", "text-anchor", "writing-mode",
|
|
12817
|
+
], propertyKeywords = keySet(propertyKeywords_);
|
|
12818
|
+
|
|
12819
|
+
var nonStandardPropertyKeywords_ = [
|
|
12820
|
+
"accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
|
|
12821
|
+
"border-block-end-color", "border-block-end-style", "border-block-end-width",
|
|
12822
|
+
"border-block-start", "border-block-start-color", "border-block-start-style",
|
|
12823
|
+
"border-block-start-width", "border-block-style", "border-block-width",
|
|
12824
|
+
"border-inline", "border-inline-color", "border-inline-end",
|
|
12825
|
+
"border-inline-end-color", "border-inline-end-style",
|
|
12826
|
+
"border-inline-end-width", "border-inline-start", "border-inline-start-color",
|
|
12827
|
+
"border-inline-start-style", "border-inline-start-width",
|
|
12828
|
+
"border-inline-style", "border-inline-width", "content-visibility", "margin-block",
|
|
12829
|
+
"margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
|
|
12830
|
+
"margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
|
|
12831
|
+
"padding-block-start", "padding-inline", "padding-inline-end",
|
|
12832
|
+
"padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
|
|
12833
|
+
"scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
|
|
12834
|
+
"scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
|
|
12835
|
+
"scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
|
|
12836
|
+
"searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
|
|
12837
|
+
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
12838
|
+
|
|
12839
|
+
var fontProperties_ = [
|
|
12840
|
+
"font-display", "font-family", "src", "unicode-range", "font-variant",
|
|
12841
|
+
"font-feature-settings", "font-stretch", "font-weight", "font-style"
|
|
12842
|
+
], fontProperties = keySet(fontProperties_);
|
|
12843
|
+
|
|
12844
|
+
var counterDescriptors_ = [
|
|
12845
|
+
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
|
|
12846
|
+
"speak-as", "suffix", "symbols", "system"
|
|
12847
|
+
], counterDescriptors = keySet(counterDescriptors_);
|
|
12848
|
+
|
|
12849
|
+
var colorKeywords_ = [
|
|
12850
|
+
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
12851
|
+
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
12852
|
+
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
12853
|
+
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
12854
|
+
"darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
12855
|
+
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
12856
|
+
"darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
|
|
12857
|
+
"deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
|
|
12858
|
+
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
12859
|
+
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
12860
|
+
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
12861
|
+
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
12862
|
+
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
|
|
12863
|
+
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
|
|
12864
|
+
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
12865
|
+
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
12866
|
+
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
12867
|
+
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
12868
|
+
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
12869
|
+
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
12870
|
+
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
12871
|
+
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
12872
|
+
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
12873
|
+
"slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
|
|
12874
|
+
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
12875
|
+
"whitesmoke", "yellow", "yellowgreen"
|
|
12876
|
+
], colorKeywords = keySet(colorKeywords_);
|
|
12877
|
+
|
|
12878
|
+
var valueKeywords_ = [
|
|
12879
|
+
"above", "absolute", "activeborder", "additive", "activecaption", "afar",
|
|
12880
|
+
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
|
|
12881
|
+
"always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
|
|
12882
|
+
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
|
12883
|
+
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
|
12884
|
+
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
|
12885
|
+
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel",
|
|
12886
|
+
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
|
12887
|
+
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
|
12888
|
+
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
|
12889
|
+
"cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
|
|
12890
|
+
"col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
|
|
12891
|
+
"compact", "condensed", "conic-gradient", "contain", "content", "contents",
|
|
12892
|
+
"content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
|
|
12893
|
+
"cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
12894
|
+
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
|
|
12895
|
+
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
|
|
12896
|
+
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
|
|
12897
|
+
"dot-dash", "dot-dot-dash",
|
|
12898
|
+
"dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
|
|
12899
|
+
"element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
|
|
12900
|
+
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
|
|
12901
|
+
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
|
|
12902
|
+
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
|
|
12903
|
+
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
|
|
12904
|
+
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
|
|
12905
|
+
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
|
|
12906
|
+
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
|
|
12907
|
+
"extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
|
|
12908
|
+
"forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
|
|
12909
|
+
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
|
|
12910
|
+
"help", "hidden", "hide", "higher", "highlight", "highlighttext",
|
|
12911
|
+
"hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
|
|
12912
|
+
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
|
|
12913
|
+
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
|
|
12914
|
+
"inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
|
|
12915
|
+
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
|
|
12916
|
+
"katakana", "katakana-iroha", "keep-all", "khmer",
|
|
12917
|
+
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
|
|
12918
|
+
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
|
|
12919
|
+
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
|
|
12920
|
+
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
|
12921
|
+
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
|
12922
|
+
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
|
12923
|
+
"media-controls-background", "media-current-time-display",
|
|
12924
|
+
"media-fullscreen-button", "media-mute-button", "media-play-button",
|
|
12925
|
+
"media-return-to-realtime-button", "media-rewind-button",
|
|
12926
|
+
"media-seek-back-button", "media-seek-forward-button", "media-slider",
|
|
12927
|
+
"media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
|
|
12928
|
+
"media-volume-slider-container", "media-volume-sliderthumb", "medium",
|
|
12929
|
+
"menu", "menulist", "menulist-button", "menulist-text",
|
|
12930
|
+
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
|
|
12931
|
+
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
|
12932
|
+
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
|
12933
|
+
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
|
12934
|
+
"ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
|
|
12935
|
+
"optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
|
|
12936
|
+
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
|
|
12937
|
+
"painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
|
|
12938
|
+
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
|
|
12939
|
+
"progress", "push-button", "radial-gradient", "radio", "read-only",
|
|
12940
|
+
"read-write", "read-write-plaintext-only", "rectangle", "region",
|
|
12941
|
+
"relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
|
|
12942
|
+
"repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
12943
|
+
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
|
|
12944
|
+
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
|
|
12945
|
+
"s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
|
|
12946
|
+
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
|
|
12947
|
+
"searchfield-cancel-button", "searchfield-decoration",
|
|
12948
|
+
"searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
|
|
12949
|
+
"semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
|
|
12950
|
+
"simp-chinese-formal", "simp-chinese-informal", "single",
|
|
12951
|
+
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
12952
|
+
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
|
|
12953
|
+
"small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
|
|
12954
|
+
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
|
|
12955
|
+
"square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
|
|
12956
|
+
"subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
|
|
12957
|
+
"table-caption", "table-cell", "table-column", "table-column-group",
|
|
12958
|
+
"table-footer-group", "table-header-group", "table-row", "table-row-group",
|
|
12959
|
+
"tamil",
|
|
12960
|
+
"telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
|
|
12961
|
+
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
|
|
12962
|
+
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
|
|
12963
|
+
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
|
|
12964
|
+
"trad-chinese-formal", "trad-chinese-informal", "transform",
|
|
12965
|
+
"translate", "translate3d", "translateX", "translateY", "translateZ",
|
|
12966
|
+
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
|
|
12967
|
+
"upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
|
|
12968
|
+
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
|
|
12969
|
+
"var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
|
|
12970
|
+
"visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
|
|
12971
|
+
"window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
|
|
12972
|
+
"xx-large", "xx-small"
|
|
12973
|
+
], valueKeywords = keySet(valueKeywords_);
|
|
12974
|
+
|
|
12975
|
+
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
|
|
12976
|
+
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
|
|
12977
|
+
.concat(valueKeywords_);
|
|
12978
|
+
CodeMirror.registerHelper("hintWords", "css", allWords);
|
|
12979
|
+
|
|
12980
|
+
function tokenCComment(stream, state) {
|
|
12981
|
+
var maybeEnd = false, ch;
|
|
12982
|
+
while ((ch = stream.next()) != null) {
|
|
12983
|
+
if (maybeEnd && ch == "/") {
|
|
12984
|
+
state.tokenize = null;
|
|
12985
|
+
break;
|
|
12986
|
+
}
|
|
12987
|
+
maybeEnd = (ch == "*");
|
|
12988
|
+
}
|
|
12989
|
+
return ["comment", "comment"];
|
|
12990
|
+
}
|
|
12991
|
+
|
|
12992
|
+
CodeMirror.defineMIME("text/css", {
|
|
12993
|
+
documentTypes: documentTypes,
|
|
12994
|
+
mediaTypes: mediaTypes,
|
|
12995
|
+
mediaFeatures: mediaFeatures,
|
|
12996
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
12997
|
+
propertyKeywords: propertyKeywords,
|
|
12998
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
12999
|
+
fontProperties: fontProperties,
|
|
13000
|
+
counterDescriptors: counterDescriptors,
|
|
13001
|
+
colorKeywords: colorKeywords,
|
|
13002
|
+
valueKeywords: valueKeywords,
|
|
13003
|
+
tokenHooks: {
|
|
13004
|
+
"/": function(stream, state) {
|
|
13005
|
+
if (!stream.eat("*")) return false;
|
|
13006
|
+
state.tokenize = tokenCComment;
|
|
13007
|
+
return tokenCComment(stream, state);
|
|
13008
|
+
}
|
|
13009
|
+
},
|
|
13010
|
+
name: "css"
|
|
13011
|
+
});
|
|
13012
|
+
|
|
13013
|
+
CodeMirror.defineMIME("text/x-scss", {
|
|
13014
|
+
mediaTypes: mediaTypes,
|
|
13015
|
+
mediaFeatures: mediaFeatures,
|
|
13016
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
13017
|
+
propertyKeywords: propertyKeywords,
|
|
13018
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13019
|
+
colorKeywords: colorKeywords,
|
|
13020
|
+
valueKeywords: valueKeywords,
|
|
13021
|
+
fontProperties: fontProperties,
|
|
13022
|
+
allowNested: true,
|
|
13023
|
+
lineComment: "//",
|
|
13024
|
+
tokenHooks: {
|
|
13025
|
+
"/": function(stream, state) {
|
|
13026
|
+
if (stream.eat("/")) {
|
|
13027
|
+
stream.skipToEnd();
|
|
13028
|
+
return ["comment", "comment"];
|
|
13029
|
+
} else if (stream.eat("*")) {
|
|
13030
|
+
state.tokenize = tokenCComment;
|
|
13031
|
+
return tokenCComment(stream, state);
|
|
13032
|
+
} else {
|
|
13033
|
+
return ["operator", "operator"];
|
|
13034
|
+
}
|
|
13035
|
+
},
|
|
13036
|
+
":": function(stream) {
|
|
13037
|
+
if (stream.match(/^\s*\{/, false))
|
|
13038
|
+
return [null, null]
|
|
13039
|
+
return false;
|
|
13040
|
+
},
|
|
13041
|
+
"$": function(stream) {
|
|
13042
|
+
stream.match(/^[\w-]+/);
|
|
13043
|
+
if (stream.match(/^\s*:/, false))
|
|
13044
|
+
return ["variable-2", "variable-definition"];
|
|
13045
|
+
return ["variable-2", "variable"];
|
|
13046
|
+
},
|
|
13047
|
+
"#": function(stream) {
|
|
13048
|
+
if (!stream.eat("{")) return false;
|
|
13049
|
+
return [null, "interpolation"];
|
|
13050
|
+
}
|
|
13051
|
+
},
|
|
13052
|
+
name: "css",
|
|
13053
|
+
helperType: "scss"
|
|
13054
|
+
});
|
|
13055
|
+
|
|
13056
|
+
CodeMirror.defineMIME("text/x-less", {
|
|
13057
|
+
mediaTypes: mediaTypes,
|
|
13058
|
+
mediaFeatures: mediaFeatures,
|
|
13059
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
13060
|
+
propertyKeywords: propertyKeywords,
|
|
13061
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13062
|
+
colorKeywords: colorKeywords,
|
|
13063
|
+
valueKeywords: valueKeywords,
|
|
13064
|
+
fontProperties: fontProperties,
|
|
13065
|
+
allowNested: true,
|
|
13066
|
+
lineComment: "//",
|
|
13067
|
+
tokenHooks: {
|
|
13068
|
+
"/": function(stream, state) {
|
|
13069
|
+
if (stream.eat("/")) {
|
|
13070
|
+
stream.skipToEnd();
|
|
13071
|
+
return ["comment", "comment"];
|
|
13072
|
+
} else if (stream.eat("*")) {
|
|
13073
|
+
state.tokenize = tokenCComment;
|
|
13074
|
+
return tokenCComment(stream, state);
|
|
13075
|
+
} else {
|
|
13076
|
+
return ["operator", "operator"];
|
|
13077
|
+
}
|
|
13078
|
+
},
|
|
13079
|
+
"@": function(stream) {
|
|
13080
|
+
if (stream.eat("{")) return [null, "interpolation"];
|
|
13081
|
+
if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
|
|
13082
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
13083
|
+
if (stream.match(/^\s*:/, false))
|
|
13084
|
+
return ["variable-2", "variable-definition"];
|
|
13085
|
+
return ["variable-2", "variable"];
|
|
13086
|
+
},
|
|
13087
|
+
"&": function() {
|
|
13088
|
+
return ["atom", "atom"];
|
|
13089
|
+
}
|
|
13090
|
+
},
|
|
13091
|
+
name: "css",
|
|
13092
|
+
helperType: "less"
|
|
13093
|
+
});
|
|
13094
|
+
|
|
13095
|
+
CodeMirror.defineMIME("text/x-gss", {
|
|
13096
|
+
documentTypes: documentTypes,
|
|
13097
|
+
mediaTypes: mediaTypes,
|
|
13098
|
+
mediaFeatures: mediaFeatures,
|
|
13099
|
+
propertyKeywords: propertyKeywords,
|
|
13100
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13101
|
+
fontProperties: fontProperties,
|
|
13102
|
+
counterDescriptors: counterDescriptors,
|
|
13103
|
+
colorKeywords: colorKeywords,
|
|
13104
|
+
valueKeywords: valueKeywords,
|
|
13105
|
+
supportsAtComponent: true,
|
|
13106
|
+
tokenHooks: {
|
|
13107
|
+
"/": function(stream, state) {
|
|
13108
|
+
if (!stream.eat("*")) return false;
|
|
13109
|
+
state.tokenize = tokenCComment;
|
|
13110
|
+
return tokenCComment(stream, state);
|
|
13111
|
+
}
|
|
13112
|
+
},
|
|
13113
|
+
name: "css",
|
|
13114
|
+
helperType: "gss"
|
|
13115
|
+
});
|
|
13116
|
+
|
|
13117
|
+
});
|
|
13113
13118
|
} ());
|
|
13119
|
+
return css$2.exports;
|
|
13120
|
+
}
|
|
13121
|
+
|
|
13122
|
+
requireCss();
|
|
13114
13123
|
|
|
13115
13124
|
var htmlmixed = {exports: {}};
|
|
13116
13125
|
|
|
@@ -13542,7 +13551,7 @@ function requireXml () {
|
|
|
13542
13551
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
13543
13552
|
|
|
13544
13553
|
(function(mod) {
|
|
13545
|
-
mod(requireCodemirror(), requireXml(), javascript.exports,
|
|
13554
|
+
mod(requireCodemirror(), requireXml(), javascript.exports, requireCss());
|
|
13546
13555
|
})(function(CodeMirror) {
|
|
13547
13556
|
|
|
13548
13557
|
var defaultTags = {
|
|
@@ -14159,7 +14168,7 @@ function requireSass () {
|
|
|
14159
14168
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14160
14169
|
|
|
14161
14170
|
(function(mod) {
|
|
14162
|
-
mod(requireCodemirror(),
|
|
14171
|
+
mod(requireCodemirror(), requireCss());
|
|
14163
14172
|
})(function(CodeMirror) {
|
|
14164
14173
|
|
|
14165
14174
|
CodeMirror.defineMode("sass", function(config) {
|
|
@@ -15405,7 +15414,7 @@ function requirePug () {
|
|
|
15405
15414
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15406
15415
|
|
|
15407
15416
|
(function(mod) {
|
|
15408
|
-
mod(requireCodemirror(), javascript.exports,
|
|
15417
|
+
mod(requireCodemirror(), javascript.exports, requireCss(), htmlmixed.exports);
|
|
15409
15418
|
})(function(CodeMirror) {
|
|
15410
15419
|
|
|
15411
15420
|
CodeMirror.defineMode("pug", function (config) {
|
|
@@ -16441,7 +16450,7 @@ function requireHandlebars () {
|
|
|
16441
16450
|
requireXml(),
|
|
16442
16451
|
javascript.exports,
|
|
16443
16452
|
requireCoffeescript(),
|
|
16444
|
-
|
|
16453
|
+
requireCss(),
|
|
16445
16454
|
requireSass(),
|
|
16446
16455
|
requireStylus(),
|
|
16447
16456
|
requirePug(),
|
|
@@ -33067,7 +33076,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33067
33076
|
props: {
|
|
33068
33077
|
mode: { default: "htmlmixed" },
|
|
33069
33078
|
value: { default: "" },
|
|
33070
|
-
readonly: { type: Boolean, default: false }
|
|
33079
|
+
readonly: { type: Boolean, default: false },
|
|
33080
|
+
extension: null
|
|
33071
33081
|
},
|
|
33072
33082
|
emits: ["change"],
|
|
33073
33083
|
setup(__props, { emit }) {
|
|
@@ -33107,7 +33117,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33107
33117
|
emit("change", editor.getValue());
|
|
33108
33118
|
});
|
|
33109
33119
|
editor.on("blur", () => {
|
|
33110
|
-
const parser = props.mode === "vue" ? "html" : props.mode === "htmlmixed" ? "html" : props.mode === "javascript" ? "babel" : props.mode === "css" ? "postcss" : props.mode;
|
|
33120
|
+
const parser = props.mode === "vue" ? "html" : props.mode === "htmlmixed" ? "html" : props.mode === "javascript" ? "babel" : props.mode === "css" ? "postcss" : props.extension || props.mode;
|
|
33111
33121
|
emit("change", prettier.format(
|
|
33112
33122
|
editor.getValue(),
|
|
33113
33123
|
{
|
|
@@ -33212,6 +33222,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33212
33222
|
const { filename } = store.state.activeFile;
|
|
33213
33223
|
return filename.endsWith(".vue") ? "vue" : filename.endsWith(".html") ? "htmlmixed" : filename.endsWith(".css") ? "css" : "javascript";
|
|
33214
33224
|
});
|
|
33225
|
+
const extension = computed(() => {
|
|
33226
|
+
const { filename } = store.state.activeFile;
|
|
33227
|
+
return filename.split(".").pop();
|
|
33228
|
+
});
|
|
33215
33229
|
return (_ctx, _cache) => {
|
|
33216
33230
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
33217
33231
|
createVNode(FileSelector),
|
|
@@ -33219,8 +33233,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33219
33233
|
createVNode(_sfc_main$5, {
|
|
33220
33234
|
onChange: unref(onChange),
|
|
33221
33235
|
value: unref(store).state.activeFile.code,
|
|
33222
|
-
mode: unref(activeMode)
|
|
33223
|
-
|
|
33236
|
+
mode: unref(activeMode),
|
|
33237
|
+
extension: unref(extension)
|
|
33238
|
+
}, null, 8, ["onChange", "value", "mode", "extension"]),
|
|
33224
33239
|
createVNode(Message, {
|
|
33225
33240
|
err: unref(store).state.errors[0]
|
|
33226
33241
|
}, null, 8, ["err"])
|
|
@@ -33230,9 +33245,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33230
33245
|
}
|
|
33231
33246
|
});
|
|
33232
33247
|
|
|
33233
|
-
const
|
|
33248
|
+
const Editor_vue_vue_type_style_index_0_scoped_3d77b495_lang = '';
|
|
33234
33249
|
|
|
33235
|
-
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
33250
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3d77b495"]]);
|
|
33236
33251
|
|
|
33237
33252
|
const srcdoc = "<!doctype html>\n<html>\n\t<head>\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n\t\t\t\tOxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n\t\t\t}\n\t\t</style>\n\t\t<style id=\"__sfc-styles\"></style>\n\t\t<script>\n\t\t\t(() => {\n\t\t\t\tlet scriptEls = []\n\n\t\t\t\twindow.process = { env: {} }\n\t\t\t\twindow.__modules__ = {}\n\n\t\t\t\twindow.__export__ = (mod, key, get) => {\n\t\t\t\t\tObject.defineProperty(mod, key, {\n\t\t\t\t\t\tenumerable: true,\n\t\t\t\t\t\tconfigurable: true,\n\t\t\t\t\t\tget\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t\twindow.__dynamic_import__ = key => {\n\t\t\t\t\treturn Promise.resolve(window.__modules__[key])\n\t\t\t\t}\n\n\t\t\t\tasync function handle_message(ev) {\n\t\t\t\t\tlet { action, cmd_id } = ev.data;\n\t\t\t\t\tconst send_message = (payload) => parent.postMessage( { ...payload }, ev.origin);\n\t\t\t\t\tconst send_reply = (payload) => send_message({ ...payload, cmd_id });\n\t\t\t\t\tconst send_ok = () => send_reply({ action: 'cmd_ok' });\n\t\t\t\t\tconst send_error = (message, stack) => send_reply({ action: 'cmd_error', message, stack });\n\n\t\t\t\t\tif (action === 'eval') {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (scriptEls.length) {\n\t\t\t\t\t\t\t\tscriptEls.forEach(el => {\n\t\t\t\t\t\t\t\t\tdocument.head.removeChild(el)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tscriptEls.length = 0\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tlet { script: scripts } = ev.data.args\n\t\t\t\t\t\t\tif (typeof scripts === 'string') scripts = [scripts]\n\n\t\t\t\t\t\t\tfor (const script of scripts) {\n\t\t\t\t\t\t\t\tconst scriptEl = document.createElement('script')\n\t\t\t\t\t\t\t\tscriptEl.setAttribute('type', 'module')\n\t\t\t\t\t\t\t\t// send ok in the module script to ensure sequential evaluation\n\t\t\t\t\t\t\t\t// of multiple proxy.eval() calls\n\t\t\t\t\t\t\t\tconst done = new Promise((resolve) => {\n\t\t\t\t\t\t\t\t\twindow.__next__ = resolve\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tscriptEl.innerHTML = script + `\\nwindow.__next__()`\n\t\t\t\t\t\t\t\tdocument.head.appendChild(scriptEl)\n\t\t\t\t\t\t\t\tscriptEl.onerror = err => send_error(err.message, err.stack)\n\t\t\t\t\t\t\t\tscriptEls.push(scriptEl)\n\t\t\t\t\t\t\t\tawait done\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsend_ok()\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\tsend_error(e.message, e.stack);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (action === 'catch_clicks') {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst top_origin = ev.origin;\n\t\t\t\t\t\t\tdocument.body.addEventListener('click', event => {\n\t\t\t\t\t\t\t\tif (event.which !== 1) return;\n\t\t\t\t\t\t\t\tif (event.metaKey || event.ctrlKey || event.shiftKey) return;\n\t\t\t\t\t\t\t\tif (event.defaultPrevented) return;\n\n\t\t\t\t\t\t\t\t// ensure target is a link\n\t\t\t\t\t\t\t\tlet el = event.target;\n\t\t\t\t\t\t\t\twhile (el && el.nodeName !== 'A') el = el.parentNode;\n\t\t\t\t\t\t\t\tif (!el || el.nodeName !== 'A') return;\n\n\t\t\t\t\t\t\t\tif (el.hasAttribute('download') || el.getAttribute('rel') === 'external' || el.target) return;\n\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t\t\tif (el.href.startsWith(top_origin)) {\n\t\t\t\t\t\t\t\t\tconst url = new URL(el.href);\n\t\t\t\t\t\t\t\t\tif (url.hash[0] === '#') {\n\t\t\t\t\t\t\t\t\t\twindow.location.hash = url.hash;\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\twindow.open(el.href, '_blank');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tsend_ok();\n\t\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t\tsend_error(e.message, e.stack);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twindow.addEventListener('message', handle_message, false);\n\n\t\t\t\twindow.onerror = function (msg, url, lineNo, columnNo, error) {\n\t\t\t\t\tif (msg.includes('module specifier “vue”')) {\n\t\t\t\t\t\t// firefox only error, ignore\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparent.postMessage({ action: 'error', value: error }, '*');\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tparent.postMessage({ action: 'error', value: msg }, '*');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twindow.addEventListener(\"unhandledrejection\", event => {\n\t\t\t\t\tif (event.reason.message.includes('Cross-origin')) {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tparent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tlet previous = { level: null, args: null };\n\n\t\t\t\t['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach((level) => {\n\t\t\t\t\tconst original = console[level];\n\t\t\t\t\tconsole[level] = (...args) => {\n\t\t\t\t\t\tconst msg = String(args[0])\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tmsg.includes('You are running a development build of Vue') ||\n\t\t\t\t\t\t\tmsg.includes('You are running the esm-bundler build of Vue')\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst stringifiedArgs = stringify(args);\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tprevious.level === level &&\n\t\t\t\t\t\t\tprevious.args &&\n\t\t\t\t\t\t\tprevious.args === stringifiedArgs\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, duplicate: true }, '*');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprevious = { level, args: stringifiedArgs };\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, args }, '*');\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, args: args.map(a => {\n\t\t\t\t\t\t\t\t\treturn a instanceof Error ? a.message : String(a)\n\t\t\t\t\t\t\t\t}) }, '*');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\toriginal(...args);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t[\n\t\t\t\t\t{ method: 'group', action: 'console_group' },\n\t\t\t\t\t{ method: 'groupEnd', action: 'console_group_end' },\n\t\t\t\t\t{ method: 'groupCollapsed', action: 'console_group_collapsed' },\n\t\t\t\t].forEach((group_action) => {\n\t\t\t\t\tconst original = console[group_action.method];\n\t\t\t\t\tconsole[group_action.method] = (label) => {\n\t\t\t\t\t\tparent.postMessage({ action: group_action.action, label }, '*');\n\n\t\t\t\t\t\toriginal(label);\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\tconst timers = new Map();\n\t\t\t\tconst original_time = console.time;\n\t\t\t\tconst original_timelog = console.timeLog;\n\t\t\t\tconst original_timeend = console.timeEnd;\n\n\t\t\t\tconsole.time = (label = 'default') => {\n\t\t\t\t\toriginal_time(label);\n\t\t\t\t\ttimers.set(label, performance.now());\n\t\t\t\t}\n\t\t\t\tconsole.timeLog = (label = 'default') => {\n\t\t\t\t\toriginal_timelog(label);\n\t\t\t\t\tconst now = performance.now();\n\t\t\t\t\tif (timers.has(label)) {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: [`${label}: ${now - timers.get(label)}ms`] }, '*');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: [`Timer '${label}' does not exist`] }, '*');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconsole.timeEnd = (label = 'default') => {\n\t\t\t\t\toriginal_timeend(label);\n\t\t\t\t\tconst now = performance.now();\n\t\t\t\t\tif (timers.has(label)) {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: [`${label}: ${now - timers.get(label)}ms`] }, '*');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: [`Timer '${label}' does not exist`] }, '*');\n\t\t\t\t\t}\n\t\t\t\t\ttimers.delete(label);\n\t\t\t\t};\n\n\t\t\t\tconst original_assert = console.assert;\n\t\t\t\tconsole.assert = (condition, ...args) => {\n\t\t\t\t\tif (condition) {\n\t\t\t\t\t\tconst stack = new Error().stack;\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'assert', args, stack }, '*');\n\t\t\t\t\t}\n\t\t\t\t\toriginal_assert(condition, ...args);\n\t\t\t\t};\n\n\t\t\t\tconst counter = new Map();\n\t\t\t\tconst original_count = console.count;\n\t\t\t\tconst original_countreset = console.countReset;\n\n\t\t\t\tconsole.count = (label = 'default') => {\n\t\t\t\t\tcounter.set(label, (counter.get(label) || 0) + 1);\n\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: `${label}: ${counter.get(label)}` }, '*');\n\t\t\t\t\toriginal_count(label);\n\t\t\t\t};\n\n\t\t\t\tconsole.countReset = (label = 'default') => {\n\t\t\t\t\tif (counter.has(label)) {\n\t\t\t\t\t\tcounter.set(label, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: `Count for '${label}' does not exist` }, '*');\n\t\t\t\t\t}\n\t\t\t\t\toriginal_countreset(label);\n\t\t\t\t};\n\n\t\t\t\tconst original_trace = console.trace;\n\n\t\t\t\tconsole.trace = (...args) => {\n\t\t\t\t\tconst stack = new Error().stack;\n\t\t\t\t\tparent.postMessage({ action: 'console', level: 'trace', args, stack }, '*');\n\t\t\t\t\toriginal_trace(...args);\n\t\t\t\t};\n\n\t\t\t\tfunction stringify(args) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn JSON.stringify(args);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})()\n\t\t</script>\n\n\t\t<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->\n\t\t<script async src=\"https://unpkg.com/es-module-shims@1.5.18/dist/es-module-shims.wasm.js\"></script>\n\t\t<script type=\"importmap\"><!--IMPORT_MAP--></script>\n\t\t<!--CSS-->\n\t</head>\n\t<body></body>\n</html>\n";
|
|
33238
33253
|
|