@tokens-studio/tokenscript-interpreter 0.33.0 → 0.34.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/dist/chunk-33CDF4L4.js +6444 -0
- package/dist/chunk-33CDF4L4.js.map +1 -0
- package/dist/chunk-AXH5N7KV.js +99 -0
- package/dist/chunk-AXH5N7KV.js.map +1 -0
- package/dist/cli.js +221 -2
- package/dist/cli.js.map +1 -1
- package/dist/compliance-suite.js +2 -2
- package/dist/config-DtbN3iyg.d.ts +918 -0
- package/dist/lib/{chunk-QYRJ6NSL.cjs → chunk-LEYHQJTL.cjs} +3 -2
- package/dist/lib/chunk-LEYHQJTL.cjs.map +1 -0
- package/dist/lib/{chunk-GKSWF7FF.cjs → chunk-LMGHS2NP.cjs} +102 -100
- package/dist/lib/chunk-LMGHS2NP.cjs.map +1 -0
- package/dist/lib/{chunk-LI2D53SH.js → chunk-LSTH2XJ4.js} +5 -3
- package/dist/lib/chunk-LSTH2XJ4.js.map +1 -0
- package/dist/lib/{chunk-YD3MIYOO.js → chunk-ODVWXGOM.js} +3 -2
- package/dist/lib/chunk-ODVWXGOM.js.map +1 -0
- package/dist/lib/{chunk-DFN353G4.js → chunk-RWXDOZAS.js} +225 -4
- package/dist/lib/chunk-RWXDOZAS.js.map +1 -0
- package/dist/lib/{chunk-AQEJB7EO.cjs → chunk-YCIBJDRB.cjs} +767 -546
- package/dist/lib/chunk-YCIBJDRB.cjs.map +1 -0
- package/dist/lib/index.cjs +91 -91
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +3 -3
- package/dist/lib/{interpreter-DNmBc--s.d.ts → interpreter-6QwMkUqD.d.cts} +30 -2
- package/dist/lib/{interpreter-CP7CNwDa.d.cts → interpreter-v7WiwSP9.d.ts} +30 -2
- package/dist/lib/interpreter.cjs +73 -73
- package/dist/lib/interpreter.d.cts +4 -4
- package/dist/lib/interpreter.d.ts +4 -4
- package/dist/lib/interpreter.js +3 -3
- package/dist/lib/processor-node.cjs +12 -12
- package/dist/lib/processor-node.d.cts +3 -3
- package/dist/lib/processor-node.d.ts +3 -3
- package/dist/lib/processor-node.js +3 -3
- package/dist/lib/processor.cjs +17 -17
- package/dist/lib/processor.d.cts +4 -4
- package/dist/lib/processor.d.ts +4 -4
- package/dist/lib/processor.js +3 -3
- package/dist/lib/schema.cjs +5 -5
- package/dist/lib/schema.d.cts +1 -1
- package/dist/lib/schema.d.ts +1 -1
- package/dist/lib/schema.js +3 -3
- package/dist/lib/syntax-highlighting.cjs +15 -15
- package/dist/lib/syntax-highlighting.d.cts +1 -1
- package/dist/lib/syntax-highlighting.d.ts +1 -1
- package/dist/lib/syntax-highlighting.js +2 -2
- package/dist/lib/{types-DHgmzR1Z.d.ts → types-BI0AZ4Ej.d.ts} +2 -2
- package/dist/lib/{types-BimJex2v.d.cts → types-EB8V9c46.d.cts} +1 -0
- package/dist/lib/{types-BimJex2v.d.ts → types-EB8V9c46.d.ts} +1 -0
- package/dist/lib/{types-DsJuwrq3.d.cts → types-cFwP43uv.d.cts} +2 -2
- package/dist/lib/types.cjs +6 -6
- package/dist/lib/types.d.cts +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/processor/index.d.ts +1 -1
- package/dist/processor/index.js +2 -2
- package/dist/repl.d.ts +1 -1
- package/dist/repl.js +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-AQEJB7EO.cjs.map +0 -1
- package/dist/lib/chunk-DFN353G4.js.map +0 -1
- package/dist/lib/chunk-GKSWF7FF.cjs.map +0 -1
- package/dist/lib/chunk-LI2D53SH.js.map +0 -1
- package/dist/lib/chunk-QYRJ6NSL.cjs.map +0 -1
- package/dist/lib/chunk-YD3MIYOO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
4
4
|
|
|
5
5
|
// src/interpreter/errors/codes/color.ts
|
|
6
6
|
var ColorErrorCode = /* @__PURE__ */ ((ColorErrorCode2) => {
|
|
@@ -74,6 +74,7 @@ var InterpreterErrorCode = /* @__PURE__ */ ((InterpreterErrorCode2) => {
|
|
|
74
74
|
InterpreterErrorCode2["FOR_EACH_NOT_LIST"] = "INT_FOR_EACH_NOT_LIST";
|
|
75
75
|
InterpreterErrorCode2["FOR_EACH_VARIABLE_SHADOW"] = "INT_FOR_EACH_VARIABLE_SHADOW";
|
|
76
76
|
InterpreterErrorCode2["FOR_EACH_DUPLICATE_VARS"] = "INT_FOR_EACH_DUPLICATE_VARS";
|
|
77
|
+
InterpreterErrorCode2["TEMPLATE_INVALID_TYPE"] = "INT_TEMPLATE_INVALID_TYPE";
|
|
77
78
|
InterpreterErrorCode2["UNKNOWN_ERROR"] = "INT_UNKNOWN_ERROR";
|
|
78
79
|
return InterpreterErrorCode2;
|
|
79
80
|
})(InterpreterErrorCode || {});
|
|
@@ -87,6 +88,7 @@ var LexerErrorCode = /* @__PURE__ */ ((LexerErrorCode2) => {
|
|
|
87
88
|
LexerErrorCode2["INVALID_HEX_COLOR_FORMAT"] = "LEXER_INVALID_HEX_COLOR_FORMAT";
|
|
88
89
|
LexerErrorCode2["EXPECTED_CHARACTER"] = "LEXER_EXPECTED_CHARACTER";
|
|
89
90
|
LexerErrorCode2["MULTIPLE_DECIMAL_POINTS"] = "LEXER_MULTIPLE_DECIMAL_POINTS";
|
|
91
|
+
LexerErrorCode2["UNTERMINATED_TEMPLATE_STRING"] = "LEXER_UNTERMINATED_TEMPLATE_STRING";
|
|
90
92
|
return LexerErrorCode2;
|
|
91
93
|
})(LexerErrorCode || {});
|
|
92
94
|
|
|
@@ -292,7 +294,7 @@ Root cause: ${data.rootCause}`,
|
|
|
292
294
|
};
|
|
293
295
|
|
|
294
296
|
// src/interpreter/errors/messages/index.ts
|
|
295
|
-
var getMessage = /* @__PURE__ */
|
|
297
|
+
var getMessage = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((code, data) => {
|
|
296
298
|
const template = messages[code];
|
|
297
299
|
if (!template) {
|
|
298
300
|
return `Unknown error: ${code}`;
|
|
@@ -328,7 +330,7 @@ Near token: ${String(this.token.value)}`;
|
|
|
328
330
|
return base;
|
|
329
331
|
}
|
|
330
332
|
};
|
|
331
|
-
|
|
333
|
+
chunkLEYHQJTL_cjs.__name(_LanguageError, "LanguageError");
|
|
332
334
|
var LanguageError = _LanguageError;
|
|
333
335
|
var _LexerError = class _LexerError extends LanguageError {
|
|
334
336
|
constructor(code, options) {
|
|
@@ -337,7 +339,7 @@ var _LexerError = class _LexerError extends LanguageError {
|
|
|
337
339
|
this.code = code;
|
|
338
340
|
}
|
|
339
341
|
};
|
|
340
|
-
|
|
342
|
+
chunkLEYHQJTL_cjs.__name(_LexerError, "LexerError");
|
|
341
343
|
var LexerError = _LexerError;
|
|
342
344
|
var _ParserError = class _ParserError extends LanguageError {
|
|
343
345
|
constructor(code, options) {
|
|
@@ -346,7 +348,7 @@ var _ParserError = class _ParserError extends LanguageError {
|
|
|
346
348
|
this.code = code;
|
|
347
349
|
}
|
|
348
350
|
};
|
|
349
|
-
|
|
351
|
+
chunkLEYHQJTL_cjs.__name(_ParserError, "ParserError");
|
|
350
352
|
var ParserError = _ParserError;
|
|
351
353
|
var _InterpreterError = class _InterpreterError extends LanguageError {
|
|
352
354
|
constructor(code, options) {
|
|
@@ -355,7 +357,7 @@ var _InterpreterError = class _InterpreterError extends LanguageError {
|
|
|
355
357
|
this.code = code;
|
|
356
358
|
}
|
|
357
359
|
};
|
|
358
|
-
|
|
360
|
+
chunkLEYHQJTL_cjs.__name(_InterpreterError, "InterpreterError");
|
|
359
361
|
var InterpreterError = _InterpreterError;
|
|
360
362
|
var _ProcessorError = class _ProcessorError extends LanguageError {
|
|
361
363
|
constructor(code, options) {
|
|
@@ -364,30 +366,30 @@ var _ProcessorError = class _ProcessorError extends LanguageError {
|
|
|
364
366
|
this.code = code;
|
|
365
367
|
}
|
|
366
368
|
};
|
|
367
|
-
|
|
369
|
+
chunkLEYHQJTL_cjs.__name(_ProcessorError, "ProcessorError");
|
|
368
370
|
var ProcessorError = _ProcessorError;
|
|
369
371
|
|
|
370
372
|
// src/interpreter/errors/utils.ts
|
|
371
373
|
function isLanguageError(error) {
|
|
372
374
|
return error instanceof LanguageError;
|
|
373
375
|
}
|
|
374
|
-
|
|
376
|
+
chunkLEYHQJTL_cjs.__name(isLanguageError, "isLanguageError");
|
|
375
377
|
function isLexerError(error) {
|
|
376
378
|
return error instanceof LexerError;
|
|
377
379
|
}
|
|
378
|
-
|
|
380
|
+
chunkLEYHQJTL_cjs.__name(isLexerError, "isLexerError");
|
|
379
381
|
function isParserError(error) {
|
|
380
382
|
return error instanceof ParserError;
|
|
381
383
|
}
|
|
382
|
-
|
|
384
|
+
chunkLEYHQJTL_cjs.__name(isParserError, "isParserError");
|
|
383
385
|
function isInterpreterError(error) {
|
|
384
386
|
return error instanceof InterpreterError;
|
|
385
387
|
}
|
|
386
|
-
|
|
388
|
+
chunkLEYHQJTL_cjs.__name(isInterpreterError, "isInterpreterError");
|
|
387
389
|
function isProcessorError(error) {
|
|
388
390
|
return error instanceof ProcessorError;
|
|
389
391
|
}
|
|
390
|
-
|
|
392
|
+
chunkLEYHQJTL_cjs.__name(isProcessorError, "isProcessorError");
|
|
391
393
|
function serializeError(error) {
|
|
392
394
|
if (error instanceof LanguageError) {
|
|
393
395
|
return error;
|
|
@@ -403,38 +405,38 @@ function serializeError(error) {
|
|
|
403
405
|
}
|
|
404
406
|
return String(error);
|
|
405
407
|
}
|
|
406
|
-
|
|
408
|
+
chunkLEYHQJTL_cjs.__name(serializeError, "serializeError");
|
|
407
409
|
|
|
408
410
|
// src/interpreter/utils/type.ts
|
|
409
|
-
var isSome = /* @__PURE__ */
|
|
411
|
+
var isSome = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
410
412
|
return v != null;
|
|
411
413
|
}, "isSome");
|
|
412
|
-
var isNone = /* @__PURE__ */
|
|
414
|
+
var isNone = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
413
415
|
return v == null;
|
|
414
416
|
}, "isNone");
|
|
415
|
-
var isNull = /* @__PURE__ */
|
|
417
|
+
var isNull = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
416
418
|
return v === null;
|
|
417
419
|
}, "isNull");
|
|
418
|
-
var isUndefined = /* @__PURE__ */
|
|
420
|
+
var isUndefined = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
419
421
|
return v === void 0;
|
|
420
422
|
}, "isUndefined");
|
|
421
|
-
var isObject = /* @__PURE__ */
|
|
423
|
+
var isObject = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
422
424
|
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
423
425
|
}, "isObject");
|
|
424
|
-
var isString = /* @__PURE__ */
|
|
426
|
+
var isString = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
425
427
|
return typeof v === "string";
|
|
426
428
|
}, "isString");
|
|
427
|
-
var isNumber = /* @__PURE__ */
|
|
429
|
+
var isNumber = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
428
430
|
return typeof v === "number" && !Number.isNaN(v);
|
|
429
431
|
}, "isNumber");
|
|
430
|
-
var isBoolean = /* @__PURE__ */
|
|
432
|
+
var isBoolean = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
431
433
|
return typeof v === "boolean";
|
|
432
434
|
}, "isBoolean");
|
|
433
|
-
var isArray = /* @__PURE__ */
|
|
435
|
+
var isArray = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
434
436
|
return Array.isArray(v);
|
|
435
437
|
}, "isArray");
|
|
436
|
-
var isMap = /* @__PURE__ */
|
|
437
|
-
var getKeyAlt = /* @__PURE__ */
|
|
438
|
+
var isMap = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => v instanceof Map, "isMap");
|
|
439
|
+
var getKeyAlt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((keys, record) => {
|
|
438
440
|
for (const key of keys) {
|
|
439
441
|
if (key in record) {
|
|
440
442
|
return record[key];
|
|
@@ -442,18 +444,18 @@ var getKeyAlt = /* @__PURE__ */ chunkQYRJ6NSL_cjs.__name((keys, record) => {
|
|
|
442
444
|
}
|
|
443
445
|
return void 0;
|
|
444
446
|
}, "getKeyAlt");
|
|
445
|
-
var isObjectWithKey = /* @__PURE__ */
|
|
447
|
+
var isObjectWithKey = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, key) => {
|
|
446
448
|
return isObject(value) && key in value;
|
|
447
449
|
}, "isObjectWithKey");
|
|
448
|
-
var isOutOfBounds = /* @__PURE__ */
|
|
450
|
+
var isOutOfBounds = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, index) => {
|
|
449
451
|
if (!isArray(value)) return true;
|
|
450
452
|
return index < 0 || index >= value.length;
|
|
451
453
|
}, "isOutOfBounds");
|
|
452
|
-
var isOutOfBoundsInclusive = /* @__PURE__ */
|
|
454
|
+
var isOutOfBoundsInclusive = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, index) => {
|
|
453
455
|
if (!isArray(value)) return true;
|
|
454
456
|
return index < 0 || index > value.length;
|
|
455
457
|
}, "isOutOfBoundsInclusive");
|
|
456
|
-
var safeParseInt = /* @__PURE__ */
|
|
458
|
+
var safeParseInt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
|
|
457
459
|
if (isNumber(v)) return Math.floor(v);
|
|
458
460
|
if (isString(v)) {
|
|
459
461
|
const parsed = parseInt(v, 10);
|
|
@@ -461,7 +463,7 @@ var safeParseInt = /* @__PURE__ */ chunkQYRJ6NSL_cjs.__name((v) => {
|
|
|
461
463
|
}
|
|
462
464
|
return null;
|
|
463
465
|
}, "safeParseInt");
|
|
464
|
-
var nullToUndefined = /* @__PURE__ */
|
|
466
|
+
var nullToUndefined = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => isNull(v) ? void 0 : v, "nullToUndefined");
|
|
465
467
|
|
|
466
468
|
// src/interpreter/utils/color.ts
|
|
467
469
|
function isValidHex(value) {
|
|
@@ -478,7 +480,7 @@ function isValidHex(value) {
|
|
|
478
480
|
}
|
|
479
481
|
return true;
|
|
480
482
|
}
|
|
481
|
-
|
|
483
|
+
chunkLEYHQJTL_cjs.__name(isValidHex, "isValidHex");
|
|
482
484
|
function parseHexWithAlpha(value) {
|
|
483
485
|
if (!isValidHex(value)) {
|
|
484
486
|
throw new InterpreterError("SYM_INVALID_HEX_COLOR" /* INVALID_HEX_COLOR */, {
|
|
@@ -506,11 +508,11 @@ function parseHexWithAlpha(value) {
|
|
|
506
508
|
const alphaValue = Number.parseInt(alphaPart, 16) / 255;
|
|
507
509
|
return { color: `#${colorPart}`, alpha: alphaValue };
|
|
508
510
|
}
|
|
509
|
-
|
|
511
|
+
chunkLEYHQJTL_cjs.__name(parseHexWithAlpha, "parseHexWithAlpha");
|
|
510
512
|
function isValidAlpha(alpha) {
|
|
511
513
|
return alpha === null || alpha >= 0 && alpha <= 1;
|
|
512
514
|
}
|
|
513
|
-
|
|
515
|
+
chunkLEYHQJTL_cjs.__name(isValidAlpha, "isValidAlpha");
|
|
514
516
|
function ensureValidAlpha(alpha) {
|
|
515
517
|
if (!isValidAlpha(alpha)) {
|
|
516
518
|
throw new InterpreterError("COLOR_INVALID_ALPHA_VALUE" /* INVALID_ALPHA_VALUE */, {
|
|
@@ -518,11 +520,11 @@ function ensureValidAlpha(alpha) {
|
|
|
518
520
|
});
|
|
519
521
|
}
|
|
520
522
|
}
|
|
521
|
-
|
|
523
|
+
chunkLEYHQJTL_cjs.__name(ensureValidAlpha, "ensureValidAlpha");
|
|
522
524
|
function isTransparent(alpha) {
|
|
523
525
|
return alpha !== null && alpha < 1;
|
|
524
526
|
}
|
|
525
|
-
|
|
527
|
+
chunkLEYHQJTL_cjs.__name(isTransparent, "isTransparent");
|
|
526
528
|
function formatHex8(hexColor, alpha) {
|
|
527
529
|
const alphaHex = Math.round(alpha * 255).toString(16).padStart(2, "0");
|
|
528
530
|
let hex6 = hexColor;
|
|
@@ -531,37 +533,37 @@ function formatHex8(hexColor, alpha) {
|
|
|
531
533
|
}
|
|
532
534
|
return `${hex6}${alphaHex}`;
|
|
533
535
|
}
|
|
534
|
-
|
|
536
|
+
chunkLEYHQJTL_cjs.__name(formatHex8, "formatHex8");
|
|
535
537
|
|
|
536
538
|
// src/interpreter/utils/string.ts
|
|
537
|
-
var isAlpha = /* @__PURE__ */
|
|
539
|
+
var isAlpha = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
|
|
538
540
|
if (char === null) return false;
|
|
539
541
|
const cp = char.codePointAt(0) ?? 0;
|
|
540
542
|
return cp >= 65 && cp <= 90 || // A-Z
|
|
541
543
|
cp >= 97 && cp <= 122;
|
|
542
544
|
}, "isAlpha");
|
|
543
|
-
var isNumber2 = /* @__PURE__ */
|
|
545
|
+
var isNumber2 = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
|
|
544
546
|
if (char === null) return false;
|
|
545
547
|
const cp = char.codePointAt(0) ?? 0;
|
|
546
548
|
return cp >= 48 && cp <= 57;
|
|
547
549
|
}, "isNumber");
|
|
548
|
-
var isAlphaNumeric = /* @__PURE__ */
|
|
550
|
+
var isAlphaNumeric = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
|
|
549
551
|
if (char === null) return false;
|
|
550
552
|
return isAlpha(char) || isNumber2(char);
|
|
551
553
|
}, "isAlphaNumeric");
|
|
552
|
-
var isSpace = /* @__PURE__ */
|
|
554
|
+
var isSpace = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
|
|
553
555
|
if (char === null) return false;
|
|
554
556
|
return /\s/.test(char);
|
|
555
557
|
}, "isSpace");
|
|
556
|
-
var capitalize = /* @__PURE__ */
|
|
558
|
+
var capitalize = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((str) => `${str.charAt(0).toUpperCase()}${str.slice(1).toLowerCase()}`, "capitalize");
|
|
557
559
|
|
|
558
560
|
// src/interpreter/symbols.ts
|
|
559
561
|
function isTokenscriptSymbol(value) {
|
|
560
562
|
return isObjectWithKey(value, "getTypeName");
|
|
561
563
|
}
|
|
562
|
-
|
|
563
|
-
var typeEquals = /* @__PURE__ */
|
|
564
|
-
var typeName = /* @__PURE__ */
|
|
564
|
+
chunkLEYHQJTL_cjs.__name(isTokenscriptSymbol, "isTokenscriptSymbol");
|
|
565
|
+
var typeEquals = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((typeA, typeB) => typeA?.toLowerCase() === typeB?.toLowerCase(), "typeEquals");
|
|
566
|
+
var typeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((base, sub) => {
|
|
565
567
|
const baseStr = capitalize(base);
|
|
566
568
|
if (sub) {
|
|
567
569
|
const subStr = capitalize(sub);
|
|
@@ -569,7 +571,7 @@ var typeName = /* @__PURE__ */ chunkQYRJ6NSL_cjs.__name((base, sub) => {
|
|
|
569
571
|
}
|
|
570
572
|
return baseStr;
|
|
571
573
|
}, "typeName");
|
|
572
|
-
var getResultTypeName = /* @__PURE__ */
|
|
574
|
+
var getResultTypeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((result) => {
|
|
573
575
|
if (isNull(result)) {
|
|
574
576
|
return "Null";
|
|
575
577
|
}
|
|
@@ -581,7 +583,7 @@ var getResultTypeName = /* @__PURE__ */ chunkQYRJ6NSL_cjs.__name((result) => {
|
|
|
581
583
|
}
|
|
582
584
|
return "Unknown";
|
|
583
585
|
}, "getResultTypeName");
|
|
584
|
-
var formatObjectEntries = /* @__PURE__ */
|
|
586
|
+
var formatObjectEntries = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((data) => {
|
|
585
587
|
let entries;
|
|
586
588
|
if (isArray(data)) {
|
|
587
589
|
entries = data;
|
|
@@ -593,7 +595,7 @@ var formatObjectEntries = /* @__PURE__ */ chunkQYRJ6NSL_cjs.__name((data) => {
|
|
|
593
595
|
const formattedEntries = entries.map(([key, value]) => `${key}: ${String(value)}`).join(", ");
|
|
594
596
|
return `{${formattedEntries}}`;
|
|
595
597
|
}, "formatObjectEntries");
|
|
596
|
-
var expectStringKey = /* @__PURE__ */
|
|
598
|
+
var expectStringKey = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((key) => {
|
|
597
599
|
if (isString(key)) {
|
|
598
600
|
return key;
|
|
599
601
|
}
|
|
@@ -797,7 +799,7 @@ var _BaseSymbolType = class _BaseSymbolType {
|
|
|
797
799
|
});
|
|
798
800
|
}
|
|
799
801
|
};
|
|
800
|
-
|
|
802
|
+
chunkLEYHQJTL_cjs.__name(_BaseSymbolType, "BaseSymbolType");
|
|
801
803
|
var BaseSymbolType = _BaseSymbolType;
|
|
802
804
|
var _NullSymbol = class _NullSymbol extends BaseSymbolType {
|
|
803
805
|
constructor(config) {
|
|
@@ -826,7 +828,7 @@ var _NullSymbol = class _NullSymbol extends BaseSymbolType {
|
|
|
826
828
|
return null;
|
|
827
829
|
}
|
|
828
830
|
};
|
|
829
|
-
|
|
831
|
+
chunkLEYHQJTL_cjs.__name(_NullSymbol, "NullSymbol");
|
|
830
832
|
_NullSymbol.type = "Null";
|
|
831
833
|
var NullSymbol = _NullSymbol;
|
|
832
834
|
var _NumberSymbol = class _NumberSymbol extends BaseSymbolType {
|
|
@@ -922,12 +924,12 @@ var _NumberSymbol = class _NumberSymbol extends BaseSymbolType {
|
|
|
922
924
|
return this.value;
|
|
923
925
|
}
|
|
924
926
|
};
|
|
925
|
-
|
|
927
|
+
chunkLEYHQJTL_cjs.__name(_NumberSymbol, "NumberSymbol");
|
|
926
928
|
_NumberSymbol.type = "Number";
|
|
927
929
|
_NumberSymbol._SUPPORTED_METHODS = {
|
|
928
930
|
to_string: {
|
|
929
931
|
name: "to_string",
|
|
930
|
-
function: /* @__PURE__ */
|
|
932
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(radix) {
|
|
931
933
|
return this.toStringSymbol(radix);
|
|
932
934
|
}, "function"),
|
|
933
935
|
args: [
|
|
@@ -1033,39 +1035,39 @@ var _StringSymbol = class _StringSymbol extends BaseSymbolType {
|
|
|
1033
1035
|
return this.value;
|
|
1034
1036
|
}
|
|
1035
1037
|
};
|
|
1036
|
-
|
|
1038
|
+
chunkLEYHQJTL_cjs.__name(_StringSymbol, "StringSymbol");
|
|
1037
1039
|
_StringSymbol.type = "String";
|
|
1038
1040
|
_StringSymbol._SUPPORTED_METHODS = {
|
|
1039
1041
|
upper: {
|
|
1040
|
-
function: /* @__PURE__ */
|
|
1042
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1041
1043
|
return this.upper();
|
|
1042
1044
|
}, "function"),
|
|
1043
1045
|
args: [],
|
|
1044
1046
|
returnType: "String"
|
|
1045
1047
|
},
|
|
1046
1048
|
lower: {
|
|
1047
|
-
function: /* @__PURE__ */
|
|
1049
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1048
1050
|
return this.lower();
|
|
1049
1051
|
}, "function"),
|
|
1050
1052
|
args: [],
|
|
1051
1053
|
returnType: "String"
|
|
1052
1054
|
},
|
|
1053
1055
|
length: {
|
|
1054
|
-
function: /* @__PURE__ */
|
|
1056
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1055
1057
|
return this.length();
|
|
1056
1058
|
}, "function"),
|
|
1057
1059
|
args: [],
|
|
1058
1060
|
returnType: "Number"
|
|
1059
1061
|
},
|
|
1060
1062
|
concat: {
|
|
1061
|
-
function: /* @__PURE__ */
|
|
1063
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(other) {
|
|
1062
1064
|
return this.concat(other);
|
|
1063
1065
|
}, "function"),
|
|
1064
1066
|
args: [{ name: "other", type: "String" }],
|
|
1065
1067
|
returnType: "String"
|
|
1066
1068
|
},
|
|
1067
1069
|
split: {
|
|
1068
|
-
function: /* @__PURE__ */
|
|
1070
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(delimiter) {
|
|
1069
1071
|
return this.split(delimiter);
|
|
1070
1072
|
}, "function"),
|
|
1071
1073
|
args: [{ name: "delimiter", type: "String", optional: true }],
|
|
@@ -1114,7 +1116,7 @@ var _BooleanSymbol = class _BooleanSymbol extends BaseSymbolType {
|
|
|
1114
1116
|
return this.value;
|
|
1115
1117
|
}
|
|
1116
1118
|
};
|
|
1117
|
-
|
|
1119
|
+
chunkLEYHQJTL_cjs.__name(_BooleanSymbol, "BooleanSymbol");
|
|
1118
1120
|
_BooleanSymbol.type = "Boolean";
|
|
1119
1121
|
var BooleanSymbol = _BooleanSymbol;
|
|
1120
1122
|
var _ListSymbol = class _ListSymbol extends BaseSymbolType {
|
|
@@ -1182,25 +1184,25 @@ var _ListSymbol = class _ListSymbol extends BaseSymbolType {
|
|
|
1182
1184
|
return this.value.map((item) => item.toJs(options));
|
|
1183
1185
|
}
|
|
1184
1186
|
};
|
|
1185
|
-
|
|
1187
|
+
chunkLEYHQJTL_cjs.__name(_ListSymbol, "ListSymbol");
|
|
1186
1188
|
_ListSymbol.type = "List";
|
|
1187
1189
|
_ListSymbol._SUPPORTED_METHODS = {
|
|
1188
1190
|
append: {
|
|
1189
|
-
function: /* @__PURE__ */
|
|
1191
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
|
|
1190
1192
|
return this.append(item);
|
|
1191
1193
|
}, "function"),
|
|
1192
1194
|
args: [{ name: "item", type: "any" }],
|
|
1193
1195
|
returnType: "List"
|
|
1194
1196
|
},
|
|
1195
1197
|
extend: {
|
|
1196
|
-
function: /* @__PURE__ */
|
|
1198
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(...items) {
|
|
1197
1199
|
return this.extend(...items);
|
|
1198
1200
|
}, "function"),
|
|
1199
1201
|
args: [],
|
|
1200
1202
|
returnType: "List"
|
|
1201
1203
|
},
|
|
1202
1204
|
insert: {
|
|
1203
|
-
function: /* @__PURE__ */
|
|
1205
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
|
|
1204
1206
|
return this.insert(index, item);
|
|
1205
1207
|
}, "function"),
|
|
1206
1208
|
args: [
|
|
@@ -1210,35 +1212,35 @@ _ListSymbol._SUPPORTED_METHODS = {
|
|
|
1210
1212
|
returnType: "List"
|
|
1211
1213
|
},
|
|
1212
1214
|
delete: {
|
|
1213
|
-
function: /* @__PURE__ */
|
|
1215
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
|
|
1214
1216
|
return this.delete(index);
|
|
1215
1217
|
}, "function"),
|
|
1216
1218
|
args: [{ name: "index", type: "Number" }],
|
|
1217
1219
|
returnType: "List"
|
|
1218
1220
|
},
|
|
1219
1221
|
length: {
|
|
1220
|
-
function: /* @__PURE__ */
|
|
1222
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1221
1223
|
return this.length();
|
|
1222
1224
|
}, "function"),
|
|
1223
1225
|
args: [],
|
|
1224
1226
|
returnType: "Number"
|
|
1225
1227
|
},
|
|
1226
1228
|
index: {
|
|
1227
|
-
function: /* @__PURE__ */
|
|
1229
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
|
|
1228
1230
|
return this.index(item);
|
|
1229
1231
|
}, "function"),
|
|
1230
1232
|
args: [{ name: "item", type: "any" }],
|
|
1231
1233
|
returnType: "Number"
|
|
1232
1234
|
},
|
|
1233
1235
|
get: {
|
|
1234
|
-
function: /* @__PURE__ */
|
|
1236
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
|
|
1235
1237
|
return this.get(index);
|
|
1236
1238
|
}, "function"),
|
|
1237
1239
|
args: [{ name: "index", type: "Number" }],
|
|
1238
1240
|
returnType: "any"
|
|
1239
1241
|
},
|
|
1240
1242
|
update: {
|
|
1241
|
-
function: /* @__PURE__ */
|
|
1243
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
|
|
1242
1244
|
return this.update(index, item);
|
|
1243
1245
|
}, "function"),
|
|
1244
1246
|
args: [
|
|
@@ -1248,7 +1250,7 @@ _ListSymbol._SUPPORTED_METHODS = {
|
|
|
1248
1250
|
returnType: "List"
|
|
1249
1251
|
},
|
|
1250
1252
|
join: {
|
|
1251
|
-
function: /* @__PURE__ */
|
|
1253
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(separator) {
|
|
1252
1254
|
return this.join(separator);
|
|
1253
1255
|
}, "function"),
|
|
1254
1256
|
args: [{ name: "separator", type: "String", optional: true }],
|
|
@@ -1273,7 +1275,7 @@ var _NumberWithUnitSymbol = class _NumberWithUnitSymbol extends BaseSymbolType {
|
|
|
1273
1275
|
super(safeValue, config);
|
|
1274
1276
|
this.type = "NumberWithUnit";
|
|
1275
1277
|
this.value = safeValue;
|
|
1276
|
-
if (typeof unit === "string" && !Object.values(
|
|
1278
|
+
if (typeof unit === "string" && !Object.values(chunkLEYHQJTL_cjs.SupportedFormats).includes(unit)) {
|
|
1277
1279
|
throw new InterpreterError("SYM_ATTRIBUTE_NOT_FOUND" /* ATTRIBUTE_NOT_FOUND */, {
|
|
1278
1280
|
data: { attributeName: unit, type: "Unit" }
|
|
1279
1281
|
});
|
|
@@ -1340,12 +1342,12 @@ var _NumberWithUnitSymbol = class _NumberWithUnitSymbol extends BaseSymbolType {
|
|
|
1340
1342
|
return { value: this.value, unit: this.unit };
|
|
1341
1343
|
}
|
|
1342
1344
|
};
|
|
1343
|
-
|
|
1345
|
+
chunkLEYHQJTL_cjs.__name(_NumberWithUnitSymbol, "NumberWithUnitSymbol");
|
|
1344
1346
|
_NumberWithUnitSymbol.type = "NumberWithUnit";
|
|
1345
1347
|
_NumberWithUnitSymbol._SUPPORTED_METHODS = {
|
|
1346
1348
|
to_string: {
|
|
1347
1349
|
name: "to_string",
|
|
1348
|
-
function: /* @__PURE__ */
|
|
1350
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1349
1351
|
return this.toStringSymbol();
|
|
1350
1352
|
}, "function"),
|
|
1351
1353
|
args: [
|
|
@@ -1358,7 +1360,7 @@ _NumberWithUnitSymbol._SUPPORTED_METHODS = {
|
|
|
1358
1360
|
returnType: "String"
|
|
1359
1361
|
},
|
|
1360
1362
|
to_number: {
|
|
1361
|
-
function: /* @__PURE__ */
|
|
1363
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1362
1364
|
return this.to_number();
|
|
1363
1365
|
}, "function"),
|
|
1364
1366
|
args: [],
|
|
@@ -1444,18 +1446,18 @@ var _DictionarySymbol = class _DictionarySymbol extends BaseSymbolType {
|
|
|
1444
1446
|
return obj;
|
|
1445
1447
|
}
|
|
1446
1448
|
};
|
|
1447
|
-
|
|
1449
|
+
chunkLEYHQJTL_cjs.__name(_DictionarySymbol, "DictionarySymbol");
|
|
1448
1450
|
_DictionarySymbol.type = "Dictionary";
|
|
1449
1451
|
_DictionarySymbol._SUPPORTED_METHODS = {
|
|
1450
1452
|
get: {
|
|
1451
|
-
function: /* @__PURE__ */
|
|
1453
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
|
|
1452
1454
|
return this.get(key);
|
|
1453
1455
|
}, "function"),
|
|
1454
1456
|
args: [{ name: "key", type: "String", optional: false }],
|
|
1455
1457
|
returnType: "any"
|
|
1456
1458
|
},
|
|
1457
1459
|
set: {
|
|
1458
|
-
function: /* @__PURE__ */
|
|
1460
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key, value) {
|
|
1459
1461
|
return this.set(key, value);
|
|
1460
1462
|
}, "function"),
|
|
1461
1463
|
args: [
|
|
@@ -1465,42 +1467,42 @@ _DictionarySymbol._SUPPORTED_METHODS = {
|
|
|
1465
1467
|
returnType: "Dictionary"
|
|
1466
1468
|
},
|
|
1467
1469
|
delete: {
|
|
1468
|
-
function: /* @__PURE__ */
|
|
1470
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
|
|
1469
1471
|
return this.delete(key);
|
|
1470
1472
|
}, "function"),
|
|
1471
1473
|
args: [{ name: "key", type: "String", optional: false }],
|
|
1472
1474
|
returnType: "Dictionary"
|
|
1473
1475
|
},
|
|
1474
1476
|
keys: {
|
|
1475
|
-
function: /* @__PURE__ */
|
|
1477
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1476
1478
|
return this.keys();
|
|
1477
1479
|
}, "function"),
|
|
1478
1480
|
args: [],
|
|
1479
1481
|
returnType: "List"
|
|
1480
1482
|
},
|
|
1481
1483
|
values: {
|
|
1482
|
-
function: /* @__PURE__ */
|
|
1484
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1483
1485
|
return this.values();
|
|
1484
1486
|
}, "function"),
|
|
1485
1487
|
args: [],
|
|
1486
1488
|
returnType: "List"
|
|
1487
1489
|
},
|
|
1488
1490
|
key_exists: {
|
|
1489
|
-
function: /* @__PURE__ */
|
|
1491
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
|
|
1490
1492
|
return this.keyExists(key);
|
|
1491
1493
|
}, "function"),
|
|
1492
1494
|
args: [{ name: "key", type: "String", optional: false }],
|
|
1493
1495
|
returnType: "Boolean"
|
|
1494
1496
|
},
|
|
1495
1497
|
length: {
|
|
1496
|
-
function: /* @__PURE__ */
|
|
1498
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1497
1499
|
return this.length();
|
|
1498
1500
|
}, "function"),
|
|
1499
1501
|
args: [],
|
|
1500
1502
|
returnType: "Number"
|
|
1501
1503
|
},
|
|
1502
1504
|
clear: {
|
|
1503
|
-
function: /* @__PURE__ */
|
|
1505
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1504
1506
|
return this.clear();
|
|
1505
1507
|
}, "function"),
|
|
1506
1508
|
args: [],
|
|
@@ -1708,18 +1710,18 @@ var _TokenSymbol = class _TokenSymbol extends BaseSymbolType {
|
|
|
1708
1710
|
return {};
|
|
1709
1711
|
}
|
|
1710
1712
|
};
|
|
1711
|
-
|
|
1713
|
+
chunkLEYHQJTL_cjs.__name(_TokenSymbol, "TokenSymbol");
|
|
1712
1714
|
_TokenSymbol.type = "Token";
|
|
1713
1715
|
_TokenSymbol._SUPPORTED_METHODS = {
|
|
1714
1716
|
get: {
|
|
1715
|
-
function: /* @__PURE__ */
|
|
1717
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(keyOrIndex) {
|
|
1716
1718
|
return this.get(keyOrIndex);
|
|
1717
1719
|
}, "function"),
|
|
1718
1720
|
args: [{ name: "keyOrIndex", type: "String|Number", optional: false }],
|
|
1719
1721
|
returnType: "any"
|
|
1720
1722
|
},
|
|
1721
1723
|
set: {
|
|
1722
|
-
function: /* @__PURE__ */
|
|
1724
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key, value) {
|
|
1723
1725
|
return this.set(key, value);
|
|
1724
1726
|
}, "function"),
|
|
1725
1727
|
args: [
|
|
@@ -1729,21 +1731,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
|
|
|
1729
1731
|
returnType: "Token"
|
|
1730
1732
|
},
|
|
1731
1733
|
keys: {
|
|
1732
|
-
function: /* @__PURE__ */
|
|
1734
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1733
1735
|
return this.keys();
|
|
1734
1736
|
}, "function"),
|
|
1735
1737
|
args: [],
|
|
1736
1738
|
returnType: "List"
|
|
1737
1739
|
},
|
|
1738
1740
|
values: {
|
|
1739
|
-
function: /* @__PURE__ */
|
|
1741
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1740
1742
|
return this.values();
|
|
1741
1743
|
}, "function"),
|
|
1742
1744
|
args: [],
|
|
1743
1745
|
returnType: "List"
|
|
1744
1746
|
},
|
|
1745
1747
|
length: {
|
|
1746
|
-
function: /* @__PURE__ */
|
|
1748
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1747
1749
|
return this.length();
|
|
1748
1750
|
}, "function"),
|
|
1749
1751
|
args: [],
|
|
@@ -1751,21 +1753,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
|
|
|
1751
1753
|
},
|
|
1752
1754
|
// List methods (when value is Array)
|
|
1753
1755
|
append: {
|
|
1754
|
-
function: /* @__PURE__ */
|
|
1756
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
|
|
1755
1757
|
return this.append(item);
|
|
1756
1758
|
}, "function"),
|
|
1757
1759
|
args: [{ name: "item", type: "any" }],
|
|
1758
1760
|
returnType: "Token"
|
|
1759
1761
|
},
|
|
1760
1762
|
extend: {
|
|
1761
|
-
function: /* @__PURE__ */
|
|
1763
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(...items) {
|
|
1762
1764
|
return this.extend(...items);
|
|
1763
1765
|
}, "function"),
|
|
1764
1766
|
args: [],
|
|
1765
1767
|
returnType: "Token"
|
|
1766
1768
|
},
|
|
1767
1769
|
insert: {
|
|
1768
|
-
function: /* @__PURE__ */
|
|
1770
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
|
|
1769
1771
|
return this.insert(index, item);
|
|
1770
1772
|
}, "function"),
|
|
1771
1773
|
args: [
|
|
@@ -1775,21 +1777,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
|
|
|
1775
1777
|
returnType: "Token"
|
|
1776
1778
|
},
|
|
1777
1779
|
delete: {
|
|
1778
|
-
function: /* @__PURE__ */
|
|
1780
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
|
|
1779
1781
|
return this.delete(index);
|
|
1780
1782
|
}, "function"),
|
|
1781
1783
|
args: [{ name: "index", type: "Number" }],
|
|
1782
1784
|
returnType: "Token"
|
|
1783
1785
|
},
|
|
1784
1786
|
index: {
|
|
1785
|
-
function: /* @__PURE__ */
|
|
1787
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
|
|
1786
1788
|
return this.index(item);
|
|
1787
1789
|
}, "function"),
|
|
1788
1790
|
args: [{ name: "item", type: "any" }],
|
|
1789
1791
|
returnType: "Number"
|
|
1790
1792
|
},
|
|
1791
1793
|
update: {
|
|
1792
|
-
function: /* @__PURE__ */
|
|
1794
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
|
|
1793
1795
|
return this.update(index, item);
|
|
1794
1796
|
}, "function"),
|
|
1795
1797
|
args: [
|
|
@@ -1799,7 +1801,7 @@ _TokenSymbol._SUPPORTED_METHODS = {
|
|
|
1799
1801
|
returnType: "Token"
|
|
1800
1802
|
},
|
|
1801
1803
|
join: {
|
|
1802
|
-
function: /* @__PURE__ */
|
|
1804
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(separator) {
|
|
1803
1805
|
return this.join(separator);
|
|
1804
1806
|
}, "function"),
|
|
1805
1807
|
args: [{ name: "separator", type: "String", optional: true }],
|
|
@@ -1984,12 +1986,12 @@ var _ColorSymbol = class _ColorSymbol extends BaseSymbolType {
|
|
|
1984
1986
|
};
|
|
1985
1987
|
}
|
|
1986
1988
|
};
|
|
1987
|
-
|
|
1989
|
+
chunkLEYHQJTL_cjs.__name(_ColorSymbol, "ColorSymbol");
|
|
1988
1990
|
_ColorSymbol.type = "Color";
|
|
1989
1991
|
_ColorSymbol._SUPPORTED_METHODS = {
|
|
1990
1992
|
to_string: {
|
|
1991
1993
|
name: "to_string",
|
|
1992
|
-
function: /* @__PURE__ */
|
|
1994
|
+
function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
|
|
1993
1995
|
return this.toStringSymbol();
|
|
1994
1996
|
}, "function"),
|
|
1995
1997
|
args: [],
|
|
@@ -1997,7 +1999,7 @@ _ColorSymbol._SUPPORTED_METHODS = {
|
|
|
1997
1999
|
}
|
|
1998
2000
|
};
|
|
1999
2001
|
var ColorSymbol = _ColorSymbol;
|
|
2000
|
-
var jsValueToSymbolType = /* @__PURE__ */
|
|
2002
|
+
var jsValueToSymbolType = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, config) => {
|
|
2001
2003
|
if (value instanceof BaseSymbolType) {
|
|
2002
2004
|
value.config = config;
|
|
2003
2005
|
return value;
|
|
@@ -2046,13 +2048,13 @@ function serializeInterpreterResult(value, options) {
|
|
|
2046
2048
|
if (isTokenscriptSymbol(value)) return value.toJs(options);
|
|
2047
2049
|
return value;
|
|
2048
2050
|
}
|
|
2049
|
-
|
|
2051
|
+
chunkLEYHQJTL_cjs.__name(serializeInterpreterResult, "serializeInterpreterResult");
|
|
2050
2052
|
function stringifyInterpreterResult(value) {
|
|
2051
2053
|
if (isString(value)) return value;
|
|
2052
2054
|
if (isTokenscriptSymbol(value)) return value.toString();
|
|
2053
2055
|
return String(value);
|
|
2054
2056
|
}
|
|
2055
|
-
|
|
2057
|
+
chunkLEYHQJTL_cjs.__name(stringifyInterpreterResult, "stringifyInterpreterResult");
|
|
2056
2058
|
|
|
2057
2059
|
exports.BaseSymbolType = BaseSymbolType;
|
|
2058
2060
|
exports.BooleanSymbol = BooleanSymbol;
|
|
@@ -2111,5 +2113,5 @@ exports.serializeInterpreterResult = serializeInterpreterResult;
|
|
|
2111
2113
|
exports.stringifyInterpreterResult = stringifyInterpreterResult;
|
|
2112
2114
|
exports.typeEquals = typeEquals;
|
|
2113
2115
|
exports.typeName = typeName;
|
|
2114
|
-
//# sourceMappingURL=chunk-
|
|
2115
|
-
//# sourceMappingURL=chunk-
|
|
2116
|
+
//# sourceMappingURL=chunk-LMGHS2NP.cjs.map
|
|
2117
|
+
//# sourceMappingURL=chunk-LMGHS2NP.cjs.map
|