@rebilly/instruments 8.50.0 → 8.50.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/CHANGELOG.md +7 -0
- package/dist/index.js +1073 -805
- package/dist/index.min.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5996,7 +5996,7 @@ function cloneArrayDeep(val, instanceClone) {
|
|
|
5996
5996
|
return res;
|
|
5997
5997
|
}
|
|
5998
5998
|
var cloneDeep_1 = cloneDeep;
|
|
5999
|
-
const version = "55.
|
|
5999
|
+
const version = "55.23.0";
|
|
6000
6000
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
6001
6001
|
let nanoid = (size2 = 21) => {
|
|
6002
6002
|
let id2 = "";
|
|
@@ -6382,9 +6382,9 @@ function AmlChecksResource({ apiHandler }) {
|
|
|
6382
6382
|
offset = null,
|
|
6383
6383
|
sort = null,
|
|
6384
6384
|
filter: filter2 = null,
|
|
6385
|
-
q = null
|
|
6385
|
+
q: q2 = null
|
|
6386
6386
|
} = {}) {
|
|
6387
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
6387
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
6388
6388
|
return apiHandler.getAll(`aml-checks`, params);
|
|
6389
6389
|
},
|
|
6390
6390
|
get({ id: id2 }) {
|
|
@@ -6461,12 +6461,12 @@ function ApplicationsResource({ apiHandler }) {
|
|
|
6461
6461
|
limit = null,
|
|
6462
6462
|
offset = null,
|
|
6463
6463
|
filter: filter2 = null,
|
|
6464
|
-
q = null,
|
|
6464
|
+
q: q2 = null,
|
|
6465
6465
|
expand = null,
|
|
6466
6466
|
fields = null,
|
|
6467
6467
|
sort = null
|
|
6468
6468
|
} = {}) {
|
|
6469
|
-
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
6469
|
+
const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
|
|
6470
6470
|
return apiHandler.getAll(`applications`, params);
|
|
6471
6471
|
},
|
|
6472
6472
|
create({ data }) {
|
|
@@ -6502,9 +6502,9 @@ function BillingPortalsResource$1({ apiHandler }) {
|
|
|
6502
6502
|
offset = null,
|
|
6503
6503
|
sort = null,
|
|
6504
6504
|
filter: filter2 = null,
|
|
6505
|
-
q = null
|
|
6505
|
+
q: q2 = null
|
|
6506
6506
|
} = {}) {
|
|
6507
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
6507
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
6508
6508
|
return apiHandler.getAll(`billing-portals`, params);
|
|
6509
6509
|
},
|
|
6510
6510
|
create({ id: id2 = "", data }) {
|
|
@@ -6528,9 +6528,9 @@ function BlocklistsResource({ apiHandler }) {
|
|
|
6528
6528
|
offset = null,
|
|
6529
6529
|
sort = null,
|
|
6530
6530
|
filter: filter2 = null,
|
|
6531
|
-
q = null
|
|
6531
|
+
q: q2 = null
|
|
6532
6532
|
} = {}) {
|
|
6533
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
6533
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
6534
6534
|
return apiHandler.getAll(`blocklists`, params);
|
|
6535
6535
|
},
|
|
6536
6536
|
create({ id: id2 = "", data }) {
|
|
@@ -6571,9 +6571,9 @@ function CheckoutFormsResource$1({ apiHandler }) {
|
|
|
6571
6571
|
offset = null,
|
|
6572
6572
|
sort = null,
|
|
6573
6573
|
filter: filter2 = null,
|
|
6574
|
-
q = null
|
|
6574
|
+
q: q2 = null
|
|
6575
6575
|
} = {}) {
|
|
6576
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
6576
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
6577
6577
|
return apiHandler.getAll(`checkout-forms`, params);
|
|
6578
6578
|
},
|
|
6579
6579
|
create({ id: id2 = "", data }) {
|
|
@@ -6596,10 +6596,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
6596
6596
|
limit = null,
|
|
6597
6597
|
offset = null,
|
|
6598
6598
|
filter: filter2 = null,
|
|
6599
|
-
q = null,
|
|
6599
|
+
q: q2 = null,
|
|
6600
6600
|
sort = null
|
|
6601
6601
|
} = {}) {
|
|
6602
|
-
const params = { limit, offset, filter: filter2, q, sort };
|
|
6602
|
+
const params = { limit, offset, filter: filter2, q: q2, sort };
|
|
6603
6603
|
return apiHandler.getAll(`coupons-redemptions`, params);
|
|
6604
6604
|
},
|
|
6605
6605
|
redeem({ data }) {
|
|
@@ -6615,10 +6615,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
6615
6615
|
limit = null,
|
|
6616
6616
|
offset = null,
|
|
6617
6617
|
filter: filter2 = null,
|
|
6618
|
-
q = null,
|
|
6618
|
+
q: q2 = null,
|
|
6619
6619
|
sort = null
|
|
6620
6620
|
} = {}) {
|
|
6621
|
-
const params = { limit, offset, filter: filter2, q, sort };
|
|
6621
|
+
const params = { limit, offset, filter: filter2, q: q2, sort };
|
|
6622
6622
|
return apiHandler.getAll(`coupons`, params);
|
|
6623
6623
|
},
|
|
6624
6624
|
create({ id: id2 = "", data }) {
|
|
@@ -6642,9 +6642,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
6642
6642
|
sort = null,
|
|
6643
6643
|
limit = null,
|
|
6644
6644
|
offset = null,
|
|
6645
|
-
q = null
|
|
6645
|
+
q: q2 = null
|
|
6646
6646
|
} = {}) {
|
|
6647
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
6647
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
6648
6648
|
return apiHandler.getAll(`credit-memos`, params);
|
|
6649
6649
|
},
|
|
6650
6650
|
create({ id: id2 = "", data }) {
|
|
@@ -6668,9 +6668,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
6668
6668
|
offset = null,
|
|
6669
6669
|
filter: filter2 = null,
|
|
6670
6670
|
sort = null,
|
|
6671
|
-
q = null
|
|
6671
|
+
q: q2 = null
|
|
6672
6672
|
}) {
|
|
6673
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
6673
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
6674
6674
|
return apiHandler.getAll(`credit-memos/${id2}/timeline`, params);
|
|
6675
6675
|
},
|
|
6676
6676
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -6691,9 +6691,9 @@ function CustomDomainsResource({ apiHandler }) {
|
|
|
6691
6691
|
offset = null,
|
|
6692
6692
|
sort = null,
|
|
6693
6693
|
filter: filter2 = null,
|
|
6694
|
-
q = null
|
|
6694
|
+
q: q2 = null
|
|
6695
6695
|
} = {}) {
|
|
6696
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
6696
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
6697
6697
|
return apiHandler.getAll(`custom-domains`, params);
|
|
6698
6698
|
},
|
|
6699
6699
|
create({ data }) {
|
|
@@ -6785,12 +6785,12 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6785
6785
|
limit = null,
|
|
6786
6786
|
offset = null,
|
|
6787
6787
|
filter: filter2 = null,
|
|
6788
|
-
q = null,
|
|
6788
|
+
q: q2 = null,
|
|
6789
6789
|
expand = null,
|
|
6790
6790
|
fields = null,
|
|
6791
6791
|
sort = null
|
|
6792
6792
|
} = {}) {
|
|
6793
|
-
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
6793
|
+
const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
|
|
6794
6794
|
return apiHandler.getAll(`customers`, params);
|
|
6795
6795
|
},
|
|
6796
6796
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -6828,9 +6828,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6828
6828
|
offset = null,
|
|
6829
6829
|
filter: filter2 = null,
|
|
6830
6830
|
sort = null,
|
|
6831
|
-
q = null
|
|
6831
|
+
q: q2 = null
|
|
6832
6832
|
}) {
|
|
6833
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
6833
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
6834
6834
|
return apiHandler.getAll(`customers/${id2}/timeline`, params);
|
|
6835
6835
|
},
|
|
6836
6836
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -6854,9 +6854,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6854
6854
|
offset = null,
|
|
6855
6855
|
filter: filter2 = null,
|
|
6856
6856
|
sort = null,
|
|
6857
|
-
q = null
|
|
6857
|
+
q: q2 = null
|
|
6858
6858
|
}) {
|
|
6859
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
6859
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
6860
6860
|
return apiHandler.getAll(`customers/${id2}/edd-timeline`, params);
|
|
6861
6861
|
},
|
|
6862
6862
|
createEddTimelineComment({ id: id2, data }) {
|
|
@@ -6951,10 +6951,10 @@ function DisputesResource({ apiHandler }) {
|
|
|
6951
6951
|
sort = null,
|
|
6952
6952
|
limit = null,
|
|
6953
6953
|
offset = null,
|
|
6954
|
-
q = null,
|
|
6954
|
+
q: q2 = null,
|
|
6955
6955
|
expand = null
|
|
6956
6956
|
} = {}) {
|
|
6957
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
6957
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
6958
6958
|
return apiHandler.getAll(`disputes`, params);
|
|
6959
6959
|
},
|
|
6960
6960
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -6980,9 +6980,9 @@ function EmailDeliverySettingsResource({ apiHandler }) {
|
|
|
6980
6980
|
offset = null,
|
|
6981
6981
|
filter: filter2 = null,
|
|
6982
6982
|
sort = null,
|
|
6983
|
-
q = null
|
|
6983
|
+
q: q2 = null
|
|
6984
6984
|
} = {}) {
|
|
6985
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
6985
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
6986
6986
|
return apiHandler.getAll(`email-delivery-settings`, params);
|
|
6987
6987
|
},
|
|
6988
6988
|
create({ data }) {
|
|
@@ -7009,11 +7009,11 @@ function EmailMessagesResource({ apiHandler }) {
|
|
|
7009
7009
|
getAll({
|
|
7010
7010
|
limit = null,
|
|
7011
7011
|
offset = null,
|
|
7012
|
-
q = null,
|
|
7012
|
+
q: q2 = null,
|
|
7013
7013
|
sort = null,
|
|
7014
7014
|
filter: filter2 = null
|
|
7015
7015
|
} = {}) {
|
|
7016
|
-
const params = { limit, offset, q, sort, filter: filter2 };
|
|
7016
|
+
const params = { limit, offset, q: q2, sort, filter: filter2 };
|
|
7017
7017
|
return apiHandler.getAll(`email-messages`, params);
|
|
7018
7018
|
},
|
|
7019
7019
|
create({ data }) {
|
|
@@ -7061,9 +7061,9 @@ function EventsResource({ apiHandler }) {
|
|
|
7061
7061
|
offset = null,
|
|
7062
7062
|
filter: filter2 = null,
|
|
7063
7063
|
sort = null,
|
|
7064
|
-
q = null
|
|
7064
|
+
q: q2 = null
|
|
7065
7065
|
}) {
|
|
7066
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
7066
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
7067
7067
|
return apiHandler.getAll(`events/${eventType}/timeline`, params);
|
|
7068
7068
|
},
|
|
7069
7069
|
createTimelineComment({ eventType, data }) {
|
|
@@ -7080,11 +7080,11 @@ function EventsResource({ apiHandler }) {
|
|
|
7080
7080
|
limit = null,
|
|
7081
7081
|
offset = null,
|
|
7082
7082
|
filter: filter2 = null,
|
|
7083
|
-
q = null,
|
|
7083
|
+
q: q2 = null,
|
|
7084
7084
|
sort = null,
|
|
7085
7085
|
fields = null
|
|
7086
7086
|
}) {
|
|
7087
|
-
const params = { limit, offset, filter: filter2, q, sort, fields };
|
|
7087
|
+
const params = { limit, offset, filter: filter2, q: q2, sort, fields };
|
|
7088
7088
|
return apiHandler.getAll(`events/${eventType}/rules/history`, params);
|
|
7089
7089
|
},
|
|
7090
7090
|
getRulesVersionNumber({ eventType, version: version2, fields = null }) {
|
|
@@ -7106,11 +7106,11 @@ function EventsResource({ apiHandler }) {
|
|
|
7106
7106
|
limit = null,
|
|
7107
7107
|
offset = null,
|
|
7108
7108
|
filter: filter2 = null,
|
|
7109
|
-
q = null,
|
|
7109
|
+
q: q2 = null,
|
|
7110
7110
|
sort = null,
|
|
7111
7111
|
fields = null
|
|
7112
7112
|
}) {
|
|
7113
|
-
const params = { limit, offset, filter: filter2, q, sort, fields };
|
|
7113
|
+
const params = { limit, offset, filter: filter2, q: q2, sort, fields };
|
|
7114
7114
|
return apiHandler.getAll(`events/${eventType}/rules/drafts`, params);
|
|
7115
7115
|
},
|
|
7116
7116
|
createDraftRuleset({ eventType, data }) {
|
|
@@ -7192,12 +7192,12 @@ function FilesResource({ apiHandler }) {
|
|
|
7192
7192
|
limit = null,
|
|
7193
7193
|
offset = null,
|
|
7194
7194
|
filter: filter2 = null,
|
|
7195
|
-
q = null,
|
|
7195
|
+
q: q2 = null,
|
|
7196
7196
|
expand = null,
|
|
7197
7197
|
fields = null,
|
|
7198
7198
|
sort = null
|
|
7199
7199
|
} = {}) {
|
|
7200
|
-
const params = { limit, offset, filter: filter2, q, expand, fields, sort };
|
|
7200
|
+
const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
|
|
7201
7201
|
return apiHandler.getAll(`attachments`, params);
|
|
7202
7202
|
},
|
|
7203
7203
|
attach({ id: id2 = "", data, expand = null }) {
|
|
@@ -7218,11 +7218,11 @@ function FilesResource({ apiHandler }) {
|
|
|
7218
7218
|
limit = null,
|
|
7219
7219
|
offset = null,
|
|
7220
7220
|
filter: filter2 = null,
|
|
7221
|
-
q = null,
|
|
7221
|
+
q: q2 = null,
|
|
7222
7222
|
fields = null,
|
|
7223
7223
|
sort = null
|
|
7224
7224
|
} = {}) {
|
|
7225
|
-
const params = { limit, offset, filter: filter2, q, fields, sort };
|
|
7225
|
+
const params = { limit, offset, filter: filter2, q: q2, fields, sort };
|
|
7226
7226
|
return apiHandler.getAll(`files`, params);
|
|
7227
7227
|
},
|
|
7228
7228
|
upload({ fileObject }) {
|
|
@@ -7299,10 +7299,10 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
7299
7299
|
offset = null,
|
|
7300
7300
|
sort = null,
|
|
7301
7301
|
filter: filter2 = null,
|
|
7302
|
-
q = null,
|
|
7302
|
+
q: q2 = null,
|
|
7303
7303
|
fields = null
|
|
7304
7304
|
} = {}) {
|
|
7305
|
-
const params = { limit, offset, sort, filter: filter2, q, fields };
|
|
7305
|
+
const params = { limit, offset, sort, filter: filter2, q: q2, fields };
|
|
7306
7306
|
return apiHandler.getAll(`gateway-accounts`, params);
|
|
7307
7307
|
},
|
|
7308
7308
|
create({ id: id2 = "", data }) {
|
|
@@ -7376,9 +7376,9 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
7376
7376
|
offset = null,
|
|
7377
7377
|
filter: filter2 = null,
|
|
7378
7378
|
sort = null,
|
|
7379
|
-
q = null
|
|
7379
|
+
q: q2 = null
|
|
7380
7380
|
}) {
|
|
7381
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
7381
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
7382
7382
|
return apiHandler.getAll(`gateway-accounts/${id2}/timeline`, params);
|
|
7383
7383
|
},
|
|
7384
7384
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -7420,10 +7420,10 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
7420
7420
|
sort = null,
|
|
7421
7421
|
limit = null,
|
|
7422
7422
|
offset = null,
|
|
7423
|
-
q = null,
|
|
7423
|
+
q: q2 = null,
|
|
7424
7424
|
expand = null
|
|
7425
7425
|
} = {}) {
|
|
7426
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
7426
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
7427
7427
|
return apiHandler.getAll(`invoices`, params);
|
|
7428
7428
|
},
|
|
7429
7429
|
create({ id: id2 = "", data }) {
|
|
@@ -7483,9 +7483,9 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
7483
7483
|
offset = null,
|
|
7484
7484
|
filter: filter2 = null,
|
|
7485
7485
|
sort = null,
|
|
7486
|
-
q = null
|
|
7486
|
+
q: q2 = null
|
|
7487
7487
|
}) {
|
|
7488
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
7488
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
7489
7489
|
return apiHandler.getAll(`invoices/${id2}/timeline`, params);
|
|
7490
7490
|
},
|
|
7491
7491
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -7657,9 +7657,9 @@ function ListsResource({ apiHandler }) {
|
|
|
7657
7657
|
filter: filter2 = null,
|
|
7658
7658
|
sort = null,
|
|
7659
7659
|
fields = null,
|
|
7660
|
-
q = null
|
|
7660
|
+
q: q2 = null
|
|
7661
7661
|
} = {}) {
|
|
7662
|
-
const params = { limit, offset, filter: filter2, sort, fields, q };
|
|
7662
|
+
const params = { limit, offset, filter: filter2, sort, fields, q: q2 };
|
|
7663
7663
|
return apiHandler.getAll(`lists`, params);
|
|
7664
7664
|
},
|
|
7665
7665
|
create({ id: id2 = "", data }) {
|
|
@@ -7702,10 +7702,10 @@ function OrganizationExportsResource({ apiHandler }) {
|
|
|
7702
7702
|
limit = null,
|
|
7703
7703
|
offset = null,
|
|
7704
7704
|
filter: filter2 = null,
|
|
7705
|
-
q = null,
|
|
7705
|
+
q: q2 = null,
|
|
7706
7706
|
sort = null
|
|
7707
7707
|
} = {}) {
|
|
7708
|
-
const params = { limit, offset, filter: filter2, q, sort };
|
|
7708
|
+
const params = { limit, offset, filter: filter2, q: q2, sort };
|
|
7709
7709
|
return apiHandler.getAll(`organization-exports`, params);
|
|
7710
7710
|
},
|
|
7711
7711
|
create({ data }) {
|
|
@@ -7723,9 +7723,9 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7723
7723
|
offset = null,
|
|
7724
7724
|
filter: filter2 = null,
|
|
7725
7725
|
sort = null,
|
|
7726
|
-
q = null
|
|
7726
|
+
q: q2 = null
|
|
7727
7727
|
} = {}) {
|
|
7728
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
7728
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
7729
7729
|
return apiHandler.getAll(`organizations`, params);
|
|
7730
7730
|
},
|
|
7731
7731
|
create({ data }) {
|
|
@@ -7741,8 +7741,8 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7741
7741
|
}
|
|
7742
7742
|
function PaymentCardsBankNamesResource({ apiHandler }) {
|
|
7743
7743
|
return {
|
|
7744
|
-
getAll({ limit = null, q = null } = {}) {
|
|
7745
|
-
const params = { limit, q };
|
|
7744
|
+
getAll({ limit = null, q: q2 = null } = {}) {
|
|
7745
|
+
const params = { limit, q: q2 };
|
|
7746
7746
|
return apiHandler.getAll(`payment-cards-bank-names`, params);
|
|
7747
7747
|
}
|
|
7748
7748
|
};
|
|
@@ -7754,10 +7754,10 @@ function PaymentInstrumentsResource$1({ apiHandler }) {
|
|
|
7754
7754
|
sort = null,
|
|
7755
7755
|
limit = null,
|
|
7756
7756
|
offset = null,
|
|
7757
|
-
q = null,
|
|
7757
|
+
q: q2 = null,
|
|
7758
7758
|
expand = null
|
|
7759
7759
|
} = {}) {
|
|
7760
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
7760
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
7761
7761
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
7762
7762
|
},
|
|
7763
7763
|
create({ data }) {
|
|
@@ -7833,9 +7833,9 @@ function PlansResource$1({ apiHandler }) {
|
|
|
7833
7833
|
sort = null,
|
|
7834
7834
|
limit = null,
|
|
7835
7835
|
offset = null,
|
|
7836
|
-
q = null
|
|
7836
|
+
q: q2 = null
|
|
7837
7837
|
} = {}) {
|
|
7838
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
7838
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
7839
7839
|
return apiHandler.getAll(`plans`, params);
|
|
7840
7840
|
},
|
|
7841
7841
|
create({ id: id2 = "", data }) {
|
|
@@ -7872,9 +7872,9 @@ function ProductsResource$1({ apiHandler }) {
|
|
|
7872
7872
|
sort = null,
|
|
7873
7873
|
limit = null,
|
|
7874
7874
|
offset = null,
|
|
7875
|
-
q = null
|
|
7875
|
+
q: q2 = null
|
|
7876
7876
|
} = {}) {
|
|
7877
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
7877
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
7878
7878
|
return apiHandler.getAll(`products`, params);
|
|
7879
7879
|
},
|
|
7880
7880
|
create({ id: id2 = "", data }) {
|
|
@@ -7969,9 +7969,9 @@ function QuotesResource$1({ apiHandler }) {
|
|
|
7969
7969
|
offset = null,
|
|
7970
7970
|
filter: filter2 = null,
|
|
7971
7971
|
sort = null,
|
|
7972
|
-
q = null
|
|
7972
|
+
q: q2 = null
|
|
7973
7973
|
}) {
|
|
7974
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
7974
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
7975
7975
|
return apiHandler.getAll(`quotes/${id2}/timeline`, params);
|
|
7976
7976
|
},
|
|
7977
7977
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -8024,9 +8024,9 @@ function RichBillingPortalsResource$1({ apiHandler }) {
|
|
|
8024
8024
|
sort = null,
|
|
8025
8025
|
limit = null,
|
|
8026
8026
|
offset = null,
|
|
8027
|
-
q = null
|
|
8027
|
+
q: q2 = null
|
|
8028
8028
|
} = {}) {
|
|
8029
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
8029
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
8030
8030
|
return apiHandler.getAll(`rich-billing-portals`, params);
|
|
8031
8031
|
},
|
|
8032
8032
|
create({ id: id2 = "", data }) {
|
|
@@ -8063,10 +8063,10 @@ function RolesResource({ apiHandler }) {
|
|
|
8063
8063
|
offset = null,
|
|
8064
8064
|
filter: filter2 = null,
|
|
8065
8065
|
sort = null,
|
|
8066
|
-
q = null,
|
|
8066
|
+
q: q2 = null,
|
|
8067
8067
|
expand = null
|
|
8068
8068
|
} = {}) {
|
|
8069
|
-
const params = { limit, offset, filter: filter2, sort, q, expand };
|
|
8069
|
+
const params = { limit, offset, filter: filter2, sort, q: q2, expand };
|
|
8070
8070
|
return apiHandler.getAll(`roles`, params);
|
|
8071
8071
|
},
|
|
8072
8072
|
create({ id: id2 = "", data }) {
|
|
@@ -8086,8 +8086,8 @@ function RolesResource({ apiHandler }) {
|
|
|
8086
8086
|
}
|
|
8087
8087
|
function SearchResource({ apiHandler }) {
|
|
8088
8088
|
return {
|
|
8089
|
-
get({ sort = null, limit = null, offset = null, q = null }) {
|
|
8090
|
-
const params = { sort, limit, offset, q };
|
|
8089
|
+
get({ sort = null, limit = null, offset = null, q: q2 = null }) {
|
|
8090
|
+
const params = { sort, limit, offset, q: q2 };
|
|
8091
8091
|
return apiHandler.get(`search`, params);
|
|
8092
8092
|
}
|
|
8093
8093
|
};
|
|
@@ -8099,9 +8099,9 @@ function SegmentsResource({ apiHandler }) {
|
|
|
8099
8099
|
offset = null,
|
|
8100
8100
|
sort = null,
|
|
8101
8101
|
filter: filter2 = null,
|
|
8102
|
-
q = null
|
|
8102
|
+
q: q2 = null
|
|
8103
8103
|
} = {}) {
|
|
8104
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8104
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8105
8105
|
return apiHandler.getAll(`grid-segments`, params);
|
|
8106
8106
|
},
|
|
8107
8107
|
create({ id: id2 = "", data }) {
|
|
@@ -8133,9 +8133,9 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
8133
8133
|
limit = null,
|
|
8134
8134
|
offset = null,
|
|
8135
8135
|
sort = null,
|
|
8136
|
-
q = null
|
|
8136
|
+
q: q2 = null
|
|
8137
8137
|
}) {
|
|
8138
|
-
const params = { filter: filter2, limit, offset, sort, q };
|
|
8138
|
+
const params = { filter: filter2, limit, offset, sort, q: q2 };
|
|
8139
8139
|
return apiHandler.getAll(`service-credentials/${type2}`, params);
|
|
8140
8140
|
},
|
|
8141
8141
|
create({ type: type2, data }) {
|
|
@@ -8153,11 +8153,11 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
8153
8153
|
limit = null,
|
|
8154
8154
|
offset = null,
|
|
8155
8155
|
filter: filter2 = null,
|
|
8156
|
-
q = null,
|
|
8156
|
+
q: q2 = null,
|
|
8157
8157
|
fields = null,
|
|
8158
8158
|
sort = null
|
|
8159
8159
|
}) {
|
|
8160
|
-
const params = { limit, offset, filter: filter2, q, fields, sort };
|
|
8160
|
+
const params = { limit, offset, filter: filter2, q: q2, fields, sort };
|
|
8161
8161
|
return apiHandler.getAll(
|
|
8162
8162
|
`service-credentials/${type2}/${id2}/items`,
|
|
8163
8163
|
params
|
|
@@ -8172,9 +8172,9 @@ function ShippingRatesResource({ apiHandler }) {
|
|
|
8172
8172
|
offset = null,
|
|
8173
8173
|
filter: filter2 = null,
|
|
8174
8174
|
sort = null,
|
|
8175
|
-
q = null
|
|
8175
|
+
q: q2 = null
|
|
8176
8176
|
} = {}) {
|
|
8177
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
8177
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
8178
8178
|
return apiHandler.getAll(`shipping-rates`, params);
|
|
8179
8179
|
},
|
|
8180
8180
|
create({ id: id2 = "", data }) {
|
|
@@ -8259,10 +8259,10 @@ function SubscriptionsResource$2({ apiHandler }) {
|
|
|
8259
8259
|
sort = null,
|
|
8260
8260
|
limit = null,
|
|
8261
8261
|
offset = null,
|
|
8262
|
-
q = null,
|
|
8262
|
+
q: q2 = null,
|
|
8263
8263
|
expand = null
|
|
8264
8264
|
} = {}) {
|
|
8265
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
8265
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
8266
8266
|
return apiHandler.getAll(`subscriptions`, params);
|
|
8267
8267
|
},
|
|
8268
8268
|
create({ id: id2 = "", data, expand = null }) {
|
|
@@ -8318,9 +8318,9 @@ function SubscriptionsResource$2({ apiHandler }) {
|
|
|
8318
8318
|
offset = null,
|
|
8319
8319
|
filter: filter2 = null,
|
|
8320
8320
|
sort = null,
|
|
8321
|
-
q = null
|
|
8321
|
+
q: q2 = null
|
|
8322
8322
|
}) {
|
|
8323
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
8323
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
8324
8324
|
return apiHandler.getAll(`subscriptions/${id2}/timeline`, params);
|
|
8325
8325
|
},
|
|
8326
8326
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -8340,10 +8340,10 @@ function TagsResource({ apiHandler }) {
|
|
|
8340
8340
|
limit = null,
|
|
8341
8341
|
offset = null,
|
|
8342
8342
|
filter: filter2 = null,
|
|
8343
|
-
q = null,
|
|
8343
|
+
q: q2 = null,
|
|
8344
8344
|
sort = null
|
|
8345
8345
|
} = {}) {
|
|
8346
|
-
const params = { limit, offset, filter: filter2, q, sort };
|
|
8346
|
+
const params = { limit, offset, filter: filter2, q: q2, sort };
|
|
8347
8347
|
return apiHandler.getAll(`tags`, params);
|
|
8348
8348
|
},
|
|
8349
8349
|
create({ data }) {
|
|
@@ -8403,9 +8403,9 @@ function TagsRulesResource({ apiHandler }) {
|
|
|
8403
8403
|
offset = null,
|
|
8404
8404
|
sort = null,
|
|
8405
8405
|
filter: filter2 = null,
|
|
8406
|
-
q = null
|
|
8406
|
+
q: q2 = null
|
|
8407
8407
|
} = {}) {
|
|
8408
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8408
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8409
8409
|
return apiHandler.getAll(`tags-rules`, params);
|
|
8410
8410
|
},
|
|
8411
8411
|
createTagsRule({ id: id2 = "", data }) {
|
|
@@ -8429,10 +8429,10 @@ function TrackingResource({ apiHandler }) {
|
|
|
8429
8429
|
offset = null,
|
|
8430
8430
|
sort = null,
|
|
8431
8431
|
filter: filter2 = null,
|
|
8432
|
-
q = null,
|
|
8432
|
+
q: q2 = null,
|
|
8433
8433
|
expand = null
|
|
8434
8434
|
} = {}) {
|
|
8435
|
-
const params = { limit, offset, sort, filter: filter2, q, expand };
|
|
8435
|
+
const params = { limit, offset, sort, filter: filter2, q: q2, expand };
|
|
8436
8436
|
return apiHandler.getAll(`tracking/api`, params);
|
|
8437
8437
|
},
|
|
8438
8438
|
getApiLog({ id: id2 }) {
|
|
@@ -8443,9 +8443,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8443
8443
|
offset = null,
|
|
8444
8444
|
sort = null,
|
|
8445
8445
|
filter: filter2 = null,
|
|
8446
|
-
q = null
|
|
8446
|
+
q: q2 = null
|
|
8447
8447
|
} = {}) {
|
|
8448
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8448
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8449
8449
|
return apiHandler.getAll(`tracking/taxes`, params);
|
|
8450
8450
|
},
|
|
8451
8451
|
getTaxTrackingLog({ id: id2 }) {
|
|
@@ -8456,9 +8456,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8456
8456
|
offset = null,
|
|
8457
8457
|
sort = null,
|
|
8458
8458
|
filter: filter2 = null,
|
|
8459
|
-
q = null
|
|
8459
|
+
q: q2 = null
|
|
8460
8460
|
} = {}) {
|
|
8461
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8461
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8462
8462
|
return apiHandler.getAll(`tracking/lists`, params);
|
|
8463
8463
|
},
|
|
8464
8464
|
getAllWebhookTrackingLogs({
|
|
@@ -8466,9 +8466,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
8466
8466
|
offset = null,
|
|
8467
8467
|
sort = null,
|
|
8468
8468
|
filter: filter2 = null,
|
|
8469
|
-
q = null
|
|
8469
|
+
q: q2 = null
|
|
8470
8470
|
} = {}) {
|
|
8471
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8471
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8472
8472
|
return apiHandler.getAll(`tracking/webhooks`, params);
|
|
8473
8473
|
},
|
|
8474
8474
|
getWebhookTrackingLog({ id: id2 }) {
|
|
@@ -8485,11 +8485,11 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
8485
8485
|
limit = null,
|
|
8486
8486
|
offset = null,
|
|
8487
8487
|
filter: filter2 = null,
|
|
8488
|
-
q = null,
|
|
8488
|
+
q: q2 = null,
|
|
8489
8489
|
sort = null,
|
|
8490
8490
|
expand = null
|
|
8491
8491
|
} = {}) {
|
|
8492
|
-
const params = { limit, offset, filter: filter2, q, sort, expand };
|
|
8492
|
+
const params = { limit, offset, filter: filter2, q: q2, sort, expand };
|
|
8493
8493
|
return apiHandler.getAll(`transactions`, params);
|
|
8494
8494
|
},
|
|
8495
8495
|
create({ data, expand = null }) {
|
|
@@ -8518,9 +8518,9 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
8518
8518
|
offset = null,
|
|
8519
8519
|
filter: filter2 = null,
|
|
8520
8520
|
sort = null,
|
|
8521
|
-
q = null
|
|
8521
|
+
q: q2 = null
|
|
8522
8522
|
}) {
|
|
8523
|
-
const params = { limit, offset, filter: filter2, sort, q };
|
|
8523
|
+
const params = { limit, offset, filter: filter2, sort, q: q2 };
|
|
8524
8524
|
return apiHandler.getAll(`transactions/${id2}/timeline`, params);
|
|
8525
8525
|
},
|
|
8526
8526
|
createTimelineComment({ id: id2, data }) {
|
|
@@ -8541,9 +8541,9 @@ function UsagesResource({ apiHandler }) {
|
|
|
8541
8541
|
sort = null,
|
|
8542
8542
|
limit = null,
|
|
8543
8543
|
offset = null,
|
|
8544
|
-
q = null
|
|
8544
|
+
q: q2 = null
|
|
8545
8545
|
} = {}) {
|
|
8546
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
8546
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
8547
8547
|
return apiHandler.getAll(`usages`, params);
|
|
8548
8548
|
},
|
|
8549
8549
|
create({ id: id2 = "", data }) {
|
|
@@ -8567,9 +8567,9 @@ function UsersResource({ apiHandler }) {
|
|
|
8567
8567
|
offset = null,
|
|
8568
8568
|
sort = null,
|
|
8569
8569
|
filter: filter2 = null,
|
|
8570
|
-
q = null
|
|
8570
|
+
q: q2 = null
|
|
8571
8571
|
} = {}) {
|
|
8572
|
-
const params = { limit, offset, sort, filter: filter2, q };
|
|
8572
|
+
const params = { limit, offset, sort, filter: filter2, q: q2 };
|
|
8573
8573
|
return apiHandler.getAll(`users`, params);
|
|
8574
8574
|
},
|
|
8575
8575
|
create({ id: id2 = "", data }) {
|
|
@@ -8608,11 +8608,11 @@ function WebsitesResource$1({ apiHandler }) {
|
|
|
8608
8608
|
getAll({
|
|
8609
8609
|
limit = null,
|
|
8610
8610
|
offset = null,
|
|
8611
|
-
q = null,
|
|
8611
|
+
q: q2 = null,
|
|
8612
8612
|
filter: filter2 = null,
|
|
8613
8613
|
sort = null
|
|
8614
8614
|
} = {}) {
|
|
8615
|
-
const params = { limit, offset, q, filter: filter2, sort };
|
|
8615
|
+
const params = { limit, offset, q: q2, filter: filter2, sort };
|
|
8616
8616
|
return apiHandler.getAll(`websites`, params);
|
|
8617
8617
|
},
|
|
8618
8618
|
create({ id: id2 = "", data }) {
|
|
@@ -8744,10 +8744,10 @@ function DataExportsResource({ apiHandler }) {
|
|
|
8744
8744
|
sort = null,
|
|
8745
8745
|
expand = null,
|
|
8746
8746
|
filter: filter2 = null,
|
|
8747
|
-
q = null,
|
|
8747
|
+
q: q2 = null,
|
|
8748
8748
|
criteria = null
|
|
8749
8749
|
} = {}) {
|
|
8750
|
-
const params = { limit, offset, sort, expand, filter: filter2, q, criteria };
|
|
8750
|
+
const params = { limit, offset, sort, expand, filter: filter2, q: q2, criteria };
|
|
8751
8751
|
return apiHandler.getAll(`data-exports`, params);
|
|
8752
8752
|
},
|
|
8753
8753
|
queue({ id: id2 = "", data, expand = null }) {
|
|
@@ -9258,10 +9258,10 @@ function InvoicesResource({ apiHandler }) {
|
|
|
9258
9258
|
sort = null,
|
|
9259
9259
|
limit = null,
|
|
9260
9260
|
offset = null,
|
|
9261
|
-
q = null,
|
|
9261
|
+
q: q2 = null,
|
|
9262
9262
|
expand = null
|
|
9263
9263
|
} = {}) {
|
|
9264
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
9264
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
9265
9265
|
return apiHandler.getAll(`invoices`, params);
|
|
9266
9266
|
},
|
|
9267
9267
|
get({ id: id2 }) {
|
|
@@ -9324,10 +9324,10 @@ function OrdersResource({ apiHandler }) {
|
|
|
9324
9324
|
sort = null,
|
|
9325
9325
|
limit = null,
|
|
9326
9326
|
offset = null,
|
|
9327
|
-
q = null,
|
|
9327
|
+
q: q2 = null,
|
|
9328
9328
|
expand = null
|
|
9329
9329
|
} = {}) {
|
|
9330
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
9330
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
9331
9331
|
return apiHandler.getAll(`orders`, params);
|
|
9332
9332
|
},
|
|
9333
9333
|
get({ id: id2, expand = null }) {
|
|
@@ -9352,9 +9352,9 @@ function PaymentInstrumentsResource({ apiHandler }) {
|
|
|
9352
9352
|
sort = null,
|
|
9353
9353
|
limit = null,
|
|
9354
9354
|
offset = null,
|
|
9355
|
-
q = null
|
|
9355
|
+
q: q2 = null
|
|
9356
9356
|
} = {}) {
|
|
9357
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
9357
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
9358
9358
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
9359
9359
|
},
|
|
9360
9360
|
create({ data }) {
|
|
@@ -9385,9 +9385,9 @@ function PayoutRequestsResource({ apiHandler }) {
|
|
|
9385
9385
|
sort = null,
|
|
9386
9386
|
limit = null,
|
|
9387
9387
|
offset = null,
|
|
9388
|
-
q = null
|
|
9388
|
+
q: q2 = null
|
|
9389
9389
|
} = {}) {
|
|
9390
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
9390
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
9391
9391
|
return apiHandler.getAll(`payout-requests`, params);
|
|
9392
9392
|
},
|
|
9393
9393
|
get({ id: id2 }) {
|
|
@@ -9405,10 +9405,10 @@ function PlansResource({ apiHandler }) {
|
|
|
9405
9405
|
sort = null,
|
|
9406
9406
|
limit = null,
|
|
9407
9407
|
offset = null,
|
|
9408
|
-
q = null,
|
|
9408
|
+
q: q2 = null,
|
|
9409
9409
|
expand = null
|
|
9410
9410
|
} = {}) {
|
|
9411
|
-
const params = { filter: filter2, sort, limit, offset, q, expand };
|
|
9411
|
+
const params = { filter: filter2, sort, limit, offset, q: q2, expand };
|
|
9412
9412
|
return apiHandler.getAll(`plans`, params);
|
|
9413
9413
|
},
|
|
9414
9414
|
get({ id: id2, expand = null }) {
|
|
@@ -9424,9 +9424,9 @@ function ProductsResource({ apiHandler }) {
|
|
|
9424
9424
|
sort = null,
|
|
9425
9425
|
limit = null,
|
|
9426
9426
|
offset = null,
|
|
9427
|
-
q = null
|
|
9427
|
+
q: q2 = null
|
|
9428
9428
|
} = {}) {
|
|
9429
|
-
const params = { filter: filter2, sort, limit, offset, q };
|
|
9429
|
+
const params = { filter: filter2, sort, limit, offset, q: q2 };
|
|
9430
9430
|
return apiHandler.getAll(`products`, params);
|
|
9431
9431
|
},
|
|
9432
9432
|
get({ id: id2 }) {
|
|
@@ -9502,10 +9502,10 @@ function TransactionsResource({ apiHandler }) {
|
|
|
9502
9502
|
limit = null,
|
|
9503
9503
|
offset = null,
|
|
9504
9504
|
filter: filter2 = null,
|
|
9505
|
-
q = null,
|
|
9505
|
+
q: q2 = null,
|
|
9506
9506
|
sort = null
|
|
9507
9507
|
} = {}) {
|
|
9508
|
-
const params = { limit, offset, filter: filter2, q, sort };
|
|
9508
|
+
const params = { limit, offset, filter: filter2, q: q2, sort };
|
|
9509
9509
|
return apiHandler.getAll(`transactions`, params);
|
|
9510
9510
|
},
|
|
9511
9511
|
get({ id: id2 }) {
|
|
@@ -9928,190 +9928,190 @@ async function updateSummary({ instrument } = {}) {
|
|
|
9928
9928
|
await fetchSummary({ data: instrument });
|
|
9929
9929
|
state.updateModel();
|
|
9930
9930
|
}
|
|
9931
|
-
function t$1(t2, e2,
|
|
9931
|
+
function t$1(t2, e2, n2, r2, o2, i2, a2) {
|
|
9932
9932
|
try {
|
|
9933
|
-
var
|
|
9933
|
+
var c2 = t2[i2](a2), s2 = c2.value;
|
|
9934
9934
|
} catch (t3) {
|
|
9935
|
-
return void
|
|
9935
|
+
return void n2(t3);
|
|
9936
9936
|
}
|
|
9937
|
-
|
|
9937
|
+
c2.done ? e2(s2) : Promise.resolve(s2).then(r2, o2);
|
|
9938
9938
|
}
|
|
9939
9939
|
function e$1(e2) {
|
|
9940
9940
|
return function() {
|
|
9941
|
-
var
|
|
9941
|
+
var n2 = this, r2 = arguments;
|
|
9942
9942
|
return new Promise(function(o2, i2) {
|
|
9943
|
-
var a2 = e2.apply(
|
|
9944
|
-
function u2(e3) {
|
|
9945
|
-
t$1(a2, o2, i2, u2, c2, "next", e3);
|
|
9946
|
-
}
|
|
9943
|
+
var a2 = e2.apply(n2, r2);
|
|
9947
9944
|
function c2(e3) {
|
|
9948
|
-
t$1(a2, o2, i2,
|
|
9945
|
+
t$1(a2, o2, i2, c2, s2, "next", e3);
|
|
9946
|
+
}
|
|
9947
|
+
function s2(e3) {
|
|
9948
|
+
t$1(a2, o2, i2, c2, s2, "throw", e3);
|
|
9949
9949
|
}
|
|
9950
|
-
|
|
9950
|
+
c2(void 0);
|
|
9951
9951
|
});
|
|
9952
9952
|
};
|
|
9953
9953
|
}
|
|
9954
|
-
function
|
|
9955
|
-
return t2(
|
|
9954
|
+
function n$1(t2, e2, n2) {
|
|
9955
|
+
return t2(n2 = { path: e2, exports: {}, require: function(t3, e3) {
|
|
9956
9956
|
return function() {
|
|
9957
9957
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
9958
|
-
}(null == e3 &&
|
|
9959
|
-
} },
|
|
9958
|
+
}(null == e3 && n2.path);
|
|
9959
|
+
} }, n2.exports), n2.exports;
|
|
9960
9960
|
}
|
|
9961
|
-
var
|
|
9962
|
-
function e2(
|
|
9961
|
+
var r$1 = n$1(function(t2) {
|
|
9962
|
+
function e2(n2) {
|
|
9963
9963
|
return t2.exports = e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
9964
9964
|
return typeof t3;
|
|
9965
9965
|
} : function(t3) {
|
|
9966
9966
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
9967
|
-
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(
|
|
9967
|
+
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(n2);
|
|
9968
9968
|
}
|
|
9969
9969
|
t2.exports = e2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9970
|
-
}), o$1 =
|
|
9971
|
-
var e2 =
|
|
9972
|
-
function
|
|
9970
|
+
}), o$1 = n$1(function(t2) {
|
|
9971
|
+
var e2 = r$1.default;
|
|
9972
|
+
function n2() {
|
|
9973
9973
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9974
|
-
t2.exports =
|
|
9974
|
+
t2.exports = n2 = function() {
|
|
9975
9975
|
return o2;
|
|
9976
9976
|
}, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9977
|
-
var
|
|
9978
|
-
t3[e3] =
|
|
9979
|
-
},
|
|
9980
|
-
function
|
|
9981
|
-
return Object.defineProperty(t3, e3, { value:
|
|
9977
|
+
var r2, o2 = {}, i2 = Object.prototype, a2 = i2.hasOwnProperty, c2 = Object.defineProperty || function(t3, e3, n3) {
|
|
9978
|
+
t3[e3] = n3.value;
|
|
9979
|
+
}, s2 = "function" == typeof Symbol ? Symbol : {}, u2 = s2.iterator || "@@iterator", l2 = s2.asyncIterator || "@@asyncIterator", h2 = s2.toStringTag || "@@toStringTag";
|
|
9980
|
+
function f2(t3, e3, n3) {
|
|
9981
|
+
return Object.defineProperty(t3, e3, { value: n3, enumerable: true, configurable: true, writable: true }), t3[e3];
|
|
9982
9982
|
}
|
|
9983
9983
|
try {
|
|
9984
|
-
|
|
9985
|
-
} catch (
|
|
9986
|
-
|
|
9987
|
-
return t3[e3] =
|
|
9984
|
+
f2({}, "");
|
|
9985
|
+
} catch (r3) {
|
|
9986
|
+
f2 = function(t3, e3, n3) {
|
|
9987
|
+
return t3[e3] = n3;
|
|
9988
9988
|
};
|
|
9989
9989
|
}
|
|
9990
|
-
function
|
|
9991
|
-
var o3 = e3 && e3.prototype instanceof
|
|
9992
|
-
return
|
|
9990
|
+
function p2(t3, e3, n3, r3) {
|
|
9991
|
+
var o3 = e3 && e3.prototype instanceof m2 ? e3 : m2, i3 = Object.create(o3.prototype), a3 = new k2(r3 || []);
|
|
9992
|
+
return c2(i3, "_invoke", { value: T2(t3, n3, a3) }), i3;
|
|
9993
9993
|
}
|
|
9994
|
-
function d2(t3, e3,
|
|
9994
|
+
function d2(t3, e3, n3) {
|
|
9995
9995
|
try {
|
|
9996
|
-
return { type: "normal", arg: t3.call(e3,
|
|
9996
|
+
return { type: "normal", arg: t3.call(e3, n3) };
|
|
9997
9997
|
} catch (t4) {
|
|
9998
9998
|
return { type: "throw", arg: t4 };
|
|
9999
9999
|
}
|
|
10000
10000
|
}
|
|
10001
|
-
o2.wrap =
|
|
10002
|
-
var v2 = "suspendedStart",
|
|
10003
|
-
function
|
|
10001
|
+
o2.wrap = p2;
|
|
10002
|
+
var v2 = "suspendedStart", R2 = "suspendedYield", y2 = "executing", E2 = "completed", g2 = {};
|
|
10003
|
+
function m2() {
|
|
10004
10004
|
}
|
|
10005
|
-
function
|
|
10005
|
+
function O2() {
|
|
10006
10006
|
}
|
|
10007
|
-
function
|
|
10007
|
+
function w2() {
|
|
10008
10008
|
}
|
|
10009
|
-
var
|
|
10010
|
-
|
|
10009
|
+
var _2 = {};
|
|
10010
|
+
f2(_2, u2, function() {
|
|
10011
10011
|
return this;
|
|
10012
10012
|
});
|
|
10013
|
-
var
|
|
10014
|
-
|
|
10015
|
-
var
|
|
10016
|
-
function
|
|
10013
|
+
var I2 = Object.getPrototypeOf, b2 = I2 && I2(I2(D2([])));
|
|
10014
|
+
b2 && b2 !== i2 && a2.call(b2, u2) && (_2 = b2);
|
|
10015
|
+
var S2 = w2.prototype = m2.prototype = Object.create(_2);
|
|
10016
|
+
function N2(t3) {
|
|
10017
10017
|
["next", "throw", "return"].forEach(function(e3) {
|
|
10018
|
-
|
|
10018
|
+
f2(t3, e3, function(t4) {
|
|
10019
10019
|
return this._invoke(e3, t4);
|
|
10020
10020
|
});
|
|
10021
10021
|
});
|
|
10022
10022
|
}
|
|
10023
|
-
function
|
|
10024
|
-
function
|
|
10025
|
-
var
|
|
10026
|
-
if ("throw" !==
|
|
10027
|
-
var l3 =
|
|
10028
|
-
return
|
|
10029
|
-
|
|
10023
|
+
function x2(t3, n3) {
|
|
10024
|
+
function r3(o4, i3, c3, s3) {
|
|
10025
|
+
var u3 = d2(t3[o4], t3, i3);
|
|
10026
|
+
if ("throw" !== u3.type) {
|
|
10027
|
+
var l3 = u3.arg, h3 = l3.value;
|
|
10028
|
+
return h3 && "object" == e2(h3) && a2.call(h3, "__await") ? n3.resolve(h3.__await).then(function(t4) {
|
|
10029
|
+
r3("next", t4, c3, s3);
|
|
10030
10030
|
}, function(t4) {
|
|
10031
|
-
|
|
10032
|
-
}) :
|
|
10033
|
-
l3.value = t4,
|
|
10031
|
+
r3("throw", t4, c3, s3);
|
|
10032
|
+
}) : n3.resolve(h3).then(function(t4) {
|
|
10033
|
+
l3.value = t4, c3(l3);
|
|
10034
10034
|
}, function(t4) {
|
|
10035
|
-
return
|
|
10035
|
+
return r3("throw", t4, c3, s3);
|
|
10036
10036
|
});
|
|
10037
10037
|
}
|
|
10038
|
-
|
|
10038
|
+
s3(u3.arg);
|
|
10039
10039
|
}
|
|
10040
10040
|
var o3;
|
|
10041
|
-
|
|
10041
|
+
c2(this, "_invoke", { value: function(t4, e3) {
|
|
10042
10042
|
function i3() {
|
|
10043
|
-
return new
|
|
10044
|
-
|
|
10043
|
+
return new n3(function(n4, o4) {
|
|
10044
|
+
r3(t4, e3, n4, o4);
|
|
10045
10045
|
});
|
|
10046
10046
|
}
|
|
10047
10047
|
return o3 = o3 ? o3.then(i3, i3) : i3();
|
|
10048
10048
|
} });
|
|
10049
10049
|
}
|
|
10050
|
-
function
|
|
10050
|
+
function T2(t3, e3, n3) {
|
|
10051
10051
|
var o3 = v2;
|
|
10052
10052
|
return function(i3, a3) {
|
|
10053
|
-
if (o3 ===
|
|
10053
|
+
if (o3 === y2)
|
|
10054
10054
|
throw new Error("Generator is already running");
|
|
10055
|
-
if (o3 ===
|
|
10055
|
+
if (o3 === E2) {
|
|
10056
10056
|
if ("throw" === i3)
|
|
10057
10057
|
throw a3;
|
|
10058
|
-
return { value:
|
|
10058
|
+
return { value: r2, done: true };
|
|
10059
10059
|
}
|
|
10060
|
-
for (
|
|
10061
|
-
var
|
|
10062
|
-
if (
|
|
10063
|
-
var
|
|
10064
|
-
if (
|
|
10065
|
-
if (
|
|
10060
|
+
for (n3.method = i3, n3.arg = a3; ; ) {
|
|
10061
|
+
var c3 = n3.delegate;
|
|
10062
|
+
if (c3) {
|
|
10063
|
+
var s3 = L2(c3, n3);
|
|
10064
|
+
if (s3) {
|
|
10065
|
+
if (s3 === g2)
|
|
10066
10066
|
continue;
|
|
10067
|
-
return
|
|
10067
|
+
return s3;
|
|
10068
10068
|
}
|
|
10069
10069
|
}
|
|
10070
|
-
if ("next" ===
|
|
10071
|
-
|
|
10072
|
-
else if ("throw" ===
|
|
10070
|
+
if ("next" === n3.method)
|
|
10071
|
+
n3.sent = n3._sent = n3.arg;
|
|
10072
|
+
else if ("throw" === n3.method) {
|
|
10073
10073
|
if (o3 === v2)
|
|
10074
|
-
throw o3 =
|
|
10075
|
-
|
|
10074
|
+
throw o3 = E2, n3.arg;
|
|
10075
|
+
n3.dispatchException(n3.arg);
|
|
10076
10076
|
} else
|
|
10077
|
-
"return" ===
|
|
10078
|
-
o3 =
|
|
10079
|
-
var
|
|
10080
|
-
if ("normal" ===
|
|
10081
|
-
if (o3 =
|
|
10077
|
+
"return" === n3.method && n3.abrupt("return", n3.arg);
|
|
10078
|
+
o3 = y2;
|
|
10079
|
+
var u3 = d2(t3, e3, n3);
|
|
10080
|
+
if ("normal" === u3.type) {
|
|
10081
|
+
if (o3 = n3.done ? E2 : R2, u3.arg === g2)
|
|
10082
10082
|
continue;
|
|
10083
|
-
return { value:
|
|
10083
|
+
return { value: u3.arg, done: n3.done };
|
|
10084
10084
|
}
|
|
10085
|
-
"throw" ===
|
|
10085
|
+
"throw" === u3.type && (o3 = E2, n3.method = "throw", n3.arg = u3.arg);
|
|
10086
10086
|
}
|
|
10087
10087
|
};
|
|
10088
10088
|
}
|
|
10089
10089
|
function L2(t3, e3) {
|
|
10090
|
-
var
|
|
10091
|
-
if (o3 ===
|
|
10092
|
-
return e3.delegate = null, "throw" ===
|
|
10090
|
+
var n3 = e3.method, o3 = t3.iterator[n3];
|
|
10091
|
+
if (o3 === r2)
|
|
10092
|
+
return e3.delegate = null, "throw" === n3 && t3.iterator.return && (e3.method = "return", e3.arg = r2, L2(t3, e3), "throw" === e3.method) || "return" !== n3 && (e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a '" + n3 + "' method")), g2;
|
|
10093
10093
|
var i3 = d2(o3, t3.iterator, e3.arg);
|
|
10094
10094
|
if ("throw" === i3.type)
|
|
10095
|
-
return e3.method = "throw", e3.arg = i3.arg, e3.delegate = null,
|
|
10095
|
+
return e3.method = "throw", e3.arg = i3.arg, e3.delegate = null, g2;
|
|
10096
10096
|
var a3 = i3.arg;
|
|
10097
|
-
return a3 ? a3.done ? (e3[t3.resultName] = a3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg =
|
|
10097
|
+
return a3 ? a3.done ? (e3[t3.resultName] = a3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg = r2), e3.delegate = null, g2) : a3 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, g2);
|
|
10098
10098
|
}
|
|
10099
|
-
function
|
|
10099
|
+
function A2(t3) {
|
|
10100
10100
|
var e3 = { tryLoc: t3[0] };
|
|
10101
10101
|
1 in t3 && (e3.catchLoc = t3[1]), 2 in t3 && (e3.finallyLoc = t3[2], e3.afterLoc = t3[3]), this.tryEntries.push(e3);
|
|
10102
10102
|
}
|
|
10103
|
-
function
|
|
10103
|
+
function P2(t3) {
|
|
10104
10104
|
var e3 = t3.completion || {};
|
|
10105
10105
|
e3.type = "normal", delete e3.arg, t3.completion = e3;
|
|
10106
10106
|
}
|
|
10107
|
-
function
|
|
10108
|
-
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(
|
|
10107
|
+
function k2(t3) {
|
|
10108
|
+
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(A2, this), this.reset(true);
|
|
10109
10109
|
}
|
|
10110
|
-
function
|
|
10110
|
+
function D2(t3) {
|
|
10111
10111
|
if (t3 || "" === t3) {
|
|
10112
|
-
var
|
|
10113
|
-
if (
|
|
10114
|
-
return
|
|
10112
|
+
var n3 = t3[u2];
|
|
10113
|
+
if (n3)
|
|
10114
|
+
return n3.call(t3);
|
|
10115
10115
|
if ("function" == typeof t3.next)
|
|
10116
10116
|
return t3;
|
|
10117
10117
|
if (!isNaN(t3.length)) {
|
|
@@ -10119,48 +10119,48 @@ var n$1 = r$1(function(t2) {
|
|
|
10119
10119
|
for (; ++o3 < t3.length; )
|
|
10120
10120
|
if (a2.call(t3, o3))
|
|
10121
10121
|
return e3.value = t3[o3], e3.done = false, e3;
|
|
10122
|
-
return e3.value =
|
|
10122
|
+
return e3.value = r2, e3.done = true, e3;
|
|
10123
10123
|
};
|
|
10124
10124
|
return i3.next = i3;
|
|
10125
10125
|
}
|
|
10126
10126
|
}
|
|
10127
10127
|
throw new TypeError(e2(t3) + " is not iterable");
|
|
10128
10128
|
}
|
|
10129
|
-
return
|
|
10129
|
+
return O2.prototype = w2, c2(S2, "constructor", { value: w2, configurable: true }), c2(w2, "constructor", { value: O2, configurable: true }), O2.displayName = f2(w2, h2, "GeneratorFunction"), o2.isGeneratorFunction = function(t3) {
|
|
10130
10130
|
var e3 = "function" == typeof t3 && t3.constructor;
|
|
10131
|
-
return !!e3 && (e3 ===
|
|
10131
|
+
return !!e3 && (e3 === O2 || "GeneratorFunction" === (e3.displayName || e3.name));
|
|
10132
10132
|
}, o2.mark = function(t3) {
|
|
10133
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t3,
|
|
10133
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t3, w2) : (t3.__proto__ = w2, f2(t3, h2, "GeneratorFunction")), t3.prototype = Object.create(S2), t3;
|
|
10134
10134
|
}, o2.awrap = function(t3) {
|
|
10135
10135
|
return { __await: t3 };
|
|
10136
|
-
},
|
|
10136
|
+
}, N2(x2.prototype), f2(x2.prototype, l2, function() {
|
|
10137
10137
|
return this;
|
|
10138
|
-
}), o2.AsyncIterator =
|
|
10138
|
+
}), o2.AsyncIterator = x2, o2.async = function(t3, e3, n3, r3, i3) {
|
|
10139
10139
|
void 0 === i3 && (i3 = Promise);
|
|
10140
|
-
var a3 = new
|
|
10140
|
+
var a3 = new x2(p2(t3, e3, n3, r3), i3);
|
|
10141
10141
|
return o2.isGeneratorFunction(e3) ? a3 : a3.next().then(function(t4) {
|
|
10142
10142
|
return t4.done ? t4.value : a3.next();
|
|
10143
10143
|
});
|
|
10144
|
-
}, S2
|
|
10144
|
+
}, N2(S2), f2(S2, h2, "Generator"), f2(S2, u2, function() {
|
|
10145
10145
|
return this;
|
|
10146
|
-
}),
|
|
10146
|
+
}), f2(S2, "toString", function() {
|
|
10147
10147
|
return "[object Generator]";
|
|
10148
10148
|
}), o2.keys = function(t3) {
|
|
10149
|
-
var e3 = Object(t3),
|
|
10150
|
-
for (var
|
|
10151
|
-
|
|
10152
|
-
return
|
|
10153
|
-
for (;
|
|
10154
|
-
var
|
|
10155
|
-
if (
|
|
10156
|
-
return t4.value =
|
|
10149
|
+
var e3 = Object(t3), n3 = [];
|
|
10150
|
+
for (var r3 in e3)
|
|
10151
|
+
n3.push(r3);
|
|
10152
|
+
return n3.reverse(), function t4() {
|
|
10153
|
+
for (; n3.length; ) {
|
|
10154
|
+
var r4 = n3.pop();
|
|
10155
|
+
if (r4 in e3)
|
|
10156
|
+
return t4.value = r4, t4.done = false, t4;
|
|
10157
10157
|
}
|
|
10158
10158
|
return t4.done = true, t4;
|
|
10159
10159
|
};
|
|
10160
|
-
}, o2.values =
|
|
10161
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
10160
|
+
}, o2.values = D2, k2.prototype = { constructor: k2, reset: function(t3) {
|
|
10161
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = r2, this.done = false, this.delegate = null, this.method = "next", this.arg = r2, this.tryEntries.forEach(P2), !t3)
|
|
10162
10162
|
for (var e3 in this)
|
|
10163
|
-
"t" === e3.charAt(0) && a2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] =
|
|
10163
|
+
"t" === e3.charAt(0) && a2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = r2);
|
|
10164
10164
|
}, stop: function() {
|
|
10165
10165
|
this.done = true;
|
|
10166
10166
|
var t3 = this.tryEntries[0].completion;
|
|
@@ -10171,271 +10171,539 @@ var n$1 = r$1(function(t2) {
|
|
|
10171
10171
|
if (this.done)
|
|
10172
10172
|
throw t3;
|
|
10173
10173
|
var e3 = this;
|
|
10174
|
-
function
|
|
10175
|
-
return
|
|
10174
|
+
function n3(n4, o4) {
|
|
10175
|
+
return c3.type = "throw", c3.arg = t3, e3.next = n4, o4 && (e3.method = "next", e3.arg = r2), !!o4;
|
|
10176
10176
|
}
|
|
10177
10177
|
for (var o3 = this.tryEntries.length - 1; o3 >= 0; --o3) {
|
|
10178
|
-
var i3 = this.tryEntries[o3],
|
|
10178
|
+
var i3 = this.tryEntries[o3], c3 = i3.completion;
|
|
10179
10179
|
if ("root" === i3.tryLoc)
|
|
10180
|
-
return
|
|
10180
|
+
return n3("end");
|
|
10181
10181
|
if (i3.tryLoc <= this.prev) {
|
|
10182
|
-
var
|
|
10183
|
-
if (
|
|
10182
|
+
var s3 = a2.call(i3, "catchLoc"), u3 = a2.call(i3, "finallyLoc");
|
|
10183
|
+
if (s3 && u3) {
|
|
10184
10184
|
if (this.prev < i3.catchLoc)
|
|
10185
|
-
return
|
|
10185
|
+
return n3(i3.catchLoc, true);
|
|
10186
10186
|
if (this.prev < i3.finallyLoc)
|
|
10187
|
-
return
|
|
10188
|
-
} else if (
|
|
10187
|
+
return n3(i3.finallyLoc);
|
|
10188
|
+
} else if (s3) {
|
|
10189
10189
|
if (this.prev < i3.catchLoc)
|
|
10190
|
-
return
|
|
10190
|
+
return n3(i3.catchLoc, true);
|
|
10191
10191
|
} else {
|
|
10192
|
-
if (!
|
|
10192
|
+
if (!u3)
|
|
10193
10193
|
throw new Error("try statement without catch or finally");
|
|
10194
10194
|
if (this.prev < i3.finallyLoc)
|
|
10195
|
-
return
|
|
10195
|
+
return n3(i3.finallyLoc);
|
|
10196
10196
|
}
|
|
10197
10197
|
}
|
|
10198
10198
|
}
|
|
10199
10199
|
}, abrupt: function(t3, e3) {
|
|
10200
|
-
for (var
|
|
10201
|
-
var
|
|
10202
|
-
if (
|
|
10203
|
-
var o3 =
|
|
10200
|
+
for (var n3 = this.tryEntries.length - 1; n3 >= 0; --n3) {
|
|
10201
|
+
var r3 = this.tryEntries[n3];
|
|
10202
|
+
if (r3.tryLoc <= this.prev && a2.call(r3, "finallyLoc") && this.prev < r3.finallyLoc) {
|
|
10203
|
+
var o3 = r3;
|
|
10204
10204
|
break;
|
|
10205
10205
|
}
|
|
10206
10206
|
}
|
|
10207
10207
|
o3 && ("break" === t3 || "continue" === t3) && o3.tryLoc <= e3 && e3 <= o3.finallyLoc && (o3 = null);
|
|
10208
10208
|
var i3 = o3 ? o3.completion : {};
|
|
10209
|
-
return i3.type = t3, i3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc,
|
|
10209
|
+
return i3.type = t3, i3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc, g2) : this.complete(i3);
|
|
10210
10210
|
}, complete: function(t3, e3) {
|
|
10211
10211
|
if ("throw" === t3.type)
|
|
10212
10212
|
throw t3.arg;
|
|
10213
|
-
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3),
|
|
10213
|
+
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3), g2;
|
|
10214
10214
|
}, finish: function(t3) {
|
|
10215
10215
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
10216
|
-
var
|
|
10217
|
-
if (
|
|
10218
|
-
return this.complete(
|
|
10216
|
+
var n3 = this.tryEntries[e3];
|
|
10217
|
+
if (n3.finallyLoc === t3)
|
|
10218
|
+
return this.complete(n3.completion, n3.afterLoc), P2(n3), g2;
|
|
10219
10219
|
}
|
|
10220
10220
|
}, catch: function(t3) {
|
|
10221
10221
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
10222
|
-
var
|
|
10223
|
-
if (
|
|
10224
|
-
var
|
|
10225
|
-
if ("throw" ===
|
|
10226
|
-
var o3 =
|
|
10227
|
-
|
|
10222
|
+
var n3 = this.tryEntries[e3];
|
|
10223
|
+
if (n3.tryLoc === t3) {
|
|
10224
|
+
var r3 = n3.completion;
|
|
10225
|
+
if ("throw" === r3.type) {
|
|
10226
|
+
var o3 = r3.arg;
|
|
10227
|
+
P2(n3);
|
|
10228
10228
|
}
|
|
10229
10229
|
return o3;
|
|
10230
10230
|
}
|
|
10231
10231
|
}
|
|
10232
10232
|
throw new Error("illegal catch attempt");
|
|
10233
|
-
}, delegateYield: function(t3, e3,
|
|
10234
|
-
return this.delegate = { iterator:
|
|
10233
|
+
}, delegateYield: function(t3, e3, n3) {
|
|
10234
|
+
return this.delegate = { iterator: D2(t3), resultName: e3, nextLoc: n3 }, "next" === this.method && (this.arg = r2), g2;
|
|
10235
10235
|
} }, o2;
|
|
10236
10236
|
}
|
|
10237
|
-
t2.exports =
|
|
10237
|
+
t2.exports = n2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
10238
10238
|
}), i = o$1(), a = i;
|
|
10239
10239
|
try {
|
|
10240
10240
|
regeneratorRuntime = i;
|
|
10241
10241
|
} catch (t2) {
|
|
10242
10242
|
"object" == typeof globalThis ? globalThis.regeneratorRuntime = i : Function("r", "regeneratorRuntime = r")(i);
|
|
10243
10243
|
}
|
|
10244
|
-
function
|
|
10245
|
-
return
|
|
10244
|
+
function c(t2) {
|
|
10245
|
+
return c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
10246
10246
|
return typeof t3;
|
|
10247
10247
|
} : function(t3) {
|
|
10248
10248
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
10249
|
-
},
|
|
10249
|
+
}, c(t2);
|
|
10250
10250
|
}
|
|
10251
|
-
var
|
|
10252
|
-
return
|
|
10253
|
-
for (var e2,
|
|
10254
|
-
for (var o2 in e2 = arguments[
|
|
10251
|
+
var s = function() {
|
|
10252
|
+
return s = Object.assign || function(t2) {
|
|
10253
|
+
for (var e2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
|
|
10254
|
+
for (var o2 in e2 = arguments[n2])
|
|
10255
10255
|
Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]);
|
|
10256
10256
|
return t2;
|
|
10257
|
-
},
|
|
10257
|
+
}, s.apply(this, arguments);
|
|
10258
10258
|
};
|
|
10259
|
-
function
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10259
|
+
function u(t2, e2, n2, r2) {
|
|
10260
|
+
return new (n2 || (n2 = Promise))(function(o2, i2) {
|
|
10261
|
+
function a2(t3) {
|
|
10262
|
+
try {
|
|
10263
|
+
s2(r2.next(t3));
|
|
10264
|
+
} catch (t4) {
|
|
10265
|
+
i2(t4);
|
|
10266
|
+
}
|
|
10267
|
+
}
|
|
10268
|
+
function c2(t3) {
|
|
10269
|
+
try {
|
|
10270
|
+
s2(r2.throw(t3));
|
|
10271
|
+
} catch (t4) {
|
|
10272
|
+
i2(t4);
|
|
10273
|
+
}
|
|
10274
|
+
}
|
|
10275
|
+
function s2(t3) {
|
|
10276
|
+
var e3;
|
|
10277
|
+
t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof n2 ? e3 : new n2(function(t4) {
|
|
10278
|
+
t4(e3);
|
|
10279
|
+
})).then(a2, c2);
|
|
10280
|
+
}
|
|
10281
|
+
s2((r2 = r2.apply(t2, e2 || [])).next());
|
|
10282
|
+
});
|
|
10283
|
+
}
|
|
10284
|
+
"function" == typeof SuppressedError && SuppressedError;
|
|
10285
|
+
var l = { default: "endpoint" }, h = { default: "tlsEndpoint" };
|
|
10286
|
+
function f(t2) {
|
|
10287
|
+
for (var e2 = "", n2 = 0; n2 < t2.length; ++n2)
|
|
10288
|
+
if (n2 > 0) {
|
|
10289
|
+
var r2 = t2[n2].toLowerCase();
|
|
10290
|
+
r2 !== t2[n2] ? e2 += " ".concat(r2) : e2 += t2[n2];
|
|
10264
10291
|
} else
|
|
10265
|
-
e2 += t2[
|
|
10292
|
+
e2 += t2[n2].toUpperCase();
|
|
10266
10293
|
return e2;
|
|
10267
10294
|
}
|
|
10268
|
-
"
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
return n2[0];
|
|
10295
|
+
var p = "Client timeout", d = "Network connection error", v = "Network request aborted", R = "Response cannot be parsed", y = "Blocked by CSP", E = "The endpoint parameter is not a valid URL", g = f("WrongRegion"), m = f("SubscriptionNotActive"), O = f("UnsupportedVersion"), w = f("InstallationMethodRestricted"), _ = f("HostnameRestricted"), I = f("IntegrationFailed"), b = "API key required", S = "API key not found", N = "API key expired", x = "Request cannot be parsed", T = "Request failed", L = "Request failed to process", A = "Too many requests, rate limit exceeded", P = "Not available for this origin", k = "Not available with restricted header", D = b, C = S, j = N, F = "Failed to load the JS script of the agent", K = "9319";
|
|
10296
|
+
function M(t2, e2) {
|
|
10297
|
+
var n2, r2, o2, i2, a2 = [], c2 = (n2 = function(t3) {
|
|
10298
|
+
var e3 = function(t4, e4, n3) {
|
|
10299
|
+
if (n3 || 2 === arguments.length)
|
|
10300
|
+
for (var r3, o3 = 0, i3 = e4.length; o3 < i3; o3++)
|
|
10301
|
+
!r3 && o3 in e4 || (r3 || (r3 = Array.prototype.slice.call(e4, 0, o3)), r3[o3] = e4[o3]);
|
|
10302
|
+
return t4.concat(r3 || Array.prototype.slice.call(e4));
|
|
10303
|
+
}([], t3, true);
|
|
10304
|
+
return { current: function() {
|
|
10305
|
+
return e3[0];
|
|
10280
10306
|
}, postpone: function() {
|
|
10281
|
-
var t4 =
|
|
10282
|
-
void 0 !== t4 &&
|
|
10307
|
+
var t4 = e3.shift();
|
|
10308
|
+
void 0 !== t4 && e3.push(t4);
|
|
10283
10309
|
}, exclude: function() {
|
|
10284
|
-
|
|
10285
|
-
} }
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
var n2 = /* @__PURE__ */ new Date(), o2 = function(e3) {
|
|
10313
|
-
return r2.push({ url: t3, startedAt: n2, finishedAt: /* @__PURE__ */ new Date(), error: e3 });
|
|
10314
|
-
}, i2 = e2(t3);
|
|
10315
|
-
return i2.then(function() {
|
|
10316
|
-
return o2();
|
|
10317
|
-
}, o2), i2;
|
|
10318
|
-
}).then(function(t3) {
|
|
10319
|
-
return [t3, r2];
|
|
10320
|
-
});
|
|
10321
|
-
}
|
|
10322
|
-
var g = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", w = "Failed to load the JS script of the agent";
|
|
10323
|
-
function b(t2) {
|
|
10324
|
-
return function(t3, e2, r2, n2) {
|
|
10325
|
-
var o2, i2 = document, a2 = "securitypolicyviolation", u2 = function(e3) {
|
|
10326
|
-
var r3 = new URL(t3, location.href), n3 = e3.blockedURI;
|
|
10327
|
-
n3 !== r3.href && n3 !== r3.protocol.slice(0, -1) && n3 !== r3.origin || (o2 = e3, c2());
|
|
10328
|
-
};
|
|
10329
|
-
i2.addEventListener(a2, u2);
|
|
10330
|
-
var c2 = function() {
|
|
10331
|
-
return i2.removeEventListener(a2, u2);
|
|
10332
|
-
};
|
|
10333
|
-
return Promise.resolve().then(e2).then(function(t4) {
|
|
10334
|
-
return c2(), t4;
|
|
10335
|
-
}, function(t4) {
|
|
10336
|
-
return new Promise(function(t5) {
|
|
10337
|
-
return setTimeout(t5);
|
|
10338
|
-
}).then(function() {
|
|
10339
|
-
if (c2(), o2)
|
|
10340
|
-
return function() {
|
|
10341
|
-
throw new Error(l);
|
|
10342
|
-
}();
|
|
10310
|
+
e3.shift();
|
|
10311
|
+
} };
|
|
10312
|
+
}(t2), i2 = 0, r2 = function() {
|
|
10313
|
+
return Math.random() * Math.min(3e3, 100 * Math.pow(2, i2++));
|
|
10314
|
+
}, o2 = /* @__PURE__ */ new Set(), [n2.current(), function(t3, e3) {
|
|
10315
|
+
var i3, a3 = e3 instanceof Error ? e3.message : "";
|
|
10316
|
+
if (a3 === y || a3 === E)
|
|
10317
|
+
n2.exclude(), i3 = 0;
|
|
10318
|
+
else if (a3 === K)
|
|
10319
|
+
n2.exclude();
|
|
10320
|
+
else if (a3 === F) {
|
|
10321
|
+
var c3 = Date.now() - t3.getTime() < 50, s3 = n2.current();
|
|
10322
|
+
s3 && c3 && !o2.has(s3) && (o2.add(s3), i3 = 0), n2.postpone();
|
|
10323
|
+
} else
|
|
10324
|
+
n2.postpone();
|
|
10325
|
+
var u3 = n2.current();
|
|
10326
|
+
return void 0 === u3 ? void 0 : [u3, null != i3 ? i3 : t3.getTime() + r2() - Date.now()];
|
|
10327
|
+
}]), s2 = c2[0], u2 = c2[1];
|
|
10328
|
+
if (void 0 === s2)
|
|
10329
|
+
return Promise.reject(new TypeError("The list of script URL patterns is empty"));
|
|
10330
|
+
var l2 = function(t3) {
|
|
10331
|
+
var n3 = /* @__PURE__ */ new Date(), r3 = function(e3) {
|
|
10332
|
+
return a2.push({ url: t3, startedAt: n3, finishedAt: /* @__PURE__ */ new Date(), error: e3 });
|
|
10333
|
+
}, o3 = e2(t3);
|
|
10334
|
+
return o3.then(function() {
|
|
10335
|
+
return r3();
|
|
10336
|
+
}, r3), o3.catch(function(t4) {
|
|
10337
|
+
if (a2.length >= 5)
|
|
10343
10338
|
throw t4;
|
|
10339
|
+
var e3 = u2(n3, t4);
|
|
10340
|
+
if (!e3)
|
|
10341
|
+
throw t4;
|
|
10342
|
+
var r4, o4 = e3[0], i3 = e3[1];
|
|
10343
|
+
return (r4 = i3, new Promise(function(t5) {
|
|
10344
|
+
return setTimeout(t5, r4);
|
|
10345
|
+
})).then(function() {
|
|
10346
|
+
return l2(o4);
|
|
10344
10347
|
});
|
|
10345
10348
|
});
|
|
10346
|
-
}
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
var t4;
|
|
10351
|
-
return null === (t4 = n2.parentNode) || void 0 === t4 ? void 0 : t4.removeChild(n2);
|
|
10352
|
-
}, i2 = document.head || document.getElementsByTagName("head")[0];
|
|
10353
|
-
n2.onload = function() {
|
|
10354
|
-
o2(), e2();
|
|
10355
|
-
}, n2.onerror = function() {
|
|
10356
|
-
o2(), r2(new Error(w));
|
|
10357
|
-
}, n2.async = true, n2.src = t3, i2.appendChild(n2);
|
|
10358
|
-
});
|
|
10359
|
-
}(t2);
|
|
10360
|
-
}).then(O);
|
|
10361
|
-
}
|
|
10362
|
-
function O() {
|
|
10363
|
-
var t2 = window, e2 = "__fpjs_p_l_b", r2 = t2[e2];
|
|
10364
|
-
if (function(t3, e3) {
|
|
10365
|
-
var r3, n2 = null === (r3 = Object.getOwnPropertyDescriptor) || void 0 === r3 ? void 0 : r3.call(Object, t3, e3);
|
|
10366
|
-
(null == n2 ? void 0 : n2.configurable) ? delete t3[e3] : n2 && !n2.writable || (t3[e3] = void 0);
|
|
10367
|
-
}(t2, e2), "function" != typeof (null == r2 ? void 0 : r2.load))
|
|
10368
|
-
throw new Error(R);
|
|
10369
|
-
return r2;
|
|
10349
|
+
};
|
|
10350
|
+
return l2(s2).then(function(t3) {
|
|
10351
|
+
return [t3, a2];
|
|
10352
|
+
});
|
|
10370
10353
|
}
|
|
10371
|
-
var
|
|
10354
|
+
var U = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", V = U;
|
|
10355
|
+
function G(t2) {
|
|
10372
10356
|
var e2;
|
|
10373
10357
|
t2.scriptUrlPattern;
|
|
10374
|
-
var
|
|
10375
|
-
var
|
|
10376
|
-
for (var
|
|
10377
|
-
Object.prototype.hasOwnProperty.call(t3,
|
|
10358
|
+
var n2 = t2.token, r2 = t2.apiKey, o2 = void 0 === r2 ? n2 : r2, i2 = function(t3, e3) {
|
|
10359
|
+
var n3 = {};
|
|
10360
|
+
for (var r3 in t3)
|
|
10361
|
+
Object.prototype.hasOwnProperty.call(t3, r3) && e3.indexOf(r3) < 0 && (n3[r3] = t3[r3]);
|
|
10378
10362
|
if (null != t3 && "function" == typeof Object.getOwnPropertySymbols) {
|
|
10379
10363
|
var o3 = 0;
|
|
10380
|
-
for (
|
|
10381
|
-
e3.indexOf(
|
|
10364
|
+
for (r3 = Object.getOwnPropertySymbols(t3); o3 < r3.length; o3++)
|
|
10365
|
+
e3.indexOf(r3[o3]) < 0 && Object.prototype.propertyIsEnumerable.call(t3, r3[o3]) && (n3[r3[o3]] = t3[r3[o3]]);
|
|
10382
10366
|
}
|
|
10383
|
-
return
|
|
10367
|
+
return n3;
|
|
10384
10368
|
}(t2, ["scriptUrlPattern", "token", "apiKey"]), a2 = null !== (e2 = function(t3, e3) {
|
|
10385
10369
|
return function(t4, e4) {
|
|
10386
10370
|
return Object.prototype.hasOwnProperty.call(t4, e4);
|
|
10387
10371
|
}(t3, e3) ? t3[e3] : void 0;
|
|
10388
|
-
}(t2, "scriptUrlPattern")) && void 0 !== e2 ? e2 :
|
|
10372
|
+
}(t2, "scriptUrlPattern")) && void 0 !== e2 ? e2 : U, c2 = function() {
|
|
10389
10373
|
var t3 = [], e3 = function() {
|
|
10390
10374
|
t3.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
|
|
10391
|
-
},
|
|
10392
|
-
return t4.addEventListener(e4,
|
|
10393
|
-
return t4.removeEventListener(e4,
|
|
10375
|
+
}, n3 = function(t4, e4, n4, r3) {
|
|
10376
|
+
return t4.addEventListener(e4, n4, r3), function() {
|
|
10377
|
+
return t4.removeEventListener(e4, n4, r3);
|
|
10394
10378
|
};
|
|
10395
10379
|
}(document, "visibilitychange", e3);
|
|
10396
|
-
return e3(), [t3,
|
|
10397
|
-
}(),
|
|
10380
|
+
return e3(), [t3, n3];
|
|
10381
|
+
}(), u2 = c2[0], l2 = c2[1];
|
|
10398
10382
|
return Promise.resolve().then(function() {
|
|
10399
10383
|
if (!o2 || "string" != typeof o2)
|
|
10400
|
-
throw new Error(
|
|
10401
|
-
return
|
|
10384
|
+
throw new Error(b);
|
|
10385
|
+
return M(function(t3, e3) {
|
|
10402
10386
|
return (Array.isArray(t3) ? t3 : [t3]).map(function(t4) {
|
|
10403
10387
|
return function(t5, e4) {
|
|
10404
|
-
var
|
|
10388
|
+
var n3 = encodeURIComponent;
|
|
10405
10389
|
return t5.replace(/<[^<>]+>/g, function(t6) {
|
|
10406
|
-
return "<version>" === t6 ? "3" : "<apiKey>" === t6 ?
|
|
10390
|
+
return "<version>" === t6 ? "3" : "<apiKey>" === t6 ? n3(e4) : "<loaderVersion>" === t6 ? n3("3.9.0") : t6;
|
|
10407
10391
|
});
|
|
10408
10392
|
}(String(t4), e3);
|
|
10409
10393
|
});
|
|
10410
|
-
}(a2, o2),
|
|
10394
|
+
}(a2, o2), B);
|
|
10411
10395
|
}).catch(function(t3) {
|
|
10412
10396
|
throw l2(), function(t4) {
|
|
10413
|
-
return t4 instanceof Error && t4.message ===
|
|
10397
|
+
return t4 instanceof Error && t4.message === K ? new Error(F) : t4;
|
|
10414
10398
|
}(t3);
|
|
10415
10399
|
}).then(function(t3) {
|
|
10416
|
-
var e3 = t3[0],
|
|
10417
|
-
return l2(), e3.load(
|
|
10400
|
+
var e3 = t3[0], n3 = t3[1];
|
|
10401
|
+
return l2(), e3.load(s(s({}, i2), { ldi: { attempts: n3, visibilityStates: u2 } }));
|
|
10418
10402
|
});
|
|
10419
|
-
}, defaultScriptUrlPattern: g, ERROR_SCRIPT_LOAD_FAIL: w, ERROR_API_KEY_EXPIRED: m, ERROR_API_KEY_INVALID: y, ERROR_API_KEY_MISSING: v, ERROR_BAD_REQUEST_FORMAT: "Request cannot be parsed", ERROR_BAD_RESPONSE_FORMAT: "Response cannot be parsed", ERROR_CLIENT_TIMEOUT: "Client timeout", ERROR_CSP_BLOCK: l, ERROR_FORBIDDEN_ENDPOINT: s("HostnameRestricted"), ERROR_FORBIDDEN_HEADER: "Not available with restricted header", ERROR_FORBIDDEN_ORIGIN: "Not available for this origin", ERROR_GENERAL_SERVER_FAILURE: "Request failed", ERROR_INSTALLATION_METHOD_RESTRICTED: d, ERROR_INTEGRATION_FAILURE: s("IntegrationFailed"), ERROR_INVALID_ENDPOINT: "The endpoint parameter is not a valid URL", ERROR_NETWORK_ABORT: "Network request aborted", ERROR_NETWORK_CONNECTION: "Network connection error", ERROR_RATE_LIMIT: "Too many requests, rate limit exceeded", ERROR_SERVER_TIMEOUT: "Request failed to process", ERROR_SUBSCRIPTION_NOT_ACTIVE: p, ERROR_TOKEN_EXPIRED: m, ERROR_TOKEN_INVALID: y, ERROR_TOKEN_MISSING: v, ERROR_UNSUPPORTED_VERSION: h, ERROR_WRONG_REGION: f, defaultEndpoint: { default: "endpoint" }, defaultTlsEndpoint: { default: "tlsEndpoint" } };
|
|
10420
|
-
function I() {
|
|
10421
|
-
return x.apply(this, arguments);
|
|
10422
10403
|
}
|
|
10423
|
-
function
|
|
10424
|
-
return (
|
|
10425
|
-
var
|
|
10404
|
+
function B(t2) {
|
|
10405
|
+
return function(t3, e2, n2, r2) {
|
|
10406
|
+
var o2, i2 = document, a2 = "securitypolicyviolation", c2 = function(e3) {
|
|
10407
|
+
var n3 = new URL(t3, location.href), r3 = e3.blockedURI;
|
|
10408
|
+
r3 !== n3.href && r3 !== n3.protocol.slice(0, -1) && r3 !== n3.origin || (o2 = e3, s2());
|
|
10409
|
+
};
|
|
10410
|
+
i2.addEventListener(a2, c2);
|
|
10411
|
+
var s2 = function() {
|
|
10412
|
+
return i2.removeEventListener(a2, c2);
|
|
10413
|
+
};
|
|
10414
|
+
return Promise.resolve().then(e2).then(function(t4) {
|
|
10415
|
+
return s2(), t4;
|
|
10416
|
+
}, function(t4) {
|
|
10417
|
+
return new Promise(function(t5) {
|
|
10418
|
+
return setTimeout(t5);
|
|
10419
|
+
}).then(function() {
|
|
10420
|
+
if (s2(), o2)
|
|
10421
|
+
return function() {
|
|
10422
|
+
throw new Error(y);
|
|
10423
|
+
}();
|
|
10424
|
+
throw t4;
|
|
10425
|
+
});
|
|
10426
|
+
});
|
|
10427
|
+
}(t2, function() {
|
|
10428
|
+
return function(t3) {
|
|
10429
|
+
return new Promise(function(e2, n2) {
|
|
10430
|
+
if (function(t4) {
|
|
10431
|
+
if (URL.prototype)
|
|
10432
|
+
try {
|
|
10433
|
+
return new URL(t4, location.href), false;
|
|
10434
|
+
} catch (t5) {
|
|
10435
|
+
if (t5 instanceof Error && "TypeError" === t5.name)
|
|
10436
|
+
return true;
|
|
10437
|
+
throw t5;
|
|
10438
|
+
}
|
|
10439
|
+
}(t3))
|
|
10440
|
+
throw new Error(E);
|
|
10441
|
+
var r2 = document.createElement("script"), o2 = function() {
|
|
10442
|
+
var t4;
|
|
10443
|
+
return null === (t4 = r2.parentNode) || void 0 === t4 ? void 0 : t4.removeChild(r2);
|
|
10444
|
+
}, i2 = document.head || document.getElementsByTagName("head")[0];
|
|
10445
|
+
r2.onload = function() {
|
|
10446
|
+
o2(), e2();
|
|
10447
|
+
}, r2.onerror = function() {
|
|
10448
|
+
o2(), n2(new Error(F));
|
|
10449
|
+
}, r2.async = true, r2.src = t3, i2.appendChild(r2);
|
|
10450
|
+
});
|
|
10451
|
+
}(t2);
|
|
10452
|
+
}).then(q);
|
|
10453
|
+
}
|
|
10454
|
+
function q() {
|
|
10455
|
+
var t2 = window, e2 = "__fpjs_p_l_b", n2 = t2[e2];
|
|
10456
|
+
if (function(t3, e3) {
|
|
10457
|
+
var n3, r2 = null === (n3 = Object.getOwnPropertyDescriptor) || void 0 === n3 ? void 0 : n3.call(Object, t3, e3);
|
|
10458
|
+
(null == r2 ? void 0 : r2.configurable) ? delete t3[e3] : r2 && !r2.writable || (t3[e3] = void 0);
|
|
10459
|
+
}(t2, e2), "function" != typeof (null == n2 ? void 0 : n2.load))
|
|
10460
|
+
throw new Error(K);
|
|
10461
|
+
return n2;
|
|
10462
|
+
}
|
|
10463
|
+
var W = { load: G, defaultScriptUrlPattern: V, ERROR_SCRIPT_LOAD_FAIL: F, ERROR_API_KEY_EXPIRED: N, ERROR_API_KEY_INVALID: S, ERROR_API_KEY_MISSING: b, ERROR_BAD_REQUEST_FORMAT: x, ERROR_BAD_RESPONSE_FORMAT: R, ERROR_CLIENT_TIMEOUT: p, ERROR_CSP_BLOCK: y, ERROR_FORBIDDEN_ENDPOINT: _, ERROR_FORBIDDEN_HEADER: k, ERROR_FORBIDDEN_ORIGIN: P, ERROR_GENERAL_SERVER_FAILURE: T, ERROR_INSTALLATION_METHOD_RESTRICTED: w, ERROR_INTEGRATION_FAILURE: I, ERROR_INVALID_ENDPOINT: E, ERROR_NETWORK_ABORT: v, ERROR_NETWORK_CONNECTION: d, ERROR_RATE_LIMIT: A, ERROR_SERVER_TIMEOUT: L, ERROR_SUBSCRIPTION_NOT_ACTIVE: m, ERROR_TOKEN_EXPIRED: j, ERROR_TOKEN_INVALID: C, ERROR_TOKEN_MISSING: D, ERROR_UNSUPPORTED_VERSION: O, ERROR_WRONG_REGION: g, defaultEndpoint: l, defaultTlsEndpoint: h }, J = Object.freeze({ __proto__: null, ERROR_API_KEY_EXPIRED: N, ERROR_API_KEY_INVALID: S, ERROR_API_KEY_MISSING: b, ERROR_BAD_REQUEST_FORMAT: x, ERROR_BAD_RESPONSE_FORMAT: R, ERROR_CLIENT_TIMEOUT: p, ERROR_CSP_BLOCK: y, ERROR_FORBIDDEN_ENDPOINT: _, ERROR_FORBIDDEN_HEADER: k, ERROR_FORBIDDEN_ORIGIN: P, ERROR_GENERAL_SERVER_FAILURE: T, ERROR_INSTALLATION_METHOD_RESTRICTED: w, ERROR_INTEGRATION_FAILURE: I, ERROR_INVALID_ENDPOINT: E, ERROR_NETWORK_ABORT: v, ERROR_NETWORK_CONNECTION: d, ERROR_RATE_LIMIT: A, ERROR_SCRIPT_LOAD_FAIL: F, ERROR_SERVER_TIMEOUT: L, ERROR_SUBSCRIPTION_NOT_ACTIVE: m, ERROR_TOKEN_EXPIRED: j, ERROR_TOKEN_INVALID: C, ERROR_TOKEN_MISSING: D, ERROR_UNSUPPORTED_VERSION: O, ERROR_WRONG_REGION: g, default: W, defaultEndpoint: l, defaultScriptUrlPattern: V, defaultTlsEndpoint: h, load: G });
|
|
10464
|
+
const H = "@fpjs@client@", Y = () => Date.now();
|
|
10465
|
+
class $ {
|
|
10466
|
+
constructor(t2) {
|
|
10467
|
+
var e2;
|
|
10468
|
+
this.tag = t2.tag || null, this.linkedId = t2.linkedId || null, this.extendedResult = null !== (e2 = t2.extendedResult) && void 0 !== e2 && e2;
|
|
10469
|
+
}
|
|
10470
|
+
toKey() {
|
|
10471
|
+
return `${JSON.stringify(this.tag)}__${JSON.stringify(this.linkedId)}__${this.extendedResult}`;
|
|
10472
|
+
}
|
|
10473
|
+
}
|
|
10474
|
+
function X(t2, e2) {
|
|
10475
|
+
return `${e2}__${t2}`;
|
|
10476
|
+
}
|
|
10477
|
+
function z(t2, e2) {
|
|
10478
|
+
return t2.replace(`${e2}__`, "");
|
|
10479
|
+
}
|
|
10480
|
+
class Q {
|
|
10481
|
+
constructor(t2 = H) {
|
|
10482
|
+
this.prefix = t2;
|
|
10483
|
+
}
|
|
10484
|
+
set(t2, e2) {
|
|
10485
|
+
window.localStorage.setItem(X(t2, this.prefix), JSON.stringify(e2));
|
|
10486
|
+
}
|
|
10487
|
+
get(t2) {
|
|
10488
|
+
const e2 = window.localStorage.getItem(X(t2, this.prefix));
|
|
10489
|
+
if (e2)
|
|
10490
|
+
try {
|
|
10491
|
+
return JSON.parse(e2);
|
|
10492
|
+
} catch (t3) {
|
|
10493
|
+
return;
|
|
10494
|
+
}
|
|
10495
|
+
}
|
|
10496
|
+
remove(t2) {
|
|
10497
|
+
window.localStorage.removeItem(X(t2, this.prefix));
|
|
10498
|
+
}
|
|
10499
|
+
allKeys() {
|
|
10500
|
+
return Object.keys(window.localStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) => z(t2, this.prefix));
|
|
10501
|
+
}
|
|
10502
|
+
}
|
|
10503
|
+
class Z {
|
|
10504
|
+
constructor(t2 = H) {
|
|
10505
|
+
this.prefix = t2;
|
|
10506
|
+
}
|
|
10507
|
+
set(t2, e2) {
|
|
10508
|
+
window.sessionStorage.setItem(X(t2, this.prefix), JSON.stringify(e2));
|
|
10509
|
+
}
|
|
10510
|
+
get(t2) {
|
|
10511
|
+
const e2 = window.sessionStorage.getItem(X(t2, this.prefix));
|
|
10512
|
+
if (e2)
|
|
10513
|
+
try {
|
|
10514
|
+
return JSON.parse(e2);
|
|
10515
|
+
} catch (t3) {
|
|
10516
|
+
return;
|
|
10517
|
+
}
|
|
10518
|
+
}
|
|
10519
|
+
remove(t2) {
|
|
10520
|
+
window.sessionStorage.removeItem(X(t2, this.prefix));
|
|
10521
|
+
}
|
|
10522
|
+
allKeys() {
|
|
10523
|
+
return Object.keys(window.sessionStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) => z(t2, this.prefix));
|
|
10524
|
+
}
|
|
10525
|
+
}
|
|
10526
|
+
class tt {
|
|
10527
|
+
constructor(t2, e2 = 3600, n2) {
|
|
10528
|
+
this.cache = t2, this.cacheTime = e2, this.nowProvider = n2 || Y;
|
|
10529
|
+
}
|
|
10530
|
+
get(t2) {
|
|
10531
|
+
return u(this, void 0, void 0, function* () {
|
|
10532
|
+
const e2 = yield this.cache.get(t2.toKey());
|
|
10533
|
+
if (!e2)
|
|
10534
|
+
return;
|
|
10535
|
+
const n2 = yield this.nowProvider(), r2 = Math.floor(n2 / 1e3);
|
|
10536
|
+
if (!(e2.expiresAt < r2))
|
|
10537
|
+
return e2.body;
|
|
10538
|
+
yield this.cache.remove(t2.toKey());
|
|
10539
|
+
});
|
|
10540
|
+
}
|
|
10541
|
+
set(t2, e2) {
|
|
10542
|
+
return u(this, void 0, void 0, function* () {
|
|
10543
|
+
const n2 = yield this.wrapCacheEntry(e2);
|
|
10544
|
+
yield this.cache.set(t2.toKey(), n2);
|
|
10545
|
+
});
|
|
10546
|
+
}
|
|
10547
|
+
clearCache() {
|
|
10548
|
+
return u(this, void 0, void 0, function* () {
|
|
10549
|
+
const t2 = yield this.cache.allKeys();
|
|
10550
|
+
yield Promise.all(t2.map((t3) => this.cache.remove(t3)));
|
|
10551
|
+
});
|
|
10552
|
+
}
|
|
10553
|
+
wrapCacheEntry(t2) {
|
|
10554
|
+
return u(this, void 0, void 0, function* () {
|
|
10555
|
+
const e2 = yield this.nowProvider(), n2 = Math.floor(e2 / 1e3) + this.cacheTime;
|
|
10556
|
+
return { body: t2, expiresAt: n2 };
|
|
10557
|
+
});
|
|
10558
|
+
}
|
|
10559
|
+
}
|
|
10560
|
+
class et {
|
|
10561
|
+
constructor() {
|
|
10562
|
+
this.enclosedCache = function() {
|
|
10563
|
+
const t2 = {};
|
|
10564
|
+
return { set(e2, n2) {
|
|
10565
|
+
t2[e2] = n2;
|
|
10566
|
+
}, get(e2) {
|
|
10567
|
+
const n2 = t2[e2];
|
|
10568
|
+
if (n2)
|
|
10569
|
+
return n2;
|
|
10570
|
+
}, remove(e2) {
|
|
10571
|
+
delete t2[e2];
|
|
10572
|
+
}, allKeys: () => Object.keys(t2) };
|
|
10573
|
+
}();
|
|
10574
|
+
}
|
|
10575
|
+
}
|
|
10576
|
+
class nt {
|
|
10577
|
+
set() {
|
|
10578
|
+
}
|
|
10579
|
+
get() {
|
|
10580
|
+
}
|
|
10581
|
+
remove() {
|
|
10582
|
+
}
|
|
10583
|
+
allKeys() {
|
|
10584
|
+
return [];
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10587
|
+
var rt;
|
|
10588
|
+
!function(t2) {
|
|
10589
|
+
t2.Memory = "memory", t2.LocalStorage = "localstorage", t2.SessionStorage = "sessionstorage", t2.NoCache = "nocache";
|
|
10590
|
+
}(rt || (rt = {}));
|
|
10591
|
+
const ot = { [rt.Memory]: () => new et().enclosedCache, [rt.LocalStorage]: (t2) => new Q(t2), [rt.SessionStorage]: (t2) => new Z(t2), [rt.NoCache]: () => new nt() }, it = (t2) => ot[t2];
|
|
10592
|
+
class at {
|
|
10593
|
+
constructor(t2) {
|
|
10594
|
+
var e2;
|
|
10595
|
+
let n2;
|
|
10596
|
+
if (this.inFlightRequests = /* @__PURE__ */ new Map(), this.agentPromise = null, this.customAgent = null == t2 ? void 0 : t2.customAgent, this.agent = { get: () => {
|
|
10597
|
+
throw new Error("FPJSAgent hasn't loaded yet. Make sure to call the init() method first.");
|
|
10598
|
+
} }, this.loadOptions = null == t2 ? void 0 : t2.loadOptions, (null == t2 ? void 0 : t2.cache) && (null == t2 ? void 0 : t2.cacheLocation) && console.warn("Both `cache` and `cacheLocation` options have been specified in the FpjsClient configuration; ignoring `cacheLocation` and using `cache`."), null == t2 ? void 0 : t2.cache)
|
|
10599
|
+
n2 = t2.cache;
|
|
10600
|
+
else {
|
|
10601
|
+
if (this.cacheLocation = (null == t2 ? void 0 : t2.cacheLocation) || rt.SessionStorage, !it(this.cacheLocation))
|
|
10602
|
+
throw new Error(`Invalid cache location "${this.cacheLocation}"`);
|
|
10603
|
+
((t3) => {
|
|
10604
|
+
switch (t3) {
|
|
10605
|
+
case rt.SessionStorage:
|
|
10606
|
+
try {
|
|
10607
|
+
window.sessionStorage.getItem("item");
|
|
10608
|
+
} catch (t4) {
|
|
10609
|
+
return false;
|
|
10610
|
+
}
|
|
10611
|
+
return true;
|
|
10612
|
+
case rt.LocalStorage:
|
|
10613
|
+
try {
|
|
10614
|
+
window.localStorage.getItem("item");
|
|
10615
|
+
} catch (t4) {
|
|
10616
|
+
return false;
|
|
10617
|
+
}
|
|
10618
|
+
return true;
|
|
10619
|
+
default:
|
|
10620
|
+
return true;
|
|
10621
|
+
}
|
|
10622
|
+
})(this.cacheLocation) || (this.cacheLocation = rt.Memory), n2 = it(this.cacheLocation)(null == t2 ? void 0 : t2.cachePrefix);
|
|
10623
|
+
}
|
|
10624
|
+
if ((null == t2 ? void 0 : t2.cacheTimeInSeconds) && t2.cacheTimeInSeconds > 86400)
|
|
10625
|
+
throw new Error("Cache time cannot exceed 86400 seconds (24 hours)");
|
|
10626
|
+
const r2 = null !== (e2 = null == t2 ? void 0 : t2.cacheTimeInSeconds) && void 0 !== e2 ? e2 : 3600;
|
|
10627
|
+
this.cacheManager = new tt(n2, r2);
|
|
10628
|
+
}
|
|
10629
|
+
init(t2) {
|
|
10630
|
+
var e2, n2;
|
|
10631
|
+
return u(this, void 0, void 0, function* () {
|
|
10632
|
+
if (!this.loadOptions && !t2)
|
|
10633
|
+
throw new TypeError("No load options provided");
|
|
10634
|
+
const r2 = Object.assign(Object.assign(Object.assign({}, this.loadOptions), t2), { integrationInfo: [...(null === (e2 = this.loadOptions) || void 0 === e2 ? void 0 : e2.integrationInfo) || [], ...(null == t2 ? void 0 : t2.integrationInfo) || [], "fingerprintjs-pro-spa/1.3.0"] });
|
|
10635
|
+
if (!this.agentPromise) {
|
|
10636
|
+
const t3 = null !== (n2 = this.customAgent) && void 0 !== n2 ? n2 : J;
|
|
10637
|
+
this.agentPromise = t3.load(r2).then((t4) => (this.agent = t4, t4)).catch((t4) => {
|
|
10638
|
+
throw this.agentPromise = null, t4;
|
|
10639
|
+
});
|
|
10640
|
+
}
|
|
10641
|
+
return this.agentPromise;
|
|
10642
|
+
});
|
|
10643
|
+
}
|
|
10644
|
+
getVisitorData(t2 = {}, e2 = false) {
|
|
10645
|
+
return u(this, void 0, void 0, function* () {
|
|
10646
|
+
const n2 = at.makeCacheKey(t2).toKey();
|
|
10647
|
+
if (!this.inFlightRequests.has(n2)) {
|
|
10648
|
+
const r2 = this._identify(t2, e2).finally(() => {
|
|
10649
|
+
this.inFlightRequests.delete(n2);
|
|
10650
|
+
});
|
|
10651
|
+
this.inFlightRequests.set(n2, r2);
|
|
10652
|
+
}
|
|
10653
|
+
return yield this.inFlightRequests.get(n2);
|
|
10654
|
+
});
|
|
10655
|
+
}
|
|
10656
|
+
getVisitorDataFromCache(t2 = {}) {
|
|
10657
|
+
return u(this, void 0, void 0, function* () {
|
|
10658
|
+
const e2 = at.makeCacheKey(t2), n2 = yield this.cacheManager.get(e2);
|
|
10659
|
+
return n2 ? Object.assign(Object.assign({}, n2), { cacheHit: true }) : void 0;
|
|
10660
|
+
});
|
|
10661
|
+
}
|
|
10662
|
+
isInCache(t2 = {}) {
|
|
10663
|
+
return u(this, void 0, void 0, function* () {
|
|
10664
|
+
return Boolean(yield this.getVisitorDataFromCache(t2));
|
|
10665
|
+
});
|
|
10666
|
+
}
|
|
10667
|
+
clearCache() {
|
|
10668
|
+
return u(this, void 0, void 0, function* () {
|
|
10669
|
+
yield this.cacheManager.clearCache();
|
|
10670
|
+
});
|
|
10671
|
+
}
|
|
10672
|
+
static makeCacheKey(t2) {
|
|
10673
|
+
return new $(t2);
|
|
10674
|
+
}
|
|
10675
|
+
_identify(t2, e2 = false) {
|
|
10676
|
+
return u(this, void 0, void 0, function* () {
|
|
10677
|
+
const n2 = at.makeCacheKey(t2);
|
|
10678
|
+
if (!e2) {
|
|
10679
|
+
const t3 = yield this.cacheManager.get(n2);
|
|
10680
|
+
if (t3)
|
|
10681
|
+
return Object.assign(Object.assign({}, t3), { cacheHit: true });
|
|
10682
|
+
}
|
|
10683
|
+
const r2 = yield this.agent.get(t2);
|
|
10684
|
+
return yield this.cacheManager.set(n2, r2), Object.assign(Object.assign({}, r2), { cacheHit: false });
|
|
10685
|
+
});
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
function ct() {
|
|
10689
|
+
return st.apply(this, arguments);
|
|
10690
|
+
}
|
|
10691
|
+
function st() {
|
|
10692
|
+
return (st = e$1(a.mark(function t2() {
|
|
10693
|
+
var e2, n2, r2, o2;
|
|
10426
10694
|
return a.wrap(function(t3) {
|
|
10427
10695
|
for (; ; )
|
|
10428
10696
|
switch (t3.prev = t3.next) {
|
|
10429
10697
|
case 0:
|
|
10430
|
-
if (t3.prev = 0, e2 = "object" === ("undefined" == typeof Cypress ? "undefined" :
|
|
10698
|
+
if (t3.prev = 0, e2 = "object" === ("undefined" == typeof Cypress ? "undefined" : c(Cypress)), n2 = "object" === ("undefined" == typeof process ? "undefined" : c(process)) && "test" === { "NODE_ENV": "production" }.NODE_ENV, !e2 && !n2) {
|
|
10431
10699
|
t3.next = 5;
|
|
10432
10700
|
break;
|
|
10433
10701
|
}
|
|
10434
10702
|
return t3.abrupt("return", "a-mock-visitor-id");
|
|
10435
10703
|
case 5:
|
|
10436
|
-
return
|
|
10437
|
-
case
|
|
10438
|
-
return
|
|
10704
|
+
return r2 = new at({ loadOptions: { apiKey: "hpFVJecm7Ni7AjSfvBIW" } }), t3.next = 8, r2.init();
|
|
10705
|
+
case 8:
|
|
10706
|
+
return t3.next = 10, r2.getVisitorData();
|
|
10439
10707
|
case 10:
|
|
10440
10708
|
return o2 = t3.sent, t3.abrupt("return", o2.visitorId);
|
|
10441
10709
|
case 14:
|
|
@@ -10447,39 +10715,39 @@ function x() {
|
|
|
10447
10715
|
}, t2, null, [[0, 14]]);
|
|
10448
10716
|
}))).apply(this, arguments);
|
|
10449
10717
|
}
|
|
10450
|
-
function
|
|
10451
|
-
return
|
|
10718
|
+
function ut() {
|
|
10719
|
+
return lt.apply(this, arguments);
|
|
10452
10720
|
}
|
|
10453
|
-
function
|
|
10454
|
-
return (
|
|
10721
|
+
function lt() {
|
|
10722
|
+
return (lt = e$1(a.mark(function t2() {
|
|
10455
10723
|
return a.wrap(function(t3) {
|
|
10456
10724
|
for (; ; )
|
|
10457
10725
|
switch (t3.prev = t3.next) {
|
|
10458
10726
|
case 0:
|
|
10459
10727
|
return t3.abrupt("return", new Promise(function(t4) {
|
|
10460
10728
|
window.requestIdleCallback ? requestIdleCallback(e$1(a.mark(function e2() {
|
|
10461
|
-
var
|
|
10729
|
+
var n2;
|
|
10462
10730
|
return a.wrap(function(e3) {
|
|
10463
10731
|
for (; ; )
|
|
10464
10732
|
switch (e3.prev = e3.next) {
|
|
10465
10733
|
case 0:
|
|
10466
|
-
return e3.next = 2,
|
|
10734
|
+
return e3.next = 2, ct();
|
|
10467
10735
|
case 2:
|
|
10468
|
-
|
|
10736
|
+
n2 = e3.sent, t4(n2);
|
|
10469
10737
|
case 4:
|
|
10470
10738
|
case "end":
|
|
10471
10739
|
return e3.stop();
|
|
10472
10740
|
}
|
|
10473
10741
|
}, e2);
|
|
10474
10742
|
}))) : setTimeout(e$1(a.mark(function e2() {
|
|
10475
|
-
var
|
|
10743
|
+
var n2;
|
|
10476
10744
|
return a.wrap(function(e3) {
|
|
10477
10745
|
for (; ; )
|
|
10478
10746
|
switch (e3.prev = e3.next) {
|
|
10479
10747
|
case 0:
|
|
10480
|
-
return e3.next = 2,
|
|
10748
|
+
return e3.next = 2, ct();
|
|
10481
10749
|
case 2:
|
|
10482
|
-
|
|
10750
|
+
n2 = e3.sent, t4(n2);
|
|
10483
10751
|
case 4:
|
|
10484
10752
|
case "end":
|
|
10485
10753
|
return e3.stop();
|
|
@@ -10494,31 +10762,31 @@ function k() {
|
|
|
10494
10762
|
}, t2);
|
|
10495
10763
|
}))).apply(this, arguments);
|
|
10496
10764
|
}
|
|
10497
|
-
var
|
|
10498
|
-
var e2 = t2.env,
|
|
10765
|
+
var ht = function(t2) {
|
|
10766
|
+
var e2 = t2.env, n2 = t2.kountAccountId, r2 = t2.kountSessionId, o2 = function(t3) {
|
|
10499
10767
|
return "production" === t3;
|
|
10500
10768
|
}(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com", i2 = new URL("".concat(o2, "/collect/sdk"));
|
|
10501
|
-
i2.searchParams.append("m",
|
|
10769
|
+
i2.searchParams.append("m", n2), r2 && i2.searchParams.append("m", r2);
|
|
10502
10770
|
var a2 = document.createElement("script");
|
|
10503
10771
|
return a2.setAttribute("class", "kaxsdc"), a2.setAttribute("data-event", "load"), a2.setAttribute("type", "text/javascript"), a2.setAttribute("src", i2.href), document.body.append(a2), a2;
|
|
10504
10772
|
};
|
|
10505
|
-
function
|
|
10506
|
-
return
|
|
10773
|
+
function ft(t2) {
|
|
10774
|
+
return pt.apply(this, arguments);
|
|
10507
10775
|
}
|
|
10508
|
-
function
|
|
10509
|
-
return (
|
|
10510
|
-
var
|
|
10776
|
+
function pt() {
|
|
10777
|
+
return (pt = e$1(a.mark(function t2(e2) {
|
|
10778
|
+
var n2, r2, o2;
|
|
10511
10779
|
return a.wrap(function(t3) {
|
|
10512
10780
|
for (; ; )
|
|
10513
10781
|
switch (t3.prev = t3.next) {
|
|
10514
10782
|
case 0:
|
|
10515
|
-
return
|
|
10516
|
-
var i2 =
|
|
10783
|
+
return n2 = e2.env, r2 = e2.kountAccountId, o2 = e2.kountSessionId, t3.abrupt("return", new Promise(function(t4, e3) {
|
|
10784
|
+
var i2 = ht({ env: n2, kountAccountId: r2, kountSessionId: o2 });
|
|
10517
10785
|
i2.onload = function() {
|
|
10518
10786
|
var e4 = new ka.ClientSDK();
|
|
10519
10787
|
e4.setupCallback({ "collect-begin": function(e5) {
|
|
10520
|
-
var
|
|
10521
|
-
t4(
|
|
10788
|
+
var n3 = e5.MercSessId;
|
|
10789
|
+
t4(n3);
|
|
10522
10790
|
} }), e4.autoLoadEvents();
|
|
10523
10791
|
}, i2.onerror = function() {
|
|
10524
10792
|
e3(new Error("Error attempting to mount Kount script"));
|
|
@@ -10531,56 +10799,56 @@ function T() {
|
|
|
10531
10799
|
}, t2);
|
|
10532
10800
|
}))).apply(this, arguments);
|
|
10533
10801
|
}
|
|
10534
|
-
function
|
|
10535
|
-
return
|
|
10802
|
+
function dt(t2) {
|
|
10803
|
+
return vt.apply(this, arguments);
|
|
10536
10804
|
}
|
|
10537
|
-
function
|
|
10538
|
-
return
|
|
10539
|
-
var
|
|
10805
|
+
function vt() {
|
|
10806
|
+
return vt = e$1(a.mark(function t2(e2) {
|
|
10807
|
+
var n2, r2, o2, i2, c2, s2, u2, l2, h2, f2, p2, d2, v2, R2, y2, E2, g2, m2, O2, w2;
|
|
10540
10808
|
return a.wrap(function(t3) {
|
|
10541
10809
|
for (; ; )
|
|
10542
10810
|
switch (t3.prev = t3.next) {
|
|
10543
10811
|
case 0:
|
|
10544
|
-
return
|
|
10812
|
+
return n2 = e2.env, r2 = void 0 === n2 ? null : n2, o2 = e2.screen, i2 = e2.navigator, c2 = e2.kountAccountId, s2 = void 0 === c2 ? null : c2, u2 = e2.kountSessionId, l2 = void 0 === u2 ? null : u2, h2 = e2.getFingerprint, f2 = e2.getFraudSessionId, d2 = (p2 = o2 || {}).colorDepth, v2 = p2.height, R2 = p2.width, E2 = (y2 = i2 || {}).javaEnabled, g2 = y2.language, t3.prev = 3, t3.next = 6, h2();
|
|
10545
10813
|
case 6:
|
|
10546
|
-
if (
|
|
10814
|
+
if (m2 = t3.sent, !s2) {
|
|
10547
10815
|
t3.next = 11;
|
|
10548
10816
|
break;
|
|
10549
10817
|
}
|
|
10550
|
-
return t3.next = 10,
|
|
10818
|
+
return t3.next = 10, f2({ env: r2, kountAccountId: s2, kountSessionId: l2 });
|
|
10551
10819
|
case 10:
|
|
10552
|
-
|
|
10820
|
+
O2 = t3.sent;
|
|
10553
10821
|
case 11:
|
|
10554
10822
|
t3.next = 16;
|
|
10555
10823
|
break;
|
|
10556
10824
|
case 13:
|
|
10557
10825
|
t3.prev = 13, t3.t0 = t3.catch(3), console.error(t3.t0);
|
|
10558
10826
|
case 16:
|
|
10559
|
-
return
|
|
10827
|
+
return w2 = { riskMetadata: { fingerprint: m2 || null, extraData: { kountFraudSessionId: O2 || null }, browserData: { colorDepth: d2 || null, isJavaEnabled: E2 ? E2.call(i2) : null, language: g2 || null, screenHeight: v2 || null, screenWidth: R2 || null, timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset() } } }, t3.abrupt("return", w2);
|
|
10560
10828
|
case 18:
|
|
10561
10829
|
case "end":
|
|
10562
10830
|
return t3.stop();
|
|
10563
10831
|
}
|
|
10564
10832
|
}, t2, null, [[3, 13]]);
|
|
10565
|
-
})),
|
|
10833
|
+
})), vt.apply(this, arguments);
|
|
10566
10834
|
}
|
|
10567
|
-
function
|
|
10568
|
-
return
|
|
10835
|
+
function Rt() {
|
|
10836
|
+
return yt.apply(this, arguments);
|
|
10569
10837
|
}
|
|
10570
|
-
function
|
|
10571
|
-
return
|
|
10572
|
-
var e2,
|
|
10838
|
+
function yt() {
|
|
10839
|
+
return yt = e$1(a.mark(function t2() {
|
|
10840
|
+
var e2, n2, r2, o2, i2, c2, s2, u2 = arguments;
|
|
10573
10841
|
return a.wrap(function(t3) {
|
|
10574
10842
|
for (; ; )
|
|
10575
10843
|
switch (t3.prev = t3.next) {
|
|
10576
10844
|
case 0:
|
|
10577
|
-
return
|
|
10845
|
+
return n2 = (e2 = u2.length > 0 && void 0 !== u2[0] ? u2[0] : {}).env, r2 = void 0 === n2 ? null : n2, o2 = e2.kountAccountId, i2 = void 0 === o2 ? null : o2, c2 = e2.kountSessionId, s2 = void 0 === c2 ? null : c2, t3.abrupt("return", dt({ env: r2, screen, navigator, kountAccountId: i2, kountSessionId: s2, getFingerprint: ut, getFraudSessionId: ft }));
|
|
10578
10846
|
case 2:
|
|
10579
10847
|
case "end":
|
|
10580
10848
|
return t3.stop();
|
|
10581
10849
|
}
|
|
10582
10850
|
}, t2);
|
|
10583
|
-
})),
|
|
10851
|
+
})), yt.apply(this, arguments);
|
|
10584
10852
|
}
|
|
10585
10853
|
function getPaymentMethods() {
|
|
10586
10854
|
var _a;
|
|
@@ -14110,7 +14378,7 @@ async function fetchReadyToPay() {
|
|
|
14110
14378
|
return Endpoint(async () => {
|
|
14111
14379
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
14112
14380
|
if (!state.data.riskMetadata) {
|
|
14113
|
-
const { riskMetadata: data2 } = await
|
|
14381
|
+
const { riskMetadata: data2 } = await Rt();
|
|
14114
14382
|
state.data.riskMetadata = data2;
|
|
14115
14383
|
}
|
|
14116
14384
|
const data = {
|
|
@@ -14178,7 +14446,7 @@ async function fetchReadyToPayout() {
|
|
|
14178
14446
|
validateData(state.data);
|
|
14179
14447
|
validateStorefront(state.storefront);
|
|
14180
14448
|
if (!((_a = state == null ? void 0 : state.data) == null ? void 0 : _a.riskMetadata)) {
|
|
14181
|
-
const { riskMetadata: data2 } = await
|
|
14449
|
+
const { riskMetadata: data2 } = await Rt();
|
|
14182
14450
|
state.data.riskMetadata = data2;
|
|
14183
14451
|
}
|
|
14184
14452
|
const data = {
|
|
@@ -14638,7 +14906,7 @@ async function fetchData({
|
|
|
14638
14906
|
state.storefront.setSessionToken(state.options.jwt);
|
|
14639
14907
|
}
|
|
14640
14908
|
if (!riskMetadata) {
|
|
14641
|
-
const { riskMetadata: data } = await
|
|
14909
|
+
const { riskMetadata: data } = await Rt();
|
|
14642
14910
|
state.data.riskMetadata = data;
|
|
14643
14911
|
} else {
|
|
14644
14912
|
state.data.riskMetadata = riskMetadata;
|
|
@@ -16491,17 +16759,17 @@ var util = {};
|
|
|
16491
16759
|
return hash;
|
|
16492
16760
|
}
|
|
16493
16761
|
exports.toHash = toHash;
|
|
16494
|
-
function alwaysValidSchema(
|
|
16762
|
+
function alwaysValidSchema(it2, schema2) {
|
|
16495
16763
|
if (typeof schema2 == "boolean")
|
|
16496
16764
|
return schema2;
|
|
16497
16765
|
if (Object.keys(schema2).length === 0)
|
|
16498
16766
|
return true;
|
|
16499
|
-
checkUnknownRules(
|
|
16500
|
-
return !schemaHasRules(schema2,
|
|
16767
|
+
checkUnknownRules(it2, schema2);
|
|
16768
|
+
return !schemaHasRules(schema2, it2.self.RULES.all);
|
|
16501
16769
|
}
|
|
16502
16770
|
exports.alwaysValidSchema = alwaysValidSchema;
|
|
16503
|
-
function checkUnknownRules(
|
|
16504
|
-
const { opts, self: self2 } =
|
|
16771
|
+
function checkUnknownRules(it2, schema2 = it2.schema) {
|
|
16772
|
+
const { opts, self: self2 } = it2;
|
|
16505
16773
|
if (!opts.strictSchema)
|
|
16506
16774
|
return;
|
|
16507
16775
|
if (typeof schema2 === "boolean")
|
|
@@ -16509,7 +16777,7 @@ var util = {};
|
|
|
16509
16777
|
const rules2 = self2.RULES.keywords;
|
|
16510
16778
|
for (const key in schema2) {
|
|
16511
16779
|
if (!rules2[key])
|
|
16512
|
-
checkStrictMode(
|
|
16780
|
+
checkStrictMode(it2, `unknown keyword: "${key}"`);
|
|
16513
16781
|
}
|
|
16514
16782
|
}
|
|
16515
16783
|
exports.checkUnknownRules = checkUnknownRules;
|
|
@@ -16631,13 +16899,13 @@ var util = {};
|
|
|
16631
16899
|
return jsPropertySyntax ? (0, codegen_12.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
16632
16900
|
}
|
|
16633
16901
|
exports.getErrorPath = getErrorPath;
|
|
16634
|
-
function checkStrictMode(
|
|
16902
|
+
function checkStrictMode(it2, msg, mode = it2.opts.strictSchema) {
|
|
16635
16903
|
if (!mode)
|
|
16636
16904
|
return;
|
|
16637
16905
|
msg = `strict mode: ${msg}`;
|
|
16638
16906
|
if (mode === true)
|
|
16639
16907
|
throw new Error(msg);
|
|
16640
|
-
|
|
16908
|
+
it2.self.logger.warn(msg);
|
|
16641
16909
|
}
|
|
16642
16910
|
exports.checkStrictMode = checkStrictMode;
|
|
16643
16911
|
})(util);
|
|
@@ -16681,23 +16949,23 @@ names$1.default = names;
|
|
|
16681
16949
|
message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_12.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_12.str)`"${keyword2}" keyword is invalid ($data)`
|
|
16682
16950
|
};
|
|
16683
16951
|
function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
16684
|
-
const { it } = cxt;
|
|
16685
|
-
const { gen, compositeRule, allErrors } =
|
|
16952
|
+
const { it: it2 } = cxt;
|
|
16953
|
+
const { gen, compositeRule, allErrors } = it2;
|
|
16686
16954
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
16687
16955
|
if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : compositeRule || allErrors) {
|
|
16688
16956
|
addError(gen, errObj);
|
|
16689
16957
|
} else {
|
|
16690
|
-
returnErrors(
|
|
16958
|
+
returnErrors(it2, (0, codegen_12._)`[${errObj}]`);
|
|
16691
16959
|
}
|
|
16692
16960
|
}
|
|
16693
16961
|
exports.reportError = reportError;
|
|
16694
16962
|
function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
|
|
16695
|
-
const { it } = cxt;
|
|
16696
|
-
const { gen, compositeRule, allErrors } =
|
|
16963
|
+
const { it: it2 } = cxt;
|
|
16964
|
+
const { gen, compositeRule, allErrors } = it2;
|
|
16697
16965
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
16698
16966
|
addError(gen, errObj);
|
|
16699
16967
|
if (!(compositeRule || allErrors)) {
|
|
16700
|
-
returnErrors(
|
|
16968
|
+
returnErrors(it2, names_12.default.vErrors);
|
|
16701
16969
|
}
|
|
16702
16970
|
}
|
|
16703
16971
|
exports.reportExtraError = reportExtraError;
|
|
@@ -16706,15 +16974,15 @@ names$1.default = names;
|
|
|
16706
16974
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_12._)`${names_12.default.vErrors}.length`, errsCount), () => gen.assign(names_12.default.vErrors, null)));
|
|
16707
16975
|
}
|
|
16708
16976
|
exports.resetErrorsCount = resetErrorsCount;
|
|
16709
|
-
function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it }) {
|
|
16977
|
+
function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it: it2 }) {
|
|
16710
16978
|
if (errsCount === void 0)
|
|
16711
16979
|
throw new Error("ajv implementation error");
|
|
16712
16980
|
const err = gen.name("err");
|
|
16713
16981
|
gen.forRange("i", errsCount, names_12.default.errors, (i2) => {
|
|
16714
16982
|
gen.const(err, (0, codegen_12._)`${names_12.default.vErrors}[${i2}]`);
|
|
16715
|
-
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath,
|
|
16716
|
-
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${
|
|
16717
|
-
if (
|
|
16983
|
+
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath, it2.errorPath)));
|
|
16984
|
+
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${it2.errSchemaPath}/${keyword2}`);
|
|
16985
|
+
if (it2.opts.verbose) {
|
|
16718
16986
|
gen.assign((0, codegen_12._)`${err}.schema`, schemaValue);
|
|
16719
16987
|
gen.assign((0, codegen_12._)`${err}.data`, data);
|
|
16720
16988
|
}
|
|
@@ -16726,10 +16994,10 @@ names$1.default = names;
|
|
|
16726
16994
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} === null`, () => gen.assign(names_12.default.vErrors, (0, codegen_12._)`[${err}]`), (0, codegen_12._)`${names_12.default.vErrors}.push(${err})`);
|
|
16727
16995
|
gen.code((0, codegen_12._)`${names_12.default.errors}++`);
|
|
16728
16996
|
}
|
|
16729
|
-
function returnErrors(
|
|
16730
|
-
const { gen, validateName, schemaEnv } =
|
|
16997
|
+
function returnErrors(it2, errs) {
|
|
16998
|
+
const { gen, validateName, schemaEnv } = it2;
|
|
16731
16999
|
if (schemaEnv.$async) {
|
|
16732
|
-
gen.throw((0, codegen_12._)`new ${
|
|
17000
|
+
gen.throw((0, codegen_12._)`new ${it2.ValidationError}(${errs})`);
|
|
16733
17001
|
} else {
|
|
16734
17002
|
gen.assign((0, codegen_12._)`${validateName}.errors`, errs);
|
|
16735
17003
|
gen.return(false);
|
|
@@ -16751,9 +17019,9 @@ names$1.default = names;
|
|
|
16751
17019
|
return errorObject(cxt, error2, errorPaths);
|
|
16752
17020
|
}
|
|
16753
17021
|
function errorObject(cxt, error2, errorPaths = {}) {
|
|
16754
|
-
const { gen, it } = cxt;
|
|
17022
|
+
const { gen, it: it2 } = cxt;
|
|
16755
17023
|
const keyValues = [
|
|
16756
|
-
errorInstancePath(
|
|
17024
|
+
errorInstancePath(it2, errorPaths),
|
|
16757
17025
|
errorSchemaPath(cxt, errorPaths)
|
|
16758
17026
|
];
|
|
16759
17027
|
extraErrorProps(cxt, error2, keyValues);
|
|
@@ -16771,8 +17039,8 @@ names$1.default = names;
|
|
|
16771
17039
|
return [E2.schemaPath, schPath];
|
|
16772
17040
|
}
|
|
16773
17041
|
function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
16774
|
-
const { keyword: keyword2, data, schemaValue, it } = cxt;
|
|
16775
|
-
const { opts, propertyName, topSchemaRef, schemaPath } =
|
|
17042
|
+
const { keyword: keyword2, data, schemaValue, it: it2 } = cxt;
|
|
17043
|
+
const { opts, propertyName, topSchemaRef, schemaPath } = it2;
|
|
16776
17044
|
keyValues.push([E2.keyword, keyword2], [E2.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
|
|
16777
17045
|
if (opts.messages) {
|
|
16778
17046
|
keyValues.push([E2.message, typeof message == "function" ? message(cxt) : message]);
|
|
@@ -16792,10 +17060,10 @@ const names_1$9 = names$1;
|
|
|
16792
17060
|
const boolError = {
|
|
16793
17061
|
message: "boolean schema is false"
|
|
16794
17062
|
};
|
|
16795
|
-
function topBoolOrEmptySchema(
|
|
16796
|
-
const { gen, schema: schema2, validateName } =
|
|
17063
|
+
function topBoolOrEmptySchema(it2) {
|
|
17064
|
+
const { gen, schema: schema2, validateName } = it2;
|
|
16797
17065
|
if (schema2 === false) {
|
|
16798
|
-
falseSchemaError(
|
|
17066
|
+
falseSchemaError(it2, false);
|
|
16799
17067
|
} else if (typeof schema2 == "object" && schema2.$async === true) {
|
|
16800
17068
|
gen.return(names_1$9.default.data);
|
|
16801
17069
|
} else {
|
|
@@ -16804,18 +17072,18 @@ function topBoolOrEmptySchema(it) {
|
|
|
16804
17072
|
}
|
|
16805
17073
|
}
|
|
16806
17074
|
boolSchema.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
16807
|
-
function boolOrEmptySchema(
|
|
16808
|
-
const { gen, schema: schema2 } =
|
|
17075
|
+
function boolOrEmptySchema(it2, valid) {
|
|
17076
|
+
const { gen, schema: schema2 } = it2;
|
|
16809
17077
|
if (schema2 === false) {
|
|
16810
17078
|
gen.var(valid, false);
|
|
16811
|
-
falseSchemaError(
|
|
17079
|
+
falseSchemaError(it2);
|
|
16812
17080
|
} else {
|
|
16813
17081
|
gen.var(valid, true);
|
|
16814
17082
|
}
|
|
16815
17083
|
}
|
|
16816
17084
|
boolSchema.boolOrEmptySchema = boolOrEmptySchema;
|
|
16817
|
-
function falseSchemaError(
|
|
16818
|
-
const { gen, data } =
|
|
17085
|
+
function falseSchemaError(it2, overrideAllErrors) {
|
|
17086
|
+
const { gen, data } = it2;
|
|
16819
17087
|
const cxt = {
|
|
16820
17088
|
gen,
|
|
16821
17089
|
keyword: "false schema",
|
|
@@ -16824,7 +17092,7 @@ function falseSchemaError(it, overrideAllErrors) {
|
|
|
16824
17092
|
schemaCode: false,
|
|
16825
17093
|
schemaValue: false,
|
|
16826
17094
|
params: {},
|
|
16827
|
-
it
|
|
17095
|
+
it: it2
|
|
16828
17096
|
};
|
|
16829
17097
|
(0, errors_1$2.reportError)(cxt, boolError, void 0, overrideAllErrors);
|
|
16830
17098
|
}
|
|
@@ -16907,17 +17175,17 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
16907
17175
|
throw new Error("type must be JSONType or JSONType[]: " + types2.join(","));
|
|
16908
17176
|
}
|
|
16909
17177
|
exports.getJSONTypes = getJSONTypes;
|
|
16910
|
-
function coerceAndCheckDataType(
|
|
16911
|
-
const { gen, data, opts } =
|
|
17178
|
+
function coerceAndCheckDataType(it2, types2) {
|
|
17179
|
+
const { gen, data, opts } = it2;
|
|
16912
17180
|
const coerceTo = coerceToTypes(types2, opts.coerceTypes);
|
|
16913
|
-
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(
|
|
17181
|
+
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(it2, types2[0]));
|
|
16914
17182
|
if (checkTypes) {
|
|
16915
17183
|
const wrongType = checkDataTypes(types2, data, opts.strictNumbers, DataType.Wrong);
|
|
16916
17184
|
gen.if(wrongType, () => {
|
|
16917
17185
|
if (coerceTo.length)
|
|
16918
|
-
coerceData(
|
|
17186
|
+
coerceData(it2, types2, coerceTo);
|
|
16919
17187
|
else
|
|
16920
|
-
reportTypeError(
|
|
17188
|
+
reportTypeError(it2);
|
|
16921
17189
|
});
|
|
16922
17190
|
}
|
|
16923
17191
|
return checkTypes;
|
|
@@ -16927,8 +17195,8 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
16927
17195
|
function coerceToTypes(types2, coerceTypes) {
|
|
16928
17196
|
return coerceTypes ? types2.filter((t2) => COERCIBLE.has(t2) || coerceTypes === "array" && t2 === "array") : [];
|
|
16929
17197
|
}
|
|
16930
|
-
function coerceData(
|
|
16931
|
-
const { gen, data, opts } =
|
|
17198
|
+
function coerceData(it2, types2, coerceTo) {
|
|
17199
|
+
const { gen, data, opts } = it2;
|
|
16932
17200
|
const dataType2 = gen.let("dataType", (0, codegen_12._)`typeof ${data}`);
|
|
16933
17201
|
const coerced = gen.let("coerced", (0, codegen_12._)`undefined`);
|
|
16934
17202
|
if (opts.coerceTypes === "array") {
|
|
@@ -16941,11 +17209,11 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
16941
17209
|
}
|
|
16942
17210
|
}
|
|
16943
17211
|
gen.else();
|
|
16944
|
-
reportTypeError(
|
|
17212
|
+
reportTypeError(it2);
|
|
16945
17213
|
gen.endIf();
|
|
16946
17214
|
gen.if((0, codegen_12._)`${coerced} !== undefined`, () => {
|
|
16947
17215
|
gen.assign(data, coerced);
|
|
16948
|
-
assignParentData(
|
|
17216
|
+
assignParentData(it2, coerced);
|
|
16949
17217
|
});
|
|
16950
17218
|
function coerceSpecificType(t2) {
|
|
16951
17219
|
switch (t2) {
|
|
@@ -17029,14 +17297,14 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17029
17297
|
message: ({ schema: schema2 }) => `must be ${schema2}`,
|
|
17030
17298
|
params: ({ schema: schema2, schemaValue }) => typeof schema2 == "string" ? (0, codegen_12._)`{type: ${schema2}}` : (0, codegen_12._)`{type: ${schemaValue}}`
|
|
17031
17299
|
};
|
|
17032
|
-
function reportTypeError(
|
|
17033
|
-
const cxt = getTypeErrorContext(
|
|
17300
|
+
function reportTypeError(it2) {
|
|
17301
|
+
const cxt = getTypeErrorContext(it2);
|
|
17034
17302
|
(0, errors_12.reportError)(cxt, typeError);
|
|
17035
17303
|
}
|
|
17036
17304
|
exports.reportTypeError = reportTypeError;
|
|
17037
|
-
function getTypeErrorContext(
|
|
17038
|
-
const { gen, data, schema: schema2 } =
|
|
17039
|
-
const schemaCode = (0, util_12.schemaRefOrVal)(
|
|
17305
|
+
function getTypeErrorContext(it2) {
|
|
17306
|
+
const { gen, data, schema: schema2 } = it2;
|
|
17307
|
+
const schemaCode = (0, util_12.schemaRefOrVal)(it2, schema2, "type");
|
|
17040
17308
|
return {
|
|
17041
17309
|
gen,
|
|
17042
17310
|
keyword: "type",
|
|
@@ -17046,7 +17314,7 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
17046
17314
|
schemaValue: schemaCode,
|
|
17047
17315
|
parentSchema: schema2,
|
|
17048
17316
|
params: {},
|
|
17049
|
-
it
|
|
17317
|
+
it: it2
|
|
17050
17318
|
};
|
|
17051
17319
|
}
|
|
17052
17320
|
})(dataType);
|
|
@@ -17055,24 +17323,24 @@ Object.defineProperty(defaults, "__esModule", { value: true });
|
|
|
17055
17323
|
defaults.assignDefaults = void 0;
|
|
17056
17324
|
const codegen_1$v = codegen;
|
|
17057
17325
|
const util_1$t = util;
|
|
17058
|
-
function assignDefaults(
|
|
17059
|
-
const { properties: properties2, items: items2 } =
|
|
17326
|
+
function assignDefaults(it2, ty) {
|
|
17327
|
+
const { properties: properties2, items: items2 } = it2.schema;
|
|
17060
17328
|
if (ty === "object" && properties2) {
|
|
17061
17329
|
for (const key in properties2) {
|
|
17062
|
-
assignDefault(
|
|
17330
|
+
assignDefault(it2, key, properties2[key].default);
|
|
17063
17331
|
}
|
|
17064
17332
|
} else if (ty === "array" && Array.isArray(items2)) {
|
|
17065
|
-
items2.forEach((sch, i2) => assignDefault(
|
|
17333
|
+
items2.forEach((sch, i2) => assignDefault(it2, i2, sch.default));
|
|
17066
17334
|
}
|
|
17067
17335
|
}
|
|
17068
17336
|
defaults.assignDefaults = assignDefaults;
|
|
17069
|
-
function assignDefault(
|
|
17070
|
-
const { gen, compositeRule, data, opts } =
|
|
17337
|
+
function assignDefault(it2, prop, defaultValue) {
|
|
17338
|
+
const { gen, compositeRule, data, opts } = it2;
|
|
17071
17339
|
if (defaultValue === void 0)
|
|
17072
17340
|
return;
|
|
17073
17341
|
const childData = (0, codegen_1$v._)`${data}${(0, codegen_1$v.getProperty)(prop)}`;
|
|
17074
17342
|
if (compositeRule) {
|
|
17075
|
-
(0, util_1$t.checkStrictMode)(
|
|
17343
|
+
(0, util_1$t.checkStrictMode)(it2, `default is ignored for: ${childData}`);
|
|
17076
17344
|
return;
|
|
17077
17345
|
}
|
|
17078
17346
|
let condition = (0, codegen_1$v._)`${childData} === undefined`;
|
|
@@ -17090,8 +17358,8 @@ const util_1$s = util;
|
|
|
17090
17358
|
const names_1$8 = names$1;
|
|
17091
17359
|
const util_2$1 = util;
|
|
17092
17360
|
function checkReportMissingProp(cxt, prop) {
|
|
17093
|
-
const { gen, data, it } = cxt;
|
|
17094
|
-
gen.if(noPropertyInData(gen, data, prop,
|
|
17361
|
+
const { gen, data, it: it2 } = cxt;
|
|
17362
|
+
gen.if(noPropertyInData(gen, data, prop, it2.opts.ownProperties), () => {
|
|
17095
17363
|
cxt.setParams({ missingProperty: (0, codegen_1$u._)`${prop}` }, true);
|
|
17096
17364
|
cxt.error();
|
|
17097
17365
|
});
|
|
@@ -17132,19 +17400,19 @@ function allSchemaProperties(schemaMap) {
|
|
|
17132
17400
|
return schemaMap ? Object.keys(schemaMap).filter((p2) => p2 !== "__proto__") : [];
|
|
17133
17401
|
}
|
|
17134
17402
|
code.allSchemaProperties = allSchemaProperties;
|
|
17135
|
-
function schemaProperties(
|
|
17136
|
-
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(
|
|
17403
|
+
function schemaProperties(it2, schemaMap) {
|
|
17404
|
+
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(it2, schemaMap[p2]));
|
|
17137
17405
|
}
|
|
17138
17406
|
code.schemaProperties = schemaProperties;
|
|
17139
|
-
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
17407
|
+
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it: it2 }, func, context, passSchema) {
|
|
17140
17408
|
const dataAndSchema = passSchema ? (0, codegen_1$u._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
17141
17409
|
const valCxt = [
|
|
17142
17410
|
[names_1$8.default.instancePath, (0, codegen_1$u.strConcat)(names_1$8.default.instancePath, errorPath)],
|
|
17143
|
-
[names_1$8.default.parentData,
|
|
17144
|
-
[names_1$8.default.parentDataProperty,
|
|
17411
|
+
[names_1$8.default.parentData, it2.parentData],
|
|
17412
|
+
[names_1$8.default.parentDataProperty, it2.parentDataProperty],
|
|
17145
17413
|
[names_1$8.default.rootData, names_1$8.default.rootData]
|
|
17146
17414
|
];
|
|
17147
|
-
if (
|
|
17415
|
+
if (it2.opts.dynamicRef)
|
|
17148
17416
|
valCxt.push([names_1$8.default.dynamicAnchors, names_1$8.default.dynamicAnchors]);
|
|
17149
17417
|
const args = (0, codegen_1$u._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
17150
17418
|
return context !== codegen_1$u.nil ? (0, codegen_1$u._)`${func}.call(${context}, ${args})` : (0, codegen_1$u._)`${func}(${args})`;
|
|
@@ -17163,9 +17431,9 @@ function usePattern({ gen, it: { opts } }, pattern2) {
|
|
|
17163
17431
|
}
|
|
17164
17432
|
code.usePattern = usePattern;
|
|
17165
17433
|
function validateArray(cxt) {
|
|
17166
|
-
const { gen, data, keyword: keyword2, it } = cxt;
|
|
17434
|
+
const { gen, data, keyword: keyword2, it: it2 } = cxt;
|
|
17167
17435
|
const valid = gen.name("valid");
|
|
17168
|
-
if (
|
|
17436
|
+
if (it2.allErrors) {
|
|
17169
17437
|
const validArr = gen.let("valid", true);
|
|
17170
17438
|
validateItems(() => gen.assign(validArr, false));
|
|
17171
17439
|
return validArr;
|
|
@@ -17187,11 +17455,11 @@ function validateArray(cxt) {
|
|
|
17187
17455
|
}
|
|
17188
17456
|
code.validateArray = validateArray;
|
|
17189
17457
|
function validateUnion(cxt) {
|
|
17190
|
-
const { gen, schema: schema2, keyword: keyword2, it } = cxt;
|
|
17458
|
+
const { gen, schema: schema2, keyword: keyword2, it: it2 } = cxt;
|
|
17191
17459
|
if (!Array.isArray(schema2))
|
|
17192
17460
|
throw new Error("ajv implementation error");
|
|
17193
|
-
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(
|
|
17194
|
-
if (alwaysValid && !
|
|
17461
|
+
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(it2, sch));
|
|
17462
|
+
if (alwaysValid && !it2.opts.unevaluated)
|
|
17195
17463
|
return;
|
|
17196
17464
|
const valid = gen.let("valid", false);
|
|
17197
17465
|
const schValid = gen.name("_valid");
|
|
@@ -17216,16 +17484,16 @@ const names_1$7 = names$1;
|
|
|
17216
17484
|
const code_1$9 = code;
|
|
17217
17485
|
const errors_1$1 = errors;
|
|
17218
17486
|
function macroKeywordCode(cxt, def2) {
|
|
17219
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, it } = cxt;
|
|
17220
|
-
const macroSchema = def2.macro.call(
|
|
17487
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
17488
|
+
const macroSchema = def2.macro.call(it2.self, schema2, parentSchema, it2);
|
|
17221
17489
|
const schemaRef = useKeyword(gen, keyword2, macroSchema);
|
|
17222
|
-
if (
|
|
17223
|
-
|
|
17490
|
+
if (it2.opts.validateSchema !== false)
|
|
17491
|
+
it2.self.validateSchema(macroSchema, true);
|
|
17224
17492
|
const valid = gen.name("valid");
|
|
17225
17493
|
cxt.subschema({
|
|
17226
17494
|
schema: macroSchema,
|
|
17227
17495
|
schemaPath: codegen_1$t.nil,
|
|
17228
|
-
errSchemaPath: `${
|
|
17496
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}`,
|
|
17229
17497
|
topSchemaRef: schemaRef,
|
|
17230
17498
|
compositeRule: true
|
|
17231
17499
|
}, valid);
|
|
@@ -17234,9 +17502,9 @@ function macroKeywordCode(cxt, def2) {
|
|
|
17234
17502
|
keyword.macroKeywordCode = macroKeywordCode;
|
|
17235
17503
|
function funcKeywordCode(cxt, def2) {
|
|
17236
17504
|
var _a;
|
|
17237
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it } = cxt;
|
|
17238
|
-
checkAsyncKeyword(
|
|
17239
|
-
const validate2 = !$data && def2.compile ? def2.compile.call(
|
|
17505
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it: it2 } = cxt;
|
|
17506
|
+
checkAsyncKeyword(it2, def2);
|
|
17507
|
+
const validate2 = !$data && def2.compile ? def2.compile.call(it2.self, schema2, parentSchema, it2) : def2.validate;
|
|
17240
17508
|
const validateRef = useKeyword(gen, keyword2, validate2);
|
|
17241
17509
|
const valid = gen.let("valid");
|
|
17242
17510
|
cxt.block$data(valid, validateKeyword);
|
|
@@ -17256,7 +17524,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17256
17524
|
}
|
|
17257
17525
|
function validateAsync() {
|
|
17258
17526
|
const ruleErrs = gen.let("ruleErrs", null);
|
|
17259
|
-
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${
|
|
17527
|
+
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${it2.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1$t._)`${e2}.errors`), () => gen.throw(e2)));
|
|
17260
17528
|
return ruleErrs;
|
|
17261
17529
|
}
|
|
17262
17530
|
function validateSync() {
|
|
@@ -17266,7 +17534,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17266
17534
|
return validateErrs;
|
|
17267
17535
|
}
|
|
17268
17536
|
function assignValid(_await = def2.async ? (0, codegen_1$t._)`await ` : codegen_1$t.nil) {
|
|
17269
|
-
const passCxt =
|
|
17537
|
+
const passCxt = it2.opts.passContext ? names_1$7.default.this : names_1$7.default.self;
|
|
17270
17538
|
const passSchema = !("compile" in def2 && !$data || def2.schema === false);
|
|
17271
17539
|
gen.assign(valid, (0, codegen_1$t._)`${_await}${(0, code_1$9.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def2.modifying);
|
|
17272
17540
|
}
|
|
@@ -17277,8 +17545,8 @@ function funcKeywordCode(cxt, def2) {
|
|
|
17277
17545
|
}
|
|
17278
17546
|
keyword.funcKeywordCode = funcKeywordCode;
|
|
17279
17547
|
function modifyData(cxt) {
|
|
17280
|
-
const { gen, data, it } = cxt;
|
|
17281
|
-
gen.if(
|
|
17548
|
+
const { gen, data, it: it2 } = cxt;
|
|
17549
|
+
gen.if(it2.parentData, () => gen.assign(data, (0, codegen_1$t._)`${it2.parentData}[${it2.parentDataProperty}]`));
|
|
17282
17550
|
}
|
|
17283
17551
|
function addErrs(cxt, errs) {
|
|
17284
17552
|
const { gen } = cxt;
|
|
@@ -17297,7 +17565,7 @@ function useKeyword(gen, keyword2, result) {
|
|
|
17297
17565
|
return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1$t.stringify)(result) });
|
|
17298
17566
|
}
|
|
17299
17567
|
function validSchemaType(schema2, schemaType, allowUndefined = false) {
|
|
17300
|
-
return !schemaType.length || schemaType.some((
|
|
17568
|
+
return !schemaType.length || schemaType.some((st2) => st2 === "array" ? Array.isArray(schema2) : st2 === "object" ? schema2 && typeof schema2 == "object" && !Array.isArray(schema2) : typeof schema2 == st2 || allowUndefined && typeof schema2 == "undefined");
|
|
17301
17569
|
}
|
|
17302
17570
|
keyword.validSchemaType = validSchemaType;
|
|
17303
17571
|
function validateKeywordUsage({ schema: schema2, opts, self: self2, errSchemaPath }, def2, keyword2) {
|
|
@@ -17325,20 +17593,20 @@ Object.defineProperty(subschema, "__esModule", { value: true });
|
|
|
17325
17593
|
subschema.extendSubschemaMode = subschema.extendSubschemaData = subschema.getSubschema = void 0;
|
|
17326
17594
|
const codegen_1$s = codegen;
|
|
17327
17595
|
const util_1$r = util;
|
|
17328
|
-
function getSubschema(
|
|
17596
|
+
function getSubschema(it2, { keyword: keyword2, schemaProp, schema: schema2, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
17329
17597
|
if (keyword2 !== void 0 && schema2 !== void 0) {
|
|
17330
17598
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
17331
17599
|
}
|
|
17332
17600
|
if (keyword2 !== void 0) {
|
|
17333
|
-
const sch =
|
|
17601
|
+
const sch = it2.schema[keyword2];
|
|
17334
17602
|
return schemaProp === void 0 ? {
|
|
17335
17603
|
schema: sch,
|
|
17336
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
17337
|
-
errSchemaPath: `${
|
|
17604
|
+
schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}`,
|
|
17605
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}`
|
|
17338
17606
|
} : {
|
|
17339
17607
|
schema: sch[schemaProp],
|
|
17340
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
17341
|
-
errSchemaPath: `${
|
|
17608
|
+
schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}${(0, codegen_1$s.getProperty)(schemaProp)}`,
|
|
17609
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}/${(0, util_1$r.escapeFragment)(schemaProp)}`
|
|
17342
17610
|
};
|
|
17343
17611
|
}
|
|
17344
17612
|
if (schema2 !== void 0) {
|
|
@@ -17355,14 +17623,14 @@ function getSubschema(it, { keyword: keyword2, schemaProp, schema: schema2, sche
|
|
|
17355
17623
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
17356
17624
|
}
|
|
17357
17625
|
subschema.getSubschema = getSubschema;
|
|
17358
|
-
function extendSubschemaData(subschema2,
|
|
17626
|
+
function extendSubschemaData(subschema2, it2, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
17359
17627
|
if (data !== void 0 && dataProp !== void 0) {
|
|
17360
17628
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
17361
17629
|
}
|
|
17362
|
-
const { gen } =
|
|
17630
|
+
const { gen } = it2;
|
|
17363
17631
|
if (dataProp !== void 0) {
|
|
17364
|
-
const { errorPath, dataPathArr, opts } =
|
|
17365
|
-
const nextData = gen.let("data", (0, codegen_1$s._)`${
|
|
17632
|
+
const { errorPath, dataPathArr, opts } = it2;
|
|
17633
|
+
const nextData = gen.let("data", (0, codegen_1$s._)`${it2.data}${(0, codegen_1$s.getProperty)(dataProp)}`, true);
|
|
17366
17634
|
dataContextProps(nextData);
|
|
17367
17635
|
subschema2.errorPath = (0, codegen_1$s.str)`${errorPath}${(0, util_1$r.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;
|
|
17368
17636
|
subschema2.parentDataProperty = (0, codegen_1$s._)`${dataProp}`;
|
|
@@ -17378,11 +17646,11 @@ function extendSubschemaData(subschema2, it, { dataProp, dataPropType: dpType, d
|
|
|
17378
17646
|
subschema2.dataTypes = dataTypes;
|
|
17379
17647
|
function dataContextProps(_nextData) {
|
|
17380
17648
|
subschema2.data = _nextData;
|
|
17381
|
-
subschema2.dataLevel =
|
|
17649
|
+
subschema2.dataLevel = it2.dataLevel + 1;
|
|
17382
17650
|
subschema2.dataTypes = [];
|
|
17383
|
-
|
|
17384
|
-
subschema2.parentData =
|
|
17385
|
-
subschema2.dataNames = [...
|
|
17651
|
+
it2.definedProperties = /* @__PURE__ */ new Set();
|
|
17652
|
+
subschema2.parentData = it2.data;
|
|
17653
|
+
subschema2.dataNames = [...it2.dataNames, _nextData];
|
|
17386
17654
|
}
|
|
17387
17655
|
}
|
|
17388
17656
|
subschema.extendSubschemaData = extendSubschemaData;
|
|
@@ -17682,15 +17950,15 @@ const names_1$6 = names$1;
|
|
|
17682
17950
|
const resolve_1$2 = resolve$1;
|
|
17683
17951
|
const util_1$p = util;
|
|
17684
17952
|
const errors_1 = errors;
|
|
17685
|
-
function validateFunctionCode(
|
|
17686
|
-
if (isSchemaObj(
|
|
17687
|
-
checkKeywords(
|
|
17688
|
-
if (schemaCxtHasRules(
|
|
17689
|
-
topSchemaObjCode(
|
|
17953
|
+
function validateFunctionCode(it2) {
|
|
17954
|
+
if (isSchemaObj(it2)) {
|
|
17955
|
+
checkKeywords(it2);
|
|
17956
|
+
if (schemaCxtHasRules(it2)) {
|
|
17957
|
+
topSchemaObjCode(it2);
|
|
17690
17958
|
return;
|
|
17691
17959
|
}
|
|
17692
17960
|
}
|
|
17693
|
-
validateFunction(
|
|
17961
|
+
validateFunction(it2, () => (0, boolSchema_1.topBoolOrEmptySchema)(it2));
|
|
17694
17962
|
}
|
|
17695
17963
|
validate$1.validateFunctionCode = validateFunctionCode;
|
|
17696
17964
|
function validateFunction({ gen, validateName, schema: schema2, schemaEnv, opts }, body) {
|
|
@@ -17724,40 +17992,40 @@ function destructureValCxtES5(gen, opts) {
|
|
|
17724
17992
|
gen.var(names_1$6.default.dynamicAnchors, (0, codegen_1$r._)`{}`);
|
|
17725
17993
|
});
|
|
17726
17994
|
}
|
|
17727
|
-
function topSchemaObjCode(
|
|
17728
|
-
const { schema: schema2, opts, gen } =
|
|
17729
|
-
validateFunction(
|
|
17995
|
+
function topSchemaObjCode(it2) {
|
|
17996
|
+
const { schema: schema2, opts, gen } = it2;
|
|
17997
|
+
validateFunction(it2, () => {
|
|
17730
17998
|
if (opts.$comment && schema2.$comment)
|
|
17731
|
-
commentKeyword(
|
|
17732
|
-
checkNoDefault(
|
|
17999
|
+
commentKeyword(it2);
|
|
18000
|
+
checkNoDefault(it2);
|
|
17733
18001
|
gen.let(names_1$6.default.vErrors, null);
|
|
17734
18002
|
gen.let(names_1$6.default.errors, 0);
|
|
17735
18003
|
if (opts.unevaluated)
|
|
17736
|
-
resetEvaluated(
|
|
17737
|
-
typeAndKeywords(
|
|
17738
|
-
returnResults(
|
|
18004
|
+
resetEvaluated(it2);
|
|
18005
|
+
typeAndKeywords(it2);
|
|
18006
|
+
returnResults(it2);
|
|
17739
18007
|
});
|
|
17740
18008
|
return;
|
|
17741
18009
|
}
|
|
17742
|
-
function resetEvaluated(
|
|
17743
|
-
const { gen, validateName } =
|
|
17744
|
-
|
|
17745
|
-
gen.if((0, codegen_1$r._)`${
|
|
17746
|
-
gen.if((0, codegen_1$r._)`${
|
|
18010
|
+
function resetEvaluated(it2) {
|
|
18011
|
+
const { gen, validateName } = it2;
|
|
18012
|
+
it2.evaluated = gen.const("evaluated", (0, codegen_1$r._)`${validateName}.evaluated`);
|
|
18013
|
+
gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.props`, (0, codegen_1$r._)`undefined`));
|
|
18014
|
+
gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.items`, (0, codegen_1$r._)`undefined`));
|
|
17747
18015
|
}
|
|
17748
18016
|
function funcSourceUrl(schema2, opts) {
|
|
17749
18017
|
const schId = typeof schema2 == "object" && schema2[opts.schemaId];
|
|
17750
18018
|
return schId && (opts.code.source || opts.code.process) ? (0, codegen_1$r._)`/*# sourceURL=${schId} */` : codegen_1$r.nil;
|
|
17751
18019
|
}
|
|
17752
|
-
function subschemaCode(
|
|
17753
|
-
if (isSchemaObj(
|
|
17754
|
-
checkKeywords(
|
|
17755
|
-
if (schemaCxtHasRules(
|
|
17756
|
-
subSchemaObjCode(
|
|
18020
|
+
function subschemaCode(it2, valid) {
|
|
18021
|
+
if (isSchemaObj(it2)) {
|
|
18022
|
+
checkKeywords(it2);
|
|
18023
|
+
if (schemaCxtHasRules(it2)) {
|
|
18024
|
+
subSchemaObjCode(it2, valid);
|
|
17757
18025
|
return;
|
|
17758
18026
|
}
|
|
17759
18027
|
}
|
|
17760
|
-
(0, boolSchema_1.boolOrEmptySchema)(
|
|
18028
|
+
(0, boolSchema_1.boolOrEmptySchema)(it2, valid);
|
|
17761
18029
|
}
|
|
17762
18030
|
function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
17763
18031
|
if (typeof schema2 == "boolean")
|
|
@@ -17767,49 +18035,49 @@ function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
|
17767
18035
|
return true;
|
|
17768
18036
|
return false;
|
|
17769
18037
|
}
|
|
17770
|
-
function isSchemaObj(
|
|
17771
|
-
return typeof
|
|
18038
|
+
function isSchemaObj(it2) {
|
|
18039
|
+
return typeof it2.schema != "boolean";
|
|
17772
18040
|
}
|
|
17773
|
-
function subSchemaObjCode(
|
|
17774
|
-
const { schema: schema2, gen, opts } =
|
|
18041
|
+
function subSchemaObjCode(it2, valid) {
|
|
18042
|
+
const { schema: schema2, gen, opts } = it2;
|
|
17775
18043
|
if (opts.$comment && schema2.$comment)
|
|
17776
|
-
commentKeyword(
|
|
17777
|
-
updateContext(
|
|
17778
|
-
checkAsyncSchema(
|
|
18044
|
+
commentKeyword(it2);
|
|
18045
|
+
updateContext(it2);
|
|
18046
|
+
checkAsyncSchema(it2);
|
|
17779
18047
|
const errsCount = gen.const("_errs", names_1$6.default.errors);
|
|
17780
|
-
typeAndKeywords(
|
|
18048
|
+
typeAndKeywords(it2, errsCount);
|
|
17781
18049
|
gen.var(valid, (0, codegen_1$r._)`${errsCount} === ${names_1$6.default.errors}`);
|
|
17782
18050
|
}
|
|
17783
|
-
function checkKeywords(
|
|
17784
|
-
(0, util_1$p.checkUnknownRules)(
|
|
17785
|
-
checkRefsAndKeywords(
|
|
18051
|
+
function checkKeywords(it2) {
|
|
18052
|
+
(0, util_1$p.checkUnknownRules)(it2);
|
|
18053
|
+
checkRefsAndKeywords(it2);
|
|
17786
18054
|
}
|
|
17787
|
-
function typeAndKeywords(
|
|
17788
|
-
if (
|
|
17789
|
-
return schemaKeywords(
|
|
17790
|
-
const types2 = (0, dataType_1$1.getSchemaTypes)(
|
|
17791
|
-
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(
|
|
17792
|
-
schemaKeywords(
|
|
18055
|
+
function typeAndKeywords(it2, errsCount) {
|
|
18056
|
+
if (it2.opts.jtd)
|
|
18057
|
+
return schemaKeywords(it2, [], false, errsCount);
|
|
18058
|
+
const types2 = (0, dataType_1$1.getSchemaTypes)(it2.schema);
|
|
18059
|
+
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(it2, types2);
|
|
18060
|
+
schemaKeywords(it2, types2, !checkedTypes, errsCount);
|
|
17793
18061
|
}
|
|
17794
|
-
function checkRefsAndKeywords(
|
|
17795
|
-
const { schema: schema2, errSchemaPath, opts, self: self2 } =
|
|
18062
|
+
function checkRefsAndKeywords(it2) {
|
|
18063
|
+
const { schema: schema2, errSchemaPath, opts, self: self2 } = it2;
|
|
17796
18064
|
if (schema2.$ref && opts.ignoreKeywordsWithRef && (0, util_1$p.schemaHasRulesButRef)(schema2, self2.RULES)) {
|
|
17797
18065
|
self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
|
|
17798
18066
|
}
|
|
17799
18067
|
}
|
|
17800
|
-
function checkNoDefault(
|
|
17801
|
-
const { schema: schema2, opts } =
|
|
18068
|
+
function checkNoDefault(it2) {
|
|
18069
|
+
const { schema: schema2, opts } = it2;
|
|
17802
18070
|
if (schema2.default !== void 0 && opts.useDefaults && opts.strictSchema) {
|
|
17803
|
-
(0, util_1$p.checkStrictMode)(
|
|
18071
|
+
(0, util_1$p.checkStrictMode)(it2, "default is ignored in the schema root");
|
|
17804
18072
|
}
|
|
17805
18073
|
}
|
|
17806
|
-
function updateContext(
|
|
17807
|
-
const schId =
|
|
18074
|
+
function updateContext(it2) {
|
|
18075
|
+
const schId = it2.schema[it2.opts.schemaId];
|
|
17808
18076
|
if (schId)
|
|
17809
|
-
|
|
18077
|
+
it2.baseId = (0, resolve_1$2.resolveUrl)(it2.opts.uriResolver, it2.baseId, schId);
|
|
17810
18078
|
}
|
|
17811
|
-
function checkAsyncSchema(
|
|
17812
|
-
if (
|
|
18079
|
+
function checkAsyncSchema(it2) {
|
|
18080
|
+
if (it2.schema.$async && !it2.schemaEnv.$async)
|
|
17813
18081
|
throw new Error("async schema in sync schema");
|
|
17814
18082
|
}
|
|
17815
18083
|
function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }) {
|
|
@@ -17822,14 +18090,14 @@ function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }
|
|
|
17822
18090
|
gen.code((0, codegen_1$r._)`${names_1$6.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
|
|
17823
18091
|
}
|
|
17824
18092
|
}
|
|
17825
|
-
function returnResults(
|
|
17826
|
-
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } =
|
|
18093
|
+
function returnResults(it2) {
|
|
18094
|
+
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } = it2;
|
|
17827
18095
|
if (schemaEnv.$async) {
|
|
17828
18096
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === 0`, () => gen.return(names_1$6.default.data), () => gen.throw((0, codegen_1$r._)`new ${ValidationError2}(${names_1$6.default.vErrors})`));
|
|
17829
18097
|
} else {
|
|
17830
18098
|
gen.assign((0, codegen_1$r._)`${validateName}.errors`, names_1$6.default.vErrors);
|
|
17831
18099
|
if (opts.unevaluated)
|
|
17832
|
-
assignEvaluated(
|
|
18100
|
+
assignEvaluated(it2);
|
|
17833
18101
|
gen.return((0, codegen_1$r._)`${names_1$6.default.errors} === 0`);
|
|
17834
18102
|
}
|
|
17835
18103
|
}
|
|
@@ -17839,15 +18107,15 @@ function assignEvaluated({ gen, evaluated, props, items: items2 }) {
|
|
|
17839
18107
|
if (items2 instanceof codegen_1$r.Name)
|
|
17840
18108
|
gen.assign((0, codegen_1$r._)`${evaluated}.items`, items2);
|
|
17841
18109
|
}
|
|
17842
|
-
function schemaKeywords(
|
|
17843
|
-
const { gen, schema: schema2, data, allErrors, opts, self: self2 } =
|
|
18110
|
+
function schemaKeywords(it2, types2, typeErrors, errsCount) {
|
|
18111
|
+
const { gen, schema: schema2, data, allErrors, opts, self: self2 } = it2;
|
|
17844
18112
|
const { RULES } = self2;
|
|
17845
18113
|
if (schema2.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1$p.schemaHasRulesButRef)(schema2, RULES))) {
|
|
17846
|
-
gen.block(() => keywordCode(
|
|
18114
|
+
gen.block(() => keywordCode(it2, "$ref", RULES.all.$ref.definition));
|
|
17847
18115
|
return;
|
|
17848
18116
|
}
|
|
17849
18117
|
if (!opts.jtd)
|
|
17850
|
-
checkStrictTypes(
|
|
18118
|
+
checkStrictTypes(it2, types2);
|
|
17851
18119
|
gen.block(() => {
|
|
17852
18120
|
for (const group of RULES.rules)
|
|
17853
18121
|
groupKeywords(group);
|
|
@@ -17858,66 +18126,66 @@ function schemaKeywords(it, types2, typeErrors, errsCount) {
|
|
|
17858
18126
|
return;
|
|
17859
18127
|
if (group.type) {
|
|
17860
18128
|
gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));
|
|
17861
|
-
iterateKeywords(
|
|
18129
|
+
iterateKeywords(it2, group);
|
|
17862
18130
|
if (types2.length === 1 && types2[0] === group.type && typeErrors) {
|
|
17863
18131
|
gen.else();
|
|
17864
|
-
(0, dataType_2.reportTypeError)(
|
|
18132
|
+
(0, dataType_2.reportTypeError)(it2);
|
|
17865
18133
|
}
|
|
17866
18134
|
gen.endIf();
|
|
17867
18135
|
} else {
|
|
17868
|
-
iterateKeywords(
|
|
18136
|
+
iterateKeywords(it2, group);
|
|
17869
18137
|
}
|
|
17870
18138
|
if (!allErrors)
|
|
17871
18139
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === ${errsCount || 0}`);
|
|
17872
18140
|
}
|
|
17873
18141
|
}
|
|
17874
|
-
function iterateKeywords(
|
|
17875
|
-
const { gen, schema: schema2, opts: { useDefaults } } =
|
|
18142
|
+
function iterateKeywords(it2, group) {
|
|
18143
|
+
const { gen, schema: schema2, opts: { useDefaults } } = it2;
|
|
17876
18144
|
if (useDefaults)
|
|
17877
|
-
(0, defaults_1.assignDefaults)(
|
|
18145
|
+
(0, defaults_1.assignDefaults)(it2, group.type);
|
|
17878
18146
|
gen.block(() => {
|
|
17879
18147
|
for (const rule of group.rules) {
|
|
17880
18148
|
if ((0, applicability_1.shouldUseRule)(schema2, rule)) {
|
|
17881
|
-
keywordCode(
|
|
18149
|
+
keywordCode(it2, rule.keyword, rule.definition, group.type);
|
|
17882
18150
|
}
|
|
17883
18151
|
}
|
|
17884
18152
|
});
|
|
17885
18153
|
}
|
|
17886
|
-
function checkStrictTypes(
|
|
17887
|
-
if (
|
|
18154
|
+
function checkStrictTypes(it2, types2) {
|
|
18155
|
+
if (it2.schemaEnv.meta || !it2.opts.strictTypes)
|
|
17888
18156
|
return;
|
|
17889
|
-
checkContextTypes(
|
|
17890
|
-
if (!
|
|
17891
|
-
checkMultipleTypes(
|
|
17892
|
-
checkKeywordTypes(
|
|
18157
|
+
checkContextTypes(it2, types2);
|
|
18158
|
+
if (!it2.opts.allowUnionTypes)
|
|
18159
|
+
checkMultipleTypes(it2, types2);
|
|
18160
|
+
checkKeywordTypes(it2, it2.dataTypes);
|
|
17893
18161
|
}
|
|
17894
|
-
function checkContextTypes(
|
|
18162
|
+
function checkContextTypes(it2, types2) {
|
|
17895
18163
|
if (!types2.length)
|
|
17896
18164
|
return;
|
|
17897
|
-
if (!
|
|
17898
|
-
|
|
18165
|
+
if (!it2.dataTypes.length) {
|
|
18166
|
+
it2.dataTypes = types2;
|
|
17899
18167
|
return;
|
|
17900
18168
|
}
|
|
17901
18169
|
types2.forEach((t2) => {
|
|
17902
|
-
if (!includesType(
|
|
17903
|
-
strictTypesError(
|
|
18170
|
+
if (!includesType(it2.dataTypes, t2)) {
|
|
18171
|
+
strictTypesError(it2, `type "${t2}" not allowed by context "${it2.dataTypes.join(",")}"`);
|
|
17904
18172
|
}
|
|
17905
18173
|
});
|
|
17906
|
-
narrowSchemaTypes(
|
|
18174
|
+
narrowSchemaTypes(it2, types2);
|
|
17907
18175
|
}
|
|
17908
|
-
function checkMultipleTypes(
|
|
18176
|
+
function checkMultipleTypes(it2, ts) {
|
|
17909
18177
|
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
|
|
17910
|
-
strictTypesError(
|
|
18178
|
+
strictTypesError(it2, "use allowUnionTypes to allow union type keyword");
|
|
17911
18179
|
}
|
|
17912
18180
|
}
|
|
17913
|
-
function checkKeywordTypes(
|
|
17914
|
-
const rules2 =
|
|
18181
|
+
function checkKeywordTypes(it2, ts) {
|
|
18182
|
+
const rules2 = it2.self.RULES.all;
|
|
17915
18183
|
for (const keyword2 in rules2) {
|
|
17916
18184
|
const rule = rules2[keyword2];
|
|
17917
|
-
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(
|
|
18185
|
+
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it2.schema, rule)) {
|
|
17918
18186
|
const { type: type2 } = rule.definition;
|
|
17919
18187
|
if (type2.length && !type2.some((t2) => hasApplicableType(ts, t2))) {
|
|
17920
|
-
strictTypesError(
|
|
18188
|
+
strictTypesError(it2, `missing type "${type2.join(",")}" for keyword "${keyword2}"`);
|
|
17921
18189
|
}
|
|
17922
18190
|
}
|
|
17923
18191
|
}
|
|
@@ -17928,38 +18196,38 @@ function hasApplicableType(schTs, kwdT) {
|
|
|
17928
18196
|
function includesType(ts, t2) {
|
|
17929
18197
|
return ts.includes(t2) || t2 === "integer" && ts.includes("number");
|
|
17930
18198
|
}
|
|
17931
|
-
function narrowSchemaTypes(
|
|
18199
|
+
function narrowSchemaTypes(it2, withTypes) {
|
|
17932
18200
|
const ts = [];
|
|
17933
|
-
for (const t2 of
|
|
18201
|
+
for (const t2 of it2.dataTypes) {
|
|
17934
18202
|
if (includesType(withTypes, t2))
|
|
17935
18203
|
ts.push(t2);
|
|
17936
18204
|
else if (withTypes.includes("integer") && t2 === "number")
|
|
17937
18205
|
ts.push("integer");
|
|
17938
18206
|
}
|
|
17939
|
-
|
|
18207
|
+
it2.dataTypes = ts;
|
|
17940
18208
|
}
|
|
17941
|
-
function strictTypesError(
|
|
17942
|
-
const schemaPath =
|
|
18209
|
+
function strictTypesError(it2, msg) {
|
|
18210
|
+
const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
|
|
17943
18211
|
msg += ` at "${schemaPath}" (strictTypes)`;
|
|
17944
|
-
(0, util_1$p.checkStrictMode)(
|
|
18212
|
+
(0, util_1$p.checkStrictMode)(it2, msg, it2.opts.strictTypes);
|
|
17945
18213
|
}
|
|
17946
18214
|
class KeywordCxt {
|
|
17947
|
-
constructor(
|
|
17948
|
-
(0, keyword_1.validateKeywordUsage)(
|
|
17949
|
-
this.gen =
|
|
17950
|
-
this.allErrors =
|
|
18215
|
+
constructor(it2, def2, keyword2) {
|
|
18216
|
+
(0, keyword_1.validateKeywordUsage)(it2, def2, keyword2);
|
|
18217
|
+
this.gen = it2.gen;
|
|
18218
|
+
this.allErrors = it2.allErrors;
|
|
17951
18219
|
this.keyword = keyword2;
|
|
17952
|
-
this.data =
|
|
17953
|
-
this.schema =
|
|
17954
|
-
this.$data = def2.$data &&
|
|
17955
|
-
this.schemaValue = (0, util_1$p.schemaRefOrVal)(
|
|
18220
|
+
this.data = it2.data;
|
|
18221
|
+
this.schema = it2.schema[keyword2];
|
|
18222
|
+
this.$data = def2.$data && it2.opts.$data && this.schema && this.schema.$data;
|
|
18223
|
+
this.schemaValue = (0, util_1$p.schemaRefOrVal)(it2, this.schema, keyword2, this.$data);
|
|
17956
18224
|
this.schemaType = def2.schemaType;
|
|
17957
|
-
this.parentSchema =
|
|
18225
|
+
this.parentSchema = it2.schema;
|
|
17958
18226
|
this.params = {};
|
|
17959
|
-
this.it =
|
|
18227
|
+
this.it = it2;
|
|
17960
18228
|
this.def = def2;
|
|
17961
18229
|
if (this.$data) {
|
|
17962
|
-
this.schemaCode =
|
|
18230
|
+
this.schemaCode = it2.gen.const("vSchema", getData(this.$data, it2));
|
|
17963
18231
|
} else {
|
|
17964
18232
|
this.schemaCode = this.schemaValue;
|
|
17965
18233
|
if (!(0, keyword_1.validSchemaType)(this.schema, def2.schemaType, def2.allowUndefined)) {
|
|
@@ -17967,7 +18235,7 @@ class KeywordCxt {
|
|
|
17967
18235
|
}
|
|
17968
18236
|
}
|
|
17969
18237
|
if ("code" in def2 ? def2.trackErrors : def2.errors !== false) {
|
|
17970
|
-
this.errsCount =
|
|
18238
|
+
this.errsCount = it2.gen.const("_errs", names_1$6.default.errors);
|
|
17971
18239
|
}
|
|
17972
18240
|
}
|
|
17973
18241
|
result(condition, successAction, failAction) {
|
|
@@ -18066,14 +18334,14 @@ class KeywordCxt {
|
|
|
18066
18334
|
gen.else();
|
|
18067
18335
|
}
|
|
18068
18336
|
invalid$data() {
|
|
18069
|
-
const { gen, schemaCode, schemaType, def: def2, it } = this;
|
|
18337
|
+
const { gen, schemaCode, schemaType, def: def2, it: it2 } = this;
|
|
18070
18338
|
return (0, codegen_1$r.or)(wrong$DataType(), invalid$DataSchema());
|
|
18071
18339
|
function wrong$DataType() {
|
|
18072
18340
|
if (schemaType.length) {
|
|
18073
18341
|
if (!(schemaCode instanceof codegen_1$r.Name))
|
|
18074
18342
|
throw new Error("ajv implementation error");
|
|
18075
|
-
const
|
|
18076
|
-
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(
|
|
18343
|
+
const st2 = Array.isArray(schemaType) ? schemaType : [schemaType];
|
|
18344
|
+
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(st2, schemaCode, it2.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
|
|
18077
18345
|
}
|
|
18078
18346
|
return codegen_1$r.nil;
|
|
18079
18347
|
}
|
|
@@ -18094,27 +18362,27 @@ class KeywordCxt {
|
|
|
18094
18362
|
return nextContext;
|
|
18095
18363
|
}
|
|
18096
18364
|
mergeEvaluated(schemaCxt, toName) {
|
|
18097
|
-
const { it, gen } = this;
|
|
18098
|
-
if (!
|
|
18365
|
+
const { it: it2, gen } = this;
|
|
18366
|
+
if (!it2.opts.unevaluated)
|
|
18099
18367
|
return;
|
|
18100
|
-
if (
|
|
18101
|
-
|
|
18368
|
+
if (it2.props !== true && schemaCxt.props !== void 0) {
|
|
18369
|
+
it2.props = util_1$p.mergeEvaluated.props(gen, schemaCxt.props, it2.props, toName);
|
|
18102
18370
|
}
|
|
18103
|
-
if (
|
|
18104
|
-
|
|
18371
|
+
if (it2.items !== true && schemaCxt.items !== void 0) {
|
|
18372
|
+
it2.items = util_1$p.mergeEvaluated.items(gen, schemaCxt.items, it2.items, toName);
|
|
18105
18373
|
}
|
|
18106
18374
|
}
|
|
18107
18375
|
mergeValidEvaluated(schemaCxt, valid) {
|
|
18108
|
-
const { it, gen } = this;
|
|
18109
|
-
if (
|
|
18376
|
+
const { it: it2, gen } = this;
|
|
18377
|
+
if (it2.opts.unevaluated && (it2.props !== true || it2.items !== true)) {
|
|
18110
18378
|
gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1$r.Name));
|
|
18111
18379
|
return true;
|
|
18112
18380
|
}
|
|
18113
18381
|
}
|
|
18114
18382
|
}
|
|
18115
18383
|
validate$1.KeywordCxt = KeywordCxt;
|
|
18116
|
-
function keywordCode(
|
|
18117
|
-
const cxt = new KeywordCxt(
|
|
18384
|
+
function keywordCode(it2, keyword2, def2, ruleType) {
|
|
18385
|
+
const cxt = new KeywordCxt(it2, def2, keyword2);
|
|
18118
18386
|
if ("code" in def2) {
|
|
18119
18387
|
def2.code(cxt, ruleType);
|
|
18120
18388
|
} else if (cxt.$data && def2.validate) {
|
|
@@ -18778,7 +19046,7 @@ var uri_all = { exports: {} };
|
|
|
18778
19046
|
error$12("overflow");
|
|
18779
19047
|
}
|
|
18780
19048
|
if (_currentValue == n2) {
|
|
18781
|
-
var
|
|
19049
|
+
var q2 = delta;
|
|
18782
19050
|
for (
|
|
18783
19051
|
var k2 = base;
|
|
18784
19052
|
;
|
|
@@ -18786,15 +19054,15 @@ var uri_all = { exports: {} };
|
|
|
18786
19054
|
k2 += base
|
|
18787
19055
|
) {
|
|
18788
19056
|
var t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
18789
|
-
if (
|
|
19057
|
+
if (q2 < t2) {
|
|
18790
19058
|
break;
|
|
18791
19059
|
}
|
|
18792
|
-
var qMinusT =
|
|
19060
|
+
var qMinusT = q2 - t2;
|
|
18793
19061
|
var baseMinusT = base - t2;
|
|
18794
19062
|
output.push(stringFromCharCode(digitToBasic(t2 + qMinusT % baseMinusT, 0)));
|
|
18795
|
-
|
|
19063
|
+
q2 = floor(qMinusT / baseMinusT);
|
|
18796
19064
|
}
|
|
18797
|
-
output.push(stringFromCharCode(digitToBasic(
|
|
19065
|
+
output.push(stringFromCharCode(digitToBasic(q2, 0)));
|
|
18798
19066
|
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
18799
19067
|
delta = 0;
|
|
18800
19068
|
++handledCPCount;
|
|
@@ -20111,14 +20379,14 @@ const def$A = {
|
|
|
20111
20379
|
keyword: "$ref",
|
|
20112
20380
|
schemaType: "string",
|
|
20113
20381
|
code(cxt) {
|
|
20114
|
-
const { gen, schema: $ref, it } = cxt;
|
|
20115
|
-
const { baseId, schemaEnv: env, validateName, opts, self: self2 } =
|
|
20382
|
+
const { gen, schema: $ref, it: it2 } = cxt;
|
|
20383
|
+
const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it2;
|
|
20116
20384
|
const { root: root2 } = env;
|
|
20117
20385
|
if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
|
|
20118
20386
|
return callRootRef();
|
|
20119
20387
|
const schOrEnv = compile_1$2.resolveRef.call(self2, root2, baseId, $ref);
|
|
20120
20388
|
if (schOrEnv === void 0)
|
|
20121
|
-
throw new ref_error_1.default(
|
|
20389
|
+
throw new ref_error_1.default(it2.opts.uriResolver, baseId, $ref);
|
|
20122
20390
|
if (schOrEnv instanceof compile_1$2.SchemaEnv)
|
|
20123
20391
|
return callValidate(schOrEnv);
|
|
20124
20392
|
return inlineRefSchema(schOrEnv);
|
|
@@ -20153,8 +20421,8 @@ function getValidate(cxt, sch) {
|
|
|
20153
20421
|
}
|
|
20154
20422
|
ref.getValidate = getValidate;
|
|
20155
20423
|
function callRef(cxt, v2, sch, $async) {
|
|
20156
|
-
const { gen, it } = cxt;
|
|
20157
|
-
const { allErrors, schemaEnv: env, opts } =
|
|
20424
|
+
const { gen, it: it2 } = cxt;
|
|
20425
|
+
const { allErrors, schemaEnv: env, opts } = it2;
|
|
20158
20426
|
const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
|
|
20159
20427
|
if ($async)
|
|
20160
20428
|
callAsyncRef();
|
|
@@ -20170,7 +20438,7 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
20170
20438
|
if (!allErrors)
|
|
20171
20439
|
gen.assign(valid, true);
|
|
20172
20440
|
}, (e2) => {
|
|
20173
|
-
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${
|
|
20441
|
+
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${it2.ValidationError})`, () => gen.throw(e2));
|
|
20174
20442
|
addErrorsFrom(e2);
|
|
20175
20443
|
if (!allErrors)
|
|
20176
20444
|
gen.assign(valid, false);
|
|
@@ -20187,27 +20455,27 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
20187
20455
|
}
|
|
20188
20456
|
function addEvaluatedFrom(source) {
|
|
20189
20457
|
var _a;
|
|
20190
|
-
if (!
|
|
20458
|
+
if (!it2.opts.unevaluated)
|
|
20191
20459
|
return;
|
|
20192
20460
|
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
20193
|
-
if (
|
|
20461
|
+
if (it2.props !== true) {
|
|
20194
20462
|
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
20195
20463
|
if (schEvaluated.props !== void 0) {
|
|
20196
|
-
|
|
20464
|
+
it2.props = util_1$n.mergeEvaluated.props(gen, schEvaluated.props, it2.props);
|
|
20197
20465
|
}
|
|
20198
20466
|
} else {
|
|
20199
20467
|
const props = gen.var("props", (0, codegen_1$p._)`${source}.evaluated.props`);
|
|
20200
|
-
|
|
20468
|
+
it2.props = util_1$n.mergeEvaluated.props(gen, props, it2.props, codegen_1$p.Name);
|
|
20201
20469
|
}
|
|
20202
20470
|
}
|
|
20203
|
-
if (
|
|
20471
|
+
if (it2.items !== true) {
|
|
20204
20472
|
if (schEvaluated && !schEvaluated.dynamicItems) {
|
|
20205
20473
|
if (schEvaluated.items !== void 0) {
|
|
20206
|
-
|
|
20474
|
+
it2.items = util_1$n.mergeEvaluated.items(gen, schEvaluated.items, it2.items);
|
|
20207
20475
|
}
|
|
20208
20476
|
} else {
|
|
20209
20477
|
const items2 = gen.var("items", (0, codegen_1$p._)`${source}.evaluated.items`);
|
|
20210
|
-
|
|
20478
|
+
it2.items = util_1$n.mergeEvaluated.items(gen, items2, it2.items, codegen_1$p.Name);
|
|
20211
20479
|
}
|
|
20212
20480
|
}
|
|
20213
20481
|
}
|
|
@@ -20269,8 +20537,8 @@ const def$y = {
|
|
|
20269
20537
|
$data: true,
|
|
20270
20538
|
error: error$j,
|
|
20271
20539
|
code(cxt) {
|
|
20272
|
-
const { gen, data, schemaCode, it } = cxt;
|
|
20273
|
-
const prec =
|
|
20540
|
+
const { gen, data, schemaCode, it: it2 } = cxt;
|
|
20541
|
+
const prec = it2.opts.multipleOfPrecision;
|
|
20274
20542
|
const res = gen.let("res");
|
|
20275
20543
|
const invalid = prec ? (0, codegen_1$n._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1$n._)`${res} !== parseInt(${res})`;
|
|
20276
20544
|
cxt.fail$data((0, codegen_1$n._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
@@ -20316,9 +20584,9 @@ const def$x = {
|
|
|
20316
20584
|
$data: true,
|
|
20317
20585
|
error: error$i,
|
|
20318
20586
|
code(cxt) {
|
|
20319
|
-
const { keyword: keyword2, data, schemaCode, it } = cxt;
|
|
20587
|
+
const { keyword: keyword2, data, schemaCode, it: it2 } = cxt;
|
|
20320
20588
|
const op = keyword2 === "maxLength" ? codegen_1$m.operators.GT : codegen_1$m.operators.LT;
|
|
20321
|
-
const len =
|
|
20589
|
+
const len = it2.opts.unicode === false ? (0, codegen_1$m._)`${data}.length` : (0, codegen_1$m._)`${(0, util_1$m.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;
|
|
20322
20590
|
cxt.fail$data((0, codegen_1$m._)`${len} ${op} ${schemaCode}`);
|
|
20323
20591
|
}
|
|
20324
20592
|
};
|
|
@@ -20338,8 +20606,8 @@ const def$w = {
|
|
|
20338
20606
|
$data: true,
|
|
20339
20607
|
error: error$h,
|
|
20340
20608
|
code(cxt) {
|
|
20341
|
-
const { data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
20342
|
-
const u2 =
|
|
20609
|
+
const { data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
20610
|
+
const u2 = it2.opts.unicodeRegExp ? "u" : "";
|
|
20343
20611
|
const regExp = $data ? (0, codegen_1$l._)`(new RegExp(${schemaCode}, ${u2}))` : (0, code_1$7.usePattern)(cxt, schema2);
|
|
20344
20612
|
cxt.fail$data((0, codegen_1$l._)`!${regExp}.test(${data})`);
|
|
20345
20613
|
}
|
|
@@ -20384,12 +20652,12 @@ const def$u = {
|
|
|
20384
20652
|
$data: true,
|
|
20385
20653
|
error: error$f,
|
|
20386
20654
|
code(cxt) {
|
|
20387
|
-
const { gen, schema: schema2, schemaCode, data, $data, it } = cxt;
|
|
20388
|
-
const { opts } =
|
|
20655
|
+
const { gen, schema: schema2, schemaCode, data, $data, it: it2 } = cxt;
|
|
20656
|
+
const { opts } = it2;
|
|
20389
20657
|
if (!$data && schema2.length === 0)
|
|
20390
20658
|
return;
|
|
20391
20659
|
const useLoop = schema2.length >= opts.loopRequired;
|
|
20392
|
-
if (
|
|
20660
|
+
if (it2.allErrors)
|
|
20393
20661
|
allErrorsMode();
|
|
20394
20662
|
else
|
|
20395
20663
|
exitOnErrorMode();
|
|
@@ -20398,9 +20666,9 @@ const def$u = {
|
|
|
20398
20666
|
const { definedProperties } = cxt.it;
|
|
20399
20667
|
for (const requiredKey of schema2) {
|
|
20400
20668
|
if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === void 0 && !definedProperties.has(requiredKey)) {
|
|
20401
|
-
const schemaPath =
|
|
20669
|
+
const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
|
|
20402
20670
|
const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;
|
|
20403
|
-
(0, util_1$l.checkStrictMode)(
|
|
20671
|
+
(0, util_1$l.checkStrictMode)(it2, msg, it2.opts.strictRequired);
|
|
20404
20672
|
}
|
|
20405
20673
|
}
|
|
20406
20674
|
}
|
|
@@ -20489,7 +20757,7 @@ const def$s = {
|
|
|
20489
20757
|
$data: true,
|
|
20490
20758
|
error: error$d,
|
|
20491
20759
|
code(cxt) {
|
|
20492
|
-
const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it } = cxt;
|
|
20760
|
+
const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it: it2 } = cxt;
|
|
20493
20761
|
if (!$data && !schema2)
|
|
20494
20762
|
return;
|
|
20495
20763
|
const valid = gen.let("valid");
|
|
@@ -20508,7 +20776,7 @@ const def$s = {
|
|
|
20508
20776
|
}
|
|
20509
20777
|
function loopN(i2, j2) {
|
|
20510
20778
|
const item = gen.name("item");
|
|
20511
|
-
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item,
|
|
20779
|
+
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it2.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
20512
20780
|
const indices = gen.const("indices", (0, codegen_1$h._)`{}`);
|
|
20513
20781
|
gen.for((0, codegen_1$h._)`;${i2}--;`, () => {
|
|
20514
20782
|
gen.let(item, (0, codegen_1$h._)`${data}[${i2}]`);
|
|
@@ -20571,10 +20839,10 @@ const def$q = {
|
|
|
20571
20839
|
$data: true,
|
|
20572
20840
|
error: error$b,
|
|
20573
20841
|
code(cxt) {
|
|
20574
|
-
const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
20842
|
+
const { gen, data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
20575
20843
|
if (!$data && schema2.length === 0)
|
|
20576
20844
|
throw new Error("enum must have non-empty array");
|
|
20577
|
-
const useLoop = schema2.length >=
|
|
20845
|
+
const useLoop = schema2.length >= it2.opts.loopEnum;
|
|
20578
20846
|
let eql;
|
|
20579
20847
|
const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1$i.useFunc)(gen, equal_1.default);
|
|
20580
20848
|
let valid;
|
|
@@ -20647,23 +20915,23 @@ const def$p = {
|
|
|
20647
20915
|
before: "uniqueItems",
|
|
20648
20916
|
error: error$a,
|
|
20649
20917
|
code(cxt) {
|
|
20650
|
-
const { parentSchema, it } = cxt;
|
|
20918
|
+
const { parentSchema, it: it2 } = cxt;
|
|
20651
20919
|
const { items: items2 } = parentSchema;
|
|
20652
20920
|
if (!Array.isArray(items2)) {
|
|
20653
|
-
(0, util_1$h.checkStrictMode)(
|
|
20921
|
+
(0, util_1$h.checkStrictMode)(it2, '"additionalItems" is ignored when "items" is not an array of schemas');
|
|
20654
20922
|
return;
|
|
20655
20923
|
}
|
|
20656
20924
|
validateAdditionalItems(cxt, items2);
|
|
20657
20925
|
}
|
|
20658
20926
|
};
|
|
20659
20927
|
function validateAdditionalItems(cxt, items2) {
|
|
20660
|
-
const { gen, schema: schema2, data, keyword: keyword2, it } = cxt;
|
|
20661
|
-
|
|
20928
|
+
const { gen, schema: schema2, data, keyword: keyword2, it: it2 } = cxt;
|
|
20929
|
+
it2.items = true;
|
|
20662
20930
|
const len = gen.const("len", (0, codegen_1$e._)`${data}.length`);
|
|
20663
20931
|
if (schema2 === false) {
|
|
20664
20932
|
cxt.setParams({ len: items2.length });
|
|
20665
20933
|
cxt.pass((0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
20666
|
-
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(
|
|
20934
|
+
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(it2, schema2)) {
|
|
20667
20935
|
const valid = gen.var("valid", (0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
20668
20936
|
gen.if((0, codegen_1$e.not)(valid), () => validateItems(valid));
|
|
20669
20937
|
cxt.ok(valid);
|
|
@@ -20671,7 +20939,7 @@ function validateAdditionalItems(cxt, items2) {
|
|
|
20671
20939
|
function validateItems(valid) {
|
|
20672
20940
|
gen.forRange("i", items2.length, len, (i2) => {
|
|
20673
20941
|
cxt.subschema({ keyword: keyword2, dataProp: i2, dataPropType: util_1$h.Type.Num }, valid);
|
|
20674
|
-
if (!
|
|
20942
|
+
if (!it2.allErrors)
|
|
20675
20943
|
gen.if((0, codegen_1$e.not)(valid), () => gen.break());
|
|
20676
20944
|
});
|
|
20677
20945
|
}
|
|
@@ -20691,25 +20959,25 @@ const def$o = {
|
|
|
20691
20959
|
schemaType: ["object", "array", "boolean"],
|
|
20692
20960
|
before: "uniqueItems",
|
|
20693
20961
|
code(cxt) {
|
|
20694
|
-
const { schema: schema2, it } = cxt;
|
|
20962
|
+
const { schema: schema2, it: it2 } = cxt;
|
|
20695
20963
|
if (Array.isArray(schema2))
|
|
20696
20964
|
return validateTuple(cxt, "additionalItems", schema2);
|
|
20697
|
-
|
|
20698
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20965
|
+
it2.items = true;
|
|
20966
|
+
if ((0, util_1$g.alwaysValidSchema)(it2, schema2))
|
|
20699
20967
|
return;
|
|
20700
20968
|
cxt.ok((0, code_1$5.validateArray)(cxt));
|
|
20701
20969
|
}
|
|
20702
20970
|
};
|
|
20703
20971
|
function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
20704
|
-
const { gen, parentSchema, data, keyword: keyword2, it } = cxt;
|
|
20972
|
+
const { gen, parentSchema, data, keyword: keyword2, it: it2 } = cxt;
|
|
20705
20973
|
checkStrictTuple(parentSchema);
|
|
20706
|
-
if (
|
|
20707
|
-
|
|
20974
|
+
if (it2.opts.unevaluated && schArr.length && it2.items !== true) {
|
|
20975
|
+
it2.items = util_1$g.mergeEvaluated.items(gen, schArr.length, it2.items);
|
|
20708
20976
|
}
|
|
20709
20977
|
const valid = gen.name("valid");
|
|
20710
20978
|
const len = gen.const("len", (0, codegen_1$d._)`${data}.length`);
|
|
20711
20979
|
schArr.forEach((sch, i2) => {
|
|
20712
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20980
|
+
if ((0, util_1$g.alwaysValidSchema)(it2, sch))
|
|
20713
20981
|
return;
|
|
20714
20982
|
gen.if((0, codegen_1$d._)`${len} > ${i2}`, () => cxt.subschema({
|
|
20715
20983
|
keyword: keyword2,
|
|
@@ -20719,12 +20987,12 @@ function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
|
20719
20987
|
cxt.ok(valid);
|
|
20720
20988
|
});
|
|
20721
20989
|
function checkStrictTuple(sch) {
|
|
20722
|
-
const { opts, errSchemaPath } =
|
|
20990
|
+
const { opts, errSchemaPath } = it2;
|
|
20723
20991
|
const l2 = schArr.length;
|
|
20724
20992
|
const fullTuple = l2 === sch.minItems && (l2 === sch.maxItems || sch[extraItems] === false);
|
|
20725
20993
|
if (opts.strictTuples && !fullTuple) {
|
|
20726
20994
|
const msg = `"${keyword2}" is ${l2}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
|
|
20727
|
-
(0, util_1$g.checkStrictMode)(
|
|
20995
|
+
(0, util_1$g.checkStrictMode)(it2, msg, opts.strictTuples);
|
|
20728
20996
|
}
|
|
20729
20997
|
}
|
|
20730
20998
|
}
|
|
@@ -20757,10 +21025,10 @@ const def$m = {
|
|
|
20757
21025
|
before: "uniqueItems",
|
|
20758
21026
|
error: error$9,
|
|
20759
21027
|
code(cxt) {
|
|
20760
|
-
const { schema: schema2, parentSchema, it } = cxt;
|
|
21028
|
+
const { schema: schema2, parentSchema, it: it2 } = cxt;
|
|
20761
21029
|
const { prefixItems: prefixItems2 } = parentSchema;
|
|
20762
|
-
|
|
20763
|
-
if ((0, util_1$f.alwaysValidSchema)(
|
|
21030
|
+
it2.items = true;
|
|
21031
|
+
if ((0, util_1$f.alwaysValidSchema)(it2, schema2))
|
|
20764
21032
|
return;
|
|
20765
21033
|
if (prefixItems2)
|
|
20766
21034
|
(0, additionalItems_1$1.validateAdditionalItems)(cxt, prefixItems2);
|
|
@@ -20785,11 +21053,11 @@ const def$l = {
|
|
|
20785
21053
|
trackErrors: true,
|
|
20786
21054
|
error: error$8,
|
|
20787
21055
|
code(cxt) {
|
|
20788
|
-
const { gen, schema: schema2, parentSchema, data, it } = cxt;
|
|
21056
|
+
const { gen, schema: schema2, parentSchema, data, it: it2 } = cxt;
|
|
20789
21057
|
let min;
|
|
20790
21058
|
let max;
|
|
20791
21059
|
const { minContains, maxContains } = parentSchema;
|
|
20792
|
-
if (
|
|
21060
|
+
if (it2.opts.next) {
|
|
20793
21061
|
min = minContains === void 0 ? 1 : minContains;
|
|
20794
21062
|
max = maxContains;
|
|
20795
21063
|
} else {
|
|
@@ -20798,22 +21066,22 @@ const def$l = {
|
|
|
20798
21066
|
const len = gen.const("len", (0, codegen_1$b._)`${data}.length`);
|
|
20799
21067
|
cxt.setParams({ min, max });
|
|
20800
21068
|
if (max === void 0 && min === 0) {
|
|
20801
|
-
(0, util_1$e.checkStrictMode)(
|
|
21069
|
+
(0, util_1$e.checkStrictMode)(it2, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
20802
21070
|
return;
|
|
20803
21071
|
}
|
|
20804
21072
|
if (max !== void 0 && min > max) {
|
|
20805
|
-
(0, util_1$e.checkStrictMode)(
|
|
21073
|
+
(0, util_1$e.checkStrictMode)(it2, `"minContains" > "maxContains" is always invalid`);
|
|
20806
21074
|
cxt.fail();
|
|
20807
21075
|
return;
|
|
20808
21076
|
}
|
|
20809
|
-
if ((0, util_1$e.alwaysValidSchema)(
|
|
21077
|
+
if ((0, util_1$e.alwaysValidSchema)(it2, schema2)) {
|
|
20810
21078
|
let cond = (0, codegen_1$b._)`${len} >= ${min}`;
|
|
20811
21079
|
if (max !== void 0)
|
|
20812
21080
|
cond = (0, codegen_1$b._)`${cond} && ${len} <= ${max}`;
|
|
20813
21081
|
cxt.pass(cond);
|
|
20814
21082
|
return;
|
|
20815
21083
|
}
|
|
20816
|
-
|
|
21084
|
+
it2.items = true;
|
|
20817
21085
|
const valid = gen.name("valid");
|
|
20818
21086
|
if (max === void 0 && min === 1) {
|
|
20819
21087
|
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
@@ -20898,7 +21166,7 @@ var dependencies = {};
|
|
|
20898
21166
|
return [propertyDeps, schemaDeps];
|
|
20899
21167
|
}
|
|
20900
21168
|
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
20901
|
-
const { gen, data, it } = cxt;
|
|
21169
|
+
const { gen, data, it: it2 } = cxt;
|
|
20902
21170
|
if (Object.keys(propertyDeps).length === 0)
|
|
20903
21171
|
return;
|
|
20904
21172
|
const missing = gen.let("missing");
|
|
@@ -20906,13 +21174,13 @@ var dependencies = {};
|
|
|
20906
21174
|
const deps = propertyDeps[prop];
|
|
20907
21175
|
if (deps.length === 0)
|
|
20908
21176
|
continue;
|
|
20909
|
-
const hasProperty = (0, code_12.propertyInData)(gen, data, prop,
|
|
21177
|
+
const hasProperty = (0, code_12.propertyInData)(gen, data, prop, it2.opts.ownProperties);
|
|
20910
21178
|
cxt.setParams({
|
|
20911
21179
|
property: prop,
|
|
20912
21180
|
depsCount: deps.length,
|
|
20913
21181
|
deps: deps.join(", ")
|
|
20914
21182
|
});
|
|
20915
|
-
if (
|
|
21183
|
+
if (it2.allErrors) {
|
|
20916
21184
|
gen.if(hasProperty, () => {
|
|
20917
21185
|
for (const depProp of deps) {
|
|
20918
21186
|
(0, code_12.checkReportMissingProp)(cxt, depProp);
|
|
@@ -20927,13 +21195,13 @@ var dependencies = {};
|
|
|
20927
21195
|
}
|
|
20928
21196
|
exports.validatePropertyDeps = validatePropertyDeps;
|
|
20929
21197
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
20930
|
-
const { gen, data, keyword: keyword2, it } = cxt;
|
|
21198
|
+
const { gen, data, keyword: keyword2, it: it2 } = cxt;
|
|
20931
21199
|
const valid = gen.name("valid");
|
|
20932
21200
|
for (const prop in schemaDeps) {
|
|
20933
|
-
if ((0, util_12.alwaysValidSchema)(
|
|
21201
|
+
if ((0, util_12.alwaysValidSchema)(it2, schemaDeps[prop]))
|
|
20934
21202
|
continue;
|
|
20935
21203
|
gen.if(
|
|
20936
|
-
(0, code_12.propertyInData)(gen, data, prop,
|
|
21204
|
+
(0, code_12.propertyInData)(gen, data, prop, it2.opts.ownProperties),
|
|
20937
21205
|
() => {
|
|
20938
21206
|
const schCxt = cxt.subschema({ keyword: keyword2, schemaProp: prop }, valid);
|
|
20939
21207
|
cxt.mergeValidEvaluated(schCxt, valid);
|
|
@@ -20961,8 +21229,8 @@ const def$k = {
|
|
|
20961
21229
|
schemaType: ["object", "boolean"],
|
|
20962
21230
|
error: error$7,
|
|
20963
21231
|
code(cxt) {
|
|
20964
|
-
const { gen, schema: schema2, data, it } = cxt;
|
|
20965
|
-
if ((0, util_1$d.alwaysValidSchema)(
|
|
21232
|
+
const { gen, schema: schema2, data, it: it2 } = cxt;
|
|
21233
|
+
if ((0, util_1$d.alwaysValidSchema)(it2, schema2))
|
|
20966
21234
|
return;
|
|
20967
21235
|
const valid = gen.name("valid");
|
|
20968
21236
|
gen.forIn("key", data, (key) => {
|
|
@@ -20976,7 +21244,7 @@ const def$k = {
|
|
|
20976
21244
|
}, valid);
|
|
20977
21245
|
gen.if((0, codegen_1$a.not)(valid), () => {
|
|
20978
21246
|
cxt.error(true);
|
|
20979
|
-
if (!
|
|
21247
|
+
if (!it2.allErrors)
|
|
20980
21248
|
gen.break();
|
|
20981
21249
|
});
|
|
20982
21250
|
});
|
|
@@ -21002,12 +21270,12 @@ const def$j = {
|
|
|
21002
21270
|
trackErrors: true,
|
|
21003
21271
|
error: error$6,
|
|
21004
21272
|
code(cxt) {
|
|
21005
|
-
const { gen, schema: schema2, parentSchema, data, errsCount, it } = cxt;
|
|
21273
|
+
const { gen, schema: schema2, parentSchema, data, errsCount, it: it2 } = cxt;
|
|
21006
21274
|
if (!errsCount)
|
|
21007
21275
|
throw new Error("ajv implementation error");
|
|
21008
|
-
const { allErrors, opts } =
|
|
21009
|
-
|
|
21010
|
-
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(
|
|
21276
|
+
const { allErrors, opts } = it2;
|
|
21277
|
+
it2.props = true;
|
|
21278
|
+
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(it2, schema2))
|
|
21011
21279
|
return;
|
|
21012
21280
|
const props = (0, code_1$3.allSchemaProperties)(parentSchema.properties);
|
|
21013
21281
|
const patProps = (0, code_1$3.allSchemaProperties)(parentSchema.patternProperties);
|
|
@@ -21024,7 +21292,7 @@ const def$j = {
|
|
|
21024
21292
|
function isAdditional(key) {
|
|
21025
21293
|
let definedProp;
|
|
21026
21294
|
if (props.length > 8) {
|
|
21027
|
-
const propsSchema = (0, util_1$c.schemaRefOrVal)(
|
|
21295
|
+
const propsSchema = (0, util_1$c.schemaRefOrVal)(it2, parentSchema.properties, "properties");
|
|
21028
21296
|
definedProp = (0, code_1$3.isOwnProperty)(gen, propsSchema, key);
|
|
21029
21297
|
} else if (props.length) {
|
|
21030
21298
|
definedProp = (0, codegen_1$9.or)(...props.map((p2) => (0, codegen_1$9._)`${key} === ${p2}`));
|
|
@@ -21051,7 +21319,7 @@ const def$j = {
|
|
|
21051
21319
|
gen.break();
|
|
21052
21320
|
return;
|
|
21053
21321
|
}
|
|
21054
|
-
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(
|
|
21322
|
+
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(it2, schema2)) {
|
|
21055
21323
|
const valid = gen.name("valid");
|
|
21056
21324
|
if (opts.removeAdditional === "failing") {
|
|
21057
21325
|
applyAdditionalSchema(key, valid, false);
|
|
@@ -21095,18 +21363,18 @@ const def$i = {
|
|
|
21095
21363
|
type: "object",
|
|
21096
21364
|
schemaType: "object",
|
|
21097
21365
|
code(cxt) {
|
|
21098
|
-
const { gen, schema: schema2, parentSchema, data, it } = cxt;
|
|
21099
|
-
if (
|
|
21100
|
-
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(
|
|
21366
|
+
const { gen, schema: schema2, parentSchema, data, it: it2 } = cxt;
|
|
21367
|
+
if (it2.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
|
|
21368
|
+
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(it2, additionalProperties_1$1.default, "additionalProperties"));
|
|
21101
21369
|
}
|
|
21102
21370
|
const allProps = (0, code_1$2.allSchemaProperties)(schema2);
|
|
21103
21371
|
for (const prop of allProps) {
|
|
21104
|
-
|
|
21372
|
+
it2.definedProperties.add(prop);
|
|
21105
21373
|
}
|
|
21106
|
-
if (
|
|
21107
|
-
|
|
21374
|
+
if (it2.opts.unevaluated && allProps.length && it2.props !== true) {
|
|
21375
|
+
it2.props = util_1$b.mergeEvaluated.props(gen, (0, util_1$b.toHash)(allProps), it2.props);
|
|
21108
21376
|
}
|
|
21109
|
-
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(
|
|
21377
|
+
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(it2, schema2[p2]));
|
|
21110
21378
|
if (properties2.length === 0)
|
|
21111
21379
|
return;
|
|
21112
21380
|
const valid = gen.name("valid");
|
|
@@ -21114,9 +21382,9 @@ const def$i = {
|
|
|
21114
21382
|
if (hasDefault(prop)) {
|
|
21115
21383
|
applyPropertySchema(prop);
|
|
21116
21384
|
} else {
|
|
21117
|
-
gen.if((0, code_1$2.propertyInData)(gen, data, prop,
|
|
21385
|
+
gen.if((0, code_1$2.propertyInData)(gen, data, prop, it2.opts.ownProperties));
|
|
21118
21386
|
applyPropertySchema(prop);
|
|
21119
|
-
if (!
|
|
21387
|
+
if (!it2.allErrors)
|
|
21120
21388
|
gen.else().var(valid, true);
|
|
21121
21389
|
gen.endIf();
|
|
21122
21390
|
}
|
|
@@ -21124,7 +21392,7 @@ const def$i = {
|
|
|
21124
21392
|
cxt.ok(valid);
|
|
21125
21393
|
}
|
|
21126
21394
|
function hasDefault(prop) {
|
|
21127
|
-
return
|
|
21395
|
+
return it2.opts.useDefaults && !it2.compositeRule && schema2[prop].default !== void 0;
|
|
21128
21396
|
}
|
|
21129
21397
|
function applyPropertySchema(prop) {
|
|
21130
21398
|
cxt.subschema({
|
|
@@ -21147,25 +21415,25 @@ const def$h = {
|
|
|
21147
21415
|
type: "object",
|
|
21148
21416
|
schemaType: "object",
|
|
21149
21417
|
code(cxt) {
|
|
21150
|
-
const { gen, schema: schema2, data, parentSchema, it } = cxt;
|
|
21151
|
-
const { opts } =
|
|
21418
|
+
const { gen, schema: schema2, data, parentSchema, it: it2 } = cxt;
|
|
21419
|
+
const { opts } = it2;
|
|
21152
21420
|
const patterns = (0, code_1$1.allSchemaProperties)(schema2);
|
|
21153
|
-
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(
|
|
21154
|
-
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!
|
|
21421
|
+
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(it2, schema2[p2]));
|
|
21422
|
+
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it2.opts.unevaluated || it2.props === true)) {
|
|
21155
21423
|
return;
|
|
21156
21424
|
}
|
|
21157
21425
|
const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
|
|
21158
21426
|
const valid = gen.name("valid");
|
|
21159
|
-
if (
|
|
21160
|
-
|
|
21427
|
+
if (it2.props !== true && !(it2.props instanceof codegen_1$8.Name)) {
|
|
21428
|
+
it2.props = (0, util_2.evaluatedPropsToName)(gen, it2.props);
|
|
21161
21429
|
}
|
|
21162
|
-
const { props } =
|
|
21430
|
+
const { props } = it2;
|
|
21163
21431
|
validatePatternProperties();
|
|
21164
21432
|
function validatePatternProperties() {
|
|
21165
21433
|
for (const pat of patterns) {
|
|
21166
21434
|
if (checkProperties)
|
|
21167
21435
|
checkMatchingProperties(pat);
|
|
21168
|
-
if (
|
|
21436
|
+
if (it2.allErrors) {
|
|
21169
21437
|
validateProperties(pat);
|
|
21170
21438
|
} else {
|
|
21171
21439
|
gen.var(valid, true);
|
|
@@ -21177,7 +21445,7 @@ const def$h = {
|
|
|
21177
21445
|
function checkMatchingProperties(pat) {
|
|
21178
21446
|
for (const prop in checkProperties) {
|
|
21179
21447
|
if (new RegExp(pat).test(prop)) {
|
|
21180
|
-
(0, util_1$a.checkStrictMode)(
|
|
21448
|
+
(0, util_1$a.checkStrictMode)(it2, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
|
|
21181
21449
|
}
|
|
21182
21450
|
}
|
|
21183
21451
|
}
|
|
@@ -21193,9 +21461,9 @@ const def$h = {
|
|
|
21193
21461
|
dataPropType: util_2.Type.Str
|
|
21194
21462
|
}, valid);
|
|
21195
21463
|
}
|
|
21196
|
-
if (
|
|
21464
|
+
if (it2.opts.unevaluated && props !== true) {
|
|
21197
21465
|
gen.assign((0, codegen_1$8._)`${props}[${key}]`, true);
|
|
21198
|
-
} else if (!alwaysValid && !
|
|
21466
|
+
} else if (!alwaysValid && !it2.allErrors) {
|
|
21199
21467
|
gen.if((0, codegen_1$8.not)(valid), () => gen.break());
|
|
21200
21468
|
}
|
|
21201
21469
|
});
|
|
@@ -21212,8 +21480,8 @@ const def$g = {
|
|
|
21212
21480
|
schemaType: ["object", "boolean"],
|
|
21213
21481
|
trackErrors: true,
|
|
21214
21482
|
code(cxt) {
|
|
21215
|
-
const { gen, schema: schema2, it } = cxt;
|
|
21216
|
-
if ((0, util_1$9.alwaysValidSchema)(
|
|
21483
|
+
const { gen, schema: schema2, it: it2 } = cxt;
|
|
21484
|
+
if ((0, util_1$9.alwaysValidSchema)(it2, schema2)) {
|
|
21217
21485
|
cxt.fail();
|
|
21218
21486
|
return;
|
|
21219
21487
|
}
|
|
@@ -21254,10 +21522,10 @@ const def$e = {
|
|
|
21254
21522
|
trackErrors: true,
|
|
21255
21523
|
error: error$5,
|
|
21256
21524
|
code(cxt) {
|
|
21257
|
-
const { gen, schema: schema2, parentSchema, it } = cxt;
|
|
21525
|
+
const { gen, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
21258
21526
|
if (!Array.isArray(schema2))
|
|
21259
21527
|
throw new Error("ajv implementation error");
|
|
21260
|
-
if (
|
|
21528
|
+
if (it2.opts.discriminator && parentSchema.discriminator)
|
|
21261
21529
|
return;
|
|
21262
21530
|
const schArr = schema2;
|
|
21263
21531
|
const valid = gen.let("valid", false);
|
|
@@ -21269,7 +21537,7 @@ const def$e = {
|
|
|
21269
21537
|
function validateOneOf() {
|
|
21270
21538
|
schArr.forEach((sch, i2) => {
|
|
21271
21539
|
let schCxt;
|
|
21272
|
-
if ((0, util_1$8.alwaysValidSchema)(
|
|
21540
|
+
if ((0, util_1$8.alwaysValidSchema)(it2, sch)) {
|
|
21273
21541
|
gen.var(schValid, true);
|
|
21274
21542
|
} else {
|
|
21275
21543
|
schCxt = cxt.subschema({
|
|
@@ -21299,12 +21567,12 @@ const def$d = {
|
|
|
21299
21567
|
keyword: "allOf",
|
|
21300
21568
|
schemaType: "array",
|
|
21301
21569
|
code(cxt) {
|
|
21302
|
-
const { gen, schema: schema2, it } = cxt;
|
|
21570
|
+
const { gen, schema: schema2, it: it2 } = cxt;
|
|
21303
21571
|
if (!Array.isArray(schema2))
|
|
21304
21572
|
throw new Error("ajv implementation error");
|
|
21305
21573
|
const valid = gen.name("valid");
|
|
21306
21574
|
schema2.forEach((sch, i2) => {
|
|
21307
|
-
if ((0, util_1$7.alwaysValidSchema)(
|
|
21575
|
+
if ((0, util_1$7.alwaysValidSchema)(it2, sch))
|
|
21308
21576
|
return;
|
|
21309
21577
|
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i2 }, valid);
|
|
21310
21578
|
cxt.ok(valid);
|
|
@@ -21327,12 +21595,12 @@ const def$c = {
|
|
|
21327
21595
|
trackErrors: true,
|
|
21328
21596
|
error: error$4,
|
|
21329
21597
|
code(cxt) {
|
|
21330
|
-
const { gen, parentSchema, it } = cxt;
|
|
21598
|
+
const { gen, parentSchema, it: it2 } = cxt;
|
|
21331
21599
|
if (parentSchema.then === void 0 && parentSchema.else === void 0) {
|
|
21332
|
-
(0, util_1$6.checkStrictMode)(
|
|
21600
|
+
(0, util_1$6.checkStrictMode)(it2, '"if" without "then" and "else" is ignored');
|
|
21333
21601
|
}
|
|
21334
|
-
const hasThen = hasSchema(
|
|
21335
|
-
const hasElse = hasSchema(
|
|
21602
|
+
const hasThen = hasSchema(it2, "then");
|
|
21603
|
+
const hasElse = hasSchema(it2, "else");
|
|
21336
21604
|
if (!hasThen && !hasElse)
|
|
21337
21605
|
return;
|
|
21338
21606
|
const valid = gen.let("valid", true);
|
|
@@ -21371,9 +21639,9 @@ const def$c = {
|
|
|
21371
21639
|
}
|
|
21372
21640
|
}
|
|
21373
21641
|
};
|
|
21374
|
-
function hasSchema(
|
|
21375
|
-
const schema2 =
|
|
21376
|
-
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(
|
|
21642
|
+
function hasSchema(it2, keyword2) {
|
|
21643
|
+
const schema2 = it2.schema[keyword2];
|
|
21644
|
+
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(it2, schema2);
|
|
21377
21645
|
}
|
|
21378
21646
|
_if.default = def$c;
|
|
21379
21647
|
var thenElse = {};
|
|
@@ -21382,9 +21650,9 @@ const util_1$5 = util;
|
|
|
21382
21650
|
const def$b = {
|
|
21383
21651
|
keyword: ["then", "else"],
|
|
21384
21652
|
schemaType: ["object", "boolean"],
|
|
21385
|
-
code({ keyword: keyword2, parentSchema, it }) {
|
|
21653
|
+
code({ keyword: keyword2, parentSchema, it: it2 }) {
|
|
21386
21654
|
if (parentSchema.if === void 0)
|
|
21387
|
-
(0, util_1$5.checkStrictMode)(
|
|
21655
|
+
(0, util_1$5.checkStrictMode)(it2, `"${keyword2}" without "if" is ignored`);
|
|
21388
21656
|
}
|
|
21389
21657
|
};
|
|
21390
21658
|
thenElse.default = def$b;
|
|
@@ -21444,8 +21712,8 @@ const def$a = {
|
|
|
21444
21712
|
$data: true,
|
|
21445
21713
|
error: error$3,
|
|
21446
21714
|
code(cxt, ruleType) {
|
|
21447
|
-
const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
|
|
21448
|
-
const { opts, errSchemaPath, schemaEnv, self: self2 } =
|
|
21715
|
+
const { gen, data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
21716
|
+
const { opts, errSchemaPath, schemaEnv, self: self2 } = it2;
|
|
21449
21717
|
if (!opts.validateFormats)
|
|
21450
21718
|
return;
|
|
21451
21719
|
if ($data)
|
|
@@ -21564,10 +21832,10 @@ const def$9 = {
|
|
|
21564
21832
|
code: (cxt) => dynamicAnchor(cxt, cxt.schema)
|
|
21565
21833
|
};
|
|
21566
21834
|
function dynamicAnchor(cxt, anchor) {
|
|
21567
|
-
const { gen, it } = cxt;
|
|
21568
|
-
|
|
21835
|
+
const { gen, it: it2 } = cxt;
|
|
21836
|
+
it2.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
21569
21837
|
const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
|
|
21570
|
-
const validate2 =
|
|
21838
|
+
const validate2 = it2.errSchemaPath === "#" ? it2.validateName : _getValidate(cxt);
|
|
21571
21839
|
gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
|
|
21572
21840
|
}
|
|
21573
21841
|
dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
|
|
@@ -21592,11 +21860,11 @@ const def$8 = {
|
|
|
21592
21860
|
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
21593
21861
|
};
|
|
21594
21862
|
function dynamicRef(cxt, ref2) {
|
|
21595
|
-
const { gen, keyword: keyword2, it } = cxt;
|
|
21863
|
+
const { gen, keyword: keyword2, it: it2 } = cxt;
|
|
21596
21864
|
if (ref2[0] !== "#")
|
|
21597
21865
|
throw new Error(`"${keyword2}" only supports hash fragment reference`);
|
|
21598
21866
|
const anchor = ref2.slice(1);
|
|
21599
|
-
if (
|
|
21867
|
+
if (it2.allErrors) {
|
|
21600
21868
|
_dynamicRef();
|
|
21601
21869
|
} else {
|
|
21602
21870
|
const valid = gen.let("valid", false);
|
|
@@ -21604,11 +21872,11 @@ function dynamicRef(cxt, ref2) {
|
|
|
21604
21872
|
cxt.ok(valid);
|
|
21605
21873
|
}
|
|
21606
21874
|
function _dynamicRef(valid) {
|
|
21607
|
-
if (
|
|
21875
|
+
if (it2.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
21608
21876
|
const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
|
|
21609
|
-
gen.if(v2, _callRef(v2, valid), _callRef(
|
|
21877
|
+
gen.if(v2, _callRef(v2, valid), _callRef(it2.validateName, valid));
|
|
21610
21878
|
} else {
|
|
21611
|
-
_callRef(
|
|
21879
|
+
_callRef(it2.validateName, valid)();
|
|
21612
21880
|
}
|
|
21613
21881
|
}
|
|
21614
21882
|
function _callRef(validate2, valid) {
|
|
@@ -21680,9 +21948,9 @@ const def$3 = {
|
|
|
21680
21948
|
keyword: ["maxContains", "minContains"],
|
|
21681
21949
|
type: "array",
|
|
21682
21950
|
schemaType: "number",
|
|
21683
|
-
code({ keyword: keyword2, parentSchema, it }) {
|
|
21951
|
+
code({ keyword: keyword2, parentSchema, it: it2 }) {
|
|
21684
21952
|
if (parentSchema.contains === void 0) {
|
|
21685
|
-
(0, util_1$3.checkStrictMode)(
|
|
21953
|
+
(0, util_1$3.checkStrictMode)(it2, `"${keyword2}" without "contains" is ignored`);
|
|
21686
21954
|
}
|
|
21687
21955
|
}
|
|
21688
21956
|
};
|
|
@@ -21710,16 +21978,16 @@ const def$2 = {
|
|
|
21710
21978
|
trackErrors: true,
|
|
21711
21979
|
error: error$2,
|
|
21712
21980
|
code(cxt) {
|
|
21713
|
-
const { gen, schema: schema2, data, errsCount, it } = cxt;
|
|
21981
|
+
const { gen, schema: schema2, data, errsCount, it: it2 } = cxt;
|
|
21714
21982
|
if (!errsCount)
|
|
21715
21983
|
throw new Error("ajv implementation error");
|
|
21716
|
-
const { allErrors, props } =
|
|
21984
|
+
const { allErrors, props } = it2;
|
|
21717
21985
|
if (props instanceof codegen_1$2.Name) {
|
|
21718
21986
|
gen.if((0, codegen_1$2._)`${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
21719
21987
|
} else if (props !== true) {
|
|
21720
21988
|
gen.forIn("key", data, (key) => props === void 0 ? unevaluatedPropCode(key) : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
21721
21989
|
}
|
|
21722
|
-
|
|
21990
|
+
it2.props = true;
|
|
21723
21991
|
cxt.ok((0, codegen_1$2._)`${errsCount} === ${names_1.default.errors}`);
|
|
21724
21992
|
function unevaluatedPropCode(key) {
|
|
21725
21993
|
if (schema2 === false) {
|
|
@@ -21729,7 +21997,7 @@ const def$2 = {
|
|
|
21729
21997
|
gen.break();
|
|
21730
21998
|
return;
|
|
21731
21999
|
}
|
|
21732
|
-
if (!(0, util_1$2.alwaysValidSchema)(
|
|
22000
|
+
if (!(0, util_1$2.alwaysValidSchema)(it2, schema2)) {
|
|
21733
22001
|
const valid = gen.name("valid");
|
|
21734
22002
|
cxt.subschema({
|
|
21735
22003
|
keyword: "unevaluatedProperties",
|
|
@@ -21768,24 +22036,24 @@ const def$1 = {
|
|
|
21768
22036
|
schemaType: ["boolean", "object"],
|
|
21769
22037
|
error: error$1,
|
|
21770
22038
|
code(cxt) {
|
|
21771
|
-
const { gen, schema: schema2, data, it } = cxt;
|
|
21772
|
-
const items2 =
|
|
22039
|
+
const { gen, schema: schema2, data, it: it2 } = cxt;
|
|
22040
|
+
const items2 = it2.items || 0;
|
|
21773
22041
|
if (items2 === true)
|
|
21774
22042
|
return;
|
|
21775
22043
|
const len = gen.const("len", (0, codegen_1$1._)`${data}.length`);
|
|
21776
22044
|
if (schema2 === false) {
|
|
21777
22045
|
cxt.setParams({ len: items2 });
|
|
21778
22046
|
cxt.fail((0, codegen_1$1._)`${len} > ${items2}`);
|
|
21779
|
-
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(
|
|
22047
|
+
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(it2, schema2)) {
|
|
21780
22048
|
const valid = gen.var("valid", (0, codegen_1$1._)`${len} <= ${items2}`);
|
|
21781
22049
|
gen.if((0, codegen_1$1.not)(valid), () => validateItems(valid, items2));
|
|
21782
22050
|
cxt.ok(valid);
|
|
21783
22051
|
}
|
|
21784
|
-
|
|
22052
|
+
it2.items = true;
|
|
21785
22053
|
function validateItems(valid, from) {
|
|
21786
22054
|
gen.forRange("i", from, len, (i2) => {
|
|
21787
22055
|
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i2, dataPropType: util_1$1.Type.Num }, valid);
|
|
21788
|
-
if (!
|
|
22056
|
+
if (!it2.allErrors)
|
|
21789
22057
|
gen.if((0, codegen_1$1.not)(valid), () => gen.break());
|
|
21790
22058
|
});
|
|
21791
22059
|
}
|
|
@@ -21822,9 +22090,9 @@ const def = {
|
|
|
21822
22090
|
schemaType: "object",
|
|
21823
22091
|
error,
|
|
21824
22092
|
code(cxt) {
|
|
21825
|
-
const { gen, data, schema: schema2, parentSchema, it } = cxt;
|
|
22093
|
+
const { gen, data, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
21826
22094
|
const { oneOf: oneOf2 } = parentSchema;
|
|
21827
|
-
if (!
|
|
22095
|
+
if (!it2.opts.discriminator) {
|
|
21828
22096
|
throw new Error("discriminator: requires discriminator option");
|
|
21829
22097
|
}
|
|
21830
22098
|
const tagName = schema2.propertyName;
|
|
@@ -21862,8 +22130,8 @@ const def = {
|
|
|
21862
22130
|
let tagRequired = true;
|
|
21863
22131
|
for (let i2 = 0; i2 < oneOf2.length; i2++) {
|
|
21864
22132
|
let sch = oneOf2[i2];
|
|
21865
|
-
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch,
|
|
21866
|
-
sch = compile_1.resolveRef.call(
|
|
22133
|
+
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it2.self.RULES)) {
|
|
22134
|
+
sch = compile_1.resolveRef.call(it2.self, it2.schemaEnv.root, it2.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
|
|
21867
22135
|
if (sch instanceof compile_1.SchemaEnv)
|
|
21868
22136
|
sch = sch.schema;
|
|
21869
22137
|
}
|
|
@@ -23459,7 +23727,7 @@ function handleComputedProperty(options) {
|
|
|
23459
23727
|
var _a;
|
|
23460
23728
|
return Object.assign({}, options, {
|
|
23461
23729
|
_computed: {
|
|
23462
|
-
version: "8.
|
|
23730
|
+
version: "8.50.0",
|
|
23463
23731
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23464
23732
|
}
|
|
23465
23733
|
});
|
|
@@ -26799,7 +27067,7 @@ class RebillyInstrumentsInstance {
|
|
|
26799
27067
|
await show({ componentName, payload });
|
|
26800
27068
|
}
|
|
26801
27069
|
get version() {
|
|
26802
|
-
return `RebillyInstruments Ver.${"8.
|
|
27070
|
+
return `RebillyInstruments Ver.${"8.50.0"}`;
|
|
26803
27071
|
}
|
|
26804
27072
|
on(eventName, callback) {
|
|
26805
27073
|
on({ eventName, callback });
|