@eslint-react/jsx 1.5.13-next.3 → 1.5.13-next.4

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.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var types = require('@typescript-eslint/types');
4
4
  var ast = require('@eslint-react/ast');
5
5
  var _var = require('@eslint-react/var');
6
- require('@typescript-eslint/utils');
6
+ var tsPattern = require('ts-pattern');
7
7
 
8
8
  var __defProp = Object.defineProperty;
9
9
  var __export = (target, all3) => {
@@ -80,39 +80,39 @@ var dual = function(arity, body) {
80
80
  case 1:
81
81
  throw new RangeError(`Invalid arity ${arity}`);
82
82
  case 2:
83
- return function(a2, b2) {
83
+ return function(a, b) {
84
84
  if (arguments.length >= 2) {
85
- return body(a2, b2);
85
+ return body(a, b);
86
86
  }
87
87
  return function(self) {
88
- return body(self, a2);
88
+ return body(self, a);
89
89
  };
90
90
  };
91
91
  case 3:
92
- return function(a2, b2, c2) {
92
+ return function(a, b, c) {
93
93
  if (arguments.length >= 3) {
94
- return body(a2, b2, c2);
94
+ return body(a, b, c);
95
95
  }
96
96
  return function(self) {
97
- return body(self, a2, b2);
97
+ return body(self, a, b);
98
98
  };
99
99
  };
100
100
  case 4:
101
- return function(a2, b2, c2, d2) {
101
+ return function(a, b, c, d) {
102
102
  if (arguments.length >= 4) {
103
- return body(a2, b2, c2, d2);
103
+ return body(a, b, c, d);
104
104
  }
105
105
  return function(self) {
106
- return body(self, a2, b2, c2);
106
+ return body(self, a, b, c);
107
107
  };
108
108
  };
109
109
  case 5:
110
- return function(a2, b2, c2, d2, e2) {
110
+ return function(a, b, c, d, e) {
111
111
  if (arguments.length >= 5) {
112
- return body(a2, b2, c2, d2, e2);
112
+ return body(a, b, c, d, e);
113
113
  }
114
114
  return function(self) {
115
- return body(self, a2, b2, c2, d2);
115
+ return body(self, a, b, c, d);
116
116
  };
117
117
  };
118
118
  default:
@@ -127,9 +127,9 @@ var dual = function(arity, body) {
127
127
  };
128
128
  }
129
129
  };
130
- var apply = (a2) => (self) => self(a2);
131
- var identity = (a2) => a2;
132
- var satisfies = () => (b2) => b2;
130
+ var apply = (a) => (self) => self(a);
131
+ var identity = (a) => a;
132
+ var satisfies = () => (b) => b;
133
133
  var unsafeCoerce = identity;
134
134
  var constant = (value) => () => value;
135
135
  var constTrue = /* @__PURE__ */ constant(true);
@@ -137,37 +137,37 @@ var constFalse = /* @__PURE__ */ constant(false);
137
137
  var constNull = /* @__PURE__ */ constant(null);
138
138
  var constUndefined = /* @__PURE__ */ constant(void 0);
139
139
  var constVoid = constUndefined;
140
- var flip = (f2) => (...b2) => (...a2) => f2(...a2)(...b2);
141
- var compose = /* @__PURE__ */ dual(2, (ab, bc) => (a2) => bc(ab(a2)));
142
- var absurd = (_2) => {
140
+ var flip = (f) => (...b) => (...a) => f(...a)(...b);
141
+ var compose = /* @__PURE__ */ dual(2, (ab, bc) => (a) => bc(ab(a)));
142
+ var absurd = (_) => {
143
143
  throw new Error("Called `absurd` function which should be uncallable");
144
144
  };
145
- var tupled = (f2) => (a2) => f2(...a2);
146
- var untupled = (f2) => (...a2) => f2(a2);
147
- function pipe(a2, ab, bc, cd, de, ef, fg, gh, hi) {
145
+ var tupled = (f) => (a) => f(...a);
146
+ var untupled = (f) => (...a) => f(a);
147
+ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
148
148
  switch (arguments.length) {
149
149
  case 1:
150
- return a2;
150
+ return a;
151
151
  case 2:
152
- return ab(a2);
152
+ return ab(a);
153
153
  case 3:
154
- return bc(ab(a2));
154
+ return bc(ab(a));
155
155
  case 4:
156
- return cd(bc(ab(a2)));
156
+ return cd(bc(ab(a)));
157
157
  case 5:
158
- return de(cd(bc(ab(a2))));
158
+ return de(cd(bc(ab(a))));
159
159
  case 6:
160
- return ef(de(cd(bc(ab(a2)))));
160
+ return ef(de(cd(bc(ab(a)))));
161
161
  case 7:
162
- return fg(ef(de(cd(bc(ab(a2))))));
162
+ return fg(ef(de(cd(bc(ab(a))))));
163
163
  case 8:
164
- return gh(fg(ef(de(cd(bc(ab(a2)))))));
164
+ return gh(fg(ef(de(cd(bc(ab(a)))))));
165
165
  case 9:
166
- return hi(gh(fg(ef(de(cd(bc(ab(a2))))))));
166
+ return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
167
167
  default: {
168
168
  let ret = arguments[0];
169
- for (let i2 = 1; i2 < arguments.length; i2++) {
170
- ret = arguments[i2](ret);
169
+ for (let i = 1; i < arguments.length; i++) {
170
+ ret = arguments[i](ret);
171
171
  }
172
172
  return ret;
173
173
  }
@@ -213,7 +213,7 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
213
213
  return;
214
214
  }
215
215
  var hole = /* @__PURE__ */ unsafeCoerce(absurd);
216
- var SK = (_2, b2) => b2;
216
+ var SK = (_, b) => b;
217
217
 
218
218
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Array.js
219
219
  var Array_exports = {};
@@ -352,8 +352,8 @@ var array = (item) => make((self, that) => {
352
352
  if (self.length !== that.length) {
353
353
  return false;
354
354
  }
355
- for (let i2 = 0; i2 < self.length; i2++) {
356
- const isEq = item(self[i2], that[i2]);
355
+ for (let i = 0; i < self.length; i++) {
356
+ const isEq = item(self[i], that[i]);
357
357
  if (!isEq) {
358
358
  return false;
359
359
  }
@@ -362,14 +362,14 @@ var array = (item) => make((self, that) => {
362
362
  });
363
363
 
364
364
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/doNotation.js
365
- var let_ = (map3) => dual(3, (self, name, f2) => map3(self, (a2) => Object.assign({}, a2, {
366
- [name]: f2(a2)
365
+ var let_ = (map3) => dual(3, (self, name, f) => map3(self, (a) => Object.assign({}, a, {
366
+ [name]: f(a)
367
367
  })));
368
- var bindTo = (map3) => dual(2, (self, name) => map3(self, (a2) => ({
369
- [name]: a2
368
+ var bindTo = (map3) => dual(2, (self, name) => map3(self, (a) => ({
369
+ [name]: a
370
370
  })));
371
- var bind = (map3, flatMap3) => dual(3, (self, name, f2) => flatMap3(self, (a2) => map3(f2(a2), (b2) => Object.assign({}, a2, {
372
- [name]: b2
371
+ var bind = (map3, flatMap3) => dual(3, (self, name, f) => flatMap3(self, (a) => map3(f(a), (b) => Object.assign({}, a, {
372
+ [name]: b
373
373
  }))));
374
374
 
375
375
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/version.js
@@ -438,7 +438,7 @@ __export(Predicate_exports, {
438
438
  tuple: () => tuple,
439
439
  xor: () => xor
440
440
  });
441
- var mapInput = /* @__PURE__ */ dual(2, (self, f2) => (b2) => self(f2(b2)));
441
+ var mapInput = /* @__PURE__ */ dual(2, (self, f) => (b) => self(f(b)));
442
442
  var isTruthy = (input) => !!input;
443
443
  var isSet = (input) => input instanceof Set;
444
444
  var isMap = (input) => input instanceof Map;
@@ -452,8 +452,8 @@ var isUndefined = (input) => input === void 0;
452
452
  var isNotUndefined = (input) => input !== void 0;
453
453
  var isNull = (input) => input === null;
454
454
  var isNotNull = (input) => input !== null;
455
- var isNever = (_2) => false;
456
- var isUnknown = (_2) => true;
455
+ var isNever = (_) => false;
456
+ var isUnknown = (_) => true;
457
457
  var isRecordOrArray = (input) => typeof input === "object" && input !== null;
458
458
  var isObject = (input) => isRecordOrArray(input) || isFunction2(input);
459
459
  var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObject(self) && property in self);
@@ -468,16 +468,16 @@ var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
468
468
  var isReadonlyRecord = isRecord;
469
469
  var isPromise = (input) => hasProperty(input, "then") && "catch" in input && isFunction2(input.then) && isFunction2(input.catch);
470
470
  var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
471
- var compose2 = /* @__PURE__ */ dual(2, (ab, bc) => (a2) => ab(a2) && bc(a2));
472
- var product = (self, that) => ([a2, b2]) => self(a2) && that(b2);
471
+ var compose2 = /* @__PURE__ */ dual(2, (ab, bc) => (a) => ab(a) && bc(a));
472
+ var product = (self, that) => ([a, b]) => self(a) && that(b);
473
473
  var all = (collection) => {
474
474
  return (as2) => {
475
475
  let collectionIndex = 0;
476
- for (const p2 of collection) {
476
+ for (const p of collection) {
477
477
  if (collectionIndex >= as2.length) {
478
478
  break;
479
479
  }
480
- if (p2(as2[collectionIndex]) === false) {
480
+ if (p(as2[collectionIndex]) === false) {
481
481
  return false;
482
482
  }
483
483
  collectionIndex++;
@@ -492,34 +492,34 @@ var productMany = (self, collection) => {
492
492
  var tuple = (...elements) => all(elements);
493
493
  var struct = (fields) => {
494
494
  const keys2 = Object.keys(fields);
495
- return (a2) => {
495
+ return (a) => {
496
496
  for (const key of keys2) {
497
- if (!fields[key](a2[key])) {
497
+ if (!fields[key](a[key])) {
498
498
  return false;
499
499
  }
500
500
  }
501
501
  return true;
502
502
  };
503
503
  };
504
- var not = (self) => (a2) => !self(a2);
505
- var or = /* @__PURE__ */ dual(2, (self, that) => (a2) => self(a2) || that(a2));
506
- var and = /* @__PURE__ */ dual(2, (self, that) => (a2) => self(a2) && that(a2));
507
- var xor = /* @__PURE__ */ dual(2, (self, that) => (a2) => self(a2) !== that(a2));
508
- var eqv = /* @__PURE__ */ dual(2, (self, that) => (a2) => self(a2) === that(a2));
509
- var implies = /* @__PURE__ */ dual(2, (self, that) => (a2) => self(a2) ? that(a2) : true);
510
- var nor = /* @__PURE__ */ dual(2, (self, that) => (a2) => !(self(a2) || that(a2)));
511
- var nand = /* @__PURE__ */ dual(2, (self, that) => (a2) => !(self(a2) && that(a2)));
512
- var every = (collection) => (a2) => {
513
- for (const p2 of collection) {
514
- if (!p2(a2)) {
504
+ var not = (self) => (a) => !self(a);
505
+ var or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
506
+ var and = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) && that(a));
507
+ var xor = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) !== that(a));
508
+ var eqv = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) === that(a));
509
+ var implies = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) ? that(a) : true);
510
+ var nor = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) || that(a)));
511
+ var nand = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) && that(a)));
512
+ var every = (collection) => (a) => {
513
+ for (const p of collection) {
514
+ if (!p(a)) {
515
515
  return false;
516
516
  }
517
517
  }
518
518
  return true;
519
519
  };
520
- var some = (collection) => (a2) => {
521
- for (const p2 of collection) {
522
- if (p2(a2)) {
520
+ var some = (collection) => (a) => {
521
+ for (const p of collection) {
522
+ if (p(a)) {
523
523
  return true;
524
524
  }
525
525
  }
@@ -531,7 +531,7 @@ var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue
531
531
 
532
532
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Utils.js
533
533
  var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
534
- var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
534
+ var isGenKind = (u) => isObject(u) && GenKindTypeId in u;
535
535
  var GenKindImpl = class {
536
536
  value;
537
537
  constructor(value) {
@@ -547,19 +547,19 @@ var GenKindImpl = class {
547
547
  * @since 2.0.0
548
548
  */
549
549
  get _R() {
550
- return (_2) => _2;
550
+ return (_) => _;
551
551
  }
552
552
  /**
553
553
  * @since 2.0.0
554
554
  */
555
555
  get _O() {
556
- return (_2) => _2;
556
+ return (_) => _;
557
557
  }
558
558
  /**
559
559
  * @since 2.0.0
560
560
  */
561
561
  get _E() {
562
- return (_2) => _2;
562
+ return (_) => _;
563
563
  }
564
564
  /**
565
565
  * @since 2.0.0
@@ -581,9 +581,9 @@ var SingleShotGen = class _SingleShotGen {
581
581
  /**
582
582
  * @since 2.0.0
583
583
  */
584
- next(a2) {
584
+ next(a) {
585
585
  return this.called ? {
586
- value: a2,
586
+ value: a,
587
587
  done: true
588
588
  } : (this.called = true, {
589
589
  value: this.self,
@@ -593,17 +593,17 @@ var SingleShotGen = class _SingleShotGen {
593
593
  /**
594
594
  * @since 2.0.0
595
595
  */
596
- return(a2) {
596
+ return(a) {
597
597
  return {
598
- value: a2,
598
+ value: a,
599
599
  done: true
600
600
  };
601
601
  }
602
602
  /**
603
603
  * @since 2.0.0
604
604
  */
605
- throw(e2) {
606
- throw e2;
605
+ throw(e) {
606
+ throw e;
607
607
  }
608
608
  /**
609
609
  * @since 2.0.0
@@ -613,11 +613,11 @@ var SingleShotGen = class _SingleShotGen {
613
613
  }
614
614
  };
615
615
  var adapter = () => function() {
616
- let x2 = arguments[0];
617
- for (let i2 = 1; i2 < arguments.length; i2++) {
618
- x2 = arguments[i2](x2);
616
+ let x = arguments[0];
617
+ for (let i = 1; i < arguments.length; i++) {
618
+ x = arguments[i](x);
619
619
  }
620
- return new GenKindImpl(x2);
620
+ return new GenKindImpl(x);
621
621
  };
622
622
  var defaultIncHi = 335903614;
623
623
  var defaultIncLo = 4150755663;
@@ -815,28 +815,28 @@ var random = (self) => {
815
815
  }
816
816
  return randomHashCache.get(self);
817
817
  };
818
- var combine = (b2) => (self) => self * 53 ^ b2;
819
- var optimize = (n2) => n2 & 3221225471 | n2 >>> 1 & 1073741824;
820
- var isHash = (u2) => hasProperty(u2, symbol);
821
- var number = (n2) => {
822
- if (n2 !== n2 || n2 === Infinity) {
818
+ var combine = (b) => (self) => self * 53 ^ b;
819
+ var optimize = (n) => n & 3221225471 | n >>> 1 & 1073741824;
820
+ var isHash = (u) => hasProperty(u, symbol);
821
+ var number = (n) => {
822
+ if (n !== n || n === Infinity) {
823
823
  return 0;
824
824
  }
825
- let h2 = n2 | 0;
826
- if (h2 !== n2) {
827
- h2 ^= n2 * 4294967295;
825
+ let h = n | 0;
826
+ if (h !== n) {
827
+ h ^= n * 4294967295;
828
828
  }
829
- while (n2 > 4294967295) {
830
- h2 ^= n2 /= 4294967295;
829
+ while (n > 4294967295) {
830
+ h ^= n /= 4294967295;
831
831
  }
832
- return optimize(n2);
832
+ return optimize(n);
833
833
  };
834
834
  var string = (str) => {
835
- let h2 = 5381, i2 = str.length;
836
- while (i2) {
837
- h2 = h2 * 33 ^ str.charCodeAt(--i2);
835
+ let h = 5381, i = str.length;
836
+ while (i) {
837
+ h = h * 33 ^ str.charCodeAt(--i);
838
838
  }
839
- return optimize(h2);
839
+ return optimize(h);
840
840
  };
841
841
  var cached = function() {
842
842
  if (arguments.length === 1) {
@@ -890,7 +890,7 @@ function compareBoth(self, that) {
890
890
  }
891
891
  if (structuralRegionState.enabled) {
892
892
  if (Array.isArray(self) && Array.isArray(that)) {
893
- return self.length === that.length && self.every((v2, i2) => compareBoth(v2, that[i2]));
893
+ return self.length === that.length && self.every((v, i) => compareBoth(v, that[i]));
894
894
  }
895
895
  if (Object.getPrototypeOf(self) === Object.prototype && Object.getPrototypeOf(self) === Object.prototype) {
896
896
  const keysSelf = Object.keys(self);
@@ -909,20 +909,20 @@ function compareBoth(self, that) {
909
909
  }
910
910
  return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
911
911
  }
912
- var isEqual = (u2) => hasProperty(u2, symbol2);
912
+ var isEqual = (u) => hasProperty(u, symbol2);
913
913
  var equivalence = () => equals;
914
914
 
915
915
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Inspectable.js
916
916
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
917
- var toJSON = (x2) => {
918
- if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
919
- return x2.toJSON();
920
- } else if (Array.isArray(x2)) {
921
- return x2.map(toJSON);
917
+ var toJSON = (x) => {
918
+ if (hasProperty(x, "toJSON") && isFunction2(x["toJSON"]) && x["toJSON"].length === 0) {
919
+ return x.toJSON();
920
+ } else if (Array.isArray(x)) {
921
+ return x.map(toJSON);
922
922
  }
923
- return x2;
923
+ return x;
924
924
  };
925
- var format = (x2) => JSON.stringify(x2, null, 2);
925
+ var format = (x) => JSON.stringify(x, null, 2);
926
926
 
927
927
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Pipeable.js
928
928
  var pipeArguments = (self, args) => {
@@ -947,8 +947,8 @@ var pipeArguments = (self, args) => {
947
947
  return args[8](args[7](args[6](args[5](args[4](args[3](args[2](args[1](args[0](self)))))))));
948
948
  default: {
949
949
  let ret = self;
950
- for (let i2 = 0, len = args.length; i2 < len; i2++) {
951
- ret = args[i2](ret);
950
+ for (let i = 0, len = args.length; i < len; i++) {
951
+ ret = args[i](ret);
952
952
  }
953
953
  return ret;
954
954
  }
@@ -962,40 +962,40 @@ var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
962
962
  var ChannelTypeId = /* @__PURE__ */ Symbol.for("effect/Channel");
963
963
  var effectVariance = {
964
964
  /* c8 ignore next */
965
- _R: (_2) => _2,
965
+ _R: (_) => _,
966
966
  /* c8 ignore next */
967
- _E: (_2) => _2,
967
+ _E: (_) => _,
968
968
  /* c8 ignore next */
969
- _A: (_2) => _2,
969
+ _A: (_) => _,
970
970
  _V: /* @__PURE__ */ getCurrentVersion()
971
971
  };
972
972
  var sinkVariance = {
973
973
  /* c8 ignore next */
974
- _A: (_2) => _2,
974
+ _A: (_) => _,
975
975
  /* c8 ignore next */
976
- _In: (_2) => _2,
976
+ _In: (_) => _,
977
977
  /* c8 ignore next */
978
- _L: (_2) => _2,
978
+ _L: (_) => _,
979
979
  /* c8 ignore next */
980
- _E: (_2) => _2,
980
+ _E: (_) => _,
981
981
  /* c8 ignore next */
982
- _R: (_2) => _2
982
+ _R: (_) => _
983
983
  };
984
984
  var channelVariance = {
985
985
  /* c8 ignore next */
986
- _Env: (_2) => _2,
986
+ _Env: (_) => _,
987
987
  /* c8 ignore next */
988
- _InErr: (_2) => _2,
988
+ _InErr: (_) => _,
989
989
  /* c8 ignore next */
990
- _InElem: (_2) => _2,
990
+ _InElem: (_) => _,
991
991
  /* c8 ignore next */
992
- _InDone: (_2) => _2,
992
+ _InDone: (_) => _,
993
993
  /* c8 ignore next */
994
- _OutErr: (_2) => _2,
994
+ _OutErr: (_) => _,
995
995
  /* c8 ignore next */
996
- _OutElem: (_2) => _2,
996
+ _OutElem: (_) => _,
997
997
  /* c8 ignore next */
998
- _OutDone: (_2) => _2
998
+ _OutDone: (_) => _
999
999
  };
1000
1000
  var EffectPrototype = {
1001
1001
  [EffectTypeId]: effectVariance,
@@ -1021,7 +1021,7 @@ var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
1021
1021
  var CommonProto = {
1022
1022
  ...EffectPrototype,
1023
1023
  [TypeId]: {
1024
- _A: (_2) => _2
1024
+ _A: (_) => _
1025
1025
  },
1026
1026
  [NodeInspectSymbol]() {
1027
1027
  return this.toJSON();
@@ -1069,9 +1069,9 @@ var isNone = (fa) => fa._tag === "None";
1069
1069
  var isSome = (fa) => fa._tag === "Some";
1070
1070
  var none = /* @__PURE__ */ Object.create(NoneProto);
1071
1071
  var some2 = (value) => {
1072
- const a2 = Object.create(SomeProto);
1073
- a2.value = value;
1074
- return a2;
1072
+ const a = Object.create(SomeProto);
1073
+ a.value = value;
1074
+ return a;
1075
1075
  };
1076
1076
 
1077
1077
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/internal/either.js
@@ -1079,7 +1079,7 @@ var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
1079
1079
  var CommonProto2 = {
1080
1080
  ...EffectPrototype,
1081
1081
  [TypeId2]: {
1082
- _R: (_2) => _2
1082
+ _R: (_) => _
1083
1083
  },
1084
1084
  [NodeInspectSymbol]() {
1085
1085
  return this.toJSON();
@@ -1126,14 +1126,14 @@ var isEither = (input) => hasProperty(input, TypeId2);
1126
1126
  var isLeft = (ma) => ma._tag === "Left";
1127
1127
  var isRight = (ma) => ma._tag === "Right";
1128
1128
  var left = (left2) => {
1129
- const a2 = Object.create(LeftProto);
1130
- a2.left = left2;
1131
- return a2;
1129
+ const a = Object.create(LeftProto);
1130
+ a.left = left2;
1131
+ return a;
1132
1132
  };
1133
1133
  var right = (right2) => {
1134
- const a2 = Object.create(RightProto);
1135
- a2.right = right2;
1136
- return a2;
1134
+ const a = Object.create(RightProto);
1135
+ a.right = right2;
1136
+ return a;
1137
1137
  };
1138
1138
  var getLeft = (self) => isRight(self) ? none : some2(self.left);
1139
1139
  var getRight = (self) => isLeft(self) ? none : some2(self.right);
@@ -1215,8 +1215,8 @@ var combineMany = /* @__PURE__ */ dual(2, (self, collection) => make2((a1, a2) =
1215
1215
  if (out !== 0) {
1216
1216
  return out;
1217
1217
  }
1218
- for (const O2 of collection) {
1219
- out = O2(a1, a2);
1218
+ for (const O of collection) {
1219
+ out = O(a1, a2);
1220
1220
  if (out !== 0) {
1221
1221
  return out;
1222
1222
  }
@@ -1225,21 +1225,21 @@ var combineMany = /* @__PURE__ */ dual(2, (self, collection) => make2((a1, a2) =
1225
1225
  }));
1226
1226
  var empty = () => make2(() => 0);
1227
1227
  var combineAll = (collection) => combineMany(empty(), collection);
1228
- var mapInput2 = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b1), f2(b2))));
1229
- var array2 = (O2) => make2((self, that) => {
1228
+ var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
1229
+ var array2 = (O) => make2((self, that) => {
1230
1230
  const aLen = self.length;
1231
1231
  const bLen = that.length;
1232
1232
  const len = Math.min(aLen, bLen);
1233
- for (let i2 = 0; i2 < len; i2++) {
1234
- const o2 = O2(self[i2], that[i2]);
1235
- if (o2 !== 0) {
1236
- return o2;
1233
+ for (let i = 0; i < len; i++) {
1234
+ const o = O(self[i], that[i]);
1235
+ if (o !== 0) {
1236
+ return o;
1237
1237
  }
1238
1238
  }
1239
1239
  return number2(aLen, bLen);
1240
1240
  });
1241
- var min = (O2) => dual(2, (self, that) => self === that || O2(self, that) < 1 ? self : that);
1242
- var max = (O2) => dual(2, (self, that) => self === that || O2(self, that) > -1 ? self : that);
1241
+ var min = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
1242
+ var max = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
1243
1243
 
1244
1244
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Option.js
1245
1245
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
@@ -1252,10 +1252,10 @@ var match = /* @__PURE__ */ dual(2, (self, {
1252
1252
  onNone,
1253
1253
  onSome
1254
1254
  }) => isNone2(self) ? onNone() : onSome(self.value));
1255
- var toRefinement = (f2) => (a2) => isSome2(f2(a2));
1255
+ var toRefinement = (f) => (a) => isSome2(f(a));
1256
1256
  var fromIterable = (collection) => {
1257
- for (const a2 of collection) {
1258
- return some3(a2);
1257
+ for (const a of collection) {
1258
+ return some3(a);
1259
1259
  }
1260
1260
  return none2();
1261
1261
  };
@@ -1275,13 +1275,13 @@ var firstSomeOf = (collection) => {
1275
1275
  return out;
1276
1276
  };
1277
1277
  var fromNullable = (nullableValue) => nullableValue == null ? none2() : some3(nullableValue);
1278
- var liftNullable = (f2) => (...a2) => fromNullable(f2(...a2));
1278
+ var liftNullable = (f) => (...a) => fromNullable(f(...a));
1279
1279
  var getOrNull = /* @__PURE__ */ getOrElse(constNull);
1280
1280
  var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
1281
- var liftThrowable = (f2) => (...a2) => {
1281
+ var liftThrowable = (f) => (...a) => {
1282
1282
  try {
1283
- return some3(f2(...a2));
1284
- } catch (e2) {
1283
+ return some3(f(...a));
1284
+ } catch (e) {
1285
1285
  return none2();
1286
1286
  }
1287
1287
  };
@@ -1292,82 +1292,82 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
1292
1292
  throw onNone();
1293
1293
  });
1294
1294
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
1295
- var map = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : some3(f2(self.value)));
1296
- var as = /* @__PURE__ */ dual(2, (self, b2) => map(self, () => b2));
1295
+ var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some3(f(self.value)));
1296
+ var as = /* @__PURE__ */ dual(2, (self, b) => map(self, () => b));
1297
1297
  var asVoid = /* @__PURE__ */ as(void 0);
1298
1298
  var void_ = /* @__PURE__ */ some3(void 0);
1299
- var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2(self.value));
1300
- var andThen = /* @__PURE__ */ dual(2, (self, f2) => flatMap(self, (a2) => {
1301
- const b2 = isFunction(f2) ? f2(a2) : f2;
1302
- return isOption2(b2) ? b2 : some3(b2);
1299
+ var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
1300
+ var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
1301
+ const b = isFunction(f) ? f(a) : f;
1302
+ return isOption2(b) ? b : some3(b);
1303
1303
  }));
1304
- var flatMapNullable = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : fromNullable(f2(self.value)));
1304
+ var flatMapNullable = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : fromNullable(f(self.value)));
1305
1305
  var flatten = /* @__PURE__ */ flatMap(identity);
1306
1306
  var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that));
1307
- var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a2) => flatMap(afb(a2), bfc));
1307
+ var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a) => flatMap(afb(a), bfc));
1308
1308
  var zipLeft = /* @__PURE__ */ dual(2, (self, that) => tap(self, () => that));
1309
- var tap = /* @__PURE__ */ dual(2, (self, f2) => flatMap(self, (a2) => map(f2(a2), () => a2)));
1309
+ var tap = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => map(f(a), () => a)));
1310
1310
  var product2 = (self, that) => isSome2(self) && isSome2(that) ? some3([self.value, that.value]) : none2();
1311
1311
  var productMany2 = (self, collection) => {
1312
1312
  if (isNone2(self)) {
1313
1313
  return none2();
1314
1314
  }
1315
1315
  const out = [self.value];
1316
- for (const o2 of collection) {
1317
- if (isNone2(o2)) {
1316
+ for (const o of collection) {
1317
+ if (isNone2(o)) {
1318
1318
  return none2();
1319
1319
  }
1320
- out.push(o2.value);
1320
+ out.push(o.value);
1321
1321
  }
1322
1322
  return some3(out);
1323
1323
  };
1324
1324
  var all2 = (input) => {
1325
1325
  if (Symbol.iterator in input) {
1326
1326
  const out2 = [];
1327
- for (const o2 of input) {
1328
- if (isNone2(o2)) {
1327
+ for (const o of input) {
1328
+ if (isNone2(o)) {
1329
1329
  return none2();
1330
1330
  }
1331
- out2.push(o2.value);
1331
+ out2.push(o.value);
1332
1332
  }
1333
1333
  return some3(out2);
1334
1334
  }
1335
1335
  const out = {};
1336
1336
  for (const key of Object.keys(input)) {
1337
- const o2 = input[key];
1338
- if (isNone2(o2)) {
1337
+ const o = input[key];
1338
+ if (isNone2(o)) {
1339
1339
  return none2();
1340
1340
  }
1341
- out[key] = o2.value;
1341
+ out[key] = o.value;
1342
1342
  }
1343
1343
  return some3(out);
1344
1344
  };
1345
- var zipWith = /* @__PURE__ */ dual(3, (self, that, f2) => map(product2(self, that), ([a2, b2]) => f2(a2, b2)));
1346
- var ap = /* @__PURE__ */ dual(2, (self, that) => zipWith(self, that, (f2, a2) => f2(a2)));
1347
- var reduceCompact = /* @__PURE__ */ dual(3, (self, b2, f2) => {
1348
- let out = b2;
1345
+ var zipWith = /* @__PURE__ */ dual(3, (self, that, f) => map(product2(self, that), ([a, b]) => f(a, b)));
1346
+ var ap = /* @__PURE__ */ dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
1347
+ var reduceCompact = /* @__PURE__ */ dual(3, (self, b, f) => {
1348
+ let out = b;
1349
1349
  for (const oa of self) {
1350
1350
  if (isSome2(oa)) {
1351
- out = f2(out, oa.value);
1351
+ out = f(out, oa.value);
1352
1352
  }
1353
1353
  }
1354
1354
  return out;
1355
1355
  });
1356
1356
  var toArray = (self) => isNone2(self) ? [] : [self.value];
1357
- var partitionMap = /* @__PURE__ */ dual(2, (self, f2) => {
1357
+ var partitionMap = /* @__PURE__ */ dual(2, (self, f) => {
1358
1358
  if (isNone2(self)) {
1359
1359
  return [none2(), none2()];
1360
1360
  }
1361
- const e2 = f2(self.value);
1362
- return isLeft(e2) ? [some3(e2.left), none2()] : [none2(), some3(e2.right)];
1361
+ const e = f(self.value);
1362
+ return isLeft(e) ? [some3(e.left), none2()] : [none2(), some3(e.right)];
1363
1363
  });
1364
- var filterMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2(self.value));
1365
- var filter = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b2) => predicate(b2) ? some2(b2) : none));
1366
- var getEquivalence = (isEquivalent) => make((x2, y2) => x2 === y2 || (isNone2(x2) ? isNone2(y2) : isNone2(y2) ? false : isEquivalent(x2.value, y2.value)));
1367
- var getOrder = (O2) => make2((self, that) => isSome2(self) ? isSome2(that) ? O2(self.value, that.value) : 1 : -1);
1368
- var lift2 = (f2) => dual(2, (self, that) => zipWith(self, that, f2));
1369
- var liftPredicate = (predicate) => (b2) => predicate(b2) ? some3(b2) : none2();
1370
- var containsWith = (isEquivalent) => dual(2, (self, a2) => isNone2(self) ? false : isEquivalent(self.value, a2));
1364
+ var filterMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
1365
+ var filter = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b) => predicate(b) ? some2(b) : none));
1366
+ var getEquivalence = (isEquivalent) => make((x, y) => x === y || (isNone2(x) ? isNone2(y) : isNone2(y) ? false : isEquivalent(x.value, y.value)));
1367
+ var getOrder = (O) => make2((self, that) => isSome2(self) ? isSome2(that) ? O(self.value, that.value) : 1 : -1);
1368
+ var lift2 = (f) => dual(2, (self, that) => zipWith(self, that, f));
1369
+ var liftPredicate = (predicate) => (b) => predicate(b) ? some3(b) : none2();
1370
+ var containsWith = (isEquivalent) => dual(2, (self, a) => isNone2(self) ? false : isEquivalent(self.value, a));
1371
1371
  var _equivalence = /* @__PURE__ */ equivalence();
1372
1372
  var contains = /* @__PURE__ */ containsWith(_equivalence);
1373
1373
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
@@ -1376,8 +1376,8 @@ var let_2 = /* @__PURE__ */ let_(map);
1376
1376
  var bind2 = /* @__PURE__ */ bind(map, flatMap);
1377
1377
  var Do = /* @__PURE__ */ some3({});
1378
1378
  var adapter2 = /* @__PURE__ */ adapter();
1379
- var gen = (f2) => {
1380
- const iterator = f2(adapter2);
1379
+ var gen = (f) => {
1380
+ const iterator = f(adapter2);
1381
1381
  let state = iterator.next();
1382
1382
  if (state.done) {
1383
1383
  return some3(state.value);
@@ -1413,29 +1413,29 @@ var gen = (f2) => {
1413
1413
  var make3 = (...elements) => elements;
1414
1414
 
1415
1415
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Iterable.js
1416
- var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
1417
- let i2 = 0;
1418
- for (const a2 of self) {
1419
- const o2 = f2(a2, i2);
1420
- if (isBoolean(o2)) {
1421
- if (o2) {
1422
- return some3(a2);
1416
+ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
1417
+ let i = 0;
1418
+ for (const a of self) {
1419
+ const o = f(a, i);
1420
+ if (isBoolean(o)) {
1421
+ if (o) {
1422
+ return some3(a);
1423
1423
  }
1424
1424
  } else {
1425
- if (isSome2(o2)) {
1426
- return o2;
1425
+ if (isSome2(o)) {
1426
+ return o;
1427
1427
  }
1428
1428
  }
1429
- i2++;
1429
+ i++;
1430
1430
  }
1431
1431
  return none2();
1432
1432
  });
1433
1433
 
1434
1434
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Record.js
1435
- var collect = /* @__PURE__ */ dual(2, (self, f2) => {
1435
+ var collect = /* @__PURE__ */ dual(2, (self, f) => {
1436
1436
  const out = [];
1437
1437
  for (const key of keys(self)) {
1438
- out.push(f2(key, self[key]));
1438
+ out.push(f(key, self[key]));
1439
1439
  }
1440
1440
  return out;
1441
1441
  });
@@ -1444,17 +1444,17 @@ var keys = (self) => Object.keys(self);
1444
1444
 
1445
1445
  // ../../../node_modules/.pnpm/effect@3.2.5/node_modules/effect/dist/esm/Array.js
1446
1446
  var make4 = (...elements) => elements;
1447
- var allocate = (n2) => new Array(n2);
1448
- var makeBy = (n2, f2) => {
1449
- const max3 = Math.max(1, Math.floor(n2));
1447
+ var allocate = (n) => new Array(n);
1448
+ var makeBy = (n, f) => {
1449
+ const max3 = Math.max(1, Math.floor(n));
1450
1450
  const out = new Array(max3);
1451
- for (let i2 = 0; i2 < max3; i2++) {
1452
- out[i2] = f2(i2);
1451
+ for (let i = 0; i < max3; i++) {
1452
+ out[i] = f(i);
1453
1453
  }
1454
1454
  return out;
1455
1455
  };
1456
- var range = (start, end) => start <= end ? makeBy(end - start + 1, (i2) => start + i2) : [start];
1457
- var replicate = /* @__PURE__ */ dual(2, (a2, n2) => makeBy(n2, () => a2));
1456
+ var range = (start, end) => start <= end ? makeBy(end - start + 1, (i) => start + i) : [start];
1457
+ var replicate = /* @__PURE__ */ dual(2, (a, n) => makeBy(n, () => a));
1458
1458
  var fromIterable2 = (collection) => Array.isArray(collection) ? collection : Array.from(collection);
1459
1459
  var fromRecord = toEntries;
1460
1460
  var fromOption2 = toArray;
@@ -1474,21 +1474,21 @@ var prepend = /* @__PURE__ */ dual(2, (self, head2) => [head2, ...self]);
1474
1474
  var prependAll = /* @__PURE__ */ dual(2, (self, that) => fromIterable2(that).concat(fromIterable2(self)));
1475
1475
  var append = /* @__PURE__ */ dual(2, (self, last2) => [...self, last2]);
1476
1476
  var appendAll = /* @__PURE__ */ dual(2, (self, that) => fromIterable2(self).concat(fromIterable2(that)));
1477
- var scan = /* @__PURE__ */ dual(3, (self, b2, f2) => {
1478
- const out = [b2];
1479
- let i2 = 0;
1480
- for (const a2 of self) {
1481
- out[i2 + 1] = f2(out[i2], a2);
1482
- i2++;
1477
+ var scan = /* @__PURE__ */ dual(3, (self, b, f) => {
1478
+ const out = [b];
1479
+ let i = 0;
1480
+ for (const a of self) {
1481
+ out[i + 1] = f(out[i], a);
1482
+ i++;
1483
1483
  }
1484
1484
  return out;
1485
1485
  });
1486
- var scanRight = /* @__PURE__ */ dual(3, (self, b2, f2) => {
1486
+ var scanRight = /* @__PURE__ */ dual(3, (self, b, f) => {
1487
1487
  const input = fromIterable2(self);
1488
1488
  const out = new Array(input.length + 1);
1489
- out[input.length] = b2;
1490
- for (let i2 = input.length - 1; i2 >= 0; i2--) {
1491
- out[i2] = f2(out[i2 + 1], input[i2]);
1489
+ out[input.length] = b;
1490
+ for (let i = input.length - 1; i >= 0; i--) {
1491
+ out[i] = f(out[i + 1], input[i]);
1492
1492
  }
1493
1493
  return out;
1494
1494
  });
@@ -1498,18 +1498,18 @@ var isEmptyReadonlyArray = isEmptyArray;
1498
1498
  var isNonEmptyArray2 = isNonEmptyArray;
1499
1499
  var isNonEmptyReadonlyArray = isNonEmptyArray;
1500
1500
  var length = (self) => self.length;
1501
- var isOutOfBound = (i2, as2) => i2 < 0 || i2 >= as2.length;
1502
- var clamp = (i2, as2) => Math.floor(Math.min(Math.max(0, i2), as2.length));
1501
+ var isOutOfBound = (i, as2) => i < 0 || i >= as2.length;
1502
+ var clamp = (i, as2) => Math.floor(Math.min(Math.max(0, i), as2.length));
1503
1503
  var get = /* @__PURE__ */ dual(2, (self, index) => {
1504
- const i2 = Math.floor(index);
1505
- return isOutOfBound(i2, self) ? none2() : some3(self[i2]);
1504
+ const i = Math.floor(index);
1505
+ return isOutOfBound(i, self) ? none2() : some3(self[i]);
1506
1506
  });
1507
1507
  var unsafeGet = /* @__PURE__ */ dual(2, (self, index) => {
1508
- const i2 = Math.floor(index);
1509
- if (isOutOfBound(i2, self)) {
1510
- throw new Error(`Index ${i2} out of bounds`);
1508
+ const i = Math.floor(index);
1509
+ if (isOutOfBound(i, self)) {
1510
+ throw new Error(`Index ${i} out of bounds`);
1511
1511
  }
1512
- return self[i2];
1512
+ return self[i];
1513
1513
  });
1514
1514
  var unprepend = (self) => [headNonEmpty(self), tailNonEmpty(self)];
1515
1515
  var unappend = (self) => [initNonEmpty(self), lastNonEmpty(self)];
@@ -1527,119 +1527,119 @@ var init = (self) => {
1527
1527
  return isNonEmptyReadonlyArray(input) ? some3(initNonEmpty(input)) : none2();
1528
1528
  };
1529
1529
  var initNonEmpty = (self) => self.slice(0, -1);
1530
- var take = /* @__PURE__ */ dual(2, (self, n2) => {
1530
+ var take = /* @__PURE__ */ dual(2, (self, n) => {
1531
1531
  const input = fromIterable2(self);
1532
- return input.slice(0, clamp(n2, input));
1532
+ return input.slice(0, clamp(n, input));
1533
1533
  });
1534
- var takeRight = /* @__PURE__ */ dual(2, (self, n2) => {
1534
+ var takeRight = /* @__PURE__ */ dual(2, (self, n) => {
1535
1535
  const input = fromIterable2(self);
1536
- const i2 = clamp(n2, input);
1537
- return i2 === 0 ? [] : input.slice(-i2);
1536
+ const i = clamp(n, input);
1537
+ return i === 0 ? [] : input.slice(-i);
1538
1538
  });
1539
1539
  var takeWhile = /* @__PURE__ */ dual(2, (self, predicate) => {
1540
- let i2 = 0;
1540
+ let i = 0;
1541
1541
  const out = [];
1542
- for (const a2 of self) {
1543
- if (!predicate(a2, i2)) {
1542
+ for (const a of self) {
1543
+ if (!predicate(a, i)) {
1544
1544
  break;
1545
1545
  }
1546
- out.push(a2);
1547
- i2++;
1546
+ out.push(a);
1547
+ i++;
1548
1548
  }
1549
1549
  return out;
1550
1550
  });
1551
1551
  var spanIndex = (self, predicate) => {
1552
- let i2 = 0;
1553
- for (const a2 of self) {
1554
- if (!predicate(a2, i2)) {
1552
+ let i = 0;
1553
+ for (const a of self) {
1554
+ if (!predicate(a, i)) {
1555
1555
  break;
1556
1556
  }
1557
- i2++;
1557
+ i++;
1558
1558
  }
1559
- return i2;
1559
+ return i;
1560
1560
  };
1561
1561
  var span = /* @__PURE__ */ dual(2, (self, predicate) => splitAt(self, spanIndex(self, predicate)));
1562
- var drop = /* @__PURE__ */ dual(2, (self, n2) => {
1562
+ var drop = /* @__PURE__ */ dual(2, (self, n) => {
1563
1563
  const input = fromIterable2(self);
1564
- return input.slice(clamp(n2, input), input.length);
1564
+ return input.slice(clamp(n, input), input.length);
1565
1565
  });
1566
- var dropRight = /* @__PURE__ */ dual(2, (self, n2) => {
1566
+ var dropRight = /* @__PURE__ */ dual(2, (self, n) => {
1567
1567
  const input = fromIterable2(self);
1568
- return input.slice(0, input.length - clamp(n2, input));
1568
+ return input.slice(0, input.length - clamp(n, input));
1569
1569
  });
1570
1570
  var dropWhile = /* @__PURE__ */ dual(2, (self, predicate) => fromIterable2(self).slice(spanIndex(self, predicate)));
1571
1571
  var findFirstIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
1572
- let i2 = 0;
1573
- for (const a2 of self) {
1574
- if (predicate(a2, i2)) {
1575
- return some3(i2);
1572
+ let i = 0;
1573
+ for (const a of self) {
1574
+ if (predicate(a, i)) {
1575
+ return some3(i);
1576
1576
  }
1577
- i2++;
1577
+ i++;
1578
1578
  }
1579
1579
  return none2();
1580
1580
  });
1581
1581
  var findLastIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
1582
1582
  const input = fromIterable2(self);
1583
- for (let i2 = input.length - 1; i2 >= 0; i2--) {
1584
- if (predicate(input[i2], i2)) {
1585
- return some3(i2);
1583
+ for (let i = input.length - 1; i >= 0; i--) {
1584
+ if (predicate(input[i], i)) {
1585
+ return some3(i);
1586
1586
  }
1587
1587
  }
1588
1588
  return none2();
1589
1589
  });
1590
1590
  var findFirst2 = findFirst;
1591
- var findLast = /* @__PURE__ */ dual(2, (self, f2) => {
1591
+ var findLast = /* @__PURE__ */ dual(2, (self, f) => {
1592
1592
  const input = fromIterable2(self);
1593
- for (let i2 = input.length - 1; i2 >= 0; i2--) {
1594
- const a2 = input[i2];
1595
- const o2 = f2(a2, i2);
1596
- if (isBoolean(o2)) {
1597
- if (o2) {
1598
- return some3(a2);
1593
+ for (let i = input.length - 1; i >= 0; i--) {
1594
+ const a = input[i];
1595
+ const o = f(a, i);
1596
+ if (isBoolean(o)) {
1597
+ if (o) {
1598
+ return some3(a);
1599
1599
  }
1600
1600
  } else {
1601
- if (isSome2(o2)) {
1602
- return o2;
1601
+ if (isSome2(o)) {
1602
+ return o;
1603
1603
  }
1604
1604
  }
1605
1605
  }
1606
1606
  return none2();
1607
1607
  });
1608
- var insertAt = /* @__PURE__ */ dual(3, (self, i2, b2) => {
1608
+ var insertAt = /* @__PURE__ */ dual(3, (self, i, b) => {
1609
1609
  const out = Array.from(self);
1610
- if (i2 < 0 || i2 > out.length) {
1610
+ if (i < 0 || i > out.length) {
1611
1611
  return none2();
1612
1612
  }
1613
- out.splice(i2, 0, b2);
1613
+ out.splice(i, 0, b);
1614
1614
  return some3(out);
1615
1615
  });
1616
- var replace = /* @__PURE__ */ dual(3, (self, i2, b2) => modify(self, i2, () => b2));
1617
- var replaceOption = /* @__PURE__ */ dual(3, (self, i2, b2) => modifyOption(self, i2, () => b2));
1618
- var modify = /* @__PURE__ */ dual(3, (self, i2, f2) => getOrElse(modifyOption(self, i2, f2), () => Array.from(self)));
1619
- var modifyOption = /* @__PURE__ */ dual(3, (self, i2, f2) => {
1616
+ var replace = /* @__PURE__ */ dual(3, (self, i, b) => modify(self, i, () => b));
1617
+ var replaceOption = /* @__PURE__ */ dual(3, (self, i, b) => modifyOption(self, i, () => b));
1618
+ var modify = /* @__PURE__ */ dual(3, (self, i, f) => getOrElse(modifyOption(self, i, f), () => Array.from(self)));
1619
+ var modifyOption = /* @__PURE__ */ dual(3, (self, i, f) => {
1620
1620
  const out = Array.from(self);
1621
- if (isOutOfBound(i2, out)) {
1621
+ if (isOutOfBound(i, out)) {
1622
1622
  return none2();
1623
1623
  }
1624
- const next = f2(out[i2]);
1625
- out[i2] = next;
1624
+ const next = f(out[i]);
1625
+ out[i] = next;
1626
1626
  return some3(out);
1627
1627
  });
1628
- var remove = /* @__PURE__ */ dual(2, (self, i2) => {
1628
+ var remove = /* @__PURE__ */ dual(2, (self, i) => {
1629
1629
  const out = Array.from(self);
1630
- if (isOutOfBound(i2, out)) {
1630
+ if (isOutOfBound(i, out)) {
1631
1631
  return out;
1632
1632
  }
1633
- out.splice(i2, 1);
1633
+ out.splice(i, 1);
1634
1634
  return out;
1635
1635
  });
1636
1636
  var reverse = (self) => Array.from(self).reverse();
1637
- var sort = /* @__PURE__ */ dual(2, (self, O2) => {
1637
+ var sort = /* @__PURE__ */ dual(2, (self, O) => {
1638
1638
  const out = Array.from(self);
1639
- out.sort(O2);
1639
+ out.sort(O);
1640
1640
  return out;
1641
1641
  });
1642
- var sortWith = /* @__PURE__ */ dual(3, (self, f2, order) => sort(self, mapInput2(order, f2)));
1642
+ var sortWith = /* @__PURE__ */ dual(3, (self, f, order) => sort(self, mapInput2(order, f)));
1643
1643
  var sortBy = (...orders) => {
1644
1644
  const sortByAll = sort(combineAll(orders));
1645
1645
  return (self) => {
@@ -1651,14 +1651,14 @@ var sortBy = (...orders) => {
1651
1651
  };
1652
1652
  };
1653
1653
  var zip = /* @__PURE__ */ dual(2, (self, that) => zipWith2(self, that, make3));
1654
- var zipWith2 = /* @__PURE__ */ dual(3, (self, that, f2) => {
1654
+ var zipWith2 = /* @__PURE__ */ dual(3, (self, that, f) => {
1655
1655
  const as2 = fromIterable2(self);
1656
1656
  const bs = fromIterable2(that);
1657
1657
  if (isNonEmptyReadonlyArray(as2) && isNonEmptyReadonlyArray(bs)) {
1658
- const out = [f2(headNonEmpty(as2), headNonEmpty(bs))];
1658
+ const out = [f(headNonEmpty(as2), headNonEmpty(bs))];
1659
1659
  const len = Math.min(as2.length, bs.length);
1660
- for (let i2 = 1; i2 < len; i2++) {
1661
- out[i2] = f2(as2[i2], bs[i2]);
1660
+ for (let i = 1; i < len; i++) {
1661
+ out[i] = f(as2[i], bs[i]);
1662
1662
  }
1663
1663
  return out;
1664
1664
  }
@@ -1669,9 +1669,9 @@ var unzip = (self) => {
1669
1669
  if (isNonEmptyReadonlyArray(input)) {
1670
1670
  const fa = [input[0][0]];
1671
1671
  const fb = [input[0][1]];
1672
- for (let i2 = 1; i2 < input.length; i2++) {
1673
- fa[i2] = input[i2][0];
1674
- fb[i2] = input[i2][1];
1672
+ for (let i = 1; i < input.length; i++) {
1673
+ fa[i] = input[i][0];
1674
+ fb[i] = input[i][1];
1675
1675
  }
1676
1676
  return [fa, fb];
1677
1677
  }
@@ -1682,40 +1682,40 @@ var intersperse = /* @__PURE__ */ dual(2, (self, middle) => {
1682
1682
  if (isNonEmptyReadonlyArray(input)) {
1683
1683
  const out = [headNonEmpty(input)];
1684
1684
  const tail2 = tailNonEmpty(input);
1685
- for (let i2 = 0; i2 < tail2.length; i2++) {
1686
- if (i2 < tail2.length) {
1685
+ for (let i = 0; i < tail2.length; i++) {
1686
+ if (i < tail2.length) {
1687
1687
  out.push(middle);
1688
1688
  }
1689
- out.push(tail2[i2]);
1689
+ out.push(tail2[i]);
1690
1690
  }
1691
1691
  return out;
1692
1692
  }
1693
1693
  return [];
1694
1694
  });
1695
- var modifyNonEmptyHead = /* @__PURE__ */ dual(2, (self, f2) => [f2(headNonEmpty(self)), ...tailNonEmpty(self)]);
1696
- var setNonEmptyHead = /* @__PURE__ */ dual(2, (self, b2) => modifyNonEmptyHead(self, () => b2));
1697
- var modifyNonEmptyLast = /* @__PURE__ */ dual(2, (self, f2) => append(initNonEmpty(self), f2(lastNonEmpty(self))));
1698
- var setNonEmptyLast = /* @__PURE__ */ dual(2, (self, b2) => modifyNonEmptyLast(self, () => b2));
1699
- var rotate = /* @__PURE__ */ dual(2, (self, n2) => {
1695
+ var modifyNonEmptyHead = /* @__PURE__ */ dual(2, (self, f) => [f(headNonEmpty(self)), ...tailNonEmpty(self)]);
1696
+ var setNonEmptyHead = /* @__PURE__ */ dual(2, (self, b) => modifyNonEmptyHead(self, () => b));
1697
+ var modifyNonEmptyLast = /* @__PURE__ */ dual(2, (self, f) => append(initNonEmpty(self), f(lastNonEmpty(self))));
1698
+ var setNonEmptyLast = /* @__PURE__ */ dual(2, (self, b) => modifyNonEmptyLast(self, () => b));
1699
+ var rotate = /* @__PURE__ */ dual(2, (self, n) => {
1700
1700
  const input = fromIterable2(self);
1701
1701
  if (isNonEmptyReadonlyArray(input)) {
1702
1702
  const len = input.length;
1703
- const m2 = Math.round(n2) % len;
1704
- if (isOutOfBound(Math.abs(m2), input) || m2 === 0) {
1703
+ const m = Math.round(n) % len;
1704
+ if (isOutOfBound(Math.abs(m), input) || m === 0) {
1705
1705
  return copy(input);
1706
1706
  }
1707
- if (m2 < 0) {
1708
- const [f2, s2] = splitNonEmptyAt(input, -m2);
1709
- return appendAll(s2, f2);
1707
+ if (m < 0) {
1708
+ const [f, s] = splitNonEmptyAt(input, -m);
1709
+ return appendAll(s, f);
1710
1710
  } else {
1711
- return rotate(self, m2 - len);
1711
+ return rotate(self, m - len);
1712
1712
  }
1713
1713
  }
1714
1714
  return [];
1715
1715
  });
1716
- var containsWith2 = (isEquivalent) => dual(2, (self, a2) => {
1717
- for (const i2 of self) {
1718
- if (isEquivalent(a2, i2)) {
1716
+ var containsWith2 = (isEquivalent) => dual(2, (self, a) => {
1717
+ for (const i of self) {
1718
+ if (isEquivalent(a, i)) {
1719
1719
  return true;
1720
1720
  }
1721
1721
  }
@@ -1723,24 +1723,24 @@ var containsWith2 = (isEquivalent) => dual(2, (self, a2) => {
1723
1723
  });
1724
1724
  var _equivalence2 = /* @__PURE__ */ equivalence();
1725
1725
  var contains2 = /* @__PURE__ */ containsWith2(_equivalence2);
1726
- var chop = /* @__PURE__ */ dual(2, (self, f2) => {
1726
+ var chop = /* @__PURE__ */ dual(2, (self, f) => {
1727
1727
  const input = fromIterable2(self);
1728
1728
  if (isNonEmptyReadonlyArray(input)) {
1729
- const [b2, rest] = f2(input);
1730
- const out = [b2];
1729
+ const [b, rest] = f(input);
1730
+ const out = [b];
1731
1731
  let next = rest;
1732
1732
  while (isNonEmptyArray(next)) {
1733
- const [b3, rest2] = f2(next);
1734
- out.push(b3);
1733
+ const [b2, rest2] = f(next);
1734
+ out.push(b2);
1735
1735
  next = rest2;
1736
1736
  }
1737
1737
  return out;
1738
1738
  }
1739
1739
  return [];
1740
1740
  });
1741
- var splitAt = /* @__PURE__ */ dual(2, (self, n2) => {
1741
+ var splitAt = /* @__PURE__ */ dual(2, (self, n) => {
1742
1742
  const input = Array.from(self);
1743
- const _n = Math.floor(n2);
1743
+ const _n = Math.floor(n);
1744
1744
  if (isNonEmptyReadonlyArray(input)) {
1745
1745
  if (_n >= 1) {
1746
1746
  return splitNonEmptyAt(input, _n);
@@ -1749,125 +1749,125 @@ var splitAt = /* @__PURE__ */ dual(2, (self, n2) => {
1749
1749
  }
1750
1750
  return [input, []];
1751
1751
  });
1752
- var splitNonEmptyAt = /* @__PURE__ */ dual(2, (self, n2) => {
1753
- const _n = Math.max(1, Math.floor(n2));
1752
+ var splitNonEmptyAt = /* @__PURE__ */ dual(2, (self, n) => {
1753
+ const _n = Math.max(1, Math.floor(n));
1754
1754
  return _n >= self.length ? [copy(self), []] : [prepend(self.slice(1, _n), headNonEmpty(self)), self.slice(_n)];
1755
1755
  });
1756
- var split = /* @__PURE__ */ dual(2, (self, n2) => {
1756
+ var split = /* @__PURE__ */ dual(2, (self, n) => {
1757
1757
  const input = fromIterable2(self);
1758
- return chunksOf(input, Math.ceil(input.length / Math.floor(n2)));
1758
+ return chunksOf(input, Math.ceil(input.length / Math.floor(n)));
1759
1759
  });
1760
- var splitWhere = /* @__PURE__ */ dual(2, (self, predicate) => span(self, (a2, i2) => !predicate(a2, i2)));
1760
+ var splitWhere = /* @__PURE__ */ dual(2, (self, predicate) => span(self, (a, i) => !predicate(a, i)));
1761
1761
  var copy = (self) => self.slice();
1762
- var chunksOf = /* @__PURE__ */ dual(2, (self, n2) => {
1762
+ var chunksOf = /* @__PURE__ */ dual(2, (self, n) => {
1763
1763
  const input = fromIterable2(self);
1764
1764
  if (isNonEmptyReadonlyArray(input)) {
1765
- return chop(input, splitNonEmptyAt(n2));
1765
+ return chop(input, splitNonEmptyAt(n));
1766
1766
  }
1767
1767
  return [];
1768
1768
  });
1769
1769
  var groupWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => chop(self, (as2) => {
1770
- const h2 = headNonEmpty(as2);
1771
- const out = [h2];
1772
- let i2 = 1;
1773
- for (; i2 < as2.length; i2++) {
1774
- const a2 = as2[i2];
1775
- if (isEquivalent(a2, h2)) {
1776
- out.push(a2);
1770
+ const h = headNonEmpty(as2);
1771
+ const out = [h];
1772
+ let i = 1;
1773
+ for (; i < as2.length; i++) {
1774
+ const a = as2[i];
1775
+ if (isEquivalent(a, h)) {
1776
+ out.push(a);
1777
1777
  } else {
1778
1778
  break;
1779
1779
  }
1780
1780
  }
1781
- return [out, as2.slice(i2)];
1781
+ return [out, as2.slice(i)];
1782
1782
  }));
1783
1783
  var group = /* @__PURE__ */ groupWith(/* @__PURE__ */ equivalence());
1784
- var groupBy = /* @__PURE__ */ dual(2, (self, f2) => {
1784
+ var groupBy = /* @__PURE__ */ dual(2, (self, f) => {
1785
1785
  const out = {};
1786
- for (const a2 of self) {
1787
- const k2 = f2(a2);
1788
- if (Object.prototype.hasOwnProperty.call(out, k2)) {
1789
- out[k2].push(a2);
1786
+ for (const a of self) {
1787
+ const k = f(a);
1788
+ if (Object.prototype.hasOwnProperty.call(out, k)) {
1789
+ out[k].push(a);
1790
1790
  } else {
1791
- out[k2] = [a2];
1791
+ out[k] = [a];
1792
1792
  }
1793
1793
  }
1794
1794
  return out;
1795
1795
  });
1796
1796
  var unionWith = /* @__PURE__ */ dual(3, (self, that, isEquivalent) => {
1797
- const a2 = fromIterable2(self);
1798
- const b2 = fromIterable2(that);
1799
- if (isNonEmptyReadonlyArray(a2)) {
1800
- if (isNonEmptyReadonlyArray(b2)) {
1797
+ const a = fromIterable2(self);
1798
+ const b = fromIterable2(that);
1799
+ if (isNonEmptyReadonlyArray(a)) {
1800
+ if (isNonEmptyReadonlyArray(b)) {
1801
1801
  const dedupe2 = dedupeWith(isEquivalent);
1802
- return dedupe2(appendAll(a2, b2));
1802
+ return dedupe2(appendAll(a, b));
1803
1803
  }
1804
- return a2;
1804
+ return a;
1805
1805
  }
1806
- return b2;
1806
+ return b;
1807
1807
  });
1808
1808
  var union = /* @__PURE__ */ dual(2, (self, that) => unionWith(self, that, _equivalence2));
1809
1809
  var intersectionWith = (isEquivalent) => {
1810
1810
  const has = containsWith2(isEquivalent);
1811
- return dual(2, (self, that) => fromIterable2(self).filter((a2) => has(that, a2)));
1811
+ return dual(2, (self, that) => fromIterable2(self).filter((a) => has(that, a)));
1812
1812
  };
1813
1813
  var intersection = /* @__PURE__ */ intersectionWith(_equivalence2);
1814
1814
  var differenceWith = (isEquivalent) => {
1815
1815
  const has = containsWith2(isEquivalent);
1816
- return dual(2, (self, that) => fromIterable2(self).filter((a2) => !has(that, a2)));
1816
+ return dual(2, (self, that) => fromIterable2(self).filter((a) => !has(that, a)));
1817
1817
  };
1818
1818
  var difference = /* @__PURE__ */ differenceWith(_equivalence2);
1819
1819
  var empty2 = () => [];
1820
- var of = (a2) => [a2];
1821
- var map2 = /* @__PURE__ */ dual(2, (self, f2) => self.map(f2));
1822
- var flatMap2 = /* @__PURE__ */ dual(2, (self, f2) => {
1820
+ var of = (a) => [a];
1821
+ var map2 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
1822
+ var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
1823
1823
  if (isEmptyReadonlyArray(self)) {
1824
1824
  return [];
1825
1825
  }
1826
1826
  const out = [];
1827
- for (let i2 = 0; i2 < self.length; i2++) {
1828
- const inner = f2(self[i2], i2);
1829
- for (let j2 = 0; j2 < inner.length; j2++) {
1830
- out.push(inner[j2]);
1827
+ for (let i = 0; i < self.length; i++) {
1828
+ const inner = f(self[i], i);
1829
+ for (let j = 0; j < inner.length; j++) {
1830
+ out.push(inner[j]);
1831
1831
  }
1832
1832
  }
1833
1833
  return out;
1834
1834
  });
1835
1835
  var flatten2 = /* @__PURE__ */ flatMap2(identity);
1836
- var filterMap2 = /* @__PURE__ */ dual(2, (self, f2) => {
1836
+ var filterMap2 = /* @__PURE__ */ dual(2, (self, f) => {
1837
1837
  const as2 = fromIterable2(self);
1838
1838
  const out = [];
1839
- for (let i2 = 0; i2 < as2.length; i2++) {
1840
- const o2 = f2(as2[i2], i2);
1841
- if (isSome2(o2)) {
1842
- out.push(o2.value);
1839
+ for (let i = 0; i < as2.length; i++) {
1840
+ const o = f(as2[i], i);
1841
+ if (isSome2(o)) {
1842
+ out.push(o.value);
1843
1843
  }
1844
1844
  }
1845
1845
  return out;
1846
1846
  });
1847
- var filterMapWhile = /* @__PURE__ */ dual(2, (self, f2) => {
1848
- let i2 = 0;
1847
+ var filterMapWhile = /* @__PURE__ */ dual(2, (self, f) => {
1848
+ let i = 0;
1849
1849
  const out = [];
1850
- for (const a2 of self) {
1851
- const b2 = f2(a2, i2);
1852
- if (isSome2(b2)) {
1853
- out.push(b2.value);
1850
+ for (const a of self) {
1851
+ const b = f(a, i);
1852
+ if (isSome2(b)) {
1853
+ out.push(b.value);
1854
1854
  } else {
1855
1855
  break;
1856
1856
  }
1857
- i2++;
1857
+ i++;
1858
1858
  }
1859
1859
  return out;
1860
1860
  });
1861
- var partitionMap2 = /* @__PURE__ */ dual(2, (self, f2) => {
1861
+ var partitionMap2 = /* @__PURE__ */ dual(2, (self, f) => {
1862
1862
  const left2 = [];
1863
1863
  const right2 = [];
1864
1864
  const as2 = fromIterable2(self);
1865
- for (let i2 = 0; i2 < as2.length; i2++) {
1866
- const e2 = f2(as2[i2], i2);
1867
- if (isLeft2(e2)) {
1868
- left2.push(e2.left);
1865
+ for (let i = 0; i < as2.length; i++) {
1866
+ const e = f(as2[i], i);
1867
+ if (isLeft2(e)) {
1868
+ left2.push(e.left);
1869
1869
  } else {
1870
- right2.push(e2.right);
1870
+ right2.push(e.right);
1871
1871
  }
1872
1872
  }
1873
1873
  return [left2, right2];
@@ -1875,18 +1875,18 @@ var partitionMap2 = /* @__PURE__ */ dual(2, (self, f2) => {
1875
1875
  var getSomes = /* @__PURE__ */ filterMap2(identity);
1876
1876
  var getLefts = (self) => {
1877
1877
  const out = [];
1878
- for (const a2 of self) {
1879
- if (isLeft2(a2)) {
1880
- out.push(a2.left);
1878
+ for (const a of self) {
1879
+ if (isLeft2(a)) {
1880
+ out.push(a.left);
1881
1881
  }
1882
1882
  }
1883
1883
  return out;
1884
1884
  };
1885
1885
  var getRights = (self) => {
1886
1886
  const out = [];
1887
- for (const a2 of self) {
1888
- if (isRight2(a2)) {
1889
- out.push(a2.right);
1887
+ for (const a of self) {
1888
+ if (isRight2(a)) {
1889
+ out.push(a.right);
1890
1890
  }
1891
1891
  }
1892
1892
  return out;
@@ -1894,9 +1894,9 @@ var getRights = (self) => {
1894
1894
  var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
1895
1895
  const as2 = fromIterable2(self);
1896
1896
  const out = [];
1897
- for (let i2 = 0; i2 < as2.length; i2++) {
1898
- if (predicate(as2[i2], i2)) {
1899
- out.push(as2[i2]);
1897
+ for (let i = 0; i < as2.length; i++) {
1898
+ if (predicate(as2[i], i)) {
1899
+ out.push(as2[i]);
1900
1900
  }
1901
1901
  }
1902
1902
  return out;
@@ -1905,54 +1905,54 @@ var partition = /* @__PURE__ */ dual(2, (self, predicate) => {
1905
1905
  const left2 = [];
1906
1906
  const right2 = [];
1907
1907
  const as2 = fromIterable2(self);
1908
- for (let i2 = 0; i2 < as2.length; i2++) {
1909
- if (predicate(as2[i2], i2)) {
1910
- right2.push(as2[i2]);
1908
+ for (let i = 0; i < as2.length; i++) {
1909
+ if (predicate(as2[i], i)) {
1910
+ right2.push(as2[i]);
1911
1911
  } else {
1912
- left2.push(as2[i2]);
1912
+ left2.push(as2[i]);
1913
1913
  }
1914
1914
  }
1915
1915
  return [left2, right2];
1916
1916
  });
1917
1917
  var separate = /* @__PURE__ */ partitionMap2(identity);
1918
- var reduce = /* @__PURE__ */ dual(3, (self, b2, f2) => fromIterable2(self).reduce((b3, a2, i2) => f2(b3, a2, i2), b2));
1919
- var reduceRight = /* @__PURE__ */ dual(3, (self, b2, f2) => fromIterable2(self).reduceRight((b3, a2, i2) => f2(b3, a2, i2), b2));
1920
- var liftPredicate2 = (predicate) => (b2) => predicate(b2) ? [b2] : [];
1921
- var liftOption = (f2) => (...a2) => fromOption2(f2(...a2));
1922
- var fromNullable2 = (a2) => a2 == null ? empty2() : [a2];
1923
- var liftNullable2 = (f2) => (...a2) => fromNullable2(f2(...a2));
1924
- var flatMapNullable2 = /* @__PURE__ */ dual(2, (self, f2) => flatMap2(self, (a2) => fromNullable2(f2(a2))));
1925
- var liftEither = (f2) => (...a2) => {
1926
- const e2 = f2(...a2);
1927
- return isLeft2(e2) ? [] : [e2.right];
1918
+ var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable2(self).reduce((b2, a, i) => f(b2, a, i), b));
1919
+ var reduceRight = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable2(self).reduceRight((b2, a, i) => f(b2, a, i), b));
1920
+ var liftPredicate2 = (predicate) => (b) => predicate(b) ? [b] : [];
1921
+ var liftOption = (f) => (...a) => fromOption2(f(...a));
1922
+ var fromNullable2 = (a) => a == null ? empty2() : [a];
1923
+ var liftNullable2 = (f) => (...a) => fromNullable2(f(...a));
1924
+ var flatMapNullable2 = /* @__PURE__ */ dual(2, (self, f) => flatMap2(self, (a) => fromNullable2(f(a))));
1925
+ var liftEither = (f) => (...a) => {
1926
+ const e = f(...a);
1927
+ return isLeft2(e) ? [] : [e.right];
1928
1928
  };
1929
1929
  var every2 = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
1930
1930
  var some4 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
1931
- var extend = /* @__PURE__ */ dual(2, (self, f2) => self.map((_2, i2, as2) => f2(as2.slice(i2))));
1932
- var min2 = /* @__PURE__ */ dual(2, (self, O2) => self.reduce(min(O2)));
1933
- var max2 = /* @__PURE__ */ dual(2, (self, O2) => self.reduce(max(O2)));
1934
- var unfold = (b2, f2) => {
1931
+ var extend = /* @__PURE__ */ dual(2, (self, f) => self.map((_, i, as2) => f(as2.slice(i))));
1932
+ var min2 = /* @__PURE__ */ dual(2, (self, O) => self.reduce(min(O)));
1933
+ var max2 = /* @__PURE__ */ dual(2, (self, O) => self.reduce(max(O)));
1934
+ var unfold = (b, f) => {
1935
1935
  const out = [];
1936
- let next = b2;
1937
- let o2;
1938
- while (isSome2(o2 = f2(next))) {
1939
- const [a2, b3] = o2.value;
1940
- out.push(a2);
1941
- next = b3;
1936
+ let next = b;
1937
+ let o;
1938
+ while (isSome2(o = f(next))) {
1939
+ const [a, b2] = o.value;
1940
+ out.push(a);
1941
+ next = b2;
1942
1942
  }
1943
1943
  return out;
1944
1944
  };
1945
1945
  var getOrder2 = array2;
1946
1946
  var getEquivalence2 = array;
1947
- var forEach = /* @__PURE__ */ dual(2, (self, f2) => fromIterable2(self).forEach((a2, i2) => f2(a2, i2)));
1947
+ var forEach = /* @__PURE__ */ dual(2, (self, f) => fromIterable2(self).forEach((a, i) => f(a, i)));
1948
1948
  var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
1949
1949
  const input = fromIterable2(self);
1950
1950
  if (isNonEmptyReadonlyArray(input)) {
1951
1951
  const out = [headNonEmpty(input)];
1952
1952
  const rest = tailNonEmpty(input);
1953
- for (const r2 of rest) {
1954
- if (out.every((a2) => !isEquivalent(r2, a2))) {
1955
- out.push(r2);
1953
+ for (const r of rest) {
1954
+ if (out.every((a) => !isEquivalent(r, a))) {
1955
+ out.push(r);
1956
1956
  }
1957
1957
  }
1958
1958
  return out;
@@ -1963,30 +1963,30 @@ var dedupe = (self) => dedupeWith(self, equivalence());
1963
1963
  var dedupeAdjacentWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
1964
1964
  const out = [];
1965
1965
  let lastA = none2();
1966
- for (const a2 of self) {
1967
- if (isNone2(lastA) || !isEquivalent(a2, lastA.value)) {
1968
- out.push(a2);
1969
- lastA = some3(a2);
1966
+ for (const a of self) {
1967
+ if (isNone2(lastA) || !isEquivalent(a, lastA.value)) {
1968
+ out.push(a);
1969
+ lastA = some3(a);
1970
1970
  }
1971
1971
  }
1972
1972
  return out;
1973
1973
  });
1974
1974
  var dedupeAdjacent = /* @__PURE__ */ dedupeAdjacentWith(/* @__PURE__ */ equivalence());
1975
1975
  var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable2(self).join(sep));
1976
- var mapAccum = /* @__PURE__ */ dual(3, (self, s2, f2) => {
1977
- let i2 = 0;
1978
- let s1 = s2;
1976
+ var mapAccum = /* @__PURE__ */ dual(3, (self, s, f) => {
1977
+ let i = 0;
1978
+ let s1 = s;
1979
1979
  const out = [];
1980
- for (const a2 of self) {
1981
- const r2 = f2(s1, a2, i2);
1982
- s1 = r2[0];
1983
- out.push(r2[1]);
1984
- i2++;
1980
+ for (const a of self) {
1981
+ const r = f(s1, a, i);
1982
+ s1 = r[0];
1983
+ out.push(r[1]);
1984
+ i++;
1985
1985
  }
1986
1986
  return [s1, out];
1987
1987
  });
1988
- var cartesianWith = /* @__PURE__ */ dual(3, (self, that, f2) => flatMap2(self, (a2) => map2(that, (b2) => f2(a2, b2))));
1989
- var cartesian = /* @__PURE__ */ dual(2, (self, that) => cartesianWith(self, that, (a2, b2) => [a2, b2]));
1988
+ var cartesianWith = /* @__PURE__ */ dual(3, (self, that, f) => flatMap2(self, (a) => map2(that, (b) => f(a, b))));
1989
+ var cartesian = /* @__PURE__ */ dual(2, (self, that) => cartesianWith(self, that, (a, b) => [a, b]));
1990
1990
  var Do2 = /* @__PURE__ */ of({});
1991
1991
  var bind3 = /* @__PURE__ */ bind(map2, flatMap2);
1992
1992
  var bindTo3 = /* @__PURE__ */ bindTo(map2);
@@ -2004,286 +2004,9 @@ function getJSXPragmaFromContext(context) {
2004
2004
  Option_exports.filter((pragma) => RE_JS_IDENTIFIER_REGEX.test(pragma))
2005
2005
  );
2006
2006
  }
2007
-
2008
- // ../../../node_modules/.pnpm/ts-pattern@5.1.2/node_modules/ts-pattern/dist/index.js
2009
- var t = Symbol.for("@ts-pattern/matcher");
2010
- var e = Symbol.for("@ts-pattern/isVariadic");
2011
- var n = "@ts-pattern/anonymous-select-key";
2012
- var r = (t2) => Boolean(t2 && "object" == typeof t2);
2013
- var i = (e2) => e2 && !!e2[t];
2014
- var o = (n2, s2, c2) => {
2015
- if (i(n2)) {
2016
- const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(s2);
2017
- return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2;
2018
- }
2019
- if (r(n2)) {
2020
- if (!r(s2))
2021
- return false;
2022
- if (Array.isArray(n2)) {
2023
- if (!Array.isArray(s2))
2024
- return false;
2025
- let t2 = [], r2 = [], a2 = [];
2026
- for (const o2 of n2.keys()) {
2027
- const s3 = n2[o2];
2028
- i(s3) && s3[e] ? a2.push(s3) : a2.length ? r2.push(s3) : t2.push(s3);
2029
- }
2030
- if (a2.length) {
2031
- if (a2.length > 1)
2032
- throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
2033
- if (s2.length < t2.length + r2.length)
2034
- return false;
2035
- const e2 = s2.slice(0, t2.length), n3 = 0 === r2.length ? [] : s2.slice(-r2.length), i2 = s2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
2036
- return t2.every((t3, n4) => o(t3, e2[n4], c2)) && r2.every((t3, e3) => o(t3, n3[e3], c2)) && (0 === a2.length || o(a2[0], i2, c2));
2037
- }
2038
- return n2.length === s2.length && n2.every((t3, e2) => o(t3, s2[e2], c2));
2039
- }
2040
- return Object.keys(n2).every((e2) => {
2041
- const r2 = n2[e2];
2042
- return (e2 in s2 || i(a2 = r2) && "optional" === a2[t]().matcherType) && o(r2, s2[e2], c2);
2043
- var a2;
2044
- });
2045
- }
2046
- return Object.is(s2, n2);
2047
- };
2048
- var s = (e2) => {
2049
- var n2, o2, a2;
2050
- return r(e2) ? i(e2) ? null != (n2 = null == (o2 = (a2 = e2[t]()).getSelectionKeys) ? void 0 : o2.call(a2)) ? n2 : [] : Array.isArray(e2) ? c(e2, s) : c(Object.values(e2), s) : [];
2051
- };
2052
- var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
2053
- function a(...t2) {
2054
- if (1 === t2.length) {
2055
- const [e2] = t2;
2056
- return (t3) => o(e2, t3, () => {
2057
- });
2058
- }
2059
- if (2 === t2.length) {
2060
- const [e2, n2] = t2;
2061
- return o(e2, n2, () => {
2062
- });
2063
- }
2064
- throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t2.length}.`);
2065
- }
2066
- function u(t2) {
2067
- return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) });
2068
- }
2069
- function h(t2) {
2070
- return Object.assign(((t3) => Object.assign(t3, { [Symbol.iterator]() {
2071
- let n2 = 0;
2072
- const r2 = [{ value: Object.assign(t3, { [e]: true }), done: false }, { done: true, value: void 0 }];
2073
- return { next: () => {
2074
- var t4;
2075
- return null != (t4 = r2[n2++]) ? t4 : r2.at(-1);
2076
- } };
2077
- } }))(t2), { optional: () => h(l(t2)), select: (e2) => h(void 0 === e2 ? p(t2) : p(e2, t2)) });
2078
- }
2079
- function l(e2) {
2080
- return u({ [t]: () => ({ match: (t2) => {
2081
- let n2 = {};
2082
- const r2 = (t3, e3) => {
2083
- n2[t3] = e3;
2084
- };
2085
- return void 0 === t2 ? (s(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: o(e2, t2, r2), selections: n2 };
2086
- }, getSelectionKeys: () => s(e2), matcherType: "optional" }) });
2087
- }
2088
- var f = (t2, e2) => {
2089
- for (const n2 of t2)
2090
- if (!e2(n2))
2091
- return false;
2092
- return true;
2093
- };
2094
- var g = (t2, e2) => {
2095
- for (const [n2, r2] of t2.entries())
2096
- if (!e2(r2, n2))
2097
- return false;
2098
- return true;
2099
- };
2100
- function m(...e2) {
2101
- return u({ [t]: () => ({ match: (t2) => {
2102
- let n2 = {};
2103
- const r2 = (t3, e3) => {
2104
- n2[t3] = e3;
2105
- };
2106
- return { matched: e2.every((e3) => o(e3, t2, r2)), selections: n2 };
2107
- }, getSelectionKeys: () => c(e2, s), matcherType: "and" }) });
2108
- }
2109
- function d(...e2) {
2110
- return u({ [t]: () => ({ match: (t2) => {
2111
- let n2 = {};
2112
- const r2 = (t3, e3) => {
2113
- n2[t3] = e3;
2114
- };
2115
- return c(e2, s).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => o(e3, t2, r2)), selections: n2 };
2116
- }, getSelectionKeys: () => c(e2, s), matcherType: "or" }) });
2117
- }
2118
- function y(e2) {
2119
- return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
2120
- }
2121
- function p(...e2) {
2122
- const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
2123
- return u({ [t]: () => ({ match: (t2) => {
2124
- let e3 = { [null != r2 ? r2 : n]: t2 };
2125
- return { matched: void 0 === i2 || o(i2, t2, (t3, n2) => {
2126
- e3[t3] = n2;
2127
- }), selections: e3 };
2128
- }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : s(i2)) }) });
2129
- }
2130
- function v(t2) {
2131
- return "number" == typeof t2;
2132
- }
2133
- function b(t2) {
2134
- return "string" == typeof t2;
2135
- }
2136
- function w(t2) {
2137
- return "bigint" == typeof t2;
2138
- }
2139
- var S = u(y(function(t2) {
2140
- return true;
2141
- }));
2142
- var O = S;
2143
- var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
2144
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2)))));
2145
- var n2;
2146
- }, endsWith: (e2) => {
2147
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2)))));
2148
- var n2;
2149
- }, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
2150
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2)))));
2151
- var n2;
2152
- }, regex: (e2) => {
2153
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2))))));
2154
- var n2;
2155
- } });
2156
- var E = j(y(b));
2157
- var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) });
2158
- var x = K(y(v));
2159
- var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) });
2160
- var P = A(y(w));
2161
- var T = u(y(function(t2) {
2162
- return "boolean" == typeof t2;
2163
- }));
2164
- var k = u(y(function(t2) {
2165
- return "symbol" == typeof t2;
2166
- }));
2167
- var B = u(y(function(t2) {
2168
- return null == t2;
2169
- }));
2170
- var _ = u(y(function(t2) {
2171
- return null != t2;
2172
- }));
2173
- var N = { __proto__: null, matcher: t, optional: l, array: function(...e2) {
2174
- return h({ [t]: () => ({ match: (t2) => {
2175
- if (!Array.isArray(t2))
2176
- return { matched: false };
2177
- if (0 === e2.length)
2178
- return { matched: true };
2179
- const n2 = e2[0];
2180
- let r2 = {};
2181
- if (0 === t2.length)
2182
- return s(n2).forEach((t3) => {
2183
- r2[t3] = [];
2184
- }), { matched: true, selections: r2 };
2185
- const i2 = (t3, e3) => {
2186
- r2[t3] = (r2[t3] || []).concat([e3]);
2187
- };
2188
- return { matched: t2.every((t3) => o(n2, t3, i2)), selections: r2 };
2189
- }, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
2190
- }, set: function(...e2) {
2191
- return u({ [t]: () => ({ match: (t2) => {
2192
- if (!(t2 instanceof Set))
2193
- return { matched: false };
2194
- let n2 = {};
2195
- if (0 === t2.size)
2196
- return { matched: true, selections: n2 };
2197
- if (0 === e2.length)
2198
- return { matched: true };
2199
- const r2 = (t3, e3) => {
2200
- n2[t3] = (n2[t3] || []).concat([e3]);
2201
- }, i2 = e2[0];
2202
- return { matched: f(t2, (t3) => o(i2, t3, r2)), selections: n2 };
2203
- }, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
2204
- }, map: function(...e2) {
2205
- return u({ [t]: () => ({ match: (t2) => {
2206
- if (!(t2 instanceof Map))
2207
- return { matched: false };
2208
- let n2 = {};
2209
- if (0 === t2.size)
2210
- return { matched: true, selections: n2 };
2211
- const r2 = (t3, e3) => {
2212
- n2[t3] = (n2[t3] || []).concat([e3]);
2213
- };
2214
- if (0 === e2.length)
2215
- return { matched: true };
2216
- var i2;
2217
- if (1 === e2.length)
2218
- throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null == (i2 = e2[0]) ? void 0 : i2.toString()}`);
2219
- const [s2, c2] = e2;
2220
- return { matched: g(t2, (t3, e3) => {
2221
- const n3 = o(s2, e3, r2), i3 = o(c2, t3, r2);
2222
- return n3 && i3;
2223
- }), selections: n2 };
2224
- }, getSelectionKeys: () => 0 === e2.length ? [] : [...s(e2[0]), ...s(e2[1])] }) });
2225
- }, intersection: m, union: d, not: function(e2) {
2226
- return u({ [t]: () => ({ match: (t2) => ({ matched: !o(e2, t2, () => {
2227
- }) }), getSelectionKeys: () => [], matcherType: "not" }) });
2228
- }, when: y, select: p, any: S, _: O, string: E, number: x, bigint: P, boolean: T, symbol: k, nullish: B, nonNullable: _, instanceOf: function(t2) {
2229
- return u(y(/* @__PURE__ */ function(t3) {
2230
- return (e2) => e2 instanceof t3;
2231
- }(t2)));
2232
- }, shape: function(t2) {
2233
- return u(y(a(t2)));
2234
- } };
2235
- var W = { matched: false, value: void 0 };
2236
- function $(t2) {
2237
- return new z(t2, W);
2238
- }
2239
- var z = class _z {
2240
- constructor(t2, e2) {
2241
- this.input = void 0, this.state = void 0, this.input = t2, this.state = e2;
2242
- }
2243
- with(...t2) {
2244
- if (this.state.matched)
2245
- return this;
2246
- const e2 = t2[t2.length - 1], r2 = [t2[0]];
2247
- let i2;
2248
- 3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
2249
- let s2 = false, c2 = {};
2250
- const a2 = (t3, e3) => {
2251
- s2 = true, c2[t3] = e3;
2252
- }, u2 = !r2.some((t3) => o(t3, this.input, a2)) || i2 && !Boolean(i2(this.input)) ? W : { matched: true, value: e2(s2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
2253
- return new _z(this.input, u2);
2254
- }
2255
- when(t2, e2) {
2256
- if (this.state.matched)
2257
- return this;
2258
- const n2 = Boolean(t2(this.input));
2259
- return new _z(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : W);
2260
- }
2261
- otherwise(t2) {
2262
- return this.state.matched ? this.state.value : t2(this.input);
2263
- }
2264
- exhaustive() {
2265
- if (this.state.matched)
2266
- return this.state.value;
2267
- let t2;
2268
- try {
2269
- t2 = JSON.stringify(this.input);
2270
- } catch (e2) {
2271
- t2 = this.input;
2272
- }
2273
- throw new Error(`Pattern matching error: no pattern matches value ${t2}`);
2274
- }
2275
- run() {
2276
- return this.exhaustive();
2277
- }
2278
- returnType() {
2279
- return this;
2280
- }
2281
- };
2282
-
2283
- // src/prop/get-prop.ts
2284
2007
  var { getStaticValue } = ast.ESLintCommunityESLintUtils;
2285
2008
  function getPropName(node) {
2286
- return $(node.name).when(ast.is(ast.NodeType.JSXIdentifier), (n2) => n2.name).when(ast.is(ast.NodeType.JSXNamespacedName), (n2) => `${n2.namespace.name}:${n2.name.name}`).exhaustive();
2009
+ return tsPattern.match(node.name).when(ast.is(ast.NodeType.JSXIdentifier), (n) => n.name).when(ast.is(ast.NodeType.JSXNamespacedName), (n) => `${n.namespace.name}:${n.name.name}`).exhaustive();
2287
2010
  }
2288
2011
  function getProp(props, propName, context, initialScope) {
2289
2012
  return findPropInAttributes(props, context, initialScope)(propName);
@@ -2307,10 +2030,10 @@ function findPropInProperties(properties, context, initialScope, seenProps = [])
2307
2030
  return (propName) => {
2308
2031
  return Option_exports.fromNullable(
2309
2032
  properties.find((prop) => {
2310
- return $(prop).when(ast.is(ast.NodeType.Property), (prop2) => {
2033
+ return tsPattern.match(prop).when(ast.is(ast.NodeType.Property), (prop2) => {
2311
2034
  return "name" in prop2.key && prop2.key.name === propName;
2312
2035
  }).when(ast.is(ast.NodeType.SpreadElement), (prop2) => {
2313
- return $(prop2.argument).when(ast.is(ast.NodeType.Identifier), (argument) => {
2036
+ return tsPattern.match(prop2.argument).when(ast.is(ast.NodeType.Identifier), (argument) => {
2314
2037
  const { name } = argument;
2315
2038
  const maybeInit = Option_exports.flatMap(
2316
2039
  _var.findVariable(name, initialScope),
@@ -2342,8 +2065,8 @@ function findPropInAttributes(attributes, context, initialScope) {
2342
2065
  return (propName) => {
2343
2066
  return Option_exports.fromNullable(
2344
2067
  attributes.find((attr) => {
2345
- return $(attr).when(ast.is(ast.NodeType.JSXAttribute), (attr2) => getPropName(attr2) === propName).when(ast.is(ast.NodeType.JSXSpreadAttribute), (attr2) => {
2346
- return $(attr2.argument).with({ type: ast.NodeType.Identifier }, (argument) => {
2068
+ return tsPattern.match(attr).when(ast.is(ast.NodeType.JSXAttribute), (attr2) => getPropName(attr2) === propName).when(ast.is(ast.NodeType.JSXSpreadAttribute), (attr2) => {
2069
+ return tsPattern.match(attr2.argument).with({ type: ast.NodeType.Identifier }, (argument) => {
2347
2070
  const { name } = argument;
2348
2071
  const maybeInit = Option_exports.flatMap(
2349
2072
  _var.findVariable(name, initialScope),
@@ -2389,7 +2112,7 @@ function traverseUpProp(node, predicate = Function_exports.constTrue) {
2389
2112
  function isInsidePropValue(node) {
2390
2113
  if (ast.isStringLiteral(node))
2391
2114
  return node.parent.type === ast.NodeType.JSXAttribute;
2392
- return Option_exports.isSome(traverseUpProp(node, (n2) => n2.value?.type === ast.NodeType.JSXExpressionContainer));
2115
+ return Option_exports.isSome(traverseUpProp(node, (n) => n.value?.type === ast.NodeType.JSXExpressionContainer));
2393
2116
  }
2394
2117
  var isLiteral = ast.isOneOf([ast.NodeType.Literal, ast.NodeType.JSXText]);
2395
2118
  function isWhiteSpace(node) {
@@ -2417,19 +2140,19 @@ var DEFAULT_JSX_VALUE_HINT = JSXValueHint.SkipUndefinedLiteral | JSXValueHint.Sk
2417
2140
  function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
2418
2141
  if (!node)
2419
2142
  return false;
2420
- return $(node).with({ type: ast.NodeType.JSXElement }, Function_exports.constTrue).with({ type: ast.NodeType.JSXFragment }, Function_exports.constTrue).with({ type: ast.NodeType.JSXMemberExpression }, Function_exports.constTrue).with({ type: ast.NodeType.JSXNamespacedName }, Function_exports.constTrue).with({ type: ast.NodeType.Literal }, (node2) => {
2421
- return $(node2.value).with(null, () => !(hint & JSXValueHint.SkipNullLiteral)).with(N.boolean, () => !(hint & JSXValueHint.SkipBooleanLiteral)).with(N.string, () => !(hint & JSXValueHint.SkipStringLiteral)).with(N.number, () => !(hint & JSXValueHint.SkipNumberLiteral)).otherwise(Function_exports.constFalse);
2143
+ return tsPattern.match(node).with({ type: ast.NodeType.JSXElement }, Function_exports.constTrue).with({ type: ast.NodeType.JSXFragment }, Function_exports.constTrue).with({ type: ast.NodeType.JSXMemberExpression }, Function_exports.constTrue).with({ type: ast.NodeType.JSXNamespacedName }, Function_exports.constTrue).with({ type: ast.NodeType.Literal }, (node2) => {
2144
+ return tsPattern.match(node2.value).with(null, () => !(hint & JSXValueHint.SkipNullLiteral)).with(tsPattern.P.boolean, () => !(hint & JSXValueHint.SkipBooleanLiteral)).with(tsPattern.P.string, () => !(hint & JSXValueHint.SkipStringLiteral)).with(tsPattern.P.number, () => !(hint & JSXValueHint.SkipNumberLiteral)).otherwise(Function_exports.constFalse);
2422
2145
  }).with({ type: ast.NodeType.TemplateLiteral }, () => !(hint & JSXValueHint.SkipStringLiteral)).with({ type: ast.NodeType.ArrayExpression }, (node2) => {
2423
2146
  if (hint & JSXValueHint.StrictArray)
2424
- return node2.elements.every((n2) => isJSXValue(n2, context, hint));
2425
- return node2.elements.some((n2) => isJSXValue(n2, context, hint));
2147
+ return node2.elements.every((n) => isJSXValue(n, context, hint));
2148
+ return node2.elements.some((n) => isJSXValue(n, context, hint));
2426
2149
  }).with({ type: ast.NodeType.ConditionalExpression }, (node2) => {
2427
2150
  function leftHasJSX(node3) {
2428
2151
  if (Array.isArray(node3.consequent)) {
2429
2152
  if (hint & JSXValueHint.StrictArray) {
2430
- return node3.consequent.every((n2) => isJSXValue(n2, context, hint));
2153
+ return node3.consequent.every((n) => isJSXValue(n, context, hint));
2431
2154
  }
2432
- return node3.consequent.some((n2) => isJSXValue(n2, context, hint));
2155
+ return node3.consequent.some((n) => isJSXValue(n, context, hint));
2433
2156
  }
2434
2157
  return isJSXValue(node3.consequent, context, hint);
2435
2158
  }
@@ -2448,7 +2171,7 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
2448
2171
  }).with({ type: ast.NodeType.CallExpression }, (node2) => {
2449
2172
  if (hint & JSXValueHint.SkipCreateElement)
2450
2173
  return false;
2451
- return $(node2.callee).with({ type: ast.NodeType.Identifier, name: "createElement" }, Function_exports.constTrue).with({ type: ast.NodeType.MemberExpression, property: { name: "createElement" } }, Function_exports.constTrue).otherwise(Function_exports.constFalse);
2174
+ return tsPattern.match(node2.callee).with({ type: ast.NodeType.Identifier, name: "createElement" }, Function_exports.constTrue).with({ type: ast.NodeType.MemberExpression, property: { name: "createElement" } }, Function_exports.constTrue).otherwise(Function_exports.constFalse);
2452
2175
  }).with({ type: ast.NodeType.Identifier }, (node2) => {
2453
2176
  const { name } = node2;
2454
2177
  if (name === "undefined")
@@ -2460,7 +2183,7 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
2460
2183
  return Function_exports.pipe(
2461
2184
  maybeVariable,
2462
2185
  Option_exports.flatMap(_var.getVariableInit(0)),
2463
- Option_exports.exists((n2) => isJSXValue(n2, context, hint))
2186
+ Option_exports.exists((n) => isJSXValue(n, context, hint))
2464
2187
  );
2465
2188
  }).otherwise(Function_exports.constFalse);
2466
2189
  }