babel-plugin-essor 0.0.16-beta.4 → 0.0.16-beta.5

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/index.cjs CHANGED
@@ -22,18 +22,18 @@ var __typeError = (msg) => {
22
22
  throw TypeError(msg);
23
23
  };
24
24
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25
- var __spreadValues = (a, b) => {
26
- for (var prop in b || (b = {}))
27
- if (__hasOwnProp.call(b, prop))
28
- __defNormalProp(a, prop, b[prop]);
25
+ var __spreadValues = (a2, b2) => {
26
+ for (var prop in b2 || (b2 = {}))
27
+ if (__hasOwnProp.call(b2, prop))
28
+ __defNormalProp(a2, prop, b2[prop]);
29
29
  if (__getOwnPropSymbols)
30
- for (var prop of __getOwnPropSymbols(b)) {
31
- if (__propIsEnum.call(b, prop))
32
- __defNormalProp(a, prop, b[prop]);
30
+ for (var prop of __getOwnPropSymbols(b2)) {
31
+ if (__propIsEnum.call(b2, prop))
32
+ __defNormalProp(a2, prop, b2[prop]);
33
33
  }
34
- return a;
34
+ return a2;
35
35
  };
36
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
36
+ var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
37
37
  var __esm = (fn, res) => function __init() {
38
38
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
39
39
  };
@@ -64,20 +64,20 @@ var __yieldStar = (value) => {
64
64
  var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
65
65
  if (obj == null) {
66
66
  obj = value[__knownSymbol("iterator")]();
67
- method = (k) => it[k] = (x) => obj[k](x);
67
+ method = (k2) => it[k2] = (x) => obj[k2](x);
68
68
  } else {
69
69
  obj = obj.call(value);
70
- method = (k) => it[k] = (v) => {
70
+ method = (k2) => it[k2] = (v) => {
71
71
  if (isAwait) {
72
72
  isAwait = false;
73
- if (k === "throw") throw v;
73
+ if (k2 === "throw") throw v;
74
74
  return v;
75
75
  }
76
76
  isAwait = true;
77
77
  return {
78
78
  done: false,
79
79
  value: new __await(new Promise((resolve) => {
80
- var x = obj[k](v);
80
+ var x = obj[k2](v);
81
81
  if (!(x instanceof Object)) __typeError("Object expected");
82
82
  resolve(x);
83
83
  }), 1)
@@ -150,10 +150,10 @@ var require_sourcemap_codec_umd = __commonJS({
150
150
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
151
151
  var intToChar = new Uint8Array(64);
152
152
  var charToInt = new Uint8Array(128);
153
- for (let i = 0; i < chars.length; i++) {
154
- const c = chars.charCodeAt(i);
155
- intToChar[i] = c;
156
- charToInt[c] = i;
153
+ for (let i2 = 0; i2 < chars.length; i2++) {
154
+ const c = chars.charCodeAt(i2);
155
+ intToChar[i2] = c;
156
+ charToInt[c] = i2;
157
157
  }
158
158
  function decodeInteger(reader, relative) {
159
159
  let value = 0;
@@ -196,8 +196,8 @@ var require_sourcemap_codec_umd = __commonJS({
196
196
  } : {
197
197
  decode(buf) {
198
198
  let out = "";
199
- for (let i = 0; i < buf.length; i++) {
200
- out += String.fromCharCode(buf[i]);
199
+ for (let i2 = 0; i2 < buf.length; i2++) {
200
+ out += String.fromCharCode(buf[i2]);
201
201
  }
202
202
  return out;
203
203
  }
@@ -274,8 +274,8 @@ var require_sourcemap_codec_umd = __commonJS({
274
274
  }
275
275
  function encodeOriginalScopes(scopes) {
276
276
  const writer = new StringWriter();
277
- for (let i = 0; i < scopes.length; ) {
278
- i = _encodeOriginalScopes(scopes, i, writer, [0]);
277
+ for (let i2 = 0; i2 < scopes.length; ) {
278
+ i2 = _encodeOriginalScopes(scopes, i2, writer, [0]);
279
279
  }
280
280
  return writer.flush();
281
281
  }
@@ -370,7 +370,7 @@ var require_sourcemap_codec_umd = __commonJS({
370
370
  let expressionRanges;
371
371
  if (expressionsCount < -1) {
372
372
  expressionRanges = [[decodeInteger(reader, 0)]];
373
- for (let i = -1; i > expressionsCount; i--) {
373
+ for (let i2 = -1; i2 > expressionsCount; i2--) {
374
374
  const prevBl = bindingLine;
375
375
  bindingLine = decodeInteger(reader, bindingLine);
376
376
  bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);
@@ -395,8 +395,8 @@ var require_sourcemap_codec_umd = __commonJS({
395
395
  function encodeGeneratedRanges(ranges) {
396
396
  if (ranges.length === 0) return "";
397
397
  const writer = new StringWriter();
398
- for (let i = 0; i < ranges.length; ) {
399
- i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);
398
+ for (let i2 = 0; i2 < ranges.length; ) {
399
+ i2 = _encodeGeneratedRanges(ranges, i2, writer, [0, 0, 0, 0, 0, 0, 0]);
400
400
  }
401
401
  return writer.flush();
402
402
  }
@@ -448,8 +448,8 @@ var require_sourcemap_codec_umd = __commonJS({
448
448
  encodeInteger(writer, expression, 0);
449
449
  let bindingStartLine = startLine;
450
450
  let bindingStartColumn = startColumn;
451
- for (let i = 1; i < binding.length; i++) {
452
- const expRange = binding[i];
451
+ for (let i2 = 1; i2 < binding.length; i2++) {
452
+ const expRange = binding[i2];
453
453
  bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);
454
454
  bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);
455
455
  encodeInteger(writer, expRange[0], 0);
@@ -524,8 +524,8 @@ var require_sourcemap_codec_umd = __commonJS({
524
524
  function sort(line) {
525
525
  line.sort(sortComparator);
526
526
  }
527
- function sortComparator(a, b) {
528
- return a[0] - b[0];
527
+ function sortComparator(a2, b2) {
528
+ return a2[0] - b2[0];
529
529
  }
530
530
  function encode(decoded) {
531
531
  const writer = new StringWriter();
@@ -533,9 +533,9 @@ var require_sourcemap_codec_umd = __commonJS({
533
533
  let sourceLine = 0;
534
534
  let sourceColumn = 0;
535
535
  let namesIndex = 0;
536
- for (let i = 0; i < decoded.length; i++) {
537
- const line = decoded[i];
538
- if (i > 0) writer.write(semicolon);
536
+ for (let i2 = 0; i2 < decoded.length; i2++) {
537
+ const line = decoded[i2];
538
+ if (i2 > 0) writer.write(semicolon);
539
539
  if (line.length === 0) continue;
540
540
  let genColumn = 0;
541
541
  for (let j = 0; j < line.length; j++) {
@@ -646,8 +646,8 @@ var require_resolve_uri_umd = __commonJS({
646
646
  let pointer = 1;
647
647
  let positive = 0;
648
648
  let addTrailingSlash = false;
649
- for (let i = 1; i < pieces.length; i++) {
650
- const piece = pieces[i];
649
+ for (let i2 = 1; i2 < pieces.length; i2++) {
650
+ const piece = pieces[i2];
651
651
  if (!piece) {
652
652
  addTrailingSlash = true;
653
653
  continue;
@@ -669,8 +669,8 @@ var require_resolve_uri_umd = __commonJS({
669
669
  positive++;
670
670
  }
671
671
  let path2 = "";
672
- for (let i = 1; i < pointer; i++) {
673
- path2 += "/" + pieces[i];
672
+ for (let i2 = 1; i2 < pointer; i2++) {
673
+ path2 += "/" + pieces[i2];
674
674
  }
675
675
  if (!path2 || addTrailingSlash && !path2.endsWith("/..")) {
676
676
  path2 += "/";
@@ -842,14 +842,14 @@ var require_trace_mapping_umd = __commonJS({
842
842
  const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
843
843
  if (unsortedIndex === mappings.length) return mappings;
844
844
  if (!owned) mappings = mappings.slice();
845
- for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
846
- mappings[i] = sortSegments(mappings[i], owned);
845
+ for (let i2 = unsortedIndex; i2 < mappings.length; i2 = nextUnsortedSegmentLine(mappings, i2 + 1)) {
846
+ mappings[i2] = sortSegments(mappings[i2], owned);
847
847
  }
848
848
  return mappings;
849
849
  }
850
850
  function nextUnsortedSegmentLine(mappings, start) {
851
- for (let i = start; i < mappings.length; i++) {
852
- if (!isSorted(mappings[i])) return i;
851
+ for (let i2 = start; i2 < mappings.length; i2++) {
852
+ if (!isSorted(mappings[i2])) return i2;
853
853
  }
854
854
  return mappings.length;
855
855
  }
@@ -865,13 +865,13 @@ var require_trace_mapping_umd = __commonJS({
865
865
  if (!owned) line = line.slice();
866
866
  return line.sort(sortComparator);
867
867
  }
868
- function sortComparator(a, b) {
869
- return a[COLUMN] - b[COLUMN];
868
+ function sortComparator(a2, b2) {
869
+ return a2[COLUMN] - b2[COLUMN];
870
870
  }
871
871
  function buildBySources(decoded, memos) {
872
872
  const sources = memos.map(() => []);
873
- for (let i = 0; i < decoded.length; i++) {
874
- const line = decoded[i];
873
+ for (let i2 = 0; i2 < decoded.length; i2++) {
874
+ const line = decoded[i2];
875
875
  for (let j = 0; j < line.length; j++) {
876
876
  const seg = line[j];
877
877
  if (seg.length === 1) continue;
@@ -880,11 +880,11 @@ var require_trace_mapping_umd = __commonJS({
880
880
  const sourceColumn = seg[SOURCE_COLUMN];
881
881
  const source = sources[sourceIndex2];
882
882
  const segs = source[sourceLine] || (source[sourceLine] = []);
883
- segs.push([sourceColumn, i, seg[COLUMN]]);
883
+ segs.push([sourceColumn, i2, seg[COLUMN]]);
884
884
  }
885
885
  }
886
- for (let i = 0; i < sources.length; i++) {
887
- const source = sources[i];
886
+ for (let i2 = 0; i2 < sources.length; i2++) {
887
+ const source = sources[i2];
888
888
  for (let j = 0; j < source.length; j++) {
889
889
  const line = source[j];
890
890
  if (line) line.sort(sortComparator);
@@ -911,14 +911,14 @@ var require_trace_mapping_umd = __commonJS({
911
911
  return low - 1;
912
912
  }
913
913
  function upperBound(haystack, needle, index) {
914
- for (let i = index + 1; i < haystack.length; index = i++) {
915
- if (haystack[i][COLUMN] !== needle) break;
914
+ for (let i2 = index + 1; i2 < haystack.length; index = i2++) {
915
+ if (haystack[i2][COLUMN] !== needle) break;
916
916
  }
917
917
  return index;
918
918
  }
919
919
  function lowerBound(haystack, needle, index) {
920
- for (let i = index - 1; i >= 0; index = i--) {
921
- if (haystack[i][COLUMN] !== needle) break;
920
+ for (let i2 = index - 1; i2 >= 0; index = i2--) {
921
+ if (haystack[i2][COLUMN] !== needle) break;
922
922
  }
923
923
  return index;
924
924
  }
@@ -987,12 +987,12 @@ var require_trace_mapping_umd = __commonJS({
987
987
  };
988
988
  function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
989
989
  const { sections } = input;
990
- for (let i = 0; i < sections.length; i++) {
991
- const { map, offset } = sections[i];
990
+ for (let i2 = 0; i2 < sections.length; i2++) {
991
+ const { map, offset } = sections[i2];
992
992
  let sl = stopLine;
993
993
  let sc = stopColumn;
994
- if (i + 1 < sections.length) {
995
- const nextOffset = sections[i + 1].offset;
994
+ if (i2 + 1 < sections.length) {
995
+ const nextOffset = sections[i2 + 1].offset;
996
996
  sl = Math.min(stopLine, lineOffset + nextOffset.line);
997
997
  if (sl === stopLine) {
998
998
  sc = Math.min(stopColumn, columnOffset + nextOffset.column);
@@ -1026,14 +1026,14 @@ var require_trace_mapping_umd = __commonJS({
1026
1026
  append(sources, resolvedSources);
1027
1027
  append(names, map.names);
1028
1028
  if (contents) append(sourcesContent, contents);
1029
- else for (let i = 0; i < resolvedSources.length; i++) sourcesContent.push(null);
1030
- if (ignores) for (let i = 0; i < ignores.length; i++) ignoreList.push(ignores[i] + sourcesOffset);
1031
- for (let i = 0; i < decoded.length; i++) {
1032
- const lineI = lineOffset + i;
1029
+ else for (let i2 = 0; i2 < resolvedSources.length; i2++) sourcesContent.push(null);
1030
+ if (ignores) for (let i2 = 0; i2 < ignores.length; i2++) ignoreList.push(ignores[i2] + sourcesOffset);
1031
+ for (let i2 = 0; i2 < decoded.length; i2++) {
1032
+ const lineI = lineOffset + i2;
1033
1033
  if (lineI > stopLine) return;
1034
1034
  const out = getLine(mappings, lineI);
1035
- const cOffset = i === 0 ? columnOffset : 0;
1036
- const line = decoded[i];
1035
+ const cOffset = i2 === 0 ? columnOffset : 0;
1036
+ const line = decoded[i2];
1037
1037
  for (let j = 0; j < line.length; j++) {
1038
1038
  const seg = line[j];
1039
1039
  const column = cOffset + seg[COLUMN];
@@ -1052,10 +1052,10 @@ var require_trace_mapping_umd = __commonJS({
1052
1052
  }
1053
1053
  }
1054
1054
  function append(arr, other) {
1055
- for (let i = 0; i < other.length; i++) arr.push(other[i]);
1055
+ for (let i2 = 0; i2 < other.length; i2++) arr.push(other[i2]);
1056
1056
  }
1057
1057
  function getLine(arr, index) {
1058
- for (let i = arr.length; i <= index; i++) arr[i] = [];
1058
+ for (let i2 = arr.length; i2 <= index; i2++) arr[i2] = [];
1059
1059
  return arr[index];
1060
1060
  }
1061
1061
  var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
@@ -1064,8 +1064,8 @@ var require_trace_mapping_umd = __commonJS({
1064
1064
  var GREATEST_LOWER_BOUND = 1;
1065
1065
  var TraceMap = class {
1066
1066
  constructor(map, mapUrl) {
1067
- const isString2 = typeof map === "string";
1068
- if (!isString2 && map._decodedMemo) return map;
1067
+ const isString = typeof map === "string";
1068
+ if (!isString && map._decodedMemo) return map;
1069
1069
  const parsed = parse(map);
1070
1070
  const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
1071
1071
  this.version = version;
@@ -1083,7 +1083,7 @@ var require_trace_mapping_umd = __commonJS({
1083
1083
  this._decoded = void 0;
1084
1084
  } else if (Array.isArray(mappings)) {
1085
1085
  this._encoded = void 0;
1086
- this._decoded = maybeSort(mappings, isString2);
1086
+ this._decoded = maybeSort(mappings, isString);
1087
1087
  } else if (parsed.sections) {
1088
1088
  throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`);
1089
1089
  } else {
@@ -1155,11 +1155,11 @@ var require_trace_mapping_umd = __commonJS({
1155
1155
  function eachMapping(map, cb) {
1156
1156
  const decoded = decodedMappings(map);
1157
1157
  const { names, resolvedSources } = map;
1158
- for (let i = 0; i < decoded.length; i++) {
1159
- const line = decoded[i];
1158
+ for (let i2 = 0; i2 < decoded.length; i2++) {
1159
+ const line = decoded[i2];
1160
1160
  for (let j = 0; j < line.length; j++) {
1161
1161
  const seg = line[j];
1162
- const generatedLine = i + 1;
1162
+ const generatedLine = i2 + 1;
1163
1163
  const generatedColumn = seg[0];
1164
1164
  let source = null;
1165
1165
  let originalLine = null;
@@ -1376,10 +1376,10 @@ var require_gen_mapping_umd = __commonJS({
1376
1376
  const index = get(setarr, key);
1377
1377
  if (index === void 0) return;
1378
1378
  const { array, _indexes: indexes } = cast(setarr);
1379
- for (let i = index + 1; i < array.length; i++) {
1380
- const k = array[i];
1381
- array[i - 1] = k;
1382
- indexes[k]--;
1379
+ for (let i2 = index + 1; i2 < array.length; i2++) {
1380
+ const k2 = array[i2];
1381
+ array[i2 - 1] = k2;
1382
+ indexes[k2]--;
1383
1383
  }
1384
1384
  indexes[key] = void 0;
1385
1385
  array.pop();
@@ -1504,11 +1504,11 @@ var require_gen_mapping_umd = __commonJS({
1504
1504
  function allMappings(map) {
1505
1505
  const out = [];
1506
1506
  const { _mappings: mappings, _sources: sources, _names: names } = cast2(map);
1507
- for (let i = 0; i < mappings.length; i++) {
1508
- const line = mappings[i];
1507
+ for (let i2 = 0; i2 < mappings.length; i2++) {
1508
+ const line = mappings[i2];
1509
1509
  for (let j = 0; j < line.length; j++) {
1510
1510
  const seg = line[j];
1511
- const generated = { line: i + 1, column: seg[COLUMN] };
1511
+ const generated = { line: i2 + 1, column: seg[COLUMN] };
1512
1512
  let source = void 0;
1513
1513
  let original = void 0;
1514
1514
  let name = void 0;
@@ -1549,35 +1549,35 @@ var require_gen_mapping_umd = __commonJS({
1549
1549
  );
1550
1550
  }
1551
1551
  function getIndex(arr, index) {
1552
- for (let i = arr.length; i <= index; i++) {
1553
- arr[i] = [];
1552
+ for (let i2 = arr.length; i2 <= index; i2++) {
1553
+ arr[i2] = [];
1554
1554
  }
1555
1555
  return arr[index];
1556
1556
  }
1557
1557
  function getColumnIndex(line, genColumn) {
1558
1558
  let index = line.length;
1559
- for (let i = index - 1; i >= 0; index = i--) {
1560
- const current = line[i];
1559
+ for (let i2 = index - 1; i2 >= 0; index = i2--) {
1560
+ const current = line[i2];
1561
1561
  if (genColumn >= current[COLUMN]) break;
1562
1562
  }
1563
1563
  return index;
1564
1564
  }
1565
1565
  function insert(array, index, value) {
1566
- for (let i = array.length; i > index; i--) {
1567
- array[i] = array[i - 1];
1566
+ for (let i2 = array.length; i2 > index; i2--) {
1567
+ array[i2] = array[i2 - 1];
1568
1568
  }
1569
1569
  array[index] = value;
1570
1570
  }
1571
1571
  function removeEmptyFinalLines(mappings) {
1572
1572
  const { length } = mappings;
1573
1573
  let len = length;
1574
- for (let i = len - 1; i >= 0; len = i, i--) {
1575
- if (mappings[i].length > 0) break;
1574
+ for (let i2 = len - 1; i2 >= 0; len = i2, i2--) {
1575
+ if (mappings[i2].length > 0) break;
1576
1576
  }
1577
1577
  if (len < length) mappings.length = len;
1578
1578
  }
1579
1579
  function putAll(setarr, array) {
1580
- for (let i = 0; i < array.length; i++) put(setarr, array[i]);
1580
+ for (let i2 = 0; i2 < array.length; i2++) put(setarr, array[i2]);
1581
1581
  }
1582
1582
  function skipSourceless(line, index) {
1583
1583
  if (index === 0) return true;
@@ -1650,9 +1650,9 @@ var require_source_map = __commonJS({
1650
1650
  this._inputMap = new _traceMapping.TraceMap(opts.inputSourceMap);
1651
1651
  const resolvedSources = this._inputMap.resolvedSources;
1652
1652
  if (resolvedSources.length) {
1653
- for (let i = 0; i < resolvedSources.length; i++) {
1653
+ for (let i2 = 0; i2 < resolvedSources.length; i2++) {
1654
1654
  var _this$_inputMap$sourc;
1655
- (0, _genMapping.setSourceContent)(map, resolvedSources[i], (_this$_inputMap$sourc = this._inputMap.sourcesContent) == null ? void 0 : _this$_inputMap$sourc[i]);
1655
+ (0, _genMapping.setSourceContent)(map, resolvedSources[i2], (_this$_inputMap$sourc = this._inputMap.sourcesContent) == null ? void 0 : _this$_inputMap$sourc[i2]);
1656
1656
  }
1657
1657
  }
1658
1658
  }
@@ -1719,8 +1719,8 @@ var require_buffer = __commonJS({
1719
1719
  });
1720
1720
  exports.default = void 0;
1721
1721
  var spaceIndents = [];
1722
- for (let i = 0; i < 32; i++) {
1723
- spaceIndents.push(" ".repeat(i * 2));
1722
+ for (let i2 = 0; i2 < 32; i2++) {
1723
+ spaceIndents.push(" ".repeat(i2 * 2));
1724
1724
  }
1725
1725
  var Buffer2 = class {
1726
1726
  constructor(map, indentChar) {
@@ -1871,22 +1871,22 @@ var require_buffer = __commonJS({
1871
1871
  sourcePos.identifierName = void 0;
1872
1872
  sourcePos.identifierNamePos = void 0;
1873
1873
  }
1874
- let i = str.indexOf("\n");
1874
+ let i2 = str.indexOf("\n");
1875
1875
  let last = 0;
1876
- if (hasMap && i !== 0) {
1876
+ if (hasMap && i2 !== 0) {
1877
1877
  this._map.mark(position, line, column, identifierName, identifierNamePos, filename);
1878
1878
  }
1879
- while (i !== -1) {
1879
+ while (i2 !== -1) {
1880
1880
  position.line++;
1881
1881
  position.column = 0;
1882
- last = i + 1;
1882
+ last = i2 + 1;
1883
1883
  if (last < len && line !== void 0) {
1884
1884
  line++;
1885
1885
  if (hasMap) {
1886
1886
  this._map.mark(position, line, 0, void 0, void 0, filename);
1887
1887
  }
1888
1888
  }
1889
- i = str.indexOf("\n", last);
1889
+ i2 = str.indexOf("\n", last);
1890
1890
  }
1891
1891
  position.column += len - last;
1892
1892
  }
@@ -4849,7 +4849,7 @@ var require_matchesPattern = __commonJS({
4849
4849
  nodes.push(node);
4850
4850
  if (nodes.length < parts.length) return false;
4851
4851
  if (!allowPartial && nodes.length > parts.length) return false;
4852
- for (let i = 0, j = nodes.length - 1; i < parts.length; i++, j--) {
4852
+ for (let i2 = 0, j = nodes.length - 1; i2 < parts.length; i2++, j--) {
4853
4853
  const node2 = nodes[j];
4854
4854
  let value;
4855
4855
  if ((0, _index.isIdentifier)(node2)) {
@@ -4865,7 +4865,7 @@ var require_matchesPattern = __commonJS({
4865
4865
  } else {
4866
4866
  return false;
4867
4867
  }
4868
- if (parts[i] !== value) return false;
4868
+ if (parts[i2] !== value) return false;
4869
4869
  }
4870
4870
  return true;
4871
4871
  }
@@ -5003,10 +5003,10 @@ var require_identifier = __commonJS({
5003
5003
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
5004
5004
  function isInAstralSet(code, set) {
5005
5005
  let pos = 65536;
5006
- for (let i = 0, length = set.length; i < length; i += 2) {
5007
- pos += set[i];
5006
+ for (let i2 = 0, length = set.length; i2 < length; i2 += 2) {
5007
+ pos += set[i2];
5008
5008
  if (pos > code) return false;
5009
- pos += set[i + 1];
5009
+ pos += set[i2 + 1];
5010
5010
  if (pos >= code) return true;
5011
5011
  }
5012
5012
  return false;
@@ -5035,10 +5035,10 @@ var require_identifier = __commonJS({
5035
5035
  }
5036
5036
  function isIdentifierName(name) {
5037
5037
  let isFirst = true;
5038
- for (let i = 0; i < name.length; i++) {
5039
- let cp = name.charCodeAt(i);
5040
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
5041
- const trail = name.charCodeAt(++i);
5038
+ for (let i2 = 0; i2 < name.length; i2++) {
5039
+ let cp = name.charCodeAt(i2);
5040
+ if ((cp & 64512) === 55296 && i2 + 1 < name.length) {
5041
+ const trail = name.charCodeAt(++i2);
5042
5042
  if ((trail & 64512) === 56320) {
5043
5043
  cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
5044
5044
  }
@@ -5378,7 +5378,7 @@ var require_lib2 = __commonJS({
5378
5378
  const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
5379
5379
  let invalid = false;
5380
5380
  let total = 0;
5381
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
5381
+ for (let i2 = 0, e = len == null ? Infinity : len; i2 < e; ++i2) {
5382
5382
  const code = input.charCodeAt(pos);
5383
5383
  let val;
5384
5384
  if (code === 95 && allowNumSeparator !== "bail") {
@@ -5584,14 +5584,14 @@ var require_utils = __commonJS({
5584
5584
  };
5585
5585
  function validator(node, key, val) {
5586
5586
  if (!Array.isArray(val)) return;
5587
- let i = 0;
5587
+ let i2 = 0;
5588
5588
  const subKey = {
5589
5589
  toString() {
5590
- return `${key}[${i}]`;
5590
+ return `${key}[${i2}]`;
5591
5591
  }
5592
5592
  };
5593
- for (; i < val.length; i++) {
5594
- const v = val[i];
5593
+ for (; i2 < val.length; i2++) {
5594
+ const v = val[i2];
5595
5595
  callback(node, subKey, v);
5596
5596
  childValidator(node, subKey, v);
5597
5597
  }
@@ -5667,12 +5667,12 @@ var require_utils = __commonJS({
5667
5667
  for (const property of keys) {
5668
5668
  try {
5669
5669
  (0, _validate.validateField)(node, property, val[property], shape[property]);
5670
- } catch (error2) {
5671
- if (error2 instanceof TypeError) {
5672
- errors.push(error2.message);
5670
+ } catch (error) {
5671
+ if (error instanceof TypeError) {
5672
+ errors.push(error.message);
5673
5673
  continue;
5674
5674
  }
5675
- throw error2;
5675
+ throw error;
5676
5676
  }
5677
5677
  }
5678
5678
  if (errors.length) {
@@ -5731,7 +5731,7 @@ ${errors.join("\n")}`);
5731
5731
  defined != null ? defined : defined = [];
5732
5732
  opts.aliases = defined;
5733
5733
  }
5734
- const additional = aliases.filter((a) => !defined.includes(a));
5734
+ const additional = aliases.filter((a2) => !defined.includes(a2));
5735
5735
  defined.unshift(...additional);
5736
5736
  defineType(type, opts);
5737
5737
  };
@@ -5761,9 +5761,9 @@ ${errors.join("\n")}`);
5761
5761
  const visitor = opts.visitor || inherits.visitor || [];
5762
5762
  const aliases = opts.aliases || inherits.aliases || [];
5763
5763
  const builder = opts.builder || inherits.builder || opts.visitor || [];
5764
- for (const k of Object.keys(opts)) {
5765
- if (!validTypeOpts.has(k)) {
5766
- throw new Error(`Unknown type option "${k}" on ${type}`);
5764
+ for (const k2 of Object.keys(opts)) {
5765
+ if (!validTypeOpts.has(k2)) {
5766
+ throw new Error(`Unknown type option "${k2}" on ${type}`);
5767
5767
  }
5768
5768
  }
5769
5769
  if (opts.deprecatedAlias) {
@@ -5782,9 +5782,9 @@ ${errors.join("\n")}`);
5782
5782
  } else if (!field.validate && field.default != null) {
5783
5783
  field.validate = assertValueType(getType(field.default));
5784
5784
  }
5785
- for (const k of Object.keys(field)) {
5786
- if (!validFieldKeys.has(k)) {
5787
- throw new Error(`Unknown field key "${k}" on ${type}.${key}`);
5785
+ for (const k2 of Object.keys(field)) {
5786
+ if (!validFieldKeys.has(k2)) {
5787
+ throw new Error(`Unknown field key "${k2}" on ${type}.${key}`);
5788
5788
  }
5789
5789
  }
5790
5790
  }
@@ -7219,7 +7219,7 @@ var require_core = __commonJS({
7219
7219
  }), function templateElementCookedValidator(node) {
7220
7220
  const raw = node.value.raw;
7221
7221
  let unterminatedCalled = false;
7222
- const error2 = () => {
7222
+ const error = () => {
7223
7223
  throw new Error("Internal @babel/types error.");
7224
7224
  };
7225
7225
  const {
@@ -7229,12 +7229,12 @@ var require_core = __commonJS({
7229
7229
  unterminated() {
7230
7230
  unterminatedCalled = true;
7231
7231
  },
7232
- strictNumericEscape: error2,
7233
- invalidEscapeSequence: error2,
7234
- numericSeparatorInEscapeSequence: error2,
7235
- unexpectedNumericSeparator: error2,
7236
- invalidDigit: error2,
7237
- invalidCodePoint: error2
7232
+ strictNumericEscape: error,
7233
+ invalidEscapeSequence: error,
7234
+ numericSeparatorInEscapeSequence: error,
7235
+ unexpectedNumericSeparator: error,
7236
+ invalidDigit: error,
7237
+ invalidCodePoint: error
7238
7238
  });
7239
7239
  if (!unterminatedCalled) throw new Error("Invalid raw");
7240
7240
  node.value.cooked = firstInvalidLoc ? null : str;
@@ -9207,7 +9207,7 @@ var require_lowercase = __commonJS({
9207
9207
  exports.mixedTypeAnnotation = mixedTypeAnnotation;
9208
9208
  exports.moduleExpression = moduleExpression;
9209
9209
  exports.newExpression = newExpression;
9210
- exports.noop = noop2;
9210
+ exports.noop = noop;
9211
9211
  exports.nullLiteral = nullLiteral;
9212
9212
  exports.nullLiteralTypeAnnotation = nullLiteralTypeAnnotation;
9213
9213
  exports.nullableTypeAnnotation = nullableTypeAnnotation;
@@ -11177,7 +11177,7 @@ var require_lowercase = __commonJS({
11177
11177
  type: "JSXClosingFragment"
11178
11178
  };
11179
11179
  }
11180
- function noop2() {
11180
+ function noop() {
11181
11181
  return {
11182
11182
  type: "Noop"
11183
11183
  };
@@ -12001,10 +12001,10 @@ var require_uppercase = __commonJS({
12001
12001
  exports.JSXIdentifier = exports.JSXFragment = exports.JSXExpressionContainer = exports.JSXEmptyExpression = exports.JSXElement = exports.JSXClosingFragment = exports.JSXClosingElement = exports.JSXAttribute = exports.IntersectionTypeAnnotation = exports.InterpreterDirective = exports.InterfaceTypeAnnotation = exports.InterfaceExtends = exports.InterfaceDeclaration = exports.InferredPredicate = exports.IndexedAccessType = exports.ImportSpecifier = exports.ImportNamespaceSpecifier = exports.ImportExpression = exports.ImportDefaultSpecifier = exports.ImportDeclaration = exports.ImportAttribute = exports.Import = exports.IfStatement = exports.Identifier = exports.GenericTypeAnnotation = exports.FunctionTypeParam = exports.FunctionTypeAnnotation = exports.FunctionExpression = exports.FunctionDeclaration = exports.ForStatement = exports.ForOfStatement = exports.ForInStatement = exports.File = exports.ExpressionStatement = exports.ExportSpecifier = exports.ExportNamespaceSpecifier = exports.ExportNamedDeclaration = exports.ExportDefaultSpecifier = exports.ExportDefaultDeclaration = exports.ExportAllDeclaration = exports.ExistsTypeAnnotation = exports.EnumSymbolBody = exports.EnumStringMember = exports.EnumStringBody = exports.EnumNumberMember = exports.EnumNumberBody = exports.EnumDefaultedMember = exports.EnumDeclaration = exports.EnumBooleanMember = exports.EnumBooleanBody = exports.EmptyTypeAnnotation = exports.EmptyStatement = exports.DoWhileStatement = exports.DoExpression = exports.DirectiveLiteral = exports.Directive = exports.Decorator = exports.DeclaredPredicate = exports.DeclareVariable = exports.DeclareTypeAlias = exports.DeclareOpaqueType = exports.DeclareModuleExports = exports.DeclareModule = exports.DeclareInterface = exports.DeclareFunction = exports.DeclareExportDeclaration = exports.DeclareExportAllDeclaration = exports.DeclareClass = exports.DecimalLiteral = exports.DebuggerStatement = exports.ContinueStatement = exports.ConditionalExpression = exports.ClassProperty = exports.ClassPrivateProperty = exports.ClassPrivateMethod = exports.ClassMethod = exports.ClassImplements = exports.ClassExpression = exports.ClassDeclaration = exports.ClassBody = exports.ClassAccessorProperty = exports.CatchClause = exports.CallExpression = exports.BreakStatement = exports.BooleanTypeAnnotation = exports.BooleanLiteralTypeAnnotation = exports.BooleanLiteral = exports.BlockStatement = exports.BindExpression = exports.BinaryExpression = exports.BigIntLiteral = exports.AwaitExpression = exports.AssignmentPattern = exports.AssignmentExpression = exports.ArrowFunctionExpression = exports.ArrayTypeAnnotation = exports.ArrayPattern = exports.ArrayExpression = exports.ArgumentPlaceholder = exports.AnyTypeAnnotation = void 0;
12002
12002
  exports.TSNumberKeyword = exports.TSNullKeyword = exports.TSNonNullExpression = exports.TSNeverKeyword = exports.TSNamespaceExportDeclaration = exports.TSNamedTupleMember = exports.TSModuleDeclaration = exports.TSModuleBlock = exports.TSMethodSignature = exports.TSMappedType = exports.TSLiteralType = exports.TSIntrinsicKeyword = exports.TSIntersectionType = exports.TSInterfaceDeclaration = exports.TSInterfaceBody = exports.TSInstantiationExpression = exports.TSInferType = exports.TSIndexedAccessType = exports.TSIndexSignature = exports.TSImportType = exports.TSImportEqualsDeclaration = exports.TSFunctionType = exports.TSExternalModuleReference = exports.TSExpressionWithTypeArguments = exports.TSExportAssignment = exports.TSEnumMember = exports.TSEnumDeclaration = exports.TSEnumBody = exports.TSDeclareMethod = exports.TSDeclareFunction = exports.TSConstructorType = exports.TSConstructSignatureDeclaration = exports.TSConditionalType = exports.TSCallSignatureDeclaration = exports.TSBooleanKeyword = exports.TSBigIntKeyword = exports.TSAsExpression = exports.TSArrayType = exports.TSAnyKeyword = exports.SymbolTypeAnnotation = exports.SwitchStatement = exports.SwitchCase = exports.Super = exports.StringTypeAnnotation = exports.StringLiteralTypeAnnotation = exports.StringLiteral = exports.StaticBlock = exports.SpreadProperty = exports.SpreadElement = exports.SequenceExpression = exports.ReturnStatement = exports.RestProperty = exports.RestElement = exports.RegexLiteral = exports.RegExpLiteral = exports.RecordExpression = exports.QualifiedTypeIdentifier = exports.Program = exports.PrivateName = exports.Placeholder = exports.PipelineTopicExpression = exports.PipelinePrimaryTopicReference = exports.PipelineBareFunction = exports.ParenthesizedExpression = exports.OptionalMemberExpression = exports.OptionalIndexedAccessType = exports.OptionalCallExpression = exports.OpaqueType = exports.ObjectTypeSpreadProperty = exports.ObjectTypeProperty = exports.ObjectTypeInternalSlot = exports.ObjectTypeIndexer = exports.ObjectTypeCallProperty = exports.ObjectTypeAnnotation = exports.ObjectProperty = exports.ObjectPattern = exports.ObjectMethod = exports.ObjectExpression = exports.NumericLiteral = exports.NumberTypeAnnotation = exports.NumberLiteralTypeAnnotation = exports.NumberLiteral = exports.NullableTypeAnnotation = exports.NullLiteralTypeAnnotation = exports.NullLiteral = exports.Noop = exports.NewExpression = exports.ModuleExpression = exports.MixedTypeAnnotation = exports.MetaProperty = exports.MemberExpression = exports.LogicalExpression = exports.LabeledStatement = exports.JSXText = exports.JSXSpreadChild = exports.JSXSpreadAttribute = exports.JSXOpeningFragment = exports.JSXOpeningElement = exports.JSXNamespacedName = exports.JSXMemberExpression = void 0;
12003
12003
  exports.YieldExpression = exports.WithStatement = exports.WhileStatement = exports.VoidTypeAnnotation = exports.VoidPattern = exports.Variance = exports.VariableDeclarator = exports.VariableDeclaration = exports.V8IntrinsicIdentifier = exports.UpdateExpression = exports.UnionTypeAnnotation = exports.UnaryExpression = exports.TypeofTypeAnnotation = exports.TypeParameterInstantiation = exports.TypeParameterDeclaration = exports.TypeParameter = exports.TypeCastExpression = exports.TypeAnnotation = exports.TypeAlias = exports.TupleTypeAnnotation = exports.TupleExpression = exports.TryStatement = exports.TopicReference = exports.ThrowStatement = exports.ThisTypeAnnotation = exports.ThisExpression = exports.TemplateLiteral = exports.TemplateElement = exports.TaggedTemplateExpression = exports.TSVoidKeyword = exports.TSUnknownKeyword = exports.TSUnionType = exports.TSUndefinedKeyword = exports.TSTypeReference = exports.TSTypeQuery = exports.TSTypePredicate = exports.TSTypeParameterInstantiation = exports.TSTypeParameterDeclaration = exports.TSTypeParameter = exports.TSTypeOperator = exports.TSTypeLiteral = exports.TSTypeAssertion = exports.TSTypeAnnotation = exports.TSTypeAliasDeclaration = exports.TSTupleType = exports.TSThisType = exports.TSTemplateLiteralType = exports.TSSymbolKeyword = exports.TSStringKeyword = exports.TSSatisfiesExpression = exports.TSRestType = exports.TSQualifiedName = exports.TSPropertySignature = exports.TSParenthesizedType = exports.TSParameterProperty = exports.TSOptionalType = exports.TSObjectKeyword = void 0;
12004
- var b = require_lowercase();
12004
+ var b2 = require_lowercase();
12005
12005
  require_deprecationWarning();
12006
12006
  function alias(lowercase) {
12007
- return b[lowercase];
12007
+ return b2[lowercase];
12008
12008
  }
12009
12009
  exports.ArrayExpression = alias("arrayExpression");
12010
12010
  exports.AssignmentExpression = alias("assignmentExpression");
@@ -12259,10 +12259,10 @@ var require_uppercase = __commonJS({
12259
12259
  exports.TSTypeParameterInstantiation = alias("tsTypeParameterInstantiation");
12260
12260
  exports.TSTypeParameterDeclaration = alias("tsTypeParameterDeclaration");
12261
12261
  exports.TSTypeParameter = alias("tsTypeParameter");
12262
- exports.NumberLiteral = b.numberLiteral;
12263
- exports.RegexLiteral = b.regexLiteral;
12264
- exports.RestProperty = b.restProperty;
12265
- exports.SpreadProperty = b.spreadProperty;
12262
+ exports.NumberLiteral = b2.numberLiteral;
12263
+ exports.RegexLiteral = b2.regexLiteral;
12264
+ exports.RestProperty = b2.restProperty;
12265
+ exports.SpreadProperty = b2.spreadProperty;
12266
12266
  }
12267
12267
  });
12268
12268
 
@@ -12311,17 +12311,17 @@ var require_cleanJSXElementLiteralChild = __commonJS({
12311
12311
  function cleanJSXElementLiteralChild(child, args) {
12312
12312
  const lines = child.value.split(/\r\n|\n|\r/);
12313
12313
  let lastNonEmptyLine = 0;
12314
- for (let i = 0; i < lines.length; i++) {
12315
- if (/[^ \t]/.exec(lines[i])) {
12316
- lastNonEmptyLine = i;
12314
+ for (let i2 = 0; i2 < lines.length; i2++) {
12315
+ if (/[^ \t]/.exec(lines[i2])) {
12316
+ lastNonEmptyLine = i2;
12317
12317
  }
12318
12318
  }
12319
12319
  let str = "";
12320
- for (let i = 0; i < lines.length; i++) {
12321
- const line = lines[i];
12322
- const isFirstLine = i === 0;
12323
- const isLastLine = i === lines.length - 1;
12324
- const isLastNonEmptyLine = i === lastNonEmptyLine;
12320
+ for (let i2 = 0; i2 < lines.length; i2++) {
12321
+ const line = lines[i2];
12322
+ const isFirstLine = i2 === 0;
12323
+ const isLastLine = i2 === lines.length - 1;
12324
+ const isLastNonEmptyLine = i2 === lastNonEmptyLine;
12325
12325
  let trimmedLine = line.replace(/\t/g, " ");
12326
12326
  if (!isFirstLine) {
12327
12327
  trimmedLine = trimmedLine.replace(/^ +/, "");
@@ -12353,8 +12353,8 @@ var require_buildChildren = __commonJS({
12353
12353
  var _cleanJSXElementLiteralChild = require_cleanJSXElementLiteralChild();
12354
12354
  function buildChildren2(node) {
12355
12355
  const elements = [];
12356
- for (let i = 0; i < node.children.length; i++) {
12357
- let child = node.children[i];
12356
+ for (let i2 = 0; i2 < node.children.length; i2++) {
12357
+ let child = node.children[i2];
12358
12358
  if ((0, _index.isJSXText)(child)) {
12359
12359
  (0, _cleanJSXElementLiteralChild.default)(child, elements);
12360
12360
  continue;
@@ -13708,8 +13708,8 @@ var require_removeTypeDuplicates = __commonJS({
13708
13708
  const bases = /* @__PURE__ */ new Map();
13709
13709
  const typeGroups = /* @__PURE__ */ new Set();
13710
13710
  const types = [];
13711
- for (let i = 0; i < nodes.length; i++) {
13712
- const node = nodes[i];
13711
+ for (let i2 = 0; i2 < nodes.length; i2++) {
13712
+ const node = nodes[i2];
13713
13713
  if (!node) continue;
13714
13714
  if (types.includes(node)) {
13715
13715
  continue;
@@ -13797,8 +13797,8 @@ var require_removeTypeDuplicates2 = __commonJS({
13797
13797
  const bases = /* @__PURE__ */ new Map();
13798
13798
  const typeGroups = /* @__PURE__ */ new Set();
13799
13799
  const types = [];
13800
- for (let i = 0; i < nodes.length; i++) {
13801
- const node = nodes[i];
13800
+ for (let i2 = 0; i2 < nodes.length; i2++) {
13801
+ const node = nodes[i2];
13802
13802
  if (!node) continue;
13803
13803
  if (types.includes(node)) {
13804
13804
  continue;
@@ -14590,7 +14590,7 @@ var require_valueToNode = __commonJS({
14590
14590
  function isRegExp(value) {
14591
14591
  return objectToString(value) === "[object RegExp]";
14592
14592
  }
14593
- function isPlainObject2(value) {
14593
+ function isPlainObject(value) {
14594
14594
  if (typeof value !== "object" || value === null || Object.prototype.toString.call(value) !== "[object Object]") {
14595
14595
  return false;
14596
14596
  }
@@ -14643,7 +14643,7 @@ var require_valueToNode = __commonJS({
14643
14643
  if (Array.isArray(value)) {
14644
14644
  return (0, _index.arrayExpression)(value.map(valueToNode));
14645
14645
  }
14646
- if (isPlainObject2(value)) {
14646
+ if (isPlainObject(value)) {
14647
14647
  const props = [];
14648
14648
  for (const key of Object.keys(value)) {
14649
14649
  let nodeKey, computed = false;
@@ -14828,8 +14828,8 @@ var require_getBindingIdentifiers = __commonJS({
14828
14828
  }
14829
14829
  const keys2 = getBindingIdentifiers.keys[id.type];
14830
14830
  if (keys2) {
14831
- for (let i = 0; i < keys2.length; i++) {
14832
- const key = keys2[i];
14831
+ for (let i2 = 0; i2 < keys2.length; i2++) {
14832
+ const key = keys2[i2];
14833
14833
  const nodes = id[key];
14834
14834
  if (nodes) {
14835
14835
  if (Array.isArray(nodes)) {
@@ -15000,13 +15000,13 @@ var require_traverse = __commonJS({
15000
15000
  for (const key of keys) {
15001
15001
  const subNode = node[key];
15002
15002
  if (Array.isArray(subNode)) {
15003
- for (let i = 0; i < subNode.length; i++) {
15004
- const child = subNode[i];
15003
+ for (let i2 = 0; i2 < subNode.length; i2++) {
15004
+ const child = subNode[i2];
15005
15005
  if (!child) continue;
15006
15006
  ancestors.push({
15007
15007
  node,
15008
15008
  key,
15009
- index: i
15009
+ index: i2
15010
15010
  });
15011
15011
  traverseSimpleImpl(child, enter, exit, state, ancestors);
15012
15012
  ancestors.pop();
@@ -15040,8 +15040,8 @@ var require_isBinding = __commonJS({
15040
15040
  }
15041
15041
  const keys = _getBindingIdentifiers.default.keys[parent.type];
15042
15042
  if (keys) {
15043
- for (let i = 0; i < keys.length; i++) {
15044
- const key = keys[i];
15043
+ for (let i2 = 0; i2 < keys.length; i2++) {
15044
+ const key = keys[i2];
15045
15045
  const val = parent[key];
15046
15046
  if (Array.isArray(val)) {
15047
15047
  if (val.includes(node)) return true;
@@ -15120,18 +15120,18 @@ var require_isNodesEquivalent = __commonJS({
15120
15120
  });
15121
15121
  exports.default = isNodesEquivalent;
15122
15122
  var _index = require_definitions();
15123
- function isNodesEquivalent(a, b) {
15124
- if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) {
15125
- return a === b;
15123
+ function isNodesEquivalent(a2, b2) {
15124
+ if (typeof a2 !== "object" || typeof b2 !== "object" || a2 == null || b2 == null) {
15125
+ return a2 === b2;
15126
15126
  }
15127
- if (a.type !== b.type) {
15127
+ if (a2.type !== b2.type) {
15128
15128
  return false;
15129
15129
  }
15130
- const fields = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
15131
- const visitorKeys = _index.VISITOR_KEYS[a.type];
15130
+ const fields = Object.keys(_index.NODE_FIELDS[a2.type] || a2.type);
15131
+ const visitorKeys = _index.VISITOR_KEYS[a2.type];
15132
15132
  for (const field of fields) {
15133
- const val_a = a[field];
15134
- const val_b = b[field];
15133
+ const val_a = a2[field];
15134
+ const val_b = b2[field];
15135
15135
  if (typeof val_a !== typeof val_b) {
15136
15136
  return false;
15137
15137
  }
@@ -15147,8 +15147,8 @@ var require_isNodesEquivalent = __commonJS({
15147
15147
  if (val_a.length !== val_b.length) {
15148
15148
  return false;
15149
15149
  }
15150
- for (let i = 0; i < val_a.length; i++) {
15151
- if (!isNodesEquivalent(val_a[i], val_b[i])) {
15150
+ for (let i2 = 0; i2 < val_a.length; i2++) {
15151
+ if (!isNodesEquivalent(val_a[i2], val_b[i2])) {
15152
15152
  return false;
15153
15153
  }
15154
15154
  }
@@ -16338,13 +16338,13 @@ var require_template_literals = __commonJS({
16338
16338
  function _printTemplate(node, substitutions) {
16339
16339
  const quasis = node.quasis;
16340
16340
  let partRaw = "`";
16341
- for (let i = 0; i < quasis.length - 1; i++) {
16342
- partRaw += quasis[i].value.raw;
16341
+ for (let i2 = 0; i2 < quasis.length - 1; i2++) {
16342
+ partRaw += quasis[i2].value.raw;
16343
16343
  this.token(partRaw + "${", true);
16344
- this.print(substitutions[i]);
16344
+ this.print(substitutions[i2]);
16345
16345
  partRaw = "}";
16346
16346
  if (this.tokenMap) {
16347
- const token = this.tokenMap.findMatching(node, "}", i);
16347
+ const token = this.tokenMap.findMatching(node, "}", i2);
16348
16348
  if (token) this._catchUpTo(token.loc.start);
16349
16349
  }
16350
16350
  }
@@ -17007,10 +17007,10 @@ var require_methods = __commonJS({
17007
17007
  const oldNoLineTerminatorAfterNode = this.enterDelimited();
17008
17008
  const trailingComma = this.shouldPrintTrailingComma(endToken);
17009
17009
  const paramLength = parameters.length;
17010
- for (let i = 0; i < paramLength; i++) {
17011
- _param.call(this, parameters[i]);
17012
- if (trailingComma || i < paramLength - 1) {
17013
- this.tokenChar(44, i);
17010
+ for (let i2 = 0; i2 < paramLength; i2++) {
17011
+ _param.call(this, parameters[i2]);
17012
+ if (trailingComma || i2 < paramLength - 1) {
17013
+ this.tokenChar(44, i2);
17014
17014
  this.space();
17015
17015
  }
17016
17016
  }
@@ -17536,9 +17536,9 @@ var require_typescript2 = __commonJS({
17536
17536
  hasLeadingToken = 1;
17537
17537
  printer.token(sep);
17538
17538
  }
17539
- printer.printJoin(node.types, void 0, void 0, function(i) {
17539
+ printer.printJoin(node.types, void 0, void 0, function(i2) {
17540
17540
  this.space();
17541
- this.token(sep, void 0, i + hasLeadingToken);
17541
+ this.token(sep, void 0, i2 + hasLeadingToken);
17542
17542
  this.space();
17543
17543
  });
17544
17544
  }
@@ -18238,17 +18238,17 @@ var require_jsesc = __commonJS({
18238
18238
  return hexadecimal2.toUpperCase();
18239
18239
  };
18240
18240
  var toString = object.toString;
18241
- var isArray2 = Array.isArray;
18241
+ var isArray = Array.isArray;
18242
18242
  var isBuffer = (value) => {
18243
18243
  return typeof Buffer === "function" && Buffer.isBuffer(value);
18244
18244
  };
18245
18245
  var isObject = (value) => {
18246
18246
  return toString.call(value) == "[object Object]";
18247
18247
  };
18248
- var isString2 = (value) => {
18248
+ var isString = (value) => {
18249
18249
  return typeof value == "string" || toString.call(value) == "[object String]";
18250
18250
  };
18251
- var isNumber2 = (value) => {
18251
+ var isNumber = (value) => {
18252
18252
  return typeof value == "number" || toString.call(value) == "[object Number]";
18253
18253
  };
18254
18254
  var isBigInt = (value) => {
@@ -18326,7 +18326,7 @@ var require_jsesc = __commonJS({
18326
18326
  if (json && argument && isFunction(argument.toJSON)) {
18327
18327
  argument = argument.toJSON();
18328
18328
  }
18329
- if (!isString2(argument)) {
18329
+ if (!isString(argument)) {
18330
18330
  if (isMap(argument)) {
18331
18331
  if (argument.size == 0) {
18332
18332
  return "new Map()";
@@ -18349,7 +18349,7 @@ var require_jsesc = __commonJS({
18349
18349
  }
18350
18350
  return "Buffer.from(" + jsesc(Array.from(argument), options) + ")";
18351
18351
  }
18352
- if (isArray2(argument)) {
18352
+ if (isArray(argument)) {
18353
18353
  result = [];
18354
18354
  options.wrap = true;
18355
18355
  if (inline1) {
@@ -18375,7 +18375,7 @@ var require_jsesc = __commonJS({
18375
18375
  return "[" + result.join(", ") + "]";
18376
18376
  }
18377
18377
  return "[" + newLine + result.join("," + newLine) + newLine + (compact ? "" : oldIndent) + "]";
18378
- } else if (isNumber2(argument) || isBigInt(argument)) {
18378
+ } else if (isNumber(argument) || isBigInt(argument)) {
18379
18379
  if (json) {
18380
18380
  return JSON.stringify(Number(argument));
18381
18381
  }
@@ -18578,16 +18578,16 @@ var require_types = __commonJS({
18578
18578
  const len = elems.length;
18579
18579
  this.tokenChar(91);
18580
18580
  const oldNoLineTerminatorAfterNode = this.enterDelimited();
18581
- for (let i = 0; i < elems.length; i++) {
18582
- const elem = elems[i];
18581
+ for (let i2 = 0; i2 < elems.length; i2++) {
18582
+ const elem = elems[i2];
18583
18583
  if (elem) {
18584
- if (i > 0) this.space();
18584
+ if (i2 > 0) this.space();
18585
18585
  this.print(elem, void 0, true);
18586
- if (i < len - 1 || this.shouldPrintTrailingComma("]")) {
18587
- this.tokenChar(44, i);
18586
+ if (i2 < len - 1 || this.shouldPrintTrailingComma("]")) {
18587
+ this.tokenChar(44, i2);
18588
18588
  }
18589
18589
  } else {
18590
- this.tokenChar(44, i);
18590
+ this.tokenChar(44, i2);
18591
18591
  }
18592
18592
  }
18593
18593
  this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
@@ -19403,7 +19403,7 @@ var require_classes = __commonJS({
19403
19403
  }
19404
19404
  const indexes = printer.tokenMap.getIndexes(node);
19405
19405
  if (!indexes) return null;
19406
- let k = 1;
19406
+ let k2 = 1;
19407
19407
  let occurrenceCount = 0;
19408
19408
  let nextLocIndex = 0;
19409
19409
  const advanceNextLocIndex = () => {
@@ -19412,16 +19412,16 @@ var require_classes = __commonJS({
19412
19412
  }
19413
19413
  };
19414
19414
  advanceNextLocIndex();
19415
- return (i) => {
19416
- if (nextLocIndex <= i) {
19417
- nextLocIndex = i + 1;
19415
+ return (i2) => {
19416
+ if (nextLocIndex <= i2) {
19417
+ nextLocIndex = i2 + 1;
19418
19418
  advanceNextLocIndex();
19419
19419
  }
19420
19420
  const end = nextLocIndex === node.body.length ? node.end : node.body[nextLocIndex].start;
19421
19421
  let tok;
19422
- while (k < indexes.length && printer.tokenMap.matchesOriginal(tok = printer._tokens[indexes[k]], ";") && tok.start < end) {
19422
+ while (k2 < indexes.length && printer.tokenMap.matchesOriginal(tok = printer._tokens[indexes[k2]], ";") && tok.start < end) {
19423
19423
  printer.tokenChar(59, occurrenceCount++);
19424
- k++;
19424
+ k2++;
19425
19425
  }
19426
19426
  };
19427
19427
  }
@@ -19950,13 +19950,13 @@ var require_deprecated = __commonJS({
19950
19950
  throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);
19951
19951
  }
19952
19952
  this.token(startToken);
19953
- for (let i = 0; i < elems.length; i++) {
19954
- const elem = elems[i];
19953
+ for (let i2 = 0; i2 < elems.length; i2++) {
19954
+ const elem = elems[i2];
19955
19955
  if (elem) {
19956
- if (i > 0) this.space();
19956
+ if (i2 > 0) this.space();
19957
19957
  this.print(elem);
19958
- if (i < len - 1 || this.shouldPrintTrailingComma(endToken)) {
19959
- this.token(",", false, i);
19958
+ if (i2 < len - 1 || this.shouldPrintTrailingComma(endToken)) {
19959
+ this.token(",", false, i2);
19960
19960
  }
19961
19961
  }
19962
19962
  }
@@ -20054,8 +20054,8 @@ var require_node = __commonJS({
20054
20054
  }
20055
20055
  function isLastChild(parent, child) {
20056
20056
  const visitorKeys = VISITOR_KEYS[parent.type];
20057
- for (let i = visitorKeys.length - 1; i >= 0; i--) {
20058
- const val = parent[visitorKeys[i]];
20057
+ for (let i2 = visitorKeys.length - 1; i2 >= 0; i2--) {
20058
+ const val = parent[visitorKeys[i2]];
20059
20059
  if (val === child) {
20060
20060
  return true;
20061
20061
  } else if (Array.isArray(val)) {
@@ -20108,8 +20108,8 @@ var require_token_map = __commonJS({
20108
20108
  find(node, condition) {
20109
20109
  const indexes = this._nodesToTokenIndexes.get(node);
20110
20110
  if (indexes) {
20111
- for (let k = 0; k < indexes.length; k++) {
20112
- const index = indexes[k];
20111
+ for (let k2 = 0; k2 < indexes.length; k2++) {
20112
+ const index = indexes[k2];
20113
20113
  const tok = this._tokens[index];
20114
20114
  if (condition(tok, index)) return tok;
20115
20115
  }
@@ -20119,8 +20119,8 @@ var require_token_map = __commonJS({
20119
20119
  findLastIndex(node, condition) {
20120
20120
  const indexes = this._nodesToTokenIndexes.get(node);
20121
20121
  if (indexes) {
20122
- for (let k = indexes.length - 1; k >= 0; k--) {
20123
- const index = indexes[k];
20122
+ for (let k2 = indexes.length - 1; k2 >= 0; k2--) {
20123
+ const index = indexes[k2];
20124
20124
  const tok = this._tokens[index];
20125
20125
  if (condition(tok, index)) return index;
20126
20126
  }
@@ -20133,24 +20133,24 @@ var require_token_map = __commonJS({
20133
20133
  if (typeof test === "number") {
20134
20134
  test = String.fromCharCode(test);
20135
20135
  }
20136
- let i = 0;
20136
+ let i2 = 0;
20137
20137
  const count = occurrenceCount;
20138
20138
  if (count > 1) {
20139
20139
  const cache = this._nodesOccurrencesCountCache.get(node);
20140
20140
  if ((cache == null ? void 0 : cache.test) === test && cache.count < count) {
20141
- i = cache.i + 1;
20141
+ i2 = cache.i + 1;
20142
20142
  occurrenceCount -= cache.count + 1;
20143
20143
  }
20144
20144
  }
20145
- for (; i < indexes.length; i++) {
20146
- const tok = this._tokens[indexes[i]];
20145
+ for (; i2 < indexes.length; i2++) {
20146
+ const tok = this._tokens[indexes[i2]];
20147
20147
  if (this.matchesOriginal(tok, test)) {
20148
20148
  if (occurrenceCount === 0) {
20149
20149
  if (count > 0) {
20150
20150
  this._nodesOccurrencesCountCache.set(node, {
20151
20151
  test,
20152
20152
  count,
20153
- i
20153
+ i: i2
20154
20154
  });
20155
20155
  }
20156
20156
  return tok;
@@ -20198,10 +20198,10 @@ var require_token_map = __commonJS({
20198
20198
  if (child.start == null || child.end == null) continue;
20199
20199
  const childTok = this._findTokensOfNode(child, low, last);
20200
20200
  const high = childTok.first;
20201
- for (let k = low; k < high; k++) indexes.push(k);
20201
+ for (let k2 = low; k2 < high; k2++) indexes.push(k2);
20202
20202
  low = childTok.last + 1;
20203
20203
  }
20204
- for (let k = low; k <= last; k++) indexes.push(k);
20204
+ for (let k2 = low; k2 <= last; k2++) indexes.push(k2);
20205
20205
  return indexes;
20206
20206
  }
20207
20207
  _findTokensOfNode(node, low, high) {
@@ -20249,9 +20249,9 @@ var require_token_map = __commonJS({
20249
20249
  function* childrenIterator(node) {
20250
20250
  if (node.type === "TemplateLiteral") {
20251
20251
  yield node.quasis[0];
20252
- for (let i = 1; i < node.quasis.length; i++) {
20253
- yield node.expressions[i - 1];
20254
- yield node.quasis[i];
20252
+ for (let i2 = 1; i2 < node.quasis.length; i2++) {
20253
+ yield node.expressions[i2 - 1];
20254
+ yield node.quasis[i2];
20255
20255
  }
20256
20256
  return;
20257
20257
  }
@@ -20490,8 +20490,8 @@ var require_printer = __commonJS({
20490
20490
  this._appendChar(char);
20491
20491
  this._noLineTerminator = false;
20492
20492
  }
20493
- newline(i = 1, flags = this._flags) {
20494
- if (i <= 0) return;
20493
+ newline(i2 = 1, flags = this._flags) {
20494
+ if (i2 <= 0) return;
20495
20495
  if (flags & (8 | 2)) {
20496
20496
  return;
20497
20497
  }
@@ -20499,9 +20499,9 @@ var require_printer = __commonJS({
20499
20499
  this.space();
20500
20500
  return;
20501
20501
  }
20502
- if (i > 2) i = 2;
20503
- i -= this._buf.getNewlineCount();
20504
- for (let j = 0; j < i; j++) {
20502
+ if (i2 > 2) i2 = 2;
20503
+ i2 -= this._buf.getNewlineCount();
20504
+ for (let j = 0; j < i2; j++) {
20505
20505
  this._newline();
20506
20506
  }
20507
20507
  }
@@ -20580,7 +20580,7 @@ var require_printer = __commonJS({
20580
20580
  catchUp(line) {
20581
20581
  if (!this.format.retainLines) return;
20582
20582
  const count = line - this._buf.getCurrentLine();
20583
- for (let i = 0; i < count; i++) {
20583
+ for (let i2 = 0; i2 < count; i2++) {
20584
20584
  this._newline();
20585
20585
  }
20586
20586
  }
@@ -20604,7 +20604,7 @@ var require_printer = __commonJS({
20604
20604
  if (count > 0 && this._noLineTerminator) {
20605
20605
  return;
20606
20606
  }
20607
- for (let i = 0; i < count; i++) {
20607
+ for (let i2 = 0; i2 < count; i2++) {
20608
20608
  this._newline();
20609
20609
  }
20610
20610
  const spacesCount = count > 0 ? column : column - this._buf.getCurrentColumn();
@@ -20782,25 +20782,25 @@ var require_printer = __commonJS({
20782
20782
  }
20783
20783
  if (indent) this.indent(flags);
20784
20784
  const len = nodes.length;
20785
- for (let i = 0; i < len; i++) {
20786
- const node = nodes[i];
20785
+ for (let i2 = 0; i2 < len; i2++) {
20786
+ const node = nodes[i2];
20787
20787
  if (!node) continue;
20788
- if (statement && i === 0 && this._buf.hasContent()) {
20788
+ if (statement && i2 === 0 && this._buf.hasContent()) {
20789
20789
  this.newline(1, flags);
20790
20790
  }
20791
20791
  this.print(node, false, resetTokenContext, trailingCommentsLineOffset || 0);
20792
20792
  if (separator != null) {
20793
- if (i < len - 1) separator.call(this, i, false);
20794
- else if (printTrailingSeparator) separator.call(this, i, true);
20793
+ if (i2 < len - 1) separator.call(this, i2, false);
20794
+ else if (printTrailingSeparator) separator.call(this, i2, true);
20795
20795
  }
20796
20796
  if (statement) {
20797
- if (i + 1 === len) {
20797
+ if (i2 + 1 === len) {
20798
20798
  this.newline(1, flags);
20799
20799
  } else {
20800
20800
  const lastCommentLine = this._lastCommentLine;
20801
20801
  if (lastCommentLine > 0) {
20802
20802
  var _nodes$loc;
20803
- const offset = (((_nodes$loc = nodes[i + 1].loc) == null ? void 0 : _nodes$loc.start.line) || 0) - lastCommentLine;
20803
+ const offset = (((_nodes$loc = nodes[i2 + 1].loc) == null ? void 0 : _nodes$loc.start.line) || 0) - lastCommentLine;
20804
20804
  if (offset >= 0) {
20805
20805
  this.newline(offset || 1, flags);
20806
20806
  continue;
@@ -20969,18 +20969,18 @@ ${" ".repeat(indentSize)}`);
20969
20969
  _noLineTerminator,
20970
20970
  _flags
20971
20971
  } = this;
20972
- for (let i = 0; i < len; i++) {
20973
- const comment = comments[i];
20972
+ for (let i2 = 0; i2 < len; i2++) {
20973
+ const comment = comments[i2];
20974
20974
  const shouldPrint = this._shouldPrintComment(comment, nextToken);
20975
20975
  if (shouldPrint === 2) {
20976
- return i === 0 ? 0 : 1;
20976
+ return i2 === 0 ? 0 : 1;
20977
20977
  }
20978
20978
  if (hasLoc && comment.loc && shouldPrint === 1) {
20979
20979
  const commentStartLine = comment.loc.start.line;
20980
20980
  const commentEndLine = comment.loc.end.line;
20981
20981
  if (type === 0) {
20982
20982
  let offset = 0;
20983
- if (i === 0) {
20983
+ if (i2 === 0) {
20984
20984
  if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine !== commentEndLine)) {
20985
20985
  offset = leadingCommentNewline = 1;
20986
20986
  }
@@ -20992,7 +20992,7 @@ ${" ".repeat(indentSize)}`);
20992
20992
  this.newline(offset, _flags);
20993
20993
  }
20994
20994
  this._printComment(comment, 1);
20995
- if (i + 1 === len) {
20995
+ if (i2 + 1 === len) {
20996
20996
  const count = Math.max(nodeStartLine - lastLine, leadingCommentNewline);
20997
20997
  if (count > 0 && !_noLineTerminator) {
20998
20998
  this.newline(count, _flags);
@@ -21000,13 +21000,13 @@ ${" ".repeat(indentSize)}`);
21000
21000
  lastLine = nodeStartLine;
21001
21001
  }
21002
21002
  } else if (type === 1) {
21003
- const offset = commentStartLine - (i === 0 ? nodeStartLine : lastLine);
21003
+ const offset = commentStartLine - (i2 === 0 ? nodeStartLine : lastLine);
21004
21004
  lastLine = commentEndLine;
21005
21005
  if (offset > 0 && !_noLineTerminator) {
21006
21006
  this.newline(offset, _flags);
21007
21007
  }
21008
21008
  this._printComment(comment, 1);
21009
- if (i + 1 === len) {
21009
+ if (i2 + 1 === len) {
21010
21010
  const count = Math.min(1, nodeEndLine - lastLine);
21011
21011
  if (count > 0 && !_noLineTerminator) {
21012
21012
  this.newline(count, _flags);
@@ -21014,7 +21014,7 @@ ${" ".repeat(indentSize)}`);
21014
21014
  lastLine = nodeEndLine;
21015
21015
  }
21016
21016
  } else {
21017
- const offset = commentStartLine - (i === 0 ? nodeEndLine - lineOffset : lastLine);
21017
+ const offset = commentStartLine - (i2 === 0 ? nodeEndLine - lineOffset : lastLine);
21018
21018
  lastLine = commentEndLine;
21019
21019
  if (offset > 0 && !_noLineTerminator) {
21020
21020
  this.newline(offset, _flags);
@@ -21037,7 +21037,7 @@ ${" ".repeat(indentSize)}`);
21037
21037
  this._printComment(comment, 0);
21038
21038
  }
21039
21039
  } else if (type === 1 && !(node.type === "ObjectExpression" && node.properties.length > 1) && node.type !== "ClassBody" && node.type !== "TSInterfaceBody") {
21040
- this._printComment(comment, i === 0 ? 2 : i === len - 1 ? 3 : 0);
21040
+ this._printComment(comment, i2 === 0 ? 2 : i2 === len - 1 ? 3 : 0);
21041
21041
  } else {
21042
21042
  this._printComment(comment, 0);
21043
21043
  }
@@ -21179,94 +21179,83 @@ init_cjs_shims();
21179
21179
 
21180
21180
  // ../shared/dist/shared.esm.js
21181
21181
  init_cjs_shims();
21182
- var isArray = Array.isArray;
21183
- function isString(val) {
21184
- return typeof val === "string";
21182
+ var u = Array.isArray;
21183
+ function i(e) {
21184
+ return typeof e == "string";
21185
21185
  }
21186
- function isNumber(val) {
21187
- return typeof val === "number";
21186
+ function g(e) {
21187
+ return typeof e == "number";
21188
21188
  }
21189
- function isNull(val) {
21190
- return val === null;
21189
+ function A(e) {
21190
+ return e === null;
21191
21191
  }
21192
- var isPlainObject = (val) => _toString.call(val) === "[object Object]";
21193
- function isBoolean(val) {
21194
- return typeof val === "boolean";
21192
+ var _ = (e) => p.call(e) === "[object Object]";
21193
+ function F(e) {
21194
+ return typeof e == "boolean";
21195
21195
  }
21196
- function isBigint(val) {
21197
- return typeof val === "bigint";
21196
+ function G(e) {
21197
+ return typeof e == "bigint";
21198
21198
  }
21199
- var _toString = Object.prototype.toString;
21200
- function startsWith(str, searchString) {
21201
- if (!isString(str)) {
21202
- return false;
21203
- }
21204
- return str.indexOf(searchString) === 0;
21199
+ var p = Object.prototype.toString;
21200
+ function Y(e, t13) {
21201
+ return i(e) ? e.indexOf(t13) === 0 : false;
21205
21202
  }
21206
- function warn(msg, ...args) {
21207
- console.warn(`[Essor warn]: ${msg}`, ...args);
21203
+ function re(e, ...t13) {
21204
+ console.warn(`[Essor warn]: ${e}`, ...t13);
21208
21205
  }
21209
- function error(msg, ...args) {
21210
- console.error(`[Essor error]: ${msg}`, ...args);
21206
+ function se(e, ...t13) {
21207
+ console.error(`[Essor error]: ${e}`, ...t13);
21211
21208
  }
21212
- var escapeRE = /["&'<>]/;
21213
- function escapeHTML(string) {
21214
- const str = `${string}`;
21215
- const match = escapeRE.exec(str);
21216
- if (!match) {
21217
- return str;
21218
- }
21219
- let html = "";
21220
- let escaped;
21221
- let index;
21222
- let lastIndex = 0;
21223
- for (index = match.index; index < str.length; index++) {
21224
- switch (str.charCodeAt(index)) {
21209
+ var ae = /["&'<>]/;
21210
+ function le(e) {
21211
+ let t13 = `${e}`, n = ae.exec(t13);
21212
+ if (!n) return t13;
21213
+ let o = "", r, s, m = 0;
21214
+ for (s = n.index; s < t13.length; s++) {
21215
+ switch (t13.charCodeAt(s)) {
21225
21216
  case 34:
21226
- escaped = "&quot;";
21217
+ r = "&quot;";
21227
21218
  break;
21228
21219
  case 38:
21229
- escaped = "&amp;";
21220
+ r = "&amp;";
21230
21221
  break;
21231
21222
  case 39:
21232
- escaped = "&#39;";
21223
+ r = "&#39;";
21233
21224
  break;
21234
21225
  case 60:
21235
- escaped = "&lt;";
21226
+ r = "&lt;";
21236
21227
  break;
21237
21228
  case 62:
21238
- escaped = "&gt;";
21229
+ r = "&gt;";
21239
21230
  break;
21240
21231
  default:
21241
21232
  continue;
21242
21233
  }
21243
- if (lastIndex !== index) {
21244
- html += str.slice(lastIndex, index);
21245
- }
21246
- lastIndex = index + 1;
21247
- html += escaped;
21234
+ m !== s && (o += t13.slice(m, s)), m = s + 1, o += r;
21248
21235
  }
21249
- return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
21236
+ return m !== s ? o + t13.slice(m, s) : o;
21250
21237
  }
21251
- function makeMap(str) {
21252
- const map = /* @__PURE__ */ Object.create(null);
21253
- for (const key of str.split(",")) {
21254
- map[key] = 1;
21255
- }
21256
- return (val) => val in map;
21238
+ function a(e) {
21239
+ let t13 = /* @__PURE__ */ Object.create(null);
21240
+ for (let n of e.split(",")) t13[n] = 1;
21241
+ return (n) => n in t13;
21257
21242
  }
21258
- var propsToAttrMap = {
21259
- acceptCharset: "accept-charset",
21260
- className: "class",
21261
- htmlFor: "for",
21262
- httpEquiv: "http-equiv"
21263
- };
21264
- var SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
21265
- var DELEGATED_EVENTS = "beforeinput,click,dblclick,contextmenu,focusin,focusout,input,keydown,keyup,mousedown,mousemove,mouseout,mouseover,mouseup,pointerdown,pointermove,pointerout,pointerover,pointerup,touchend,touchmove,touchstart";
21266
- var VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
21267
- var isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
21268
- var isSelfClosingTag = /* @__PURE__ */ makeMap(VOID_TAGS);
21269
- var isDelegatedEvent = /* @__PURE__ */ makeMap(DELEGATED_EVENTS);
21243
+ var k = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";
21244
+ a(k);
21245
+ a(`${k},async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
21246
+ var ye = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv" };
21247
+ a("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");
21248
+ a("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");
21249
+ var we = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
21250
+ var Se = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
21251
+ var Te = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
21252
+ var ve = "beforeinput,click,dblclick,contextmenu,focusin,focusout,input,keydown,keyup,mousedown,mousemove,mouseout,mouseover,mouseup,pointerdown,pointermove,pointerout,pointerover,pointerup,touchend,touchmove,touchstart";
21253
+ var Ae = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
21254
+ a(we);
21255
+ var Me = a(Se);
21256
+ a(Te);
21257
+ var Ce = a(Ae);
21258
+ var ze = a(ve);
21270
21259
 
21271
21260
  // src/options.ts
21272
21261
  init_cjs_shims();
@@ -21390,7 +21379,7 @@ function getCompileContext() {
21390
21379
  }
21391
21380
  function setCompileContext(context) {
21392
21381
  if (context && currentCompileContext) {
21393
- error("setCompileContext: overwriting existing context \u2014 possible concurrent file processing");
21382
+ se("setCompileContext: overwriting existing context \u2014 possible concurrent file processing");
21394
21383
  }
21395
21384
  currentCompileContext = context;
21396
21385
  }
@@ -21682,10 +21671,13 @@ function injectComponentMetadata(programPath, ctx) {
21682
21671
  }
21683
21672
  programPath.node.body = nextBody;
21684
21673
  }
21685
- function wrapCreateAppCalls(programPath, ctx) {
21686
- if (ctx.hmrComponents.size === 0) {
21687
- return;
21688
- }
21674
+ function isCreateHMRComponentCall(value) {
21675
+ return core.types.isCallExpression(value) && core.types.isIdentifier(value.callee) && value.callee.name === HMR_COMPONENT_NAME;
21676
+ }
21677
+ function canWrapArgument(value) {
21678
+ return !!value && !core.types.isSpreadElement(value) && !core.types.isArgumentPlaceholder(value);
21679
+ }
21680
+ function wrapComponentCreationCalls(programPath, ctx) {
21689
21681
  programPath.traverse({
21690
21682
  /**
21691
21683
  * Rewrites `createComponent` and `createApp` calls for HMR tracking.
@@ -21695,7 +21687,7 @@ function wrapCreateAppCalls(programPath, ctx) {
21695
21687
  if (!core.types.isIdentifier(callee)) return;
21696
21688
  if (callee.name === ctx.importIdentifiers.createComponent.name) {
21697
21689
  const firstArg = callPath.node.arguments[0];
21698
- if (core.types.isIdentifier(firstArg) && ctx.hmrComponents.has(firstArg.name)) {
21690
+ if (canWrapArgument(firstArg)) {
21699
21691
  callPath.node.callee = core.types.identifier(HMR_COMPONENT_NAME);
21700
21692
  }
21701
21693
  return;
@@ -21703,9 +21695,10 @@ function wrapCreateAppCalls(programPath, ctx) {
21703
21695
  if (callee.name === "createApp") {
21704
21696
  const args = callPath.node.arguments;
21705
21697
  if (args.length === 0) return;
21706
- if (core.types.isCallExpression(args[0]) && core.types.isIdentifier(args[0].callee) && args[0].callee.name === HMR_COMPONENT_NAME) {
21698
+ if (isCreateHMRComponentCall(args[0])) {
21707
21699
  return;
21708
21700
  }
21701
+ if (!canWrapArgument(args[0])) return;
21709
21702
  args[0] = core.types.callExpression(core.types.identifier(HMR_COMPONENT_NAME), [args[0]]);
21710
21703
  callPath.node.arguments = args;
21711
21704
  }
@@ -21721,11 +21714,16 @@ function collectTopLevelHmrComponents(programPath, ctx) {
21721
21714
  }
21722
21715
  }
21723
21716
  function applyHmr(programPath, ctx) {
21724
- if (!ctx.options.hmr || !ctx.options.bundler || ctx.hmrComponents.size === 0) {
21717
+ if (!ctx.options.hmr || !ctx.options.bundler) {
21718
+ return;
21719
+ }
21720
+ if (ctx.hmrComponents.size > 0) {
21721
+ injectComponentMetadata(programPath, ctx);
21722
+ }
21723
+ wrapComponentCreationCalls(programPath, ctx);
21724
+ if (ctx.hmrComponents.size === 0) {
21725
21725
  return;
21726
21726
  }
21727
- injectComponentMetadata(programPath, ctx);
21728
- wrapCreateAppCalls(programPath, ctx);
21729
21727
  programPath.node.body.push(
21730
21728
  core.types.variableDeclaration("const", [
21731
21729
  core.types.variableDeclarator(
@@ -21811,9 +21809,9 @@ function isAlreadyValueAccess(path2) {
21811
21809
  if (!core.types.isParenthesizedExpression(parent) && !core.types.isTSAsExpression(parent) && !core.types.isTSNonNullExpression(parent)) {
21812
21810
  return false;
21813
21811
  }
21814
- const ancestor = path2.findParent((p) => {
21815
- if (!p.isMemberExpression()) return false;
21816
- const m = p.node;
21812
+ const ancestor = path2.findParent((p2) => {
21813
+ if (!p2.isMemberExpression()) return false;
21814
+ const m = p2.node;
21817
21815
  return m.object === path2.node && isMemberAccessingProperty(m, "value");
21818
21816
  });
21819
21817
  return !!ancestor;
@@ -21878,8 +21876,8 @@ function buildRestVariableDeclaration(restName, parentPath, excludeProps) {
21878
21876
  const validExcludeProps = excludeProps.filter(Boolean);
21879
21877
  const pathParts = parentPath.split(".").filter(Boolean);
21880
21878
  let sourceObject = core.types.identifier(pathParts[0] || "__props");
21881
- for (let i = 1; i < pathParts.length; i++) {
21882
- sourceObject = core.types.memberExpression(sourceObject, core.types.identifier(pathParts[i]));
21879
+ for (let i2 = 1; i2 < pathParts.length; i2++) {
21880
+ sourceObject = core.types.memberExpression(sourceObject, core.types.identifier(pathParts[i2]));
21883
21881
  }
21884
21882
  const init = validExcludeProps.length === 0 ? sourceObject : core.types.callExpression(useImport(importMap.omitProps), [
21885
21883
  sourceObject,
@@ -21907,12 +21905,12 @@ function transformRestProperties(path2, restProperties, notRestNames = [], neste
21907
21905
  }
21908
21906
  }
21909
21907
  function buildDefaultValueObject(defaults) {
21910
- if (!isPlainObject(defaults)) return core.types.objectExpression([]);
21908
+ if (!_(defaults)) return core.types.objectExpression([]);
21911
21909
  const properties = [];
21912
21910
  for (const [key, value] of Object.entries(defaults)) {
21913
21911
  if (!key) continue;
21914
21912
  let propertyValue;
21915
- if (isPlainObject(value) && !core.types.isNode(value)) {
21913
+ if (_(value) && !core.types.isNode(value)) {
21916
21914
  propertyValue = buildDefaultValueObject(value);
21917
21915
  } else if (core.types.isExpression(value)) {
21918
21916
  propertyValue = value;
@@ -21951,9 +21949,9 @@ function transformFnProps(path2) {
21951
21949
  const notRestProperties = properties.filter((prop) => !core.types.isRestElement(prop));
21952
21950
  const restProperties = properties.find((prop) => core.types.isRestElement(prop));
21953
21951
  const notRestNames = notRestProperties.map((prop) => core.types.isIdentifier(prop.key) ? prop.key.name : null).filter((name) => name !== null);
21954
- const signalConflicts = notRestNames.filter((name) => startsWith(name, signalPrefix));
21952
+ const signalConflicts = notRestNames.filter((name) => Y(name, signalPrefix));
21955
21953
  if (signalConflicts.length > 0) {
21956
- warn("transformProps", "Property names cannot start with signal prefix", signalConflicts);
21954
+ re("transformProps", "Property names cannot start with signal prefix", signalConflicts);
21957
21955
  }
21958
21956
  if (notRestProperties.length > 0) {
21959
21957
  const defaults = transformProperty(path2, notRestProperties, TRANSFORM_PROPERTY_NAME);
@@ -22065,16 +22063,16 @@ function textTrim(node) {
22065
22063
  if (!node || !node.value) return "";
22066
22064
  const lines = node.value.split(/\r\n|\n|\r/);
22067
22065
  let lastNonEmptyLine = 0;
22068
- for (const [i, line] of lines.entries()) {
22069
- if (/[^ \t]/.test(line)) lastNonEmptyLine = i;
22066
+ for (const [i2, line] of lines.entries()) {
22067
+ if (/[^ \t]/.test(line)) lastNonEmptyLine = i2;
22070
22068
  }
22071
22069
  let str = "";
22072
- for (let i = 0; i < lines.length; i++) {
22073
- let line = lines[i].replaceAll(" ", " ");
22074
- if (i !== 0) line = line.replace(/^ +/, "");
22075
- if (i !== lines.length - 1) line = line.replace(/ +$/, "");
22070
+ for (let i2 = 0; i2 < lines.length; i2++) {
22071
+ let line = lines[i2].replaceAll(" ", " ");
22072
+ if (i2 !== 0) line = line.replace(/^ +/, "");
22073
+ if (i2 !== lines.length - 1) line = line.replace(/ +$/, "");
22076
22074
  if (line) {
22077
- if (i !== lastNonEmptyLine) line += " ";
22075
+ if (i2 !== lastNonEmptyLine) line += " ";
22078
22076
  str += line;
22079
22077
  }
22080
22078
  }
@@ -22085,7 +22083,7 @@ function serializeStaticAttrs(attrs) {
22085
22083
  const merged = [];
22086
22084
  let classValue;
22087
22085
  for (const attr of attrs) {
22088
- const name = (_a = propsToAttrMap[attr.name]) != null ? _a : attr.name;
22086
+ const name = (_a = ye[attr.name]) != null ? _a : attr.name;
22089
22087
  if (name === "class") {
22090
22088
  classValue = classValue ? `${classValue} ${attr.value}` : String(attr.value);
22091
22089
  } else {
@@ -22095,7 +22093,7 @@ function serializeStaticAttrs(attrs) {
22095
22093
  if (classValue) merged.unshift({ name: "class", value: classValue });
22096
22094
  return merged.map((attr) => {
22097
22095
  if (attr.value === true) return ` ${attr.name}`;
22098
- return ` ${attr.name}="${escapeHTML(attr.value)}"`;
22096
+ return ` ${attr.name}="${le(attr.value)}"`;
22099
22097
  }).join("");
22100
22098
  }
22101
22099
  function resolveComponentCallee(tag, fallback) {
@@ -22114,16 +22112,16 @@ function isSerializableStaticValue(value) {
22114
22112
  const stack = [value];
22115
22113
  while (stack.length > 0) {
22116
22114
  const current = stack.pop();
22117
- if (isNull(current) || isBoolean(current) || isNumber(current) || isString(current) || isBigint(current)) {
22115
+ if (A(current) || F(current) || g(current) || i(current) || G(current)) {
22118
22116
  continue;
22119
22117
  }
22120
- if (isArray(current)) {
22118
+ if (u(current)) {
22121
22119
  for (const item of current) {
22122
22120
  stack.push(item);
22123
22121
  }
22124
22122
  continue;
22125
22123
  }
22126
- if (!isPlainObject(current)) {
22124
+ if (!_(current)) {
22127
22125
  return false;
22128
22126
  }
22129
22127
  const values = Object.values(current);
@@ -22144,7 +22142,7 @@ function shouldResolveStaticCollection(attrName) {
22144
22142
  }
22145
22143
  function normalizeTemplateAttrName(attrName) {
22146
22144
  var _a;
22147
- return (_a = propsToAttrMap[attrName]) != null ? _a : attrName;
22145
+ return (_a = ye[attrName]) != null ? _a : attrName;
22148
22146
  }
22149
22147
  function createStaticAttr(attrName, value, order) {
22150
22148
  return {
@@ -22174,13 +22172,13 @@ function resolveStaticExpressionValue(attrName, expressionPath) {
22174
22172
  return void 0;
22175
22173
  }
22176
22174
  let value = evaluated.value;
22177
- if (attrName === "style" && isPlainObject(value)) {
22175
+ if (attrName === "style" && _(value)) {
22178
22176
  value = styleToString(value);
22179
22177
  }
22180
- if (isString(value) || isBoolean(value)) {
22178
+ if (i(value) || F(value)) {
22181
22179
  return value;
22182
22180
  }
22183
- if (isNumber(value)) {
22181
+ if (g(value)) {
22184
22182
  return String(value);
22185
22183
  }
22186
22184
  return void 0;
@@ -22278,14 +22276,14 @@ function buildElementIR(tag, path2, ctx) {
22278
22276
  const node = {
22279
22277
  type: 0 /* ELEMENT */,
22280
22278
  tag,
22281
- isSVG: isSVGTag(tag),
22279
+ isSVG: Me(tag),
22282
22280
  staticAttrs,
22283
22281
  dynamicAttrs: [],
22284
22282
  events: [],
22285
22283
  spreads: spreadAttrs.map((s) => ({ value: s.value, kind: s.effectKind })),
22286
22284
  binds: [],
22287
22285
  children: [],
22288
- selfClosing: isSelfClosingTag(tag),
22286
+ selfClosing: Ce(tag),
22289
22287
  loc: path2.node.loc
22290
22288
  };
22291
22289
  for (const attr of dynamicAttrs) {
@@ -22304,7 +22302,7 @@ function buildComponentIR(tag, path2, ctx) {
22304
22302
  for (const attr of staticAttrs) {
22305
22303
  props.push({
22306
22304
  name: attr.name,
22307
- value: isString(attr.value) ? core.types.stringLiteral(attr.value) : core.types.booleanLiteral(attr.value),
22305
+ value: i(attr.value) ? core.types.stringLiteral(attr.value) : core.types.booleanLiteral(attr.value),
22308
22306
  kind: "static"
22309
22307
  });
22310
22308
  }
@@ -22344,7 +22342,7 @@ function applyDynamicAttr(node, attr, ctx) {
22344
22342
  const { name, value, effectKind, path: path2 } = attr;
22345
22343
  const eventName = normalizeEventName(name);
22346
22344
  if (eventName) {
22347
- const delegated = !!(ctx.options.delegateEvents && isDelegatedEvent(eventName));
22345
+ const delegated = !!(ctx.options.delegateEvents && ze(eventName));
22348
22346
  node.events.push({
22349
22347
  name: eventName,
22350
22348
  handler: value,
@@ -22570,10 +22568,10 @@ function createPropNode(name, value, kind, options) {
22570
22568
  function composePropsExpression(props, spreads, options) {
22571
22569
  if (spreads.length === 0) {
22572
22570
  if (props.length === 0) return core.types.objectExpression([]);
22573
- return core.types.objectExpression(props.map((p) => createPropNode(p.name, p.value, p.kind, options)));
22571
+ return core.types.objectExpression(props.map((p2) => createPropNode(p2.name, p2.value, p2.kind, options)));
22574
22572
  }
22575
22573
  const parts = [];
22576
- const propNodes = props.map((p) => createPropNode(p.name, p.value, p.kind, options));
22574
+ const propNodes = props.map((p2) => createPropNode(p2.name, p2.value, p2.kind, options));
22577
22575
  if (propNodes.length > 0) {
22578
22576
  parts.push(core.types.objectExpression(propNodes));
22579
22577
  }
@@ -22900,7 +22898,7 @@ function buildTemplateAndFlatten(root, mode) {
22900
22898
  for (const child of element.children) {
22901
22899
  switch (child.type) {
22902
22900
  case 2 /* TEXT */:
22903
- template += mode === "hydrate" ? child.value : escapeHTML(child.value);
22901
+ template += mode === "hydrate" ? child.value : le(child.value);
22904
22902
  nodes.push({
22905
22903
  id: nextId++,
22906
22904
  kind: "text",
@@ -22939,7 +22937,7 @@ function isStaticSubtree(node) {
22939
22937
  function buildStaticTemplateString(node, mode) {
22940
22938
  switch (node.type) {
22941
22939
  case 2 /* TEXT */:
22942
- return mode === "hydrate" ? node.value : escapeHTML(node.value);
22940
+ return mode === "hydrate" ? node.value : le(node.value);
22943
22941
  case 0 /* ELEMENT */: {
22944
22942
  const attrs = serializeStaticAttrs(node.staticAttrs);
22945
22943
  if (node.selfClosing) return `<${node.tag}${attrs}/>`;
@@ -22984,8 +22982,8 @@ function planNavigation(nodes) {
22984
22982
  const parentSiblings = siblingMap.get(node.parentId);
22985
22983
  let prevNav = null;
22986
22984
  if (parentSiblings) {
22987
- for (let i = node.childIndex - 1; i >= 0; i--) {
22988
- const sib = parentSiblings.get(i);
22985
+ for (let i2 = node.childIndex - 1; i2 >= 0; i2--) {
22986
+ const sib = parentSiblings.get(i2);
22989
22987
  if (sib && navigated.has(sib.id)) {
22990
22988
  prevNav = sib;
22991
22989
  break;
@@ -23350,5 +23348,3 @@ function index_default() {
23350
23348
  }
23351
23349
 
23352
23350
  module.exports = index_default;
23353
- //# sourceMappingURL=index.cjs.map
23354
- //# sourceMappingURL=index.cjs.map