@next-bricks/advanced 0.33.4 → 0.33.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +10 -10
- package/dist/chunks/1122.2c345ae6.js +2 -0
- package/dist/chunks/1122.2c345ae6.js.map +1 -0
- package/dist/chunks/{3171.510584aa.js → 3171.afd7f489.js} +2 -2
- package/dist/chunks/{5552.0c2f3750.js.map → 3171.afd7f489.js.map} +1 -1
- package/dist/chunks/{3933.161a05ea.js → 3933.64aa7bba.js} +2 -2
- package/dist/chunks/{3933.161a05ea.js.map → 3933.64aa7bba.js.map} +1 -1
- package/dist/chunks/{4837.06f2c602.js → 4837.f6e3e461.js} +2 -2
- package/dist/chunks/{4837.06f2c602.js.map → 4837.f6e3e461.js.map} +1 -1
- package/dist/chunks/4947.c1f458d5.js +3 -0
- package/dist/chunks/4947.c1f458d5.js.map +1 -0
- package/dist/chunks/5399.8701798e.js +2 -0
- package/dist/chunks/5399.8701798e.js.map +1 -0
- package/dist/chunks/5479.03f51858.js +2 -0
- package/dist/chunks/{5479.201a8708.js.map → 5479.03f51858.js.map} +1 -1
- package/dist/chunks/{5552.0c2f3750.js → 5552.376ad301.js} +2 -2
- package/dist/chunks/{3171.510584aa.js.map → 5552.376ad301.js.map} +1 -1
- package/dist/chunks/{6314.4face918.js → 6314.c1c149fd.js} +2 -2
- package/dist/chunks/{6314.4face918.js.map → 6314.c1c149fd.js.map} +1 -1
- package/dist/chunks/{7218.dce2c80d.js → 7218.b2afe775.js} +2 -2
- package/dist/chunks/{7218.dce2c80d.js.map → 7218.b2afe775.js.map} +1 -1
- package/dist/chunks/{790.59874681.js → 790.4f1226b1.js} +2 -2
- package/dist/chunks/{790.59874681.js.map → 790.4f1226b1.js.map} +1 -1
- package/dist/chunks/9260.c3e87ac0.js +2 -0
- package/dist/chunks/{9260.a0f83253.js.map → 9260.c3e87ac0.js.map} +1 -1
- package/dist/chunks/{capture-snapshot.f047f15c.js → capture-snapshot.28c6e55d.js} +2 -2
- package/dist/chunks/{capture-snapshot.f047f15c.js.map → capture-snapshot.28c6e55d.js.map} +1 -1
- package/dist/chunks/eo-cascader.0e175a05.js +2 -0
- package/dist/chunks/{eo-cascader.e3dca283.js.map → eo-cascader.0e175a05.js.map} +1 -1
- package/dist/chunks/eo-table.57b2411a.js +2 -0
- package/dist/chunks/{eo-table.042eb0c6.js.map → eo-table.57b2411a.js.map} +1 -1
- package/dist/chunks/eo-tree-select.fd0f59ab.js +2 -0
- package/dist/chunks/{eo-tree-select.1b84b62a.js.map → eo-tree-select.fd0f59ab.js.map} +1 -1
- package/dist/chunks/{eo-tree.89207869.js → eo-tree.105d8ebb.js} +3 -3
- package/dist/chunks/{eo-tree.89207869.js.map → eo-tree.105d8ebb.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout.ff7065f2.js +2 -0
- package/dist/chunks/{eo-workbench-layout.ae77de67.js.map → eo-workbench-layout.ff7065f2.js.map} +1 -1
- package/dist/chunks/main.8585ced2.js +2 -0
- package/dist/chunks/{main.77b41cd6.js.map → main.8585ced2.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/index.7e5c42fc.js +2 -0
- package/dist/index.7e5c42fc.js.map +1 -0
- package/dist/manifest.json +222 -222
- package/dist/types.json +156 -156
- package/package.json +2 -2
- package/dist/chunks/1122.5043f029.js +0 -2
- package/dist/chunks/1122.5043f029.js.map +0 -1
- package/dist/chunks/4947.38659b48.js +0 -3
- package/dist/chunks/4947.38659b48.js.map +0 -1
- package/dist/chunks/5399.5bec9039.js +0 -2
- package/dist/chunks/5399.5bec9039.js.map +0 -1
- package/dist/chunks/5479.201a8708.js +0 -2
- package/dist/chunks/9260.a0f83253.js +0 -2
- package/dist/chunks/eo-cascader.e3dca283.js +0 -2
- package/dist/chunks/eo-table.042eb0c6.js +0 -2
- package/dist/chunks/eo-tree-select.1b84b62a.js +0 -2
- package/dist/chunks/eo-workbench-layout.ae77de67.js +0 -2
- package/dist/chunks/main.77b41cd6.js +0 -2
- package/dist/index.8a1c753e.js +0 -2
- package/dist/index.8a1c753e.js.map +0 -1
- /package/dist/chunks/{4947.38659b48.js.LICENSE.txt → 4947.c1f458d5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-tree.89207869.js.LICENSE.txt → eo-tree.105d8ebb.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -275,162 +275,6 @@
|
|
|
275
275
|
],
|
|
276
276
|
"methods": []
|
|
277
277
|
},
|
|
278
|
-
"eo-workbench-layout": {
|
|
279
|
-
"properties": [
|
|
280
|
-
{
|
|
281
|
-
"name": "cardTitle",
|
|
282
|
-
"annotation": {
|
|
283
|
-
"type": "keyword",
|
|
284
|
-
"value": "string"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"name": "isEdit",
|
|
289
|
-
"annotation": {
|
|
290
|
-
"type": "keyword",
|
|
291
|
-
"value": "boolean"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "layouts",
|
|
296
|
-
"annotation": {
|
|
297
|
-
"type": "array",
|
|
298
|
-
"elementType": {
|
|
299
|
-
"type": "reference",
|
|
300
|
-
"typeName": {
|
|
301
|
-
"type": "identifier",
|
|
302
|
-
"name": "Layout"
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"name": "componentList",
|
|
309
|
-
"annotation": {
|
|
310
|
-
"type": "array",
|
|
311
|
-
"elementType": {
|
|
312
|
-
"type": "reference",
|
|
313
|
-
"typeName": {
|
|
314
|
-
"type": "identifier",
|
|
315
|
-
"name": "Item"
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
"events": [
|
|
322
|
-
{
|
|
323
|
-
"name": "save",
|
|
324
|
-
"detail": {
|
|
325
|
-
"annotation": {
|
|
326
|
-
"type": "array",
|
|
327
|
-
"elementType": {
|
|
328
|
-
"type": "reference",
|
|
329
|
-
"typeName": {
|
|
330
|
-
"type": "identifier",
|
|
331
|
-
"name": "Layout"
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"name": "cancel",
|
|
339
|
-
"detail": {
|
|
340
|
-
"annotation": {
|
|
341
|
-
"type": "keyword",
|
|
342
|
-
"value": "void"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"methods": [],
|
|
348
|
-
"types": [
|
|
349
|
-
{
|
|
350
|
-
"type": "interface",
|
|
351
|
-
"name": "Item",
|
|
352
|
-
"body": [
|
|
353
|
-
{
|
|
354
|
-
"type": "propertySignature",
|
|
355
|
-
"key": {
|
|
356
|
-
"type": "identifier",
|
|
357
|
-
"name": "position"
|
|
358
|
-
},
|
|
359
|
-
"annotation": {
|
|
360
|
-
"type": "reference",
|
|
361
|
-
"typeName": {
|
|
362
|
-
"type": "identifier",
|
|
363
|
-
"name": "Layout"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"computed": false
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"type": "propertySignature",
|
|
370
|
-
"key": {
|
|
371
|
-
"type": "identifier",
|
|
372
|
-
"name": "key"
|
|
373
|
-
},
|
|
374
|
-
"annotation": {
|
|
375
|
-
"type": "keyword",
|
|
376
|
-
"value": "string"
|
|
377
|
-
},
|
|
378
|
-
"computed": false
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"type": "propertySignature",
|
|
382
|
-
"key": {
|
|
383
|
-
"type": "identifier",
|
|
384
|
-
"name": "title"
|
|
385
|
-
},
|
|
386
|
-
"annotation": {
|
|
387
|
-
"type": "keyword",
|
|
388
|
-
"value": "string"
|
|
389
|
-
},
|
|
390
|
-
"computed": false
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"type": "propertySignature",
|
|
394
|
-
"key": {
|
|
395
|
-
"type": "identifier",
|
|
396
|
-
"name": "style"
|
|
397
|
-
},
|
|
398
|
-
"annotation": {
|
|
399
|
-
"type": "reference",
|
|
400
|
-
"typeName": {
|
|
401
|
-
"type": "qualifiedName",
|
|
402
|
-
"left": {
|
|
403
|
-
"type": "identifier",
|
|
404
|
-
"name": "React"
|
|
405
|
-
},
|
|
406
|
-
"right": {
|
|
407
|
-
"type": "identifier",
|
|
408
|
-
"name": "CSSProperties"
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
"optional": true,
|
|
413
|
-
"computed": false
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"type": "propertySignature",
|
|
417
|
-
"key": {
|
|
418
|
-
"type": "identifier",
|
|
419
|
-
"name": "useBrick"
|
|
420
|
-
},
|
|
421
|
-
"annotation": {
|
|
422
|
-
"type": "reference",
|
|
423
|
-
"typeName": {
|
|
424
|
-
"type": "identifier",
|
|
425
|
-
"name": "UseSingleBrickConf"
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
"computed": false
|
|
429
|
-
}
|
|
430
|
-
]
|
|
431
|
-
}
|
|
432
|
-
]
|
|
433
|
-
},
|
|
434
278
|
"eo-tree": {
|
|
435
279
|
"properties": [
|
|
436
280
|
{
|
|
@@ -1218,6 +1062,162 @@
|
|
|
1218
1062
|
],
|
|
1219
1063
|
"methods": []
|
|
1220
1064
|
},
|
|
1065
|
+
"eo-workbench-layout": {
|
|
1066
|
+
"properties": [
|
|
1067
|
+
{
|
|
1068
|
+
"name": "cardTitle",
|
|
1069
|
+
"annotation": {
|
|
1070
|
+
"type": "keyword",
|
|
1071
|
+
"value": "string"
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "isEdit",
|
|
1076
|
+
"annotation": {
|
|
1077
|
+
"type": "keyword",
|
|
1078
|
+
"value": "boolean"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "layouts",
|
|
1083
|
+
"annotation": {
|
|
1084
|
+
"type": "array",
|
|
1085
|
+
"elementType": {
|
|
1086
|
+
"type": "reference",
|
|
1087
|
+
"typeName": {
|
|
1088
|
+
"type": "identifier",
|
|
1089
|
+
"name": "Layout"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "componentList",
|
|
1096
|
+
"annotation": {
|
|
1097
|
+
"type": "array",
|
|
1098
|
+
"elementType": {
|
|
1099
|
+
"type": "reference",
|
|
1100
|
+
"typeName": {
|
|
1101
|
+
"type": "identifier",
|
|
1102
|
+
"name": "Item"
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"events": [
|
|
1109
|
+
{
|
|
1110
|
+
"name": "save",
|
|
1111
|
+
"detail": {
|
|
1112
|
+
"annotation": {
|
|
1113
|
+
"type": "array",
|
|
1114
|
+
"elementType": {
|
|
1115
|
+
"type": "reference",
|
|
1116
|
+
"typeName": {
|
|
1117
|
+
"type": "identifier",
|
|
1118
|
+
"name": "Layout"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"name": "cancel",
|
|
1126
|
+
"detail": {
|
|
1127
|
+
"annotation": {
|
|
1128
|
+
"type": "keyword",
|
|
1129
|
+
"value": "void"
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
"methods": [],
|
|
1135
|
+
"types": [
|
|
1136
|
+
{
|
|
1137
|
+
"type": "interface",
|
|
1138
|
+
"name": "Item",
|
|
1139
|
+
"body": [
|
|
1140
|
+
{
|
|
1141
|
+
"type": "propertySignature",
|
|
1142
|
+
"key": {
|
|
1143
|
+
"type": "identifier",
|
|
1144
|
+
"name": "position"
|
|
1145
|
+
},
|
|
1146
|
+
"annotation": {
|
|
1147
|
+
"type": "reference",
|
|
1148
|
+
"typeName": {
|
|
1149
|
+
"type": "identifier",
|
|
1150
|
+
"name": "Layout"
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"computed": false
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"type": "propertySignature",
|
|
1157
|
+
"key": {
|
|
1158
|
+
"type": "identifier",
|
|
1159
|
+
"name": "key"
|
|
1160
|
+
},
|
|
1161
|
+
"annotation": {
|
|
1162
|
+
"type": "keyword",
|
|
1163
|
+
"value": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"computed": false
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"type": "propertySignature",
|
|
1169
|
+
"key": {
|
|
1170
|
+
"type": "identifier",
|
|
1171
|
+
"name": "title"
|
|
1172
|
+
},
|
|
1173
|
+
"annotation": {
|
|
1174
|
+
"type": "keyword",
|
|
1175
|
+
"value": "string"
|
|
1176
|
+
},
|
|
1177
|
+
"computed": false
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"type": "propertySignature",
|
|
1181
|
+
"key": {
|
|
1182
|
+
"type": "identifier",
|
|
1183
|
+
"name": "style"
|
|
1184
|
+
},
|
|
1185
|
+
"annotation": {
|
|
1186
|
+
"type": "reference",
|
|
1187
|
+
"typeName": {
|
|
1188
|
+
"type": "qualifiedName",
|
|
1189
|
+
"left": {
|
|
1190
|
+
"type": "identifier",
|
|
1191
|
+
"name": "React"
|
|
1192
|
+
},
|
|
1193
|
+
"right": {
|
|
1194
|
+
"type": "identifier",
|
|
1195
|
+
"name": "CSSProperties"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"optional": true,
|
|
1200
|
+
"computed": false
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"type": "propertySignature",
|
|
1204
|
+
"key": {
|
|
1205
|
+
"type": "identifier",
|
|
1206
|
+
"name": "useBrick"
|
|
1207
|
+
},
|
|
1208
|
+
"annotation": {
|
|
1209
|
+
"type": "reference",
|
|
1210
|
+
"typeName": {
|
|
1211
|
+
"type": "identifier",
|
|
1212
|
+
"name": "UseSingleBrickConf"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"computed": false
|
|
1216
|
+
}
|
|
1217
|
+
]
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
},
|
|
1221
1221
|
"advanced.capture-snapshot": {
|
|
1222
1222
|
"type": "provider",
|
|
1223
1223
|
"params": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/advanced",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.5",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/advanced",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@next-bricks/icons": "*",
|
|
45
45
|
"@next-bricks/markdown": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8dd16729d3c01eac8553d16d913ff2efd55d4f8f"
|
|
48
48
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[1122],{24586:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(11369);function i(e,n,t){return(n=(0,r.A)(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},11369:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(17545);function i(e){var n=function(e,n){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(n)?n:n+""}},17545:(e,n,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.d(n,{A:()=>r})},61122:(e,n,t)=>{t.r(n),t.d(n,{cook:()=>z,isEvaluable:()=>J,isTrackAll:()=>Q,precook:()=>_,precookFunction:()=>G,preevaluate:()=>H,shouldAllowRecursiveEvaluations:()=>K});var r=t(24586);class i{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0),(0,r.A)(this,"Function",void 0)}}class o{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingMap",new Map),this.OuterEnv=e}HasBinding(e){return this.bindingMap.has(e)}CreateMutableBinding(e,n){return this.bindingMap.set(e,{mutable:!0,deletable:n}),g(void 0)}CreateImmutableBinding(e,n){return this.bindingMap.set(e,{strict:n}),g(void 0)}InitializeBinding(e,n){const t=this.bindingMap.get(e);return Object.assign(t,{initialized:!0,value:n}),g(void 0)}SetMutableBinding(e,n,t){const r=this.bindingMap.get(e);if(!r.initialized)throw new ReferenceError(`${e} is not initialized`);if(!r.mutable)throw new TypeError("Assignment to constant variable");return r.value=n,g(void 0)}GetBindingValue(e,n){const t=this.bindingMap.get(e);if(!t.initialized)throw new ReferenceError(`${e} is not initialized`);return t.value}}class a extends o{}class s extends o{}const c=Symbol.for("SourceNode"),l=Symbol.for("FormalParameters"),u=Symbol.for("ECMAScriptCode"),d=Symbol.for("Environment"),f=Symbol.for("IsConstructor"),y=Symbol.for("$DebuggerCall$"),p=Symbol.for("$DebuggerScope$"),m=Symbol.for("$DebuggerNode$");class v{constructor(e,n,t){(0,r.A)(this,"Base",void 0),(0,r.A)(this,"ReferenceName",void 0),(0,r.A)(this,"Strict",void 0),this.Base=e,this.ReferenceName=n,this.Strict=t}}class b{constructor(e,n){(0,r.A)(this,"Type",void 0),(0,r.A)(this,"Value",void 0),this.Type=e,this.Value=n}}function g(e){return new b("normal",e)}const h=Symbol("empty completion");function E(e){const n=new Set,t=e=>{if(Array.isArray(e))for(const n of e)t(n);else if(e)switch(e.type){case"Identifier":return void n.add(e.name);case"VariableDeclaration":return t(e.declarations);case"VariableDeclarator":case"FunctionDeclaration":return t(e.id);case"ArrayPattern":return t(e.elements);case"AssignmentPattern":return t(e.left);case"ObjectPattern":return t(e.properties);case"Property":return t(e.value);case"RestElement":return t(e.argument)}};return t(e),Array.from(n)}function w(e){const n=e=>{if(Array.isArray(e))return e.some(n);if(e)switch(e.type){case"ArrayPattern":return n(e.elements);case"AssignmentPattern":return!0;case"ObjectPattern":return n(e.properties);case"Property":return e.computed||n(e.value);case"RestElement":return n(e.argument)}};return n(e)}function x(e,n){const t=[],r={var:n.var},i=(e,n)=>{if(Array.isArray(e))for(const t of e)i(t,n);else if(e){switch(e.type){case"FunctionDeclaration":return void(Number(!n.var)^Number(n.topLevel)&&t.push(e));case"VariableDeclaration":return void(Number(!n.var)^Number("var"===e.kind)&&t.push(e));case"SwitchCase":return void i(e.consequent,r);case"CatchClause":return void i(e.body,r)}if(n.var)switch(e.type){case"BlockStatement":case"DoWhileStatement":case"WhileStatement":return void i(e.body,r);case"IfStatement":return i(e.consequent,r),void i(e.alternate,r);case"ForStatement":return i(e.init,r),void i(e.body,r);case"ForInStatement":case"ForOfStatement":return i(e.left,r),void i(e.body,r);case"SwitchStatement":return void i(e.cases,r);case"TryStatement":return i(e.block,r),i(e.handler,r),void i(e.finalizer,r)}}};return i(e,n),t}function S(e){return"unresolvable"!==e.Base&&!(e.Base instanceof o)}function B(e,n){return e.Base.InitializeBinding(e.ReferenceName,n)}function A(e,n,t){if(null==n)return e;const r=Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));for(const i of r)if(!t.has(i)){const t=Object.getOwnPropertyDescriptor(n,i);null!=t&&t.enumerable&&(e[i]=n[i])}return e}function k(e,n){const t="const"===e.kind;for(const r of E(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1)}function L(e){return"normal"===e.Type||"continue"==e.Type}function V(e,n){return e.Value!==h?e:new b(e.Type,n)}function C(e){if(e instanceof b&&(e=e.Value),!(e instanceof v))return e;if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.GetBindingValue(e.ReferenceName,e.Strict):e.Base[e.ReferenceName]}function P(e){return"symbol"==typeof e?e:String(e)}function I(e,n){return e[n]}function O(e,n){if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.SetMutableBinding(e.ReferenceName,n,e.Strict):(e.Base[e.ReferenceName]=n,g(void 0))}function T(e){if(n=e,!(Array.isArray(n)||null!=n&&"function"==typeof n[Symbol.iterator]))throw new TypeError(typeof e+" is not iterable");var n;return e[Symbol.iterator]()}function F(e){if(null==e)throw new TypeError("Cannot destructure properties of undefined or null")}function j(e,n,t){return e?e.HasBinding(n)?new v(e,n,t):j(e.OuterEnv,n,t):new v("unresolvable",n,t)}function M(e,n,t){switch(n){case"+":return e+t;case"-":return e-t;case"/":return e/t;case"%":return e%t;case"*":return e*t;case"**":return e**t;case"==":return e==t;case"===":return e===t;case"!=":return e!=t;case"!==":return e!==t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}throw new SyntaxError(`Unsupported binary operator \`${n}\``)}const $=new WeakSet([Function,Object,Function.prototype,Object.prototype,function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}()]);function D(e){if($.has(e))throw new TypeError("Cannot access reserved objects such as `Function`.")}const R=new WeakSet([Array,Map,Set,URLSearchParams,WeakMap,WeakSet,RegExp]);function z(e,n){var t;let{rules:r,debug:o,globalVariables:$={},hooks:z={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const q="FunctionDeclaration"!==e.type,U=new a(null),_=new i;_.VariableEnvironment=U,_.LexicalEnvironment=U;const W=[_];for(const[e,n]of Object.entries($))U.CreateImmutableBinding(e,!0),U.InitializeBinding(e,n);const G=new WeakMap;let H;function*J(e,t,r){var i,s;switch(null===(i=z.beforeEvaluate)||void 0===i||i.call(z,e),H=e,o&&(r||e.type.endsWith("Statement")&&"TryStatement"!==e.type&&"BlockStatement"!==e.type&&"ForStatement"!==e.type&&"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(yield),e.type){case"ArrayExpression":{const n=[];for(const t of e.elements)if(t)if("SpreadElement"===t.type){const e=C(yield*J(t.argument));n.push(...e)}else n.push(C(yield*J(t)));else n.length+=1;return g(n)}case"ArrowFunctionExpression":return we(e),g(ye(e));case"BinaryExpression":{const t=C(yield*J(e.left)),r=(yield*J(e.right)).Value,i=C(r);if(q&&"|>"===e.operator){if("function"!=typeof i){const t=n.substring(e.right.start,e.right.end);throw new TypeError(`${t} is not a function`)}let o;return r instanceof v&&S(r)&&(o=r.Base),g(i.call(o,t))}return g(M(t,e.operator,i))}case"CallExpression":{const n=(yield*J(e.callee,t)).Value,r=C(n);return null==r&&(e.optional||null!=t&&t.skipped)?(t.skipped=!0,g(void 0)):(D(r),o&&(yield),yield*oe(r,n,e.arguments,e.callee))}case"ChainExpression":return yield*J(e.expression,{});case"ConditionalExpression":return g(C(yield*J(C(yield*J(e.test))?e.consequent:e.alternate)));case"Identifier":return g(Q(e.name));case"Literal":if(e.regex){if(null===e.value)throw new SyntaxError(`Invalid regular expression: ${e.raw}`);if(e.regex.flags.includes("u"))throw new SyntaxError(`Unsupported unicode flag in regular expression: ${e.raw}`)}return g(e.value);case"LogicalExpression":{const n=C(yield*J(e.left));switch(e.operator){case"&&":return g(n&&C(yield*J(e.right)));case"||":return g(n||C(yield*J(e.right)));case"??":return g(n??C(yield*J(e.right)));default:throw new SyntaxError(`Unsupported logical operator '${e.operator}'`)}}case"MemberExpression":{const n=C((yield*J(e.object,t)).Value);if(null==n&&(e.optional||null!=t&&t.skipped))return t.skipped=!0,g(void 0);D(n);const r=e.computed?yield*function*(e,n,t){const r=P(C(yield*J(n)));return new v(e,r,!0)}(n,e.property):function(e,n,t){const r=n.name;return new v(e,r,!0)}(n,e.property);return D(r),g(r)}case"NewExpression":return yield*function*(e,t){const r=C(yield*J(e)),i=yield*ae(t);if("function"!=typeof r||!1===r[f]){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not a constructor`)}if(!function(e){return R.has(e)||e===Date}(r)){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not an allowed constructor`)}return g(new r(...i))}(e.callee,e.arguments);case"ObjectExpression":{const n={};for(const t of e.properties)if("SpreadElement"===t.type)A(n,C(yield*J(t.argument)),new Set);else{if("init"!==t.kind)throw new SyntaxError("Unsupported object getter/setter");const e=t.computed||"Identifier"!==t.key.type?yield*be(t.key):t.key.name;if("__proto__"===e)throw new TypeError("Setting '__proto__' property is not allowed");const r=C(yield*J(t.value));t.method&&"function"==typeof r&&pe(r,e),n[e]=r}return g(n)}case"SequenceExpression":{let n;for(const t of e.expressions)n=g(C(yield*J(t)));return n}case"TemplateLiteral":{const n=[e.quasis[0].value.cooked];let t=0;for(const r of e.expressions){const i=C(yield*J(r));n.push(String(i)),n.push(e.quasis[t+=1].value.cooked)}return g(n.join(""))}case"TaggedTemplateExpression":{const n=(yield*J(e.tag)).Value,t=C(n);return D(t),o&&(yield),yield*oe(t,n,e.quasi,e.tag)}case"UnaryExpression":{const n=(yield*J(e.argument)).Value;if(!q&&"delete"===e.operator){if(!(n instanceof v))return g(!0);if(S(n))return g(delete n.Base[n.ReferenceName])}return"typeof"===e.operator?n instanceof v&&"unresolvable"===n.Base?g("undefined"):g(typeof C(n)):g(function(e,n){switch(n){case"!":return!e;case"+":return+e;case"-":return-e;case"void":return}throw new SyntaxError(`Unsupported unary operator \`${n}\``)}(C(n),e.operator))}}if(!q)switch(e.type){case"AssignmentExpression":{if("="===e.operator){if("ArrayPattern"!==e.left.type&&"ObjectPattern"!==e.left.type){const n=(yield*J(e.left)).Value;let t;return t=le(e.right)&&"Identifier"===e.left.type?ue(e.right,e.left.name):C(yield*J(e.right)),O(n,t),g(t)}const n=C(yield*J(e.right));return yield*ne(e.left,n),g(n)}const n=(yield*J(e.left)).Value,t=C(n),r=C(yield*J(e.right)),i=function(e,n,t){switch(n){case"+=":case"-=":case"*=":case"/=":case"%=":case"**=":return M(e,n.substr(0,n.length-1),t)}throw new SyntaxError(`Unsupported assignment operator \`${n}\``)}(t,e.operator,r);return O(n,i),g(i)}case"BlockStatement":{if(!e.body.length)return g(h);const n=K().LexicalEnvironment,t=new a(n);ie(e.body,t),K().LexicalEnvironment=t;const r=yield*ce(e.body);return K().LexicalEnvironment=n,r}case"BreakStatement":return new b("break",h);case"ContinueStatement":return new b("continue",h);case"EmptyStatement":case"FunctionDeclaration":return g(h);case"DoWhileStatement":return X(yield*function*(e){let n;for(;;){const t=yield*J(e.body);if(!L(t))return V(t,n);if(t.Value!==h&&(n=t.Value),!C(yield*J(e.test)))return g(n)}}(e));case"ExpressionStatement":case"TSAsExpression":return yield*J(e.expression);case"ForInStatement":case"ForOfStatement":return X(yield*function*(e){const n=e.left,t="VariableDeclaration"===n.type?"var"===n.kind?"varBinding":"lexicalBinding":"assignment",r="lexicalBinding"===t?E(n):[],i="ForInStatement"===e.type?"enumerate":"iterate",s=yield*function*(e,n,t){const r=K(),i=r.LexicalEnvironment;if(e.length>0){const n=new a(i);for(const t of e)n.CreateMutableBinding(t,!1);r.LexicalEnvironment=n}const o=yield*J(n,void 0,!0);r.LexicalEnvironment=i;const s=C(o);return"enumerate"===t?null==s?new b("break",h):g(function*(e){for(const n in e)yield n}(s)):g(T(s))}(r,e.right,i);return"normal"!==s.Type?s:yield*function*(e,n,t,r,i){const s="assignment"===i?e:e.declarations[0].id,c=K().LexicalEnvironment;let l;const u="ObjectPattern"===s.type||"ArrayPattern"===s.type;for(;;){H=s;const{done:d,value:f}=t.next();if(d)return o&&(yield),g(l);let y,p;if("lexicalBinding"===i){if(p=new a(c),k(e,p),K().LexicalEnvironment=p,o&&(yield),!u){const[e]=E(s);y=Q(e)}}else o&&(yield),u||(y=(yield*J(s)).Value);u?"assignment"===i?yield*ne(s,f):"varBinding"===i?yield*ve(s,f,void 0):yield*ve(s,f,p):"lexicalBinding"===i?B(y,f):O(y,f);const m=yield*J(n);if(K().LexicalEnvironment=c,!L(m)){const e=V(m,l);if("enumerate"!==r&&void 0!==t.return){const e=t.return();if(!e||!["object","function"].includes(typeof e))throw new TypeError("Iterator result is not an object")}return e}m.Value!==h&&(l=m.Value)}}(n,e.body,s.Value,i,t)}(e));case"ForStatement":return X(yield*function*(e){var n;if("VariableDeclaration"===(null===(n=e.init)||void 0===n?void 0:n.type)){if("var"===e.init.kind)return yield*J(e.init),yield*Z(e.test,e.update,e.body,[]);const n=K().LexicalEnvironment,t=new a(n),r="const"===e.init.kind,i=E(e.init);for(const e of i)r?t.CreateImmutableBinding(e,!0):t.CreateMutableBinding(e,!1);K().LexicalEnvironment=t,yield*J(e.init);const o=r?[]:Array.from(i),s=yield*Z(e.test,e.update,e.body,o);return K().LexicalEnvironment=n,s}return e.init&&C(yield*J(e.init)),yield*Z(e.test,e.update,e.body,[])}(e));case"FunctionExpression":return we(e),g(fe(e));case"IfStatement":var c;return C(yield*J(e.test))?(null===(c=z.beforeBranch)||void 0===c||c.call(z,e,"if"),V(yield*J(e.consequent),void 0)):(null===(s=z.beforeBranch)||void 0===s||s.call(z,e,"else"),e.alternate?V(yield*J(e.alternate),void 0):g(void 0));case"ReturnStatement":{let n;return e.argument&&(n=C(yield*J(e.argument))),H=e,new b("return",n)}case"ThrowStatement":throw C(yield*J(e.argument));case"UpdateExpression":{const n=(yield*J(e.argument)).Value,t=Number(C(n)),r="++"===e.operator?t+1:t-1;return O(n,r),g(e.prefix?r:t)}case"SwitchCase":return yield*ce(e.consequent);case"SwitchStatement":{const n=C(yield*J(e.discriminant)),t=K().LexicalEnvironment,r=new a(t);ie(e.cases,r),K().LexicalEnvironment=r;const i=yield*function*(e,n){let t;const r=e.findIndex((e=>!e.test)),i=r>=0,o=i?e.slice(0,r):e;let a=!1;for(const e of o)if(a||(a=yield*Y(e,n)),a){const n=yield*J(e);if(n.Value!==h&&(t=n.Value),"normal"!==n.Type)return V(n,t)}if(!i)return g(t);let s=!1;const c=e.slice(r+1);if(!a)for(const e of c)if(s||(s=yield*Y(e,n)),s){const n=yield*J(e);if(n.Value!==h&&(t=n.Value),"normal"!==n.Type)return V(n,t)}if(s)return g(t);const l=yield*J(e[r]);if(l.Value!==h&&(t=l.Value),"normal"!==l.Type)return V(l,t);for(const e of c){const n=yield*J(e);if(n.Value!==h&&(t=n.Value),"normal"!==n.Type)return V(n,t)}return g(t)}(e.cases,n);return K().LexicalEnvironment=t,X(i)}case"TryStatement":{let n;try{n=yield*J(e.block)}catch(t){if(!e.handler)throw t;var l;H=e.handler,null===(l=z.beforeEvaluate)||void 0===l||l.call(z,e.handler),n=yield*function*(e,n){if(!e.param)return yield*J(e.body);const t=K().LexicalEnvironment,r=new a(t);for(const n of E(e.param))r.CreateMutableBinding(n,!1);K().LexicalEnvironment=r,yield*ve(e.param,n,r);const i=yield*J(e.body);return K().LexicalEnvironment=t,i}(e.handler,t)}finally{if(e.finalizer){const t=yield*J(e.finalizer);"normal"!==t.Type&&(n=t)}}return n}case"VariableDeclaration":{let n;for(const t of e.declarations)if(H=t,t.init)if("Identifier"===t.id.type){H=t.init,o&&(yield);const r=t.id.name,i=Q(r);let a;a=le(t.init)?ue(t.init,r):C(yield*J(t.init)),n="var"===e.kind?O(i,a):B(i,a)}else{H=t.init,o&&(yield);const r=C(yield*J(t.init));n=yield*ve(t.id,r,"var"===e.kind?void 0:K().LexicalEnvironment)}else n="var"===e.kind?g(h):B(Q(t.id.name),void 0);return n}case"WhileStatement":return X(yield*function*(e){let n;for(;;){if(!C(yield*J(e.test)))return g(n);const t=yield*J(e.body);if(!L(t))return V(t,n);t.Value!==h&&(n=t.Value)}}(e))}throw new SyntaxError(`Unsupported node type \`${e.type}\``)}function K(){return W[W.length-1]}function Q(e,n){return n||(n=K().LexicalEnvironment),j(n,e,!0)}function X(e){return"break"===e.Type?e.Value===h?g(void 0):g(e.Value):e}function*Y(e,n){return n===C(yield*J(e.test))}function*Z(e,n,t,r){let i;for(ee(r);;){if(e&&!C(yield*J(e,void 0,!0)))return g(i);const o=yield*J(t);if(!L(o))return V(o,i);o.Value&&(i=o.Value),ee(r),n&&C(yield*J(n,void 0,!0))}}function ee(e){if(0===e.length)return;const n=K().LexicalEnvironment,t=n.OuterEnv,r=new a(t);for(const t of e){r.CreateMutableBinding(t,!1);const e=n.GetBindingValue(t,!1);r.InitializeBinding(t,e)}K().LexicalEnvironment=r}function*ne(e,n){if("ObjectPattern"===e.type)return F(n),e.properties.length>0&&(yield*function*(e,n){const t=new Set;for(const r of e)if("Property"===r.type){const e=r.computed||"Identifier"!==r.key.type?yield*be(r.key):r.key.name,i="AssignmentPattern"===r.value.type?r.value.left:r.value;if("Identifier"===i.type){const o=Q(i.name);let a=I(n,e);"AssignmentPattern"===r.value.type&&void 0===a&&(a=le(r.value.right)?ue(r.value.right,i.name):C(yield*J(r.value.right))),O(o,a),t.add(e)}else yield*te(r.value,n,e),t.add(e)}else yield*re(r,n,t)}(e.properties,n)),g(h);const t=T(n);return yield*function*(e,n){let t=g(h);for(const r of e){if(!r){n.next(),t=g(h);continue}const e="RestElement"===r.type?r.argument:"AssignmentPattern"===r.type?r.left:r,i="ArrayPattern"===e.type||"ObjectPattern"===e.type;let o,a;if(i||(o=(yield*J(e)).Value),"RestElement"!==r.type){const{done:t,value:i}=n.next(),o=t?void 0:i;a="AssignmentPattern"===r.type&&void 0===o?le(r.right)&&"Identifier"===e.type?ue(r.right,e.name):C(yield*J(r.right)):o}else{a=[];let e=0;for(;;){const{done:t,value:r}=n.next();if(t)break;a[e]=r,e++}}t=i?yield*ne(e,a):O(o,a)}return t}(e.elements,t)}function*te(e,n,t){const r="AssignmentPattern"===e.type?e.left:e,i="ArrayPattern"===r.type||"ObjectPattern"===r.type;let o;i||(o=(yield*J(r)).Value);const a=I(n,t);let s;return s="AssignmentPattern"===e.type&&void 0===a?C(yield*J(e.right)):a,i?yield*ne(r,s):O(o,s)}function*re(e,n,t){return O((yield*J(e.argument)).Value,A({},n,t))}function ie(e,n){const t=x(e,{var:!1,topLevel:!1});for(const e of t){const t="VariableDeclaration"===e.type&&"const"===e.kind;for(const r of E(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1);if("FunctionDeclaration"===e.type){const[t]=E(e),r=de(e,n);n.InitializeBinding(t,r)}}}function*oe(e,t,r,i){let a;t instanceof v&&S(t)&&(a=t.Base);const s=yield*ae(r);if("function"!=typeof e){const e=n.substring(i.start,i.end);throw new TypeError(`${e} is not a function`)}if(o){const n=e[y];if(n){const e=yield*n.apply(a,s);return D(e),g(e)}}const c=e.apply(a,s);return D(c),g(c)}function*ae(e){const n=[];if(Array.isArray(e))for(const t of e)if("SpreadElement"===t.type){const e=C(yield*J(t.argument));n.push(...e)}else n.push(C(yield*J(t)));else{n.push(function(e){const n=G.get(e);if(n)return n;const t=e.quasis.map((e=>e.value.raw)),r=e.quasis.map((e=>e.value.cooked));return Object.freeze(t),Object.defineProperty(r,"raw",{value:t,writable:!1,enumerable:!1,configurable:!1}),Object.freeze(r),G.set(e,r),r}(e));for(const t of e.expressions)n.push(C(yield*J(t)))}return n}function*se(e,n){var t,f;null===(t=z.beforeCall)||void 0===t||t.call(z,e[c]),function(e){const n=new i;n.Function=e;const t=new s(e[d]);n.VariableEnvironment=t,n.LexicalEnvironment=t,W.push(n)}(e);const y=yield*function*(e,n){return yield*function*(e,n,t){return yield*function*(e,n){const t=K(),i=e[u],o=e[l],s=E(o),c=w(o),d=x(i,{var:!0,topLevel:!0}),f=E(d),y=[],p=[];for(let e=d.length-1;e>=0;e--){const n=d[e];if("FunctionDeclaration"===n.type){we(n);const[e]=E(n);y.includes(e)||(y.unshift(e),p.unshift(n))}else if(null!=r&&r.noVar)throw new SyntaxError("Var declaration is not recommended, use `let` or `const` instead")}const m=t.LexicalEnvironment;for(const e of s)m.CreateMutableBinding(e,!1);const v=T(n);let b;if(yield*he(o,v,m),c){b=new a(m),t.VariableEnvironment=b;for(const e of f){let n;b.CreateMutableBinding(e,!1),s.includes(e)&&!y.includes(e)&&(n=m.GetBindingValue(e,!1)),b.InitializeBinding(e,n)}}else{for(const e of f)s.includes(e)||(m.CreateMutableBinding(e,!1),m.InitializeBinding(e,void 0));b=m}const g=b;t.LexicalEnvironment=g;const h=x(i,{var:!1,topLevel:!0});for(const e of h)for(const n of E(e))"const"===e.kind?g.CreateImmutableBinding(n,!0):g.CreateMutableBinding(n,!1);for(const e of p){const[n]=E(e),t=de(e,g);b.SetMutableBinding(n,t,!1)}}(n,t),Array.isArray(e)?yield*ce(e):new b("return",C(yield*J(e)))}(e[u],e,n)}(e,n);if("ReturnStatement"!==(null===(f=H)||void 0===f?void 0:f.type)&&(H=e[c]),o&&(yield{type:"return",value:"return"===y.Type?y.Value:void 0}),W.pop(),"return"===y.Type)return y.Value}function*ce(e){let n=g(h);for(const t of e){const e=yield*J(t);if("normal"!==e.Type)return e;n=V(n,e.Value)}return n}function le(e){return"FunctionExpression"===e.type&&!e.id||"ArrowFunctionExpression"===e.type}function ue(e,n){switch(e.type){case"FunctionExpression":return fe(e,n);case"ArrowFunctionExpression":return ye(e,n);default:throw new Error(`Unexpected node type for NamedEvaluation: ${e.type}`)}}function de(e,n){const t=me(e,n,!0);return e.id&&pe(t,e.id.name),t}function fe(e,n){const t=K().LexicalEnvironment;if(e.id){const n=e.id.name,r=new a(t);r.CreateImmutableBinding(n,!1);const i=me(e,r,!0);return pe(i,n),r.InitializeBinding(n,i),i}{const r=me(e,t,!0);return pe(r,n??""),r}}function ye(e,n){const t=me(e,K().LexicalEnvironment,!1);return pe(t,n??""),t}function pe(e,n){Object.defineProperty(e,"name",{value:n,configurable:!0})}function me(e,n,t){const r=function(){return N(se(r,arguments))};return Object.defineProperties(r,{[c]:{value:e},[l]:{value:e.params},[u]:{value:"BlockStatement"===e.body.type?e.body.body:e.body},[d]:{value:n},[f]:{value:t}}),o&&Object.defineProperty(r,y,{value:function(){return se(r,arguments)}}),r}function*ve(e,n,t){switch(e.type){case"Identifier":return function(e,n,t){return t.InitializeBinding(e,n),g(h)}(e.name,n,t);case"ObjectPattern":return F(n),yield*function*(e,n,t){const r=new Set;for(const i of e){if("RestElement"===i.type)return ge(i,n,t,r);if(i.computed||"Identifier"!==i.key.type){const e=yield*be(i.key);yield*Ee(i.value,n,t,e),r.add(e)}else yield*Ee(i.value,n,t,i.key.name),r.add(i.key.name)}return g(h)}(e.properties,n,t);case"ArrayPattern":{const r=T(n);return yield*he(e.elements,r,t)}}}function*be(e){return P(C(yield*J(e)))}function ge(e,n,t,r){const i=Q(e.argument.name,t),o=A({},n,r);return t?B(i,o):O(i,o)}function*he(e,n,t){if(0===e.length)return g(h);let r;for(const i of e)if(i)if("RestElement"===i.type)if("Identifier"===i.argument.type){const e=Q(i.argument.name,t),o=[];let a=0;for(;;){const{done:i,value:s}=n.next();if(i){r=t?B(e,o):O(e,o);break}o[a]=s,a++}}else{const e=[];let o=0;for(;;){const{done:a,value:s}=n.next();if(a){r=yield*ve(i.argument,e,t);break}e[o]=s,o++}}else{const e="AssignmentPattern"===i.type?i.left:i;switch(e.type){case"ObjectPattern":case"ArrayPattern":{let o;const{done:a,value:s}=n.next();a||(o=s),"AssignmentPattern"===i.type&&void 0===o&&(o=C(yield*J(i.right))),r=yield*ve(e,o,t);break}case"Identifier":{const o=e.name,a=Q(o,t);let s;const{done:c,value:l}=n.next();c||(s=l),"AssignmentPattern"===i.type&&void 0===s&&(s=le(i.right)?ue(i.right,o):C(yield*J(i.right))),r=t?B(a,s):O(a,s);break}}}else n.next(),r=g(h);return r}function*Ee(e,n,t,r){if("Identifier"===e.type||"AssignmentPattern"===e.type&&"Identifier"===e.left.type){const i="Identifier"===e.type?e.name:e.left.name,o=Q(i,t);let a=I(n,r);return"AssignmentPattern"===e.type&&void 0===a&&(a=le(e.right)?ue(e.right,i):C(yield*J(e.right))),t?B(o,a):O(o,a)}let i=I(n,r);return"AssignmentPattern"===e.type&&void 0===i&&(i=C(yield*J(e.right))),yield*ve("AssignmentPattern"===e.type?e.left:e,i,t)}function we(e){if(e.async||e.generator)throw new SyntaxError((e.async?"Async":"Generator")+" function is not allowed");if(q&&!e.expression)throw new SyntaxError("Only an `Expression` is allowed in `ArrowFunctionExpression`'s body")}if(q)return C(N(J(e)));null===(t=z.beforeEvaluate)||void 0===t||t.call(z,e),we(e);const[xe]=E(e);U.CreateImmutableBinding(xe,!0);const Se=de(e,U);return U.InitializeBinding(xe,Se),o&&Object.defineProperties(Se,{[p]:{value:function(){return K().LexicalEnvironment}},[m]:{value:function(){return H}}}),Se}function N(e){for(;;){const{done:n,value:t}=e.next();if(n)return t}}class q{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0)}}class U{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingSet",new Set),this.OuterEnv=e}HasBinding(e){return this.bindingSet.has(e)}CreateBinding(e){this.bindingSet.add(e)}}function _(e){let{expressionOnly:n,visitors:t,withParent:r,hooks:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Set,a=[],s=new U(null),c=new q;function l(){return a[a.length-1]}function u(e,n,t){for(const r of n)d(e[r],null==t?void 0:t.concat({node:e,key:r}))}function d(e,r){if(Array.isArray(e))e.forEach(((e,n)=>{d(e,r?r.slice(0,-1).concat({...r[r.length-1],index:n}):r)}));else if(e){var a,s;switch(null===(a=i.beforeVisit)||void 0===a||a.call(i,e,r),function(e){var n,r;t&&(n=t,r=e.type,Object.prototype.hasOwnProperty.call(n,r))&&t[e.type](e)}(e),e.type){case"Identifier":var c;return g=e.name,void(y(l().LexicalEnvironment,g)||(null===(c=i.beforeVisitGlobal)||void 0===c||c.call(i,e,r),o.add(e.name)));case"ArrayExpression":case"ArrayPattern":return void u(e,["elements"],r);case"ArrowFunctionExpression":return void m(v(e,l().LexicalEnvironment),r);case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":return void u(e,["left","right"],r);case"CallExpression":case"NewExpression":return void u(e,["callee","arguments"],r);case"ChainExpression":return void u(e,["expression"],r);case"ConditionalExpression":return void u(e,["test","consequent","alternate"],r);case"MemberExpression":return u(e,["object"],r),void(e.computed&&u(e,["property"],r));case"ObjectExpression":case"ObjectPattern":return void u(e,["properties"],r);case"Property":return e.computed&&u(e,["key"],r),void u(e,["value"],r);case"RestElement":case"SpreadElement":case"UnaryExpression":return void u(e,["argument"],r);case"SequenceExpression":case"TemplateLiteral":return void u(e,["expressions"],r);case"TaggedTemplateExpression":return void u(e,["tag","quasi"],r);case"Literal":return}if(!n)switch(e.type){case"AssignmentExpression":return void u(e,["right","left"],r);case"BlockStatement":{if(!e.body.length)return;const n=l(),t=n.LexicalEnvironment,i=new U(t);return p(e.body,i),n.LexicalEnvironment=i,u(e,["body"],r),void(n.LexicalEnvironment=t)}case"BreakStatement":case"ContinueStatement":case"EmptyStatement":return;case"CatchClause":{const n=l(),t=n.LexicalEnvironment,i=new U(t);return f(e.param,i),n.LexicalEnvironment=i,u(e,["param","body"],r),void(n.LexicalEnvironment=t)}case"DoWhileStatement":return void u(e,["body","test"],r);case"ExpressionStatement":case"TSAsExpression":return void u(e,["expression"],r);case"ForInStatement":case"ForOfStatement":{const n="VariableDeclaration"===e.left.type&&"var"!==e.left.kind,t=l(),i=t.LexicalEnvironment;if(n){const n=new U(i);f(e.left,n),t.LexicalEnvironment=n}if(u(e,["right"],r),t.LexicalEnvironment=i,n){const n=new U(i);f(e.left,n),t.LexicalEnvironment=n}return u(e,["left","body"],r),void(t.LexicalEnvironment=i)}case"ForStatement":{var b;const n="VariableDeclaration"===(null===(b=e.init)||void 0===b?void 0:b.type)&&"var"!==e.init.kind,t=l(),i=t.LexicalEnvironment;if(n){const n=new U(i);f(e.init,n),t.LexicalEnvironment=n}return u(e,["init","test","body","update"],r),void(t.LexicalEnvironment=i)}case"FunctionDeclaration":{const[n]=E(e),t=l().LexicalEnvironment,i=v(e,t);return t.CreateBinding(n),void m(i,r)}case"FunctionExpression":{const n=function(e){const n=l().LexicalEnvironment;if(!e.id)return v(e,n);const t=e.id.name,r=new U(n);return r.CreateBinding(t),v(e,r)}(e);return void m(n,r)}case"IfStatement":return void u(e,["test","consequent","alternate"],r);case"ReturnStatement":case"ThrowStatement":case"UpdateExpression":return void u(e,["argument"],r);case"SwitchCase":return void u(e,["test","consequent"],r);case"SwitchStatement":{u(e,["discriminant"],r);const n=l(),t=n.LexicalEnvironment,i=new U(t);return p(e.cases,i),n.LexicalEnvironment=i,u(e,["cases"],r),void(n.LexicalEnvironment=t)}case"TryStatement":return void u(e,["block","handler","finalizer"],r);case"VariableDeclaration":return void u(e,["declarations"],r);case"VariableDeclarator":return void u(e,["id","init"],r);case"WhileStatement":return void u(e,["test","body"],r)}(null===(s=i.beforeVisitUnknown)||void 0===s?void 0:s.call(i,e,r))||console.warn(`Unsupported node type \`${e.type}\``)}var g}function f(e,n){for(const t of E(e))n.CreateBinding(t)}function y(e,n){return!!e&&(e.HasBinding(n)||y(e.OuterEnv,n))}function p(e,n){f(x(e,{var:!1,topLevel:!1}),n)}function m(e,n){!function(e){const n=new q,t=new U(e.Environment);n.VariableEnvironment=t,n.LexicalEnvironment=t,a.push(n)}(e),function(e,n){const t=l(),r=e.ECMAScriptCode,i=e.FormalParameters,o=w(i),a=E(x(r,{var:!0,topLevel:!0})),s=t.LexicalEnvironment;let c;if(f(i,s),d(i,null==n?void 0:n.concat({node:e.Function,key:"params"})),o){c=new U(s),t.VariableEnvironment=c;for(const e of a)c.CreateBinding(e)}else{for(const e of a)s.CreateBinding(e);c=s}const u=c;t.LexicalEnvironment=u,f(x(r,{var:!1,topLevel:!0}),u)}(e,n),d(e.ECMAScriptCode,null==n?void 0:n.concat({node:e.Function,key:"body"}).concat("BlockStatement"===e.Function.body.type?{node:e.Function.body,key:"body"}:[])),a.pop()}function v(e,n){return{Function:e,FormalParameters:e.params,ECMAScriptCode:"BlockStatement"===e.body.type?e.body.body:e.body,Environment:n}}return c.VariableEnvironment=s,c.LexicalEnvironment=s,a.push(c),d(e,r?[]:void 0),o}var W=t(56667);function G(e){let{typescript:n,...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){let{typescript:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=(0,W.parse)(e,{plugins:["estree",n&&"typescript"].filter(Boolean),strictMode:!0,attachComment:!1}).program.body,r=n?[]:t;if(n)for(const e of t)if(e.type.startsWith("TS")){if(/Enum|Import|Export/.test(e.type))throw new SyntaxError(`Unsupported TypeScript syntax: ${e.type}`)}else r.push(e);if(0===r.length)throw new SyntaxError("Function declaration not found");if(r.length>1||"FunctionDeclaration"!==r[0].type)throw new SyntaxError(`Expect a single function declaration at top level, but received: ${r.map((e=>`"${e.type}"`)).join(", ")}`);return r[0]}(e,{typescript:n});return{function:r,attemptToVisitGlobals:_(r,t)}}function H(e,n){const t=[],r=e.replace(/^\s*<%[~=]?\s|\s%>\s*$/g,(e=>(t.push(e),""))),i=function(e){return(0,W.parseExpression)(e,{plugins:["estree",["pipelineOperator",{proposal:"minimal"}]],attachComment:!1})}(r);return{expression:i,attemptToVisitGlobals:_(i,{...n,expressionOnly:!0}),source:r,prefix:t[0],suffix:t[1]}}function J(e){return/^\s*<%[~=]?\s/.test(e)&&/\s%>\s*$/.test(e)}function K(e){return/^\s*<%~\s/.test(e)}function Q(e){return/^\s*<%=\s/.test(e)&&/\s%>\s*$/.test(e)}}}]);
|
|
2
|
-
//# sourceMappingURL=1122.5043f029.js.map
|