@temperlang/std 0.1.0 → 0.2.1

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/regex.js CHANGED
@@ -1,46 +1,46 @@
1
1
  import {
2
- InterfaceType as InterfaceType_65, requireInstanceOf as requireInstanceOf__178, requireIsSafeInteger as requireIsSafeInteger__253, compiledRegexCompileFormatted as compiledRegexCompileFormatted_139, compiledRegexCompiledFound as compiledRegexCompiledFound_143, compiledRegexCompiledFind as compiledRegexCompiledFind_146, compiledRegexCompiledReplace as compiledRegexCompiledReplace_151, eqGeneric as eqGeneric_180, regexFormatterPushCodeTo as regexFormatterPushCodeTo_194, stringCodePoints as stringCodePoints_201, regexFormatterAdjustCodeSet as regexFormatterAdjustCodeSet_218, intToString as intToString_252, listify as listify_42, listJoin as listJoin_24, listBuilderAdd as listBuilderAdd_4, strCat as strCat_57, listGet as listGet_53
2
+ InterfaceType as InterfaceType_0, requireInstanceOf as requireInstanceOf__115, requireIsSafeInteger as requireIsSafeInteger__189, listify as listify_67, compiledRegexCompileFormatted as compiledRegexCompileFormatted_75, compiledRegexCompiledFound as compiledRegexCompiledFound_79, compiledRegexCompiledFind as compiledRegexCompiledFind_82, compiledRegexCompiledReplace as compiledRegexCompiledReplace_87, listJoin as listJoin_97, eqGeneric as eqGeneric_117, listBuilderAdd as listBuilderAdd_118, strCat as strCat_127, regexFormatterPushCodeTo as regexFormatterPushCodeTo_131, stringCodePoints as stringCodePoints_138, regexFormatterAdjustCodeSet as regexFormatterAdjustCodeSet_153, listGet as listGet_157, intToString as intToString_188
3
3
  } from "@temperlang/core";
