@olbrain/js-sdk 1.1.0 → 1.2.0
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/README.md +16 -0
- package/dist/index.d.mts +96 -2
- package/dist/index.d.ts +96 -2
- package/dist/index.global.js +121 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +126 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +122 -4
- package/dist/index.mjs.map +1 -1
- package/dist/widget.d.ts +96 -2
- package/dist/widget.widget.global.js +1055 -201
- package/dist/widget.widget.global.js.map +1 -1
- package/package.json +5 -4
|
@@ -701,7 +701,20 @@ var OlbrainWidget = (() => {
|
|
|
701
701
|
const match = re && re.exec(lexeme);
|
|
702
702
|
return match && match.index === 0;
|
|
703
703
|
}
|
|
704
|
-
var BACKREF_RE =
|
|
704
|
+
var BACKREF_RE = new RegExp(either(
|
|
705
|
+
/\[(?:[^\\\]]|\\.)*\]/,
|
|
706
|
+
// a character class, inside which ( and \ lose their meaning
|
|
707
|
+
/\(\?<(?![=!])[^>]+>/,
|
|
708
|
+
// a named capture group `(?<name>` (not a lookbehind `(?<=` / `(?<!`)
|
|
709
|
+
/\(\?'[^']+'/,
|
|
710
|
+
// a named capture group `(?'name'`
|
|
711
|
+
/\(\??/,
|
|
712
|
+
// an opening parenthesis, capturing or non-capturing / lookahead
|
|
713
|
+
/\\([1-9][0-9]*)/,
|
|
714
|
+
// a backreference like `\1`
|
|
715
|
+
/\\./
|
|
716
|
+
// any other escape sequence
|
|
717
|
+
));
|
|
705
718
|
function _rewriteBackreferences(regexps, { joinWith }) {
|
|
706
719
|
let numCaptures = 0;
|
|
707
720
|
return regexps.map((regex) => {
|
|
@@ -721,7 +734,7 @@ var OlbrainWidget = (() => {
|
|
|
721
734
|
out += "\\" + String(Number(match[1]) + offset);
|
|
722
735
|
} else {
|
|
723
736
|
out += match[0];
|
|
724
|
-
if (match[0] === "(") {
|
|
737
|
+
if (match[0] === "(" || /^\(\?[<']/.test(match[0])) {
|
|
725
738
|
numCaptures++;
|
|
726
739
|
}
|
|
727
740
|
}
|
|
@@ -1309,7 +1322,7 @@ var OlbrainWidget = (() => {
|
|
|
1309
1322
|
}
|
|
1310
1323
|
return mode;
|
|
1311
1324
|
}
|
|
1312
|
-
var version = "11.
|
|
1325
|
+
var version = "11.12.0";
|
|
1313
1326
|
var HTMLInjectionError = class extends Error {
|
|
1314
1327
|
constructor(reason, html2) {
|
|
1315
1328
|
super(reason);
|
|
@@ -1623,7 +1636,10 @@ var OlbrainWidget = (() => {
|
|
|
1623
1636
|
}
|
|
1624
1637
|
}
|
|
1625
1638
|
if (match.type === "illegal" && lexeme === "") {
|
|
1626
|
-
|
|
1639
|
+
if (match.index === codeToHighlight.length) ;
|
|
1640
|
+
else {
|
|
1641
|
+
modeBuffer += "\n";
|
|
1642
|
+
}
|
|
1627
1643
|
return 1;
|
|
1628
1644
|
}
|
|
1629
1645
|
if (iterations > 1e5 && iterations > match.index * 3) {
|
|
@@ -2431,7 +2447,7 @@ var OlbrainWidget = (() => {
|
|
|
2431
2447
|
const BASED_LITERAL_RE = INTEGER_RE + "#" + BASED_INTEGER_RE + "(\\." + BASED_INTEGER_RE + ")?#(" + EXPONENT_RE + ")?";
|
|
2432
2448
|
const NUMBER_RE = "\\b(" + BASED_LITERAL_RE + "|" + DECIMAL_LITERAL_RE + ")";
|
|
2433
2449
|
const ID_REGEX = "[A-Za-z](_?[A-Za-z0-9.])*";
|
|
2434
|
-
const BAD_CHARS =
|
|
2450
|
+
const BAD_CHARS = `\\{\\}%#'"`;
|
|
2435
2451
|
const COMMENTS = hljs.COMMENT("--", "$");
|
|
2436
2452
|
const VAR_DECLS = {
|
|
2437
2453
|
// TODO: These spaces are not required by the Ada syntax
|
|
@@ -2533,7 +2549,8 @@ var OlbrainWidget = (() => {
|
|
|
2533
2549
|
"do",
|
|
2534
2550
|
"mod",
|
|
2535
2551
|
"requeue",
|
|
2536
|
-
"xor"
|
|
2552
|
+
"xor",
|
|
2553
|
+
"parallel"
|
|
2537
2554
|
];
|
|
2538
2555
|
return {
|
|
2539
2556
|
name: "Ada",
|
|
@@ -3504,9 +3521,13 @@ var OlbrainWidget = (() => {
|
|
|
3504
3521
|
end: "'",
|
|
3505
3522
|
illegal: "."
|
|
3506
3523
|
},
|
|
3524
|
+
// https://en.cppreference.com/w/cpp/language/string_literal
|
|
3525
|
+
// a d-char-sequence never contains parentheses, backslashes or whitespace;
|
|
3526
|
+
// quotes are excluded as well so the closing delimiter cannot swallow the
|
|
3527
|
+
// quote that actually terminates the literal
|
|
3507
3528
|
hljs.END_SAME_AS_BEGIN({
|
|
3508
|
-
begin: /(?:u8?|U|L)?R"([^()
|
|
3509
|
-
end: /\)([^()
|
|
3529
|
+
begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
|
|
3530
|
+
end: /\)([^()\\\s"]{0,16})"/
|
|
3510
3531
|
})
|
|
3511
3532
|
]
|
|
3512
3533
|
};
|
|
@@ -3515,7 +3536,7 @@ var OlbrainWidget = (() => {
|
|
|
3515
3536
|
variants: [
|
|
3516
3537
|
// Floating-point literal.
|
|
3517
3538
|
{
|
|
3518
|
-
begin: "[+-]?(?:(
|
|
3539
|
+
begin: "[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
|
3519
3540
|
},
|
|
3520
3541
|
// Integer literal.
|
|
3521
3542
|
{
|
|
@@ -3526,6 +3547,25 @@ var OlbrainWidget = (() => {
|
|
|
3526
3547
|
],
|
|
3527
3548
|
relevance: 0
|
|
3528
3549
|
};
|
|
3550
|
+
const PREPROCESSOR_INCLUDE = {
|
|
3551
|
+
scope: "meta",
|
|
3552
|
+
begin: /#\s*include\b/,
|
|
3553
|
+
end: /$/,
|
|
3554
|
+
keywords: { keyword: "include" },
|
|
3555
|
+
contains: [
|
|
3556
|
+
{
|
|
3557
|
+
// the `\` at the end of a line signaling continuation
|
|
3558
|
+
begin: /\\\n/
|
|
3559
|
+
},
|
|
3560
|
+
STRINGS,
|
|
3561
|
+
{
|
|
3562
|
+
scope: "string",
|
|
3563
|
+
begin: /<.*?>/
|
|
3564
|
+
},
|
|
3565
|
+
C_LINE_COMMENT_MODE,
|
|
3566
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
3567
|
+
]
|
|
3568
|
+
};
|
|
3529
3569
|
const PREPROCESSOR = {
|
|
3530
3570
|
className: "meta",
|
|
3531
3571
|
begin: /#\s*[a-z]+\b/,
|
|
@@ -3537,20 +3577,21 @@ var OlbrainWidget = (() => {
|
|
|
3537
3577
|
relevance: 0
|
|
3538
3578
|
},
|
|
3539
3579
|
hljs.inherit(STRINGS, { className: "string" }),
|
|
3540
|
-
{
|
|
3541
|
-
className: "string",
|
|
3542
|
-
begin: /<.*?>/
|
|
3543
|
-
},
|
|
3544
3580
|
C_LINE_COMMENT_MODE,
|
|
3545
3581
|
hljs.C_BLOCK_COMMENT_MODE
|
|
3546
3582
|
]
|
|
3547
3583
|
};
|
|
3584
|
+
const PREPROCESSORS = [
|
|
3585
|
+
PREPROCESSOR_INCLUDE,
|
|
3586
|
+
PREPROCESSOR
|
|
3587
|
+
];
|
|
3548
3588
|
const TITLE_MODE = {
|
|
3549
3589
|
className: "title",
|
|
3550
3590
|
begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
3551
3591
|
relevance: 0
|
|
3552
3592
|
};
|
|
3553
3593
|
const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
3594
|
+
const MAX_FUNCTION_TYPE_TOKENS = 12;
|
|
3554
3595
|
const RESERVED_KEYWORDS = [
|
|
3555
3596
|
"alignas",
|
|
3556
3597
|
"alignof",
|
|
@@ -3843,18 +3884,14 @@ var OlbrainWidget = (() => {
|
|
|
3843
3884
|
},
|
|
3844
3885
|
begin: regex.concat(
|
|
3845
3886
|
/\b/,
|
|
3846
|
-
|
|
3847
|
-
/(?!if)/,
|
|
3848
|
-
/(?!for)/,
|
|
3849
|
-
/(?!switch)/,
|
|
3850
|
-
/(?!while)/,
|
|
3887
|
+
`(?!${RESERVED_KEYWORDS.join("|")})`,
|
|
3851
3888
|
hljs.IDENT_RE,
|
|
3852
3889
|
regex.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
3853
3890
|
)
|
|
3854
3891
|
};
|
|
3855
3892
|
const EXPRESSION_CONTAINS = [
|
|
3856
3893
|
FUNCTION_DISPATCH,
|
|
3857
|
-
|
|
3894
|
+
...PREPROCESSORS,
|
|
3858
3895
|
CPP_PRIMITIVE_TYPES,
|
|
3859
3896
|
C_LINE_COMMENT_MODE,
|
|
3860
3897
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
@@ -3893,7 +3930,7 @@ var OlbrainWidget = (() => {
|
|
|
3893
3930
|
};
|
|
3894
3931
|
const FUNCTION_DECLARATION = {
|
|
3895
3932
|
className: "function",
|
|
3896
|
-
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE,
|
|
3933
|
+
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+){1," + MAX_FUNCTION_TYPE_TOKENS + "}" + FUNCTION_TITLE,
|
|
3897
3934
|
returnBegin: true,
|
|
3898
3935
|
end: /[{;=]/,
|
|
3899
3936
|
excludeEnd: true,
|
|
@@ -3965,7 +4002,7 @@ var OlbrainWidget = (() => {
|
|
|
3965
4002
|
CPP_PRIMITIVE_TYPES,
|
|
3966
4003
|
C_LINE_COMMENT_MODE,
|
|
3967
4004
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
3968
|
-
|
|
4005
|
+
...PREPROCESSORS
|
|
3969
4006
|
]
|
|
3970
4007
|
};
|
|
3971
4008
|
return {
|
|
@@ -3988,7 +4025,7 @@ var OlbrainWidget = (() => {
|
|
|
3988
4025
|
FUNCTION_DISPATCH,
|
|
3989
4026
|
EXPRESSION_CONTAINS,
|
|
3990
4027
|
[
|
|
3991
|
-
|
|
4028
|
+
...PREPROCESSORS,
|
|
3992
4029
|
{
|
|
3993
4030
|
// containers: ie, `vector <int> rooms (9);`
|
|
3994
4031
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
@@ -4658,10 +4695,7 @@ var OlbrainWidget = (() => {
|
|
|
4658
4695
|
starts: {
|
|
4659
4696
|
end: /<\/style>/,
|
|
4660
4697
|
returnEnd: true,
|
|
4661
|
-
subLanguage:
|
|
4662
|
-
"css",
|
|
4663
|
-
"xml"
|
|
4664
|
-
]
|
|
4698
|
+
subLanguage: "css"
|
|
4665
4699
|
}
|
|
4666
4700
|
},
|
|
4667
4701
|
{
|
|
@@ -4674,11 +4708,7 @@ var OlbrainWidget = (() => {
|
|
|
4674
4708
|
starts: {
|
|
4675
4709
|
end: /<\/script>/,
|
|
4676
4710
|
returnEnd: true,
|
|
4677
|
-
subLanguage:
|
|
4678
|
-
"javascript",
|
|
4679
|
-
"handlebars",
|
|
4680
|
-
"xml"
|
|
4681
|
-
]
|
|
4711
|
+
subLanguage: "javascript"
|
|
4682
4712
|
}
|
|
4683
4713
|
},
|
|
4684
4714
|
// we need this for now for jSX
|
|
@@ -6494,11 +6524,50 @@ var OlbrainWidget = (() => {
|
|
|
6494
6524
|
const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
|
|
6495
6525
|
const TEMPLATE_ARGUMENT_RE = "<[^<>]+>";
|
|
6496
6526
|
const FUNCTION_TYPE_RE = "(" + DECLTYPE_AUTO_RE + "|" + regex.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex.optional(TEMPLATE_ARGUMENT_RE) + ")";
|
|
6527
|
+
const ATOMIC_TYPES = regex.concat(/\batomic_/, regex.either(
|
|
6528
|
+
"bool",
|
|
6529
|
+
"char",
|
|
6530
|
+
"schar",
|
|
6531
|
+
"uchar",
|
|
6532
|
+
"short",
|
|
6533
|
+
"ushort",
|
|
6534
|
+
"int",
|
|
6535
|
+
"uint",
|
|
6536
|
+
"long",
|
|
6537
|
+
"ulong",
|
|
6538
|
+
"llong",
|
|
6539
|
+
"ullong",
|
|
6540
|
+
"char16_t",
|
|
6541
|
+
"char32_t",
|
|
6542
|
+
"wchar_t",
|
|
6543
|
+
"int_least8_t",
|
|
6544
|
+
"uint_least8_t",
|
|
6545
|
+
"int_least16_t",
|
|
6546
|
+
"uint_least16_t",
|
|
6547
|
+
"int_least32_t",
|
|
6548
|
+
"uint_least32_t",
|
|
6549
|
+
"int_least64_t",
|
|
6550
|
+
"uint_least64_t",
|
|
6551
|
+
"int_fast8_t",
|
|
6552
|
+
"uint_fast8_t",
|
|
6553
|
+
"int_fast16_t",
|
|
6554
|
+
"uint_fast16_t",
|
|
6555
|
+
"int_fast32_t",
|
|
6556
|
+
"uint_fast32_t",
|
|
6557
|
+
"int_fast64_t",
|
|
6558
|
+
"uint_fast64_t",
|
|
6559
|
+
"intptr_t",
|
|
6560
|
+
"uintptr_t",
|
|
6561
|
+
"size_t",
|
|
6562
|
+
"ptrdiff_t",
|
|
6563
|
+
"intmax_t",
|
|
6564
|
+
"uintmax_t"
|
|
6565
|
+
), /\b/);
|
|
6497
6566
|
const TYPES = {
|
|
6498
6567
|
className: "type",
|
|
6499
6568
|
variants: [
|
|
6500
6569
|
{ begin: "\\b[a-z\\d_]*_t\\b" },
|
|
6501
|
-
{ match:
|
|
6570
|
+
{ match: ATOMIC_TYPES }
|
|
6502
6571
|
]
|
|
6503
6572
|
};
|
|
6504
6573
|
const CHARACTER_ESCAPES = "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)";
|
|
@@ -6516,9 +6585,13 @@ var OlbrainWidget = (() => {
|
|
|
6516
6585
|
end: "'",
|
|
6517
6586
|
illegal: "."
|
|
6518
6587
|
},
|
|
6588
|
+
// https://en.cppreference.com/w/cpp/language/string_literal
|
|
6589
|
+
// a d-char-sequence never contains parentheses, backslashes or whitespace;
|
|
6590
|
+
// quotes are excluded as well so the closing delimiter cannot swallow the
|
|
6591
|
+
// quote that actually terminates the literal
|
|
6519
6592
|
hljs.END_SAME_AS_BEGIN({
|
|
6520
|
-
begin: /(?:u8?|U|L)?R"([^()
|
|
6521
|
-
end: /\)([^()
|
|
6593
|
+
begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
|
|
6594
|
+
end: /\)([^()\\\s"]{0,16})"/
|
|
6522
6595
|
})
|
|
6523
6596
|
]
|
|
6524
6597
|
};
|
|
@@ -6532,6 +6605,25 @@ var OlbrainWidget = (() => {
|
|
|
6532
6605
|
],
|
|
6533
6606
|
relevance: 0
|
|
6534
6607
|
};
|
|
6608
|
+
const PREPROCESSOR_INCLUDE = {
|
|
6609
|
+
scope: "meta",
|
|
6610
|
+
begin: /#\s*include\b/,
|
|
6611
|
+
end: /$/,
|
|
6612
|
+
keywords: { keyword: "include" },
|
|
6613
|
+
contains: [
|
|
6614
|
+
{
|
|
6615
|
+
// the `\` at the end of a line signaling continuation
|
|
6616
|
+
begin: /\\\n/
|
|
6617
|
+
},
|
|
6618
|
+
STRINGS,
|
|
6619
|
+
{
|
|
6620
|
+
scope: "string",
|
|
6621
|
+
begin: /<.*?>/
|
|
6622
|
+
},
|
|
6623
|
+
C_LINE_COMMENT_MODE,
|
|
6624
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
6625
|
+
]
|
|
6626
|
+
};
|
|
6535
6627
|
const PREPROCESSOR = {
|
|
6536
6628
|
className: "meta",
|
|
6537
6629
|
begin: /#\s*[a-z]+\b/,
|
|
@@ -6543,20 +6635,21 @@ var OlbrainWidget = (() => {
|
|
|
6543
6635
|
relevance: 0
|
|
6544
6636
|
},
|
|
6545
6637
|
hljs.inherit(STRINGS, { className: "string" }),
|
|
6546
|
-
{
|
|
6547
|
-
className: "string",
|
|
6548
|
-
begin: /<.*?>/
|
|
6549
|
-
},
|
|
6550
6638
|
C_LINE_COMMENT_MODE,
|
|
6551
6639
|
hljs.C_BLOCK_COMMENT_MODE
|
|
6552
6640
|
]
|
|
6553
6641
|
};
|
|
6642
|
+
const PREPROCESSORS = [
|
|
6643
|
+
PREPROCESSOR_INCLUDE,
|
|
6644
|
+
PREPROCESSOR
|
|
6645
|
+
];
|
|
6554
6646
|
const TITLE_MODE = {
|
|
6555
6647
|
className: "title",
|
|
6556
6648
|
begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
6557
6649
|
relevance: 0
|
|
6558
6650
|
};
|
|
6559
6651
|
const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
6652
|
+
const MAX_FUNCTION_TYPE_TOKENS = 12;
|
|
6560
6653
|
const C_KEYWORDS = [
|
|
6561
6654
|
"asm",
|
|
6562
6655
|
"auto",
|
|
@@ -6645,7 +6738,7 @@ var OlbrainWidget = (() => {
|
|
|
6645
6738
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
6646
6739
|
};
|
|
6647
6740
|
const EXPRESSION_CONTAINS = [
|
|
6648
|
-
|
|
6741
|
+
...PREPROCESSORS,
|
|
6649
6742
|
TYPES,
|
|
6650
6743
|
C_LINE_COMMENT_MODE,
|
|
6651
6744
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
@@ -6683,7 +6776,7 @@ var OlbrainWidget = (() => {
|
|
|
6683
6776
|
relevance: 0
|
|
6684
6777
|
};
|
|
6685
6778
|
const FUNCTION_DECLARATION = {
|
|
6686
|
-
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE,
|
|
6779
|
+
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+){1," + MAX_FUNCTION_TYPE_TOKENS + "}" + FUNCTION_TITLE,
|
|
6687
6780
|
returnBegin: true,
|
|
6688
6781
|
end: /[{;=]/,
|
|
6689
6782
|
excludeEnd: true,
|
|
@@ -6740,7 +6833,7 @@ var OlbrainWidget = (() => {
|
|
|
6740
6833
|
TYPES,
|
|
6741
6834
|
C_LINE_COMMENT_MODE,
|
|
6742
6835
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
6743
|
-
|
|
6836
|
+
...PREPROCESSORS
|
|
6744
6837
|
]
|
|
6745
6838
|
};
|
|
6746
6839
|
return {
|
|
@@ -6756,7 +6849,7 @@ var OlbrainWidget = (() => {
|
|
|
6756
6849
|
FUNCTION_DECLARATION,
|
|
6757
6850
|
EXPRESSION_CONTAINS,
|
|
6758
6851
|
[
|
|
6759
|
-
|
|
6852
|
+
...PREPROCESSORS,
|
|
6760
6853
|
{
|
|
6761
6854
|
begin: hljs.IDENT_RE + "::",
|
|
6762
6855
|
keywords: KEYWORDS
|
|
@@ -7427,7 +7520,7 @@ var OlbrainWidget = (() => {
|
|
|
7427
7520
|
case_insensitive: true,
|
|
7428
7521
|
keywords: { keyword: (
|
|
7429
7522
|
// scripting commands
|
|
7430
|
-
"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"
|
|
7523
|
+
"block break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endblock endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"
|
|
7431
7524
|
) },
|
|
7432
7525
|
contains: [
|
|
7433
7526
|
{
|
|
@@ -7438,7 +7531,11 @@ var OlbrainWidget = (() => {
|
|
|
7438
7531
|
hljs.COMMENT(/#\[\[/, /]]/),
|
|
7439
7532
|
hljs.HASH_COMMENT_MODE,
|
|
7440
7533
|
hljs.QUOTE_STRING_MODE,
|
|
7441
|
-
|
|
7534
|
+
{
|
|
7535
|
+
scope: "number",
|
|
7536
|
+
begin: /\b\d+(\.\d+)?\b/,
|
|
7537
|
+
relevance: 0
|
|
7538
|
+
}
|
|
7442
7539
|
]
|
|
7443
7540
|
};
|
|
7444
7541
|
}
|
|
@@ -8374,9 +8471,13 @@ var OlbrainWidget = (() => {
|
|
|
8374
8471
|
end: "'",
|
|
8375
8472
|
illegal: "."
|
|
8376
8473
|
},
|
|
8474
|
+
// https://en.cppreference.com/w/cpp/language/string_literal
|
|
8475
|
+
// a d-char-sequence never contains parentheses, backslashes or whitespace;
|
|
8476
|
+
// quotes are excluded as well so the closing delimiter cannot swallow the
|
|
8477
|
+
// quote that actually terminates the literal
|
|
8377
8478
|
hljs.END_SAME_AS_BEGIN({
|
|
8378
|
-
begin: /(?:u8?|U|L)?R"([^()
|
|
8379
|
-
end: /\)([^()
|
|
8479
|
+
begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
|
|
8480
|
+
end: /\)([^()\\\s"]{0,16})"/
|
|
8380
8481
|
})
|
|
8381
8482
|
]
|
|
8382
8483
|
};
|
|
@@ -8385,7 +8486,7 @@ var OlbrainWidget = (() => {
|
|
|
8385
8486
|
variants: [
|
|
8386
8487
|
// Floating-point literal.
|
|
8387
8488
|
{
|
|
8388
|
-
begin: "[+-]?(?:(
|
|
8489
|
+
begin: "[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
|
8389
8490
|
},
|
|
8390
8491
|
// Integer literal.
|
|
8391
8492
|
{
|
|
@@ -8396,6 +8497,25 @@ var OlbrainWidget = (() => {
|
|
|
8396
8497
|
],
|
|
8397
8498
|
relevance: 0
|
|
8398
8499
|
};
|
|
8500
|
+
const PREPROCESSOR_INCLUDE = {
|
|
8501
|
+
scope: "meta",
|
|
8502
|
+
begin: /#\s*include\b/,
|
|
8503
|
+
end: /$/,
|
|
8504
|
+
keywords: { keyword: "include" },
|
|
8505
|
+
contains: [
|
|
8506
|
+
{
|
|
8507
|
+
// the `\` at the end of a line signaling continuation
|
|
8508
|
+
begin: /\\\n/
|
|
8509
|
+
},
|
|
8510
|
+
STRINGS,
|
|
8511
|
+
{
|
|
8512
|
+
scope: "string",
|
|
8513
|
+
begin: /<.*?>/
|
|
8514
|
+
},
|
|
8515
|
+
C_LINE_COMMENT_MODE,
|
|
8516
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
8517
|
+
]
|
|
8518
|
+
};
|
|
8399
8519
|
const PREPROCESSOR = {
|
|
8400
8520
|
className: "meta",
|
|
8401
8521
|
begin: /#\s*[a-z]+\b/,
|
|
@@ -8407,20 +8527,21 @@ var OlbrainWidget = (() => {
|
|
|
8407
8527
|
relevance: 0
|
|
8408
8528
|
},
|
|
8409
8529
|
hljs.inherit(STRINGS, { className: "string" }),
|
|
8410
|
-
{
|
|
8411
|
-
className: "string",
|
|
8412
|
-
begin: /<.*?>/
|
|
8413
|
-
},
|
|
8414
8530
|
C_LINE_COMMENT_MODE,
|
|
8415
8531
|
hljs.C_BLOCK_COMMENT_MODE
|
|
8416
8532
|
]
|
|
8417
8533
|
};
|
|
8534
|
+
const PREPROCESSORS = [
|
|
8535
|
+
PREPROCESSOR_INCLUDE,
|
|
8536
|
+
PREPROCESSOR
|
|
8537
|
+
];
|
|
8418
8538
|
const TITLE_MODE = {
|
|
8419
8539
|
className: "title",
|
|
8420
8540
|
begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
8421
8541
|
relevance: 0
|
|
8422
8542
|
};
|
|
8423
8543
|
const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
8544
|
+
const MAX_FUNCTION_TYPE_TOKENS = 12;
|
|
8424
8545
|
const RESERVED_KEYWORDS = [
|
|
8425
8546
|
"alignas",
|
|
8426
8547
|
"alignof",
|
|
@@ -8713,18 +8834,14 @@ var OlbrainWidget = (() => {
|
|
|
8713
8834
|
},
|
|
8714
8835
|
begin: regex.concat(
|
|
8715
8836
|
/\b/,
|
|
8716
|
-
|
|
8717
|
-
/(?!if)/,
|
|
8718
|
-
/(?!for)/,
|
|
8719
|
-
/(?!switch)/,
|
|
8720
|
-
/(?!while)/,
|
|
8837
|
+
`(?!${RESERVED_KEYWORDS.join("|")})`,
|
|
8721
8838
|
hljs.IDENT_RE,
|
|
8722
8839
|
regex.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
8723
8840
|
)
|
|
8724
8841
|
};
|
|
8725
8842
|
const EXPRESSION_CONTAINS = [
|
|
8726
8843
|
FUNCTION_DISPATCH,
|
|
8727
|
-
|
|
8844
|
+
...PREPROCESSORS,
|
|
8728
8845
|
CPP_PRIMITIVE_TYPES,
|
|
8729
8846
|
C_LINE_COMMENT_MODE,
|
|
8730
8847
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
@@ -8763,7 +8880,7 @@ var OlbrainWidget = (() => {
|
|
|
8763
8880
|
};
|
|
8764
8881
|
const FUNCTION_DECLARATION = {
|
|
8765
8882
|
className: "function",
|
|
8766
|
-
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE,
|
|
8883
|
+
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+){1," + MAX_FUNCTION_TYPE_TOKENS + "}" + FUNCTION_TITLE,
|
|
8767
8884
|
returnBegin: true,
|
|
8768
8885
|
end: /[{;=]/,
|
|
8769
8886
|
excludeEnd: true,
|
|
@@ -8835,7 +8952,7 @@ var OlbrainWidget = (() => {
|
|
|
8835
8952
|
CPP_PRIMITIVE_TYPES,
|
|
8836
8953
|
C_LINE_COMMENT_MODE,
|
|
8837
8954
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
8838
|
-
|
|
8955
|
+
...PREPROCESSORS
|
|
8839
8956
|
]
|
|
8840
8957
|
};
|
|
8841
8958
|
return {
|
|
@@ -8858,7 +8975,7 @@ var OlbrainWidget = (() => {
|
|
|
8858
8975
|
FUNCTION_DISPATCH,
|
|
8859
8976
|
EXPRESSION_CONTAINS,
|
|
8860
8977
|
[
|
|
8861
|
-
|
|
8978
|
+
...PREPROCESSORS,
|
|
8862
8979
|
{
|
|
8863
8980
|
// containers: ie, `vector <int> rooms (9);`
|
|
8864
8981
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
@@ -9130,16 +9247,23 @@ var OlbrainWidget = (() => {
|
|
|
9130
9247
|
hljs.BACKSLASH_ESCAPE,
|
|
9131
9248
|
SUBST
|
|
9132
9249
|
],
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9250
|
+
// Unlike Ruby, Crystal has no "empty regex" (`//`) literal syntax,
|
|
9251
|
+
// since `//` is already used for integer division. Treating it as
|
|
9252
|
+
// a regex here would also make this variant swallow the rest of
|
|
9253
|
+
// the line (or file) whenever `//` appears at the start of a
|
|
9254
|
+
// statement, since there would be no closing delimiter to match.
|
|
9255
|
+
//
|
|
9256
|
+
// INTEGER_DIVISION (above, given priority over this REGEXP mode)
|
|
9257
|
+
// already handles the common case where `//` starts matching at the
|
|
9258
|
+
// same position as this mode, e.g. mid-expression like
|
|
9259
|
+
// `something // 4`. But this outer REGEXP mode's `begin` can also
|
|
9260
|
+
// start matching one character earlier, at a preceding newline
|
|
9261
|
+
// (via its `\n` alternative), when `//`/`//=` is the first thing on
|
|
9262
|
+
// a line; in that case INTEGER_DIVISION never gets a chance to
|
|
9263
|
+
// compete, so this lookahead is what stops `//` from being
|
|
9264
|
+
// misclassified as a regexp there too.
|
|
9265
|
+
begin: "/(?!\\/)",
|
|
9266
|
+
end: "/[a-z]*"
|
|
9143
9267
|
}
|
|
9144
9268
|
],
|
|
9145
9269
|
relevance: 0
|
|
@@ -9184,11 +9308,16 @@ var OlbrainWidget = (() => {
|
|
|
9184
9308
|
end: "\\]",
|
|
9185
9309
|
contains: [hljs.inherit(hljs.QUOTE_STRING_MODE, { className: "string" })]
|
|
9186
9310
|
};
|
|
9311
|
+
const INTEGER_DIVISION = {
|
|
9312
|
+
begin: /\/\/=?/,
|
|
9313
|
+
relevance: 0
|
|
9314
|
+
};
|
|
9187
9315
|
const CRYSTAL_DEFAULT_CONTAINS = [
|
|
9188
9316
|
EXPANSION,
|
|
9189
9317
|
STRING,
|
|
9190
9318
|
Q_STRING,
|
|
9191
9319
|
REGEXP2,
|
|
9320
|
+
INTEGER_DIVISION,
|
|
9192
9321
|
REGEXP,
|
|
9193
9322
|
ATTRIBUTE,
|
|
9194
9323
|
VARIABLE,
|
|
@@ -9446,12 +9575,15 @@ var OlbrainWidget = (() => {
|
|
|
9446
9575
|
literal: LITERAL_KEYWORDS
|
|
9447
9576
|
};
|
|
9448
9577
|
const TITLE_MODE = hljs.inherit(hljs.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" });
|
|
9578
|
+
const DIGITS = "\\d(_*\\d)*";
|
|
9579
|
+
const INTEGER_SUFFIX = "([uU][lL]?|[lL][uU]?)?";
|
|
9580
|
+
const REAL_SUFFIX = "([fFdDmM]|[uU][lL]?|[lL][uU]?)?";
|
|
9449
9581
|
const NUMBERS = {
|
|
9450
9582
|
className: "number",
|
|
9451
9583
|
variants: [
|
|
9452
|
-
{ begin: "\\
|
|
9453
|
-
{ begin: "(-?)\\
|
|
9454
|
-
{ begin: "(-?)(\\
|
|
9584
|
+
{ begin: "\\b0[bB]_*[01](_*[01])*" + INTEGER_SUFFIX },
|
|
9585
|
+
{ begin: "(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*" + INTEGER_SUFFIX },
|
|
9586
|
+
{ begin: "(-?)(\\b" + DIGITS + "(\\.(" + DIGITS + ")?)?|\\." + DIGITS + ")([eE][-+]?" + DIGITS + ")?" + REAL_SUFFIX }
|
|
9455
9587
|
],
|
|
9456
9588
|
relevance: 0
|
|
9457
9589
|
};
|
|
@@ -9705,6 +9837,7 @@ var OlbrainWidget = (() => {
|
|
|
9705
9837
|
"child-src",
|
|
9706
9838
|
"connect-src",
|
|
9707
9839
|
"default-src",
|
|
9840
|
+
"fenced-frame-src",
|
|
9708
9841
|
"font-src",
|
|
9709
9842
|
"form-action",
|
|
9710
9843
|
"frame-ancestors",
|
|
@@ -9714,10 +9847,16 @@ var OlbrainWidget = (() => {
|
|
|
9714
9847
|
"media-src",
|
|
9715
9848
|
"object-src",
|
|
9716
9849
|
"plugin-types",
|
|
9850
|
+
"report-to",
|
|
9717
9851
|
"report-uri",
|
|
9852
|
+
"require-trusted-types-for",
|
|
9718
9853
|
"sandbox",
|
|
9719
9854
|
"script-src",
|
|
9855
|
+
"script-src-attr",
|
|
9856
|
+
"script-src-elem",
|
|
9720
9857
|
"style-src",
|
|
9858
|
+
"style-src-attr",
|
|
9859
|
+
"style-src-elem",
|
|
9721
9860
|
"trusted-types",
|
|
9722
9861
|
"unsafe-hashes",
|
|
9723
9862
|
"worker-src"
|
|
@@ -9763,6 +9902,10 @@ var OlbrainWidget = (() => {
|
|
|
9763
9902
|
scope: "number",
|
|
9764
9903
|
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
9765
9904
|
},
|
|
9905
|
+
UNICODE_RANGE: {
|
|
9906
|
+
scope: "number",
|
|
9907
|
+
begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/
|
|
9908
|
+
},
|
|
9766
9909
|
FUNCTION_DISPATCH: {
|
|
9767
9910
|
className: "built_in",
|
|
9768
9911
|
begin: /[\w-]+(?=\()/
|
|
@@ -10190,6 +10333,11 @@ var OlbrainWidget = (() => {
|
|
|
10190
10333
|
"container-type",
|
|
10191
10334
|
"content",
|
|
10192
10335
|
"content-visibility",
|
|
10336
|
+
"corner-bottom-left-shape",
|
|
10337
|
+
"corner-bottom-right-shape",
|
|
10338
|
+
"corner-shape",
|
|
10339
|
+
"corner-top-left-shape",
|
|
10340
|
+
"corner-top-right-shape",
|
|
10193
10341
|
"counter-increment",
|
|
10194
10342
|
"counter-reset",
|
|
10195
10343
|
"counter-set",
|
|
@@ -10526,6 +10674,7 @@ var OlbrainWidget = (() => {
|
|
|
10526
10674
|
"transition-timing-function",
|
|
10527
10675
|
"translate",
|
|
10528
10676
|
"unicode-bidi",
|
|
10677
|
+
"unicode-range",
|
|
10529
10678
|
"user-modify",
|
|
10530
10679
|
"user-select",
|
|
10531
10680
|
"vector-effect",
|
|
@@ -10623,9 +10772,10 @@ var OlbrainWidget = (() => {
|
|
|
10623
10772
|
modes.HEXCOLOR,
|
|
10624
10773
|
modes.IMPORTANT,
|
|
10625
10774
|
modes.CSS_NUMBER_MODE,
|
|
10775
|
+
modes.UNICODE_RANGE,
|
|
10626
10776
|
...STRINGS,
|
|
10627
10777
|
// needed to highlight these as strings and to avoid issues with
|
|
10628
|
-
// illegal characters that might be inside urls that would
|
|
10778
|
+
// illegal characters that might be inside urls that would trigger the
|
|
10629
10779
|
// languages illegal stack
|
|
10630
10780
|
{
|
|
10631
10781
|
begin: /(url|data-uri)\(/,
|
|
@@ -10821,10 +10971,7 @@ var OlbrainWidget = (() => {
|
|
|
10821
10971
|
subLanguage: "xml",
|
|
10822
10972
|
relevance: 0
|
|
10823
10973
|
};
|
|
10824
|
-
const HORIZONTAL_RULE = {
|
|
10825
|
-
begin: "^[-\\*]{3,}",
|
|
10826
|
-
end: "$"
|
|
10827
|
-
};
|
|
10974
|
+
const HORIZONTAL_RULE = { match: /^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/ };
|
|
10828
10975
|
const CODE = {
|
|
10829
10976
|
className: "code",
|
|
10830
10977
|
variants: [
|
|
@@ -11032,11 +11179,13 @@ var OlbrainWidget = (() => {
|
|
|
11032
11179
|
HEADER,
|
|
11033
11180
|
INLINE_HTML,
|
|
11034
11181
|
LIST,
|
|
11182
|
+
// must come before BOLD/ITALIC so that a `***` or `___` thematic break
|
|
11183
|
+
// isn't mistaken for the start of bold text
|
|
11184
|
+
HORIZONTAL_RULE,
|
|
11035
11185
|
BOLD,
|
|
11036
11186
|
ITALIC,
|
|
11037
11187
|
BLOCKQUOTE,
|
|
11038
11188
|
CODE,
|
|
11039
|
-
HORIZONTAL_RULE,
|
|
11040
11189
|
LINK,
|
|
11041
11190
|
LINK_REFERENCE,
|
|
11042
11191
|
ENTITY
|
|
@@ -11052,6 +11201,7 @@ var OlbrainWidget = (() => {
|
|
|
11052
11201
|
"node_modules/highlight.js/lib/languages/dart.js"(exports, module) {
|
|
11053
11202
|
"use strict";
|
|
11054
11203
|
function dart(hljs) {
|
|
11204
|
+
const regex = hljs.regex;
|
|
11055
11205
|
const SUBST = {
|
|
11056
11206
|
className: "subst",
|
|
11057
11207
|
variants: [{ begin: "\\$[A-Za-z0-9_]+" }]
|
|
@@ -11254,6 +11404,22 @@ var OlbrainWidget = (() => {
|
|
|
11254
11404
|
]),
|
|
11255
11405
|
$pattern: /[A-Za-z][A-Za-z0-9_]*\??/
|
|
11256
11406
|
};
|
|
11407
|
+
const CLASS_NAME_RE = regex.concat(
|
|
11408
|
+
/\b_?/,
|
|
11409
|
+
regex.either(
|
|
11410
|
+
/(?:[A-Z]+[a-z0-9]+)+/,
|
|
11411
|
+
/(?:[A-Z]+[a-z0-9]+)+[A-Z]+/
|
|
11412
|
+
),
|
|
11413
|
+
/(?![A-Za-z0-9_])/
|
|
11414
|
+
);
|
|
11415
|
+
const CLASS_REFERENCE = {
|
|
11416
|
+
match: CLASS_NAME_RE,
|
|
11417
|
+
scope: "title.class"
|
|
11418
|
+
};
|
|
11419
|
+
const FUNCTION_REFERENCE = {
|
|
11420
|
+
match: /\b(?!(?:assert|catch|for|if|switch|while)\b)[a-z_][A-Za-z0-9_]*(?=\()/,
|
|
11421
|
+
scope: "title.function"
|
|
11422
|
+
};
|
|
11257
11423
|
return {
|
|
11258
11424
|
name: "Dart",
|
|
11259
11425
|
keywords: KEYWORDS,
|
|
@@ -11291,14 +11457,12 @@ var OlbrainWidget = (() => {
|
|
|
11291
11457
|
hljs.UNDERSCORE_TITLE_MODE
|
|
11292
11458
|
]
|
|
11293
11459
|
},
|
|
11460
|
+
CLASS_REFERENCE,
|
|
11461
|
+
FUNCTION_REFERENCE,
|
|
11294
11462
|
NUMBER,
|
|
11295
11463
|
{
|
|
11296
11464
|
className: "meta",
|
|
11297
11465
|
begin: "@[A-Za-z]+"
|
|
11298
|
-
},
|
|
11299
|
-
{
|
|
11300
|
-
begin: "=>"
|
|
11301
|
-
// No markup, just a relevance booster
|
|
11302
11466
|
}
|
|
11303
11467
|
]
|
|
11304
11468
|
};
|
|
@@ -11573,6 +11737,13 @@ var OlbrainWidget = (() => {
|
|
|
11573
11737
|
relevance: 10,
|
|
11574
11738
|
match: regex.either(
|
|
11575
11739
|
/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,
|
|
11740
|
+
// @@ -1,2 +1,2 @@
|
|
11741
|
+
/^@@ +-\d+ +\+\d+,\d+ +@@/,
|
|
11742
|
+
// @@ -1 +1,2 @@
|
|
11743
|
+
/^@@ +-\d+,\d+ +\+\d+ +@@/,
|
|
11744
|
+
// @@ -1,2 +1 @@
|
|
11745
|
+
/^@@ +-\d+ +\+\d+ +@@/,
|
|
11746
|
+
// @@ -1 +1 @@
|
|
11576
11747
|
/^\*\*\* +\d+,\d+ +\*\*\*\*$/,
|
|
11577
11748
|
/^--- +\d+,\d+ +----$/
|
|
11578
11749
|
)
|
|
@@ -11675,7 +11846,6 @@ var OlbrainWidget = (() => {
|
|
|
11675
11846
|
"use strict";
|
|
11676
11847
|
function dns(hljs) {
|
|
11677
11848
|
const KEYWORDS = [
|
|
11678
|
-
"IN",
|
|
11679
11849
|
"A",
|
|
11680
11850
|
"AAAA",
|
|
11681
11851
|
"AFSDB",
|
|
@@ -11714,28 +11884,78 @@ var OlbrainWidget = (() => {
|
|
|
11714
11884
|
"TSIG",
|
|
11715
11885
|
"TXT"
|
|
11716
11886
|
];
|
|
11887
|
+
const ESCAPE_RE = /\\(?:\d{3}|[^\d\n])/;
|
|
11888
|
+
const ESCAPE = {
|
|
11889
|
+
scope: "char.escape",
|
|
11890
|
+
match: ESCAPE_RE
|
|
11891
|
+
};
|
|
11892
|
+
const PUNCTUATION = {
|
|
11893
|
+
scope: "punctuation",
|
|
11894
|
+
match: /[()]/
|
|
11895
|
+
};
|
|
11896
|
+
const STRING = {
|
|
11897
|
+
scope: "string",
|
|
11898
|
+
begin: /"/,
|
|
11899
|
+
end: /"/,
|
|
11900
|
+
illegal: /\n/,
|
|
11901
|
+
contains: [ESCAPE]
|
|
11902
|
+
};
|
|
11903
|
+
const CAA_PROPERTY_TAG = /\b(?:issuewild|issue|iodef|contactemail|contactphone|issuevmc|issuemail)\b/;
|
|
11717
11904
|
return {
|
|
11718
11905
|
name: "DNS Zone",
|
|
11719
11906
|
aliases: [
|
|
11720
11907
|
"bind",
|
|
11721
11908
|
"zone"
|
|
11722
11909
|
],
|
|
11910
|
+
case_insensitive: true,
|
|
11723
11911
|
keywords: KEYWORDS,
|
|
11724
11912
|
contains: [
|
|
11725
11913
|
hljs.COMMENT(";", "$", { relevance: 0 }),
|
|
11914
|
+
{
|
|
11915
|
+
match: [
|
|
11916
|
+
/\bCAA\b/,
|
|
11917
|
+
/[ \t]+/,
|
|
11918
|
+
/\d+/,
|
|
11919
|
+
/[ \t]+/,
|
|
11920
|
+
CAA_PROPERTY_TAG
|
|
11921
|
+
],
|
|
11922
|
+
scope: {
|
|
11923
|
+
1: "keyword",
|
|
11924
|
+
3: "number",
|
|
11925
|
+
5: "attr"
|
|
11926
|
+
}
|
|
11927
|
+
},
|
|
11928
|
+
STRING,
|
|
11929
|
+
{
|
|
11930
|
+
match: [
|
|
11931
|
+
/\bTXT\b/,
|
|
11932
|
+
/\s+/,
|
|
11933
|
+
// one unquoted token (stopgap; multi-string / full RDATA mode later)
|
|
11934
|
+
/(?!")(?:\\(?:\d{3}|[^\d\n])|[^\s;"()\\])+/
|
|
11935
|
+
],
|
|
11936
|
+
scope: {
|
|
11937
|
+
1: "keyword",
|
|
11938
|
+
3: "string"
|
|
11939
|
+
}
|
|
11940
|
+
},
|
|
11726
11941
|
{
|
|
11727
11942
|
className: "meta",
|
|
11728
11943
|
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
|
|
11729
11944
|
},
|
|
11730
|
-
|
|
11945
|
+
PUNCTUATION,
|
|
11946
|
+
{
|
|
11947
|
+
scope: "type",
|
|
11948
|
+
match: /\b(?:IN|CH|HS)\b/
|
|
11949
|
+
},
|
|
11950
|
+
// IPv6 (lookahead: no word-boundary after trailing :)
|
|
11731
11951
|
{
|
|
11732
11952
|
className: "number",
|
|
11733
|
-
begin:
|
|
11953
|
+
begin: /(?:(?:[0-9A-Fa-f]{1,4}:){7}(?:[0-9A-Fa-f]{1,4}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?::[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){5}(?:(?::[0-9A-Fa-f]{1,4}){1,2}|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){4}(?:(?::[0-9A-Fa-f]{1,4}){1,3}|(?::[0-9A-Fa-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){3}(?:(?::[0-9A-Fa-f]{1,4}){1,4}|(?::[0-9A-Fa-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:){2}(?:(?::[0-9A-Fa-f]{1,4}){1,5}|(?::[0-9A-Fa-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?:[0-9A-Fa-f]{1,4}:)(?:(?::[0-9A-Fa-f]{1,4}){1,6}|(?::[0-9A-Fa-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)|(?::(?:(?::[0-9A-Fa-f]{1,4}){1,7}|(?::[0-9A-Fa-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:)))(?![0-9A-Fa-f:])/
|
|
11734
11954
|
},
|
|
11735
11955
|
// IPv4
|
|
11736
11956
|
{
|
|
11737
11957
|
className: "number",
|
|
11738
|
-
begin:
|
|
11958
|
+
begin: /(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\b/
|
|
11739
11959
|
},
|
|
11740
11960
|
hljs.inherit(hljs.NUMBER_MODE, { begin: /\b\d+[dhwm]?/ })
|
|
11741
11961
|
]
|
|
@@ -11796,9 +12016,7 @@ var OlbrainWidget = (() => {
|
|
|
11796
12016
|
{ relevance: 10 }
|
|
11797
12017
|
);
|
|
11798
12018
|
const LABEL = {
|
|
11799
|
-
|
|
11800
|
-
begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",
|
|
11801
|
-
relevance: 0
|
|
12019
|
+
begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"
|
|
11802
12020
|
};
|
|
11803
12021
|
const KEYWORDS = [
|
|
11804
12022
|
"if",
|
|
@@ -11915,6 +12133,7 @@ var OlbrainWidget = (() => {
|
|
|
11915
12133
|
name: "Batch file (DOS)",
|
|
11916
12134
|
aliases: [
|
|
11917
12135
|
"bat",
|
|
12136
|
+
"batch",
|
|
11918
12137
|
"cmd"
|
|
11919
12138
|
],
|
|
11920
12139
|
case_insensitive: true,
|
|
@@ -12262,6 +12481,7 @@ var OlbrainWidget = (() => {
|
|
|
12262
12481
|
"cond",
|
|
12263
12482
|
"defstruct",
|
|
12264
12483
|
"defguard",
|
|
12484
|
+
"defguardp",
|
|
12265
12485
|
"do",
|
|
12266
12486
|
"else",
|
|
12267
12487
|
"end",
|
|
@@ -12472,7 +12692,13 @@ var OlbrainWidget = (() => {
|
|
|
12472
12692
|
beginKeywords: "defimpl defmodule defprotocol defrecord",
|
|
12473
12693
|
end: /\bdo\b|$|;/
|
|
12474
12694
|
});
|
|
12695
|
+
const CHAR_LITERAL = {
|
|
12696
|
+
scope: "string",
|
|
12697
|
+
match: /\?'/,
|
|
12698
|
+
relevance: 0
|
|
12699
|
+
};
|
|
12475
12700
|
const ELIXIR_DEFAULT_CONTAINS = [
|
|
12701
|
+
CHAR_LITERAL,
|
|
12476
12702
|
STRING,
|
|
12477
12703
|
REGEX_SIGIL,
|
|
12478
12704
|
UPCASE_SIGIL,
|
|
@@ -12961,8 +13187,8 @@ var OlbrainWidget = (() => {
|
|
|
12961
13187
|
CLASS_REFERENCE,
|
|
12962
13188
|
METHOD_DEFINITION,
|
|
12963
13189
|
{
|
|
12964
|
-
// swallow
|
|
12965
|
-
begin:
|
|
13190
|
+
// swallow the scope resolution operator so `::` is not read as a symbol
|
|
13191
|
+
begin: "::"
|
|
12966
13192
|
},
|
|
12967
13193
|
{
|
|
12968
13194
|
className: "symbol",
|
|
@@ -14632,6 +14858,108 @@ var OlbrainWidget = (() => {
|
|
|
14632
14858
|
}
|
|
14633
14859
|
});
|
|
14634
14860
|
|
|
14861
|
+
// node_modules/highlight.js/lib/languages/freedesktop.js
|
|
14862
|
+
var require_freedesktop = __commonJS({
|
|
14863
|
+
"node_modules/highlight.js/lib/languages/freedesktop.js"(exports, module) {
|
|
14864
|
+
"use strict";
|
|
14865
|
+
function freedesktop(hljs) {
|
|
14866
|
+
const regex = hljs.regex;
|
|
14867
|
+
const FIELD_CODES = {
|
|
14868
|
+
scope: "variable",
|
|
14869
|
+
match: /%[a-zA-Z]/
|
|
14870
|
+
};
|
|
14871
|
+
const STRING = {
|
|
14872
|
+
scope: "string",
|
|
14873
|
+
begin: /"/,
|
|
14874
|
+
end: /"/,
|
|
14875
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
14876
|
+
};
|
|
14877
|
+
const COMMENT = {
|
|
14878
|
+
scope: "comment",
|
|
14879
|
+
begin: /#/,
|
|
14880
|
+
end: /$/
|
|
14881
|
+
};
|
|
14882
|
+
const SECTIONS = [
|
|
14883
|
+
"Desktop Entry",
|
|
14884
|
+
"Unit",
|
|
14885
|
+
"Service",
|
|
14886
|
+
"Install",
|
|
14887
|
+
"Socket",
|
|
14888
|
+
"Mount",
|
|
14889
|
+
"Automount",
|
|
14890
|
+
"Swap",
|
|
14891
|
+
"Path",
|
|
14892
|
+
"Timer",
|
|
14893
|
+
"Slice",
|
|
14894
|
+
"Scope",
|
|
14895
|
+
"Manager",
|
|
14896
|
+
"connection",
|
|
14897
|
+
"ipv4",
|
|
14898
|
+
"wifi-security",
|
|
14899
|
+
"wifi",
|
|
14900
|
+
"ipv6",
|
|
14901
|
+
"802-11-wireless-security",
|
|
14902
|
+
"802-11-wireless",
|
|
14903
|
+
"802-3-ethernet",
|
|
14904
|
+
"vpn",
|
|
14905
|
+
"Journal",
|
|
14906
|
+
"Bridge",
|
|
14907
|
+
"Desktop Action\\s+[A-Za-z0-9_-]+"
|
|
14908
|
+
];
|
|
14909
|
+
SECTIONS.sort().reverse();
|
|
14910
|
+
const SECTION = {
|
|
14911
|
+
scope: "section",
|
|
14912
|
+
begin: new RegExp("^\\[(" + SECTIONS.join("|") + ")\\]$")
|
|
14913
|
+
};
|
|
14914
|
+
const OPERATOR = {
|
|
14915
|
+
scope: "operator",
|
|
14916
|
+
match: /=/
|
|
14917
|
+
};
|
|
14918
|
+
const LITERALS = [
|
|
14919
|
+
"Application",
|
|
14920
|
+
"Link",
|
|
14921
|
+
"Directory",
|
|
14922
|
+
"forking",
|
|
14923
|
+
"oneshot",
|
|
14924
|
+
"OneShot",
|
|
14925
|
+
"true",
|
|
14926
|
+
"false",
|
|
14927
|
+
"True",
|
|
14928
|
+
"False"
|
|
14929
|
+
];
|
|
14930
|
+
const LITERAL = {
|
|
14931
|
+
scope: "literal",
|
|
14932
|
+
match: new RegExp("\\b(" + LITERALS.join("|") + ")\\b")
|
|
14933
|
+
};
|
|
14934
|
+
const KEY_VALUE = {
|
|
14935
|
+
begin: regex.concat(
|
|
14936
|
+
/^[A-Za-z0-9_-]+(\[[A-Za-z0-9_@.]+\])?/,
|
|
14937
|
+
regex.lookahead(/\s*=/)
|
|
14938
|
+
),
|
|
14939
|
+
beginScope: "attr",
|
|
14940
|
+
end: /$/,
|
|
14941
|
+
contains: [
|
|
14942
|
+
OPERATOR,
|
|
14943
|
+
STRING,
|
|
14944
|
+
LITERAL,
|
|
14945
|
+
FIELD_CODES
|
|
14946
|
+
]
|
|
14947
|
+
};
|
|
14948
|
+
return {
|
|
14949
|
+
name: "FreeDesktop config",
|
|
14950
|
+
aliases: ["desktop", "systemd"],
|
|
14951
|
+
case_insensitive: false,
|
|
14952
|
+
contains: [
|
|
14953
|
+
COMMENT,
|
|
14954
|
+
SECTION,
|
|
14955
|
+
KEY_VALUE
|
|
14956
|
+
]
|
|
14957
|
+
};
|
|
14958
|
+
}
|
|
14959
|
+
module.exports = freedesktop;
|
|
14960
|
+
}
|
|
14961
|
+
});
|
|
14962
|
+
|
|
14635
14963
|
// node_modules/highlight.js/lib/languages/fsharp.js
|
|
14636
14964
|
var require_fsharp = __commonJS({
|
|
14637
14965
|
"node_modules/highlight.js/lib/languages/fsharp.js"(exports, module) {
|
|
@@ -14665,6 +14993,20 @@ var OlbrainWidget = (() => {
|
|
|
14665
14993
|
const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source(x)).join("|") + ")";
|
|
14666
14994
|
return joined;
|
|
14667
14995
|
}
|
|
14996
|
+
new RegExp(either(
|
|
14997
|
+
/\[(?:[^\\\]]|\\.)*\]/,
|
|
14998
|
+
// a character class, inside which ( and \ lose their meaning
|
|
14999
|
+
/\(\?<(?![=!])[^>]+>/,
|
|
15000
|
+
// a named capture group `(?<name>` (not a lookbehind `(?<=` / `(?<!`)
|
|
15001
|
+
/\(\?'[^']+'/,
|
|
15002
|
+
// a named capture group `(?'name'`
|
|
15003
|
+
/\(\??/,
|
|
15004
|
+
// an opening parenthesis, capturing or non-capturing / lookahead
|
|
15005
|
+
/\\([1-9][0-9]*)/,
|
|
15006
|
+
// a backreference like `\1`
|
|
15007
|
+
/\\./
|
|
15008
|
+
// any other escape sequence
|
|
15009
|
+
));
|
|
14668
15010
|
function fsharp(hljs) {
|
|
14669
15011
|
const KEYWORDS = [
|
|
14670
15012
|
"abstract",
|
|
@@ -15728,43 +16070,108 @@ var OlbrainWidget = (() => {
|
|
|
15728
16070
|
var require_gherkin = __commonJS({
|
|
15729
16071
|
"node_modules/highlight.js/lib/languages/gherkin.js"(exports, module) {
|
|
15730
16072
|
"use strict";
|
|
16073
|
+
var VARIABLE = {
|
|
16074
|
+
scope: "variable",
|
|
16075
|
+
begin: /<[^>\s]+>/
|
|
16076
|
+
};
|
|
16077
|
+
var LINE_START = /^[ \t]*/;
|
|
15731
16078
|
function gherkin(hljs) {
|
|
16079
|
+
const STEP_KEYWORDS = {
|
|
16080
|
+
begin: [
|
|
16081
|
+
LINE_START,
|
|
16082
|
+
/\b(?:Given|When|Then|And|But)\b/
|
|
16083
|
+
],
|
|
16084
|
+
beginScope: {
|
|
16085
|
+
2: "keyword"
|
|
16086
|
+
},
|
|
16087
|
+
end: /$/,
|
|
16088
|
+
contains: [
|
|
16089
|
+
VARIABLE,
|
|
16090
|
+
hljs.QUOTE_STRING_MODE
|
|
16091
|
+
]
|
|
16092
|
+
};
|
|
16093
|
+
const STAR_STEP = {
|
|
16094
|
+
begin: [
|
|
16095
|
+
LINE_START,
|
|
16096
|
+
/\*(?=[ \t])/
|
|
16097
|
+
],
|
|
16098
|
+
beginScope: {
|
|
16099
|
+
2: "keyword"
|
|
16100
|
+
},
|
|
16101
|
+
end: /$/,
|
|
16102
|
+
contains: [
|
|
16103
|
+
VARIABLE,
|
|
16104
|
+
hljs.QUOTE_STRING_MODE
|
|
16105
|
+
]
|
|
16106
|
+
};
|
|
15732
16107
|
return {
|
|
15733
16108
|
name: "Gherkin",
|
|
15734
16109
|
aliases: ["feature"],
|
|
15735
|
-
|
|
16110
|
+
// No global keywords — they are line-head structural tokens only
|
|
15736
16111
|
contains: [
|
|
15737
16112
|
{
|
|
15738
|
-
|
|
15739
|
-
begin:
|
|
15740
|
-
|
|
16113
|
+
scope: "comment",
|
|
16114
|
+
begin: /^[ \t]*#/,
|
|
16115
|
+
end: /$/
|
|
15741
16116
|
},
|
|
15742
16117
|
{
|
|
15743
|
-
|
|
15744
|
-
begin:
|
|
16118
|
+
// One or more tags on a line (after optional indent)
|
|
16119
|
+
begin: [
|
|
16120
|
+
LINE_START,
|
|
16121
|
+
/@[^@\s]+(?:[ \t]+@[^@\s]+)*/
|
|
16122
|
+
],
|
|
16123
|
+
beginScope: {
|
|
16124
|
+
2: "meta"
|
|
16125
|
+
}
|
|
15745
16126
|
},
|
|
15746
16127
|
{
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
contains: [
|
|
16128
|
+
scope: "string",
|
|
16129
|
+
variants: [
|
|
15750
16130
|
{
|
|
15751
|
-
|
|
15752
|
-
|
|
16131
|
+
// Optional content type after opener, e.g. """markdown
|
|
16132
|
+
// Closer must be alone on the line (indent + delimiter only).
|
|
16133
|
+
begin: /^[ \t]*"""\w*/,
|
|
16134
|
+
end: /^[ \t]*"""[ \t]*$/
|
|
16135
|
+
},
|
|
16136
|
+
{
|
|
16137
|
+
begin: /^[ \t]*```\w*/,
|
|
16138
|
+
end: /^[ \t]*```[ \t]*$/
|
|
15753
16139
|
}
|
|
15754
16140
|
]
|
|
15755
16141
|
},
|
|
15756
16142
|
{
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
16143
|
+
// "Business Need" and "Ability" are English dialect aliases, not primary keywords:
|
|
16144
|
+
// https://cucumber.io/docs/gherkin/languages/#gherkin-dialect-en-content
|
|
16145
|
+
begin: [
|
|
16146
|
+
LINE_START,
|
|
16147
|
+
/(Feature|Business Need|Ability|Rule|Examples?|Scenario(?:s| Outline| Template)?|Background)/,
|
|
16148
|
+
/:/
|
|
16149
|
+
],
|
|
16150
|
+
beginScope: {
|
|
16151
|
+
2: "keyword",
|
|
16152
|
+
3: "punctuation"
|
|
16153
|
+
},
|
|
16154
|
+
end: /$/,
|
|
16155
|
+
contains: [
|
|
16156
|
+
VARIABLE,
|
|
16157
|
+
hljs.QUOTE_STRING_MODE
|
|
16158
|
+
]
|
|
15760
16159
|
},
|
|
15761
|
-
|
|
16160
|
+
STEP_KEYWORDS,
|
|
16161
|
+
STAR_STEP,
|
|
15762
16162
|
{
|
|
15763
|
-
|
|
15764
|
-
begin:
|
|
15765
|
-
end:
|
|
15766
|
-
|
|
15767
|
-
|
|
16163
|
+
// Data tables: line-head `| … |` rows (Gherkin secondary keyword)
|
|
16164
|
+
begin: /^[ \t]*\|/,
|
|
16165
|
+
end: /$/,
|
|
16166
|
+
contains: [
|
|
16167
|
+
VARIABLE,
|
|
16168
|
+
{
|
|
16169
|
+
// Text runs between pipes; `<vars>` matched first above
|
|
16170
|
+
scope: "string",
|
|
16171
|
+
match: /[^|<\n]+/
|
|
16172
|
+
}
|
|
16173
|
+
]
|
|
16174
|
+
}
|
|
15768
16175
|
]
|
|
15769
16176
|
};
|
|
15770
16177
|
}
|
|
@@ -19057,6 +19464,11 @@ var OlbrainWidget = (() => {
|
|
|
19057
19464
|
// leading 0o octal
|
|
19058
19465
|
relevance: 0
|
|
19059
19466
|
},
|
|
19467
|
+
{
|
|
19468
|
+
match: /-?\b0[bB](_?[01])*i?/,
|
|
19469
|
+
// leading 0b binary
|
|
19470
|
+
relevance: 0
|
|
19471
|
+
},
|
|
19060
19472
|
{
|
|
19061
19473
|
match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
|
|
19062
19474
|
// decimal without a present digit before . (making a digit afterwards required)
|
|
@@ -19442,6 +19854,32 @@ var OlbrainWidget = (() => {
|
|
|
19442
19854
|
var require_groovy = __commonJS({
|
|
19443
19855
|
"node_modules/highlight.js/lib/languages/groovy.js"(exports, module) {
|
|
19444
19856
|
"use strict";
|
|
19857
|
+
var decimalDigits = "[0-9](_*[0-9])*";
|
|
19858
|
+
var frac = `\\.(${decimalDigits})`;
|
|
19859
|
+
var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*";
|
|
19860
|
+
var NUMERIC = {
|
|
19861
|
+
className: "number",
|
|
19862
|
+
variants: [
|
|
19863
|
+
// DecimalFloatingPointLiteral
|
|
19864
|
+
// including ExponentPart
|
|
19865
|
+
{ begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` },
|
|
19866
|
+
// excluding ExponentPart
|
|
19867
|
+
{ begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
19868
|
+
{ begin: `(${frac})[fFdD]?\\b` },
|
|
19869
|
+
{ begin: `\\b(${decimalDigits})[fFdD]\\b` },
|
|
19870
|
+
// HexadecimalFloatingPointLiteral
|
|
19871
|
+
{ begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` },
|
|
19872
|
+
// DecimalIntegerLiteral
|
|
19873
|
+
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
19874
|
+
// HexIntegerLiteral
|
|
19875
|
+
{ begin: `\\b0[xX](${hexDigits})[lL]?\\b` },
|
|
19876
|
+
// OctalIntegerLiteral
|
|
19877
|
+
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
19878
|
+
// BinaryIntegerLiteral
|
|
19879
|
+
{ begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
|
|
19880
|
+
],
|
|
19881
|
+
relevance: 0
|
|
19882
|
+
};
|
|
19445
19883
|
function variants(variants2, obj = {}) {
|
|
19446
19884
|
obj.variants = variants2;
|
|
19447
19885
|
return obj;
|
|
@@ -19476,10 +19914,7 @@ var OlbrainWidget = (() => {
|
|
|
19476
19914
|
begin: /~?\/[^\/\n]+\//,
|
|
19477
19915
|
contains: [hljs.BACKSLASH_ESCAPE]
|
|
19478
19916
|
};
|
|
19479
|
-
const NUMBER =
|
|
19480
|
-
hljs.BINARY_NUMBER_MODE,
|
|
19481
|
-
hljs.C_NUMBER_MODE
|
|
19482
|
-
]);
|
|
19917
|
+
const NUMBER = NUMERIC;
|
|
19483
19918
|
const STRING = variants(
|
|
19484
19919
|
[
|
|
19485
19920
|
{
|
|
@@ -20091,7 +20526,7 @@ var OlbrainWidget = (() => {
|
|
|
20091
20526
|
className: "class",
|
|
20092
20527
|
begin: "\\b(data|(new)?type)\\b",
|
|
20093
20528
|
end: "$",
|
|
20094
|
-
keywords: "data family type newtype deriving",
|
|
20529
|
+
keywords: "data family type newtype deriving where",
|
|
20095
20530
|
contains: [
|
|
20096
20531
|
PRAGMA,
|
|
20097
20532
|
CONSTRUCTOR,
|
|
@@ -21130,7 +21565,15 @@ var OlbrainWidget = (() => {
|
|
|
21130
21565
|
function java(hljs) {
|
|
21131
21566
|
const regex = hljs.regex;
|
|
21132
21567
|
const JAVA_IDENT_RE = "[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*";
|
|
21133
|
-
const
|
|
21568
|
+
const ARRAY_BRACKETS_OPTIONAL_RE = "(?:(?:\\s*\\[\\s*])+)?";
|
|
21569
|
+
const SIMPLE_TYPE_RE = JAVA_IDENT_RE + "<@@@>" + ARRAY_BRACKETS_OPTIONAL_RE;
|
|
21570
|
+
const WILDCARD_TYPE_RE = "\\?(?:\\s+(?:extends|super)\\s+" + SIMPLE_TYPE_RE + ")?";
|
|
21571
|
+
const TYPE_ARG_RE = "(?:" + WILDCARD_TYPE_RE + "|" + SIMPLE_TYPE_RE + ")";
|
|
21572
|
+
const TYPE_ARGS_OPTIONAL_RE = recurRegex(
|
|
21573
|
+
"(?:\\s*<\\s*" + TYPE_ARG_RE + "(?:\\s*,\\s*" + TYPE_ARG_RE + ")*\\s*>)?",
|
|
21574
|
+
/<@@@>/g,
|
|
21575
|
+
2
|
|
21576
|
+
);
|
|
21134
21577
|
const MAIN_KEYWORDS = [
|
|
21135
21578
|
"synchronized",
|
|
21136
21579
|
"abstract",
|
|
@@ -21279,18 +21722,25 @@ var OlbrainWidget = (() => {
|
|
|
21279
21722
|
match: /non-sealed/,
|
|
21280
21723
|
scope: "keyword"
|
|
21281
21724
|
},
|
|
21725
|
+
{
|
|
21726
|
+
// Expression keywords prevent keyword-led expressions from being
|
|
21727
|
+
// recognized as variable or method declarations.
|
|
21728
|
+
beginKeywords: "new throw return else yield assert",
|
|
21729
|
+
relevance: 0
|
|
21730
|
+
},
|
|
21282
21731
|
{
|
|
21283
21732
|
begin: [
|
|
21284
|
-
regex.concat(/(?!else)/, JAVA_IDENT_RE),
|
|
21285
|
-
/\s+/,
|
|
21286
21733
|
JAVA_IDENT_RE,
|
|
21287
|
-
/\s
|
|
21734
|
+
regex.concat(TYPE_ARGS_OPTIONAL_RE, ARRAY_BRACKETS_OPTIONAL_RE, /\s+/),
|
|
21735
|
+
JAVA_IDENT_RE,
|
|
21736
|
+
ARRAY_BRACKETS_OPTIONAL_RE,
|
|
21737
|
+
/\s*/,
|
|
21288
21738
|
/=(?!=)/
|
|
21289
21739
|
],
|
|
21290
21740
|
className: {
|
|
21291
21741
|
1: "type",
|
|
21292
21742
|
3: "variable",
|
|
21293
|
-
|
|
21743
|
+
6: "operator"
|
|
21294
21744
|
}
|
|
21295
21745
|
},
|
|
21296
21746
|
{
|
|
@@ -21309,19 +21759,17 @@ var OlbrainWidget = (() => {
|
|
|
21309
21759
|
hljs.C_BLOCK_COMMENT_MODE
|
|
21310
21760
|
]
|
|
21311
21761
|
},
|
|
21312
|
-
{
|
|
21313
|
-
// Expression keywords prevent 'keyword Name(...)' from being
|
|
21314
|
-
// recognized as a function definition
|
|
21315
|
-
beginKeywords: "new throw return else",
|
|
21316
|
-
relevance: 0
|
|
21317
|
-
},
|
|
21318
21762
|
{
|
|
21319
21763
|
begin: [
|
|
21320
|
-
|
|
21321
|
-
|
|
21764
|
+
JAVA_IDENT_RE,
|
|
21765
|
+
regex.concat(TYPE_ARGS_OPTIONAL_RE, ARRAY_BRACKETS_OPTIONAL_RE, /\s+/),
|
|
21766
|
+
JAVA_IDENT_RE,
|
|
21322
21767
|
/\s*(?=\()/
|
|
21323
21768
|
],
|
|
21324
|
-
className: {
|
|
21769
|
+
className: {
|
|
21770
|
+
1: "type",
|
|
21771
|
+
3: "title.function"
|
|
21772
|
+
},
|
|
21325
21773
|
keywords: KEYWORDS,
|
|
21326
21774
|
contains: [
|
|
21327
21775
|
{
|
|
@@ -21500,6 +21948,7 @@ var OlbrainWidget = (() => {
|
|
|
21500
21948
|
"localStorage",
|
|
21501
21949
|
"sessionStorage",
|
|
21502
21950
|
"module",
|
|
21951
|
+
"self",
|
|
21503
21952
|
"global"
|
|
21504
21953
|
// Node.js
|
|
21505
21954
|
];
|
|
@@ -21842,7 +22291,8 @@ var OlbrainWidget = (() => {
|
|
|
21842
22291
|
noneOf([
|
|
21843
22292
|
...BUILT_IN_GLOBALS,
|
|
21844
22293
|
"super",
|
|
21845
|
-
"import"
|
|
22294
|
+
"import",
|
|
22295
|
+
"await"
|
|
21846
22296
|
].map((x) => `${x}\\s*\\(`)),
|
|
21847
22297
|
IDENT_RE$1,
|
|
21848
22298
|
regex.lookahead(/\s*\(/)
|
|
@@ -21906,7 +22356,7 @@ var OlbrainWidget = (() => {
|
|
|
21906
22356
|
keywords: KEYWORDS$1,
|
|
21907
22357
|
// this will be extended by TypeScript
|
|
21908
22358
|
exports: { PARAMS_CONTAINS, CLASS_REFERENCE },
|
|
21909
|
-
illegal: /#(?![$_A-z])/,
|
|
22359
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
21910
22360
|
contains: [
|
|
21911
22361
|
hljs.SHEBANG({
|
|
21912
22362
|
label: "shebang",
|
|
@@ -22121,10 +22571,16 @@ var OlbrainWidget = (() => {
|
|
|
22121
22571
|
var require_json = __commonJS({
|
|
22122
22572
|
"node_modules/highlight.js/lib/languages/json.js"(exports, module) {
|
|
22123
22573
|
"use strict";
|
|
22574
|
+
var EXTENDED_NUMBER_RE = "([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity";
|
|
22575
|
+
var EXTENDED_NUMBER_MODE = {
|
|
22576
|
+
scope: "number",
|
|
22577
|
+
match: EXTENDED_NUMBER_RE,
|
|
22578
|
+
relevance: 0
|
|
22579
|
+
};
|
|
22124
22580
|
function json(hljs) {
|
|
22125
22581
|
const ATTRIBUTE = {
|
|
22126
22582
|
className: "attr",
|
|
22127
|
-
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
22583
|
+
begin: /(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,
|
|
22128
22584
|
relevance: 1.01
|
|
22129
22585
|
};
|
|
22130
22586
|
const PUNCTUATION = {
|
|
@@ -22143,16 +22599,17 @@ var OlbrainWidget = (() => {
|
|
|
22143
22599
|
};
|
|
22144
22600
|
return {
|
|
22145
22601
|
name: "JSON",
|
|
22146
|
-
aliases: ["jsonc"],
|
|
22602
|
+
aliases: ["jsonc", "json5"],
|
|
22147
22603
|
keywords: {
|
|
22148
22604
|
literal: LITERALS
|
|
22149
22605
|
},
|
|
22150
22606
|
contains: [
|
|
22151
22607
|
ATTRIBUTE,
|
|
22152
22608
|
PUNCTUATION,
|
|
22609
|
+
hljs.APOS_STRING_MODE,
|
|
22153
22610
|
hljs.QUOTE_STRING_MODE,
|
|
22154
22611
|
LITERALS_MODE,
|
|
22155
|
-
|
|
22612
|
+
EXTENDED_NUMBER_MODE,
|
|
22156
22613
|
hljs.C_LINE_COMMENT_MODE,
|
|
22157
22614
|
hljs.C_BLOCK_COMMENT_MODE
|
|
22158
22615
|
],
|
|
@@ -22706,7 +23163,9 @@ var OlbrainWidget = (() => {
|
|
|
22706
23163
|
name: "Kotlin",
|
|
22707
23164
|
aliases: [
|
|
22708
23165
|
"kt",
|
|
22709
|
-
"kts"
|
|
23166
|
+
"kts",
|
|
23167
|
+
"ktm",
|
|
23168
|
+
"ktx"
|
|
22710
23169
|
],
|
|
22711
23170
|
keywords: KEYWORDS,
|
|
22712
23171
|
contains: [
|
|
@@ -23293,6 +23752,7 @@ var OlbrainWidget = (() => {
|
|
|
23293
23752
|
"node_modules/highlight.js/lib/languages/leaf.js"(exports, module) {
|
|
23294
23753
|
"use strict";
|
|
23295
23754
|
function leaf(hljs) {
|
|
23755
|
+
const regex = hljs.regex;
|
|
23296
23756
|
const IDENT = /([A-Za-z_][A-Za-z_0-9]*)?/;
|
|
23297
23757
|
const LITERALS = [
|
|
23298
23758
|
"true",
|
|
@@ -23313,7 +23773,7 @@ var OlbrainWidget = (() => {
|
|
|
23313
23773
|
},
|
|
23314
23774
|
{
|
|
23315
23775
|
scope: "keyword",
|
|
23316
|
-
match:
|
|
23776
|
+
match: `\\b${regex.either(...LITERALS)}\\b`
|
|
23317
23777
|
},
|
|
23318
23778
|
{
|
|
23319
23779
|
scope: "variable",
|
|
@@ -23399,6 +23859,10 @@ var OlbrainWidget = (() => {
|
|
|
23399
23859
|
scope: "number",
|
|
23400
23860
|
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
23401
23861
|
},
|
|
23862
|
+
UNICODE_RANGE: {
|
|
23863
|
+
scope: "number",
|
|
23864
|
+
begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/
|
|
23865
|
+
},
|
|
23402
23866
|
FUNCTION_DISPATCH: {
|
|
23403
23867
|
className: "built_in",
|
|
23404
23868
|
begin: /[\w-]+(?=\()/
|
|
@@ -23826,6 +24290,11 @@ var OlbrainWidget = (() => {
|
|
|
23826
24290
|
"container-type",
|
|
23827
24291
|
"content",
|
|
23828
24292
|
"content-visibility",
|
|
24293
|
+
"corner-bottom-left-shape",
|
|
24294
|
+
"corner-bottom-right-shape",
|
|
24295
|
+
"corner-shape",
|
|
24296
|
+
"corner-top-left-shape",
|
|
24297
|
+
"corner-top-right-shape",
|
|
23829
24298
|
"counter-increment",
|
|
23830
24299
|
"counter-reset",
|
|
23831
24300
|
"counter-set",
|
|
@@ -24162,6 +24631,7 @@ var OlbrainWidget = (() => {
|
|
|
24162
24631
|
"transition-timing-function",
|
|
24163
24632
|
"translate",
|
|
24164
24633
|
"unicode-bidi",
|
|
24634
|
+
"unicode-range",
|
|
24165
24635
|
"user-modify",
|
|
24166
24636
|
"user-select",
|
|
24167
24637
|
"vector-effect",
|
|
@@ -24245,6 +24715,7 @@ var OlbrainWidget = (() => {
|
|
|
24245
24715
|
excludeEnd: true
|
|
24246
24716
|
}
|
|
24247
24717
|
},
|
|
24718
|
+
modes.UNICODE_RANGE,
|
|
24248
24719
|
modes.HEXCOLOR,
|
|
24249
24720
|
PARENS_MODE,
|
|
24250
24721
|
IDENT_MODE("variable", "@@?" + IDENT_RE, 10),
|
|
@@ -24443,8 +24914,8 @@ var OlbrainWidget = (() => {
|
|
|
24443
24914
|
{ relevance: 0 }
|
|
24444
24915
|
);
|
|
24445
24916
|
const VARIABLE = {
|
|
24446
|
-
|
|
24447
|
-
|
|
24917
|
+
scope: "variable",
|
|
24918
|
+
match: /\*[^\s()*]+\*/
|
|
24448
24919
|
};
|
|
24449
24920
|
const KEYWORD = {
|
|
24450
24921
|
className: "symbol",
|
|
@@ -25084,6 +25555,7 @@ var OlbrainWidget = (() => {
|
|
|
25084
25555
|
// another language than an actual comment
|
|
25085
25556
|
hljs.COMMENT(/;\s*$/, null, { relevance: 0 }),
|
|
25086
25557
|
hljs.COMMENT(/;/, /$/),
|
|
25558
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
25087
25559
|
{
|
|
25088
25560
|
className: "string",
|
|
25089
25561
|
begin: /"/,
|
|
@@ -25206,7 +25678,7 @@ var OlbrainWidget = (() => {
|
|
|
25206
25678
|
keywords: {
|
|
25207
25679
|
$pattern: hljs.UNDERSCORE_IDENT_RE,
|
|
25208
25680
|
literal: "true false nil",
|
|
25209
|
-
keyword: "and break do else elseif end for goto if in local not or repeat return then until while",
|
|
25681
|
+
keyword: "and break do else elseif end for goto if in local global not or repeat return then until while",
|
|
25210
25682
|
built_in: (
|
|
25211
25683
|
// Metatags and globals:
|
|
25212
25684
|
"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"
|
|
@@ -35080,8 +35552,13 @@ var OlbrainWidget = (() => {
|
|
|
35080
35552
|
"FILE_ATTRIBUTE_READONLY",
|
|
35081
35553
|
"FILE_ATTRIBUTE_SYSTEM",
|
|
35082
35554
|
"FILE_ATTRIBUTE_TEMPORARY",
|
|
35555
|
+
"HKCC",
|
|
35083
35556
|
"HKCR",
|
|
35557
|
+
"HKCR32",
|
|
35558
|
+
"HKCR64",
|
|
35084
35559
|
"HKCU",
|
|
35560
|
+
"HKCU32",
|
|
35561
|
+
"HKCU64",
|
|
35085
35562
|
"HKDD",
|
|
35086
35563
|
"HKEY_CLASSES_ROOT",
|
|
35087
35564
|
"HKEY_CURRENT_CONFIG",
|
|
@@ -35091,6 +35568,8 @@ var OlbrainWidget = (() => {
|
|
|
35091
35568
|
"HKEY_PERFORMANCE_DATA",
|
|
35092
35569
|
"HKEY_USERS",
|
|
35093
35570
|
"HKLM",
|
|
35571
|
+
"HKLM32",
|
|
35572
|
+
"HKLM64",
|
|
35094
35573
|
"HKPD",
|
|
35095
35574
|
"HKU",
|
|
35096
35575
|
"IDABORT",
|
|
@@ -35118,23 +35597,33 @@ var OlbrainWidget = (() => {
|
|
|
35118
35597
|
"MB_TOPMOST",
|
|
35119
35598
|
"MB_USERICON",
|
|
35120
35599
|
"MB_YESNO",
|
|
35121
|
-
"
|
|
35600
|
+
"MB_YESNOCANCEL",
|
|
35122
35601
|
"OFFLINE",
|
|
35123
35602
|
"READONLY",
|
|
35124
35603
|
"SHCTX",
|
|
35125
35604
|
"SHELL_CONTEXT",
|
|
35126
|
-
"
|
|
35605
|
+
"SW_HIDE",
|
|
35606
|
+
"SW_SHOW",
|
|
35607
|
+
"SW_SHOWMAXIMIZED",
|
|
35608
|
+
"SW_SHOWMINIMIZED",
|
|
35609
|
+
"SW_SHOWNORMAL"
|
|
35127
35610
|
];
|
|
35128
35611
|
const COMPILER_FLAGS = [
|
|
35129
35612
|
"addincludedir",
|
|
35130
35613
|
"addplugindir",
|
|
35131
35614
|
"appendfile",
|
|
35615
|
+
"appendmemfile",
|
|
35132
35616
|
"assert",
|
|
35133
35617
|
"cd",
|
|
35134
35618
|
"define",
|
|
35135
35619
|
"delfile",
|
|
35136
35620
|
"echo",
|
|
35137
35621
|
"else",
|
|
35622
|
+
"elseif",
|
|
35623
|
+
"elseifdef",
|
|
35624
|
+
"elseifmacrodef",
|
|
35625
|
+
"elseifmacrondef",
|
|
35626
|
+
"elseifndef",
|
|
35138
35627
|
"endif",
|
|
35139
35628
|
"error",
|
|
35140
35629
|
"execute",
|
|
@@ -35150,8 +35639,10 @@ var OlbrainWidget = (() => {
|
|
|
35150
35639
|
"insertmacro",
|
|
35151
35640
|
"macro",
|
|
35152
35641
|
"macroend",
|
|
35642
|
+
"macroundef",
|
|
35153
35643
|
"makensis",
|
|
35154
35644
|
"packhdr",
|
|
35645
|
+
"pragma",
|
|
35155
35646
|
"searchparse",
|
|
35156
35647
|
"searchreplace",
|
|
35157
35648
|
"system",
|
|
@@ -35184,14 +35675,18 @@ var OlbrainWidget = (() => {
|
|
|
35184
35675
|
const PARAMETERS = {
|
|
35185
35676
|
// command parameters
|
|
35186
35677
|
className: "params",
|
|
35187
|
-
begin: regex.
|
|
35678
|
+
begin: regex.concat(
|
|
35679
|
+
regex.either(...PARAM_NAMES),
|
|
35680
|
+
/\b/
|
|
35681
|
+
)
|
|
35188
35682
|
};
|
|
35189
35683
|
const COMPILER = {
|
|
35190
35684
|
// !compiler_flags
|
|
35191
35685
|
className: "keyword",
|
|
35192
35686
|
begin: regex.concat(
|
|
35193
35687
|
/!/,
|
|
35194
|
-
regex.either(...COMPILER_FLAGS)
|
|
35688
|
+
regex.either(...COMPILER_FLAGS),
|
|
35689
|
+
/\b/
|
|
35195
35690
|
)
|
|
35196
35691
|
};
|
|
35197
35692
|
const ESCAPE_CHARS = {
|
|
@@ -35249,6 +35744,7 @@ var OlbrainWidget = (() => {
|
|
|
35249
35744
|
"CompletedText",
|
|
35250
35745
|
"ComponentText",
|
|
35251
35746
|
"CopyFiles",
|
|
35747
|
+
"CPU",
|
|
35252
35748
|
"CRCCheck",
|
|
35253
35749
|
"CreateDirectory",
|
|
35254
35750
|
"CreateFont",
|
|
@@ -35304,12 +35800,15 @@ var OlbrainWidget = (() => {
|
|
|
35304
35800
|
"GetInstDirError",
|
|
35305
35801
|
"GetKnownFolderPath",
|
|
35306
35802
|
"GetLabelAddress",
|
|
35803
|
+
"GetRegView",
|
|
35804
|
+
"GetShellVarContext",
|
|
35307
35805
|
"GetTempFileName",
|
|
35308
35806
|
"GetWinVer",
|
|
35309
35807
|
"Goto",
|
|
35310
35808
|
"HideWindow",
|
|
35311
35809
|
"Icon",
|
|
35312
35810
|
"IfAbort",
|
|
35811
|
+
"IfAltRegView",
|
|
35313
35812
|
"IfErrors",
|
|
35314
35813
|
"IfFileExists",
|
|
35315
35814
|
"IfRebootFlag",
|
|
@@ -35347,7 +35846,11 @@ var OlbrainWidget = (() => {
|
|
|
35347
35846
|
"LockWindow",
|
|
35348
35847
|
"LogSet",
|
|
35349
35848
|
"LogText",
|
|
35849
|
+
"ManifestAppendCustomString",
|
|
35850
|
+
"ManifestDisableWindowFiltering",
|
|
35350
35851
|
"ManifestDPIAware",
|
|
35852
|
+
"ManifestDPIAwareness",
|
|
35853
|
+
"ManifestGdiScaling",
|
|
35351
35854
|
"ManifestLongPathAware",
|
|
35352
35855
|
"ManifestMaxVersionTested",
|
|
35353
35856
|
"ManifestSupportedOS",
|
|
@@ -35367,6 +35870,7 @@ var OlbrainWidget = (() => {
|
|
|
35367
35870
|
"Quit",
|
|
35368
35871
|
"ReadEnvStr",
|
|
35369
35872
|
"ReadINIStr",
|
|
35873
|
+
"ReadMemory",
|
|
35370
35874
|
"ReadRegDWORD",
|
|
35371
35875
|
"ReadRegStr",
|
|
35372
35876
|
"Reboot",
|
|
@@ -35392,6 +35896,7 @@ var OlbrainWidget = (() => {
|
|
|
35392
35896
|
"SetCompress",
|
|
35393
35897
|
"SetCompressor",
|
|
35394
35898
|
"SetCompressorDictSize",
|
|
35899
|
+
"SetCompressionLevel",
|
|
35395
35900
|
"SetCtlColors",
|
|
35396
35901
|
"SetCurInstType",
|
|
35397
35902
|
"SetDatablockOptimize",
|
|
@@ -35420,7 +35925,9 @@ var OlbrainWidget = (() => {
|
|
|
35420
35925
|
"StrCpy",
|
|
35421
35926
|
"StrLen",
|
|
35422
35927
|
"SubCaption",
|
|
35928
|
+
"Target",
|
|
35423
35929
|
"Unicode",
|
|
35930
|
+
"UnsafeStrCpy",
|
|
35424
35931
|
"UninstallButtonText",
|
|
35425
35932
|
"UninstallCaption",
|
|
35426
35933
|
"UninstallIcon",
|
|
@@ -35540,7 +36047,7 @@ var OlbrainWidget = (() => {
|
|
|
35540
36047
|
),
|
|
35541
36048
|
VARIABLE_DEFINITION,
|
|
35542
36049
|
FUNCTION_DEFINITION,
|
|
35543
|
-
{ beginKeywords: "Function PageEx Section SectionGroup FunctionEnd SectionEnd" },
|
|
36050
|
+
{ beginKeywords: "Function PageEx Section SectionGroup FunctionEnd PageExEnd SectionEnd SectionGroupEnd" },
|
|
35544
36051
|
STRING,
|
|
35545
36052
|
COMPILER,
|
|
35546
36053
|
DEFINES,
|
|
@@ -35548,7 +36055,7 @@ var OlbrainWidget = (() => {
|
|
|
35548
36055
|
LANGUAGES,
|
|
35549
36056
|
PARAMETERS,
|
|
35550
36057
|
PLUGINS,
|
|
35551
|
-
hljs.
|
|
36058
|
+
hljs.C_NUMBER_MODE
|
|
35552
36059
|
]
|
|
35553
36060
|
};
|
|
35554
36061
|
}
|
|
@@ -36805,6 +37312,8 @@ var OlbrainWidget = (() => {
|
|
|
36805
37312
|
VARIABLE,
|
|
36806
37313
|
LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
|
|
36807
37314
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
37315
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
37316
|
+
hljs.HASH_COMMENT_MODE,
|
|
36808
37317
|
STRING,
|
|
36809
37318
|
NUMBER,
|
|
36810
37319
|
CONSTRUCTOR_CALL
|
|
@@ -36828,6 +37337,8 @@ var OlbrainWidget = (() => {
|
|
|
36828
37337
|
NAMED_ARGUMENT,
|
|
36829
37338
|
LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
|
|
36830
37339
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
37340
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
37341
|
+
hljs.HASH_COMMENT_MODE,
|
|
36831
37342
|
STRING,
|
|
36832
37343
|
NUMBER,
|
|
36833
37344
|
CONSTRUCTOR_CALL
|
|
@@ -36956,6 +37467,8 @@ var OlbrainWidget = (() => {
|
|
|
36956
37467
|
VARIABLE,
|
|
36957
37468
|
LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
|
|
36958
37469
|
hljs.C_BLOCK_COMMENT_MODE,
|
|
37470
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
37471
|
+
hljs.HASH_COMMENT_MODE,
|
|
36959
37472
|
STRING,
|
|
36960
37473
|
NUMBER
|
|
36961
37474
|
]
|
|
@@ -38320,6 +38833,7 @@ var OlbrainWidget = (() => {
|
|
|
38320
38833
|
"in",
|
|
38321
38834
|
"is",
|
|
38322
38835
|
"lambda",
|
|
38836
|
+
"lazy",
|
|
38323
38837
|
"match",
|
|
38324
38838
|
"nonlocal|10",
|
|
38325
38839
|
"not",
|
|
@@ -38335,7 +38849,9 @@ var OlbrainWidget = (() => {
|
|
|
38335
38849
|
const BUILT_INS = [
|
|
38336
38850
|
"__import__",
|
|
38337
38851
|
"abs",
|
|
38852
|
+
"aiter",
|
|
38338
38853
|
"all",
|
|
38854
|
+
"anext",
|
|
38339
38855
|
"any",
|
|
38340
38856
|
"ascii",
|
|
38341
38857
|
"bin",
|
|
@@ -38358,6 +38874,7 @@ var OlbrainWidget = (() => {
|
|
|
38358
38874
|
"filter",
|
|
38359
38875
|
"float",
|
|
38360
38876
|
"format",
|
|
38877
|
+
"frozendict",
|
|
38361
38878
|
"frozenset",
|
|
38362
38879
|
"getattr",
|
|
38363
38880
|
"globals",
|
|
@@ -38390,6 +38907,7 @@ var OlbrainWidget = (() => {
|
|
|
38390
38907
|
"repr",
|
|
38391
38908
|
"reversed",
|
|
38392
38909
|
"round",
|
|
38910
|
+
"sentinel",
|
|
38393
38911
|
"set",
|
|
38394
38912
|
"setattr",
|
|
38395
38913
|
"slice",
|
|
@@ -38471,7 +38989,7 @@ var OlbrainWidget = (() => {
|
|
|
38471
38989
|
relevance: 10
|
|
38472
38990
|
},
|
|
38473
38991
|
{
|
|
38474
|
-
begin: /([
|
|
38992
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
|
|
38475
38993
|
end: /'''/,
|
|
38476
38994
|
contains: [
|
|
38477
38995
|
hljs.BACKSLASH_ESCAPE,
|
|
@@ -38481,7 +38999,7 @@ var OlbrainWidget = (() => {
|
|
|
38481
38999
|
]
|
|
38482
39000
|
},
|
|
38483
39001
|
{
|
|
38484
|
-
begin: /([
|
|
39002
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
|
|
38485
39003
|
end: /"""/,
|
|
38486
39004
|
contains: [
|
|
38487
39005
|
hljs.BACKSLASH_ESCAPE,
|
|
@@ -38509,7 +39027,7 @@ var OlbrainWidget = (() => {
|
|
|
38509
39027
|
end: /"/
|
|
38510
39028
|
},
|
|
38511
39029
|
{
|
|
38512
|
-
begin: /([
|
|
39030
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
|
|
38513
39031
|
end: /'/,
|
|
38514
39032
|
contains: [
|
|
38515
39033
|
hljs.BACKSLASH_ESCAPE,
|
|
@@ -38518,7 +39036,7 @@ var OlbrainWidget = (() => {
|
|
|
38518
39036
|
]
|
|
38519
39037
|
},
|
|
38520
39038
|
{
|
|
38521
|
-
begin: /([
|
|
39039
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
|
|
38522
39040
|
end: /"/,
|
|
38523
39041
|
contains: [
|
|
38524
39042
|
hljs.BACKSLASH_ESCAPE,
|
|
@@ -39722,16 +40240,16 @@ var OlbrainWidget = (() => {
|
|
|
39722
40240
|
const UNDERSCORE_IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE);
|
|
39723
40241
|
const IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.IDENT_RE);
|
|
39724
40242
|
const FUNCTION_INVOKE = {
|
|
39725
|
-
|
|
40243
|
+
scope: "title.function.invoke",
|
|
39726
40244
|
relevance: 0,
|
|
39727
40245
|
begin: regex.concat(
|
|
39728
40246
|
/\b/,
|
|
39729
|
-
/(?!let|for|while|if|else|match\b)/,
|
|
40247
|
+
/(?!(?:let|for|while|if|else|match)\b)/,
|
|
39730
40248
|
IDENT_RE,
|
|
39731
40249
|
regex.lookahead(/\s*\(/)
|
|
39732
40250
|
)
|
|
39733
40251
|
};
|
|
39734
|
-
const NUMBER_SUFFIX = "([ui](8|16|32|64|128|size)|f(32|64))?";
|
|
40252
|
+
const NUMBER_SUFFIX = "([ui](8|16|32|64|128|size)|f(16|32|64|128))?";
|
|
39735
40253
|
const KEYWORDS = [
|
|
39736
40254
|
"abstract",
|
|
39737
40255
|
"as",
|
|
@@ -39765,6 +40283,7 @@ var OlbrainWidget = (() => {
|
|
|
39765
40283
|
"override",
|
|
39766
40284
|
"priv",
|
|
39767
40285
|
"pub",
|
|
40286
|
+
"raw",
|
|
39768
40287
|
"ref",
|
|
39769
40288
|
"return",
|
|
39770
40289
|
"self",
|
|
@@ -39875,8 +40394,10 @@ var OlbrainWidget = (() => {
|
|
|
39875
40394
|
"u64",
|
|
39876
40395
|
"u128",
|
|
39877
40396
|
"usize",
|
|
40397
|
+
"f16",
|
|
39878
40398
|
"f32",
|
|
39879
40399
|
"f64",
|
|
40400
|
+
"f128",
|
|
39880
40401
|
"str",
|
|
39881
40402
|
"char",
|
|
39882
40403
|
"bool",
|
|
@@ -39905,7 +40426,7 @@ var OlbrainWidget = (() => {
|
|
|
39905
40426
|
illegal: null
|
|
39906
40427
|
}),
|
|
39907
40428
|
{
|
|
39908
|
-
|
|
40429
|
+
scope: "symbol",
|
|
39909
40430
|
// negative lookahead to avoid matching `'`
|
|
39910
40431
|
begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/
|
|
39911
40432
|
},
|
|
@@ -39919,14 +40440,14 @@ var OlbrainWidget = (() => {
|
|
|
39919
40440
|
contains: [
|
|
39920
40441
|
{
|
|
39921
40442
|
scope: "char.escape",
|
|
39922
|
-
match: /\\('
|
|
40443
|
+
match: /\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/
|
|
39923
40444
|
}
|
|
39924
40445
|
]
|
|
39925
40446
|
}
|
|
39926
40447
|
]
|
|
39927
40448
|
},
|
|
39928
40449
|
{
|
|
39929
|
-
|
|
40450
|
+
scope: "number",
|
|
39930
40451
|
variants: [
|
|
39931
40452
|
{ begin: "\\b0b([01_]+)" + NUMBER_SUFFIX },
|
|
39932
40453
|
{ begin: "\\b0o([0-7_]+)" + NUMBER_SUFFIX },
|
|
@@ -39935,24 +40456,35 @@ var OlbrainWidget = (() => {
|
|
|
39935
40456
|
],
|
|
39936
40457
|
relevance: 0
|
|
39937
40458
|
},
|
|
40459
|
+
{
|
|
40460
|
+
begin: [
|
|
40461
|
+
/\bsafe/,
|
|
40462
|
+
/\s+/,
|
|
40463
|
+
/extern/
|
|
40464
|
+
],
|
|
40465
|
+
scope: {
|
|
40466
|
+
1: "keyword",
|
|
40467
|
+
3: "keyword"
|
|
40468
|
+
}
|
|
40469
|
+
},
|
|
39938
40470
|
{
|
|
39939
40471
|
begin: [
|
|
39940
40472
|
/fn/,
|
|
39941
40473
|
/\s+/,
|
|
39942
40474
|
UNDERSCORE_IDENT_RE
|
|
39943
40475
|
],
|
|
39944
|
-
|
|
40476
|
+
scope: {
|
|
39945
40477
|
1: "keyword",
|
|
39946
40478
|
3: "title.function"
|
|
39947
40479
|
}
|
|
39948
40480
|
},
|
|
39949
40481
|
{
|
|
39950
|
-
|
|
40482
|
+
scope: "meta",
|
|
39951
40483
|
begin: "#!?\\[",
|
|
39952
40484
|
end: "\\]",
|
|
39953
40485
|
contains: [
|
|
39954
40486
|
{
|
|
39955
|
-
|
|
40487
|
+
scope: "string",
|
|
39956
40488
|
begin: /"/,
|
|
39957
40489
|
end: /"/,
|
|
39958
40490
|
contains: [
|
|
@@ -39968,7 +40500,7 @@ var OlbrainWidget = (() => {
|
|
|
39968
40500
|
/(?:mut\s+)?/,
|
|
39969
40501
|
UNDERSCORE_IDENT_RE
|
|
39970
40502
|
],
|
|
39971
|
-
|
|
40503
|
+
scope: {
|
|
39972
40504
|
1: "keyword",
|
|
39973
40505
|
3: "keyword",
|
|
39974
40506
|
4: "variable"
|
|
@@ -39983,7 +40515,7 @@ var OlbrainWidget = (() => {
|
|
|
39983
40515
|
/\s+/,
|
|
39984
40516
|
/in/
|
|
39985
40517
|
],
|
|
39986
|
-
|
|
40518
|
+
scope: {
|
|
39987
40519
|
1: "keyword",
|
|
39988
40520
|
3: "variable",
|
|
39989
40521
|
5: "keyword"
|
|
@@ -39995,7 +40527,7 @@ var OlbrainWidget = (() => {
|
|
|
39995
40527
|
/\s+/,
|
|
39996
40528
|
UNDERSCORE_IDENT_RE
|
|
39997
40529
|
],
|
|
39998
|
-
|
|
40530
|
+
scope: {
|
|
39999
40531
|
1: "keyword",
|
|
40000
40532
|
3: "title.class"
|
|
40001
40533
|
}
|
|
@@ -40006,7 +40538,7 @@ var OlbrainWidget = (() => {
|
|
|
40006
40538
|
/\s+/,
|
|
40007
40539
|
UNDERSCORE_IDENT_RE
|
|
40008
40540
|
],
|
|
40009
|
-
|
|
40541
|
+
scope: {
|
|
40010
40542
|
1: "keyword",
|
|
40011
40543
|
3: "title.class"
|
|
40012
40544
|
}
|
|
@@ -40020,7 +40552,7 @@ var OlbrainWidget = (() => {
|
|
|
40020
40552
|
}
|
|
40021
40553
|
},
|
|
40022
40554
|
{
|
|
40023
|
-
|
|
40555
|
+
scope: "punctuation",
|
|
40024
40556
|
begin: "->"
|
|
40025
40557
|
},
|
|
40026
40558
|
FUNCTION_INVOKE
|
|
@@ -41001,6 +41533,10 @@ var OlbrainWidget = (() => {
|
|
|
41001
41533
|
scope: "number",
|
|
41002
41534
|
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
41003
41535
|
},
|
|
41536
|
+
UNICODE_RANGE: {
|
|
41537
|
+
scope: "number",
|
|
41538
|
+
begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/
|
|
41539
|
+
},
|
|
41004
41540
|
FUNCTION_DISPATCH: {
|
|
41005
41541
|
className: "built_in",
|
|
41006
41542
|
begin: /[\w-]+(?=\()/
|
|
@@ -41428,6 +41964,11 @@ var OlbrainWidget = (() => {
|
|
|
41428
41964
|
"container-type",
|
|
41429
41965
|
"content",
|
|
41430
41966
|
"content-visibility",
|
|
41967
|
+
"corner-bottom-left-shape",
|
|
41968
|
+
"corner-bottom-right-shape",
|
|
41969
|
+
"corner-shape",
|
|
41970
|
+
"corner-top-left-shape",
|
|
41971
|
+
"corner-top-right-shape",
|
|
41431
41972
|
"counter-increment",
|
|
41432
41973
|
"counter-reset",
|
|
41433
41974
|
"counter-set",
|
|
@@ -41764,6 +42305,7 @@ var OlbrainWidget = (() => {
|
|
|
41764
42305
|
"transition-timing-function",
|
|
41765
42306
|
"translate",
|
|
41766
42307
|
"unicode-bidi",
|
|
42308
|
+
"unicode-range",
|
|
41767
42309
|
"user-modify",
|
|
41768
42310
|
"user-select",
|
|
41769
42311
|
"vector-effect",
|
|
@@ -41865,6 +42407,7 @@ var OlbrainWidget = (() => {
|
|
|
41865
42407
|
VARIABLE,
|
|
41866
42408
|
modes.HEXCOLOR,
|
|
41867
42409
|
modes.CSS_NUMBER_MODE,
|
|
42410
|
+
modes.UNICODE_RANGE,
|
|
41868
42411
|
hljs.QUOTE_STRING_MODE,
|
|
41869
42412
|
hljs.APOS_STRING_MODE,
|
|
41870
42413
|
modes.IMPORTANT,
|
|
@@ -41931,7 +42474,7 @@ var OlbrainWidget = (() => {
|
|
|
41931
42474
|
// We cannot add \s (spaces) in the regular expression otherwise it will be too broad and produce unexpected result.
|
|
41932
42475
|
// For instance, in the following example, it would match "echo /path/to/home >" as a prompt:
|
|
41933
42476
|
// echo /path/to/home > t.exe
|
|
41934
|
-
begin: /^\s{0,3}[
|
|
42477
|
+
begin: /^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,
|
|
41935
42478
|
starts: {
|
|
41936
42479
|
end: /[^\\](?=\s*$)/,
|
|
41937
42480
|
subLanguage: "bash"
|
|
@@ -42249,9 +42792,9 @@ var OlbrainWidget = (() => {
|
|
|
42249
42792
|
};
|
|
42250
42793
|
const KEYWORDS = [
|
|
42251
42794
|
"break",
|
|
42252
|
-
"breakWith",
|
|
42253
42795
|
"breakOut",
|
|
42254
42796
|
"breakTo",
|
|
42797
|
+
"breakWith",
|
|
42255
42798
|
"case",
|
|
42256
42799
|
"catch",
|
|
42257
42800
|
"continue",
|
|
@@ -42263,12 +42806,16 @@ var OlbrainWidget = (() => {
|
|
|
42263
42806
|
"exitWith",
|
|
42264
42807
|
"for",
|
|
42265
42808
|
"forEach",
|
|
42809
|
+
"forEachMember",
|
|
42810
|
+
"forEachMemberAgent",
|
|
42811
|
+
"forEachMemberTeam",
|
|
42812
|
+
"forEachReversed",
|
|
42266
42813
|
"from",
|
|
42267
42814
|
"if",
|
|
42268
|
-
"local",
|
|
42269
42815
|
"private",
|
|
42270
|
-
"
|
|
42816
|
+
"privateAll",
|
|
42271
42817
|
"step",
|
|
42818
|
+
"switch",
|
|
42272
42819
|
"then",
|
|
42273
42820
|
"throw",
|
|
42274
42821
|
"to",
|
|
@@ -42282,8 +42829,8 @@ var OlbrainWidget = (() => {
|
|
|
42282
42829
|
"civilian",
|
|
42283
42830
|
"configNull",
|
|
42284
42831
|
"controlNull",
|
|
42285
|
-
"displayNull",
|
|
42286
42832
|
"diaryRecordNull",
|
|
42833
|
+
"displayNull",
|
|
42287
42834
|
"east",
|
|
42288
42835
|
"endl",
|
|
42289
42836
|
"false",
|
|
@@ -42291,6 +42838,7 @@ var OlbrainWidget = (() => {
|
|
|
42291
42838
|
"independent",
|
|
42292
42839
|
"lineBreak",
|
|
42293
42840
|
"locationNull",
|
|
42841
|
+
"netObjNull",
|
|
42294
42842
|
"nil",
|
|
42295
42843
|
"objNull",
|
|
42296
42844
|
"opfor",
|
|
@@ -42320,6 +42868,7 @@ var OlbrainWidget = (() => {
|
|
|
42320
42868
|
"actionKeysNames",
|
|
42321
42869
|
"actionKeysNamesArray",
|
|
42322
42870
|
"actionName",
|
|
42871
|
+
"actionNow",
|
|
42323
42872
|
"actionParams",
|
|
42324
42873
|
"activateAddons",
|
|
42325
42874
|
"activatedAddons",
|
|
@@ -42340,6 +42889,7 @@ var OlbrainWidget = (() => {
|
|
|
42340
42889
|
"addCuratorEditableObjects",
|
|
42341
42890
|
"addCuratorEditingArea",
|
|
42342
42891
|
"addCuratorPoints",
|
|
42892
|
+
"addCuratorSelected",
|
|
42343
42893
|
"addEditorObject",
|
|
42344
42894
|
"addEventHandler",
|
|
42345
42895
|
"addForce",
|
|
@@ -42363,6 +42913,7 @@ var OlbrainWidget = (() => {
|
|
|
42363
42913
|
"addMagazineGlobal",
|
|
42364
42914
|
"addMagazinePool",
|
|
42365
42915
|
"addMagazines",
|
|
42916
|
+
"addMagazinesTurret",
|
|
42366
42917
|
"addMagazineTurret",
|
|
42367
42918
|
"addMenu",
|
|
42368
42919
|
"addMenuItem",
|
|
@@ -42413,6 +42964,7 @@ var OlbrainWidget = (() => {
|
|
|
42413
42964
|
"allActiveTitleEffects",
|
|
42414
42965
|
"allAddonsInfo",
|
|
42415
42966
|
"allAirports",
|
|
42967
|
+
"allCameras",
|
|
42416
42968
|
"allControls",
|
|
42417
42969
|
"allCurators",
|
|
42418
42970
|
"allCutLayers",
|
|
@@ -42422,6 +42974,7 @@ var OlbrainWidget = (() => {
|
|
|
42422
42974
|
"allDiarySubjects",
|
|
42423
42975
|
"allDisplays",
|
|
42424
42976
|
"allEnv3DSoundSources",
|
|
42977
|
+
"allExtensions",
|
|
42425
42978
|
"allGroups",
|
|
42426
42979
|
"allLODs",
|
|
42427
42980
|
"allMapMarkers",
|
|
@@ -42451,6 +43004,8 @@ var OlbrainWidget = (() => {
|
|
|
42451
43004
|
"ammo",
|
|
42452
43005
|
"ammoOnPylon",
|
|
42453
43006
|
"and",
|
|
43007
|
+
"angularVelocity",
|
|
43008
|
+
"angularVelocityModelSpace",
|
|
42454
43009
|
"animate",
|
|
42455
43010
|
"animateBay",
|
|
42456
43011
|
"animateDoor",
|
|
@@ -42494,6 +43049,7 @@ var OlbrainWidget = (() => {
|
|
|
42494
43049
|
"atan2",
|
|
42495
43050
|
"atg",
|
|
42496
43051
|
"ATLToASL",
|
|
43052
|
+
"attachChild",
|
|
42497
43053
|
"attachedObject",
|
|
42498
43054
|
"attachedObjects",
|
|
42499
43055
|
"attachedTo",
|
|
@@ -42506,7 +43062,9 @@ var OlbrainWidget = (() => {
|
|
|
42506
43062
|
"backpackContainer",
|
|
42507
43063
|
"backpackItems",
|
|
42508
43064
|
"backpackMagazines",
|
|
43065
|
+
"backpacks",
|
|
42509
43066
|
"backpackSpaceFor",
|
|
43067
|
+
"batteryChargeRTD",
|
|
42510
43068
|
"behaviour",
|
|
42511
43069
|
"benchmark",
|
|
42512
43070
|
"bezierInterpolation",
|
|
@@ -42520,9 +43078,9 @@ var OlbrainWidget = (() => {
|
|
|
42520
43078
|
"briefingName",
|
|
42521
43079
|
"buildingExit",
|
|
42522
43080
|
"buildingPos",
|
|
42523
|
-
"
|
|
42524
|
-
"
|
|
42525
|
-
"
|
|
43081
|
+
"buldozer_enableRoadDiag",
|
|
43082
|
+
"buldozer_isEnabledRoadDiag",
|
|
43083
|
+
"buldozer_loadNewRoads",
|
|
42526
43084
|
"buldozer_reloadOperMap",
|
|
42527
43085
|
"buttonAction",
|
|
42528
43086
|
"buttonSetAction",
|
|
@@ -42589,6 +43147,7 @@ var OlbrainWidget = (() => {
|
|
|
42589
43147
|
"cheatsEnabled",
|
|
42590
43148
|
"checkAIFeature",
|
|
42591
43149
|
"checkVisibility",
|
|
43150
|
+
"childAttached",
|
|
42592
43151
|
"className",
|
|
42593
43152
|
"clear3DENAttribute",
|
|
42594
43153
|
"clear3DENInventory",
|
|
@@ -42600,11 +43159,13 @@ var OlbrainWidget = (() => {
|
|
|
42600
43159
|
"clearItemCargo",
|
|
42601
43160
|
"clearItemCargoGlobal",
|
|
42602
43161
|
"clearItemPool",
|
|
43162
|
+
"clearKillConfirmations",
|
|
42603
43163
|
"clearMagazineCargo",
|
|
42604
43164
|
"clearMagazineCargoGlobal",
|
|
42605
43165
|
"clearMagazinePool",
|
|
42606
43166
|
"clearOverlay",
|
|
42607
43167
|
"clearRadio",
|
|
43168
|
+
"clearVehicleInit",
|
|
42608
43169
|
"clearWeaponCargo",
|
|
42609
43170
|
"clearWeaponCargoGlobal",
|
|
42610
43171
|
"clearWeaponPool",
|
|
@@ -42618,6 +43179,7 @@ var OlbrainWidget = (() => {
|
|
|
42618
43179
|
"collisionDisabledWith",
|
|
42619
43180
|
"combatBehaviour",
|
|
42620
43181
|
"combatMode",
|
|
43182
|
+
"combatPace",
|
|
42621
43183
|
"commandArtilleryFire",
|
|
42622
43184
|
"commandChat",
|
|
42623
43185
|
"commander",
|
|
@@ -42636,11 +43198,13 @@ var OlbrainWidget = (() => {
|
|
|
42636
43198
|
"commitOverlay",
|
|
42637
43199
|
"compatibleItems",
|
|
42638
43200
|
"compatibleMagazines",
|
|
43201
|
+
"compatibleWeapons",
|
|
42639
43202
|
"compile",
|
|
42640
43203
|
"compileFinal",
|
|
42641
43204
|
"compileScript",
|
|
42642
43205
|
"completedFSM",
|
|
42643
43206
|
"composeText",
|
|
43207
|
+
"config_greater_greater_name",
|
|
42644
43208
|
"configClasses",
|
|
42645
43209
|
"configFile",
|
|
42646
43210
|
"configHierarchy",
|
|
@@ -42679,6 +43243,7 @@ var OlbrainWidget = (() => {
|
|
|
42679
43243
|
"createGuardedPoint",
|
|
42680
43244
|
"createHashMap",
|
|
42681
43245
|
"createHashMapFromArray",
|
|
43246
|
+
"createHashMapObject",
|
|
42682
43247
|
"createLocation",
|
|
42683
43248
|
"createMarker",
|
|
42684
43249
|
"createMarkerLocal",
|
|
@@ -42690,6 +43255,8 @@ var OlbrainWidget = (() => {
|
|
|
42690
43255
|
"createSimpleTask",
|
|
42691
43256
|
"createSite",
|
|
42692
43257
|
"createSoundSource",
|
|
43258
|
+
"createSoundSourceLocal",
|
|
43259
|
+
"createTarget",
|
|
42693
43260
|
"createTask",
|
|
42694
43261
|
"createTeam",
|
|
42695
43262
|
"createTrigger",
|
|
@@ -42738,6 +43305,7 @@ var OlbrainWidget = (() => {
|
|
|
42738
43305
|
"ctrlMapAnimCommit",
|
|
42739
43306
|
"ctrlMapAnimDone",
|
|
42740
43307
|
"ctrlMapCursor",
|
|
43308
|
+
"ctrlMapDir",
|
|
42741
43309
|
"ctrlMapMouseOver",
|
|
42742
43310
|
"ctrlMapPosition",
|
|
42743
43311
|
"ctrlMapScale",
|
|
@@ -42747,6 +43315,7 @@ var OlbrainWidget = (() => {
|
|
|
42747
43315
|
"ctrlModel",
|
|
42748
43316
|
"ctrlModelDirAndUp",
|
|
42749
43317
|
"ctrlModelScale",
|
|
43318
|
+
"ctrlModelVectorSide",
|
|
42750
43319
|
"ctrlMousePosition",
|
|
42751
43320
|
"ctrlParent",
|
|
42752
43321
|
"ctrlParentControlsGroup",
|
|
@@ -42832,6 +43401,7 @@ var OlbrainWidget = (() => {
|
|
|
42832
43401
|
"ctrlURL",
|
|
42833
43402
|
"ctrlURLOverlayMode",
|
|
42834
43403
|
"ctrlVisible",
|
|
43404
|
+
"ctrlWebBrowserAction",
|
|
42835
43405
|
"ctRowControls",
|
|
42836
43406
|
"ctRowCount",
|
|
42837
43407
|
"ctSetCurSel",
|
|
@@ -42852,6 +43422,7 @@ var OlbrainWidget = (() => {
|
|
|
42852
43422
|
"curatorPoints",
|
|
42853
43423
|
"curatorRegisteredObjects",
|
|
42854
43424
|
"curatorSelected",
|
|
43425
|
+
"curatorSelectionPreset",
|
|
42855
43426
|
"curatorWaypointCost",
|
|
42856
43427
|
"current3DENOperation",
|
|
42857
43428
|
"currentChannel",
|
|
@@ -42906,11 +43477,13 @@ var OlbrainWidget = (() => {
|
|
|
42906
43477
|
"deleteResources",
|
|
42907
43478
|
"deleteSite",
|
|
42908
43479
|
"deleteStatus",
|
|
43480
|
+
"deleteTarget",
|
|
42909
43481
|
"deleteTeam",
|
|
42910
43482
|
"deleteVehicle",
|
|
42911
43483
|
"deleteVehicleCrew",
|
|
42912
43484
|
"deleteWaypoint",
|
|
42913
43485
|
"detach",
|
|
43486
|
+
"detachChild",
|
|
42914
43487
|
"detectedMines",
|
|
42915
43488
|
"diag_activeMissionFSMs",
|
|
42916
43489
|
"diag_activeScripts",
|
|
@@ -42922,18 +43495,21 @@ var OlbrainWidget = (() => {
|
|
|
42922
43495
|
"diag_captureSlowFrame",
|
|
42923
43496
|
"diag_codePerformance",
|
|
42924
43497
|
"diag_deltaTime",
|
|
42925
|
-
"
|
|
43498
|
+
"diag_drawMode",
|
|
42926
43499
|
"diag_dumpCalltraceToLog",
|
|
42927
43500
|
"diag_dumpScriptAssembly",
|
|
42928
43501
|
"diag_dumpTerrainSynth",
|
|
42929
43502
|
"diag_dynamicSimulationEnd",
|
|
43503
|
+
"diag_dynamicSimulationStart",
|
|
42930
43504
|
"diag_enable",
|
|
42931
43505
|
"diag_enabled",
|
|
42932
43506
|
"diag_exportConfig",
|
|
42933
43507
|
"diag_exportTerrainSVG",
|
|
42934
43508
|
"diag_fps",
|
|
42935
|
-
"
|
|
42936
|
-
"
|
|
43509
|
+
"diag_fpsMin",
|
|
43510
|
+
"diag_frameNo",
|
|
43511
|
+
"diag_getTerrainGrid",
|
|
43512
|
+
"diag_getTerrainHeight",
|
|
42937
43513
|
"diag_getTerrainSegmentOffset",
|
|
42938
43514
|
"diag_lightNewLoad",
|
|
42939
43515
|
"diag_list",
|
|
@@ -42942,11 +43518,15 @@ var OlbrainWidget = (() => {
|
|
|
42942
43518
|
"diag_logSlowFrame",
|
|
42943
43519
|
"diag_mergeConfigFile",
|
|
42944
43520
|
"diag_recordTurretLimits",
|
|
42945
|
-
"
|
|
42946
|
-
"
|
|
43521
|
+
"diag_remainsCollector",
|
|
43522
|
+
"diag_resetAnims",
|
|
43523
|
+
"diag_resetShapes",
|
|
42947
43524
|
"diag_scope",
|
|
42948
43525
|
"diag_setLightNew",
|
|
43526
|
+
"diag_setTerrainHeight",
|
|
43527
|
+
"diag_SQFCDebugDump",
|
|
42949
43528
|
"diag_stacktrace",
|
|
43529
|
+
"diag_testScriptSimpleVM",
|
|
42950
43530
|
"diag_tickTime",
|
|
42951
43531
|
"diag_toggle",
|
|
42952
43532
|
"dialog",
|
|
@@ -43010,6 +43590,7 @@ var OlbrainWidget = (() => {
|
|
|
43010
43590
|
"drawPolygon",
|
|
43011
43591
|
"drawRectangle",
|
|
43012
43592
|
"drawTriangle",
|
|
43593
|
+
"drawXPolygon",
|
|
43013
43594
|
"driver",
|
|
43014
43595
|
"drop",
|
|
43015
43596
|
"dynamicSimulationDistance",
|
|
@@ -43044,7 +43625,9 @@ var OlbrainWidget = (() => {
|
|
|
43044
43625
|
"enableEngineArtillery",
|
|
43045
43626
|
"enableEnvironment",
|
|
43046
43627
|
"enableFatigue",
|
|
43628
|
+
"enableFreeLook",
|
|
43047
43629
|
"enableGunLights",
|
|
43630
|
+
"enableGunStabilization",
|
|
43048
43631
|
"enableInfoPanelComponent",
|
|
43049
43632
|
"enableIRLasers",
|
|
43050
43633
|
"enableMimics",
|
|
@@ -43068,6 +43651,7 @@ var OlbrainWidget = (() => {
|
|
|
43068
43651
|
"enableWeaponDisassembly",
|
|
43069
43652
|
"endLoadingScreen",
|
|
43070
43653
|
"endMission",
|
|
43654
|
+
"enemy",
|
|
43071
43655
|
"engineOn",
|
|
43072
43656
|
"enginesIsOnRTD",
|
|
43073
43657
|
"enginesPowerRTD",
|
|
@@ -43089,6 +43673,7 @@ var OlbrainWidget = (() => {
|
|
|
43089
43673
|
"exp",
|
|
43090
43674
|
"expectedDestination",
|
|
43091
43675
|
"exportJIPMessages",
|
|
43676
|
+
"exportLandscapeXYZ",
|
|
43092
43677
|
"eyeDirection",
|
|
43093
43678
|
"eyePos",
|
|
43094
43679
|
"face",
|
|
@@ -43126,6 +43711,7 @@ var OlbrainWidget = (() => {
|
|
|
43126
43711
|
"flyInHeight",
|
|
43127
43712
|
"flyInHeightASL",
|
|
43128
43713
|
"focusedCtrl",
|
|
43714
|
+
"focusOn",
|
|
43129
43715
|
"fog",
|
|
43130
43716
|
"fogForecast",
|
|
43131
43717
|
"fogParams",
|
|
@@ -43137,6 +43723,7 @@ var OlbrainWidget = (() => {
|
|
|
43137
43723
|
"forceFlagTexture",
|
|
43138
43724
|
"forceFollowRoad",
|
|
43139
43725
|
"forceGeneratorRTD",
|
|
43726
|
+
"forceHitPointsDamageSync",
|
|
43140
43727
|
"forceMap",
|
|
43141
43728
|
"forceRespawn",
|
|
43142
43729
|
"forceSpeed",
|
|
@@ -43144,9 +43731,6 @@ var OlbrainWidget = (() => {
|
|
|
43144
43731
|
"forceWalk",
|
|
43145
43732
|
"forceWeaponFire",
|
|
43146
43733
|
"forceWeatherChange",
|
|
43147
|
-
"forEachMember",
|
|
43148
|
-
"forEachMemberAgent",
|
|
43149
|
-
"forEachMemberTeam",
|
|
43150
43734
|
"forgetTarget",
|
|
43151
43735
|
"format",
|
|
43152
43736
|
"formation",
|
|
@@ -43159,9 +43743,12 @@ var OlbrainWidget = (() => {
|
|
|
43159
43743
|
"formLeader",
|
|
43160
43744
|
"freeExtension",
|
|
43161
43745
|
"freeLook",
|
|
43746
|
+
"friendly",
|
|
43162
43747
|
"fromEditor",
|
|
43748
|
+
"fromJSON",
|
|
43163
43749
|
"fuel",
|
|
43164
43750
|
"fullCrew",
|
|
43751
|
+
"gameValueToJson",
|
|
43165
43752
|
"gearIDCAmmoCount",
|
|
43166
43753
|
"gearSlotAmmoCount",
|
|
43167
43754
|
"gearSlotData",
|
|
@@ -43169,17 +43756,22 @@ var OlbrainWidget = (() => {
|
|
|
43169
43756
|
"get",
|
|
43170
43757
|
"get3DENActionState",
|
|
43171
43758
|
"get3DENAttribute",
|
|
43759
|
+
"get3DENAttributes",
|
|
43172
43760
|
"get3DENCamera",
|
|
43173
43761
|
"get3DENConnections",
|
|
43174
43762
|
"get3DENEntity",
|
|
43175
43763
|
"get3DENEntityID",
|
|
43176
43764
|
"get3DENGrid",
|
|
43177
43765
|
"get3DENIconsVisible",
|
|
43766
|
+
"get3DENLayer",
|
|
43178
43767
|
"get3DENLayerEntities",
|
|
43179
43768
|
"get3DENLinesVisible",
|
|
43180
43769
|
"get3DENMissionAttribute",
|
|
43770
|
+
"get3DENMissionAttributes",
|
|
43181
43771
|
"get3DENMouseOver",
|
|
43772
|
+
"get3DENParent",
|
|
43182
43773
|
"get3DENSelected",
|
|
43774
|
+
"getAimDirectionAndUp",
|
|
43183
43775
|
"getAimingCoef",
|
|
43184
43776
|
"getAllEnv3DSoundControllers",
|
|
43185
43777
|
"getAllEnvSoundControllers",
|
|
@@ -43190,6 +43782,7 @@ var OlbrainWidget = (() => {
|
|
|
43190
43782
|
"getAllUnitTraits",
|
|
43191
43783
|
"getAmmoCargo",
|
|
43192
43784
|
"getAnimAimPrecision",
|
|
43785
|
+
"getAnimationsQueue",
|
|
43193
43786
|
"getAnimSpeedCoef",
|
|
43194
43787
|
"getArray",
|
|
43195
43788
|
"getArtilleryAmmo",
|
|
@@ -43202,6 +43795,7 @@ var OlbrainWidget = (() => {
|
|
|
43202
43795
|
"getAudioOptionVolumes",
|
|
43203
43796
|
"getBackpackCargo",
|
|
43204
43797
|
"getBleedingRemaining",
|
|
43798
|
+
"getBoneNames",
|
|
43205
43799
|
"getBurningValue",
|
|
43206
43800
|
"getCalculatePlayerVisibilityByFriendly",
|
|
43207
43801
|
"getCameraViewDirection",
|
|
@@ -43214,7 +43808,9 @@ var OlbrainWidget = (() => {
|
|
|
43214
43808
|
"getConnectedUAVUnit",
|
|
43215
43809
|
"getContainerMaxLoad",
|
|
43216
43810
|
"getCorpse",
|
|
43811
|
+
"getCorpseWeaponholders",
|
|
43217
43812
|
"getCruiseControl",
|
|
43813
|
+
"getCurrentPlayerLevel",
|
|
43218
43814
|
"getCursorObjectParams",
|
|
43219
43815
|
"getCustomAimCoef",
|
|
43220
43816
|
"getCustomSoundController",
|
|
@@ -43234,6 +43830,7 @@ var OlbrainWidget = (() => {
|
|
|
43234
43830
|
"getEditorObjectScope",
|
|
43235
43831
|
"getElevationOffset",
|
|
43236
43832
|
"getEngineTargetRPMRTD",
|
|
43833
|
+
"getEntityInfo",
|
|
43237
43834
|
"getEnv3DSoundController",
|
|
43238
43835
|
"getEnvSoundController",
|
|
43239
43836
|
"getEventHandlerInfo",
|
|
@@ -43244,6 +43841,7 @@ var OlbrainWidget = (() => {
|
|
|
43244
43841
|
"getFriend",
|
|
43245
43842
|
"getFSMVariable",
|
|
43246
43843
|
"getFuelCargo",
|
|
43844
|
+
"getFuelConsumptionCoef",
|
|
43247
43845
|
"getGraphValues",
|
|
43248
43846
|
"getGroupIcon",
|
|
43249
43847
|
"getGroupIconParams",
|
|
@@ -43253,9 +43851,12 @@ var OlbrainWidget = (() => {
|
|
|
43253
43851
|
"getHitIndex",
|
|
43254
43852
|
"getHitPointDamage",
|
|
43255
43853
|
"getItemCargo",
|
|
43854
|
+
"getLeaning",
|
|
43855
|
+
"getLightInfo",
|
|
43256
43856
|
"getLighting",
|
|
43257
43857
|
"getLightingAt",
|
|
43258
43858
|
"getLoadedModsInfo",
|
|
43859
|
+
"getLoginStatus",
|
|
43259
43860
|
"getMagazineCargo",
|
|
43260
43861
|
"getMarkerColor",
|
|
43261
43862
|
"getMarkerPos",
|
|
@@ -43267,10 +43868,12 @@ var OlbrainWidget = (() => {
|
|
|
43267
43868
|
"getMissionDLCs",
|
|
43268
43869
|
"getMissionLayerEntities",
|
|
43269
43870
|
"getMissionLayers",
|
|
43871
|
+
"getMissionOptions",
|
|
43270
43872
|
"getMissionPath",
|
|
43271
43873
|
"getModelInfo",
|
|
43272
43874
|
"getMousePosition",
|
|
43273
43875
|
"getMusicPlayedTime",
|
|
43876
|
+
"getNextId",
|
|
43274
43877
|
"getNumber",
|
|
43275
43878
|
"getObjectArgument",
|
|
43276
43879
|
"getObjectChildren",
|
|
@@ -43288,16 +43891,21 @@ var OlbrainWidget = (() => {
|
|
|
43288
43891
|
"getOrDefaultCall",
|
|
43289
43892
|
"getOxygenRemaining",
|
|
43290
43893
|
"getPersonUsedDLCs",
|
|
43894
|
+
"getPhysicsCollisionFlag",
|
|
43291
43895
|
"getPilotCameraDirection",
|
|
43896
|
+
"getPilotCameraOpticsMode",
|
|
43292
43897
|
"getPilotCameraPosition",
|
|
43293
43898
|
"getPilotCameraRotation",
|
|
43294
43899
|
"getPilotCameraTarget",
|
|
43295
43900
|
"getPiPViewDistance",
|
|
43296
43901
|
"getPlateNumber",
|
|
43297
43902
|
"getPlayerChannel",
|
|
43903
|
+
"getPlayerCloudId",
|
|
43298
43904
|
"getPlayerID",
|
|
43905
|
+
"getPlayerLevel",
|
|
43299
43906
|
"getPlayerScores",
|
|
43300
43907
|
"getPlayerUID",
|
|
43908
|
+
"getPlayerUIDOld",
|
|
43301
43909
|
"getPlayerVoNVolume",
|
|
43302
43910
|
"getPos",
|
|
43303
43911
|
"getPosASL",
|
|
@@ -43314,13 +43922,18 @@ var OlbrainWidget = (() => {
|
|
|
43314
43922
|
"getRemoteSensorsDisabled",
|
|
43315
43923
|
"getRepairCargo",
|
|
43316
43924
|
"getResolution",
|
|
43925
|
+
"getRespawnVehicleInfo",
|
|
43317
43926
|
"getRoadInfo",
|
|
43318
43927
|
"getRotorBrakeRTD",
|
|
43928
|
+
"getSelectionBones",
|
|
43319
43929
|
"getSensorTargets",
|
|
43320
43930
|
"getSensorThreats",
|
|
43931
|
+
"getServerInfo",
|
|
43321
43932
|
"getShadowDistance",
|
|
43933
|
+
"getShotInfo",
|
|
43322
43934
|
"getShotParents",
|
|
43323
43935
|
"getSlingLoad",
|
|
43936
|
+
"getSlotItemName",
|
|
43324
43937
|
"getSoundController",
|
|
43325
43938
|
"getSoundControllerResult",
|
|
43326
43939
|
"getSpeed",
|
|
@@ -43337,13 +43950,16 @@ var OlbrainWidget = (() => {
|
|
|
43337
43950
|
"getTextRaw",
|
|
43338
43951
|
"getTextureInfo",
|
|
43339
43952
|
"getTextWidth",
|
|
43340
|
-
"
|
|
43953
|
+
"getTIParameters",
|
|
43341
43954
|
"getTotalDLCUsageTime",
|
|
43955
|
+
"getTowParent",
|
|
43342
43956
|
"getTrimOffsetRTD",
|
|
43343
43957
|
"getTurretLimits",
|
|
43344
43958
|
"getTurretOpticsMode",
|
|
43345
43959
|
"getUnitFreefallInfo",
|
|
43346
43960
|
"getUnitLoadout",
|
|
43961
|
+
"getUnitMovesInfo",
|
|
43962
|
+
"getUnitState",
|
|
43347
43963
|
"getUnitTrait",
|
|
43348
43964
|
"getUnloadInCombat",
|
|
43349
43965
|
"getUserInfo",
|
|
@@ -43351,11 +43967,15 @@ var OlbrainWidget = (() => {
|
|
|
43351
43967
|
"getUserMFDValue",
|
|
43352
43968
|
"getVariable",
|
|
43353
43969
|
"getVehicleCargo",
|
|
43354
|
-
"
|
|
43970
|
+
"getVehicleTIPars",
|
|
43971
|
+
"getVideoOptions",
|
|
43972
|
+
"getWaterFillPercentage",
|
|
43973
|
+
"getWaterLeakiness",
|
|
43355
43974
|
"getWeaponCargo",
|
|
43356
43975
|
"getWeaponSway",
|
|
43357
43976
|
"getWingsOrientationRTD",
|
|
43358
43977
|
"getWingsPositionRTD",
|
|
43978
|
+
"getWorld",
|
|
43359
43979
|
"getWPPos",
|
|
43360
43980
|
"glanceAt",
|
|
43361
43981
|
"globalChat",
|
|
@@ -43367,7 +43987,7 @@ var OlbrainWidget = (() => {
|
|
|
43367
43987
|
"groupFromNetId",
|
|
43368
43988
|
"groupIconSelectable",
|
|
43369
43989
|
"groupIconsVisible",
|
|
43370
|
-
"
|
|
43990
|
+
"groupId",
|
|
43371
43991
|
"groupOwner",
|
|
43372
43992
|
"groupRadio",
|
|
43373
43993
|
"groups",
|
|
@@ -43380,6 +44000,7 @@ var OlbrainWidget = (() => {
|
|
|
43380
44000
|
"handgunMagazine",
|
|
43381
44001
|
"handgunWeapon",
|
|
43382
44002
|
"handsHit",
|
|
44003
|
+
"hasCustomFace",
|
|
43383
44004
|
"hashValue",
|
|
43384
44005
|
"hasInterface",
|
|
43385
44006
|
"hasPilotCamera",
|
|
@@ -43395,6 +44016,9 @@ var OlbrainWidget = (() => {
|
|
|
43395
44016
|
"hcShowBar",
|
|
43396
44017
|
"hcShownBar",
|
|
43397
44018
|
"headgear",
|
|
44019
|
+
"hiddenActions",
|
|
44020
|
+
"hideActions",
|
|
44021
|
+
"hideBehindScripted",
|
|
43398
44022
|
"hideBody",
|
|
43399
44023
|
"hideObject",
|
|
43400
44024
|
"hideObjectGlobal",
|
|
@@ -43408,12 +44032,16 @@ var OlbrainWidget = (() => {
|
|
|
43408
44032
|
"htmlLoad",
|
|
43409
44033
|
"HUDMovementLevels",
|
|
43410
44034
|
"humidity",
|
|
44035
|
+
"ignore3DENHistory",
|
|
44036
|
+
"ignoreTarget",
|
|
43411
44037
|
"image",
|
|
44038
|
+
"import",
|
|
43412
44039
|
"importAllGroups",
|
|
43413
44040
|
"importance",
|
|
43414
44041
|
"in",
|
|
43415
44042
|
"inArea",
|
|
43416
44043
|
"inAreaArray",
|
|
44044
|
+
"inAreaArrayIndexes",
|
|
43417
44045
|
"incapacitatedState",
|
|
43418
44046
|
"inflame",
|
|
43419
44047
|
"inflamed",
|
|
@@ -43431,6 +44059,7 @@ var OlbrainWidget = (() => {
|
|
|
43431
44059
|
"inRangeOfArtillery",
|
|
43432
44060
|
"insert",
|
|
43433
44061
|
"insertEditorObject",
|
|
44062
|
+
"insideBuilding",
|
|
43434
44063
|
"intersect",
|
|
43435
44064
|
"is3DEN",
|
|
43436
44065
|
"is3DENMultiplayer",
|
|
@@ -43439,7 +44068,9 @@ var OlbrainWidget = (() => {
|
|
|
43439
44068
|
"isActionMenuVisible",
|
|
43440
44069
|
"isAgent",
|
|
43441
44070
|
"isAimPrecisionEnabled",
|
|
44071
|
+
"isAISteeringComponentEnabled",
|
|
43442
44072
|
"isAllowedCrewInImmobile",
|
|
44073
|
+
"isAppSubscribed",
|
|
43443
44074
|
"isArray",
|
|
43444
44075
|
"isAutoHoverOn",
|
|
43445
44076
|
"isAutonomous",
|
|
@@ -43473,6 +44104,7 @@ var OlbrainWidget = (() => {
|
|
|
43473
44104
|
"isGamePaused",
|
|
43474
44105
|
"isGroupDeletedWhenEmpty",
|
|
43475
44106
|
"isHidden",
|
|
44107
|
+
"isHideBehindScripted",
|
|
43476
44108
|
"isInRemainsCollector",
|
|
43477
44109
|
"isInstructorFigureEnabled",
|
|
43478
44110
|
"isIRLaserOn",
|
|
@@ -43496,7 +44128,9 @@ var OlbrainWidget = (() => {
|
|
|
43496
44128
|
"isOnRoad",
|
|
43497
44129
|
"isPiPEnabled",
|
|
43498
44130
|
"isPlayer",
|
|
44131
|
+
"isPlayerSupporter",
|
|
43499
44132
|
"isRealTime",
|
|
44133
|
+
"isRemoteControlling",
|
|
43500
44134
|
"isRemoteExecuted",
|
|
43501
44135
|
"isRemoteExecutedJIP",
|
|
43502
44136
|
"isSaving",
|
|
@@ -43510,7 +44144,9 @@ var OlbrainWidget = (() => {
|
|
|
43510
44144
|
"isSteamOverlayEnabled",
|
|
43511
44145
|
"isStreamFriendlyUIEnabled",
|
|
43512
44146
|
"isStressDamageEnabled",
|
|
44147
|
+
"isSwitchingWeapon",
|
|
43513
44148
|
"isText",
|
|
44149
|
+
"isThrowable",
|
|
43514
44150
|
"isTouchingGround",
|
|
43515
44151
|
"isTurnedOut",
|
|
43516
44152
|
"isTutHintsEnabled",
|
|
@@ -43518,6 +44154,7 @@ var OlbrainWidget = (() => {
|
|
|
43518
44154
|
"isUAVConnected",
|
|
43519
44155
|
"isUIContext",
|
|
43520
44156
|
"isUniformAllowed",
|
|
44157
|
+
"isUsingAISteeringComponent",
|
|
43521
44158
|
"isVehicleCargo",
|
|
43522
44159
|
"isVehicleRadarOn",
|
|
43523
44160
|
"isVehicleSensorEnabled",
|
|
@@ -43532,6 +44169,7 @@ var OlbrainWidget = (() => {
|
|
|
43532
44169
|
"joinAsSilent",
|
|
43533
44170
|
"joinSilent",
|
|
43534
44171
|
"joinString",
|
|
44172
|
+
"jsonToGameValue",
|
|
43535
44173
|
"kbAddDatabase",
|
|
43536
44174
|
"kbAddDatabaseTargets",
|
|
43537
44175
|
"kbAddTopic",
|
|
@@ -43543,6 +44181,7 @@ var OlbrainWidget = (() => {
|
|
|
43543
44181
|
"keyImage",
|
|
43544
44182
|
"keyName",
|
|
43545
44183
|
"keys",
|
|
44184
|
+
"kickPlayer",
|
|
43546
44185
|
"knowsAbout",
|
|
43547
44186
|
"land",
|
|
43548
44187
|
"landAt",
|
|
@@ -43653,9 +44292,11 @@ var OlbrainWidget = (() => {
|
|
|
43653
44292
|
"lnbTextRight",
|
|
43654
44293
|
"lnbValue",
|
|
43655
44294
|
"load",
|
|
44295
|
+
"load3DENScenario",
|
|
43656
44296
|
"loadAbs",
|
|
43657
44297
|
"loadBackpack",
|
|
43658
44298
|
"loadConfig",
|
|
44299
|
+
"loadCuratorSelectionPreset",
|
|
43659
44300
|
"loadFile",
|
|
43660
44301
|
"loadGame",
|
|
43661
44302
|
"loadIdentity",
|
|
@@ -43664,6 +44305,7 @@ var OlbrainWidget = (() => {
|
|
|
43664
44305
|
"loadStatus",
|
|
43665
44306
|
"loadUniform",
|
|
43666
44307
|
"loadVest",
|
|
44308
|
+
"local",
|
|
43667
44309
|
"localize",
|
|
43668
44310
|
"localNamespace",
|
|
43669
44311
|
"locationPosition",
|
|
@@ -43680,7 +44322,7 @@ var OlbrainWidget = (() => {
|
|
|
43680
44322
|
"lockIdentity",
|
|
43681
44323
|
"lockInventory",
|
|
43682
44324
|
"lockTurret",
|
|
43683
|
-
"
|
|
44325
|
+
"lockWP",
|
|
43684
44326
|
"log",
|
|
43685
44327
|
"logEntities",
|
|
43686
44328
|
"logNetwork",
|
|
@@ -43711,6 +44353,7 @@ var OlbrainWidget = (() => {
|
|
|
43711
44353
|
"markerChannel",
|
|
43712
44354
|
"markerColor",
|
|
43713
44355
|
"markerDir",
|
|
44356
|
+
"markerDrawPriority",
|
|
43714
44357
|
"markerPolyline",
|
|
43715
44358
|
"markerPos",
|
|
43716
44359
|
"markerShadow",
|
|
@@ -43754,6 +44397,7 @@ var OlbrainWidget = (() => {
|
|
|
43754
44397
|
"min",
|
|
43755
44398
|
"mineActive",
|
|
43756
44399
|
"mineDetectedBy",
|
|
44400
|
+
"missileState",
|
|
43757
44401
|
"missileTarget",
|
|
43758
44402
|
"missileTargetPos",
|
|
43759
44403
|
"missionConfigFile",
|
|
@@ -43784,6 +44428,7 @@ var OlbrainWidget = (() => {
|
|
|
43784
44428
|
"moveInTurret",
|
|
43785
44429
|
"moveObjectToEnd",
|
|
43786
44430
|
"moveOut",
|
|
44431
|
+
"moveTarget",
|
|
43787
44432
|
"moveTime",
|
|
43788
44433
|
"moveTo",
|
|
43789
44434
|
"moveToCompleted",
|
|
@@ -43817,10 +44462,12 @@ var OlbrainWidget = (() => {
|
|
|
43817
44462
|
"not",
|
|
43818
44463
|
"numberOfEnginesRTD",
|
|
43819
44464
|
"numberToDate",
|
|
44465
|
+
"object",
|
|
43820
44466
|
"objectCurators",
|
|
43821
44467
|
"objectFromNetId",
|
|
43822
44468
|
"objectParent",
|
|
43823
44469
|
"objStatus",
|
|
44470
|
+
"onBriefingGear",
|
|
43824
44471
|
"onBriefingGroup",
|
|
43825
44472
|
"onBriefingNotes",
|
|
43826
44473
|
"onBriefingPlan",
|
|
@@ -43833,6 +44480,7 @@ var OlbrainWidget = (() => {
|
|
|
43833
44480
|
"onGroupIconOverLeave",
|
|
43834
44481
|
"onHCGroupSelectionChanged",
|
|
43835
44482
|
"onMapSingleClick",
|
|
44483
|
+
"onOfficialServer",
|
|
43836
44484
|
"onPlayerConnected",
|
|
43837
44485
|
"onPlayerDisconnected",
|
|
43838
44486
|
"onPreloadFinished",
|
|
@@ -43841,6 +44489,7 @@ var OlbrainWidget = (() => {
|
|
|
43841
44489
|
"onTeamSwitch",
|
|
43842
44490
|
"openCuratorInterface",
|
|
43843
44491
|
"openDLCPage",
|
|
44492
|
+
"openDSInterface",
|
|
43844
44493
|
"openGPS",
|
|
43845
44494
|
"openMap",
|
|
43846
44495
|
"openSteamApp",
|
|
@@ -43852,6 +44501,7 @@ var OlbrainWidget = (() => {
|
|
|
43852
44501
|
"owner",
|
|
43853
44502
|
"param",
|
|
43854
44503
|
"params",
|
|
44504
|
+
"parentAttached",
|
|
43855
44505
|
"parseNumber",
|
|
43856
44506
|
"parseSimpleArray",
|
|
43857
44507
|
"parseText",
|
|
@@ -43873,6 +44523,7 @@ var OlbrainWidget = (() => {
|
|
|
43873
44523
|
"playerRespawnTime",
|
|
43874
44524
|
"playerSide",
|
|
43875
44525
|
"playersNumber",
|
|
44526
|
+
"playerTargetLock",
|
|
43876
44527
|
"playGesture",
|
|
43877
44528
|
"playMission",
|
|
43878
44529
|
"playMove",
|
|
@@ -43908,6 +44559,7 @@ var OlbrainWidget = (() => {
|
|
|
43908
44559
|
"primaryWeaponMagazine",
|
|
43909
44560
|
"priority",
|
|
43910
44561
|
"processDiaryLink",
|
|
44562
|
+
"processInitCommands",
|
|
43911
44563
|
"productVersion",
|
|
43912
44564
|
"profileName",
|
|
43913
44565
|
"profileNamespace",
|
|
@@ -43921,6 +44573,7 @@ var OlbrainWidget = (() => {
|
|
|
43921
44573
|
"pushBack",
|
|
43922
44574
|
"pushBackUnique",
|
|
43923
44575
|
"putWeaponPool",
|
|
44576
|
+
"pylonAction",
|
|
43924
44577
|
"queryItemsPool",
|
|
43925
44578
|
"queryMagazinePool",
|
|
43926
44579
|
"queryWeaponPool",
|
|
@@ -43949,8 +44602,10 @@ var OlbrainWidget = (() => {
|
|
|
43949
44602
|
"reload",
|
|
43950
44603
|
"reloadEnabled",
|
|
43951
44604
|
"remoteControl",
|
|
44605
|
+
"remoteControlled",
|
|
43952
44606
|
"remoteExec",
|
|
43953
44607
|
"remoteExecCall",
|
|
44608
|
+
"remoteExecutedJIPID",
|
|
43954
44609
|
"remoteExecutedOwner",
|
|
43955
44610
|
"remove3DENConnection",
|
|
43956
44611
|
"remove3DENEventHandler",
|
|
@@ -43968,6 +44623,8 @@ var OlbrainWidget = (() => {
|
|
|
43968
44623
|
"removeAllHandgunItems",
|
|
43969
44624
|
"removeAllItems",
|
|
43970
44625
|
"removeAllItemsWithMagazines",
|
|
44626
|
+
"removeAllMagazines",
|
|
44627
|
+
"removeAllMagazinesTurret",
|
|
43971
44628
|
"removeAllMissionEventHandlers",
|
|
43972
44629
|
"removeAllMPEventHandlers",
|
|
43973
44630
|
"removeAllMusicEventHandlers",
|
|
@@ -43979,6 +44636,7 @@ var OlbrainWidget = (() => {
|
|
|
43979
44636
|
"removeBackpack",
|
|
43980
44637
|
"removeBackpackGlobal",
|
|
43981
44638
|
"removeBinocularItem",
|
|
44639
|
+
"removeClothing",
|
|
43982
44640
|
"removeCuratorAddons",
|
|
43983
44641
|
"removeCuratorCameraArea",
|
|
43984
44642
|
"removeCuratorEditableObjects",
|
|
@@ -44020,6 +44678,7 @@ var OlbrainWidget = (() => {
|
|
|
44020
44678
|
"removeWeaponAttachmentCargo",
|
|
44021
44679
|
"removeWeaponCargo",
|
|
44022
44680
|
"removeWeaponGlobal",
|
|
44681
|
+
"removeWeaponItem",
|
|
44023
44682
|
"removeWeaponTurret",
|
|
44024
44683
|
"reportRemoteTarget",
|
|
44025
44684
|
"requiredVersion",
|
|
@@ -44049,6 +44708,7 @@ var OlbrainWidget = (() => {
|
|
|
44049
44708
|
"ropes",
|
|
44050
44709
|
"ropesAttachedTo",
|
|
44051
44710
|
"ropeSegments",
|
|
44711
|
+
"ropeSetCargoMass",
|
|
44052
44712
|
"ropeUnwind",
|
|
44053
44713
|
"ropeUnwound",
|
|
44054
44714
|
"rotorsForcesRTD",
|
|
@@ -44062,6 +44722,7 @@ var OlbrainWidget = (() => {
|
|
|
44062
44722
|
"safeZoneXAbs",
|
|
44063
44723
|
"safeZoneY",
|
|
44064
44724
|
"save3DENInventory",
|
|
44725
|
+
"save3DENPreferences",
|
|
44065
44726
|
"saveGame",
|
|
44066
44727
|
"saveIdentity",
|
|
44067
44728
|
"saveJoysticks",
|
|
@@ -44079,6 +44740,7 @@ var OlbrainWidget = (() => {
|
|
|
44079
44740
|
"scoreSide",
|
|
44080
44741
|
"screenshot",
|
|
44081
44742
|
"screenToWorld",
|
|
44743
|
+
"screenToWorldDirection",
|
|
44082
44744
|
"scriptDone",
|
|
44083
44745
|
"scriptName",
|
|
44084
44746
|
"scudState",
|
|
@@ -44100,9 +44762,14 @@ var OlbrainWidget = (() => {
|
|
|
44100
44762
|
"selectPlayer",
|
|
44101
44763
|
"selectRandom",
|
|
44102
44764
|
"selectRandomWeighted",
|
|
44765
|
+
"selectThrowable",
|
|
44103
44766
|
"selectWeapon",
|
|
44104
44767
|
"selectWeaponTurret",
|
|
44768
|
+
"sendAnalyticEvent",
|
|
44105
44769
|
"sendAUMessage",
|
|
44770
|
+
"sendCloudRequest",
|
|
44771
|
+
"sendCloudRequestClient",
|
|
44772
|
+
"sendCloudRequestServer",
|
|
44106
44773
|
"sendSimpleCommand",
|
|
44107
44774
|
"sendTask",
|
|
44108
44775
|
"sendTaskResult",
|
|
@@ -44111,10 +44778,13 @@ var OlbrainWidget = (() => {
|
|
|
44111
44778
|
"serverCommand",
|
|
44112
44779
|
"serverCommandAvailable",
|
|
44113
44780
|
"serverCommandExecutable",
|
|
44781
|
+
"serverConfigTopLevelEntry",
|
|
44114
44782
|
"serverName",
|
|
44115
44783
|
"serverNamespace",
|
|
44784
|
+
"serverStartMission",
|
|
44116
44785
|
"serverTime",
|
|
44117
44786
|
"set",
|
|
44787
|
+
"set3DENAttachedCursorEntity",
|
|
44118
44788
|
"set3DENAttribute",
|
|
44119
44789
|
"set3DENAttributes",
|
|
44120
44790
|
"set3DENGrid",
|
|
@@ -44134,37 +44804,46 @@ var OlbrainWidget = (() => {
|
|
|
44134
44804
|
"setAmmo",
|
|
44135
44805
|
"setAmmoCargo",
|
|
44136
44806
|
"setAmmoOnPylon",
|
|
44807
|
+
"setAngularVelocity",
|
|
44808
|
+
"setAngularVelocityModelSpace",
|
|
44137
44809
|
"setAnimSpeedCoef",
|
|
44138
44810
|
"setAperture",
|
|
44139
44811
|
"setApertureNew",
|
|
44812
|
+
"setAPURTD",
|
|
44140
44813
|
"setArmoryPoints",
|
|
44141
44814
|
"setAttributes",
|
|
44142
44815
|
"setAutonomous",
|
|
44816
|
+
"setBatteryChargeRTD",
|
|
44817
|
+
"setBatteryRTD",
|
|
44143
44818
|
"setBehaviour",
|
|
44144
44819
|
"setBehaviourStrong",
|
|
44145
44820
|
"setBleedingRemaining",
|
|
44146
44821
|
"setBrakesRTD",
|
|
44822
|
+
"setCameraEffect",
|
|
44147
44823
|
"setCameraInterest",
|
|
44148
44824
|
"setCamShakeDefParams",
|
|
44149
44825
|
"setCamShakeParams",
|
|
44150
|
-
"
|
|
44826
|
+
"setCamUseTI",
|
|
44151
44827
|
"setCaptive",
|
|
44152
44828
|
"setCenterOfMass",
|
|
44153
44829
|
"setCollisionLight",
|
|
44154
44830
|
"setCombatBehaviour",
|
|
44155
44831
|
"setCombatMode",
|
|
44832
|
+
"setCompassDeclination",
|
|
44156
44833
|
"setCompassOscillation",
|
|
44157
44834
|
"setConvoySeparation",
|
|
44158
44835
|
"setCruiseControl",
|
|
44159
44836
|
"setCuratorCameraAreaCeiling",
|
|
44160
44837
|
"setCuratorCoef",
|
|
44161
44838
|
"setCuratorEditingAreaType",
|
|
44839
|
+
"setCuratorSelected",
|
|
44840
|
+
"setCuratorSelectionPreset",
|
|
44162
44841
|
"setCuratorWaypointCost",
|
|
44163
44842
|
"setCurrentChannel",
|
|
44164
44843
|
"setCurrentTask",
|
|
44165
44844
|
"setCurrentWaypoint",
|
|
44166
44845
|
"setCustomAimCoef",
|
|
44167
|
-
"
|
|
44846
|
+
"setCustomMissionData",
|
|
44168
44847
|
"setCustomSoundController",
|
|
44169
44848
|
"setCustomWeightRTD",
|
|
44170
44849
|
"setDamage",
|
|
@@ -44189,7 +44868,7 @@ var OlbrainWidget = (() => {
|
|
|
44189
44868
|
"setEffectiveCommander",
|
|
44190
44869
|
"setEngineRpmRTD",
|
|
44191
44870
|
"setFace",
|
|
44192
|
-
"
|
|
44871
|
+
"setFaceAnimation",
|
|
44193
44872
|
"setFatigue",
|
|
44194
44873
|
"setFeatureType",
|
|
44195
44874
|
"setFlagAnimationPhase",
|
|
@@ -44206,11 +44885,12 @@ var OlbrainWidget = (() => {
|
|
|
44206
44885
|
"setFSMVariable",
|
|
44207
44886
|
"setFuel",
|
|
44208
44887
|
"setFuelCargo",
|
|
44888
|
+
"setFuelConsumptionCoef",
|
|
44209
44889
|
"setGroupIcon",
|
|
44210
44890
|
"setGroupIconParams",
|
|
44211
44891
|
"setGroupIconsSelectable",
|
|
44212
44892
|
"setGroupIconsVisible",
|
|
44213
|
-
"
|
|
44893
|
+
"setGroupId",
|
|
44214
44894
|
"setGroupIdGlobal",
|
|
44215
44895
|
"setGroupOwner",
|
|
44216
44896
|
"setGusts",
|
|
@@ -44224,6 +44904,10 @@ var OlbrainWidget = (() => {
|
|
|
44224
44904
|
"setIdentity",
|
|
44225
44905
|
"setImportance",
|
|
44226
44906
|
"setInfoPanel",
|
|
44907
|
+
"setJointDriveAngularVelocity",
|
|
44908
|
+
"setJointDriveLinearVelocity",
|
|
44909
|
+
"setJointDriveOrientation",
|
|
44910
|
+
"setJointDrivePosition",
|
|
44227
44911
|
"setLeader",
|
|
44228
44912
|
"setLightAmbient",
|
|
44229
44913
|
"setLightAttenuation",
|
|
@@ -44248,6 +44932,7 @@ var OlbrainWidget = (() => {
|
|
|
44248
44932
|
"setMarkerColorLocal",
|
|
44249
44933
|
"setMarkerDir",
|
|
44250
44934
|
"setMarkerDirLocal",
|
|
44935
|
+
"setMarkerDrawPriority",
|
|
44251
44936
|
"setMarkerPolyline",
|
|
44252
44937
|
"setMarkerPolylineLocal",
|
|
44253
44938
|
"setMarkerPos",
|
|
@@ -44267,6 +44952,7 @@ var OlbrainWidget = (() => {
|
|
|
44267
44952
|
"setMimic",
|
|
44268
44953
|
"setMissileTarget",
|
|
44269
44954
|
"setMissileTargetPos",
|
|
44955
|
+
"setMissionOptions",
|
|
44270
44956
|
"setMousePosition",
|
|
44271
44957
|
"setMusicEffect",
|
|
44272
44958
|
"setMusicEventHandler",
|
|
@@ -44289,7 +44975,9 @@ var OlbrainWidget = (() => {
|
|
|
44289
44975
|
"setParticleFire",
|
|
44290
44976
|
"setParticleParams",
|
|
44291
44977
|
"setParticleRandom",
|
|
44978
|
+
"setPhysicsCollisionFlag",
|
|
44292
44979
|
"setPilotCameraDirection",
|
|
44980
|
+
"setPilotCameraOpticsMode",
|
|
44293
44981
|
"setPilotCameraRotation",
|
|
44294
44982
|
"setPilotCameraTarget",
|
|
44295
44983
|
"setPilotLight",
|
|
@@ -44336,19 +45024,24 @@ var OlbrainWidget = (() => {
|
|
|
44336
45024
|
"setSpeedMode",
|
|
44337
45025
|
"setStamina",
|
|
44338
45026
|
"setStaminaScheme",
|
|
45027
|
+
"setStarterRTD",
|
|
44339
45028
|
"setStatValue",
|
|
44340
45029
|
"setSuppression",
|
|
44341
45030
|
"setSystemOfUnits",
|
|
44342
45031
|
"setTargetAge",
|
|
45032
|
+
"setTargetSize",
|
|
44343
45033
|
"setTaskMarkerOffset",
|
|
44344
45034
|
"setTaskResult",
|
|
44345
45035
|
"setTaskState",
|
|
44346
45036
|
"setTerrainGrid",
|
|
44347
45037
|
"setTerrainHeight",
|
|
44348
45038
|
"setText",
|
|
45039
|
+
"setThrottleRTD",
|
|
44349
45040
|
"setTimeMultiplier",
|
|
44350
|
-
"
|
|
45041
|
+
"setTIParameter",
|
|
44351
45042
|
"setTitleEffect",
|
|
45043
|
+
"setToneMapping",
|
|
45044
|
+
"setToneMappingParams",
|
|
44352
45045
|
"setTowParent",
|
|
44353
45046
|
"setTrafficDensity",
|
|
44354
45047
|
"setTrafficDistance",
|
|
@@ -44387,13 +45080,14 @@ var OlbrainWidget = (() => {
|
|
|
44387
45080
|
"setVehicleArmor",
|
|
44388
45081
|
"setVehicleCargo",
|
|
44389
45082
|
"setVehicleId",
|
|
45083
|
+
"setVehicleInit",
|
|
44390
45084
|
"setVehicleLock",
|
|
44391
45085
|
"setVehiclePosition",
|
|
44392
45086
|
"setVehicleRadar",
|
|
44393
45087
|
"setVehicleReceiveRemoteTargets",
|
|
44394
45088
|
"setVehicleReportOwnPosition",
|
|
44395
45089
|
"setVehicleReportRemoteTargets",
|
|
44396
|
-
"
|
|
45090
|
+
"setVehicleTIPars",
|
|
44397
45091
|
"setVehicleVarName",
|
|
44398
45092
|
"setVelocity",
|
|
44399
45093
|
"setVelocityModelSpace",
|
|
@@ -44401,6 +45095,8 @@ var OlbrainWidget = (() => {
|
|
|
44401
45095
|
"setViewDistance",
|
|
44402
45096
|
"setVisibleIfTreeCollapsed",
|
|
44403
45097
|
"setWantedRPMRTD",
|
|
45098
|
+
"setWaterFillPercentage",
|
|
45099
|
+
"setWaterLeakiness",
|
|
44404
45100
|
"setWaves",
|
|
44405
45101
|
"setWaypointBehaviour",
|
|
44406
45102
|
"setWaypointCombatMode",
|
|
@@ -44434,16 +45130,17 @@ var OlbrainWidget = (() => {
|
|
|
44434
45130
|
"showCommandingMenu",
|
|
44435
45131
|
"showCompass",
|
|
44436
45132
|
"showCuratorCompass",
|
|
44437
|
-
"
|
|
45133
|
+
"showGPS",
|
|
44438
45134
|
"showHUD",
|
|
44439
45135
|
"showLegend",
|
|
44440
45136
|
"showMap",
|
|
45137
|
+
"shownAction",
|
|
44441
45138
|
"shownArtilleryComputer",
|
|
44442
45139
|
"shownChat",
|
|
44443
45140
|
"shownCompass",
|
|
44444
45141
|
"shownCuratorCompass",
|
|
44445
45142
|
"showNewEditorObject",
|
|
44446
|
-
"
|
|
45143
|
+
"shownGPS",
|
|
44447
45144
|
"shownHUD",
|
|
44448
45145
|
"shownMap",
|
|
44449
45146
|
"shownPad",
|
|
@@ -44470,6 +45167,7 @@ var OlbrainWidget = (() => {
|
|
|
44470
45167
|
"simulCloudDensity",
|
|
44471
45168
|
"simulCloudOcclusion",
|
|
44472
45169
|
"simulInClouds",
|
|
45170
|
+
"simulSetHumidity",
|
|
44473
45171
|
"simulWeatherSync",
|
|
44474
45172
|
"sin",
|
|
44475
45173
|
"size",
|
|
@@ -44488,6 +45186,7 @@ var OlbrainWidget = (() => {
|
|
|
44488
45186
|
"soldierMagazines",
|
|
44489
45187
|
"someAmmo",
|
|
44490
45188
|
"sort",
|
|
45189
|
+
"soundParams",
|
|
44491
45190
|
"soundVolume",
|
|
44492
45191
|
"spawn",
|
|
44493
45192
|
"speaker",
|
|
@@ -44499,9 +45198,11 @@ var OlbrainWidget = (() => {
|
|
|
44499
45198
|
"squadParams",
|
|
44500
45199
|
"stance",
|
|
44501
45200
|
"startLoadingScreen",
|
|
45201
|
+
"steamGameRecordingEvent",
|
|
44502
45202
|
"stop",
|
|
44503
45203
|
"stopEngineRTD",
|
|
44504
45204
|
"stopped",
|
|
45205
|
+
"stopSound",
|
|
44505
45206
|
"str",
|
|
44506
45207
|
"sunOrMoon",
|
|
44507
45208
|
"supportInfo",
|
|
@@ -44560,6 +45261,8 @@ var OlbrainWidget = (() => {
|
|
|
44560
45261
|
"textLog",
|
|
44561
45262
|
"textLogFormat",
|
|
44562
45263
|
"tg",
|
|
45264
|
+
"throttleRTD",
|
|
45265
|
+
"throwables",
|
|
44563
45266
|
"time",
|
|
44564
45267
|
"timeMultiplier",
|
|
44565
45268
|
"titleCut",
|
|
@@ -44569,6 +45272,7 @@ var OlbrainWidget = (() => {
|
|
|
44569
45272
|
"titleText",
|
|
44570
45273
|
"toArray",
|
|
44571
45274
|
"toFixed",
|
|
45275
|
+
"toJSON",
|
|
44572
45276
|
"toLower",
|
|
44573
45277
|
"toLowerANSI",
|
|
44574
45278
|
"toString",
|
|
@@ -44635,6 +45339,7 @@ var OlbrainWidget = (() => {
|
|
|
44635
45339
|
"UAVControl",
|
|
44636
45340
|
"uiNamespace",
|
|
44637
45341
|
"uiSleep",
|
|
45342
|
+
"uiTime",
|
|
44638
45343
|
"unassignCurator",
|
|
44639
45344
|
"unassignItem",
|
|
44640
45345
|
"unassignTeam",
|
|
@@ -44685,6 +45390,8 @@ var OlbrainWidget = (() => {
|
|
|
44685
45390
|
"vectorModelToWorldVisual",
|
|
44686
45391
|
"vectorMultiply",
|
|
44687
45392
|
"vectorNormalized",
|
|
45393
|
+
"vectorSide",
|
|
45394
|
+
"vectorSideVisual",
|
|
44688
45395
|
"vectorUp",
|
|
44689
45396
|
"vectorUpVisual",
|
|
44690
45397
|
"vectorWorldToModel",
|
|
@@ -44708,12 +45415,13 @@ var OlbrainWidget = (() => {
|
|
|
44708
45415
|
"vestMagazines",
|
|
44709
45416
|
"viewDistance",
|
|
44710
45417
|
"visibleCompass",
|
|
44711
|
-
"
|
|
45418
|
+
"visibleGPS",
|
|
44712
45419
|
"visibleMap",
|
|
44713
45420
|
"visiblePosition",
|
|
44714
45421
|
"visiblePositionASL",
|
|
44715
45422
|
"visibleScoretable",
|
|
44716
45423
|
"visibleWatch",
|
|
45424
|
+
"waterDamaged",
|
|
44717
45425
|
"waves",
|
|
44718
45426
|
"waypointAttachedObject",
|
|
44719
45427
|
"waypointAttachedVehicle",
|
|
@@ -44745,6 +45453,7 @@ var OlbrainWidget = (() => {
|
|
|
44745
45453
|
"weaponAccessoriesCargo",
|
|
44746
45454
|
"weaponCargo",
|
|
44747
45455
|
"weaponDirection",
|
|
45456
|
+
"weaponDisassemblyEnabled",
|
|
44748
45457
|
"weaponInertia",
|
|
44749
45458
|
"weaponLowered",
|
|
44750
45459
|
"weaponReloadingTime",
|
|
@@ -44812,7 +45521,7 @@ var OlbrainWidget = (() => {
|
|
|
44812
45521
|
//There's no ? in SQF
|
|
44813
45522
|
/@/,
|
|
44814
45523
|
//There's no @ in SQF
|
|
44815
|
-
//
|
|
45524
|
+
// brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729
|
|
44816
45525
|
/ \| /,
|
|
44817
45526
|
// . is only used in numbers
|
|
44818
45527
|
/[a-zA-Z_]\./,
|
|
@@ -46099,6 +46808,10 @@ var OlbrainWidget = (() => {
|
|
|
46099
46808
|
scope: "number",
|
|
46100
46809
|
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
46101
46810
|
},
|
|
46811
|
+
UNICODE_RANGE: {
|
|
46812
|
+
scope: "number",
|
|
46813
|
+
begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/
|
|
46814
|
+
},
|
|
46102
46815
|
FUNCTION_DISPATCH: {
|
|
46103
46816
|
className: "built_in",
|
|
46104
46817
|
begin: /[\w-]+(?=\()/
|
|
@@ -46526,6 +47239,11 @@ var OlbrainWidget = (() => {
|
|
|
46526
47239
|
"container-type",
|
|
46527
47240
|
"content",
|
|
46528
47241
|
"content-visibility",
|
|
47242
|
+
"corner-bottom-left-shape",
|
|
47243
|
+
"corner-bottom-right-shape",
|
|
47244
|
+
"corner-shape",
|
|
47245
|
+
"corner-top-left-shape",
|
|
47246
|
+
"corner-top-right-shape",
|
|
46529
47247
|
"counter-increment",
|
|
46530
47248
|
"counter-reset",
|
|
46531
47249
|
"counter-set",
|
|
@@ -46862,6 +47580,7 @@ var OlbrainWidget = (() => {
|
|
|
46862
47580
|
"transition-timing-function",
|
|
46863
47581
|
"translate",
|
|
46864
47582
|
"unicode-bidi",
|
|
47583
|
+
"unicode-range",
|
|
46865
47584
|
"user-modify",
|
|
46866
47585
|
"user-select",
|
|
46867
47586
|
"vector-effect",
|
|
@@ -47023,6 +47742,7 @@ var OlbrainWidget = (() => {
|
|
|
47023
47742
|
VARIABLE,
|
|
47024
47743
|
hljs.APOS_STRING_MODE,
|
|
47025
47744
|
modes.CSS_NUMBER_MODE,
|
|
47745
|
+
modes.UNICODE_RANGE,
|
|
47026
47746
|
hljs.QUOTE_STRING_MODE
|
|
47027
47747
|
]
|
|
47028
47748
|
}
|
|
@@ -47134,6 +47854,20 @@ var OlbrainWidget = (() => {
|
|
|
47134
47854
|
const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source(x)).join("|") + ")";
|
|
47135
47855
|
return joined;
|
|
47136
47856
|
}
|
|
47857
|
+
new RegExp(either(
|
|
47858
|
+
/\[(?:[^\\\]]|\\.)*\]/,
|
|
47859
|
+
// a character class, inside which ( and \ lose their meaning
|
|
47860
|
+
/\(\?<(?![=!])[^>]+>/,
|
|
47861
|
+
// a named capture group `(?<name>` (not a lookbehind `(?<=` / `(?<!`)
|
|
47862
|
+
/\(\?'[^']+'/,
|
|
47863
|
+
// a named capture group `(?'name'`
|
|
47864
|
+
/\(\??/,
|
|
47865
|
+
// an opening parenthesis, capturing or non-capturing / lookahead
|
|
47866
|
+
/\\([1-9][0-9]*)/,
|
|
47867
|
+
// a backreference like `\1`
|
|
47868
|
+
/\\./
|
|
47869
|
+
// any other escape sequence
|
|
47870
|
+
));
|
|
47137
47871
|
var keywordWrapper = (keyword) => concat(
|
|
47138
47872
|
/\b/,
|
|
47139
47873
|
keyword,
|
|
@@ -49116,6 +49850,7 @@ var OlbrainWidget = (() => {
|
|
|
49116
49850
|
"localStorage",
|
|
49117
49851
|
"sessionStorage",
|
|
49118
49852
|
"module",
|
|
49853
|
+
"self",
|
|
49119
49854
|
"global"
|
|
49120
49855
|
// Node.js
|
|
49121
49856
|
];
|
|
@@ -49458,7 +50193,8 @@ var OlbrainWidget = (() => {
|
|
|
49458
50193
|
noneOf([
|
|
49459
50194
|
...BUILT_IN_GLOBALS,
|
|
49460
50195
|
"super",
|
|
49461
|
-
"import"
|
|
50196
|
+
"import",
|
|
50197
|
+
"await"
|
|
49462
50198
|
].map((x) => `${x}\\s*\\(`)),
|
|
49463
50199
|
IDENT_RE$1,
|
|
49464
50200
|
regex.lookahead(/\s*\(/)
|
|
@@ -49522,7 +50258,7 @@ var OlbrainWidget = (() => {
|
|
|
49522
50258
|
keywords: KEYWORDS$1,
|
|
49523
50259
|
// this will be extended by TypeScript
|
|
49524
50260
|
exports: { PARAMS_CONTAINS, CLASS_REFERENCE },
|
|
49525
|
-
illegal: /#(?![$_A-z])/,
|
|
50261
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
49526
50262
|
contains: [
|
|
49527
50263
|
hljs.SHEBANG({
|
|
49528
50264
|
label: "shebang",
|
|
@@ -52251,6 +52987,7 @@ var OlbrainWidget = (() => {
|
|
|
52251
52987
|
hljs.registerLanguage("fix", require_fix());
|
|
52252
52988
|
hljs.registerLanguage("flix", require_flix());
|
|
52253
52989
|
hljs.registerLanguage("fortran", require_fortran());
|
|
52990
|
+
hljs.registerLanguage("freedesktop", require_freedesktop());
|
|
52254
52991
|
hljs.registerLanguage("fsharp", require_fsharp());
|
|
52255
52992
|
hljs.registerLanguage("gams", require_gams());
|
|
52256
52993
|
hljs.registerLanguage("gauss", require_gauss());
|
|
@@ -52390,9 +53127,13 @@ var OlbrainWidget = (() => {
|
|
|
52390
53127
|
var widget_exports = {};
|
|
52391
53128
|
__export(widget_exports, {
|
|
52392
53129
|
AgentClient: () => AgentClient,
|
|
53130
|
+
ApiError: () => ApiError,
|
|
52393
53131
|
AuthenticationError: () => AuthenticationError,
|
|
53132
|
+
BillingError: () => BillingError,
|
|
52394
53133
|
ChatWidget: () => ChatWidget,
|
|
52395
53134
|
NetworkError: () => NetworkError,
|
|
53135
|
+
NotFoundError: () => NotFoundError,
|
|
53136
|
+
Olbrain: () => Olbrain,
|
|
52396
53137
|
OlbrainError: () => OlbrainError,
|
|
52397
53138
|
RateLimitError: () => RateLimitError,
|
|
52398
53139
|
SessionNotFoundError: () => SessionNotFoundError,
|
|
@@ -52454,16 +53195,39 @@ var OlbrainWidget = (() => {
|
|
|
52454
53195
|
Object.setPrototypeOf(this, _StreamingError.prototype);
|
|
52455
53196
|
}
|
|
52456
53197
|
};
|
|
53198
|
+
var ApiError = class _ApiError extends OlbrainError {
|
|
53199
|
+
constructor(status, code, message) {
|
|
53200
|
+
super(message);
|
|
53201
|
+
this.name = "ApiError";
|
|
53202
|
+
this.status = status;
|
|
53203
|
+
this.code = code;
|
|
53204
|
+
Object.setPrototypeOf(this, _ApiError.prototype);
|
|
53205
|
+
}
|
|
53206
|
+
};
|
|
53207
|
+
var NotFoundError = class _NotFoundError extends ApiError {
|
|
53208
|
+
constructor(code = "not_found", message = "Not found") {
|
|
53209
|
+
super(404, code, message);
|
|
53210
|
+
this.name = "NotFoundError";
|
|
53211
|
+
Object.setPrototypeOf(this, _NotFoundError.prototype);
|
|
53212
|
+
}
|
|
53213
|
+
};
|
|
53214
|
+
var BillingError = class _BillingError extends ApiError {
|
|
53215
|
+
constructor(status, code, message) {
|
|
53216
|
+
super(status, code, message);
|
|
53217
|
+
this.name = "BillingError";
|
|
53218
|
+
Object.setPrototypeOf(this, _BillingError.prototype);
|
|
53219
|
+
}
|
|
53220
|
+
};
|
|
52457
53221
|
|
|
52458
53222
|
// src/core/utils.ts
|
|
52459
53223
|
function validateApiKey(apiKey) {
|
|
52460
53224
|
if (!apiKey) {
|
|
52461
53225
|
throw new ValidationError("API key is required");
|
|
52462
53226
|
}
|
|
52463
|
-
const validPrefixes = ["sk_live_", "org_live_", "sk_", "org_"];
|
|
53227
|
+
const validPrefixes = ["ak_", "sk_live_", "org_live_", "sk_", "org_"];
|
|
52464
53228
|
if (!validPrefixes.some((prefix) => apiKey.startsWith(prefix))) {
|
|
52465
53229
|
throw new ValidationError(
|
|
52466
|
-
"Invalid API key format. Must start with sk_, org_, sk_live_, or org_live_"
|
|
53230
|
+
"Invalid API key format. Must start with ak_, sk_, org_, sk_live_, or org_live_"
|
|
52467
53231
|
);
|
|
52468
53232
|
}
|
|
52469
53233
|
}
|
|
@@ -52483,7 +53247,7 @@ var OlbrainWidget = (() => {
|
|
|
52483
53247
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
52484
53248
|
}
|
|
52485
53249
|
function isNode() {
|
|
52486
|
-
return typeof process !== "undefined" && process.versions
|
|
53250
|
+
return typeof process !== "undefined" && !!process.versions?.node;
|
|
52487
53251
|
}
|
|
52488
53252
|
async function getEventSourceImpl() {
|
|
52489
53253
|
if (isBrowser()) {
|
|
@@ -52947,8 +53711,98 @@ var OlbrainWidget = (() => {
|
|
|
52947
53711
|
}
|
|
52948
53712
|
};
|
|
52949
53713
|
|
|
53714
|
+
// src/core/olbrain.ts
|
|
53715
|
+
var DEFAULT_BASE_URL2 = "https://webhook.olbrain.com";
|
|
53716
|
+
var BILLING_CODES = /* @__PURE__ */ new Set([
|
|
53717
|
+
"insufficient_funds",
|
|
53718
|
+
"credit_limit_exceeded",
|
|
53719
|
+
"subscription_suspended",
|
|
53720
|
+
"subscription_inactive",
|
|
53721
|
+
"billing_unavailable"
|
|
53722
|
+
]);
|
|
53723
|
+
var enc = encodeURIComponent;
|
|
53724
|
+
var Olbrain = class {
|
|
53725
|
+
constructor(config) {
|
|
53726
|
+
this.config = config;
|
|
53727
|
+
this.workflows = {
|
|
53728
|
+
run: async (agentId, input = {}) => {
|
|
53729
|
+
const out = await this.request("POST", `/api/workflows/${enc(agentId)}/trigger`, input);
|
|
53730
|
+
return { runId: out.run_id, status: out.status };
|
|
53731
|
+
}
|
|
53732
|
+
};
|
|
53733
|
+
this.runs = {
|
|
53734
|
+
list: (agentId, opts = {}) => {
|
|
53735
|
+
const q = new URLSearchParams();
|
|
53736
|
+
if (opts.limit !== void 0) q.set("limit", String(opts.limit));
|
|
53737
|
+
if (opts.status) q.set("status", opts.status);
|
|
53738
|
+
const qs = q.toString();
|
|
53739
|
+
return this.request("GET", `/api/agents/${enc(agentId)}/runs${qs ? `?${qs}` : ""}`);
|
|
53740
|
+
},
|
|
53741
|
+
get: (agentId, runId) => this.request("GET", `/api/agents/${enc(agentId)}/runs/${enc(runId)}`),
|
|
53742
|
+
cancel: (agentId, runId) => this.control(agentId, runId, "cancel"),
|
|
53743
|
+
pause: (agentId, runId) => this.control(agentId, runId, "pause"),
|
|
53744
|
+
retry: (agentId, runId) => this.control(agentId, runId, "retry"),
|
|
53745
|
+
resume: (agentId, runId) => this.control(agentId, runId, "resume")
|
|
53746
|
+
};
|
|
53747
|
+
this.approvals = {
|
|
53748
|
+
list: (agentId, runId) => this.request("GET", `/api/agents/${enc(agentId)}/runs/${enc(runId)}/approvals`),
|
|
53749
|
+
resolve: (agentId, runId, input) => this.request("POST", `/api/agents/${enc(agentId)}/runs/${enc(runId)}/approvals/resolve`, {
|
|
53750
|
+
exception_id: input.exceptionId,
|
|
53751
|
+
resolution: input.resolution,
|
|
53752
|
+
...input.modifiedData ? { modified_data: input.modifiedData } : {}
|
|
53753
|
+
})
|
|
53754
|
+
};
|
|
53755
|
+
if (!config || Boolean(config.apiKey) === Boolean(config.getIdToken)) {
|
|
53756
|
+
throw new ValidationError("Give exactly one of apiKey or getIdToken");
|
|
53757
|
+
}
|
|
53758
|
+
if (config.apiKey && !config.apiKey.startsWith("ak_")) {
|
|
53759
|
+
throw new ValidationError("apiKey must be an Olbrain access key (ak_\u2026)");
|
|
53760
|
+
}
|
|
53761
|
+
this.baseUrl = (config.baseUrl || DEFAULT_BASE_URL2).replace(/\/$/, "");
|
|
53762
|
+
this.timeoutMs = config.timeoutMs ?? 3e4;
|
|
53763
|
+
}
|
|
53764
|
+
control(agentId, runId, verb) {
|
|
53765
|
+
return this.request("POST", `/api/agents/${enc(agentId)}/runs/${enc(runId)}/${verb}`);
|
|
53766
|
+
}
|
|
53767
|
+
async request(method, path, body) {
|
|
53768
|
+
const token = this.config.apiKey ?? await this.config.getIdToken();
|
|
53769
|
+
const headers = { Authorization: `Bearer ${token}` };
|
|
53770
|
+
if (body !== void 0) headers["Content-Type"] = "application/json";
|
|
53771
|
+
const controller = new AbortController();
|
|
53772
|
+
const timer = setTimeout(() => controller.abort(), this.timeoutMs);
|
|
53773
|
+
let res;
|
|
53774
|
+
try {
|
|
53775
|
+
res = await fetch(`${this.baseUrl}${path}`, {
|
|
53776
|
+
method,
|
|
53777
|
+
headers,
|
|
53778
|
+
body: body === void 0 ? void 0 : JSON.stringify(body),
|
|
53779
|
+
signal: controller.signal
|
|
53780
|
+
});
|
|
53781
|
+
} catch (err) {
|
|
53782
|
+
const e = err;
|
|
53783
|
+
throw new NetworkError(e?.name === "AbortError" ? `Request timed out after ${this.timeoutMs}ms` : e?.message || "Network error");
|
|
53784
|
+
} finally {
|
|
53785
|
+
clearTimeout(timer);
|
|
53786
|
+
}
|
|
53787
|
+
const data = await res.json().catch(() => void 0);
|
|
53788
|
+
if (res.ok) return data;
|
|
53789
|
+
const detail = data?.detail;
|
|
53790
|
+
const pick = (k) => [data?.error?.[k], typeof detail === "object" && !Array.isArray(detail) ? detail?.[k] : void 0, data?.[k]].find((v) => typeof v === "string" && v);
|
|
53791
|
+
const code = pick("code") ?? "error";
|
|
53792
|
+
const message = data?.error?.message ?? (typeof detail === "string" && detail ? detail : void 0) ?? pick("message") ?? (res.statusText || "Request failed");
|
|
53793
|
+
if (BILLING_CODES.has(code)) throw new BillingError(res.status, code, message);
|
|
53794
|
+
if (res.status === 401) throw new AuthenticationError(message);
|
|
53795
|
+
if (res.status === 404) throw new NotFoundError(code, message);
|
|
53796
|
+
if (res.status === 429) {
|
|
53797
|
+
const retryAfter = Number(res.headers.get("Retry-After"));
|
|
53798
|
+
throw new RateLimitError(message, Number.isFinite(retryAfter) && retryAfter > 0 ? retryAfter : void 0);
|
|
53799
|
+
}
|
|
53800
|
+
throw new ApiError(res.status, code, message);
|
|
53801
|
+
}
|
|
53802
|
+
};
|
|
53803
|
+
|
|
52950
53804
|
// src/index.ts
|
|
52951
|
-
var VERSION = "1.
|
|
53805
|
+
var VERSION = "1.2.0";
|
|
52952
53806
|
|
|
52953
53807
|
// node_modules/marked/lib/marked.esm.js
|
|
52954
53808
|
function _getDefaults() {
|