4
- function methodCompiled66() {
4
+ function methodCompiled1() {
5
5
  return new CompiledRegex(this);
6
6
  }
7
- function methodFound67(text_68) {
8
- return this.compiled().found(text_68);
7
+ function methodFound2(text_3) {
8
+ return this.compiled().found(text_3);
9
9
  }
10
- function methodFind69(text_70) {
11
- return this.compiled().find(text_70);
10
+ function methodFind4(text_5) {
11
+ return this.compiled().find(text_5);
12
12
  }
13
- function methodReplace71(text_72, format_73) {
14
- return this.compiled().replace(text_72, format_73);
13
+ function methodReplace6(text_7, format_8) {
14
+ return this.compiled().replace(text_7, format_8);
15
15
  }
16
16
  /**
17
17
  * @typedef {{
18
- * compiled: () => CompiledRegex, found: (text_68: string) => boolean, find: (text_70: string) => Map<string, Group>, replace: (text_72: string, format_73: (arg0: Map<string, Group>) => string) => string
18
+ * compiled: () => CompiledRegex, found: (text_3: string) => boolean, find: (text_5: string) => Map<string, Group>, replace: (text_7: string, format_8: (arg0: Map<string, Group>) => string) => string
19
19
  * }}
20
20
  * Regex
21
21
  */
22
- export const Regex = new InterfaceType_65("Regex", [["m", "compiled", methodCompiled66], ["m", "found", methodFound67], ["m", "find", methodFind69], ["m", "replace", methodReplace71]], [], 1);
22
+ export const Regex = new InterfaceType_0("Regex", [["m", "compiled", methodCompiled1], ["m", "found", methodFound2], ["m", "find", methodFind4], ["m", "replace", methodReplace6]], [], 1);
23
23
  export class Capture {
24
24
  /** @type {string} */
25
- #name_74;
25
+ #name_9;
26
26
  /** @type {Regex} */
27
- #item_75;
27
+ #item_10;
28
28
  /**
29
- * @param {string} name_76
30
- * @param {Regex} item_77
29
+ * @param {string} name_11
30
+ * @param {Regex} item_12
31
31
  */
32
- constructor(name_76, item_77) {
33
- this.#name_74 = name_76;
34
- this.#item_75 = item_77;
32
+ constructor(name_11, item_12) {
33
+ this.#name_9 = name_11;
34
+ this.#item_10 = item_12;
35
35
  return;
36
36
  }
37
37
  /** @returns {string} */
38
38
  get name() {
39
- return this.#name_74;
39
+ return this.#name_9;
40
40
  }
41
41
  /** @returns {Regex} */
42
42
  get item() {
43
- return this.#item_75;
43
+ return this.#item_10;
44
44
  }
45
45
  };
46
46
  Regex.implementedBy(Capture);
@@ -48,18 +48,18 @@ Regex.implementedBy(Capture);
48
48
  * @typedef {{}}
49
49
  * CodePart
50
50
  */
51
- export const CodePart = new InterfaceType_65("CodePart", [], [Regex], 2);
51
+ export const CodePart = new InterfaceType_0("CodePart", [], [Regex], 2);
52
52
  export class CodePoints {
53
53
  /** @type {string} */
54
- #value_80;
55
- /** @param {string} value_81 */
56
- constructor(value_81) {
57
- this.#value_80 = value_81;
54
+ #value_15;
55
+ /** @param {string} value_16 */
56
+ constructor(value_16) {
57
+ this.#value_15 = value_16;
58
58
  return;
59
59
  }
60
60
  /** @returns {string} */
61
61
  get value() {
62
- return this.#value_80;
62
+ return this.#value_15;
63
63
  }
64
64
  };
65
65
  CodePart.implementedBy(CodePoints);
@@ -67,426 +67,426 @@ CodePart.implementedBy(CodePoints);
67
67
  * @typedef {{}}
68
68
  * Special
69
69
  */
70
- export const Special = new InterfaceType_65("Special", [], [Regex], 2);
70
+ export const Special = new InterfaceType_0("Special", [], [Regex], 2);
71
71
  /**
72
72
  * @typedef {{}}
73
73
  * SpecialSet
74
74
  */
75
- export const SpecialSet = new InterfaceType_65("SpecialSet", [], [CodePart, Special], 3);
75
+ export const SpecialSet = new InterfaceType_0("SpecialSet", [], [CodePart, Special], 3);
76
76
  export class CodeRange {
77
77
  /** @type {number} */
78
- #min_83;
78
+ #min_18;
79
79
  /** @type {number} */
80
- #max_84;
80
+ #max_19;
81
81
  /**
82
- * @param {number} min_85
83
- * @param {number} max_86
82
+ * @param {number} min_20
83
+ * @param {number} max_21
84
84
  */
85
- constructor(min_85, max_86) {
86
- this.#min_83 = min_85;
87
- this.#max_84 = max_86;
85
+ constructor(min_20, max_21) {
86
+ this.#min_18 = min_20;
87
+ this.#max_19 = max_21;
88
88
  return;
89
89
  }
90
90
  /** @returns {number} */
91
91
  get min() {
92
- return this.#min_83;
92
+ return this.#min_18;
93
93
  }
94
94
  /** @returns {number} */
95
95
  get max() {
96
- return this.#max_84;
96
+ return this.#max_19;
97
97
  }
98
98
  };
99
99
  CodePart.implementedBy(CodeRange);
100
100
  export class CodeSet {
101
101
  /** @type {Array<CodePart>} */
102
- #items_89;
102
+ #items_24;
103
103
  /** @type {boolean} */
104
- #negated_90;
104
+ #negated_25;
105
105
  /**
106
- * @param {Array<CodePart>} items_91
107
- * @param {boolean} negated_92
106
+ * @param {Array<CodePart>} items_26
107
+ * @param {boolean} negated_27
108
108
  */
109
- constructor(items_91, negated_92) {
110
- if (!(negated_92 !== void 0)) {
111
- negated_92 = false;
109
+ constructor(items_26, negated_27) {
110
+ if (!(negated_27 !== void 0)) {
111
+ negated_27 = false;
112
112
  }
113
- this.#items_89 = items_91;
114
- this.#negated_90 = negated_92;
113
+ this.#items_24 = items_26;
114
+ this.#negated_25 = negated_27;
115
115
  return;
116
116
  }
117
117
  /** @returns {Array<CodePart>} */
118
118
  get items() {
119
- return this.#items_89;
119
+ return this.#items_24;
120
120
  }
121
121
  /** @returns {boolean} */
122
122
  get negated() {
123
- return this.#negated_90;
123
+ return this.#negated_25;
124
124
  }
125
125
  };
126
126
  Regex.implementedBy(CodeSet);
127
127
  export class Or {
128
128
  /** @type {Array<Regex>} */
129
- #items_95;
130
- /** @param {Array<Regex>} items_96 */
131
- constructor(items_96) {
132
- this.#items_95 = items_96;
129
+ #items_30;
130
+ /** @param {Array<Regex>} items_31 */
131
+ constructor(items_31) {
132
+ this.#items_30 = items_31;
133
133
  return;
134
134
  }
135
135
  /** @returns {Array<Regex>} */
136
136
  get items() {
137
- return this.#items_95;
137
+ return this.#items_30;
138
138
  }
139
139
  };
140
140
  Regex.implementedBy(Or);
141
141
  export class Repeat {
142
142
  /** @type {Regex} */
143
- #item_98;
143
+ #item_33;
144
144
  /** @type {number} */
145
- #min_99;
145
+ #min_34;
146
146
  /** @type {number | null} */
147
- #max_100;
147
+ #max_35;
148
148
  /** @type {boolean} */
149
- #reluctant_101;
149
+ #reluctant_36;
150
150
  /**
151
- * @param {Regex} item_102
152
- * @param {number} min_103
153
- * @param {number | null} max_104
154
- * @param {boolean} reluctant_105
151
+ * @param {Regex} item_37
152
+ * @param {number} min_38
153
+ * @param {number | null} max_39
154
+ * @param {boolean} reluctant_40
155
155
  */
156
- constructor(item_102, min_103, max_104, reluctant_105) {
157
- if (!(reluctant_105 !== void 0)) {
158
- reluctant_105 = false;
156
+ constructor(item_37, min_38, max_39, reluctant_40) {
157
+ if (!(reluctant_40 !== void 0)) {
158
+ reluctant_40 = false;
159
159
  }
160
- this.#item_98 = item_102;
161
- this.#min_99 = min_103;
162
- this.#max_100 = max_104;
163
- this.#reluctant_101 = reluctant_105;
160
+ this.#item_33 = item_37;
161
+ this.#min_34 = min_38;
162
+ this.#max_35 = max_39;
163
+ this.#reluctant_36 = reluctant_40;
164
164
  return;
165
165
  }
166
166
  /** @returns {Regex} */
167
167
  get item() {
168
- return this.#item_98;
168
+ return this.#item_33;
169
169
  }
170
170
  /** @returns {number} */
171
171
  get min() {
172
- return this.#min_99;
172
+ return this.#min_34;
173
173
  }
174
174
  /** @returns {number | null} */
175
175
  get max() {
176
- return this.#max_100;
176
+ return this.#max_35;
177
177
  }
178
178
  /** @returns {boolean} */
179
179
  get reluctant() {
180
- return this.#reluctant_101;
180
+ return this.#reluctant_36;
181
181
  }
182
182
  };
183
183
  Regex.implementedBy(Repeat);
184
184
  export class Sequence {
185
185
  /** @type {Array<Regex>} */
186
- #items_110;
187
- /** @param {Array<Regex>} items_111 */
188
- constructor(items_111) {
189
- this.#items_110 = items_111;
186
+ #items_45;
187
+ /** @param {Array<Regex>} items_46 */
188
+ constructor(items_46) {
189
+ this.#items_45 = items_46;
190
190
  return;
191
191
  }
192
192
  /** @returns {Array<Regex>} */
193
193
  get items() {
194
- return this.#items_110;
194
+ return this.#items_45;
195
195
  }
196
196
  };
197
197
  Regex.implementedBy(Sequence);
198
198
  export class Group {
199
199
  /** @type {string} */
200
- #name_113;
200
+ #name_48;
201
201
  /** @type {string} */
202
- #value_114;
202
+ #value_49;
203
203
  /** @type {number} */
204
- #codePointsBegin_115;
204
+ #codePointsBegin_50;
205
205
  /**
206
- * @param {string} name_116
207
- * @param {string} value_117
208
- * @param {number} codePointsBegin_118
206
+ * @param {string} name_51
207
+ * @param {string} value_52
208
+ * @param {number} codePointsBegin_53
209
209
  */
210
- constructor(name_116, value_117, codePointsBegin_118) {
211
- this.#name_113 = name_116;
212
- this.#value_114 = value_117;
213
- this.#codePointsBegin_115 = codePointsBegin_118;
210
+ constructor(name_51, value_52, codePointsBegin_53) {
211
+ this.#name_48 = name_51;
212
+ this.#value_49 = value_52;
213
+ this.#codePointsBegin_50 = codePointsBegin_53;
214
214
  return;
215
215
  }
216
216
  /** @returns {string} */
217
217
  get name() {
218
- return this.#name_113;
218
+ return this.#name_48;
219
219
  }
220
220
  /** @returns {string} */
221
221
  get value() {
222
- return this.#value_114;
222
+ return this.#value_49;
223
223
  }
224
224
  /** @returns {number} */
225
225
  get codePointsBegin() {
226
- return this.#codePointsBegin_115;
226
+ return this.#codePointsBegin_50;
227
227
  }
228
228
  };
229
- class RegexRefs_122 {
229
+ class RegexRefs_57 {
230
230
  /** @type {CodePoints} */
231
- #codePoints_123;
231
+ #codePoints_58;
232
232
  /** @type {Group} */
233
- #group_124;
233
+ #group_59;
234
234
  /** @type {Or} */
235
- #orObject_125;
235
+ #orObject_60;
236
236
  /**
237
- * @param {CodePoints} codePoints_126
238
- * @param {Group} group_127
239
- * @param {Or} orObject_128
237
+ * @param {CodePoints} codePoints_61
238
+ * @param {Group} group_62
239
+ * @param {Or} orObject_63
240
240
  */
241
- constructor(codePoints_126, group_127, orObject_128) {
242
- let t_129;
243
- let t_130;
244
- let t_131;
245
- if (!(codePoints_126 !== void 0)) {
246
- t_129 = new CodePoints("");
247
- codePoints_126 = t_129;
241
+ constructor(codePoints_61, group_62, orObject_63) {
242
+ let t_64;
243
+ let t_65;
244
+ let t_66;
245
+ if (!(codePoints_61 !== void 0)) {
246
+ t_64 = new CodePoints("");
247
+ codePoints_61 = t_64;
248
248
  }
249
- if (!(group_127 !== void 0)) {
250
- t_130 = new Group("", "", 0);
251
- group_127 = t_130;
249
+ if (!(group_62 !== void 0)) {
250
+ t_65 = new Group("", "", 0);
251
+ group_62 = t_65;
252
252
  }
253
- if (!(orObject_128 !== void 0)) {
254
- t_131 = new Or(listify_42());
255
- orObject_128 = t_131;
253
+ if (!(orObject_63 !== void 0)) {
254
+ t_66 = new Or(listify_67());
255
+ orObject_63 = t_66;
256
256
  }
257
- this.#codePoints_123 = codePoints_126;
258
- this.#group_124 = group_127;
259
- this.#orObject_125 = orObject_128;
257
+ this.#codePoints_58 = codePoints_61;
258
+ this.#group_59 = group_62;
259
+ this.#orObject_60 = orObject_63;
260
260
  return;
261
261
  }
262
262
  /** @returns {CodePoints} */
263
263
  get codePoints() {
264
- return this.#codePoints_123;
264
+ return this.#codePoints_58;
265
265
  }
266
266
  /** @returns {Group} */
267
267
  get group() {
268
- return this.#group_124;
268
+ return this.#group_59;
269
269
  }
270
270
  /** @returns {Or} */
271
271
  get orObject() {
272
- return this.#orObject_125;
272
+ return this.#orObject_60;
273
273
  }
274
274
  }
275
275
  export class CompiledRegex {
276
276
  /** @type {Regex} */
277
- #data_135;
278
- /** @param {Regex} data_136 */
279
- constructor(data_136) {
280
- this.#data_135 = data_136;
281
- let t_137 = this.format();
282
- let t_138 = compiledRegexCompileFormatted_139(this, t_137);
283
- this.#compiled_140 = t_138;
277
+ #data_71;
278
+ /** @param {Regex} data_72 */
279
+ constructor(data_72) {
280
+ this.#data_71 = data_72;
281
+ let t_73 = this.format();
282
+ let t_74 = compiledRegexCompileFormatted_75(this, t_73);
283
+ this.#compiled_76 = t_74;
284
284
  return;
285
285
  }
286
286
  /**
287
- * @param {string} text_142
287
+ * @param {string} text_78
288
288
  * @returns {boolean}
289
289
  */
290
- found(text_142) {
291
- return compiledRegexCompiledFound_143(this, this.#compiled_140, text_142);
290
+ found(text_78) {
291
+ return compiledRegexCompiledFound_79(this, this.#compiled_76, text_78);
292
292
  }
293
293
  /**
294
- * @param {string} text_145
294
+ * @param {string} text_81
295
295
  * @returns {Map<string, Group>}
296
296
  */
297
- find(text_145) {
298
- return compiledRegexCompiledFind_146(this, this.#compiled_140, text_145, regexRefs_147);
297
+ find(text_81) {
298
+ return compiledRegexCompiledFind_82(this, this.#compiled_76, text_81, regexRefs_83);
299
299
  }
300
300
  /**
301
- * @param {string} text_149
302
- * @param {(arg0: Map<string, Group>) => string} format_150
301
+ * @param {string} text_85
302
+ * @param {(arg0: Map<string, Group>) => string} format_86
303
303
  * @returns {string}
304
304
  */
305
- replace(text_149, format_150) {
306
- return compiledRegexCompiledReplace_151(this, this.#compiled_140, text_149, format_150, regexRefs_147);
305
+ replace(text_85, format_86) {
306
+ return compiledRegexCompiledReplace_87(this, this.#compiled_76, text_85, format_86, regexRefs_83);
307
307
  }
308
308
  /** @type {unknown} */
309
- #compiled_140;
309
+ #compiled_76;
310
310
  /** @returns {string} */
311
311
  format() {
312
- return new RegexFormatter_153().format(this.#data_135);
312
+ return new RegexFormatter_89().format(this.#data_71);
313
313
  }
314
314
  /** @returns {Regex} */
315
315
  get data() {
316
- return this.#data_135;
316
+ return this.#data_71;
317
317
  }
318
318
  };
319
- class RegexFormatter_153 {
319
+ class RegexFormatter_89 {
320
320
  /** @type {Array<string>} */
321
- #out_155;
321
+ #out_91;
322
322
  /**
323
- * @param {Regex} regex_157
323
+ * @param {Regex} regex_93
324
324
  * @returns {string}
325
325
  */
326
- format(regex_157) {
327
- this.pushRegex(regex_157);
328
- let t_158 = this.#out_155;
329
- function fn_159(x_160) {
330
- return x_160;
326
+ format(regex_93) {
327
+ this.pushRegex(regex_93);
328
+ let t_94 = this.#out_91;
329
+ function fn_95(x_96) {
330
+ return x_96;
331
331
  }
332
- return listJoin_24(t_158, "", fn_159);
332
+ return listJoin_97(t_94, "", fn_95);
333
333
  }
334
- /** @param {Regex} regex_162 */
335
- pushRegex(regex_162) {
336
- let return_163;
337
- let t_164;
338
- let t_165;
339
- let t_166;
340
- let t_167;
341
- let t_168;
342
- let t_169;
343
- let t_170;
344
- let t_171;
345
- let t_172;
346
- let t_173;
347
- let t_174;
348
- let t_175;
349
- let t_176;
350
- let t_177;
334
+ /** @param {Regex} regex_99 */
335
+ pushRegex(regex_99) {
336
+ let return_100;
337
+ let t_101;
338
+ let t_102;
339
+ let t_103;
340
+ let t_104;
341
+ let t_105;
342
+ let t_106;
343
+ let t_107;
344
+ let t_108;
345
+ let t_109;
346
+ let t_110;
347
+ let t_111;
348
+ let t_112;
349
+ let t_113;
350
+ let t_114;
351
351
  try {
352
- requireInstanceOf__178(regex_162, Capture);
353
- t_164 = true;
352
+ requireInstanceOf__115(regex_99, Capture);
353
+ t_101 = true;
354
354
  } catch {
355
- t_164 = false;
355
+ t_101 = false;
356
356
  }
357
- s__1259_179: {
358
- if (t_164) {
357
+ s__1245_116: {
358
+ if (t_101) {
359
359
  try {
360
- t_165 = requireInstanceOf__178(regex_162, Capture);
360
+ t_102 = requireInstanceOf__115(regex_99, Capture);
361
361
  } catch {
362
- break s__1259_179;
362
+ break s__1245_116;
363
363
  }
364
- this.pushCapture(t_165);
364
+ this.pushCapture(t_102);
365
365
  } else {
366
366
  try {
367
- requireInstanceOf__178(regex_162, CodePoints);
368
- t_166 = true;
367
+ requireInstanceOf__115(regex_99, CodePoints);
368
+ t_103 = true;
369
369
  } catch {
370
- t_166 = false;
370
+ t_103 = false;
371
371
  }
372
- if (t_166) {
372
+ if (t_103) {
373
373
  try {
374
- t_167 = requireInstanceOf__178(regex_162, CodePoints);
374
+ t_104 = requireInstanceOf__115(regex_99, CodePoints);
375
375
  } catch {
376
- break s__1259_179;
376
+ break s__1245_116;
377
377
  }
378
- this.pushCodePoints(t_167, false);
378
+ this.pushCodePoints(t_104, false);
379
379
  } else {
380
380
  try {
381
- requireInstanceOf__178(regex_162, CodeRange);
382
- t_168 = true;
381
+ requireInstanceOf__115(regex_99, CodeRange);
382
+ t_105 = true;
383
383
  } catch {
384
- t_168 = false;
384
+ t_105 = false;
385
385
  }
386
- if (t_168) {
386
+ if (t_105) {
387
387
  try {
388
- t_169 = requireInstanceOf__178(regex_162, CodeRange);
388
+ t_106 = requireInstanceOf__115(regex_99, CodeRange);
389
389
  } catch {
390
- break s__1259_179;
390
+ break s__1245_116;
391
391
  }
392
- this.pushCodeRange(t_169);
392
+ this.pushCodeRange(t_106);
393
393
  } else {
394
394
  try {
395
- requireInstanceOf__178(regex_162, CodeSet);
396
- t_170 = true;
395
+ requireInstanceOf__115(regex_99, CodeSet);
396
+ t_107 = true;
397
397
  } catch {
398
- t_170 = false;
398
+ t_107 = false;
399
399
  }
400
- if (t_170) {
400
+ if (t_107) {
401
401
  try {
402
- t_171 = requireInstanceOf__178(regex_162, CodeSet);
402
+ t_108 = requireInstanceOf__115(regex_99, CodeSet);
403
403
  } catch {
404
- break s__1259_179;
404
+ break s__1245_116;
405
405
  }
406
- this.pushCodeSet(t_171);
406
+ this.pushCodeSet(t_108);
407
407
  } else {
408
408
  try {
409
- requireInstanceOf__178(regex_162, Or);
410
- t_172 = true;
409
+ requireInstanceOf__115(regex_99, Or);
410
+ t_109 = true;
411
411
  } catch {
412
- t_172 = false;
412
+ t_109 = false;
413
413
  }
414
- if (t_172) {
414
+ if (t_109) {
415
415
  try {
416
- t_173 = requireInstanceOf__178(regex_162, Or);
416
+ t_110 = requireInstanceOf__115(regex_99, Or);
417
417
  } catch {
418
- break s__1259_179;
418
+ break s__1245_116;
419
419
  }
420
- this.pushOr(t_173);
420
+ this.pushOr(t_110);
421
421
  } else {
422
422
  try {
423
- requireInstanceOf__178(regex_162, Repeat);
424
- t_174 = true;
423
+ requireInstanceOf__115(regex_99, Repeat);
424
+ t_111 = true;
425
425
  } catch {
426
- t_174 = false;
426
+ t_111 = false;
427
427
  }
428
- if (t_174) {
428
+ if (t_111) {
429
429
  try {
430
- t_175 = requireInstanceOf__178(regex_162, Repeat);
430
+ t_112 = requireInstanceOf__115(regex_99, Repeat);
431
431
  } catch {
432
- break s__1259_179;
432
+ break s__1245_116;
433
433
  }
434
- this.pushRepeat(t_175);
434
+ this.pushRepeat(t_112);
435
435
  } else {
436
436
  try {
437
- requireInstanceOf__178(regex_162, Sequence);
438
- t_176 = true;
437
+ requireInstanceOf__115(regex_99, Sequence);
438
+ t_113 = true;
439
439
  } catch {
440
- t_176 = false;
440
+ t_113 = false;
441
441
  }
442
- if (t_176) {
442
+ if (t_113) {
443
443
  try {
444
- t_177 = requireInstanceOf__178(regex_162, Sequence);
444
+ t_114 = requireInstanceOf__115(regex_99, Sequence);
445
445
  } catch {
446
- break s__1259_179;
446
+ break s__1245_116;
447
447
  }
448
- this.pushSequence(t_177);
449
- } else if (eqGeneric_180(regex_162, Begin)) {
448
+ this.pushSequence(t_114);
449
+ } else if (eqGeneric_117(regex_99, Begin)) {
450
450
  try {
451
- listBuilderAdd_4(this.#out_155, "^");
451
+ listBuilderAdd_118(this.#out_91, "^");
452
452
  } catch {
453
- break s__1259_179;
453
+ break s__1245_116;
454
454
  }
455
- } else if (eqGeneric_180(regex_162, Dot)) {
455
+ } else if (eqGeneric_117(regex_99, Dot)) {
456
456
  try {
457
- listBuilderAdd_4(this.#out_155, ".");
457
+ listBuilderAdd_118(this.#out_91, ".");
458
458
  } catch {
459
- break s__1259_179;
459
+ break s__1245_116;
460
460
  }
461
- } else if (eqGeneric_180(regex_162, End)) {
461
+ } else if (eqGeneric_117(regex_99, End)) {
462
462
  try {
463
- listBuilderAdd_4(this.#out_155, "\u0024");
463
+ listBuilderAdd_118(this.#out_91, "\u0024");
464
464
  } catch {
465
- break s__1259_179;
465
+ break s__1245_116;
466
466
  }
467
- } else if (eqGeneric_180(regex_162, WordBoundary)) {
467
+ } else if (eqGeneric_117(regex_99, WordBoundary)) {
468
468
  try {
469
- listBuilderAdd_4(this.#out_155, "\\b");
469
+ listBuilderAdd_118(this.#out_91, "\\b");
470
470
  } catch {
471
- break s__1259_179;
471
+ break s__1245_116;
472
472
  }
473
- } else if (eqGeneric_180(regex_162, Digit)) {
473
+ } else if (eqGeneric_117(regex_99, Digit)) {
474
474
  try {
475
- listBuilderAdd_4(this.#out_155, "\\d");
475
+ listBuilderAdd_118(this.#out_91, "\\d");
476
476
  } catch {
477
- break s__1259_179;
477
+ break s__1245_116;
478
478
  }
479
- } else if (eqGeneric_180(regex_162, Space)) {
479
+ } else if (eqGeneric_117(regex_99, Space)) {
480
480
  try {
481
- listBuilderAdd_4(this.#out_155, "\\s");
481
+ listBuilderAdd_118(this.#out_91, "\\s");
482
482
  } catch {
483
- break s__1259_179;
483
+ break s__1245_116;
484
484
  }
485
- } else if (eqGeneric_180(regex_162, Word)) {
485
+ } else if (eqGeneric_117(regex_99, Word)) {
486
486
  try {
487
- listBuilderAdd_4(this.#out_155, "\\w");
487
+ listBuilderAdd_118(this.#out_91, "\\w");
488
488
  } catch {
489
- break s__1259_179;
489
+ break s__1245_116;
490
490
  }
491
491
  } else {
492
492
  void 0;
@@ -497,247 +497,227 @@ class RegexFormatter_153 {
497
497
  }
498
498
  }
499
499
  }
500
- return_163 = void 0;
501
- return return_163;
500
+ return_100 = void 0;
501
+ return return_100;
502
502
  }
503
503
  throw Error();
504
504
  }
505
- /** @param {Capture} capture_182 */
506
- pushCapture(capture_182) {
507
- let return_183;
508
- let t_184;
509
- let t_185;
510
- let t_186;
511
- {
512
- listBuilderAdd_4(this.#out_155, "(");
513
- t_186 = this.#out_155;
514
- t_184 = capture_182.name;
515
- this.pushCaptureName(t_186, t_184);
516
- t_185 = capture_182.item;
517
- this.pushRegex(t_185);
518
- listBuilderAdd_4(this.#out_155, ")");
519
- return_183 = void 0;
520
- }
521
- return return_183;
505
+ /** @param {Capture} capture_120 */
506
+ pushCapture(capture_120) {
507
+ listBuilderAdd_118(this.#out_91, "(");
508
+ let t_121 = this.#out_91;
509
+ let t_122 = capture_120.name;
510
+ this.pushCaptureName(t_121, t_122);
511
+ let t_123 = capture_120.item;
512
+ this.pushRegex(t_123);
513
+ listBuilderAdd_118(this.#out_91, ")");
514
+ return;
522
515
  }
523
516
  /**
524
- * @param {Array<string>} out_188
525
- * @param {string} name_189
517
+ * @param {Array<string>} out_125
518
+ * @param {string} name_126
526
519
  */
527
- pushCaptureName(out_188, name_189) {
528
- let return_190;
529
- {
530
- listBuilderAdd_4(out_188, strCat_57("?\u003c", name_189, "\u003e"));
531
- return_190 = void 0;
532
- }
533
- return return_190;
520
+ pushCaptureName(out_125, name_126) {
521
+ listBuilderAdd_118(out_125, strCat_127("?\u003c", name_126, "\u003e"));
522
+ return;
534
523
  }
535
524
  /**
536
- * @param {number} code_192
537
- * @param {boolean} insideCodeSet_193
525
+ * @param {number} code_129
526
+ * @param {boolean} insideCodeSet_130
538
527
  */
539
- pushCode(code_192, insideCodeSet_193) {
540
- regexFormatterPushCodeTo_194(this, this.#out_155, code_192, insideCodeSet_193);
528
+ pushCode(code_129, insideCodeSet_130) {
529
+ regexFormatterPushCodeTo_131(this, this.#out_91, code_129, insideCodeSet_130);
541
530
  return;
542
531
  }
543
532
  /**
544
- * @param {CodePoints} codePoints_196
545
- * @param {boolean} insideCodeSet_197
533
+ * @param {CodePoints} codePoints_133
534
+ * @param {boolean} insideCodeSet_134
546
535
  */
547
- pushCodePoints(codePoints_196, insideCodeSet_197) {
548
- let t_198;
549
- let t_199;
550
- let t_200 = stringCodePoints_201(codePoints_196.value);
551
- let slice_202 = t_200;
536
+ pushCodePoints(codePoints_133, insideCodeSet_134) {
537
+ let t_135;
538
+ let t_136;
539
+ let t_137 = stringCodePoints_138(codePoints_133.value);
540
+ let slice_139 = t_137;
552
541
  while (true) {
553
- if (! slice_202.isEmpty) {
554
- t_198 = slice_202.read();
555
- this.pushCode(t_198, insideCodeSet_197);
556
- t_199 = slice_202.advance(1);
557
- slice_202 = t_199;
542
+ if (! slice_139.isEmpty) {
543
+ t_135 = slice_139.read();
544
+ this.pushCode(t_135, insideCodeSet_134);
545
+ t_136 = slice_139.advance(1);
546
+ slice_139 = t_136;
558
547
  } else {
559
548
  break;
560
549
  }
561
550
  }
562
551
  return;
563
552
  }
564
- /** @param {CodeRange} codeRange_204 */
565
- pushCodeRange(codeRange_204) {
566
- let return_205;
567
- {
568
- listBuilderAdd_4(this.#out_155, "[");
569
- this.pushCodeRangeUnwrapped(codeRange_204);
570
- listBuilderAdd_4(this.#out_155, "]");
571
- return_205 = void 0;
572
- }
573
- return return_205;
553
+ /** @param {CodeRange} codeRange_141 */
554
+ pushCodeRange(codeRange_141) {
555
+ listBuilderAdd_118(this.#out_91, "[");
556
+ this.pushCodeRangeUnwrapped(codeRange_141);
557
+ listBuilderAdd_118(this.#out_91, "]");
558
+ return;
574
559
  }
575
- /** @param {CodeRange} codeRange_207 */
576
- pushCodeRangeUnwrapped(codeRange_207) {
577
- let return_208;
578
- let t_209;
579
- let t_210 = codeRange_207.min;
580
- this.pushCode(t_210, true);
581
- {
582
- listBuilderAdd_4(this.#out_155, "-");
583
- t_209 = codeRange_207.max;
584
- this.pushCode(t_209, true);
585
- return_208 = void 0;
586
- }
587
- return return_208;
560
+ /** @param {CodeRange} codeRange_143 */
561
+ pushCodeRangeUnwrapped(codeRange_143) {
562
+ let t_144 = codeRange_143.min;
563
+ this.pushCode(t_144, true);
564
+ listBuilderAdd_118(this.#out_91, "-");
565
+ let t_145 = codeRange_143.max;
566
+ this.pushCode(t_145, true);
567
+ return;
588
568
  }
589
- /** @param {CodeSet} codeSet_212 */
590
- pushCodeSet(codeSet_212) {
591
- let t_213;
592
- let t_214;
593
- let t_215;
594
- let t_216;
595
- const adjusted_217 = regexFormatterAdjustCodeSet_218(this, codeSet_212, regexRefs_147);
569
+ /** @param {CodeSet} codeSet_147 */
570
+ pushCodeSet(codeSet_147) {
571
+ let t_148;
572
+ let t_149;
573
+ let t_150;
574
+ let t_151;
575
+ const adjusted_152 = regexFormatterAdjustCodeSet_153(this, codeSet_147, regexRefs_83);
596
576
  try {
597
- requireInstanceOf__178(adjusted_217, CodeSet);
598
- t_214 = true;
577
+ requireInstanceOf__115(adjusted_152, CodeSet);
578
+ t_149 = true;
599
579
  } catch {
600
- t_214 = false;
580
+ t_149 = false;
601
581
  }
602
- s__1264_219: {
603
- if (t_214) {
604
- s__1265_220: {
582
+ s__1252_154: {
583
+ if (t_149) {
584
+ s__1253_155: {
605
585
  try {
606
- t_215 = requireInstanceOf__178(adjusted_217, CodeSet);
607
- listBuilderAdd_4(this.#out_155, "[");
586
+ t_150 = requireInstanceOf__115(adjusted_152, CodeSet);
587
+ listBuilderAdd_118(this.#out_91, "[");
608
588
  } catch {
609
- break s__1265_220;
589
+ break s__1253_155;
610
590
  }
611
- if (t_215.negated) {
591
+ if (t_150.negated) {
612
592
  try {
613
- listBuilderAdd_4(this.#out_155, "^");
593
+ listBuilderAdd_118(this.#out_91, "^");
614
594
  } catch {
615
- break s__1265_220;
595
+ break s__1253_155;
616
596
  }
617
597
  } else {
618
598
  void 0;
619
599
  }
620
- let i_221 = 0;
600
+ let i_156 = 0;
621
601
  while (true) {
622
- t_213 = t_215.items.length;
623
- if (i_221 < t_213) {
602
+ t_148 = t_150.items.length;
603
+ if (i_156 < t_148) {
624
604
  try {
625
- t_216 = listGet_53(t_215.items, i_221);
605
+ t_151 = listGet_157(t_150.items, i_156);
626
606
  } catch {
627
- break s__1265_220;
607
+ break s__1253_155;
628
608
  }
629
- this.pushCodeSetItem(t_216);
630
- i_221 = i_221 + 1;
609
+ this.pushCodeSetItem(t_151);
610
+ i_156 = i_156 + 1;
631
611
  } else {
632
612
  break;
633
613
  }
634
614
  }
635
615
  try {
636
- listBuilderAdd_4(this.#out_155, "]");
637
- break s__1264_219;
616
+ listBuilderAdd_118(this.#out_91, "]");
617
+ break s__1252_154;
638
618
  } catch {
639
619
  }
640
620
  }
641
621
  throw Error();
642
622
  }
643
- this.pushRegex(adjusted_217);
623
+ this.pushRegex(adjusted_152);
644
624
  }
645
625
  return;
646
626
  }
647
- /** @param {CodePart} codePart_223 */
648
- pushCodeSetItem(codePart_223) {
649
- let return_224;
650
- let t_225;
651
- let t_226;
652
- let t_227;
653
- let t_228;
654
- let t_229;
655
- let t_230;
627
+ /** @param {CodePart} codePart_159 */
628
+ pushCodeSetItem(codePart_159) {
629
+ let return_160;
630
+ let t_161;
631
+ let t_162;
632
+ let t_163;
633
+ let t_164;
634
+ let t_165;
635
+ let t_166;
656
636
  try {
657
- requireInstanceOf__178(codePart_223, CodePoints);
658
- t_225 = true;
637
+ requireInstanceOf__115(codePart_159, CodePoints);
638
+ t_161 = true;
659
639
  } catch {
660
- t_225 = false;
640
+ t_161 = false;
661
641
  }
662
- s__1269_231: {
663
- if (t_225) {
642
+ s__1259_167: {
643
+ if (t_161) {
664
644
  try {
665
- t_226 = requireInstanceOf__178(codePart_223, CodePoints);
645
+ t_162 = requireInstanceOf__115(codePart_159, CodePoints);
666
646
  } catch {
667
- break s__1269_231;
647
+ break s__1259_167;
668
648
  }
669
- this.pushCodePoints(t_226, true);
649
+ this.pushCodePoints(t_162, true);
670
650
  } else {
671
651
  try {
672
- requireInstanceOf__178(codePart_223, CodeRange);
673
- t_227 = true;
652
+ requireInstanceOf__115(codePart_159, CodeRange);
653
+ t_163 = true;
674
654
  } catch {
675
- t_227 = false;
655
+ t_163 = false;
676
656
  }
677
- if (t_227) {
657
+ if (t_163) {
678
658
  try {
679
- t_228 = requireInstanceOf__178(codePart_223, CodeRange);
659
+ t_164 = requireInstanceOf__115(codePart_159, CodeRange);
680
660
  } catch {
681
- break s__1269_231;
661
+ break s__1259_167;
682
662
  }
683
- this.pushCodeRangeUnwrapped(t_228);
663
+ this.pushCodeRangeUnwrapped(t_164);
684
664
  } else {
685
665
  try {
686
- requireInstanceOf__178(codePart_223, SpecialSet);
687
- t_229 = true;
666
+ requireInstanceOf__115(codePart_159, SpecialSet);
667
+ t_165 = true;
688
668
  } catch {
689
- t_229 = false;
669
+ t_165 = false;
690
670
  }
691
- if (t_229) {
671
+ if (t_165) {
692
672
  try {
693
- t_230 = requireInstanceOf__178(codePart_223, SpecialSet);
673
+ t_166 = requireInstanceOf__115(codePart_159, SpecialSet);
694
674
  } catch {
695
- break s__1269_231;
675
+ break s__1259_167;
696
676
  }
697
- this.pushRegex(t_230);
677
+ this.pushRegex(t_166);
698
678
  } else {
699
679
  void 0;
700
680
  }
701
681
  }
702
682
  }
703
- return_224 = void 0;
704
- return return_224;
683
+ return_160 = void 0;
684
+ return return_160;
705
685
  }
706
686
  throw Error();
707
687
  }
708
- /** @param {Or} or_233 */
709
- pushOr(or_233) {
710
- let t_234;
711
- let t_235;
712
- let t_236;
713
- s__1271_237: if (! ! or_233.items.length) {
714
- s__1272_238: {
688
+ /** @param {Or} or_169 */
689
+ pushOr(or_169) {
690
+ let t_170;
691
+ let t_171;
692
+ let t_172;
693
+ s__1261_173: if (! ! or_169.items.length) {
694
+ s__1262_174: {
715
695
  try {
716
- listBuilderAdd_4(this.#out_155, "(?:");
717
- t_235 = listGet_53(or_233.items, 0);
696
+ listBuilderAdd_118(this.#out_91, "(?:");
697
+ t_171 = listGet_157(or_169.items, 0);
718
698
  } catch {
719
- break s__1272_238;
699
+ break s__1262_174;
720
700
  }
721
- this.pushRegex(t_235);
722
- let i_239 = 1;
701
+ this.pushRegex(t_171);
702
+ let i_175 = 1;
723
703
  while (true) {
724
- t_234 = or_233.items.length;
725
- if (i_239 < t_234) {
704
+ t_170 = or_169.items.length;
705
+ if (i_175 < t_170) {
726
706
  try {
727
- listBuilderAdd_4(this.#out_155, "|");
728
- t_236 = listGet_53(or_233.items, i_239);
707
+ listBuilderAdd_118(this.#out_91, "|");
708
+ t_172 = listGet_157(or_169.items, i_175);
729
709
  } catch {
730
710
  break;
731
711
  }
732
- this.pushRegex(t_236);
733
- i_239 = i_239 + 1;
712
+ this.pushRegex(t_172);
713
+ i_175 = i_175 + 1;
734
714
  } else {
735
715
  try {
736
- listBuilderAdd_4(this.#out_155, ")");
716
+ listBuilderAdd_118(this.#out_91, ")");
737
717
  } catch {
738
- break s__1272_238;
718
+ break s__1262_174;
739
719
  }
740
- break s__1271_237;
720
+ break s__1261_173;
741
721
  }
742
722
  }
743
723
  }
@@ -745,82 +725,82 @@ class RegexFormatter_153 {
745
725
  }
746
726
  return;
747
727
  }
748
- /** @param {Repeat} repeat_241 */
749
- pushRepeat(repeat_241) {
750
- let return_242;
751
- let t_243;
752
- let t_244;
753
- let t_245;
754
- let t_246;
755
- let t_247;
756
- let t_248;
757
- s__1275_249: {
758
- let min_250;
759
- let max_251;
728
+ /** @param {Repeat} repeat_177 */
729
+ pushRepeat(repeat_177) {
730
+ let return_178;
731
+ let t_179;
732
+ let t_180;
733
+ let t_181;
734
+ let t_182;
735
+ let t_183;
736
+ let t_184;
737
+ s__1266_185: {
738
+ let min_186;
739
+ let max_187;
760
740
  try {
761
- listBuilderAdd_4(this.#out_155, "(?:");
762
- t_243 = repeat_241.item;
763
- this.pushRegex(t_243);
764
- listBuilderAdd_4(this.#out_155, ")");
765
- min_250 = repeat_241.min;
766
- max_251 = repeat_241.max;
741
+ listBuilderAdd_118(this.#out_91, "(?:");
742
+ t_179 = repeat_177.item;
743
+ this.pushRegex(t_179);
744
+ listBuilderAdd_118(this.#out_91, ")");
745
+ min_186 = repeat_177.min;
746
+ max_187 = repeat_177.max;
767
747
  } catch {
768
- break s__1275_249;
748
+ break s__1266_185;
769
749
  }
770
- if (min_250 === 0) {
771
- t_244 = max_251 === 1;
750
+ if (min_186 === 0) {
751
+ t_180 = max_187 === 1;
772
752
  } else {
773
- t_244 = false;
753
+ t_180 = false;
774
754
  }
775
- if (t_244) {
755
+ if (t_180) {
776
756
  try {
777
- listBuilderAdd_4(this.#out_155, "?");
757
+ listBuilderAdd_118(this.#out_91, "?");
778
758
  } catch {
779
- break s__1275_249;
759
+ break s__1266_185;
780
760
  }
781
761
  } else {
782
- if (min_250 === 0) {
783
- t_245 = max_251 === null;
762
+ if (min_186 === 0) {
763
+ t_181 = max_187 === null;
784
764
  } else {
785
- t_245 = false;
765
+ t_181 = false;
786
766
  }
787
- if (t_245) {
767
+ if (t_181) {
788
768
  try {
789
- listBuilderAdd_4(this.#out_155, "*");
769
+ listBuilderAdd_118(this.#out_91, "*");
790
770
  } catch {
791
- break s__1275_249;
771
+ break s__1266_185;
792
772
  }
793
773
  } else {
794
- if (min_250 === 1) {
795
- t_246 = max_251 === null;
774
+ if (min_186 === 1) {
775
+ t_182 = max_187 === null;
796
776
  } else {
797
- t_246 = false;
777
+ t_182 = false;
798
778
  }
799
- if (t_246) {
779
+ if (t_182) {
800
780
  try {
801
- listBuilderAdd_4(this.#out_155, "+");
781
+ listBuilderAdd_118(this.#out_91, "+");
802
782
  } catch {
803
- break s__1275_249;
783
+ break s__1266_185;
804
784
  }
805
785
  } else {
806
786
  try {
807
- listBuilderAdd_4(this.#out_155, strCat_57("{", intToString_252(min_250)));
787
+ listBuilderAdd_118(this.#out_91, strCat_127("{", intToString_188(min_186)));
808
788
  } catch {
809
- break s__1275_249;
789
+ break s__1266_185;
810
790
  }
811
- if (min_250 !== max_251) {
791
+ if (min_186 !== max_187) {
812
792
  try {
813
- listBuilderAdd_4(this.#out_155, ",");
793
+ listBuilderAdd_118(this.#out_91, ",");
814
794
  } catch {
815
- break s__1275_249;
795
+ break s__1266_185;
816
796
  }
817
- if (max_251 !== null) {
818
- t_248 = this.#out_155;
797
+ if (max_187 !== null) {
798
+ t_184 = this.#out_91;
819
799
  try {
820
- t_247 = requireIsSafeInteger__253(max_251);
821
- listBuilderAdd_4(t_248, intToString_252(t_247));
800
+ t_183 = requireIsSafeInteger__189(max_187);
801
+ listBuilderAdd_118(t_184, intToString_188(t_183));
822
802
  } catch {
823
- break s__1275_249;
803
+ break s__1266_185;
824
804
  }
825
805
  } else {
826
806
  void 0;
@@ -829,244 +809,244 @@ class RegexFormatter_153 {
829
809
  void 0;
830
810
  }
831
811
  try {
832
- listBuilderAdd_4(this.#out_155, "}");
812
+ listBuilderAdd_118(this.#out_91, "}");
833
813
  } catch {
834
- break s__1275_249;
814
+ break s__1266_185;
835
815
  }
836
816
  }
837
817
  }
838
818
  }
839
- if (repeat_241.reluctant) {
819
+ if (repeat_177.reluctant) {
840
820
  try {
841
- listBuilderAdd_4(this.#out_155, "?");
821
+ listBuilderAdd_118(this.#out_91, "?");
842
822
  } catch {
843
- break s__1275_249;
823
+ break s__1266_185;
844
824
  }
845
825
  } else {
846
826
  void 0;
847
827
  }
848
- return_242 = void 0;
849
- return return_242;
828
+ return_178 = void 0;
829
+ return return_178;
850
830
  }
851
831
  throw Error();
852
832
  }
853
- /** @param {Sequence} sequence_255 */
854
- pushSequence(sequence_255) {
855
- let return_256;
856
- let t_257;
857
- let t_258;
858
- let i_259 = 0;
859
- s__1278_260: {
833
+ /** @param {Sequence} sequence_191 */
834
+ pushSequence(sequence_191) {
835
+ let return_192;
836
+ let t_193;
837
+ let t_194;
838
+ let i_195 = 0;
839
+ s__1269_196: {
860
840
  while (true) {
861
- t_257 = sequence_255.items.length;
862
- if (i_259 < t_257) {
841
+ t_193 = sequence_191.items.length;
842
+ if (i_195 < t_193) {
863
843
  try {
864
- t_258 = listGet_53(sequence_255.items, i_259);
844
+ t_194 = listGet_157(sequence_191.items, i_195);
865
845
  } catch {
866
846
  break;
867
847
  }
868
- this.pushRegex(t_258);
869
- i_259 = i_259 + 1;
848
+ this.pushRegex(t_194);
849
+ i_195 = i_195 + 1;
870
850
  } else {
871
- return_256 = void 0;
872
- break s__1278_260;
851
+ return_192 = void 0;
852
+ break s__1269_196;
873
853
  }
874
854
  }
875
855
  throw Error();
876
856
  }
877
- return return_256;
857
+ return return_192;
878
858
  }
879
859
  /**
880
- * @param {CodePart} codePart_262
860
+ * @param {CodePart} codePart_198
881
861
  * @returns {number | null}
882
862
  */
883
- maxCode(codePart_262) {
884
- let return_263;
885
- let t_264;
886
- let t_265;
887
- let t_266;
888
- let t_267;
889
- let t_268;
890
- let t_269;
891
- let t_270;
892
- let t_271;
893
- let t_272;
894
- let t_273;
863
+ maxCode(codePart_198) {
864
+ let return_199;
865
+ let t_200;
866
+ let t_201;
867
+ let t_202;
868
+ let t_203;
869
+ let t_204;
870
+ let t_205;
871
+ let t_206;
872
+ let t_207;
873
+ let t_208;
874
+ let t_209;
895
875
  try {
896
- requireInstanceOf__178(codePart_262, CodePoints);
897
- t_270 = true;
876
+ requireInstanceOf__115(codePart_198, CodePoints);
877
+ t_206 = true;
898
878
  } catch {
899
- t_270 = false;
879
+ t_206 = false;
900
880
  }
901
- s__1280_274: {
902
- if (t_270) {
881
+ s__1271_210: {
882
+ if (t_206) {
903
883
  try {
904
- t_271 = requireInstanceOf__178(codePart_262, CodePoints);
884
+ t_207 = requireInstanceOf__115(codePart_198, CodePoints);
905
885
  } catch {
906
- break s__1280_274;
886
+ break s__1271_210;
907
887
  }
908
- const value_275 = t_271.value;
909
- if (! value_275) {
910
- return_263 = null;
888
+ const value_211 = t_207.value;
889
+ if (! value_211) {
890
+ return_199 = null;
911
891
  } else {
912
- let max_276 = 0;
913
- t_264 = stringCodePoints_201(value_275);
914
- let slice_277 = t_264;
892
+ let max_212 = 0;
893
+ t_200 = stringCodePoints_138(value_211);
894
+ let slice_213 = t_200;
915
895
  while (true) {
916
- if (! slice_277.isEmpty) {
917
- const next_278 = slice_277.read();
918
- if (next_278 > max_276) {
919
- max_276 = next_278;
896
+ if (! slice_213.isEmpty) {
897
+ const next_214 = slice_213.read();
898
+ if (next_214 > max_212) {
899
+ max_212 = next_214;
920
900
  } else {
921
901
  void 0;
922
902
  }
923
- t_265 = slice_277.advance(1);
924
- slice_277 = t_265;
903
+ t_201 = slice_213.advance(1);
904
+ slice_213 = t_201;
925
905
  } else {
926
906
  break;
927
907
  }
928
908
  }
929
- return_263 = max_276;
909
+ return_199 = max_212;
930
910
  }
931
911
  } else {
932
912
  try {
933
- requireInstanceOf__178(codePart_262, CodeRange);
934
- t_272 = true;
913
+ requireInstanceOf__115(codePart_198, CodeRange);
914
+ t_208 = true;
935
915
  } catch {
936
- t_272 = false;
916
+ t_208 = false;
937
917
  }
938
- if (t_272) {
918
+ if (t_208) {
939
919
  try {
940
- t_273 = requireInstanceOf__178(codePart_262, CodeRange);
941
- t_266 = t_273.max;
942
- return_263 = t_266;
920
+ t_209 = requireInstanceOf__115(codePart_198, CodeRange);
921
+ t_202 = t_209.max;
922
+ return_199 = t_202;
943
923
  } catch {
944
- break s__1280_274;
924
+ break s__1271_210;
945
925
  }
946
- } else if (eqGeneric_180(codePart_262, Digit)) {
947
- t_267 = stringCodePoints_201("9").read();
926
+ } else if (eqGeneric_117(codePart_198, Digit)) {
927
+ t_203 = stringCodePoints_138("9").read();
948
928
  try {
949
- return_263 = t_267;
929
+ return_199 = t_203;
950
930
  } catch {
951
- break s__1280_274;
931
+ break s__1271_210;
952
932
  }
953
- } else if (eqGeneric_180(codePart_262, Space)) {
954
- t_268 = stringCodePoints_201(" ").read();
933
+ } else if (eqGeneric_117(codePart_198, Space)) {
934
+ t_204 = stringCodePoints_138(" ").read();
955
935
  try {
956
- return_263 = t_268;
936
+ return_199 = t_204;
957
937
  } catch {
958
- break s__1280_274;
938
+ break s__1271_210;
959
939
  }
960
- } else if (eqGeneric_180(codePart_262, Word)) {
961
- t_269 = stringCodePoints_201("z").read();
940
+ } else if (eqGeneric_117(codePart_198, Word)) {
941
+ t_205 = stringCodePoints_138("z").read();
962
942
  try {
963
- return_263 = t_269;
943
+ return_199 = t_205;
964
944
  } catch {
965
- break s__1280_274;
945
+ break s__1271_210;
966
946
  }
967
947
  } else {
968
- return_263 = null;
948
+ return_199 = null;
969
949
  }
970
950
  }
971
- return return_263;
951
+ return return_199;
972
952
  }
973
953
  throw Error();
974
954
  }
975
- /** @param {Array<string>} out_279 */
976
- constructor(out_279) {
977
- let t_280;
978
- if (!(out_279 !== void 0)) {
979
- t_280 = [];
980
- out_279 = t_280;
955
+ /** @param {Array<string>} out_215 */
956
+ constructor(out_215) {
957
+ let t_216;
958
+ if (!(out_215 !== void 0)) {
959
+ t_216 = [];
960
+ out_215 = t_216;
981
961
  }
982
- this.#out_155 = out_279;
962
+ this.#out_91 = out_215;
983
963
  return;
984
964
  }
985
965
  }
986
- class Begin_281 {
966
+ /** @type {RegexRefs_57} */
967
+ const regexRefs_83 = new RegexRefs_57();
968
+ class Begin_217 {
987
969
  constructor() {
988
970
  return;
989
971
  }
990
972
  }
991
- Special.implementedBy(Begin_281);
973
+ Special.implementedBy(Begin_217);
992
974
  /** @type {Special} */
993
- export const Begin = new Begin_281();
994
- class Dot_282 {
975
+ export const Begin = new Begin_217();
976
+ class Dot_218 {
995
977
  constructor() {
996
978
  return;
997
979
  }
998
980
  }
999
- Special.implementedBy(Dot_282);
981
+ Special.implementedBy(Dot_218);
1000
982
  /** @type {Special} */
1001
- export const Dot = new Dot_282();
1002
- class End_283 {
983
+ export const Dot = new Dot_218();
984
+ class End_219 {
1003
985
  constructor() {
1004
986
  return;
1005
987
  }
1006
988
  }
1007
- Special.implementedBy(End_283);
989
+ Special.implementedBy(End_219);
1008
990
  /** @type {Special} */
1009
- export const End = new End_283();
1010
- class WordBoundary_284 {
991
+ export const End = new End_219();
992
+ class WordBoundary_220 {
1011
993
  constructor() {
1012
994
  return;
1013
995
  }
1014
996
  }
1015
- Special.implementedBy(WordBoundary_284);
997
+ Special.implementedBy(WordBoundary_220);
1016
998
  /** @type {Special} */
1017
- export const WordBoundary = new WordBoundary_284();
1018
- class Digit_285 {
999
+ export const WordBoundary = new WordBoundary_220();
1000
+ class Digit_221 {
1019
1001
  constructor() {
1020
1002
  return;
1021
1003
  }
1022
1004
  }
1023
- SpecialSet.implementedBy(Digit_285);
1005
+ SpecialSet.implementedBy(Digit_221);
1024
1006
  /** @type {SpecialSet} */
1025
- export const Digit = new Digit_285();
1026
- class Space_286 {
1007
+ export const Digit = new Digit_221();
1008
+ class Space_222 {
1027
1009
  constructor() {
1028
1010
  return;
1029
1011
  }
1030
1012
  }
1031
- SpecialSet.implementedBy(Space_286);
1013
+ SpecialSet.implementedBy(Space_222);
1032
1014
  /** @type {SpecialSet} */
1033
- export const Space = new Space_286();
1034
- class Word_287 {
1015
+ export const Space = new Space_222();
1016
+ class Word_223 {
1035
1017
  constructor() {
1036
1018
  return;
1037
1019
  }
1038
1020
  }
1039
- SpecialSet.implementedBy(Word_287);
1021
+ SpecialSet.implementedBy(Word_223);
1040
1022
  /** @type {SpecialSet} */
1041
- export const Word = new Word_287();
1023
+ export const Word = new Word_223();
1042
1024
  /**
1043
- * @param {Regex} item_288
1025
+ * @param {Regex} item_224
1044
1026
  * @returns {Regex}
1045
1027
  */
1046
- export function entire(item_288) {
1047
- return new Sequence(listify_42(Begin, item_288, End));
1028
+ export function entire(item_224) {
1029
+ return new Sequence(listify_67(Begin, item_224, End));
1048
1030
  };
1049
1031
  /**
1050
- * @param {Regex} item_289
1051
- * @param {boolean} reluctant_290
1032
+ * @param {Regex} item_225
1033
+ * @param {boolean} reluctant_226
1052
1034
  * @returns {Repeat}
1053
1035
  */
1054
- export function oneOrMore(item_289, reluctant_290) {
1055
- if (!(reluctant_290 !== void 0)) {
1056
- reluctant_290 = false;
1036
+ export function oneOrMore(item_225, reluctant_226) {
1037
+ if (!(reluctant_226 !== void 0)) {
1038
+ reluctant_226 = false;
1057
1039
  }
1058
- return new Repeat(item_289, 1, null, reluctant_290);
1040
+ return new Repeat(item_225, 1, null, reluctant_226);
1059
1041
  };
1060
1042
  /**
1061
- * @param {Regex} item_291
1062
- * @param {boolean} reluctant_292
1043
+ * @param {Regex} item_227
1044
+ * @param {boolean} reluctant_228
1063
1045
  * @returns {Repeat}
1064
1046
  */
1065
- export function optional(item_291, reluctant_292) {
1066
- if (!(reluctant_292 !== void 0)) {
1067
- reluctant_292 = false;
1047
+ export function optional(item_227, reluctant_228) {
1048
+ if (!(reluctant_228 !== void 0)) {
1049
+ reluctant_228 = false;
1068
1050
  }
1069
- return new Repeat(item_291, 0, 1, reluctant_292);
1051
+ return new Repeat(item_227, 0, 1, reluctant_228);
1070
1052
  };
1071
- /** @type {RegexRefs_122} */
1072
- const regexRefs_147 = new RegexRefs_122();