@rebilly/instruments 7.5.0 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5975,7 +5975,7 @@ function cloneArrayDeep(val, instanceClone) {
5975
5975
  return res;
5976
5976
  }
5977
5977
  var cloneDeep_1 = cloneDeep;
5978
- const version = "54.4.1";
5978
+ const version = "54.4.2";
5979
5979
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5980
5980
  let nanoid = (size2 = 21) => {
5981
5981
  let id2 = "";
@@ -6339,9 +6339,9 @@ function AmlChecksResource({ apiHandler }) {
6339
6339
  offset = null,
6340
6340
  sort = null,
6341
6341
  filter: filter2 = null,
6342
- q: q2 = null
6342
+ q = null
6343
6343
  } = {}) {
6344
- const params = { limit, offset, sort, filter: filter2, q: q2 };
6344
+ const params = { limit, offset, sort, filter: filter2, q };
6345
6345
  return apiHandler.getAll(`aml-checks`, params);
6346
6346
  },
6347
6347
  get({ id: id2 }) {
@@ -6418,12 +6418,12 @@ function ApplicationsResource({ apiHandler }) {
6418
6418
  limit = null,
6419
6419
  offset = null,
6420
6420
  filter: filter2 = null,
6421
- q: q2 = null,
6421
+ q = null,
6422
6422
  expand = null,
6423
6423
  fields = null,
6424
6424
  sort = null
6425
6425
  } = {}) {
6426
- const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
6426
+ const params = { limit, offset, filter: filter2, q, expand, fields, sort };
6427
6427
  return apiHandler.getAll(`applications`, params);
6428
6428
  },
6429
6429
  create({ data }) {
@@ -6459,9 +6459,9 @@ function BillingPortalsResource$1({ apiHandler }) {
6459
6459
  offset = null,
6460
6460
  sort = null,
6461
6461
  filter: filter2 = null,
6462
- q: q2 = null
6462
+ q = null
6463
6463
  } = {}) {
6464
- const params = { limit, offset, sort, filter: filter2, q: q2 };
6464
+ const params = { limit, offset, sort, filter: filter2, q };
6465
6465
  return apiHandler.getAll(`billing-portals`, params);
6466
6466
  },
6467
6467
  create({ id: id2 = "", data }) {
@@ -6485,9 +6485,9 @@ function BlocklistsResource({ apiHandler }) {
6485
6485
  offset = null,
6486
6486
  sort = null,
6487
6487
  filter: filter2 = null,
6488
- q: q2 = null
6488
+ q = null
6489
6489
  } = {}) {
6490
- const params = { limit, offset, sort, filter: filter2, q: q2 };
6490
+ const params = { limit, offset, sort, filter: filter2, q };
6491
6491
  return apiHandler.getAll(`blocklists`, params);
6492
6492
  },
6493
6493
  create({ id: id2 = "", data }) {
@@ -6528,9 +6528,9 @@ function CheckoutFormsResource$1({ apiHandler }) {
6528
6528
  offset = null,
6529
6529
  sort = null,
6530
6530
  filter: filter2 = null,
6531
- q: q2 = null
6531
+ q = null
6532
6532
  } = {}) {
6533
- const params = { limit, offset, sort, filter: filter2, q: q2 };
6533
+ const params = { limit, offset, sort, filter: filter2, q };
6534
6534
  return apiHandler.getAll(`checkout-forms`, params);
6535
6535
  },
6536
6536
  create({ id: id2 = "", data }) {
@@ -6553,10 +6553,10 @@ function CouponsResource({ apiHandler }) {
6553
6553
  limit = null,
6554
6554
  offset = null,
6555
6555
  filter: filter2 = null,
6556
- q: q2 = null,
6556
+ q = null,
6557
6557
  sort = null
6558
6558
  } = {}) {
6559
- const params = { limit, offset, filter: filter2, q: q2, sort };
6559
+ const params = { limit, offset, filter: filter2, q, sort };
6560
6560
  return apiHandler.getAll(`coupons-redemptions`, params);
6561
6561
  },
6562
6562
  redeem({ data }) {
@@ -6572,10 +6572,10 @@ function CouponsResource({ apiHandler }) {
6572
6572
  limit = null,
6573
6573
  offset = null,
6574
6574
  filter: filter2 = null,
6575
- q: q2 = null,
6575
+ q = null,
6576
6576
  sort = null
6577
6577
  } = {}) {
6578
- const params = { limit, offset, filter: filter2, q: q2, sort };
6578
+ const params = { limit, offset, filter: filter2, q, sort };
6579
6579
  return apiHandler.getAll(`coupons`, params);
6580
6580
  },
6581
6581
  create({ id: id2 = "", data }) {
@@ -6599,9 +6599,9 @@ function CreditMemosResource({ apiHandler }) {
6599
6599
  sort = null,
6600
6600
  limit = null,
6601
6601
  offset = null,
6602
- q: q2 = null
6602
+ q = null
6603
6603
  } = {}) {
6604
- const params = { filter: filter2, sort, limit, offset, q: q2 };
6604
+ const params = { filter: filter2, sort, limit, offset, q };
6605
6605
  return apiHandler.getAll(`credit-memos`, params);
6606
6606
  },
6607
6607
  create({ id: id2 = "", data }) {
@@ -6625,9 +6625,9 @@ function CreditMemosResource({ apiHandler }) {
6625
6625
  offset = null,
6626
6626
  filter: filter2 = null,
6627
6627
  sort = null,
6628
- q: q2 = null
6628
+ q = null
6629
6629
  }) {
6630
- const params = { limit, offset, filter: filter2, sort, q: q2 };
6630
+ const params = { limit, offset, filter: filter2, sort, q };
6631
6631
  return apiHandler.getAll(`credit-memos/${id2}/timeline`, params);
6632
6632
  },
6633
6633
  createTimelineComment({ id: id2, data }) {
@@ -6648,9 +6648,9 @@ function CustomDomainsResource({ apiHandler }) {
6648
6648
  offset = null,
6649
6649
  sort = null,
6650
6650
  filter: filter2 = null,
6651
- q: q2 = null
6651
+ q = null
6652
6652
  } = {}) {
6653
- const params = { limit, offset, sort, filter: filter2, q: q2 };
6653
+ const params = { limit, offset, sort, filter: filter2, q };
6654
6654
  return apiHandler.getAll(`custom-domains`, params);
6655
6655
  },
6656
6656
  create({ data }) {
@@ -6742,12 +6742,12 @@ function CustomersResource$1({ apiHandler }) {
6742
6742
  limit = null,
6743
6743
  offset = null,
6744
6744
  filter: filter2 = null,
6745
- q: q2 = null,
6745
+ q = null,
6746
6746
  expand = null,
6747
6747
  fields = null,
6748
6748
  sort = null
6749
6749
  } = {}) {
6750
- const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
6750
+ const params = { limit, offset, filter: filter2, q, expand, fields, sort };
6751
6751
  return apiHandler.getAll(`customers`, params);
6752
6752
  },
6753
6753
  create({ id: id2 = "", data, expand = null }) {
@@ -6785,9 +6785,9 @@ function CustomersResource$1({ apiHandler }) {
6785
6785
  offset = null,
6786
6786
  filter: filter2 = null,
6787
6787
  sort = null,
6788
- q: q2 = null
6788
+ q = null
6789
6789
  }) {
6790
- const params = { limit, offset, filter: filter2, sort, q: q2 };
6790
+ const params = { limit, offset, filter: filter2, sort, q };
6791
6791
  return apiHandler.getAll(`customers/${id2}/timeline`, params);
6792
6792
  },
6793
6793
  createTimelineComment({ id: id2, data }) {
@@ -6811,9 +6811,9 @@ function CustomersResource$1({ apiHandler }) {
6811
6811
  offset = null,
6812
6812
  filter: filter2 = null,
6813
6813
  sort = null,
6814
- q: q2 = null
6814
+ q = null
6815
6815
  }) {
6816
- const params = { limit, offset, filter: filter2, sort, q: q2 };
6816
+ const params = { limit, offset, filter: filter2, sort, q };
6817
6817
  return apiHandler.getAll(`customers/${id2}/edd-timeline`, params);
6818
6818
  },
6819
6819
  createEddTimelineComment({ id: id2, data }) {
@@ -6908,10 +6908,10 @@ function DisputesResource({ apiHandler }) {
6908
6908
  sort = null,
6909
6909
  limit = null,
6910
6910
  offset = null,
6911
- q: q2 = null,
6911
+ q = null,
6912
6912
  expand = null
6913
6913
  } = {}) {
6914
- const params = { filter: filter2, sort, limit, offset, q: q2, expand };
6914
+ const params = { filter: filter2, sort, limit, offset, q, expand };
6915
6915
  return apiHandler.getAll(`disputes`, params);
6916
6916
  },
6917
6917
  create({ id: id2 = "", data, expand = null }) {
@@ -6937,9 +6937,9 @@ function EmailDeliverySettingsResource({ apiHandler }) {
6937
6937
  offset = null,
6938
6938
  filter: filter2 = null,
6939
6939
  sort = null,
6940
- q: q2 = null
6940
+ q = null
6941
6941
  } = {}) {
6942
- const params = { limit, offset, filter: filter2, sort, q: q2 };
6942
+ const params = { limit, offset, filter: filter2, sort, q };
6943
6943
  return apiHandler.getAll(`email-delivery-settings`, params);
6944
6944
  },
6945
6945
  create({ data }) {
@@ -6966,11 +6966,11 @@ function EmailMessagesResource({ apiHandler }) {
6966
6966
  getAll({
6967
6967
  limit = null,
6968
6968
  offset = null,
6969
- q: q2 = null,
6969
+ q = null,
6970
6970
  sort = null,
6971
6971
  filter: filter2 = null
6972
6972
  } = {}) {
6973
- const params = { limit, offset, q: q2, sort, filter: filter2 };
6973
+ const params = { limit, offset, q, sort, filter: filter2 };
6974
6974
  return apiHandler.getAll(`email-messages`, params);
6975
6975
  },
6976
6976
  create({ data }) {
@@ -7018,9 +7018,9 @@ function EventsResource({ apiHandler }) {
7018
7018
  offset = null,
7019
7019
  filter: filter2 = null,
7020
7020
  sort = null,
7021
- q: q2 = null
7021
+ q = null
7022
7022
  }) {
7023
- const params = { limit, offset, filter: filter2, sort, q: q2 };
7023
+ const params = { limit, offset, filter: filter2, sort, q };
7024
7024
  return apiHandler.getAll(`events/${eventType}/timeline`, params);
7025
7025
  },
7026
7026
  createTimelineComment({ eventType, data }) {
@@ -7037,11 +7037,11 @@ function EventsResource({ apiHandler }) {
7037
7037
  limit = null,
7038
7038
  offset = null,
7039
7039
  filter: filter2 = null,
7040
- q: q2 = null,
7040
+ q = null,
7041
7041
  sort = null,
7042
7042
  fields = null
7043
7043
  }) {
7044
- const params = { limit, offset, filter: filter2, q: q2, sort, fields };
7044
+ const params = { limit, offset, filter: filter2, q, sort, fields };
7045
7045
  return apiHandler.getAll(`events/${eventType}/rules/history`, params);
7046
7046
  },
7047
7047
  getRulesVersionNumber({ eventType, version: version2, fields = null }) {
@@ -7063,11 +7063,11 @@ function EventsResource({ apiHandler }) {
7063
7063
  limit = null,
7064
7064
  offset = null,
7065
7065
  filter: filter2 = null,
7066
- q: q2 = null,
7066
+ q = null,
7067
7067
  sort = null,
7068
7068
  fields = null
7069
7069
  }) {
7070
- const params = { limit, offset, filter: filter2, q: q2, sort, fields };
7070
+ const params = { limit, offset, filter: filter2, q, sort, fields };
7071
7071
  return apiHandler.getAll(`events/${eventType}/rules/drafts`, params);
7072
7072
  },
7073
7073
  createDraftRuleset({ eventType, data }) {
@@ -7149,12 +7149,12 @@ function FilesResource({ apiHandler }) {
7149
7149
  limit = null,
7150
7150
  offset = null,
7151
7151
  filter: filter2 = null,
7152
- q: q2 = null,
7152
+ q = null,
7153
7153
  expand = null,
7154
7154
  fields = null,
7155
7155
  sort = null
7156
7156
  } = {}) {
7157
- const params = { limit, offset, filter: filter2, q: q2, expand, fields, sort };
7157
+ const params = { limit, offset, filter: filter2, q, expand, fields, sort };
7158
7158
  return apiHandler.getAll(`attachments`, params);
7159
7159
  },
7160
7160
  attach({ id: id2 = "", data, expand = null }) {
@@ -7175,11 +7175,11 @@ function FilesResource({ apiHandler }) {
7175
7175
  limit = null,
7176
7176
  offset = null,
7177
7177
  filter: filter2 = null,
7178
- q: q2 = null,
7178
+ q = null,
7179
7179
  fields = null,
7180
7180
  sort = null
7181
7181
  } = {}) {
7182
- const params = { limit, offset, filter: filter2, q: q2, fields, sort };
7182
+ const params = { limit, offset, filter: filter2, q, fields, sort };
7183
7183
  return apiHandler.getAll(`files`, params);
7184
7184
  },
7185
7185
  upload({ fileObject }) {
@@ -7256,10 +7256,10 @@ function GatewayAccountsResource({ apiHandler }) {
7256
7256
  offset = null,
7257
7257
  sort = null,
7258
7258
  filter: filter2 = null,
7259
- q: q2 = null,
7259
+ q = null,
7260
7260
  fields = null
7261
7261
  } = {}) {
7262
- const params = { limit, offset, sort, filter: filter2, q: q2, fields };
7262
+ const params = { limit, offset, sort, filter: filter2, q, fields };
7263
7263
  return apiHandler.getAll(`gateway-accounts`, params);
7264
7264
  },
7265
7265
  create({ id: id2 = "", data }) {
@@ -7333,9 +7333,9 @@ function GatewayAccountsResource({ apiHandler }) {
7333
7333
  offset = null,
7334
7334
  filter: filter2 = null,
7335
7335
  sort = null,
7336
- q: q2 = null
7336
+ q = null
7337
7337
  }) {
7338
- const params = { limit, offset, filter: filter2, sort, q: q2 };
7338
+ const params = { limit, offset, filter: filter2, sort, q };
7339
7339
  return apiHandler.getAll(`gateway-accounts/${id2}/timeline`, params);
7340
7340
  },
7341
7341
  createTimelineComment({ id: id2, data }) {
@@ -7377,10 +7377,10 @@ function InvoicesResource$1({ apiHandler }) {
7377
7377
  sort = null,
7378
7378
  limit = null,
7379
7379
  offset = null,
7380
- q: q2 = null,
7380
+ q = null,
7381
7381
  expand = null
7382
7382
  } = {}) {
7383
- const params = { filter: filter2, sort, limit, offset, q: q2, expand };
7383
+ const params = { filter: filter2, sort, limit, offset, q, expand };
7384
7384
  return apiHandler.getAll(`invoices`, params);
7385
7385
  },
7386
7386
  create({ id: id2 = "", data }) {
@@ -7440,9 +7440,9 @@ function InvoicesResource$1({ apiHandler }) {
7440
7440
  offset = null,
7441
7441
  filter: filter2 = null,
7442
7442
  sort = null,
7443
- q: q2 = null
7443
+ q = null
7444
7444
  }) {
7445
- const params = { limit, offset, filter: filter2, sort, q: q2 };
7445
+ const params = { limit, offset, filter: filter2, sort, q };
7446
7446
  return apiHandler.getAll(`invoices/${id2}/timeline`, params);
7447
7447
  },
7448
7448
  createTimelineComment({ id: id2, data }) {
@@ -7614,9 +7614,9 @@ function ListsResource({ apiHandler }) {
7614
7614
  filter: filter2 = null,
7615
7615
  sort = null,
7616
7616
  fields = null,
7617
- q: q2 = null
7617
+ q = null
7618
7618
  } = {}) {
7619
- const params = { limit, offset, filter: filter2, sort, fields, q: q2 };
7619
+ const params = { limit, offset, filter: filter2, sort, fields, q };
7620
7620
  return apiHandler.getAll(`lists`, params);
7621
7621
  },
7622
7622
  create({ id: id2 = "", data }) {
@@ -7659,10 +7659,10 @@ function OrganizationExportsResource({ apiHandler }) {
7659
7659
  limit = null,
7660
7660
  offset = null,
7661
7661
  filter: filter2 = null,
7662
- q: q2 = null,
7662
+ q = null,
7663
7663
  sort = null
7664
7664
  } = {}) {
7665
- const params = { limit, offset, filter: filter2, q: q2, sort };
7665
+ const params = { limit, offset, filter: filter2, q, sort };
7666
7666
  return apiHandler.getAll(`organization-exports`, params);
7667
7667
  },
7668
7668
  create({ data }) {
@@ -7680,9 +7680,9 @@ function OrganizationsResource({ apiHandler }) {
7680
7680
  offset = null,
7681
7681
  filter: filter2 = null,
7682
7682
  sort = null,
7683
- q: q2 = null
7683
+ q = null
7684
7684
  } = {}) {
7685
- const params = { limit, offset, filter: filter2, sort, q: q2 };
7685
+ const params = { limit, offset, filter: filter2, sort, q };
7686
7686
  return apiHandler.getAll(`organizations`, params);
7687
7687
  },
7688
7688
  create({ data }) {
@@ -7698,8 +7698,8 @@ function OrganizationsResource({ apiHandler }) {
7698
7698
  }
7699
7699
  function PaymentCardsBankNamesResource({ apiHandler }) {
7700
7700
  return {
7701
- getAll({ limit = null, q: q2 = null } = {}) {
7702
- const params = { limit, q: q2 };
7701
+ getAll({ limit = null, q = null } = {}) {
7702
+ const params = { limit, q };
7703
7703
  return apiHandler.getAll(`payment-cards-bank-names`, params);
7704
7704
  }
7705
7705
  };
@@ -7711,10 +7711,10 @@ function PaymentInstrumentsResource$1({ apiHandler }) {
7711
7711
  sort = null,
7712
7712
  limit = null,
7713
7713
  offset = null,
7714
- q: q2 = null,
7714
+ q = null,
7715
7715
  expand = null
7716
7716
  } = {}) {
7717
- const params = { filter: filter2, sort, limit, offset, q: q2, expand };
7717
+ const params = { filter: filter2, sort, limit, offset, q, expand };
7718
7718
  return apiHandler.getAll(`payment-instruments`, params);
7719
7719
  },
7720
7720
  create({ data }) {
@@ -7790,9 +7790,9 @@ function PlansResource$1({ apiHandler }) {
7790
7790
  sort = null,
7791
7791
  limit = null,
7792
7792
  offset = null,
7793
- q: q2 = null
7793
+ q = null
7794
7794
  } = {}) {
7795
- const params = { filter: filter2, sort, limit, offset, q: q2 };
7795
+ const params = { filter: filter2, sort, limit, offset, q };
7796
7796
  return apiHandler.getAll(`plans`, params);
7797
7797
  },
7798
7798
  create({ id: id2 = "", data }) {
@@ -7829,9 +7829,9 @@ function ProductsResource$1({ apiHandler }) {
7829
7829
  sort = null,
7830
7830
  limit = null,
7831
7831
  offset = null,
7832
- q: q2 = null
7832
+ q = null
7833
7833
  } = {}) {
7834
- const params = { filter: filter2, sort, limit, offset, q: q2 };
7834
+ const params = { filter: filter2, sort, limit, offset, q };
7835
7835
  return apiHandler.getAll(`products`, params);
7836
7836
  },
7837
7837
  create({ id: id2 = "", data }) {
@@ -7926,9 +7926,9 @@ function QuotesResource$1({ apiHandler }) {
7926
7926
  offset = null,
7927
7927
  filter: filter2 = null,
7928
7928
  sort = null,
7929
- q: q2 = null
7929
+ q = null
7930
7930
  }) {
7931
- const params = { limit, offset, filter: filter2, sort, q: q2 };
7931
+ const params = { limit, offset, filter: filter2, sort, q };
7932
7932
  return apiHandler.getAll(`quotes/${id2}/timeline`, params);
7933
7933
  },
7934
7934
  createTimelineComment({ id: id2, data }) {
@@ -7997,10 +7997,10 @@ function RolesResource({ apiHandler }) {
7997
7997
  offset = null,
7998
7998
  filter: filter2 = null,
7999
7999
  sort = null,
8000
- q: q2 = null,
8000
+ q = null,
8001
8001
  expand = null
8002
8002
  } = {}) {
8003
- const params = { limit, offset, filter: filter2, sort, q: q2, expand };
8003
+ const params = { limit, offset, filter: filter2, sort, q, expand };
8004
8004
  return apiHandler.getAll(`roles`, params);
8005
8005
  },
8006
8006
  create({ id: id2 = "", data }) {
@@ -8020,8 +8020,8 @@ function RolesResource({ apiHandler }) {
8020
8020
  }
8021
8021
  function SearchResource({ apiHandler }) {
8022
8022
  return {
8023
- get({ sort = null, limit = null, offset = null, q: q2 = null }) {
8024
- const params = { sort, limit, offset, q: q2 };
8023
+ get({ sort = null, limit = null, offset = null, q = null }) {
8024
+ const params = { sort, limit, offset, q };
8025
8025
  return apiHandler.get(`search`, params);
8026
8026
  }
8027
8027
  };
@@ -8033,9 +8033,9 @@ function SegmentsResource({ apiHandler }) {
8033
8033
  offset = null,
8034
8034
  sort = null,
8035
8035
  filter: filter2 = null,
8036
- q: q2 = null
8036
+ q = null
8037
8037
  } = {}) {
8038
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8038
+ const params = { limit, offset, sort, filter: filter2, q };
8039
8039
  return apiHandler.getAll(`grid-segments`, params);
8040
8040
  },
8041
8041
  create({ id: id2 = "", data }) {
@@ -8067,9 +8067,9 @@ function ServiceCredentialsResource({ apiHandler }) {
8067
8067
  limit = null,
8068
8068
  offset = null,
8069
8069
  sort = null,
8070
- q: q2 = null
8070
+ q = null
8071
8071
  }) {
8072
- const params = { filter: filter2, limit, offset, sort, q: q2 };
8072
+ const params = { filter: filter2, limit, offset, sort, q };
8073
8073
  return apiHandler.getAll(`service-credentials/${type2}`, params);
8074
8074
  },
8075
8075
  create({ type: type2, data }) {
@@ -8087,11 +8087,11 @@ function ServiceCredentialsResource({ apiHandler }) {
8087
8087
  limit = null,
8088
8088
  offset = null,
8089
8089
  filter: filter2 = null,
8090
- q: q2 = null,
8090
+ q = null,
8091
8091
  fields = null,
8092
8092
  sort = null
8093
8093
  }) {
8094
- const params = { limit, offset, filter: filter2, q: q2, fields, sort };
8094
+ const params = { limit, offset, filter: filter2, q, fields, sort };
8095
8095
  return apiHandler.getAll(
8096
8096
  `service-credentials/${type2}/${id2}/items`,
8097
8097
  params
@@ -8106,9 +8106,9 @@ function ShippingRatesResource({ apiHandler }) {
8106
8106
  offset = null,
8107
8107
  filter: filter2 = null,
8108
8108
  sort = null,
8109
- q: q2 = null
8109
+ q = null
8110
8110
  } = {}) {
8111
- const params = { limit, offset, filter: filter2, sort, q: q2 };
8111
+ const params = { limit, offset, filter: filter2, sort, q };
8112
8112
  return apiHandler.getAll(`shipping-rates`, params);
8113
8113
  },
8114
8114
  create({ id: id2 = "", data }) {
@@ -8193,10 +8193,10 @@ function SubscriptionsResource$1({ apiHandler }) {
8193
8193
  sort = null,
8194
8194
  limit = null,
8195
8195
  offset = null,
8196
- q: q2 = null,
8196
+ q = null,
8197
8197
  expand = null
8198
8198
  } = {}) {
8199
- const params = { filter: filter2, sort, limit, offset, q: q2, expand };
8199
+ const params = { filter: filter2, sort, limit, offset, q, expand };
8200
8200
  return apiHandler.getAll(`subscriptions`, params);
8201
8201
  },
8202
8202
  create({ id: id2 = "", data, expand = null }) {
@@ -8249,9 +8249,9 @@ function SubscriptionsResource$1({ apiHandler }) {
8249
8249
  offset = null,
8250
8250
  filter: filter2 = null,
8251
8251
  sort = null,
8252
- q: q2 = null
8252
+ q = null
8253
8253
  }) {
8254
- const params = { limit, offset, filter: filter2, sort, q: q2 };
8254
+ const params = { limit, offset, filter: filter2, sort, q };
8255
8255
  return apiHandler.getAll(`subscriptions/${id2}/timeline`, params);
8256
8256
  },
8257
8257
  createTimelineComment({ id: id2, data }) {
@@ -8271,10 +8271,10 @@ function TagsResource({ apiHandler }) {
8271
8271
  limit = null,
8272
8272
  offset = null,
8273
8273
  filter: filter2 = null,
8274
- q: q2 = null,
8274
+ q = null,
8275
8275
  sort = null
8276
8276
  } = {}) {
8277
- const params = { limit, offset, filter: filter2, q: q2, sort };
8277
+ const params = { limit, offset, filter: filter2, q, sort };
8278
8278
  return apiHandler.getAll(`tags`, params);
8279
8279
  },
8280
8280
  create({ data }) {
@@ -8334,9 +8334,9 @@ function TagsRulesResource({ apiHandler }) {
8334
8334
  offset = null,
8335
8335
  sort = null,
8336
8336
  filter: filter2 = null,
8337
- q: q2 = null
8337
+ q = null
8338
8338
  } = {}) {
8339
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8339
+ const params = { limit, offset, sort, filter: filter2, q };
8340
8340
  return apiHandler.getAll(`tags-rules`, params);
8341
8341
  },
8342
8342
  createTagsRule({ id: id2 = "", data }) {
@@ -8360,10 +8360,10 @@ function TrackingResource({ apiHandler }) {
8360
8360
  offset = null,
8361
8361
  sort = null,
8362
8362
  filter: filter2 = null,
8363
- q: q2 = null,
8363
+ q = null,
8364
8364
  expand = null
8365
8365
  } = {}) {
8366
- const params = { limit, offset, sort, filter: filter2, q: q2, expand };
8366
+ const params = { limit, offset, sort, filter: filter2, q, expand };
8367
8367
  return apiHandler.getAll(`tracking/api`, params);
8368
8368
  },
8369
8369
  getApiLog({ id: id2 }) {
@@ -8374,9 +8374,9 @@ function TrackingResource({ apiHandler }) {
8374
8374
  offset = null,
8375
8375
  sort = null,
8376
8376
  filter: filter2 = null,
8377
- q: q2 = null
8377
+ q = null
8378
8378
  } = {}) {
8379
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8379
+ const params = { limit, offset, sort, filter: filter2, q };
8380
8380
  return apiHandler.getAll(`tracking/taxes`, params);
8381
8381
  },
8382
8382
  getTaxTrackingLog({ id: id2 }) {
@@ -8387,9 +8387,9 @@ function TrackingResource({ apiHandler }) {
8387
8387
  offset = null,
8388
8388
  sort = null,
8389
8389
  filter: filter2 = null,
8390
- q: q2 = null
8390
+ q = null
8391
8391
  } = {}) {
8392
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8392
+ const params = { limit, offset, sort, filter: filter2, q };
8393
8393
  return apiHandler.getAll(`tracking/lists`, params);
8394
8394
  },
8395
8395
  getAllWebhookTrackingLogs({
@@ -8397,9 +8397,9 @@ function TrackingResource({ apiHandler }) {
8397
8397
  offset = null,
8398
8398
  sort = null,
8399
8399
  filter: filter2 = null,
8400
- q: q2 = null
8400
+ q = null
8401
8401
  } = {}) {
8402
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8402
+ const params = { limit, offset, sort, filter: filter2, q };
8403
8403
  return apiHandler.getAll(`tracking/webhooks`, params);
8404
8404
  },
8405
8405
  getWebhookTrackingLog({ id: id2 }) {
@@ -8416,11 +8416,11 @@ function TransactionsResource$1({ apiHandler }) {
8416
8416
  limit = null,
8417
8417
  offset = null,
8418
8418
  filter: filter2 = null,
8419
- q: q2 = null,
8419
+ q = null,
8420
8420
  sort = null,
8421
8421
  expand = null
8422
8422
  } = {}) {
8423
- const params = { limit, offset, filter: filter2, q: q2, sort, expand };
8423
+ const params = { limit, offset, filter: filter2, q, sort, expand };
8424
8424
  return apiHandler.getAll(`transactions`, params);
8425
8425
  },
8426
8426
  create({ data, expand = null }) {
@@ -8449,9 +8449,9 @@ function TransactionsResource$1({ apiHandler }) {
8449
8449
  offset = null,
8450
8450
  filter: filter2 = null,
8451
8451
  sort = null,
8452
- q: q2 = null
8452
+ q = null
8453
8453
  }) {
8454
- const params = { limit, offset, filter: filter2, sort, q: q2 };
8454
+ const params = { limit, offset, filter: filter2, sort, q };
8455
8455
  return apiHandler.getAll(`transactions/${id2}/timeline`, params);
8456
8456
  },
8457
8457
  createTimelineComment({ id: id2, data }) {
@@ -8472,9 +8472,9 @@ function UsagesResource({ apiHandler }) {
8472
8472
  sort = null,
8473
8473
  limit = null,
8474
8474
  offset = null,
8475
- q: q2 = null
8475
+ q = null
8476
8476
  } = {}) {
8477
- const params = { filter: filter2, sort, limit, offset, q: q2 };
8477
+ const params = { filter: filter2, sort, limit, offset, q };
8478
8478
  return apiHandler.getAll(`usages`, params);
8479
8479
  },
8480
8480
  create({ id: id2 = "", data }) {
@@ -8498,9 +8498,9 @@ function UsersResource({ apiHandler }) {
8498
8498
  offset = null,
8499
8499
  sort = null,
8500
8500
  filter: filter2 = null,
8501
- q: q2 = null
8501
+ q = null
8502
8502
  } = {}) {
8503
- const params = { limit, offset, sort, filter: filter2, q: q2 };
8503
+ const params = { limit, offset, sort, filter: filter2, q };
8504
8504
  return apiHandler.getAll(`users`, params);
8505
8505
  },
8506
8506
  create({ id: id2 = "", data }) {
@@ -8539,11 +8539,11 @@ function WebsitesResource$1({ apiHandler }) {
8539
8539
  getAll({
8540
8540
  limit = null,
8541
8541
  offset = null,
8542
- q: q2 = null,
8542
+ q = null,
8543
8543
  filter: filter2 = null,
8544
8544
  sort = null
8545
8545
  } = {}) {
8546
- const params = { limit, offset, q: q2, filter: filter2, sort };
8546
+ const params = { limit, offset, q, filter: filter2, sort };
8547
8547
  return apiHandler.getAll(`websites`, params);
8548
8548
  },
8549
8549
  create({ id: id2 = "", data }) {
@@ -8674,10 +8674,10 @@ function DataExportsResource({ apiHandler }) {
8674
8674
  sort = null,
8675
8675
  expand = null,
8676
8676
  filter: filter2 = null,
8677
- q: q2 = null,
8677
+ q = null,
8678
8678
  criteria = null
8679
8679
  } = {}) {
8680
- const params = { limit, offset, sort, expand, filter: filter2, q: q2, criteria };
8680
+ const params = { limit, offset, sort, expand, filter: filter2, q, criteria };
8681
8681
  return apiHandler.getAll(`data-exports`, params);
8682
8682
  },
8683
8683
  queue({ id: id2 = "", data, expand = null }) {
@@ -9170,9 +9170,9 @@ function InvoicesResource({ apiHandler }) {
9170
9170
  sort = null,
9171
9171
  limit = null,
9172
9172
  offset = null,
9173
- q: q2 = null
9173
+ q = null
9174
9174
  } = {}) {
9175
- const params = { filter: filter2, sort, limit, offset, q: q2 };
9175
+ const params = { filter: filter2, sort, limit, offset, q };
9176
9176
  return apiHandler.getAll(`invoices`, params);
9177
9177
  },
9178
9178
  get({ id: id2 }) {
@@ -9219,9 +9219,9 @@ function OrdersResource({ apiHandler }) {
9219
9219
  sort = null,
9220
9220
  limit = null,
9221
9221
  offset = null,
9222
- q: q2 = null
9222
+ q = null
9223
9223
  } = {}) {
9224
- const params = { filter: filter2, sort, limit, offset, q: q2 };
9224
+ const params = { filter: filter2, sort, limit, offset, q };
9225
9225
  return apiHandler.getAll(`orders`, params);
9226
9226
  },
9227
9227
  get({ id: id2 }) {
@@ -9245,9 +9245,9 @@ function PaymentInstrumentsResource({ apiHandler }) {
9245
9245
  sort = null,
9246
9246
  limit = null,
9247
9247
  offset = null,
9248
- q: q2 = null
9248
+ q = null
9249
9249
  } = {}) {
9250
- const params = { filter: filter2, sort, limit, offset, q: q2 };
9250
+ const params = { filter: filter2, sort, limit, offset, q };
9251
9251
  return apiHandler.getAll(`payment-instruments`, params);
9252
9252
  },
9253
9253
  create({ data }) {
@@ -9278,9 +9278,9 @@ function PayoutRequestsResource({ apiHandler }) {
9278
9278
  sort = null,
9279
9279
  limit = null,
9280
9280
  offset = null,
9281
- q: q2 = null
9281
+ q = null
9282
9282
  } = {}) {
9283
- const params = { filter: filter2, sort, limit, offset, q: q2 };
9283
+ const params = { filter: filter2, sort, limit, offset, q };
9284
9284
  return apiHandler.getAll(`payout-requests`, params);
9285
9285
  },
9286
9286
  get({ id: id2 }) {
@@ -9298,10 +9298,10 @@ function PlansResource({ apiHandler }) {
9298
9298
  sort = null,
9299
9299
  limit = null,
9300
9300
  offset = null,
9301
- q: q2 = null,
9301
+ q = null,
9302
9302
  expand = null
9303
9303
  } = {}) {
9304
- const params = { filter: filter2, sort, limit, offset, q: q2, expand };
9304
+ const params = { filter: filter2, sort, limit, offset, q, expand };
9305
9305
  return apiHandler.getAll(`plans`, params);
9306
9306
  },
9307
9307
  get({ id: id2, expand = null }) {
@@ -9317,9 +9317,9 @@ function ProductsResource({ apiHandler }) {
9317
9317
  sort = null,
9318
9318
  limit = null,
9319
9319
  offset = null,
9320
- q: q2 = null
9320
+ q = null
9321
9321
  } = {}) {
9322
- const params = { filter: filter2, sort, limit, offset, q: q2 };
9322
+ const params = { filter: filter2, sort, limit, offset, q };
9323
9323
  return apiHandler.getAll(`products`, params);
9324
9324
  },
9325
9325
  get({ id: id2 }) {
@@ -9370,10 +9370,10 @@ function TransactionsResource({ apiHandler }) {
9370
9370
  limit = null,
9371
9371
  offset = null,
9372
9372
  filter: filter2 = null,
9373
- q: q2 = null,
9373
+ q = null,
9374
9374
  sort = null
9375
9375
  } = {}) {
9376
- const params = { limit, offset, filter: filter2, q: q2, sort };
9376
+ const params = { limit, offset, filter: filter2, q, sort };
9377
9377
  return apiHandler.getAll(`transactions`, params);
9378
9378
  },
9379
9379
  get({ id: id2 }) {
@@ -9766,239 +9766,239 @@ async function updateSummary({ instrument } = {}) {
9766
9766
  await fetchSummary({ data: instrument });
9767
9767
  state.updateModel();
9768
9768
  }
9769
- function t$1(t2, e2, n2, r2, o2, a2, i2) {
9769
+ function t$1(t2, e2, r2, n2, o2, i2, a2) {
9770
9770
  try {
9771
- var c2 = t2[a2](i2), u2 = c2.value;
9771
+ var u2 = t2[i2](a2), c2 = u2.value;
9772
9772
  } catch (t3) {
9773
- return void n2(t3);
9773
+ return void r2(t3);
9774
9774
  }
9775
- c2.done ? e2(u2) : Promise.resolve(u2).then(r2, o2);
9775
+ u2.done ? e2(c2) : Promise.resolve(c2).then(n2, o2);
9776
9776
  }
9777
9777
  function e$1(e2) {
9778
9778
  return function() {
9779
- var n2 = this, r2 = arguments;
9780
- return new Promise(function(o2, a2) {
9781
- var i2 = e2.apply(n2, r2);
9782
- function c2(e3) {
9783
- t$1(i2, o2, a2, c2, u2, "next", e3);
9784
- }
9779
+ var r2 = this, n2 = arguments;
9780
+ return new Promise(function(o2, i2) {
9781
+ var a2 = e2.apply(r2, n2);
9785
9782
  function u2(e3) {
9786
- t$1(i2, o2, a2, c2, u2, "throw", e3);
9783
+ t$1(a2, o2, i2, u2, c2, "next", e3);
9784
+ }
9785
+ function c2(e3) {
9786
+ t$1(a2, o2, i2, u2, c2, "throw", e3);
9787
9787
  }
9788
- c2(void 0);
9788
+ u2(void 0);
9789
9789
  });
9790
9790
  };
9791
9791
  }
9792
- function n$1(t2, e2, n2) {
9793
- return t2(n2 = { path: e2, exports: {}, require: function(t3, e3) {
9792
+ function r$1(t2, e2, r2) {
9793
+ return t2(r2 = { path: e2, exports: {}, require: function(t3, e3) {
9794
9794
  return function() {
9795
9795
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
9796
- }(null == e3 && n2.path);
9797
- } }, n2.exports), n2.exports;
9796
+ }(null == e3 && r2.path);
9797
+ } }, r2.exports), r2.exports;
9798
9798
  }
9799
- var r$1 = n$1(function(t2) {
9800
- function e2(n2) {
9799
+ var n$1 = r$1(function(t2) {
9800
+ function e2(r2) {
9801
9801
  return t2.exports = e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
9802
9802
  return typeof t3;
9803
9803
  } : function(t3) {
9804
9804
  return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
9805
- }, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(n2);
9805
+ }, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(r2);
9806
9806
  }
9807
9807
  t2.exports = e2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
9808
- }), o$1 = n$1(function(t2) {
9809
- var e2 = r$1.default;
9810
- function n2() {
9808
+ }), o$1 = r$1(function(t2) {
9809
+ var e2 = n$1.default;
9810
+ function r2() {
9811
9811
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
9812
- t2.exports = n2 = function() {
9812
+ t2.exports = r2 = function() {
9813
9813
  return o2;
9814
9814
  }, t2.exports.__esModule = true, t2.exports.default = t2.exports;
9815
- var r2, o2 = {}, a2 = Object.prototype, i2 = a2.hasOwnProperty, c2 = Object.defineProperty || function(t3, e3, n3) {
9816
- t3[e3] = n3.value;
9817
- }, u2 = "function" == typeof Symbol ? Symbol : {}, s2 = u2.iterator || "@@iterator", l2 = u2.asyncIterator || "@@asyncIterator", d2 = u2.toStringTag || "@@toStringTag";
9818
- function f2(t3, e3, n3) {
9819
- return Object.defineProperty(t3, e3, { value: n3, enumerable: true, configurable: true, writable: true }), t3[e3];
9815
+ var n2, o2 = {}, i2 = Object.prototype, a2 = i2.hasOwnProperty, u2 = Object.defineProperty || function(t3, e3, r3) {
9816
+ t3[e3] = r3.value;
9817
+ }, c2 = "function" == typeof Symbol ? Symbol : {}, s2 = c2.iterator || "@@iterator", l2 = c2.asyncIterator || "@@asyncIterator", f2 = c2.toStringTag || "@@toStringTag";
9818
+ function p2(t3, e3, r3) {
9819
+ return Object.defineProperty(t3, e3, { value: r3, enumerable: true, configurable: true, writable: true }), t3[e3];
9820
9820
  }
9821
9821
  try {
9822
- f2({}, "");
9823
- } catch (r3) {
9824
- f2 = function(t3, e3, n3) {
9825
- return t3[e3] = n3;
9822
+ p2({}, "");
9823
+ } catch (n3) {
9824
+ p2 = function(t3, e3, r3) {
9825
+ return t3[e3] = r3;
9826
9826
  };
9827
9827
  }
9828
- function h2(t3, e3, n3, r3) {
9829
- var o3 = e3 && e3.prototype instanceof w2 ? e3 : w2, a3 = Object.create(o3.prototype), i3 = new A2(r3 || []);
9830
- return c2(a3, "_invoke", { value: I2(t3, n3, i3) }), a3;
9828
+ function h2(t3, e3, r3, n3) {
9829
+ var o3 = e3 && e3.prototype instanceof g2 ? e3 : g2, i3 = Object.create(o3.prototype), a3 = new P2(n3 || []);
9830
+ return u2(i3, "_invoke", { value: N2(t3, r3, a3) }), i3;
9831
9831
  }
9832
- function m2(t3, e3, n3) {
9832
+ function d2(t3, e3, r3) {
9833
9833
  try {
9834
- return { type: "normal", arg: t3.call(e3, n3) };
9834
+ return { type: "normal", arg: t3.call(e3, r3) };
9835
9835
  } catch (t4) {
9836
9836
  return { type: "throw", arg: t4 };
9837
9837
  }
9838
9838
  }
9839
9839
  o2.wrap = h2;
9840
- var v2 = "suspendedStart", p2 = "suspendedYield", y2 = "executing", b2 = "completed", g2 = {};
9841
- function w2() {
9840
+ var v2 = "suspendedStart", y2 = "suspendedYield", m2 = "executing", R2 = "completed", E2 = {};
9841
+ function g2() {
9842
9842
  }
9843
- function L2() {
9843
+ function w2() {
9844
9844
  }
9845
- function k2() {
9845
+ function b2() {
9846
9846
  }
9847
- var x2 = {};
9848
- f2(x2, s2, function() {
9847
+ var O2 = {};
9848
+ p2(O2, s2, function() {
9849
9849
  return this;
9850
9850
  });
9851
- var V2 = Object.getPrototypeOf, S2 = V2 && V2(V2(G2([])));
9852
- S2 && S2 !== a2 && i2.call(S2, s2) && (x2 = S2);
9853
- var Z2 = k2.prototype = w2.prototype = Object.create(x2);
9854
- function W2(t3) {
9851
+ var _2 = Object.getPrototypeOf, I2 = _2 && _2(_2(j2([])));
9852
+ I2 && I2 !== i2 && a2.call(I2, s2) && (O2 = I2);
9853
+ var x2 = b2.prototype = g2.prototype = Object.create(O2);
9854
+ function S2(t3) {
9855
9855
  ["next", "throw", "return"].forEach(function(e3) {
9856
- f2(t3, e3, function(t4) {
9856
+ p2(t3, e3, function(t4) {
9857
9857
  return this._invoke(e3, t4);
9858
9858
  });
9859
9859
  });
9860
9860
  }
9861
- function C2(t3, n3) {
9862
- function r3(o4, a3, c3, u3) {
9863
- var s3 = m2(t3[o4], t3, a3);
9861
+ function k2(t3, r3) {
9862
+ function n3(o4, i3, u3, c3) {
9863
+ var s3 = d2(t3[o4], t3, i3);
9864
9864
  if ("throw" !== s3.type) {
9865
- var l3 = s3.arg, d3 = l3.value;
9866
- return d3 && "object" == e2(d3) && i2.call(d3, "__await") ? n3.resolve(d3.__await).then(function(t4) {
9867
- r3("next", t4, c3, u3);
9865
+ var l3 = s3.arg, f3 = l3.value;
9866
+ return f3 && "object" == e2(f3) && a2.call(f3, "__await") ? r3.resolve(f3.__await).then(function(t4) {
9867
+ n3("next", t4, u3, c3);
9868
9868
  }, function(t4) {
9869
- r3("throw", t4, c3, u3);
9870
- }) : n3.resolve(d3).then(function(t4) {
9871
- l3.value = t4, c3(l3);
9869
+ n3("throw", t4, u3, c3);
9870
+ }) : r3.resolve(f3).then(function(t4) {
9871
+ l3.value = t4, u3(l3);
9872
9872
  }, function(t4) {
9873
- return r3("throw", t4, c3, u3);
9873
+ return n3("throw", t4, u3, c3);
9874
9874
  });
9875
9875
  }
9876
- u3(s3.arg);
9876
+ c3(s3.arg);
9877
9877
  }
9878
9878
  var o3;
9879
- c2(this, "_invoke", { value: function(t4, e3) {
9880
- function a3() {
9881
- return new n3(function(n4, o4) {
9882
- r3(t4, e3, n4, o4);
9879
+ u2(this, "_invoke", { value: function(t4, e3) {
9880
+ function i3() {
9881
+ return new r3(function(r4, o4) {
9882
+ n3(t4, e3, r4, o4);
9883
9883
  });
9884
9884
  }
9885
- return o3 = o3 ? o3.then(a3, a3) : a3();
9885
+ return o3 = o3 ? o3.then(i3, i3) : i3();
9886
9886
  } });
9887
9887
  }
9888
- function I2(t3, e3, n3) {
9888
+ function N2(t3, e3, r3) {
9889
9889
  var o3 = v2;
9890
- return function(a3, i3) {
9891
- if (o3 === y2)
9890
+ return function(i3, a3) {
9891
+ if (o3 === m2)
9892
9892
  throw new Error("Generator is already running");
9893
- if (o3 === b2) {
9894
- if ("throw" === a3)
9895
- throw i3;
9896
- return { value: r2, done: true };
9893
+ if (o3 === R2) {
9894
+ if ("throw" === i3)
9895
+ throw a3;
9896
+ return { value: n2, done: true };
9897
9897
  }
9898
- for (n3.method = a3, n3.arg = i3; ; ) {
9899
- var c3 = n3.delegate;
9900
- if (c3) {
9901
- var u3 = F2(c3, n3);
9902
- if (u3) {
9903
- if (u3 === g2)
9898
+ for (r3.method = i3, r3.arg = a3; ; ) {
9899
+ var u3 = r3.delegate;
9900
+ if (u3) {
9901
+ var c3 = L2(u3, r3);
9902
+ if (c3) {
9903
+ if (c3 === E2)
9904
9904
  continue;
9905
- return u3;
9905
+ return c3;
9906
9906
  }
9907
9907
  }
9908
- if ("next" === n3.method)
9909
- n3.sent = n3._sent = n3.arg;
9910
- else if ("throw" === n3.method) {
9908
+ if ("next" === r3.method)
9909
+ r3.sent = r3._sent = r3.arg;
9910
+ else if ("throw" === r3.method) {
9911
9911
  if (o3 === v2)
9912
- throw o3 = b2, n3.arg;
9913
- n3.dispatchException(n3.arg);
9912
+ throw o3 = R2, r3.arg;
9913
+ r3.dispatchException(r3.arg);
9914
9914
  } else
9915
- "return" === n3.method && n3.abrupt("return", n3.arg);
9916
- o3 = y2;
9917
- var s3 = m2(t3, e3, n3);
9915
+ "return" === r3.method && r3.abrupt("return", r3.arg);
9916
+ o3 = m2;
9917
+ var s3 = d2(t3, e3, r3);
9918
9918
  if ("normal" === s3.type) {
9919
- if (o3 = n3.done ? b2 : p2, s3.arg === g2)
9919
+ if (o3 = r3.done ? R2 : y2, s3.arg === E2)
9920
9920
  continue;
9921
- return { value: s3.arg, done: n3.done };
9921
+ return { value: s3.arg, done: r3.done };
9922
9922
  }
9923
- "throw" === s3.type && (o3 = b2, n3.method = "throw", n3.arg = s3.arg);
9923
+ "throw" === s3.type && (o3 = R2, r3.method = "throw", r3.arg = s3.arg);
9924
9924
  }
9925
9925
  };
9926
9926
  }
9927
- function F2(t3, e3) {
9928
- var n3 = e3.method, o3 = t3.iterator[n3];
9929
- if (o3 === r2)
9930
- return e3.delegate = null, "throw" === n3 && t3.iterator.return && (e3.method = "return", e3.arg = r2, F2(t3, e3), "throw" === e3.method) || "return" !== n3 && (e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a '" + n3 + "' method")), g2;
9931
- var a3 = m2(o3, t3.iterator, e3.arg);
9932
- if ("throw" === a3.type)
9933
- return e3.method = "throw", e3.arg = a3.arg, e3.delegate = null, g2;
9934
- var i3 = a3.arg;
9935
- return i3 ? i3.done ? (e3[t3.resultName] = i3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg = r2), e3.delegate = null, g2) : i3 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, g2);
9936
- }
9937
- function j2(t3) {
9927
+ function L2(t3, e3) {
9928
+ var r3 = e3.method, o3 = t3.iterator[r3];
9929
+ if (o3 === n2)
9930
+ return e3.delegate = null, "throw" === r3 && t3.iterator.return && (e3.method = "return", e3.arg = n2, L2(t3, e3), "throw" === e3.method) || "return" !== r3 && (e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a '" + r3 + "' method")), E2;
9931
+ var i3 = d2(o3, t3.iterator, e3.arg);
9932
+ if ("throw" === i3.type)
9933
+ return e3.method = "throw", e3.arg = i3.arg, e3.delegate = null, E2;
9934
+ var a3 = i3.arg;
9935
+ return a3 ? a3.done ? (e3[t3.resultName] = a3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg = n2), e3.delegate = null, E2) : a3 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, E2);
9936
+ }
9937
+ function T2(t3) {
9938
9938
  var e3 = { tryLoc: t3[0] };
9939
9939
  1 in t3 && (e3.catchLoc = t3[1]), 2 in t3 && (e3.finallyLoc = t3[2], e3.afterLoc = t3[3]), this.tryEntries.push(e3);
9940
9940
  }
9941
- function M2(t3) {
9941
+ function A2(t3) {
9942
9942
  var e3 = t3.completion || {};
9943
9943
  e3.type = "normal", delete e3.arg, t3.completion = e3;
9944
9944
  }
9945
- function A2(t3) {
9946
- this.tryEntries = [{ tryLoc: "root" }], t3.forEach(j2, this), this.reset(true);
9945
+ function P2(t3) {
9946
+ this.tryEntries = [{ tryLoc: "root" }], t3.forEach(T2, this), this.reset(true);
9947
9947
  }
9948
- function G2(t3) {
9948
+ function j2(t3) {
9949
9949
  if (t3 || "" === t3) {
9950
- var n3 = t3[s2];
9951
- if (n3)
9952
- return n3.call(t3);
9950
+ var r3 = t3[s2];
9951
+ if (r3)
9952
+ return r3.call(t3);
9953
9953
  if ("function" == typeof t3.next)
9954
9954
  return t3;
9955
9955
  if (!isNaN(t3.length)) {
9956
- var o3 = -1, a3 = function e3() {
9956
+ var o3 = -1, i3 = function e3() {
9957
9957
  for (; ++o3 < t3.length; )
9958
- if (i2.call(t3, o3))
9958
+ if (a2.call(t3, o3))
9959
9959
  return e3.value = t3[o3], e3.done = false, e3;
9960
- return e3.value = r2, e3.done = true, e3;
9960
+ return e3.value = n2, e3.done = true, e3;
9961
9961
  };
9962
- return a3.next = a3;
9962
+ return i3.next = i3;
9963
9963
  }
9964
9964
  }
9965
9965
  throw new TypeError(e2(t3) + " is not iterable");
9966
9966
  }
9967
- return L2.prototype = k2, c2(Z2, "constructor", { value: k2, configurable: true }), c2(k2, "constructor", { value: L2, configurable: true }), L2.displayName = f2(k2, d2, "GeneratorFunction"), o2.isGeneratorFunction = function(t3) {
9967
+ return w2.prototype = b2, u2(x2, "constructor", { value: b2, configurable: true }), u2(b2, "constructor", { value: w2, configurable: true }), w2.displayName = p2(b2, f2, "GeneratorFunction"), o2.isGeneratorFunction = function(t3) {
9968
9968
  var e3 = "function" == typeof t3 && t3.constructor;
9969
- return !!e3 && (e3 === L2 || "GeneratorFunction" === (e3.displayName || e3.name));
9969
+ return !!e3 && (e3 === w2 || "GeneratorFunction" === (e3.displayName || e3.name));
9970
9970
  }, o2.mark = function(t3) {
9971
- return Object.setPrototypeOf ? Object.setPrototypeOf(t3, k2) : (t3.__proto__ = k2, f2(t3, d2, "GeneratorFunction")), t3.prototype = Object.create(Z2), t3;
9971
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t3, b2) : (t3.__proto__ = b2, p2(t3, f2, "GeneratorFunction")), t3.prototype = Object.create(x2), t3;
9972
9972
  }, o2.awrap = function(t3) {
9973
9973
  return { __await: t3 };
9974
- }, W2(C2.prototype), f2(C2.prototype, l2, function() {
9974
+ }, S2(k2.prototype), p2(k2.prototype, l2, function() {
9975
9975
  return this;
9976
- }), o2.AsyncIterator = C2, o2.async = function(t3, e3, n3, r3, a3) {
9977
- void 0 === a3 && (a3 = Promise);
9978
- var i3 = new C2(h2(t3, e3, n3, r3), a3);
9979
- return o2.isGeneratorFunction(e3) ? i3 : i3.next().then(function(t4) {
9980
- return t4.done ? t4.value : i3.next();
9976
+ }), o2.AsyncIterator = k2, o2.async = function(t3, e3, r3, n3, i3) {
9977
+ void 0 === i3 && (i3 = Promise);
9978
+ var a3 = new k2(h2(t3, e3, r3, n3), i3);
9979
+ return o2.isGeneratorFunction(e3) ? a3 : a3.next().then(function(t4) {
9980
+ return t4.done ? t4.value : a3.next();
9981
9981
  });
9982
- }, W2(Z2), f2(Z2, d2, "Generator"), f2(Z2, s2, function() {
9982
+ }, S2(x2), p2(x2, f2, "Generator"), p2(x2, s2, function() {
9983
9983
  return this;
9984
- }), f2(Z2, "toString", function() {
9984
+ }), p2(x2, "toString", function() {
9985
9985
  return "[object Generator]";
9986
9986
  }), o2.keys = function(t3) {
9987
- var e3 = Object(t3), n3 = [];
9988
- for (var r3 in e3)
9989
- n3.push(r3);
9990
- return n3.reverse(), function t4() {
9991
- for (; n3.length; ) {
9992
- var r4 = n3.pop();
9993
- if (r4 in e3)
9994
- return t4.value = r4, t4.done = false, t4;
9987
+ var e3 = Object(t3), r3 = [];
9988
+ for (var n3 in e3)
9989
+ r3.push(n3);
9990
+ return r3.reverse(), function t4() {
9991
+ for (; r3.length; ) {
9992
+ var n4 = r3.pop();
9993
+ if (n4 in e3)
9994
+ return t4.value = n4, t4.done = false, t4;
9995
9995
  }
9996
9996
  return t4.done = true, t4;
9997
9997
  };
9998
- }, o2.values = G2, A2.prototype = { constructor: A2, reset: function(t3) {
9999
- 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(M2), !t3)
9998
+ }, o2.values = j2, P2.prototype = { constructor: P2, reset: function(t3) {
9999
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = n2, this.done = false, this.delegate = null, this.method = "next", this.arg = n2, this.tryEntries.forEach(A2), !t3)
10000
10000
  for (var e3 in this)
10001
- "t" === e3.charAt(0) && i2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = r2);
10001
+ "t" === e3.charAt(0) && a2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = n2);
10002
10002
  }, stop: function() {
10003
10003
  this.done = true;
10004
10004
  var t3 = this.tryEntries[0].completion;
@@ -10009,1085 +10009,315 @@ var r$1 = n$1(function(t2) {
10009
10009
  if (this.done)
10010
10010
  throw t3;
10011
10011
  var e3 = this;
10012
- function n3(n4, o4) {
10013
- return c3.type = "throw", c3.arg = t3, e3.next = n4, o4 && (e3.method = "next", e3.arg = r2), !!o4;
10012
+ function r3(r4, o4) {
10013
+ return u3.type = "throw", u3.arg = t3, e3.next = r4, o4 && (e3.method = "next", e3.arg = n2), !!o4;
10014
10014
  }
10015
10015
  for (var o3 = this.tryEntries.length - 1; o3 >= 0; --o3) {
10016
- var a3 = this.tryEntries[o3], c3 = a3.completion;
10017
- if ("root" === a3.tryLoc)
10018
- return n3("end");
10019
- if (a3.tryLoc <= this.prev) {
10020
- var u3 = i2.call(a3, "catchLoc"), s3 = i2.call(a3, "finallyLoc");
10021
- if (u3 && s3) {
10022
- if (this.prev < a3.catchLoc)
10023
- return n3(a3.catchLoc, true);
10024
- if (this.prev < a3.finallyLoc)
10025
- return n3(a3.finallyLoc);
10026
- } else if (u3) {
10027
- if (this.prev < a3.catchLoc)
10028
- return n3(a3.catchLoc, true);
10016
+ var i3 = this.tryEntries[o3], u3 = i3.completion;
10017
+ if ("root" === i3.tryLoc)
10018
+ return r3("end");
10019
+ if (i3.tryLoc <= this.prev) {
10020
+ var c3 = a2.call(i3, "catchLoc"), s3 = a2.call(i3, "finallyLoc");
10021
+ if (c3 && s3) {
10022
+ if (this.prev < i3.catchLoc)
10023
+ return r3(i3.catchLoc, true);
10024
+ if (this.prev < i3.finallyLoc)
10025
+ return r3(i3.finallyLoc);
10026
+ } else if (c3) {
10027
+ if (this.prev < i3.catchLoc)
10028
+ return r3(i3.catchLoc, true);
10029
10029
  } else {
10030
10030
  if (!s3)
10031
10031
  throw new Error("try statement without catch or finally");
10032
- if (this.prev < a3.finallyLoc)
10033
- return n3(a3.finallyLoc);
10032
+ if (this.prev < i3.finallyLoc)
10033
+ return r3(i3.finallyLoc);
10034
10034
  }
10035
10035
  }
10036
10036
  }
10037
10037
  }, abrupt: function(t3, e3) {
10038
- for (var n3 = this.tryEntries.length - 1; n3 >= 0; --n3) {
10039
- var r3 = this.tryEntries[n3];
10040
- if (r3.tryLoc <= this.prev && i2.call(r3, "finallyLoc") && this.prev < r3.finallyLoc) {
10041
- var o3 = r3;
10038
+ for (var r3 = this.tryEntries.length - 1; r3 >= 0; --r3) {
10039
+ var n3 = this.tryEntries[r3];
10040
+ if (n3.tryLoc <= this.prev && a2.call(n3, "finallyLoc") && this.prev < n3.finallyLoc) {
10041
+ var o3 = n3;
10042
10042
  break;
10043
10043
  }
10044
10044
  }
10045
10045
  o3 && ("break" === t3 || "continue" === t3) && o3.tryLoc <= e3 && e3 <= o3.finallyLoc && (o3 = null);
10046
- var a3 = o3 ? o3.completion : {};
10047
- return a3.type = t3, a3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc, g2) : this.complete(a3);
10046
+ var i3 = o3 ? o3.completion : {};
10047
+ return i3.type = t3, i3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc, E2) : this.complete(i3);
10048
10048
  }, complete: function(t3, e3) {
10049
10049
  if ("throw" === t3.type)
10050
10050
  throw t3.arg;
10051
- 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;
10051
+ 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), E2;
10052
10052
  }, finish: function(t3) {
10053
10053
  for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
10054
- var n3 = this.tryEntries[e3];
10055
- if (n3.finallyLoc === t3)
10056
- return this.complete(n3.completion, n3.afterLoc), M2(n3), g2;
10054
+ var r3 = this.tryEntries[e3];
10055
+ if (r3.finallyLoc === t3)
10056
+ return this.complete(r3.completion, r3.afterLoc), A2(r3), E2;
10057
10057
  }
10058
10058
  }, catch: function(t3) {
10059
10059
  for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
10060
- var n3 = this.tryEntries[e3];
10061
- if (n3.tryLoc === t3) {
10062
- var r3 = n3.completion;
10063
- if ("throw" === r3.type) {
10064
- var o3 = r3.arg;
10065
- M2(n3);
10060
+ var r3 = this.tryEntries[e3];
10061
+ if (r3.tryLoc === t3) {
10062
+ var n3 = r3.completion;
10063
+ if ("throw" === n3.type) {
10064
+ var o3 = n3.arg;
10065
+ A2(r3);
10066
10066
  }
10067
10067
  return o3;
10068
10068
  }
10069
10069
  }
10070
10070
  throw new Error("illegal catch attempt");
10071
- }, delegateYield: function(t3, e3, n3) {
10072
- return this.delegate = { iterator: G2(t3), resultName: e3, nextLoc: n3 }, "next" === this.method && (this.arg = r2), g2;
10071
+ }, delegateYield: function(t3, e3, r3) {
10072
+ return this.delegate = { iterator: j2(t3), resultName: e3, nextLoc: r3 }, "next" === this.method && (this.arg = n2), E2;
10073
10073
  } }, o2;
10074
10074
  }
10075
- t2.exports = n2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
10076
- })(), a = o$1;
10075
+ t2.exports = r2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
10076
+ }), i = o$1(), a = i;
10077
10077
  try {
10078
- regeneratorRuntime = o$1;
10078
+ regeneratorRuntime = i;
10079
10079
  } catch (t2) {
10080
- "object" == typeof globalThis ? globalThis.regeneratorRuntime = o$1 : Function("r", "regeneratorRuntime = r")(o$1);
10081
- }
10082
- var i = function() {
10083
- return i = Object.assign || function(t2) {
10084
- for (var e2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
10085
- for (var o2 in e2 = arguments[n2])
10080
+ "object" == typeof globalThis ? globalThis.regeneratorRuntime = i : Function("r", "regeneratorRuntime = r")(i);
10081
+ }
10082
+ function u(t2) {
10083
+ return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
10084
+ return typeof t3;
10085
+ } : function(t3) {
10086
+ return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
10087
+ }, u(t2);
10088
+ }
10089
+ var c = function() {
10090
+ return c = Object.assign || function(t2) {
10091
+ for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++)
10092
+ for (var o2 in e2 = arguments[r2])
10086
10093
  Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]);
10087
10094
  return t2;
10088
- }, i.apply(this, arguments);
10095
+ }, c.apply(this, arguments);
10089
10096
  };
10090
- function c(t2, e2, n2, r2) {
10091
- return new (n2 || (n2 = Promise))(function(o2, a2) {
10092
- function i2(t3) {
10093
- try {
10094
- u2(r2.next(t3));
10095
- } catch (t4) {
10096
- a2(t4);
10097
- }
10098
- }
10099
- function c2(t3) {
10100
- try {
10101
- u2(r2.throw(t3));
10102
- } catch (t4) {
10103
- a2(t4);
10104
- }
10105
- }
10106
- function u2(t3) {
10107
- var e3;
10108
- t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof n2 ? e3 : new n2(function(t4) {
10109
- t4(e3);
10110
- })).then(i2, c2);
10111
- }
10112
- u2((r2 = r2.apply(t2, e2 || [])).next());
10113
- });
10114
- }
10115
- function u(t2, e2) {
10116
- var n2, r2, o2, a2, i2 = { label: 0, sent: function() {
10117
- if (1 & o2[0])
10118
- throw o2[1];
10119
- return o2[1];
10120
- }, trys: [], ops: [] };
10121
- return a2 = { next: c2(0), throw: c2(1), return: c2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
10122
- return this;
10123
- }), a2;
10124
- function c2(c3) {
10125
- return function(u2) {
10126
- return function(c4) {
10127
- if (n2)
10128
- throw new TypeError("Generator is already executing.");
10129
- for (; a2 && (a2 = 0, c4[0] && (i2 = 0)), i2; )
10130
- try {
10131
- if (n2 = 1, r2 && (o2 = 2 & c4[0] ? r2.return : c4[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, c4[1])).done)
10132
- return o2;
10133
- switch (r2 = 0, o2 && (c4 = [2 & c4[0], o2.value]), c4[0]) {
10134
- case 0:
10135
- case 1:
10136
- o2 = c4;
10137
- break;
10138
- case 4:
10139
- return i2.label++, { value: c4[1], done: false };
10140
- case 5:
10141
- i2.label++, r2 = c4[1], c4 = [0];
10142
- continue;
10143
- case 7:
10144
- c4 = i2.ops.pop(), i2.trys.pop();
10145
- continue;
10146
- default:
10147
- if (!(o2 = i2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== c4[0] && 2 !== c4[0])) {
10148
- i2 = 0;
10149
- continue;
10150
- }
10151
- if (3 === c4[0] && (!o2 || c4[1] > o2[0] && c4[1] < o2[3])) {
10152
- i2.label = c4[1];
10153
- break;
10154
- }
10155
- if (6 === c4[0] && i2.label < o2[1]) {
10156
- i2.label = o2[1], o2 = c4;
10157
- break;
10158
- }
10159
- if (o2 && i2.label < o2[2]) {
10160
- i2.label = o2[2], i2.ops.push(c4);
10161
- break;
10162
- }
10163
- o2[2] && i2.ops.pop(), i2.trys.pop();
10164
- continue;
10165
- }
10166
- c4 = e2.call(t2, i2);
10167
- } catch (t3) {
10168
- c4 = [6, t3], r2 = 0;
10169
- } finally {
10170
- n2 = o2 = 0;
10171
- }
10172
- if (5 & c4[0])
10173
- throw c4[1];
10174
- return { value: c4[0] ? c4[1] : void 0, done: true };
10175
- }([c3, u2]);
10176
- };
10177
- }
10178
- }
10179
- function s(t2, e2, n2) {
10180
- if (n2 || 2 === arguments.length)
10181
- for (var r2, o2 = 0, a2 = e2.length; o2 < a2; o2++)
10182
- !r2 && o2 in e2 || (r2 || (r2 = Array.prototype.slice.call(e2, 0, o2)), r2[o2] = e2[o2]);
10183
- return t2.concat(r2 || Array.prototype.slice.call(e2));
10097
+ function s(t2) {
10098
+ for (var e2 = "", r2 = 0; r2 < t2.length; ++r2)
10099
+ if (r2 > 0) {
10100
+ var n2 = t2[r2].toLowerCase();
10101
+ n2 !== t2[r2] ? e2 += " ".concat(n2) : e2 += t2[r2];
10102
+ } else
10103
+ e2 += t2[r2].toUpperCase();
10104
+ return e2;
10184
10105
  }
10185
10106
  "function" == typeof SuppressedError && SuppressedError;
10186
- var l = "3.4.2";
10187
- function d(t2, e2) {
10188
- return new Promise(function(n2) {
10189
- return setTimeout(n2, t2, e2);
10190
- });
10191
- }
10192
- function f(t2) {
10193
- return !!t2 && "function" == typeof t2.then;
10194
- }
10195
- function h(t2, e2) {
10196
- try {
10197
- var n2 = t2();
10198
- f(n2) ? n2.then(function(t3) {
10199
- return e2(true, t3);
10200
- }, function(t3) {
10201
- return e2(false, t3);
10202
- }) : e2(true, n2);
10203
- } catch (t3) {
10204
- e2(false, t3);
10205
- }
10206
- }
10207
- function m(t2, e2, n2) {
10208
- return void 0 === n2 && (n2 = 16), c(this, void 0, void 0, function() {
10209
- var r2, o2, a2, i2;
10210
- return u(this, function(c2) {
10211
- switch (c2.label) {
10212
- case 0:
10213
- r2 = Array(t2.length), o2 = Date.now(), a2 = 0, c2.label = 1;
10214
- case 1:
10215
- return a2 < t2.length ? (r2[a2] = e2(t2[a2], a2), (i2 = Date.now()) >= o2 + n2 ? (o2 = i2, [4, d(0)]) : [3, 3]) : [3, 4];
10216
- case 2:
10217
- c2.sent(), c2.label = 3;
10218
- case 3:
10219
- return ++a2, [3, 1];
10220
- case 4:
10221
- return [2, r2];
10222
- }
10223
- });
10224
- });
10225
- }
10226
- function v(t2) {
10227
- t2.then(void 0, function() {
10228
- });
10229
- }
10230
- function p(t2, e2) {
10231
- t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
10232
- var n2 = [0, 0, 0, 0];
10233
- return n2[3] += t2[3] + e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] + e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] + e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] + e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
10234
- }
10235
- function y(t2, e2) {
10236
- t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
10237
- var n2 = [0, 0, 0, 0];
10238
- return n2[3] += t2[3] * e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] * e2[3], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[2] += t2[3] * e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] * e2[3], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[2] * e2[2], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[3] * e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] * e2[3] + t2[1] * e2[2] + t2[2] * e2[1] + t2[3] * e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
10239
- }
10240
- function b(t2, e2) {
10241
- return 32 === (e2 %= 64) ? [t2[1], t2[0]] : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2 | t2[0] >>> 32 - e2] : (e2 -= 32, [t2[1] << e2 | t2[0] >>> 32 - e2, t2[0] << e2 | t2[1] >>> 32 - e2]);
10242
- }
10243
- function g(t2, e2) {
10244
- return 0 === (e2 %= 64) ? t2 : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2] : [t2[1] << e2 - 32, 0];
10245
- }
10246
- function w(t2, e2) {
10247
- return [t2[0] ^ e2[0], t2[1] ^ e2[1]];
10248
- }
10249
- function L(t2) {
10250
- return t2 = w(t2, [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [4283543511, 3981806797]), [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [3301882366, 444984403]), [0, t2[0] >>> 1]);
10251
- }
10252
- function k(t2) {
10253
- return parseInt(t2);
10254
- }
10255
- function x(t2) {
10256
- return parseFloat(t2);
10257
- }
10258
- function V(t2, e2) {
10259
- return "number" == typeof t2 && isNaN(t2) ? e2 : t2;
10260
- }
10261
- function S(t2) {
10262
- return t2.reduce(function(t3, e2) {
10263
- return t3 + (e2 ? 1 : 0);
10264
- }, 0);
10265
- }
10266
- function Z(t2, e2) {
10267
- if (void 0 === e2 && (e2 = 1), Math.abs(e2) >= 1)
10268
- return Math.round(t2 / e2) * e2;
10269
- var n2 = 1 / e2;
10270
- return Math.round(t2 * n2) / n2;
10271
- }
10272
- function W(t2) {
10273
- return t2 && "object" == typeof t2 && "message" in t2 ? t2 : { message: t2 };
10274
- }
10275
- function C(t2, e2, n2) {
10276
- var r2 = Object.keys(t2).filter(function(t3) {
10277
- return !function(t4, e3) {
10278
- for (var n3 = 0, r3 = t4.length; n3 < r3; ++n3)
10279
- if (t4[n3] === e3)
10280
- return true;
10281
- return false;
10282
- }(n2, t3);
10283
- }), o2 = m(r2, function(n3) {
10284
- return function(t3, e3) {
10285
- var n4 = new Promise(function(n5) {
10286
- var r3 = Date.now();
10287
- h(t3.bind(null, e3), function() {
10288
- for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
10289
- t4[e4] = arguments[e4];
10290
- var o3 = Date.now() - r3;
10291
- if (!t4[0])
10292
- return n5(function() {
10293
- return { error: W(t4[1]), duration: o3 };
10294
- });
10295
- var a2 = t4[1];
10296
- if (function(t5) {
10297
- return "function" != typeof t5;
10298
- }(a2))
10299
- return n5(function() {
10300
- return { value: a2, duration: o3 };
10301
- });
10302
- n5(function() {
10303
- return new Promise(function(t5) {
10304
- var e5 = Date.now();
10305
- h(a2, function() {
10306
- for (var n6 = [], r4 = 0; r4 < arguments.length; r4++)
10307
- n6[r4] = arguments[r4];
10308
- var a3 = o3 + Date.now() - e5;
10309
- if (!n6[0])
10310
- return t5({ error: W(n6[1]), duration: a3 });
10311
- t5({ value: n6[1], duration: a3 });
10312
- });
10313
- });
10314
- });
10315
- });
10316
- });
10317
- return v(n4), function() {
10318
- return n4.then(function(t4) {
10319
- return t4();
10107
+ var l = "Blocked by CSP", f = s("WrongRegion"), p = s("SubscriptionNotActive"), h = s("UnsupportedVersion"), d = s("InstallationMethodRestricted"), v = "API key required", y = "API key not found", m = "API key expired", R = "9319";
10108
+ function E(t2, e2) {
10109
+ var r2 = [];
10110
+ return function(t3, e3) {
10111
+ var r3, n2, o2 = (n2 = function(t4, e4, r4) {
10112
+ if (r4 || 2 === arguments.length)
10113
+ for (var n3, o3 = 0, i3 = e4.length; o3 < i3; o3++)
10114
+ !n3 && o3 in e4 || (n3 || (n3 = Array.prototype.slice.call(e4, 0, o3)), n3[o3] = e4[o3]);
10115
+ return t4.concat(n3 || Array.prototype.slice.call(e4));
10116
+ }([], t3, true), { current: function() {
10117
+ return n2[0];
10118
+ }, postpone: function() {
10119
+ var t4 = n2.shift();
10120
+ void 0 !== t4 && n2.push(t4);
10121
+ }, exclude: function() {
10122
+ n2.shift();
10123
+ } }), i2 = (r3 = 0, function() {
10124
+ return Math.random() * Math.min(3e3, 100 * Math.pow(2, r3++));
10125
+ }), a2 = o2.current();
10126
+ if (void 0 === a2)
10127
+ return Promise.reject(new TypeError("The list of script URL patterns is empty"));
10128
+ var u2 = function(t4, r4) {
10129
+ return e3(t4).catch(function(t5) {
10130
+ if (r4 + 1 >= 5)
10131
+ throw t5;
10132
+ !function(t6) {
10133
+ if (!(t6 instanceof Error))
10134
+ return false;
10135
+ var e5 = t6.message;
10136
+ return e5 === l || e5 === R;
10137
+ }(t5) ? o2.postpone() : o2.exclude();
10138
+ var e4, n3 = o2.current();
10139
+ if (void 0 === n3)
10140
+ throw t5;
10141
+ return (e4 = i2(), new Promise(function(t6) {
10142
+ return setTimeout(t6, e4);
10143
+ })).then(function() {
10144
+ return u2(n3, r4 + 1);
10320
10145
  });
10321
- };
10322
- }(t2[n3], e2);
10323
- });
10324
- return v(o2), function() {
10325
- return c(this, void 0, void 0, function() {
10326
- var t3, e3, n3, a2;
10327
- return u(this, function(i2) {
10328
- switch (i2.label) {
10329
- case 0:
10330
- return [4, o2];
10331
- case 1:
10332
- return [4, m(i2.sent(), function(t4) {
10333
- var e4 = t4();
10334
- return v(e4), e4;
10335
- })];
10336
- case 2:
10337
- return t3 = i2.sent(), [4, Promise.all(t3)];
10338
- case 3:
10339
- for (e3 = i2.sent(), n3 = {}, a2 = 0; a2 < r2.length; ++a2)
10340
- n3[r2[a2]] = e3[a2];
10341
- return [2, n3];
10342
- }
10343
10146
  });
10344
- });
10345
- };
10346
- }
10347
- function I() {
10348
- var t2 = window, e2 = navigator;
10349
- return S(["MSCSSMatrix" in t2, "msSetImmediate" in t2, "msIndexedDB" in t2, "msMaxTouchPoints" in e2, "msPointerEnabled" in e2]) >= 4;
10350
- }
10351
- function F() {
10352
- var t2 = window, e2 = navigator;
10353
- return S(["webkitPersistentStorage" in e2, "webkitTemporaryStorage" in e2, 0 === e2.vendor.indexOf("Google"), "webkitResolveLocalFileSystemURL" in t2, "BatteryManager" in t2, "webkitMediaStream" in t2, "webkitSpeechGrammar" in t2]) >= 5;
10354
- }
10355
- function j() {
10356
- var t2 = window, e2 = navigator;
10357
- return S(["ApplePayError" in t2, "CSSPrimitiveValue" in t2, "Counter" in t2, 0 === e2.vendor.indexOf("Apple"), "getStorageUpdates" in e2, "WebKitMediaKeys" in t2]) >= 4;
10358
- }
10359
- function M() {
10360
- var t2 = window;
10361
- return S(["safari" in t2, !("DeviceMotionEvent" in t2), !("ongestureend" in t2), !("standalone" in navigator)]) >= 3;
10362
- }
10363
- function A() {
10364
- var t2 = document;
10365
- return (t2.exitFullscreen || t2.msExitFullscreen || t2.mozCancelFullScreen || t2.webkitExitFullscreen).call(t2);
10366
- }
10367
- function G() {
10368
- var t2 = F(), e2 = function() {
10369
- var t3, e3, n3 = window;
10370
- return S(["buildID" in navigator, "MozAppearance" in (null !== (e3 = null === (t3 = document.documentElement) || void 0 === t3 ? void 0 : t3.style) && void 0 !== e3 ? e3 : {}), "onmozfullscreenchange" in n3, "mozInnerScreenX" in n3, "CSSMozDocumentRule" in n3, "CanvasCaptureMediaStream" in n3]) >= 4;
10371
- }();
10372
- if (!t2 && !e2)
10373
- return false;
10374
- var n2 = window;
10375
- return S(["onorientationchange" in n2, "orientation" in n2, t2 && !("SharedWorker" in n2), e2 && /android/i.test(navigator.appVersion)]) >= 2;
10376
- }
10377
- function R(t2) {
10378
- var e2 = new Error(t2);
10379
- return e2.name = t2, e2;
10380
- }
10381
- function Y(t2, e2, n2) {
10382
- var r2, o2, a2;
10383
- return void 0 === n2 && (n2 = 50), c(this, void 0, void 0, function() {
10384
- var i2, c2;
10385
- return u(this, function(u2) {
10386
- switch (u2.label) {
10387
- case 0:
10388
- i2 = document, u2.label = 1;
10389
- case 1:
10390
- return i2.body ? [3, 3] : [4, d(n2)];
10391
- case 2:
10392
- return u2.sent(), [3, 1];
10393
- case 3:
10394
- c2 = i2.createElement("iframe"), u2.label = 4;
10395
- case 4:
10396
- return u2.trys.push([4, , 10, 11]), [4, new Promise(function(t3, n3) {
10397
- var r3 = false, o3 = function() {
10398
- r3 = true, t3();
10399
- };
10400
- c2.onload = o3, c2.onerror = function(t4) {
10401
- r3 = true, n3(t4);
10402
- };
10403
- var a3 = c2.style;
10404
- a3.setProperty("display", "block", "important"), a3.position = "absolute", a3.top = "0", a3.left = "0", a3.visibility = "hidden", e2 && "srcdoc" in c2 ? c2.srcdoc = e2 : c2.src = "about:blank", i2.body.appendChild(c2);
10405
- var u3 = function() {
10406
- var t4, e3;
10407
- r3 || ("complete" === (null === (e3 = null === (t4 = c2.contentWindow) || void 0 === t4 ? void 0 : t4.document) || void 0 === e3 ? void 0 : e3.readyState) ? o3() : setTimeout(u3, 10));
10408
- };
10409
- u3();
10410
- })];
10411
- case 5:
10412
- u2.sent(), u2.label = 6;
10413
- case 6:
10414
- return (null === (o2 = null === (r2 = c2.contentWindow) || void 0 === r2 ? void 0 : r2.document) || void 0 === o2 ? void 0 : o2.body) ? [3, 8] : [4, d(n2)];
10415
- case 7:
10416
- return u2.sent(), [3, 6];
10417
- case 8:
10418
- return [4, t2(c2, c2.contentWindow)];
10419
- case 9:
10420
- return [2, u2.sent()];
10421
- case 10:
10422
- return null === (a2 = c2.parentNode) || void 0 === a2 || a2.removeChild(c2), [7];
10423
- case 11:
10424
- return [2];
10425
- }
10426
- });
10147
+ };
10148
+ return u2(a2, 0);
10149
+ }(t2, function(t3) {
10150
+ var n2 = /* @__PURE__ */ new Date(), o2 = function(e3) {
10151
+ return r2.push({ url: t3, startedAt: n2, finishedAt: /* @__PURE__ */ new Date(), error: e3 });
10152
+ }, i2 = e2(t3);
10153
+ return i2.then(function() {
10154
+ return o2();
10155
+ }, o2), i2;
10156
+ }).then(function(t3) {
10157
+ return [t3, r2];
10427
10158
  });
10428
10159
  }
10429
- function X(t2) {
10430
- for (var e2 = function(t3) {
10431
- for (var e3, n3, r3 = "Unexpected syntax '".concat(t3, "'"), o3 = /^\s*([a-z-]*)(.*)$/i.exec(t3), a3 = o3[1] || void 0, i3 = {}, c3 = /([.:#][\w-]+|\[.+?\])/gi, u3 = function(t4, e4) {
10432
- i3[t4] = i3[t4] || [], i3[t4].push(e4);
10433
- }; ; ) {
10434
- var s2 = c3.exec(o3[2]);
10435
- if (!s2)
10436
- break;
10437
- var l2 = s2[0];
10438
- switch (l2[0]) {
10439
- case ".":
10440
- u3("class", l2.slice(1));
10441
- break;
10442
- case "#":
10443
- u3("id", l2.slice(1));
10444
- break;
10445
- case "[":
10446
- var d2 = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l2);
10447
- if (!d2)
10448
- throw new Error(r3);
10449
- u3(d2[1], null !== (n3 = null !== (e3 = d2[4]) && void 0 !== e3 ? e3 : d2[5]) && void 0 !== n3 ? n3 : "");
10450
- break;
10451
- default:
10452
- throw new Error(r3);
10453
- }
10454
- }
10455
- return [a3, i3];
10456
- }(t2), n2 = e2[0], r2 = e2[1], o2 = document.createElement(null != n2 ? n2 : "div"), a2 = 0, i2 = Object.keys(r2); a2 < i2.length; a2++) {
10457
- var c2 = i2[a2], u2 = r2[c2].join(" ");
10458
- "style" === c2 ? E(o2.style, u2) : o2.setAttribute(c2, u2);
10459
- }
10460
- return o2;
10461
- }
10462
- function E(t2, e2) {
10463
- for (var n2 = 0, r2 = e2.split(";"); n2 < r2.length; n2++) {
10464
- var o2 = r2[n2], a2 = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o2);
10465
- if (a2) {
10466
- var i2 = a2[1], c2 = a2[2], u2 = a2[4];
10467
- t2.setProperty(i2, c2, u2 || "");
10468
- }
10469
- }
10470
- }
10471
- var P = ["monospace", "sans-serif", "serif"], J = ["sans-serif-thin", "ARNO PRO", "Agency FB", "Arabic Typesetting", "Arial Unicode MS", "AvantGarde Bk BT", "BankGothic Md BT", "Batang", "Bitstream Vera Sans Mono", "Calibri", "Century", "Century Gothic", "Clarendon", "EUROSTILE", "Franklin Gothic", "Futura Bk BT", "Futura Md BT", "GOTHAM", "Gill Sans", "HELV", "Haettenschweiler", "Helvetica Neue", "Humanst521 BT", "Leelawadee", "Letter Gothic", "Levenim MT", "Lucida Bright", "Lucida Sans", "Menlo", "MS Mincho", "MS Outlook", "MS Reference Specialty", "MS UI Gothic", "MT Extra", "MYRIAD PRO", "Marlett", "Meiryo UI", "Microsoft Uighur", "Minion Pro", "Monotype Corsiva", "PMingLiU", "Pristina", "SCRIPTINA", "Segoe UI Light", "Serifa", "SimHei", "Small Fonts", "Staccato222 BT", "TRAJAN PRO", "Univers CE 55 Medium", "Vrinda", "ZWAdobeF"];
10472
- function H(t2) {
10473
- return t2.toDataURL();
10474
- }
10475
- var N, _, D = 2500;
10476
- function T() {
10477
- var t2 = this;
10478
- return function() {
10479
- if (void 0 === _) {
10480
- var t3 = function() {
10481
- var e2 = z();
10482
- O(e2) ? _ = setTimeout(t3, D) : (N = e2, _ = void 0);
10483
- };
10484
- t3();
10485
- }
10486
- }(), function() {
10487
- return c(t2, void 0, void 0, function() {
10488
- var t3;
10489
- return u(this, function(e2) {
10490
- switch (e2.label) {
10491
- case 0:
10492
- return O(t3 = z()) ? N ? [2, s([], N, true)] : (n2 = document).fullscreenElement || n2.msFullscreenElement || n2.mozFullScreenElement || n2.webkitFullscreenElement ? [4, A()] : [3, 2] : [3, 2];
10493
- case 1:
10494
- e2.sent(), t3 = z(), e2.label = 2;
10495
- case 2:
10496
- return O(t3) || (N = t3), [2, t3];
10497
- }
10498
- var n2;
10160
+ var g = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", w = "Failed to load the JS script of the agent";
10161
+ function b(t2) {
10162
+ return function(t3, e2, r2, n2) {
10163
+ var o2, i2 = document, a2 = "securitypolicyviolation", u2 = function(e3) {
10164
+ var r3 = new URL(t3, location.href), n3 = e3.blockedURI;
10165
+ n3 !== r3.href && n3 !== r3.protocol.slice(0, -1) && n3 !== r3.origin || (o2 = e3, c2());
10166
+ };
10167
+ i2.addEventListener(a2, u2);
10168
+ var c2 = function() {
10169
+ return i2.removeEventListener(a2, u2);
10170
+ };
10171
+ return Promise.resolve().then(e2).then(function(t4) {
10172
+ return c2(), t4;
10173
+ }, function(t4) {
10174
+ return new Promise(function(t5) {
10175
+ return setTimeout(t5);
10176
+ }).then(function() {
10177
+ if (c2(), o2)
10178
+ return function() {
10179
+ throw new Error(l);
10180
+ }();
10181
+ throw t4;
10499
10182
  });
10500
10183
  });
10501
- };
10502
- }
10503
- function z() {
10504
- var t2 = screen;
10505
- return [V(x(t2.availTop), null), V(x(t2.width) - x(t2.availWidth) - V(x(t2.availLeft), 0), null), V(x(t2.height) - x(t2.availHeight) - V(x(t2.availTop), 0), null), V(x(t2.availLeft), null)];
10184
+ }(t2, function() {
10185
+ return function(t3) {
10186
+ return new Promise(function(e2, r2) {
10187
+ var n2 = document.createElement("script"), o2 = function() {
10188
+ var t4;
10189
+ return null === (t4 = n2.parentNode) || void 0 === t4 ? void 0 : t4.removeChild(n2);
10190
+ }, i2 = document.head || document.getElementsByTagName("head")[0];
10191
+ n2.onload = function() {
10192
+ o2(), e2();
10193
+ }, n2.onerror = function() {
10194
+ o2(), r2(new Error(w));
10195
+ }, n2.async = true, n2.src = t3, i2.appendChild(n2);
10196
+ });
10197
+ }(t2);
10198
+ }).then(O);
10506
10199
  }
10507
- function O(t2) {
10508
- for (var e2 = 0; e2 < 4; ++e2)
10509
- if (t2[e2])
10510
- return false;
10511
- return true;
10200
+ function O() {
10201
+ var t2 = window, e2 = "__fpjs_p_l_b", r2 = t2[e2];
10202
+ if (function(t3, e3) {
10203
+ var r3, n2 = null === (r3 = Object.getOwnPropertyDescriptor) || void 0 === r3 ? void 0 : r3.call(Object, t3, e3);
10204
+ (null == n2 ? void 0 : n2.configurable) ? delete t3[e3] : n2 && !n2.writable || (t3[e3] = void 0);
10205
+ }(t2, e2), "function" != typeof (null == r2 ? void 0 : r2.load))
10206
+ throw new Error(R);
10207
+ return r2;
10512
10208
  }
10513
- function B(t2) {
10209
+ var _ = { load: function(t2) {
10514
10210
  var e2;
10515
- return c(this, void 0, void 0, function() {
10516
- var n2, r2, o2, a2, i2, c2, s2;
10517
- return u(this, function(u2) {
10518
- switch (u2.label) {
10519
- case 0:
10520
- for (n2 = document, r2 = n2.createElement("div"), o2 = new Array(t2.length), a2 = {}, U(r2), s2 = 0; s2 < t2.length; ++s2)
10521
- "DIALOG" === (i2 = X(t2[s2])).tagName && i2.show(), U(c2 = n2.createElement("div")), c2.appendChild(i2), r2.appendChild(c2), o2[s2] = i2;
10522
- u2.label = 1;
10523
- case 1:
10524
- return n2.body ? [3, 3] : [4, d(50)];
10525
- case 2:
10526
- return u2.sent(), [3, 1];
10527
- case 3:
10528
- n2.body.appendChild(r2);
10529
- try {
10530
- for (s2 = 0; s2 < t2.length; ++s2)
10531
- o2[s2].offsetParent || (a2[t2[s2]] = true);
10532
- } finally {
10533
- null === (e2 = r2.parentNode) || void 0 === e2 || e2.removeChild(r2);
10534
- }
10535
- return [2, a2];
10536
- }
10537
- });
10538
- });
10539
- }
10540
- function U(t2) {
10541
- t2.style.setProperty("display", "block", "important");
10542
- }
10543
- function Q(t2) {
10544
- return matchMedia("(inverted-colors: ".concat(t2, ")")).matches;
10545
- }
10546
- function K(t2) {
10547
- return matchMedia("(forced-colors: ".concat(t2, ")")).matches;
10548
- }
10549
- function q(t2) {
10550
- return matchMedia("(prefers-contrast: ".concat(t2, ")")).matches;
10551
- }
10552
- function $(t2) {
10553
- return matchMedia("(prefers-reduced-motion: ".concat(t2, ")")).matches;
10554
- }
10555
- function tt(t2) {
10556
- return matchMedia("(dynamic-range: ".concat(t2, ")")).matches;
10557
- }
10558
- var et = Math, nt = function() {
10559
- return 0;
10560
- };
10561
- var rt = { default: [], apple: [{ font: "-apple-system-body" }], serif: [{ fontFamily: "serif" }], sans: [{ fontFamily: "sans-serif" }], mono: [{ fontFamily: "monospace" }], min: [{ fontSize: "1px" }], system: [{ fontFamily: "system-ui" }] };
10562
- var ot = { fonts: function() {
10563
- return Y(function(t2, e2) {
10564
- var n2 = e2.document, r2 = n2.body;
10565
- r2.style.fontSize = "48px";
10566
- var o2 = n2.createElement("div"), a2 = {}, i2 = {}, c2 = function(t3) {
10567
- var e3 = n2.createElement("span"), r3 = e3.style;
10568
- return r3.position = "absolute", r3.top = "0", r3.left = "0", r3.fontFamily = t3, e3.textContent = "mmMwWLliI0O&1", o2.appendChild(e3), e3;
10569
- }, u2 = P.map(c2), s2 = function() {
10570
- for (var t3 = {}, e3 = function(e4) {
10571
- t3[e4] = P.map(function(t4) {
10572
- return function(t5, e5) {
10573
- return c2("'".concat(t5, "',").concat(e5));
10574
- }(e4, t4);
10575
- });
10576
- }, n3 = 0, r3 = J; n3 < r3.length; n3++) {
10577
- e3(r3[n3]);
10578
- }
10579
- return t3;
10580
- }();
10581
- r2.appendChild(o2);
10582
- for (var l2 = 0; l2 < P.length; l2++)
10583
- a2[P[l2]] = u2[l2].offsetWidth, i2[P[l2]] = u2[l2].offsetHeight;
10584
- return J.filter(function(t3) {
10585
- return e3 = s2[t3], P.some(function(t4, n3) {
10586
- return e3[n3].offsetWidth !== a2[t4] || e3[n3].offsetHeight !== i2[t4];
10587
- });
10588
- var e3;
10589
- });
10590
- });
10591
- }, domBlockers: function(t2) {
10592
- var e2 = (void 0 === t2 ? {} : t2).debug;
10593
- return c(this, void 0, void 0, function() {
10594
- var t3, n2, r2, o2, a2;
10595
- return u(this, function(i2) {
10596
- switch (i2.label) {
10597
- case 0:
10598
- return j() || G() ? (c2 = atob, t3 = { abpIndo: ["#Iklan-Melayang", "#Kolom-Iklan-728", "#SidebarIklan-wrapper", '[title="ALIENBOLA" i]', c2("I0JveC1CYW5uZXItYWRz")], abpvn: [".quangcao", "#mobileCatfish", c2("LmNsb3NlLWFkcw=="), '[id^="bn_bottom_fixed_"]', "#pmadv"], adBlockFinland: [".mainostila", c2("LnNwb25zb3JpdA=="), ".ylamainos", c2("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")], adBlockPersian: ["#navbar_notice_50", ".kadr", 'TABLE[width="140px"]', "#divAgahi", c2("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")], adBlockWarningRemoval: ["#adblock-honeypot", ".adblocker-root", ".wp_adblock_detect", c2("LmhlYWRlci1ibG9ja2VkLWFk"), c2("I2FkX2Jsb2NrZXI=")], adGuardAnnoyances: [".hs-sosyal", "#cookieconsentdiv", 'div[class^="app_gdpr"]', ".as-oil", '[data-cypress="soft-push-notification-modal"]'], adGuardBase: [".BetterJsPopOverlay", c2("I2FkXzMwMFgyNTA="), c2("I2Jhbm5lcmZsb2F0MjI="), c2("I2NhbXBhaWduLWJhbm5lcg=="), c2("I0FkLUNvbnRlbnQ=")], adGuardChinese: [c2("LlppX2FkX2FfSA=="), c2("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"), "#widget-quan", c2("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"), c2("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")], adGuardFrench: ["#pavePub", c2("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"), ".mobile_adhesion", ".widgetadv", c2("LmFkc19iYW4=")], adGuardGerman: ['aside[data-portal-id="leaderboard"]'], adGuardJapanese: ["#kauli_yad_1", c2("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="), c2("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="), c2("LmFkZ29vZ2xl"), c2("Ll9faXNib29zdFJldHVybkFk")], adGuardMobile: [c2("YW1wLWF1dG8tYWRz"), c2("LmFtcF9hZA=="), 'amp-embed[type="24smi"]', "#mgid_iframe1", c2("I2FkX2ludmlld19hcmVh")], adGuardRussian: [c2("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="), c2("LnJlY2xhbWE="), 'div[id^="smi2adblock"]', c2("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"), "#psyduckpockeball"], adGuardSocial: [c2("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="), c2("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="), ".etsy-tweet", "#inlineShare", ".popup-social"], adGuardSpanishPortuguese: ["#barraPublicidade", "#Publicidade", "#publiEspecial", "#queTooltip", ".cnt-publi"], adGuardTrackingProtection: ["#qoo-counter", c2("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="), c2("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="), "#top100counter"], adGuardTurkish: ["#backkapat", c2("I3Jla2xhbWk="), c2("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="), c2("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"), c2("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")], bulgarian: [c2("dGQjZnJlZW5ldF90YWJsZV9hZHM="), "#ea_intext_div", ".lapni-pop-over", "#xenium_hot_offers"], easyList: [".yb-floorad", c2("LndpZGdldF9wb19hZHNfd2lkZ2V0"), c2("LnRyYWZmaWNqdW5reS1hZA=="), ".textad_headline", c2("LnNwb25zb3JlZC10ZXh0LWxpbmtz")], easyListChina: [c2("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="), c2("LmZyb250cGFnZUFkdk0="), "#taotaole", "#aafoot.top_box", ".cfa_popup"], easyListCookie: [".ezmob-footer", ".cc-CookieWarning", "[data-cookie-number]", c2("LmF3LWNvb2tpZS1iYW5uZXI="), ".sygnal24-gdpr-modal-wrap"], easyListCzechSlovak: ["#onlajny-stickers", c2("I3Jla2xhbW5pLWJveA=="), c2("LnJla2xhbWEtbWVnYWJvYXJk"), ".sklik", c2("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")], easyListDutch: [c2("I2FkdmVydGVudGll"), c2("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="), ".adstekst", c2("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="), "#semilo-lrectangle"], easyListGermany: ["#SSpotIMPopSlider", c2("LnNwb25zb3JsaW5rZ3J1ZW4="), c2("I3dlcmJ1bmdza3k="), c2("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"), c2("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")], easyListItaly: [c2("LmJveF9hZHZfYW5udW5jaQ=="), ".sb-box-pubbliredazionale", c2("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")], easyListLithuania: [c2("LnJla2xhbW9zX3RhcnBhcw=="), c2("LnJla2xhbW9zX251b3JvZG9z"), c2("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"), c2("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"), c2("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")], estonian: [c2("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")], fanboyAnnoyances: ["#ac-lre-player", ".navigate-to-top", "#subscribe_popup", ".newsletter_holder", "#back-top"], fanboyAntiFacebook: [".util-bar-module-firefly-visible"], fanboyEnhancedTrackers: [".open.pushModal", "#issuem-leaky-paywall-articles-zero-remaining-nag", "#sovrn_container", 'div[class$="-hide"][zoompage-fontsize][style="display: block;"]', ".BlockNag__Card"], fanboySocial: ["#FollowUs", "#meteored_share", "#social_follow", ".article-sharer", ".community__social-desc"], frellwitSwedish: [c2("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="), c2("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="), "article.category-samarbete", c2("ZGl2LmhvbGlkQWRz"), "ul.adsmodern"], greekAdBlock: [c2("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"), c2("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="), c2("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"), "DIV.agores300", "TABLE.advright"], hungarian: ["#cemp_doboz", ".optimonk-iframe-container", c2("LmFkX19tYWlu"), c2("W2NsYXNzKj0iR29vZ2xlQWRzIl0="), "#hirdetesek_box"], iDontCareAboutCookies: ['.alert-info[data-block-track*="CookieNotice"]', ".ModuleTemplateCookieIndicator", ".o--cookies--container", "#cookies-policy-sticky", "#stickyCookieBar"], icelandicAbp: [c2("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")], latvian: [c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="), c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")], listKr: [c2("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="), c2("I2xpdmVyZUFkV3JhcHBlcg=="), c2("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="), c2("aW5zLmZhc3R2aWV3LWFk"), ".revenue_unit_item.dable"], listeAr: [c2("LmdlbWluaUxCMUFk"), ".right-and-left-sponsers", c2("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="), c2("YVtocmVmKj0iYm9vcmFxLm9yZyJd"), c2("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")], listeFr: [c2("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="), c2("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="), c2("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="), ".site-pub-interstitiel", 'div[id^="crt-"][data-criteo-id]'], officialPolish: ["#ceneo-placeholder-ceneo-12", c2("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"), c2("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="), c2("ZGl2I3NrYXBpZWNfYWQ=")], ro: [c2("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="), c2("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"), 'a[href^="/url/"]'], ruAd: [c2("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"), c2("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="), c2("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="), "#pgeldiz", ".yandex-rtb-block"], thaiAds: ["a[href*=macau-uta-popup]", c2("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="), c2("LmFkczMwMHM="), ".bumq", ".img-kosana"], webAnnoyancesUltralist: ["#mod-social-share-2", "#social-tools", c2("LmN0cGwtZnVsbGJhbm5lcg=="), ".zergnet-recommend", ".yt.btn-link.btn-md.btn"] }, n2 = Object.keys(t3), [4, B((a2 = []).concat.apply(a2, n2.map(function(e3) {
10599
- return t3[e3];
10600
- })))]) : [2, void 0];
10601
- case 1:
10602
- return r2 = i2.sent(), e2 && function(t4, e3) {
10603
- for (var n3 = "DOM blockers debug:\n```", r3 = 0, o3 = Object.keys(t4); r3 < o3.length; r3++) {
10604
- var a3 = o3[r3];
10605
- n3 += "\n".concat(a3, ":");
10606
- for (var i3 = 0, c3 = t4[a3]; i3 < c3.length; i3++) {
10607
- var u2 = c3[i3];
10608
- n3 += "\n ".concat(e3[u2] ? "🚫" : "➡️", " ").concat(u2);
10609
- }
10610
- }
10611
- console.log("".concat(n3, "\n```"));
10612
- }(t3, r2), (o2 = n2.filter(function(e3) {
10613
- var n3 = t3[e3];
10614
- return S(n3.map(function(t4) {
10615
- return r2[t4];
10616
- })) > 0.6 * n3.length;
10617
- })).sort(), [2, o2];
10618
- }
10619
- var c2;
10620
- });
10621
- });
10622
- }, fontPreferences: function() {
10623
- return function(t2, e2) {
10624
- void 0 === e2 && (e2 = 4e3);
10625
- return Y(function(n2, r2) {
10626
- var o2 = r2.document, a2 = o2.body, i2 = a2.style;
10627
- i2.width = "".concat(e2, "px"), i2.webkitTextSizeAdjust = i2.textSizeAdjust = "none", F() ? a2.style.zoom = "".concat(1 / r2.devicePixelRatio) : j() && (a2.style.zoom = "reset");
10628
- var c2 = o2.createElement("div");
10629
- return c2.textContent = s([], Array(e2 / 20 << 0), true).map(function() {
10630
- return "word";
10631
- }).join(" "), a2.appendChild(c2), t2(o2, a2);
10632
- }, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
10633
- }(function(t2, e2) {
10634
- for (var n2 = {}, r2 = {}, o2 = 0, a2 = Object.keys(rt); o2 < a2.length; o2++) {
10635
- var i2 = a2[o2], c2 = rt[i2], u2 = c2[0], s2 = void 0 === u2 ? {} : u2, l2 = c2[1], d2 = void 0 === l2 ? "mmMwWLliI0fiflO&1" : l2, f2 = t2.createElement("span");
10636
- f2.textContent = d2, f2.style.whiteSpace = "nowrap";
10637
- for (var h2 = 0, m2 = Object.keys(s2); h2 < m2.length; h2++) {
10638
- var v2 = m2[h2], p2 = s2[v2];
10639
- void 0 !== p2 && (f2.style[v2] = p2);
10640
- }
10641
- n2[i2] = f2, e2.appendChild(t2.createElement("br")), e2.appendChild(f2);
10642
- }
10643
- for (var y2 = 0, b2 = Object.keys(rt); y2 < b2.length; y2++) {
10644
- r2[i2 = b2[y2]] = n2[i2].getBoundingClientRect().width;
10645
- }
10646
- return r2;
10647
- });
10648
- }, audio: function() {
10649
- var t2 = window, e2 = t2.OfflineAudioContext || t2.webkitOfflineAudioContext;
10650
- if (!e2)
10651
- return -2;
10652
- if (j() && !M() && !function() {
10653
- var t3 = window;
10654
- return S(["DOMRectList" in t3, "RTCPeerConnectionIceEvent" in t3, "SVGGeometryElement" in t3, "ontransitioncancel" in t3]) >= 3;
10655
- }())
10656
- return -1;
10657
- var n2 = new e2(1, 5e3, 44100), r2 = n2.createOscillator();
10658
- r2.type = "triangle", r2.frequency.value = 1e4;
10659
- var o2 = n2.createDynamicsCompressor();
10660
- o2.threshold.value = -50, o2.knee.value = 40, o2.ratio.value = 12, o2.attack.value = 0, o2.release.value = 0.25, r2.connect(o2), o2.connect(n2.destination), r2.start(0);
10661
- var a2 = function(t3) {
10662
- var e3 = 3, n3 = 500, r3 = 500, o3 = 5e3, a3 = function() {
10663
- }, i3 = new Promise(function(i4, c3) {
10664
- var u3 = false, s2 = 0, l2 = 0;
10665
- t3.oncomplete = function(t4) {
10666
- return i4(t4.renderedBuffer);
10211
+ t2.scriptUrlPattern;
10212
+ var r2 = t2.token, n2 = t2.apiKey, o2 = void 0 === n2 ? r2 : n2, i2 = function(t3, e3) {
10213
+ var r3 = {};
10214
+ for (var n3 in t3)
10215
+ Object.prototype.hasOwnProperty.call(t3, n3) && e3.indexOf(n3) < 0 && (r3[n3] = t3[n3]);
10216
+ if (null != t3 && "function" == typeof Object.getOwnPropertySymbols) {
10217
+ var o3 = 0;
10218
+ for (n3 = Object.getOwnPropertySymbols(t3); o3 < n3.length; o3++)
10219
+ e3.indexOf(n3[o3]) < 0 && Object.prototype.propertyIsEnumerable.call(t3, n3[o3]) && (r3[n3[o3]] = t3[n3[o3]]);
10220
+ }
10221
+ return r3;
10222
+ }(t2, ["scriptUrlPattern", "token", "apiKey"]), a2 = null !== (e2 = function(t3, e3) {
10223
+ return function(t4, e4) {
10224
+ return Object.prototype.hasOwnProperty.call(t4, e4);
10225
+ }(t3, e3) ? t3[e3] : void 0;
10226
+ }(t2, "scriptUrlPattern")) && void 0 !== e2 ? e2 : g, u2 = function() {
10227
+ var t3 = [], e3 = function() {
10228
+ t3.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
10229
+ }, r3 = function(t4, e4, r4, n3) {
10230
+ return t4.addEventListener(e4, r4, n3), function() {
10231
+ return t4.removeEventListener(e4, r4, n3);
10667
10232
  };
10668
- var d2 = function() {
10669
- setTimeout(function() {
10670
- return c3(R("timeout"));
10671
- }, Math.min(r3, l2 + o3 - Date.now()));
10672
- }, h2 = function() {
10673
- try {
10674
- var r4 = t3.startRendering();
10675
- switch (f(r4) && v(r4), t3.state) {
10676
- case "running":
10677
- l2 = Date.now(), u3 && d2();
10678
- break;
10679
- case "suspended":
10680
- document.hidden || s2++, u3 && s2 >= e3 ? c3(R("suspended")) : setTimeout(h2, n3);
10681
- }
10682
- } catch (t4) {
10683
- c3(t4);
10684
- }
10685
- };
10686
- h2(), a3 = function() {
10687
- u3 || (u3 = true, l2 > 0 && d2());
10688
- };
10689
- });
10690
- return [i3, a3];
10691
- }(n2), i2 = a2[0], c2 = a2[1], u2 = i2.then(function(t3) {
10692
- return function(t4) {
10693
- for (var e3 = 0, n3 = 0; n3 < t4.length; ++n3)
10694
- e3 += Math.abs(t4[n3]);
10695
- return e3;
10696
- }(t3.getChannelData(0).subarray(4500));
10697
- }, function(t3) {
10698
- if ("timeout" === t3.name || "suspended" === t3.name)
10699
- return -3;
10700
- throw t3;
10701
- });
10702
- return v(u2), function() {
10703
- return c2(), u2;
10704
- };
10705
- }, screenFrame: function() {
10706
- var t2 = this, e2 = T();
10707
- return function() {
10708
- return c(t2, void 0, void 0, function() {
10709
- var t3, n2;
10710
- return u(this, function(r2) {
10711
- switch (r2.label) {
10712
- case 0:
10713
- return [4, e2()];
10714
- case 1:
10715
- return t3 = r2.sent(), [2, [(n2 = function(t4) {
10716
- return null === t4 ? null : Z(t4, 10);
10717
- })(t3[0]), n2(t3[1]), n2(t3[2]), n2(t3[3])]];
10718
- }
10719
- });
10720
- });
10721
- };
10722
- }, osCpu: function() {
10723
- return navigator.oscpu;
10724
- }, languages: function() {
10725
- var t2, e2 = navigator, n2 = [], r2 = e2.language || e2.userLanguage || e2.browserLanguage || e2.systemLanguage;
10726
- if (void 0 !== r2 && n2.push([r2]), Array.isArray(e2.languages))
10727
- F() && S([!("MediaSettingsRange" in (t2 = window)), "RTCEncodedAudioFrame" in t2, "" + t2.Intl == "[object Intl]", "" + t2.Reflect == "[object Reflect]"]) >= 3 || n2.push(e2.languages);
10728
- else if ("string" == typeof e2.languages) {
10729
- var o2 = e2.languages;
10730
- o2 && n2.push(o2.split(","));
10731
- }
10732
- return n2;
10733
- }, colorDepth: function() {
10734
- return window.screen.colorDepth;
10735
- }, deviceMemory: function() {
10736
- return V(x(navigator.deviceMemory), void 0);
10737
- }, screenResolution: function() {
10738
- var t2 = screen, e2 = function(t3) {
10739
- return V(k(t3), null);
10740
- }, n2 = [e2(t2.width), e2(t2.height)];
10741
- return n2.sort().reverse(), n2;
10742
- }, hardwareConcurrency: function() {
10743
- return V(k(navigator.hardwareConcurrency), void 0);
10744
- }, timezone: function() {
10745
- var t2, e2 = null === (t2 = window.Intl) || void 0 === t2 ? void 0 : t2.DateTimeFormat;
10746
- if (e2) {
10747
- var n2 = new e2().resolvedOptions().timeZone;
10748
- if (n2)
10749
- return n2;
10750
- }
10751
- var r2, o2 = (r2 = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(x(new Date(r2, 0, 1).getTimezoneOffset()), x(new Date(r2, 6, 1).getTimezoneOffset())));
10752
- return "UTC".concat(o2 >= 0 ? "+" : "").concat(Math.abs(o2));
10753
- }, sessionStorage: function() {
10754
- try {
10755
- return !!window.sessionStorage;
10756
- } catch (t2) {
10757
- return true;
10758
- }
10759
- }, localStorage: function() {
10760
- try {
10761
- return !!window.localStorage;
10762
- } catch (t2) {
10763
- return true;
10764
- }
10765
- }, indexedDB: function() {
10766
- var t2, e2;
10767
- if (!(I() || (t2 = window, e2 = navigator, S(["msWriteProfilerMark" in t2, "MSStream" in t2, "msLaunchUri" in e2, "msSaveBlob" in e2]) >= 3 && !I())))
10768
- try {
10769
- return !!window.indexedDB;
10770
- } catch (t3) {
10771
- return true;
10772
- }
10773
- }, openDatabase: function() {
10774
- return !!window.openDatabase;
10775
- }, cpuClass: function() {
10776
- return navigator.cpuClass;
10777
- }, platform: function() {
10778
- var t2 = navigator.platform;
10779
- return "MacIntel" === t2 && j() && !M() ? function() {
10780
- if ("iPad" === navigator.platform)
10781
- return true;
10782
- var t3 = screen, e2 = t3.width / t3.height;
10783
- return S(["MediaSource" in window, !!Element.prototype.webkitRequestFullscreen, e2 > 0.65 && e2 < 1.53]) >= 2;
10784
- }() ? "iPad" : "iPhone" : t2;
10785
- }, plugins: function() {
10786
- var t2 = navigator.plugins;
10787
- if (t2) {
10788
- for (var e2 = [], n2 = 0; n2 < t2.length; ++n2) {
10789
- var r2 = t2[n2];
10790
- if (r2) {
10791
- for (var o2 = [], a2 = 0; a2 < r2.length; ++a2) {
10792
- var i2 = r2[a2];
10793
- o2.push({ type: i2.type, suffixes: i2.suffixes });
10794
- }
10795
- e2.push({ name: r2.name, description: r2.description, mimeTypes: o2 });
10796
- }
10797
- }
10798
- return e2;
10799
- }
10800
- }, canvas: function() {
10801
- var t2, e2, n2 = false, r2 = function() {
10802
- var t3 = document.createElement("canvas");
10803
- return t3.width = 1, t3.height = 1, [t3, t3.getContext("2d")];
10804
- }(), o2 = r2[0], a2 = r2[1];
10805
- if (function(t3, e3) {
10806
- return !(!e3 || !t3.toDataURL);
10807
- }(o2, a2)) {
10808
- n2 = function(t3) {
10809
- return t3.rect(0, 0, 10, 10), t3.rect(2, 2, 6, 6), !t3.isPointInPath(5, 5, "evenodd");
10810
- }(a2), function(t3, e3) {
10811
- t3.width = 240, t3.height = 60, e3.textBaseline = "alphabetic", e3.fillStyle = "#f60", e3.fillRect(100, 1, 62, 20), e3.fillStyle = "#069", e3.font = '11pt "Times New Roman"';
10812
- var n3 = "Cwm fjordbank gly ".concat(String.fromCharCode(55357, 56835));
10813
- e3.fillText(n3, 2, 15), e3.fillStyle = "rgba(102, 204, 0, 0.2)", e3.font = "18pt Arial", e3.fillText(n3, 4, 45);
10814
- }(o2, a2);
10815
- var i2 = H(o2);
10816
- i2 !== H(o2) ? t2 = e2 = "unstable" : (e2 = i2, function(t3, e3) {
10817
- t3.width = 122, t3.height = 110, e3.globalCompositeOperation = "multiply";
10818
- for (var n3 = 0, r3 = [["#f2f", 40, 40], ["#2ff", 80, 40], ["#ff2", 60, 80]]; n3 < r3.length; n3++) {
10819
- var o3 = r3[n3], a3 = o3[0], i3 = o3[1], c2 = o3[2];
10820
- e3.fillStyle = a3, e3.beginPath(), e3.arc(i3, c2, 40, 0, 2 * Math.PI, true), e3.closePath(), e3.fill();
10821
- }
10822
- e3.fillStyle = "#f9c", e3.arc(60, 60, 60, 0, 2 * Math.PI, true), e3.arc(60, 60, 20, 0, 2 * Math.PI, true), e3.fill("evenodd");
10823
- }(o2, a2), t2 = H(o2));
10824
- } else
10825
- t2 = e2 = "";
10826
- return { winding: n2, geometry: t2, text: e2 };
10827
- }, touchSupport: function() {
10828
- var t2, e2 = navigator, n2 = 0;
10829
- void 0 !== e2.maxTouchPoints ? n2 = k(e2.maxTouchPoints) : void 0 !== e2.msMaxTouchPoints && (n2 = e2.msMaxTouchPoints);
10830
- try {
10831
- document.createEvent("TouchEvent"), t2 = true;
10832
- } catch (e3) {
10833
- t2 = false;
10834
- }
10835
- return { maxTouchPoints: n2, touchEvent: t2, touchStart: "ontouchstart" in window };
10836
- }, vendor: function() {
10837
- return navigator.vendor || "";
10838
- }, vendorFlavors: function() {
10839
- for (var t2 = [], e2 = 0, n2 = ["chrome", "safari", "__crWeb", "__gCrWeb", "yandex", "__yb", "__ybro", "__firefox__", "__edgeTrackingPreventionStatistics", "webkit", "oprt", "samsungAr", "ucweb", "UCShellJava", "puffinDevice"]; e2 < n2.length; e2++) {
10840
- var r2 = n2[e2], o2 = window[r2];
10841
- o2 && "object" == typeof o2 && t2.push(r2);
10842
- }
10843
- return t2.sort();
10844
- }, cookiesEnabled: function() {
10845
- var t2 = document;
10846
- try {
10847
- t2.cookie = "cookietest=1; SameSite=Strict;";
10848
- var e2 = -1 !== t2.cookie.indexOf("cookietest=");
10849
- return t2.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", e2;
10850
- } catch (t3) {
10851
- return false;
10852
- }
10853
- }, colorGamut: function() {
10854
- for (var t2 = 0, e2 = ["rec2020", "p3", "srgb"]; t2 < e2.length; t2++) {
10855
- var n2 = e2[t2];
10856
- if (matchMedia("(color-gamut: ".concat(n2, ")")).matches)
10857
- return n2;
10858
- }
10859
- }, invertedColors: function() {
10860
- return !!Q("inverted") || !Q("none") && void 0;
10861
- }, forcedColors: function() {
10862
- return !!K("active") || !K("none") && void 0;
10863
- }, monochrome: function() {
10864
- if (matchMedia("(min-monochrome: 0)").matches) {
10865
- for (var t2 = 0; t2 <= 100; ++t2)
10866
- if (matchMedia("(max-monochrome: ".concat(t2, ")")).matches)
10867
- return t2;
10868
- throw new Error("Too high value");
10869
- }
10870
- }, contrast: function() {
10871
- return q("no-preference") ? 0 : q("high") || q("more") ? 1 : q("low") || q("less") ? -1 : q("forced") ? 10 : void 0;
10872
- }, reducedMotion: function() {
10873
- return !!$("reduce") || !$("no-preference") && void 0;
10874
- }, hdr: function() {
10875
- return !!tt("high") || !tt("standard") && void 0;
10876
- }, math: function() {
10877
- var t2, e2 = et.acos || nt, n2 = et.acosh || nt, r2 = et.asin || nt, o2 = et.asinh || nt, a2 = et.atanh || nt, i2 = et.atan || nt, c2 = et.sin || nt, u2 = et.sinh || nt, s2 = et.cos || nt, l2 = et.cosh || nt, d2 = et.tan || nt, f2 = et.tanh || nt, h2 = et.exp || nt, m2 = et.expm1 || nt, v2 = et.log1p || nt;
10878
- return { acos: e2(0.12312423423423424), acosh: n2(1e308), acoshPf: (t2 = 1e154, et.log(t2 + et.sqrt(t2 * t2 - 1))), asin: r2(0.12312423423423424), asinh: o2(1), asinhPf: function(t3) {
10879
- return et.log(t3 + et.sqrt(t3 * t3 + 1));
10880
- }(1), atanh: a2(0.5), atanhPf: function(t3) {
10881
- return et.log((1 + t3) / (1 - t3)) / 2;
10882
- }(0.5), atan: i2(0.5), sin: c2(-1e300), sinh: u2(1), sinhPf: function(t3) {
10883
- return et.exp(t3) - 1 / et.exp(t3) / 2;
10884
- }(1), cos: s2(10.000000000123), cosh: l2(1), coshPf: function(t3) {
10885
- return (et.exp(t3) + 1 / et.exp(t3)) / 2;
10886
- }(1), tan: d2(-1e300), tanh: f2(1), tanhPf: function(t3) {
10887
- return (et.exp(2 * t3) - 1) / (et.exp(2 * t3) + 1);
10888
- }(1), exp: h2(1), expm1: m2(1), expm1Pf: function(t3) {
10889
- return et.exp(t3) - 1;
10890
- }(1), log1p: v2(10), log1pPf: function(t3) {
10891
- return et.log(1 + t3);
10892
- }(10), powPI: function(t3) {
10893
- return et.pow(et.PI, t3);
10894
- }(-100) };
10895
- }, videoCard: function() {
10896
- var t2, e2 = document.createElement("canvas"), n2 = null !== (t2 = e2.getContext("webgl")) && void 0 !== t2 ? t2 : e2.getContext("experimental-webgl");
10897
- if (n2 && "getExtension" in n2) {
10898
- var r2 = n2.getExtension("WEBGL_debug_renderer_info");
10899
- if (r2)
10900
- return { vendor: (n2.getParameter(r2.UNMASKED_VENDOR_WEBGL) || "").toString(), renderer: (n2.getParameter(r2.UNMASKED_RENDERER_WEBGL) || "").toString() };
10901
- }
10902
- }, pdfViewerEnabled: function() {
10903
- return navigator.pdfViewerEnabled;
10904
- }, architecture: function() {
10905
- var t2 = new Float32Array(1), e2 = new Uint8Array(t2.buffer);
10906
- return t2[0] = 1 / 0, t2[0] = t2[0] - t2[0], e2[3];
10907
- } };
10908
- var at = "$ if upgrade to Pro: https://fpjs.dev/pro";
10909
- function it(t2) {
10910
- var e2 = function(t3) {
10911
- if (G())
10912
- return 0.4;
10913
- if (j())
10914
- return M() ? 0.5 : 0.3;
10915
- var e3 = t3.platform.value || "";
10916
- if (/^Win/.test(e3))
10917
- return 0.6;
10918
- if (/^Mac/.test(e3))
10919
- return 0.5;
10920
- return 0.7;
10921
- }(t2), n2 = function(t3) {
10922
- return Z(0.99 + 0.01 * t3, 1e-4);
10923
- }(e2);
10924
- return { score: e2, comment: at.replace(/\$/g, "".concat(n2)) };
10925
- }
10926
- function ct(t2) {
10927
- return JSON.stringify(t2, function(t3, e2) {
10928
- return e2 instanceof Error ? i({ name: (n2 = e2).name, message: n2.message, stack: null === (r2 = n2.stack) || void 0 === r2 ? void 0 : r2.split("\n") }, n2) : e2;
10929
- var n2, r2;
10930
- }, 2);
10931
- }
10932
- function ut(t2) {
10933
- return function(t3, e2) {
10934
- e2 = e2 || 0;
10935
- var n2, r2 = (t3 = t3 || "").length % 16, o2 = t3.length - r2, a2 = [0, e2], i2 = [0, e2], c2 = [0, 0], u2 = [0, 0], s2 = [2277735313, 289559509], l2 = [1291169091, 658871167];
10936
- for (n2 = 0; n2 < o2; n2 += 16)
10937
- c2 = [255 & t3.charCodeAt(n2 + 4) | (255 & t3.charCodeAt(n2 + 5)) << 8 | (255 & t3.charCodeAt(n2 + 6)) << 16 | (255 & t3.charCodeAt(n2 + 7)) << 24, 255 & t3.charCodeAt(n2) | (255 & t3.charCodeAt(n2 + 1)) << 8 | (255 & t3.charCodeAt(n2 + 2)) << 16 | (255 & t3.charCodeAt(n2 + 3)) << 24], u2 = [255 & t3.charCodeAt(n2 + 12) | (255 & t3.charCodeAt(n2 + 13)) << 8 | (255 & t3.charCodeAt(n2 + 14)) << 16 | (255 & t3.charCodeAt(n2 + 15)) << 24, 255 & t3.charCodeAt(n2 + 8) | (255 & t3.charCodeAt(n2 + 9)) << 8 | (255 & t3.charCodeAt(n2 + 10)) << 16 | (255 & t3.charCodeAt(n2 + 11)) << 24], c2 = b(c2 = y(c2, s2), 31), a2 = p(a2 = b(a2 = w(a2, c2 = y(c2, l2)), 27), i2), a2 = p(y(a2, [0, 5]), [0, 1390208809]), u2 = b(u2 = y(u2, l2), 33), i2 = p(i2 = b(i2 = w(i2, u2 = y(u2, s2)), 31), a2), i2 = p(y(i2, [0, 5]), [0, 944331445]);
10938
- switch (c2 = [0, 0], u2 = [0, 0], r2) {
10939
- case 15:
10940
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 14)], 48));
10941
- case 14:
10942
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 13)], 40));
10943
- case 13:
10944
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 12)], 32));
10945
- case 12:
10946
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 11)], 24));
10947
- case 11:
10948
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 10)], 16));
10949
- case 10:
10950
- u2 = w(u2, g([0, t3.charCodeAt(n2 + 9)], 8));
10951
- case 9:
10952
- u2 = y(u2 = w(u2, [0, t3.charCodeAt(n2 + 8)]), l2), i2 = w(i2, u2 = y(u2 = b(u2, 33), s2));
10953
- case 8:
10954
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 7)], 56));
10955
- case 7:
10956
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 6)], 48));
10957
- case 6:
10958
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 5)], 40));
10959
- case 5:
10960
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 4)], 32));
10961
- case 4:
10962
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 3)], 24));
10963
- case 3:
10964
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 2)], 16));
10965
- case 2:
10966
- c2 = w(c2, g([0, t3.charCodeAt(n2 + 1)], 8));
10967
- case 1:
10968
- c2 = y(c2 = w(c2, [0, t3.charCodeAt(n2)]), s2), a2 = w(a2, c2 = y(c2 = b(c2, 31), l2));
10969
- }
10970
- return a2 = p(a2 = w(a2, [0, t3.length]), i2 = w(i2, [0, t3.length])), i2 = p(i2, a2), a2 = p(a2 = L(a2), i2 = L(i2)), i2 = p(i2, a2), ("00000000" + (a2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a2[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[1] >>> 0).toString(16)).slice(-8);
10971
- }(function(t3) {
10972
- for (var e2 = "", n2 = 0, r2 = Object.keys(t3).sort(); n2 < r2.length; n2++) {
10973
- var o2 = r2[n2], a2 = t3[o2], i2 = a2.error ? "error" : JSON.stringify(a2.value);
10974
- e2 += "".concat(e2 ? "|" : "").concat(o2.replace(/([:|\\])/g, "\\$1"), ":").concat(i2);
10975
- }
10976
- return e2;
10977
- }(t2));
10978
- }
10979
- function st(t2) {
10980
- return void 0 === t2 && (t2 = 50), function(t3, e2) {
10981
- void 0 === e2 && (e2 = 1 / 0);
10982
- var n2 = window.requestIdleCallback;
10983
- return n2 ? new Promise(function(t4) {
10984
- return n2.call(window, function() {
10985
- return t4();
10986
- }, { timeout: e2 });
10987
- }) : d(Math.min(t3, e2));
10988
- }(t2, 2 * t2);
10989
- }
10990
- function lt(t2, e2) {
10991
- var n2 = Date.now();
10992
- return { get: function(r2) {
10993
- return c(this, void 0, void 0, function() {
10994
- var o2, a2, i2;
10995
- return u(this, function(c2) {
10996
- switch (c2.label) {
10997
- case 0:
10998
- return o2 = Date.now(), [4, t2()];
10999
- case 1:
11000
- return a2 = c2.sent(), i2 = function(t3) {
11001
- var e3;
11002
- return { get visitorId() {
11003
- return void 0 === e3 && (e3 = ut(this.components)), e3;
11004
- }, set visitorId(t4) {
11005
- e3 = t4;
11006
- }, confidence: it(t3), components: t3, version: l };
11007
- }(a2), (e2 || (null == r2 ? void 0 : r2.debug)) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(i2.version, "\nuserAgent: ").concat(navigator.userAgent, "\ntimeBetweenLoadAndGet: ").concat(o2 - n2, "\nvisitorId: ").concat(i2.visitorId, "\ncomponents: ").concat(ct(a2), "\n```")), [2, i2];
11008
- }
10233
+ }(document, "visibilitychange", e3);
10234
+ return e3(), [t3, r3];
10235
+ }(), s2 = u2[0], l2 = u2[1];
10236
+ return Promise.resolve().then(function() {
10237
+ if (!o2 || "string" != typeof o2)
10238
+ throw new Error(v);
10239
+ return E(function(t3, e3) {
10240
+ return (Array.isArray(t3) ? t3 : [t3]).map(function(t4) {
10241
+ return function(t5, e4) {
10242
+ var r3 = encodeURIComponent;
10243
+ return t5.replace(/<[^<>]+>/g, function(t6) {
10244
+ return "<version>" === t6 ? "3" : "<apiKey>" === t6 ? r3(e4) : "<loaderVersion>" === t6 ? r3("3.8.6") : t6;
10245
+ });
10246
+ }(String(t4), e3);
11009
10247
  });
11010
- });
11011
- } };
11012
- }
11013
- var dt = { load: function(t2) {
11014
- var e2 = void 0 === t2 ? {} : t2, n2 = e2.delayFallback, r2 = e2.debug, o2 = e2.monitoring, a2 = void 0 === o2 || o2;
11015
- return c(this, void 0, void 0, function() {
11016
- return u(this, function(t3) {
11017
- switch (t3.label) {
11018
- case 0:
11019
- return a2 && function() {
11020
- if (!(window.__fpjs_d_m || Math.random() >= 1e-3))
11021
- try {
11022
- var t4 = new XMLHttpRequest();
11023
- t4.open("get", "https://m1.openfpcdn.io/fingerprintjs/v".concat(l, "/npm-monitoring"), true), t4.send();
11024
- } catch (t5) {
11025
- console.error(t5);
11026
- }
11027
- }(), [4, st(n2)];
11028
- case 1:
11029
- return t3.sent(), [2, lt(C(ot, { debug: r2 }, []), r2)];
11030
- }
11031
- });
10248
+ }(a2, o2), b);
10249
+ }).catch(function(t3) {
10250
+ throw l2(), function(t4) {
10251
+ return t4 instanceof Error && t4.message === R ? new Error(w) : t4;
10252
+ }(t3);
10253
+ }).then(function(t3) {
10254
+ var e3 = t3[0], r3 = t3[1];
10255
+ return l2(), e3.load(c(c({}, i2), { ldi: { attempts: r3, visibilityStates: s2 } }));
11032
10256
  });
11033
- }, hashComponents: ut, componentsToDebugString: ct };
11034
- function ft() {
11035
- return ht.apply(this, arguments);
10257
+ }, 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" } };
10258
+ function I() {
10259
+ return x.apply(this, arguments);
11036
10260
  }
11037
- function ht() {
11038
- return (ht = e$1(a.mark(function t2() {
11039
- var e2, n2;
10261
+ function x() {
10262
+ return (x = e$1(a.mark(function t2() {
10263
+ var e2, r2, n2, o2;
11040
10264
  return a.wrap(function(t3) {
11041
10265
  for (; ; )
11042
10266
  switch (t3.prev = t3.next) {
11043
10267
  case 0:
11044
- return t3.prev = 0, t3.next = 3, dt.load({ monitoring: false });
11045
- case 3:
11046
- return e2 = t3.sent, t3.next = 6, e2.get();
11047
- case 6:
11048
- return n2 = t3.sent, t3.abrupt("return", n2.visitorId);
10268
+ if (t3.prev = 0, e2 = "object" === ("undefined" == typeof Cypress ? "undefined" : u(Cypress)), r2 = "object" === ("undefined" == typeof process ? "undefined" : u(process)) && "test" === { "NODE_ENV": "production" }.NODE_ENV, !e2 && !r2) {
10269
+ t3.next = 5;
10270
+ break;
10271
+ }
10272
+ return t3.abrupt("return", "a-mock-visitor-id");
10273
+ case 5:
10274
+ return t3.next = 7, _.load({ apiKey: "hpFVJecm7Ni7AjSfvBIW" });
10275
+ case 7:
10276
+ return n2 = t3.sent, t3.next = 10, n2.get();
11049
10277
  case 10:
11050
- return t3.prev = 10, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
10278
+ return o2 = t3.sent, t3.abrupt("return", o2.visitorId);
11051
10279
  case 14:
10280
+ return t3.prev = 14, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
10281
+ case 18:
11052
10282
  case "end":
11053
10283
  return t3.stop();
11054
10284
  }
11055
- }, t2, null, [[0, 10]]);
10285
+ }, t2, null, [[0, 14]]);
11056
10286
  }))).apply(this, arguments);
11057
10287
  }
11058
- function mt() {
11059
- return vt.apply(this, arguments);
10288
+ function S() {
10289
+ return k.apply(this, arguments);
11060
10290
  }
11061
- function vt() {
11062
- return (vt = e$1(a.mark(function t2() {
10291
+ function k() {
10292
+ return (k = e$1(a.mark(function t2() {
11063
10293
  return a.wrap(function(t3) {
11064
10294
  for (; ; )
11065
10295
  switch (t3.prev = t3.next) {
11066
10296
  case 0:
11067
10297
  return t3.abrupt("return", new Promise(function(t4) {
11068
10298
  window.requestIdleCallback ? requestIdleCallback(e$1(a.mark(function e2() {
11069
- var n2;
10299
+ var r2;
11070
10300
  return a.wrap(function(e3) {
11071
10301
  for (; ; )
11072
10302
  switch (e3.prev = e3.next) {
11073
10303
  case 0:
11074
- return e3.next = 2, ft();
10304
+ return e3.next = 2, I();
11075
10305
  case 2:
11076
- n2 = e3.sent, t4(n2);
10306
+ r2 = e3.sent, t4(r2);
11077
10307
  case 4:
11078
10308
  case "end":
11079
10309
  return e3.stop();
11080
10310
  }
11081
10311
  }, e2);
11082
10312
  }))) : setTimeout(e$1(a.mark(function e2() {
11083
- var n2;
10313
+ var r2;
11084
10314
  return a.wrap(function(e3) {
11085
10315
  for (; ; )
11086
10316
  switch (e3.prev = e3.next) {
11087
10317
  case 0:
11088
- return e3.next = 2, ft();
10318
+ return e3.next = 2, I();
11089
10319
  case 2:
11090
- n2 = e3.sent, t4(n2);
10320
+ r2 = e3.sent, t4(r2);
11091
10321
  case 4:
11092
10322
  case "end":
11093
10323
  return e3.stop();
@@ -11102,33 +10332,33 @@ function vt() {
11102
10332
  }, t2);
11103
10333
  }))).apply(this, arguments);
11104
10334
  }
11105
- var pt = function(t2) {
11106
- var e2 = t2.env, n2 = t2.kountAccountId, r2 = t2.kountSessionId, o2 = function(t3) {
10335
+ var N = function(t2) {
10336
+ var e2 = t2.env, r2 = t2.kountAccountId, n2 = t2.kountSessionId, o2 = function(t3) {
11107
10337
  return "production" === t3;
11108
- }(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com", a2 = new URL("".concat(o2, "/collect/sdk"));
11109
- a2.searchParams.append("m", n2), r2 && a2.searchParams.append("m", r2);
11110
- var i2 = document.createElement("script");
11111
- return i2.setAttribute("class", "kaxsdc"), i2.setAttribute("data-event", "load"), i2.setAttribute("type", "text/javascript"), i2.setAttribute("src", a2.href), document.body.append(i2), i2;
10338
+ }(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com", i2 = new URL("".concat(o2, "/collect/sdk"));
10339
+ i2.searchParams.append("m", r2), n2 && i2.searchParams.append("m", n2);
10340
+ var a2 = document.createElement("script");
10341
+ 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;
11112
10342
  };
11113
- function yt(t2) {
11114
- return bt.apply(this, arguments);
10343
+ function L(t2) {
10344
+ return T.apply(this, arguments);
11115
10345
  }
11116
- function bt() {
11117
- return (bt = e$1(a.mark(function t2(e2) {
11118
- var n2, r2, o2;
10346
+ function T() {
10347
+ return (T = e$1(a.mark(function t2(e2) {
10348
+ var r2, n2, o2;
11119
10349
  return a.wrap(function(t3) {
11120
10350
  for (; ; )
11121
10351
  switch (t3.prev = t3.next) {
11122
10352
  case 0:
11123
- return n2 = e2.env, r2 = e2.kountAccountId, o2 = e2.kountSessionId, t3.abrupt("return", new Promise(function(t4, e3) {
11124
- var a2 = pt({ env: n2, kountAccountId: r2, kountSessionId: o2 });
11125
- a2.onload = function() {
10353
+ return r2 = e2.env, n2 = e2.kountAccountId, o2 = e2.kountSessionId, t3.abrupt("return", new Promise(function(t4, e3) {
10354
+ var i2 = N({ env: r2, kountAccountId: n2, kountSessionId: o2 });
10355
+ i2.onload = function() {
11126
10356
  var e4 = new ka.ClientSDK();
11127
10357
  e4.setupCallback({ "collect-begin": function(e5) {
11128
- var n3 = e5.MercSessId;
11129
- t4(n3);
10358
+ var r3 = e5.MercSessId;
10359
+ t4(r3);
11130
10360
  } }), e4.autoLoadEvents();
11131
- }, a2.onerror = function() {
10361
+ }, i2.onerror = function() {
11132
10362
  e3(new Error("Error attempting to mount Kount script"));
11133
10363
  };
11134
10364
  }));
@@ -11139,56 +10369,56 @@ function bt() {
11139
10369
  }, t2);
11140
10370
  }))).apply(this, arguments);
11141
10371
  }
11142
- function gt(t2) {
11143
- return wt.apply(this, arguments);
10372
+ function A(t2) {
10373
+ return P.apply(this, arguments);
11144
10374
  }
11145
- function wt() {
11146
- return wt = e$1(a.mark(function t2(e2) {
11147
- var n2, r2, o2, i2, c2, u2, s2, l2, d2, f2, h2, m2, v2, p2, y2, b2, g2, w2, L2, k2;
10375
+ function P() {
10376
+ return P = e$1(a.mark(function t2(e2) {
10377
+ var r2, n2, o2, i2, u2, c2, s2, l2, f2, p2, h2, d2, v2, y2, m2, R2, E2, g2, w2, b2;
11148
10378
  return a.wrap(function(t3) {
11149
10379
  for (; ; )
11150
10380
  switch (t3.prev = t3.next) {
11151
10381
  case 0:
11152
- return n2 = e2.env, r2 = void 0 === n2 ? null : n2, o2 = e2.screen, i2 = e2.navigator, c2 = e2.kountAccountId, u2 = void 0 === c2 ? null : c2, s2 = e2.kountSessionId, l2 = void 0 === s2 ? null : s2, d2 = e2.getFingerprint, f2 = e2.getFraudSessionId, m2 = (h2 = o2 || {}).colorDepth, v2 = h2.height, p2 = h2.width, b2 = (y2 = i2 || {}).javaEnabled, g2 = y2.language, t3.prev = 3, t3.next = 6, d2();
10382
+ return r2 = e2.env, n2 = void 0 === r2 ? null : r2, o2 = e2.screen, i2 = e2.navigator, u2 = e2.kountAccountId, c2 = void 0 === u2 ? null : u2, s2 = e2.kountSessionId, l2 = void 0 === s2 ? null : s2, f2 = e2.getFingerprint, p2 = e2.getFraudSessionId, d2 = (h2 = o2 || {}).colorDepth, v2 = h2.height, y2 = h2.width, R2 = (m2 = i2 || {}).javaEnabled, E2 = m2.language, t3.prev = 3, t3.next = 6, f2();
11153
10383
  case 6:
11154
- if (w2 = t3.sent, !u2) {
10384
+ if (g2 = t3.sent, !c2) {
11155
10385
  t3.next = 11;
11156
10386
  break;
11157
10387
  }
11158
- return t3.next = 10, f2({ env: r2, kountAccountId: u2, kountSessionId: l2 });
10388
+ return t3.next = 10, p2({ env: n2, kountAccountId: c2, kountSessionId: l2 });
11159
10389
  case 10:
11160
- L2 = t3.sent;
10390
+ w2 = t3.sent;
11161
10391
  case 11:
11162
10392
  t3.next = 16;
11163
10393
  break;
11164
10394
  case 13:
11165
10395
  t3.prev = 13, t3.t0 = t3.catch(3), console.error(t3.t0);
11166
10396
  case 16:
11167
- return k2 = { riskMetadata: { fingerprint: w2 || null, extraData: { kountFraudSessionId: L2 || null }, browserData: { colorDepth: m2 || null, isJavaEnabled: b2 ? b2.call(i2) : null, language: g2 || null, screenHeight: v2 || null, screenWidth: p2 || null, timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset() } } }, t3.abrupt("return", k2);
10397
+ return b2 = { riskMetadata: { fingerprint: g2 || null, extraData: { kountFraudSessionId: w2 || null }, browserData: { colorDepth: d2 || null, isJavaEnabled: R2 ? R2.call(i2) : null, language: E2 || null, screenHeight: v2 || null, screenWidth: y2 || null, timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset() } } }, t3.abrupt("return", b2);
11168
10398
  case 18:
11169
10399
  case "end":
11170
10400
  return t3.stop();
11171
10401
  }
11172
10402
  }, t2, null, [[3, 13]]);
11173
- })), wt.apply(this, arguments);
10403
+ })), P.apply(this, arguments);
11174
10404
  }
11175
- function Lt() {
11176
- return kt.apply(this, arguments);
10405
+ function j() {
10406
+ return D.apply(this, arguments);
11177
10407
  }
11178
- function kt() {
11179
- return kt = e$1(a.mark(function t2() {
11180
- var e2, n2, r2, o2, i2, c2, u2, s2 = arguments;
10408
+ function D() {
10409
+ return D = e$1(a.mark(function t2() {
10410
+ var e2, r2, n2, o2, i2, u2, c2, s2 = arguments;
11181
10411
  return a.wrap(function(t3) {
11182
10412
  for (; ; )
11183
10413
  switch (t3.prev = t3.next) {
11184
10414
  case 0:
11185
- return n2 = (e2 = s2.length > 0 && void 0 !== s2[0] ? s2[0] : {}).env, r2 = void 0 === n2 ? null : n2, o2 = e2.kountAccountId, i2 = void 0 === o2 ? null : o2, c2 = e2.kountSessionId, u2 = void 0 === c2 ? null : c2, t3.abrupt("return", gt({ env: r2, screen, navigator, kountAccountId: i2, kountSessionId: u2, getFingerprint: mt, getFraudSessionId: yt }));
10415
+ return r2 = (e2 = s2.length > 0 && void 0 !== s2[0] ? s2[0] : {}).env, n2 = void 0 === r2 ? null : r2, o2 = e2.kountAccountId, i2 = void 0 === o2 ? null : o2, u2 = e2.kountSessionId, c2 = void 0 === u2 ? null : u2, t3.abrupt("return", A({ env: n2, screen, navigator, kountAccountId: i2, kountSessionId: c2, getFingerprint: S, getFraudSessionId: L }));
11186
10416
  case 2:
11187
10417
  case "end":
11188
10418
  return t3.stop();
11189
10419
  }
11190
10420
  }, t2);
11191
- })), kt.apply(this, arguments);
10421
+ })), D.apply(this, arguments);
11192
10422
  }
11193
10423
  function getPaymentMethods() {
11194
10424
  var _a;
@@ -14666,17 +13896,32 @@ function filterReadyToPay(readyToPay) {
14666
13896
  const paymentMethodsMetadata = [...paymentMethods];
14667
13897
  const EXPRESS_METHODS = ["Google Pay", "Apple Pay", "paypal"];
14668
13898
  const BLOCKED_METHODS = [
14669
- // account number, routing number, and account type required
13899
+ // Requires implementation.
14670
13900
  "echeck",
13901
+ // Required unique implementation
13902
+ // account number, routing number, and account type required
13903
+ "Khelocard",
14671
13904
  // payment instrument is required
14672
13905
  // card number is required
14673
13906
  // card cvv is required
14674
13907
  // expiration month is required
14675
13908
  // expiration year is required
14676
- "Khelocard",
13909
+ "Klarna",
14677
13910
  // Klarna authorization token is required
14678
13911
  // Klarna session ID is required
14679
- "Klarna"
13912
+ // Methods to ignore
13913
+ "Apple Pay",
13914
+ // Apple Pay should be used only from payment-card method
13915
+ "China UnionPay",
13916
+ // China UnionPay should not be used
13917
+ "Google Pay",
13918
+ // Google Pay should be used only from payment-card method
13919
+ "KakaoPay",
13920
+ // KakaoPay is unimplemented digital wallet
13921
+ "Payco",
13922
+ // Payco is unimplemented digital wallet
13923
+ "Samsung Pay"
13924
+ // Samsung Pay is unimplemented digital wallet
14680
13925
  ];
14681
13926
  const isExpressMethod = ({ method, feature }) => EXPRESS_METHODS.includes(method) || EXPRESS_METHODS.includes(feature == null ? void 0 : feature.name);
14682
13927
  return readyToPay.filter((readyData) => {
@@ -14694,13 +13939,13 @@ function filterReadyToPay(readyToPay) {
14694
13939
  metadata: metadata2,
14695
13940
  ...fields
14696
13941
  });
14697
- }).filter(({ metadata: metadata2 }) => metadata2.storefrontEnabled);
13942
+ });
14698
13943
  }
14699
13944
  async function fetchReadyToPay() {
14700
13945
  return Endpoint(async () => {
14701
13946
  var _a, _b, _c, _d, _e, _f, _g;
14702
13947
  if (!state.data.riskMetadata) {
14703
- const { riskMetadata: data2 } = await Lt();
13948
+ const { riskMetadata: data2 } = await j();
14704
13949
  state.data.riskMetadata = data2;
14705
13950
  }
14706
13951
  const data = {
@@ -15115,7 +14360,7 @@ async function fetchData({
15115
14360
  try {
15116
14361
  state.data = new DataInstance();
15117
14362
  if (!riskMetadata) {
15118
- const { riskMetadata: data } = await Lt();
14363
+ const { riskMetadata: data } = await j();
15119
14364
  state.data.riskMetadata = data;
15120
14365
  } else {
15121
14366
  state.data.riskMetadata = riskMetadata;
@@ -16941,17 +16186,17 @@ var util = {};
16941
16186
  return hash;
16942
16187
  }
16943
16188
  exports.toHash = toHash;
16944
- function alwaysValidSchema(it2, schema2) {
16189
+ function alwaysValidSchema(it, schema2) {
16945
16190
  if (typeof schema2 == "boolean")
16946
16191
  return schema2;
16947
16192
  if (Object.keys(schema2).length === 0)
16948
16193
  return true;
16949
- checkUnknownRules(it2, schema2);
16950
- return !schemaHasRules(schema2, it2.self.RULES.all);
16194
+ checkUnknownRules(it, schema2);
16195
+ return !schemaHasRules(schema2, it.self.RULES.all);
16951
16196
  }
16952
16197
  exports.alwaysValidSchema = alwaysValidSchema;
16953
- function checkUnknownRules(it2, schema2 = it2.schema) {
16954
- const { opts, self: self2 } = it2;
16198
+ function checkUnknownRules(it, schema2 = it.schema) {
16199
+ const { opts, self: self2 } = it;
16955
16200
  if (!opts.strictSchema)
16956
16201
  return;
16957
16202
  if (typeof schema2 === "boolean")
@@ -16959,7 +16204,7 @@ var util = {};
16959
16204
  const rules2 = self2.RULES.keywords;
16960
16205
  for (const key in schema2) {
16961
16206
  if (!rules2[key])
16962
- checkStrictMode(it2, `unknown keyword: "${key}"`);
16207
+ checkStrictMode(it, `unknown keyword: "${key}"`);
16963
16208
  }
16964
16209
  }
16965
16210
  exports.checkUnknownRules = checkUnknownRules;
@@ -17081,13 +16326,13 @@ var util = {};
17081
16326
  return jsPropertySyntax ? (0, codegen_12.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
17082
16327
  }
17083
16328
  exports.getErrorPath = getErrorPath;
17084
- function checkStrictMode(it2, msg, mode = it2.opts.strictSchema) {
16329
+ function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
17085
16330
  if (!mode)
17086
16331
  return;
17087
16332
  msg = `strict mode: ${msg}`;
17088
16333
  if (mode === true)
17089
16334
  throw new Error(msg);
17090
- it2.self.logger.warn(msg);
16335
+ it.self.logger.warn(msg);
17091
16336
  }
17092
16337
  exports.checkStrictMode = checkStrictMode;
17093
16338
  })(util);
@@ -17131,23 +16376,23 @@ names$1.default = names;
17131
16376
  message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_12.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_12.str)`"${keyword2}" keyword is invalid ($data)`
17132
16377
  };
17133
16378
  function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
17134
- const { it: it2 } = cxt;
17135
- const { gen, compositeRule, allErrors } = it2;
16379
+ const { it } = cxt;
16380
+ const { gen, compositeRule, allErrors } = it;
17136
16381
  const errObj = errorObjectCode(cxt, error2, errorPaths);
17137
16382
  if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : compositeRule || allErrors) {
17138
16383
  addError(gen, errObj);
17139
16384
  } else {
17140
- returnErrors(it2, (0, codegen_12._)`[${errObj}]`);
16385
+ returnErrors(it, (0, codegen_12._)`[${errObj}]`);
17141
16386
  }
17142
16387
  }
17143
16388
  exports.reportError = reportError;
17144
16389
  function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
17145
- const { it: it2 } = cxt;
17146
- const { gen, compositeRule, allErrors } = it2;
16390
+ const { it } = cxt;
16391
+ const { gen, compositeRule, allErrors } = it;
17147
16392
  const errObj = errorObjectCode(cxt, error2, errorPaths);
17148
16393
  addError(gen, errObj);
17149
16394
  if (!(compositeRule || allErrors)) {
17150
- returnErrors(it2, names_12.default.vErrors);
16395
+ returnErrors(it, names_12.default.vErrors);
17151
16396
  }
17152
16397
  }
17153
16398
  exports.reportExtraError = reportExtraError;
@@ -17156,15 +16401,15 @@ names$1.default = names;
17156
16401
  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)));
17157
16402
  }
17158
16403
  exports.resetErrorsCount = resetErrorsCount;
17159
- function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it: it2 }) {
16404
+ function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it }) {
17160
16405
  if (errsCount === void 0)
17161
16406
  throw new Error("ajv implementation error");
17162
16407
  const err = gen.name("err");
17163
16408
  gen.forRange("i", errsCount, names_12.default.errors, (i2) => {
17164
16409
  gen.const(err, (0, codegen_12._)`${names_12.default.vErrors}[${i2}]`);
17165
- 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)));
17166
- gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${it2.errSchemaPath}/${keyword2}`);
17167
- if (it2.opts.verbose) {
16410
+ gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath, it.errorPath)));
16411
+ gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${it.errSchemaPath}/${keyword2}`);
16412
+ if (it.opts.verbose) {
17168
16413
  gen.assign((0, codegen_12._)`${err}.schema`, schemaValue);
17169
16414
  gen.assign((0, codegen_12._)`${err}.data`, data);
17170
16415
  }
@@ -17176,10 +16421,10 @@ names$1.default = names;
17176
16421
  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})`);
17177
16422
  gen.code((0, codegen_12._)`${names_12.default.errors}++`);
17178
16423
  }
17179
- function returnErrors(it2, errs) {
17180
- const { gen, validateName, schemaEnv } = it2;
16424
+ function returnErrors(it, errs) {
16425
+ const { gen, validateName, schemaEnv } = it;
17181
16426
  if (schemaEnv.$async) {
17182
- gen.throw((0, codegen_12._)`new ${it2.ValidationError}(${errs})`);
16427
+ gen.throw((0, codegen_12._)`new ${it.ValidationError}(${errs})`);
17183
16428
  } else {
17184
16429
  gen.assign((0, codegen_12._)`${validateName}.errors`, errs);
17185
16430
  gen.return(false);
@@ -17201,9 +16446,9 @@ names$1.default = names;
17201
16446
  return errorObject(cxt, error2, errorPaths);
17202
16447
  }
17203
16448
  function errorObject(cxt, error2, errorPaths = {}) {
17204
- const { gen, it: it2 } = cxt;
16449
+ const { gen, it } = cxt;
17205
16450
  const keyValues = [
17206
- errorInstancePath(it2, errorPaths),
16451
+ errorInstancePath(it, errorPaths),
17207
16452
  errorSchemaPath(cxt, errorPaths)
17208
16453
  ];
17209
16454
  extraErrorProps(cxt, error2, keyValues);
@@ -17221,8 +16466,8 @@ names$1.default = names;
17221
16466
  return [E2.schemaPath, schPath];
17222
16467
  }
17223
16468
  function extraErrorProps(cxt, { params, message }, keyValues) {
17224
- const { keyword: keyword2, data, schemaValue, it: it2 } = cxt;
17225
- const { opts, propertyName, topSchemaRef, schemaPath } = it2;
16469
+ const { keyword: keyword2, data, schemaValue, it } = cxt;
16470
+ const { opts, propertyName, topSchemaRef, schemaPath } = it;
17226
16471
  keyValues.push([E2.keyword, keyword2], [E2.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
17227
16472
  if (opts.messages) {
17228
16473
  keyValues.push([E2.message, typeof message == "function" ? message(cxt) : message]);
@@ -17242,10 +16487,10 @@ const names_1$9 = names$1;
17242
16487
  const boolError = {
17243
16488
  message: "boolean schema is false"
17244
16489
  };
17245
- function topBoolOrEmptySchema(it2) {
17246
- const { gen, schema: schema2, validateName } = it2;
16490
+ function topBoolOrEmptySchema(it) {
16491
+ const { gen, schema: schema2, validateName } = it;
17247
16492
  if (schema2 === false) {
17248
- falseSchemaError(it2, false);
16493
+ falseSchemaError(it, false);
17249
16494
  } else if (typeof schema2 == "object" && schema2.$async === true) {
17250
16495
  gen.return(names_1$9.default.data);
17251
16496
  } else {
@@ -17254,18 +16499,18 @@ function topBoolOrEmptySchema(it2) {
17254
16499
  }
17255
16500
  }
17256
16501
  boolSchema.topBoolOrEmptySchema = topBoolOrEmptySchema;
17257
- function boolOrEmptySchema(it2, valid) {
17258
- const { gen, schema: schema2 } = it2;
16502
+ function boolOrEmptySchema(it, valid) {
16503
+ const { gen, schema: schema2 } = it;
17259
16504
  if (schema2 === false) {
17260
16505
  gen.var(valid, false);
17261
- falseSchemaError(it2);
16506
+ falseSchemaError(it);
17262
16507
  } else {
17263
16508
  gen.var(valid, true);
17264
16509
  }
17265
16510
  }
17266
16511
  boolSchema.boolOrEmptySchema = boolOrEmptySchema;
17267
- function falseSchemaError(it2, overrideAllErrors) {
17268
- const { gen, data } = it2;
16512
+ function falseSchemaError(it, overrideAllErrors) {
16513
+ const { gen, data } = it;
17269
16514
  const cxt = {
17270
16515
  gen,
17271
16516
  keyword: "false schema",
@@ -17274,7 +16519,7 @@ function falseSchemaError(it2, overrideAllErrors) {
17274
16519
  schemaCode: false,
17275
16520
  schemaValue: false,
17276
16521
  params: {},
17277
- it: it2
16522
+ it
17278
16523
  };
17279
16524
  (0, errors_1$2.reportError)(cxt, boolError, void 0, overrideAllErrors);
17280
16525
  }
@@ -17357,17 +16602,17 @@ applicability.shouldUseRule = shouldUseRule;
17357
16602
  throw new Error("type must be JSONType or JSONType[]: " + types2.join(","));
17358
16603
  }
17359
16604
  exports.getJSONTypes = getJSONTypes;
17360
- function coerceAndCheckDataType(it2, types2) {
17361
- const { gen, data, opts } = it2;
16605
+ function coerceAndCheckDataType(it, types2) {
16606
+ const { gen, data, opts } = it;
17362
16607
  const coerceTo = coerceToTypes(types2, opts.coerceTypes);
17363
- const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(it2, types2[0]));
16608
+ const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(it, types2[0]));
17364
16609
  if (checkTypes) {
17365
16610
  const wrongType = checkDataTypes(types2, data, opts.strictNumbers, DataType.Wrong);
17366
16611
  gen.if(wrongType, () => {
17367
16612
  if (coerceTo.length)
17368
- coerceData(it2, types2, coerceTo);
16613
+ coerceData(it, types2, coerceTo);
17369
16614
  else
17370
- reportTypeError(it2);
16615
+ reportTypeError(it);
17371
16616
  });
17372
16617
  }
17373
16618
  return checkTypes;
@@ -17377,8 +16622,8 @@ applicability.shouldUseRule = shouldUseRule;
17377
16622
  function coerceToTypes(types2, coerceTypes) {
17378
16623
  return coerceTypes ? types2.filter((t2) => COERCIBLE.has(t2) || coerceTypes === "array" && t2 === "array") : [];
17379
16624
  }
17380
- function coerceData(it2, types2, coerceTo) {
17381
- const { gen, data, opts } = it2;
16625
+ function coerceData(it, types2, coerceTo) {
16626
+ const { gen, data, opts } = it;
17382
16627
  const dataType2 = gen.let("dataType", (0, codegen_12._)`typeof ${data}`);
17383
16628
  const coerced = gen.let("coerced", (0, codegen_12._)`undefined`);
17384
16629
  if (opts.coerceTypes === "array") {
@@ -17391,11 +16636,11 @@ applicability.shouldUseRule = shouldUseRule;
17391
16636
  }
17392
16637
  }
17393
16638
  gen.else();
17394
- reportTypeError(it2);
16639
+ reportTypeError(it);
17395
16640
  gen.endIf();
17396
16641
  gen.if((0, codegen_12._)`${coerced} !== undefined`, () => {
17397
16642
  gen.assign(data, coerced);
17398
- assignParentData(it2, coerced);
16643
+ assignParentData(it, coerced);
17399
16644
  });
17400
16645
  function coerceSpecificType(t2) {
17401
16646
  switch (t2) {
@@ -17479,14 +16724,14 @@ applicability.shouldUseRule = shouldUseRule;
17479
16724
  message: ({ schema: schema2 }) => `must be ${schema2}`,
17480
16725
  params: ({ schema: schema2, schemaValue }) => typeof schema2 == "string" ? (0, codegen_12._)`{type: ${schema2}}` : (0, codegen_12._)`{type: ${schemaValue}}`
17481
16726
  };
17482
- function reportTypeError(it2) {
17483
- const cxt = getTypeErrorContext(it2);
16727
+ function reportTypeError(it) {
16728
+ const cxt = getTypeErrorContext(it);
17484
16729
  (0, errors_12.reportError)(cxt, typeError);
17485
16730
  }
17486
16731
  exports.reportTypeError = reportTypeError;
17487
- function getTypeErrorContext(it2) {
17488
- const { gen, data, schema: schema2 } = it2;
17489
- const schemaCode = (0, util_12.schemaRefOrVal)(it2, schema2, "type");
16732
+ function getTypeErrorContext(it) {
16733
+ const { gen, data, schema: schema2 } = it;
16734
+ const schemaCode = (0, util_12.schemaRefOrVal)(it, schema2, "type");
17490
16735
  return {
17491
16736
  gen,
17492
16737
  keyword: "type",
@@ -17496,7 +16741,7 @@ applicability.shouldUseRule = shouldUseRule;
17496
16741
  schemaValue: schemaCode,
17497
16742
  parentSchema: schema2,
17498
16743
  params: {},
17499
- it: it2
16744
+ it
17500
16745
  };
17501
16746
  }
17502
16747
  })(dataType);
@@ -17505,24 +16750,24 @@ Object.defineProperty(defaults, "__esModule", { value: true });
17505
16750
  defaults.assignDefaults = void 0;
17506
16751
  const codegen_1$v = codegen;
17507
16752
  const util_1$t = util;
17508
- function assignDefaults(it2, ty) {
17509
- const { properties: properties2, items: items2 } = it2.schema;
16753
+ function assignDefaults(it, ty) {
16754
+ const { properties: properties2, items: items2 } = it.schema;
17510
16755
  if (ty === "object" && properties2) {
17511
16756
  for (const key in properties2) {
17512
- assignDefault(it2, key, properties2[key].default);
16757
+ assignDefault(it, key, properties2[key].default);
17513
16758
  }
17514
16759
  } else if (ty === "array" && Array.isArray(items2)) {
17515
- items2.forEach((sch, i2) => assignDefault(it2, i2, sch.default));
16760
+ items2.forEach((sch, i2) => assignDefault(it, i2, sch.default));
17516
16761
  }
17517
16762
  }
17518
16763
  defaults.assignDefaults = assignDefaults;
17519
- function assignDefault(it2, prop, defaultValue) {
17520
- const { gen, compositeRule, data, opts } = it2;
16764
+ function assignDefault(it, prop, defaultValue) {
16765
+ const { gen, compositeRule, data, opts } = it;
17521
16766
  if (defaultValue === void 0)
17522
16767
  return;
17523
16768
  const childData = (0, codegen_1$v._)`${data}${(0, codegen_1$v.getProperty)(prop)}`;
17524
16769
  if (compositeRule) {
17525
- (0, util_1$t.checkStrictMode)(it2, `default is ignored for: ${childData}`);
16770
+ (0, util_1$t.checkStrictMode)(it, `default is ignored for: ${childData}`);
17526
16771
  return;
17527
16772
  }
17528
16773
  let condition = (0, codegen_1$v._)`${childData} === undefined`;
@@ -17540,8 +16785,8 @@ const util_1$s = util;
17540
16785
  const names_1$8 = names$1;
17541
16786
  const util_2$1 = util;
17542
16787
  function checkReportMissingProp(cxt, prop) {
17543
- const { gen, data, it: it2 } = cxt;
17544
- gen.if(noPropertyInData(gen, data, prop, it2.opts.ownProperties), () => {
16788
+ const { gen, data, it } = cxt;
16789
+ gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
17545
16790
  cxt.setParams({ missingProperty: (0, codegen_1$u._)`${prop}` }, true);
17546
16791
  cxt.error();
17547
16792
  });
@@ -17582,19 +16827,19 @@ function allSchemaProperties(schemaMap) {
17582
16827
  return schemaMap ? Object.keys(schemaMap).filter((p2) => p2 !== "__proto__") : [];
17583
16828
  }
17584
16829
  code.allSchemaProperties = allSchemaProperties;
17585
- function schemaProperties(it2, schemaMap) {
17586
- return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(it2, schemaMap[p2]));
16830
+ function schemaProperties(it, schemaMap) {
16831
+ return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(it, schemaMap[p2]));
17587
16832
  }
17588
16833
  code.schemaProperties = schemaProperties;
17589
- function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it: it2 }, func, context, passSchema) {
16834
+ function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
17590
16835
  const dataAndSchema = passSchema ? (0, codegen_1$u._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
17591
16836
  const valCxt = [
17592
16837
  [names_1$8.default.instancePath, (0, codegen_1$u.strConcat)(names_1$8.default.instancePath, errorPath)],
17593
- [names_1$8.default.parentData, it2.parentData],
17594
- [names_1$8.default.parentDataProperty, it2.parentDataProperty],
16838
+ [names_1$8.default.parentData, it.parentData],
16839
+ [names_1$8.default.parentDataProperty, it.parentDataProperty],
17595
16840
  [names_1$8.default.rootData, names_1$8.default.rootData]
17596
16841
  ];
17597
- if (it2.opts.dynamicRef)
16842
+ if (it.opts.dynamicRef)
17598
16843
  valCxt.push([names_1$8.default.dynamicAnchors, names_1$8.default.dynamicAnchors]);
17599
16844
  const args = (0, codegen_1$u._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
17600
16845
  return context !== codegen_1$u.nil ? (0, codegen_1$u._)`${func}.call(${context}, ${args})` : (0, codegen_1$u._)`${func}(${args})`;
@@ -17613,9 +16858,9 @@ function usePattern({ gen, it: { opts } }, pattern2) {
17613
16858
  }
17614
16859
  code.usePattern = usePattern;
17615
16860
  function validateArray(cxt) {
17616
- const { gen, data, keyword: keyword2, it: it2 } = cxt;
16861
+ const { gen, data, keyword: keyword2, it } = cxt;
17617
16862
  const valid = gen.name("valid");
17618
- if (it2.allErrors) {
16863
+ if (it.allErrors) {
17619
16864
  const validArr = gen.let("valid", true);
17620
16865
  validateItems(() => gen.assign(validArr, false));
17621
16866
  return validArr;
@@ -17637,11 +16882,11 @@ function validateArray(cxt) {
17637
16882
  }
17638
16883
  code.validateArray = validateArray;
17639
16884
  function validateUnion(cxt) {
17640
- const { gen, schema: schema2, keyword: keyword2, it: it2 } = cxt;
16885
+ const { gen, schema: schema2, keyword: keyword2, it } = cxt;
17641
16886
  if (!Array.isArray(schema2))
17642
16887
  throw new Error("ajv implementation error");
17643
- const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(it2, sch));
17644
- if (alwaysValid && !it2.opts.unevaluated)
16888
+ const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(it, sch));
16889
+ if (alwaysValid && !it.opts.unevaluated)
17645
16890
  return;
17646
16891
  const valid = gen.let("valid", false);
17647
16892
  const schValid = gen.name("_valid");
@@ -17666,16 +16911,16 @@ const names_1$7 = names$1;
17666
16911
  const code_1$9 = code;
17667
16912
  const errors_1$1 = errors;
17668
16913
  function macroKeywordCode(cxt, def2) {
17669
- const { gen, keyword: keyword2, schema: schema2, parentSchema, it: it2 } = cxt;
17670
- const macroSchema = def2.macro.call(it2.self, schema2, parentSchema, it2);
16914
+ const { gen, keyword: keyword2, schema: schema2, parentSchema, it } = cxt;
16915
+ const macroSchema = def2.macro.call(it.self, schema2, parentSchema, it);
17671
16916
  const schemaRef = useKeyword(gen, keyword2, macroSchema);
17672
- if (it2.opts.validateSchema !== false)
17673
- it2.self.validateSchema(macroSchema, true);
16917
+ if (it.opts.validateSchema !== false)
16918
+ it.self.validateSchema(macroSchema, true);
17674
16919
  const valid = gen.name("valid");
17675
16920
  cxt.subschema({
17676
16921
  schema: macroSchema,
17677
16922
  schemaPath: codegen_1$t.nil,
17678
- errSchemaPath: `${it2.errSchemaPath}/${keyword2}`,
16923
+ errSchemaPath: `${it.errSchemaPath}/${keyword2}`,
17679
16924
  topSchemaRef: schemaRef,
17680
16925
  compositeRule: true
17681
16926
  }, valid);
@@ -17684,9 +16929,9 @@ function macroKeywordCode(cxt, def2) {
17684
16929
  keyword.macroKeywordCode = macroKeywordCode;
17685
16930
  function funcKeywordCode(cxt, def2) {
17686
16931
  var _a;
17687
- const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it: it2 } = cxt;
17688
- checkAsyncKeyword(it2, def2);
17689
- const validate2 = !$data && def2.compile ? def2.compile.call(it2.self, schema2, parentSchema, it2) : def2.validate;
16932
+ const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it } = cxt;
16933
+ checkAsyncKeyword(it, def2);
16934
+ const validate2 = !$data && def2.compile ? def2.compile.call(it.self, schema2, parentSchema, it) : def2.validate;
17690
16935
  const validateRef = useKeyword(gen, keyword2, validate2);
17691
16936
  const valid = gen.let("valid");
17692
16937
  cxt.block$data(valid, validateKeyword);
@@ -17706,7 +16951,7 @@ function funcKeywordCode(cxt, def2) {
17706
16951
  }
17707
16952
  function validateAsync() {
17708
16953
  const ruleErrs = gen.let("ruleErrs", null);
17709
- 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)));
16954
+ gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1$t._)`${e2}.errors`), () => gen.throw(e2)));
17710
16955
  return ruleErrs;
17711
16956
  }
17712
16957
  function validateSync() {
@@ -17716,7 +16961,7 @@ function funcKeywordCode(cxt, def2) {
17716
16961
  return validateErrs;
17717
16962
  }
17718
16963
  function assignValid(_await = def2.async ? (0, codegen_1$t._)`await ` : codegen_1$t.nil) {
17719
- const passCxt = it2.opts.passContext ? names_1$7.default.this : names_1$7.default.self;
16964
+ const passCxt = it.opts.passContext ? names_1$7.default.this : names_1$7.default.self;
17720
16965
  const passSchema = !("compile" in def2 && !$data || def2.schema === false);
17721
16966
  gen.assign(valid, (0, codegen_1$t._)`${_await}${(0, code_1$9.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def2.modifying);
17722
16967
  }
@@ -17727,8 +16972,8 @@ function funcKeywordCode(cxt, def2) {
17727
16972
  }
17728
16973
  keyword.funcKeywordCode = funcKeywordCode;
17729
16974
  function modifyData(cxt) {
17730
- const { gen, data, it: it2 } = cxt;
17731
- gen.if(it2.parentData, () => gen.assign(data, (0, codegen_1$t._)`${it2.parentData}[${it2.parentDataProperty}]`));
16975
+ const { gen, data, it } = cxt;
16976
+ gen.if(it.parentData, () => gen.assign(data, (0, codegen_1$t._)`${it.parentData}[${it.parentDataProperty}]`));
17732
16977
  }
17733
16978
  function addErrs(cxt, errs) {
17734
16979
  const { gen } = cxt;
@@ -17747,7 +16992,7 @@ function useKeyword(gen, keyword2, result) {
17747
16992
  return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1$t.stringify)(result) });
17748
16993
  }
17749
16994
  function validSchemaType(schema2, schemaType, allowUndefined = false) {
17750
- 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");
16995
+ return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema2) : st === "object" ? schema2 && typeof schema2 == "object" && !Array.isArray(schema2) : typeof schema2 == st || allowUndefined && typeof schema2 == "undefined");
17751
16996
  }
17752
16997
  keyword.validSchemaType = validSchemaType;
17753
16998
  function validateKeywordUsage({ schema: schema2, opts, self: self2, errSchemaPath }, def2, keyword2) {
@@ -17775,20 +17020,20 @@ Object.defineProperty(subschema, "__esModule", { value: true });
17775
17020
  subschema.extendSubschemaMode = subschema.extendSubschemaData = subschema.getSubschema = void 0;
17776
17021
  const codegen_1$s = codegen;
17777
17022
  const util_1$r = util;
17778
- function getSubschema(it2, { keyword: keyword2, schemaProp, schema: schema2, schemaPath, errSchemaPath, topSchemaRef }) {
17023
+ function getSubschema(it, { keyword: keyword2, schemaProp, schema: schema2, schemaPath, errSchemaPath, topSchemaRef }) {
17779
17024
  if (keyword2 !== void 0 && schema2 !== void 0) {
17780
17025
  throw new Error('both "keyword" and "schema" passed, only one allowed');
17781
17026
  }
17782
17027
  if (keyword2 !== void 0) {
17783
- const sch = it2.schema[keyword2];
17028
+ const sch = it.schema[keyword2];
17784
17029
  return schemaProp === void 0 ? {
17785
17030
  schema: sch,
17786
- schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}`,
17787
- errSchemaPath: `${it2.errSchemaPath}/${keyword2}`
17031
+ schemaPath: (0, codegen_1$s._)`${it.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}`,
17032
+ errSchemaPath: `${it.errSchemaPath}/${keyword2}`
17788
17033
  } : {
17789
17034
  schema: sch[schemaProp],
17790
- schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}${(0, codegen_1$s.getProperty)(schemaProp)}`,
17791
- errSchemaPath: `${it2.errSchemaPath}/${keyword2}/${(0, util_1$r.escapeFragment)(schemaProp)}`
17035
+ schemaPath: (0, codegen_1$s._)`${it.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}${(0, codegen_1$s.getProperty)(schemaProp)}`,
17036
+ errSchemaPath: `${it.errSchemaPath}/${keyword2}/${(0, util_1$r.escapeFragment)(schemaProp)}`
17792
17037
  };
17793
17038
  }
17794
17039
  if (schema2 !== void 0) {
@@ -17805,14 +17050,14 @@ function getSubschema(it2, { keyword: keyword2, schemaProp, schema: schema2, sch
17805
17050
  throw new Error('either "keyword" or "schema" must be passed');
17806
17051
  }
17807
17052
  subschema.getSubschema = getSubschema;
17808
- function extendSubschemaData(subschema2, it2, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
17053
+ function extendSubschemaData(subschema2, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
17809
17054
  if (data !== void 0 && dataProp !== void 0) {
17810
17055
  throw new Error('both "data" and "dataProp" passed, only one allowed');
17811
17056
  }
17812
- const { gen } = it2;
17057
+ const { gen } = it;
17813
17058
  if (dataProp !== void 0) {
17814
- const { errorPath, dataPathArr, opts } = it2;
17815
- const nextData = gen.let("data", (0, codegen_1$s._)`${it2.data}${(0, codegen_1$s.getProperty)(dataProp)}`, true);
17059
+ const { errorPath, dataPathArr, opts } = it;
17060
+ const nextData = gen.let("data", (0, codegen_1$s._)`${it.data}${(0, codegen_1$s.getProperty)(dataProp)}`, true);
17816
17061
  dataContextProps(nextData);
17817
17062
  subschema2.errorPath = (0, codegen_1$s.str)`${errorPath}${(0, util_1$r.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;
17818
17063
  subschema2.parentDataProperty = (0, codegen_1$s._)`${dataProp}`;
@@ -17828,11 +17073,11 @@ function extendSubschemaData(subschema2, it2, { dataProp, dataPropType: dpType,
17828
17073
  subschema2.dataTypes = dataTypes;
17829
17074
  function dataContextProps(_nextData) {
17830
17075
  subschema2.data = _nextData;
17831
- subschema2.dataLevel = it2.dataLevel + 1;
17076
+ subschema2.dataLevel = it.dataLevel + 1;
17832
17077
  subschema2.dataTypes = [];
17833
- it2.definedProperties = /* @__PURE__ */ new Set();
17834
- subschema2.parentData = it2.data;
17835
- subschema2.dataNames = [...it2.dataNames, _nextData];
17078
+ it.definedProperties = /* @__PURE__ */ new Set();
17079
+ subschema2.parentData = it.data;
17080
+ subschema2.dataNames = [...it.dataNames, _nextData];
17836
17081
  }
17837
17082
  }
17838
17083
  subschema.extendSubschemaData = extendSubschemaData;
@@ -18132,15 +17377,15 @@ const names_1$6 = names$1;
18132
17377
  const resolve_1$2 = resolve$1;
18133
17378
  const util_1$p = util;
18134
17379
  const errors_1 = errors;
18135
- function validateFunctionCode(it2) {
18136
- if (isSchemaObj(it2)) {
18137
- checkKeywords(it2);
18138
- if (schemaCxtHasRules(it2)) {
18139
- topSchemaObjCode(it2);
17380
+ function validateFunctionCode(it) {
17381
+ if (isSchemaObj(it)) {
17382
+ checkKeywords(it);
17383
+ if (schemaCxtHasRules(it)) {
17384
+ topSchemaObjCode(it);
18140
17385
  return;
18141
17386
  }
18142
17387
  }
18143
- validateFunction(it2, () => (0, boolSchema_1.topBoolOrEmptySchema)(it2));
17388
+ validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
18144
17389
  }
18145
17390
  validate$1.validateFunctionCode = validateFunctionCode;
18146
17391
  function validateFunction({ gen, validateName, schema: schema2, schemaEnv, opts }, body) {
@@ -18174,40 +17419,40 @@ function destructureValCxtES5(gen, opts) {
18174
17419
  gen.var(names_1$6.default.dynamicAnchors, (0, codegen_1$r._)`{}`);
18175
17420
  });
18176
17421
  }
18177
- function topSchemaObjCode(it2) {
18178
- const { schema: schema2, opts, gen } = it2;
18179
- validateFunction(it2, () => {
17422
+ function topSchemaObjCode(it) {
17423
+ const { schema: schema2, opts, gen } = it;
17424
+ validateFunction(it, () => {
18180
17425
  if (opts.$comment && schema2.$comment)
18181
- commentKeyword(it2);
18182
- checkNoDefault(it2);
17426
+ commentKeyword(it);
17427
+ checkNoDefault(it);
18183
17428
  gen.let(names_1$6.default.vErrors, null);
18184
17429
  gen.let(names_1$6.default.errors, 0);
18185
17430
  if (opts.unevaluated)
18186
- resetEvaluated(it2);
18187
- typeAndKeywords(it2);
18188
- returnResults(it2);
17431
+ resetEvaluated(it);
17432
+ typeAndKeywords(it);
17433
+ returnResults(it);
18189
17434
  });
18190
17435
  return;
18191
17436
  }
18192
- function resetEvaluated(it2) {
18193
- const { gen, validateName } = it2;
18194
- it2.evaluated = gen.const("evaluated", (0, codegen_1$r._)`${validateName}.evaluated`);
18195
- gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.props`, (0, codegen_1$r._)`undefined`));
18196
- gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.items`, (0, codegen_1$r._)`undefined`));
17437
+ function resetEvaluated(it) {
17438
+ const { gen, validateName } = it;
17439
+ it.evaluated = gen.const("evaluated", (0, codegen_1$r._)`${validateName}.evaluated`);
17440
+ gen.if((0, codegen_1$r._)`${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1$r._)`${it.evaluated}.props`, (0, codegen_1$r._)`undefined`));
17441
+ gen.if((0, codegen_1$r._)`${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1$r._)`${it.evaluated}.items`, (0, codegen_1$r._)`undefined`));
18197
17442
  }
18198
17443
  function funcSourceUrl(schema2, opts) {
18199
17444
  const schId = typeof schema2 == "object" && schema2[opts.schemaId];
18200
17445
  return schId && (opts.code.source || opts.code.process) ? (0, codegen_1$r._)`/*# sourceURL=${schId} */` : codegen_1$r.nil;
18201
17446
  }
18202
- function subschemaCode(it2, valid) {
18203
- if (isSchemaObj(it2)) {
18204
- checkKeywords(it2);
18205
- if (schemaCxtHasRules(it2)) {
18206
- subSchemaObjCode(it2, valid);
17447
+ function subschemaCode(it, valid) {
17448
+ if (isSchemaObj(it)) {
17449
+ checkKeywords(it);
17450
+ if (schemaCxtHasRules(it)) {
17451
+ subSchemaObjCode(it, valid);
18207
17452
  return;
18208
17453
  }
18209
17454
  }
18210
- (0, boolSchema_1.boolOrEmptySchema)(it2, valid);
17455
+ (0, boolSchema_1.boolOrEmptySchema)(it, valid);
18211
17456
  }
18212
17457
  function schemaCxtHasRules({ schema: schema2, self: self2 }) {
18213
17458
  if (typeof schema2 == "boolean")
@@ -18217,49 +17462,49 @@ function schemaCxtHasRules({ schema: schema2, self: self2 }) {
18217
17462
  return true;
18218
17463
  return false;
18219
17464
  }
18220
- function isSchemaObj(it2) {
18221
- return typeof it2.schema != "boolean";
17465
+ function isSchemaObj(it) {
17466
+ return typeof it.schema != "boolean";
18222
17467
  }
18223
- function subSchemaObjCode(it2, valid) {
18224
- const { schema: schema2, gen, opts } = it2;
17468
+ function subSchemaObjCode(it, valid) {
17469
+ const { schema: schema2, gen, opts } = it;
18225
17470
  if (opts.$comment && schema2.$comment)
18226
- commentKeyword(it2);
18227
- updateContext(it2);
18228
- checkAsyncSchema(it2);
17471
+ commentKeyword(it);
17472
+ updateContext(it);
17473
+ checkAsyncSchema(it);
18229
17474
  const errsCount = gen.const("_errs", names_1$6.default.errors);
18230
- typeAndKeywords(it2, errsCount);
17475
+ typeAndKeywords(it, errsCount);
18231
17476
  gen.var(valid, (0, codegen_1$r._)`${errsCount} === ${names_1$6.default.errors}`);
18232
17477
  }
18233
- function checkKeywords(it2) {
18234
- (0, util_1$p.checkUnknownRules)(it2);
18235
- checkRefsAndKeywords(it2);
17478
+ function checkKeywords(it) {
17479
+ (0, util_1$p.checkUnknownRules)(it);
17480
+ checkRefsAndKeywords(it);
18236
17481
  }
18237
- function typeAndKeywords(it2, errsCount) {
18238
- if (it2.opts.jtd)
18239
- return schemaKeywords(it2, [], false, errsCount);
18240
- const types2 = (0, dataType_1$1.getSchemaTypes)(it2.schema);
18241
- const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(it2, types2);
18242
- schemaKeywords(it2, types2, !checkedTypes, errsCount);
17482
+ function typeAndKeywords(it, errsCount) {
17483
+ if (it.opts.jtd)
17484
+ return schemaKeywords(it, [], false, errsCount);
17485
+ const types2 = (0, dataType_1$1.getSchemaTypes)(it.schema);
17486
+ const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(it, types2);
17487
+ schemaKeywords(it, types2, !checkedTypes, errsCount);
18243
17488
  }
18244
- function checkRefsAndKeywords(it2) {
18245
- const { schema: schema2, errSchemaPath, opts, self: self2 } = it2;
17489
+ function checkRefsAndKeywords(it) {
17490
+ const { schema: schema2, errSchemaPath, opts, self: self2 } = it;
18246
17491
  if (schema2.$ref && opts.ignoreKeywordsWithRef && (0, util_1$p.schemaHasRulesButRef)(schema2, self2.RULES)) {
18247
17492
  self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
18248
17493
  }
18249
17494
  }
18250
- function checkNoDefault(it2) {
18251
- const { schema: schema2, opts } = it2;
17495
+ function checkNoDefault(it) {
17496
+ const { schema: schema2, opts } = it;
18252
17497
  if (schema2.default !== void 0 && opts.useDefaults && opts.strictSchema) {
18253
- (0, util_1$p.checkStrictMode)(it2, "default is ignored in the schema root");
17498
+ (0, util_1$p.checkStrictMode)(it, "default is ignored in the schema root");
18254
17499
  }
18255
17500
  }
18256
- function updateContext(it2) {
18257
- const schId = it2.schema[it2.opts.schemaId];
17501
+ function updateContext(it) {
17502
+ const schId = it.schema[it.opts.schemaId];
18258
17503
  if (schId)
18259
- it2.baseId = (0, resolve_1$2.resolveUrl)(it2.opts.uriResolver, it2.baseId, schId);
17504
+ it.baseId = (0, resolve_1$2.resolveUrl)(it.opts.uriResolver, it.baseId, schId);
18260
17505
  }
18261
- function checkAsyncSchema(it2) {
18262
- if (it2.schema.$async && !it2.schemaEnv.$async)
17506
+ function checkAsyncSchema(it) {
17507
+ if (it.schema.$async && !it.schemaEnv.$async)
18263
17508
  throw new Error("async schema in sync schema");
18264
17509
  }
18265
17510
  function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }) {
@@ -18272,14 +17517,14 @@ function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }
18272
17517
  gen.code((0, codegen_1$r._)`${names_1$6.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
18273
17518
  }
18274
17519
  }
18275
- function returnResults(it2) {
18276
- const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } = it2;
17520
+ function returnResults(it) {
17521
+ const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } = it;
18277
17522
  if (schemaEnv.$async) {
18278
17523
  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})`));
18279
17524
  } else {
18280
17525
  gen.assign((0, codegen_1$r._)`${validateName}.errors`, names_1$6.default.vErrors);
18281
17526
  if (opts.unevaluated)
18282
- assignEvaluated(it2);
17527
+ assignEvaluated(it);
18283
17528
  gen.return((0, codegen_1$r._)`${names_1$6.default.errors} === 0`);
18284
17529
  }
18285
17530
  }
@@ -18289,15 +17534,15 @@ function assignEvaluated({ gen, evaluated, props, items: items2 }) {
18289
17534
  if (items2 instanceof codegen_1$r.Name)
18290
17535
  gen.assign((0, codegen_1$r._)`${evaluated}.items`, items2);
18291
17536
  }
18292
- function schemaKeywords(it2, types2, typeErrors, errsCount) {
18293
- const { gen, schema: schema2, data, allErrors, opts, self: self2 } = it2;
17537
+ function schemaKeywords(it, types2, typeErrors, errsCount) {
17538
+ const { gen, schema: schema2, data, allErrors, opts, self: self2 } = it;
18294
17539
  const { RULES } = self2;
18295
17540
  if (schema2.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1$p.schemaHasRulesButRef)(schema2, RULES))) {
18296
- gen.block(() => keywordCode(it2, "$ref", RULES.all.$ref.definition));
17541
+ gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
18297
17542
  return;
18298
17543
  }
18299
17544
  if (!opts.jtd)
18300
- checkStrictTypes(it2, types2);
17545
+ checkStrictTypes(it, types2);
18301
17546
  gen.block(() => {
18302
17547
  for (const group of RULES.rules)
18303
17548
  groupKeywords(group);
@@ -18308,66 +17553,66 @@ function schemaKeywords(it2, types2, typeErrors, errsCount) {
18308
17553
  return;
18309
17554
  if (group.type) {
18310
17555
  gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));
18311
- iterateKeywords(it2, group);
17556
+ iterateKeywords(it, group);
18312
17557
  if (types2.length === 1 && types2[0] === group.type && typeErrors) {
18313
17558
  gen.else();
18314
- (0, dataType_2.reportTypeError)(it2);
17559
+ (0, dataType_2.reportTypeError)(it);
18315
17560
  }
18316
17561
  gen.endIf();
18317
17562
  } else {
18318
- iterateKeywords(it2, group);
17563
+ iterateKeywords(it, group);
18319
17564
  }
18320
17565
  if (!allErrors)
18321
17566
  gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === ${errsCount || 0}`);
18322
17567
  }
18323
17568
  }
18324
- function iterateKeywords(it2, group) {
18325
- const { gen, schema: schema2, opts: { useDefaults } } = it2;
17569
+ function iterateKeywords(it, group) {
17570
+ const { gen, schema: schema2, opts: { useDefaults } } = it;
18326
17571
  if (useDefaults)
18327
- (0, defaults_1.assignDefaults)(it2, group.type);
17572
+ (0, defaults_1.assignDefaults)(it, group.type);
18328
17573
  gen.block(() => {
18329
17574
  for (const rule of group.rules) {
18330
17575
  if ((0, applicability_1.shouldUseRule)(schema2, rule)) {
18331
- keywordCode(it2, rule.keyword, rule.definition, group.type);
17576
+ keywordCode(it, rule.keyword, rule.definition, group.type);
18332
17577
  }
18333
17578
  }
18334
17579
  });
18335
17580
  }
18336
- function checkStrictTypes(it2, types2) {
18337
- if (it2.schemaEnv.meta || !it2.opts.strictTypes)
17581
+ function checkStrictTypes(it, types2) {
17582
+ if (it.schemaEnv.meta || !it.opts.strictTypes)
18338
17583
  return;
18339
- checkContextTypes(it2, types2);
18340
- if (!it2.opts.allowUnionTypes)
18341
- checkMultipleTypes(it2, types2);
18342
- checkKeywordTypes(it2, it2.dataTypes);
17584
+ checkContextTypes(it, types2);
17585
+ if (!it.opts.allowUnionTypes)
17586
+ checkMultipleTypes(it, types2);
17587
+ checkKeywordTypes(it, it.dataTypes);
18343
17588
  }
18344
- function checkContextTypes(it2, types2) {
17589
+ function checkContextTypes(it, types2) {
18345
17590
  if (!types2.length)
18346
17591
  return;
18347
- if (!it2.dataTypes.length) {
18348
- it2.dataTypes = types2;
17592
+ if (!it.dataTypes.length) {
17593
+ it.dataTypes = types2;
18349
17594
  return;
18350
17595
  }
18351
17596
  types2.forEach((t2) => {
18352
- if (!includesType(it2.dataTypes, t2)) {
18353
- strictTypesError(it2, `type "${t2}" not allowed by context "${it2.dataTypes.join(",")}"`);
17597
+ if (!includesType(it.dataTypes, t2)) {
17598
+ strictTypesError(it, `type "${t2}" not allowed by context "${it.dataTypes.join(",")}"`);
18354
17599
  }
18355
17600
  });
18356
- narrowSchemaTypes(it2, types2);
17601
+ narrowSchemaTypes(it, types2);
18357
17602
  }
18358
- function checkMultipleTypes(it2, ts) {
17603
+ function checkMultipleTypes(it, ts) {
18359
17604
  if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
18360
- strictTypesError(it2, "use allowUnionTypes to allow union type keyword");
17605
+ strictTypesError(it, "use allowUnionTypes to allow union type keyword");
18361
17606
  }
18362
17607
  }
18363
- function checkKeywordTypes(it2, ts) {
18364
- const rules2 = it2.self.RULES.all;
17608
+ function checkKeywordTypes(it, ts) {
17609
+ const rules2 = it.self.RULES.all;
18365
17610
  for (const keyword2 in rules2) {
18366
17611
  const rule = rules2[keyword2];
18367
- if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it2.schema, rule)) {
17612
+ if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {
18368
17613
  const { type: type2 } = rule.definition;
18369
17614
  if (type2.length && !type2.some((t2) => hasApplicableType(ts, t2))) {
18370
- strictTypesError(it2, `missing type "${type2.join(",")}" for keyword "${keyword2}"`);
17615
+ strictTypesError(it, `missing type "${type2.join(",")}" for keyword "${keyword2}"`);
18371
17616
  }
18372
17617
  }
18373
17618
  }
@@ -18378,38 +17623,38 @@ function hasApplicableType(schTs, kwdT) {
18378
17623
  function includesType(ts, t2) {
18379
17624
  return ts.includes(t2) || t2 === "integer" && ts.includes("number");
18380
17625
  }
18381
- function narrowSchemaTypes(it2, withTypes) {
17626
+ function narrowSchemaTypes(it, withTypes) {
18382
17627
  const ts = [];
18383
- for (const t2 of it2.dataTypes) {
17628
+ for (const t2 of it.dataTypes) {
18384
17629
  if (includesType(withTypes, t2))
18385
17630
  ts.push(t2);
18386
17631
  else if (withTypes.includes("integer") && t2 === "number")
18387
17632
  ts.push("integer");
18388
17633
  }
18389
- it2.dataTypes = ts;
17634
+ it.dataTypes = ts;
18390
17635
  }
18391
- function strictTypesError(it2, msg) {
18392
- const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
17636
+ function strictTypesError(it, msg) {
17637
+ const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
18393
17638
  msg += ` at "${schemaPath}" (strictTypes)`;
18394
- (0, util_1$p.checkStrictMode)(it2, msg, it2.opts.strictTypes);
17639
+ (0, util_1$p.checkStrictMode)(it, msg, it.opts.strictTypes);
18395
17640
  }
18396
17641
  class KeywordCxt {
18397
- constructor(it2, def2, keyword2) {
18398
- (0, keyword_1.validateKeywordUsage)(it2, def2, keyword2);
18399
- this.gen = it2.gen;
18400
- this.allErrors = it2.allErrors;
17642
+ constructor(it, def2, keyword2) {
17643
+ (0, keyword_1.validateKeywordUsage)(it, def2, keyword2);
17644
+ this.gen = it.gen;
17645
+ this.allErrors = it.allErrors;
18401
17646
  this.keyword = keyword2;
18402
- this.data = it2.data;
18403
- this.schema = it2.schema[keyword2];
18404
- this.$data = def2.$data && it2.opts.$data && this.schema && this.schema.$data;
18405
- this.schemaValue = (0, util_1$p.schemaRefOrVal)(it2, this.schema, keyword2, this.$data);
17647
+ this.data = it.data;
17648
+ this.schema = it.schema[keyword2];
17649
+ this.$data = def2.$data && it.opts.$data && this.schema && this.schema.$data;
17650
+ this.schemaValue = (0, util_1$p.schemaRefOrVal)(it, this.schema, keyword2, this.$data);
18406
17651
  this.schemaType = def2.schemaType;
18407
- this.parentSchema = it2.schema;
17652
+ this.parentSchema = it.schema;
18408
17653
  this.params = {};
18409
- this.it = it2;
17654
+ this.it = it;
18410
17655
  this.def = def2;
18411
17656
  if (this.$data) {
18412
- this.schemaCode = it2.gen.const("vSchema", getData(this.$data, it2));
17657
+ this.schemaCode = it.gen.const("vSchema", getData(this.$data, it));
18413
17658
  } else {
18414
17659
  this.schemaCode = this.schemaValue;
18415
17660
  if (!(0, keyword_1.validSchemaType)(this.schema, def2.schemaType, def2.allowUndefined)) {
@@ -18417,7 +17662,7 @@ class KeywordCxt {
18417
17662
  }
18418
17663
  }
18419
17664
  if ("code" in def2 ? def2.trackErrors : def2.errors !== false) {
18420
- this.errsCount = it2.gen.const("_errs", names_1$6.default.errors);
17665
+ this.errsCount = it.gen.const("_errs", names_1$6.default.errors);
18421
17666
  }
18422
17667
  }
18423
17668
  result(condition, successAction, failAction) {
@@ -18516,14 +17761,14 @@ class KeywordCxt {
18516
17761
  gen.else();
18517
17762
  }
18518
17763
  invalid$data() {
18519
- const { gen, schemaCode, schemaType, def: def2, it: it2 } = this;
17764
+ const { gen, schemaCode, schemaType, def: def2, it } = this;
18520
17765
  return (0, codegen_1$r.or)(wrong$DataType(), invalid$DataSchema());
18521
17766
  function wrong$DataType() {
18522
17767
  if (schemaType.length) {
18523
17768
  if (!(schemaCode instanceof codegen_1$r.Name))
18524
17769
  throw new Error("ajv implementation error");
18525
- const st2 = Array.isArray(schemaType) ? schemaType : [schemaType];
18526
- return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(st2, schemaCode, it2.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
17770
+ const st = Array.isArray(schemaType) ? schemaType : [schemaType];
17771
+ return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
18527
17772
  }
18528
17773
  return codegen_1$r.nil;
18529
17774
  }
@@ -18544,27 +17789,27 @@ class KeywordCxt {
18544
17789
  return nextContext;
18545
17790
  }
18546
17791
  mergeEvaluated(schemaCxt, toName) {
18547
- const { it: it2, gen } = this;
18548
- if (!it2.opts.unevaluated)
17792
+ const { it, gen } = this;
17793
+ if (!it.opts.unevaluated)
18549
17794
  return;
18550
- if (it2.props !== true && schemaCxt.props !== void 0) {
18551
- it2.props = util_1$p.mergeEvaluated.props(gen, schemaCxt.props, it2.props, toName);
17795
+ if (it.props !== true && schemaCxt.props !== void 0) {
17796
+ it.props = util_1$p.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);
18552
17797
  }
18553
- if (it2.items !== true && schemaCxt.items !== void 0) {
18554
- it2.items = util_1$p.mergeEvaluated.items(gen, schemaCxt.items, it2.items, toName);
17798
+ if (it.items !== true && schemaCxt.items !== void 0) {
17799
+ it.items = util_1$p.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);
18555
17800
  }
18556
17801
  }
18557
17802
  mergeValidEvaluated(schemaCxt, valid) {
18558
- const { it: it2, gen } = this;
18559
- if (it2.opts.unevaluated && (it2.props !== true || it2.items !== true)) {
17803
+ const { it, gen } = this;
17804
+ if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {
18560
17805
  gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1$r.Name));
18561
17806
  return true;
18562
17807
  }
18563
17808
  }
18564
17809
  }
18565
17810
  validate$1.KeywordCxt = KeywordCxt;
18566
- function keywordCode(it2, keyword2, def2, ruleType) {
18567
- const cxt = new KeywordCxt(it2, def2, keyword2);
17811
+ function keywordCode(it, keyword2, def2, ruleType) {
17812
+ const cxt = new KeywordCxt(it, def2, keyword2);
18568
17813
  if ("code" in def2) {
18569
17814
  def2.code(cxt, ruleType);
18570
17815
  } else if (cxt.$data && def2.validate) {
@@ -19228,7 +18473,7 @@ var uri_all = { exports: {} };
19228
18473
  error$12("overflow");
19229
18474
  }
19230
18475
  if (_currentValue == n2) {
19231
- var q2 = delta;
18476
+ var q = delta;
19232
18477
  for (
19233
18478
  var k2 = base;
19234
18479
  ;
@@ -19236,15 +18481,15 @@ var uri_all = { exports: {} };
19236
18481
  k2 += base
19237
18482
  ) {
19238
18483
  var t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
19239
- if (q2 < t2) {
18484
+ if (q < t2) {
19240
18485
  break;
19241
18486
  }
19242
- var qMinusT = q2 - t2;
18487
+ var qMinusT = q - t2;
19243
18488
  var baseMinusT = base - t2;
19244
18489
  output.push(stringFromCharCode(digitToBasic(t2 + qMinusT % baseMinusT, 0)));
19245
- q2 = floor(qMinusT / baseMinusT);
18490
+ q = floor(qMinusT / baseMinusT);
19246
18491
  }
19247
- output.push(stringFromCharCode(digitToBasic(q2, 0)));
18492
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
19248
18493
  bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
19249
18494
  delta = 0;
19250
18495
  ++handledCPCount;
@@ -20561,14 +19806,14 @@ const def$A = {
20561
19806
  keyword: "$ref",
20562
19807
  schemaType: "string",
20563
19808
  code(cxt) {
20564
- const { gen, schema: $ref, it: it2 } = cxt;
20565
- const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it2;
19809
+ const { gen, schema: $ref, it } = cxt;
19810
+ const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it;
20566
19811
  const { root: root2 } = env;
20567
19812
  if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
20568
19813
  return callRootRef();
20569
19814
  const schOrEnv = compile_1$2.resolveRef.call(self2, root2, baseId, $ref);
20570
19815
  if (schOrEnv === void 0)
20571
- throw new ref_error_1.default(it2.opts.uriResolver, baseId, $ref);
19816
+ throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);
20572
19817
  if (schOrEnv instanceof compile_1$2.SchemaEnv)
20573
19818
  return callValidate(schOrEnv);
20574
19819
  return inlineRefSchema(schOrEnv);
@@ -20603,8 +19848,8 @@ function getValidate(cxt, sch) {
20603
19848
  }
20604
19849
  ref.getValidate = getValidate;
20605
19850
  function callRef(cxt, v2, sch, $async) {
20606
- const { gen, it: it2 } = cxt;
20607
- const { allErrors, schemaEnv: env, opts } = it2;
19851
+ const { gen, it } = cxt;
19852
+ const { allErrors, schemaEnv: env, opts } = it;
20608
19853
  const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
20609
19854
  if ($async)
20610
19855
  callAsyncRef();
@@ -20620,7 +19865,7 @@ function callRef(cxt, v2, sch, $async) {
20620
19865
  if (!allErrors)
20621
19866
  gen.assign(valid, true);
20622
19867
  }, (e2) => {
20623
- gen.if((0, codegen_1$p._)`!(${e2} instanceof ${it2.ValidationError})`, () => gen.throw(e2));
19868
+ gen.if((0, codegen_1$p._)`!(${e2} instanceof ${it.ValidationError})`, () => gen.throw(e2));
20624
19869
  addErrorsFrom(e2);
20625
19870
  if (!allErrors)
20626
19871
  gen.assign(valid, false);
@@ -20637,27 +19882,27 @@ function callRef(cxt, v2, sch, $async) {
20637
19882
  }
20638
19883
  function addEvaluatedFrom(source) {
20639
19884
  var _a;
20640
- if (!it2.opts.unevaluated)
19885
+ if (!it.opts.unevaluated)
20641
19886
  return;
20642
19887
  const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
20643
- if (it2.props !== true) {
19888
+ if (it.props !== true) {
20644
19889
  if (schEvaluated && !schEvaluated.dynamicProps) {
20645
19890
  if (schEvaluated.props !== void 0) {
20646
- it2.props = util_1$n.mergeEvaluated.props(gen, schEvaluated.props, it2.props);
19891
+ it.props = util_1$n.mergeEvaluated.props(gen, schEvaluated.props, it.props);
20647
19892
  }
20648
19893
  } else {
20649
19894
  const props = gen.var("props", (0, codegen_1$p._)`${source}.evaluated.props`);
20650
- it2.props = util_1$n.mergeEvaluated.props(gen, props, it2.props, codegen_1$p.Name);
19895
+ it.props = util_1$n.mergeEvaluated.props(gen, props, it.props, codegen_1$p.Name);
20651
19896
  }
20652
19897
  }
20653
- if (it2.items !== true) {
19898
+ if (it.items !== true) {
20654
19899
  if (schEvaluated && !schEvaluated.dynamicItems) {
20655
19900
  if (schEvaluated.items !== void 0) {
20656
- it2.items = util_1$n.mergeEvaluated.items(gen, schEvaluated.items, it2.items);
19901
+ it.items = util_1$n.mergeEvaluated.items(gen, schEvaluated.items, it.items);
20657
19902
  }
20658
19903
  } else {
20659
19904
  const items2 = gen.var("items", (0, codegen_1$p._)`${source}.evaluated.items`);
20660
- it2.items = util_1$n.mergeEvaluated.items(gen, items2, it2.items, codegen_1$p.Name);
19905
+ it.items = util_1$n.mergeEvaluated.items(gen, items2, it.items, codegen_1$p.Name);
20661
19906
  }
20662
19907
  }
20663
19908
  }
@@ -20719,8 +19964,8 @@ const def$y = {
20719
19964
  $data: true,
20720
19965
  error: error$j,
20721
19966
  code(cxt) {
20722
- const { gen, data, schemaCode, it: it2 } = cxt;
20723
- const prec = it2.opts.multipleOfPrecision;
19967
+ const { gen, data, schemaCode, it } = cxt;
19968
+ const prec = it.opts.multipleOfPrecision;
20724
19969
  const res = gen.let("res");
20725
19970
  const invalid = prec ? (0, codegen_1$n._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1$n._)`${res} !== parseInt(${res})`;
20726
19971
  cxt.fail$data((0, codegen_1$n._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
@@ -20766,9 +20011,9 @@ const def$x = {
20766
20011
  $data: true,
20767
20012
  error: error$i,
20768
20013
  code(cxt) {
20769
- const { keyword: keyword2, data, schemaCode, it: it2 } = cxt;
20014
+ const { keyword: keyword2, data, schemaCode, it } = cxt;
20770
20015
  const op = keyword2 === "maxLength" ? codegen_1$m.operators.GT : codegen_1$m.operators.LT;
20771
- 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})`;
20016
+ const len = it.opts.unicode === false ? (0, codegen_1$m._)`${data}.length` : (0, codegen_1$m._)`${(0, util_1$m.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;
20772
20017
  cxt.fail$data((0, codegen_1$m._)`${len} ${op} ${schemaCode}`);
20773
20018
  }
20774
20019
  };
@@ -20788,8 +20033,8 @@ const def$w = {
20788
20033
  $data: true,
20789
20034
  error: error$h,
20790
20035
  code(cxt) {
20791
- const { data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
20792
- const u2 = it2.opts.unicodeRegExp ? "u" : "";
20036
+ const { data, $data, schema: schema2, schemaCode, it } = cxt;
20037
+ const u2 = it.opts.unicodeRegExp ? "u" : "";
20793
20038
  const regExp = $data ? (0, codegen_1$l._)`(new RegExp(${schemaCode}, ${u2}))` : (0, code_1$7.usePattern)(cxt, schema2);
20794
20039
  cxt.fail$data((0, codegen_1$l._)`!${regExp}.test(${data})`);
20795
20040
  }
@@ -20834,12 +20079,12 @@ const def$u = {
20834
20079
  $data: true,
20835
20080
  error: error$f,
20836
20081
  code(cxt) {
20837
- const { gen, schema: schema2, schemaCode, data, $data, it: it2 } = cxt;
20838
- const { opts } = it2;
20082
+ const { gen, schema: schema2, schemaCode, data, $data, it } = cxt;
20083
+ const { opts } = it;
20839
20084
  if (!$data && schema2.length === 0)
20840
20085
  return;
20841
20086
  const useLoop = schema2.length >= opts.loopRequired;
20842
- if (it2.allErrors)
20087
+ if (it.allErrors)
20843
20088
  allErrorsMode();
20844
20089
  else
20845
20090
  exitOnErrorMode();
@@ -20848,9 +20093,9 @@ const def$u = {
20848
20093
  const { definedProperties } = cxt.it;
20849
20094
  for (const requiredKey of schema2) {
20850
20095
  if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === void 0 && !definedProperties.has(requiredKey)) {
20851
- const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
20096
+ const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
20852
20097
  const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;
20853
- (0, util_1$l.checkStrictMode)(it2, msg, it2.opts.strictRequired);
20098
+ (0, util_1$l.checkStrictMode)(it, msg, it.opts.strictRequired);
20854
20099
  }
20855
20100
  }
20856
20101
  }
@@ -20939,7 +20184,7 @@ const def$s = {
20939
20184
  $data: true,
20940
20185
  error: error$d,
20941
20186
  code(cxt) {
20942
- const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it: it2 } = cxt;
20187
+ const { gen, data, $data, schema: schema2, parentSchema, schemaCode, it } = cxt;
20943
20188
  if (!$data && !schema2)
20944
20189
  return;
20945
20190
  const valid = gen.let("valid");
@@ -20958,7 +20203,7 @@ const def$s = {
20958
20203
  }
20959
20204
  function loopN(i2, j2) {
20960
20205
  const item = gen.name("item");
20961
- const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it2.opts.strictNumbers, dataType_1.DataType.Wrong);
20206
+ const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
20962
20207
  const indices = gen.const("indices", (0, codegen_1$h._)`{}`);
20963
20208
  gen.for((0, codegen_1$h._)`;${i2}--;`, () => {
20964
20209
  gen.let(item, (0, codegen_1$h._)`${data}[${i2}]`);
@@ -21021,10 +20266,10 @@ const def$q = {
21021
20266
  $data: true,
21022
20267
  error: error$b,
21023
20268
  code(cxt) {
21024
- const { gen, data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
20269
+ const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
21025
20270
  if (!$data && schema2.length === 0)
21026
20271
  throw new Error("enum must have non-empty array");
21027
- const useLoop = schema2.length >= it2.opts.loopEnum;
20272
+ const useLoop = schema2.length >= it.opts.loopEnum;
21028
20273
  let eql;
21029
20274
  const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1$i.useFunc)(gen, equal_1.default);
21030
20275
  let valid;
@@ -21097,23 +20342,23 @@ const def$p = {
21097
20342
  before: "uniqueItems",
21098
20343
  error: error$a,
21099
20344
  code(cxt) {
21100
- const { parentSchema, it: it2 } = cxt;
20345
+ const { parentSchema, it } = cxt;
21101
20346
  const { items: items2 } = parentSchema;
21102
20347
  if (!Array.isArray(items2)) {
21103
- (0, util_1$h.checkStrictMode)(it2, '"additionalItems" is ignored when "items" is not an array of schemas');
20348
+ (0, util_1$h.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas');
21104
20349
  return;
21105
20350
  }
21106
20351
  validateAdditionalItems(cxt, items2);
21107
20352
  }
21108
20353
  };
21109
20354
  function validateAdditionalItems(cxt, items2) {
21110
- const { gen, schema: schema2, data, keyword: keyword2, it: it2 } = cxt;
21111
- it2.items = true;
20355
+ const { gen, schema: schema2, data, keyword: keyword2, it } = cxt;
20356
+ it.items = true;
21112
20357
  const len = gen.const("len", (0, codegen_1$e._)`${data}.length`);
21113
20358
  if (schema2 === false) {
21114
20359
  cxt.setParams({ len: items2.length });
21115
20360
  cxt.pass((0, codegen_1$e._)`${len} <= ${items2.length}`);
21116
- } else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(it2, schema2)) {
20361
+ } else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(it, schema2)) {
21117
20362
  const valid = gen.var("valid", (0, codegen_1$e._)`${len} <= ${items2.length}`);
21118
20363
  gen.if((0, codegen_1$e.not)(valid), () => validateItems(valid));
21119
20364
  cxt.ok(valid);
@@ -21121,7 +20366,7 @@ function validateAdditionalItems(cxt, items2) {
21121
20366
  function validateItems(valid) {
21122
20367
  gen.forRange("i", items2.length, len, (i2) => {
21123
20368
  cxt.subschema({ keyword: keyword2, dataProp: i2, dataPropType: util_1$h.Type.Num }, valid);
21124
- if (!it2.allErrors)
20369
+ if (!it.allErrors)
21125
20370
  gen.if((0, codegen_1$e.not)(valid), () => gen.break());
21126
20371
  });
21127
20372
  }
@@ -21141,25 +20386,25 @@ const def$o = {
21141
20386
  schemaType: ["object", "array", "boolean"],
21142
20387
  before: "uniqueItems",
21143
20388
  code(cxt) {
21144
- const { schema: schema2, it: it2 } = cxt;
20389
+ const { schema: schema2, it } = cxt;
21145
20390
  if (Array.isArray(schema2))
21146
20391
  return validateTuple(cxt, "additionalItems", schema2);
21147
- it2.items = true;
21148
- if ((0, util_1$g.alwaysValidSchema)(it2, schema2))
20392
+ it.items = true;
20393
+ if ((0, util_1$g.alwaysValidSchema)(it, schema2))
21149
20394
  return;
21150
20395
  cxt.ok((0, code_1$5.validateArray)(cxt));
21151
20396
  }
21152
20397
  };
21153
20398
  function validateTuple(cxt, extraItems, schArr = cxt.schema) {
21154
- const { gen, parentSchema, data, keyword: keyword2, it: it2 } = cxt;
20399
+ const { gen, parentSchema, data, keyword: keyword2, it } = cxt;
21155
20400
  checkStrictTuple(parentSchema);
21156
- if (it2.opts.unevaluated && schArr.length && it2.items !== true) {
21157
- it2.items = util_1$g.mergeEvaluated.items(gen, schArr.length, it2.items);
20401
+ if (it.opts.unevaluated && schArr.length && it.items !== true) {
20402
+ it.items = util_1$g.mergeEvaluated.items(gen, schArr.length, it.items);
21158
20403
  }
21159
20404
  const valid = gen.name("valid");
21160
20405
  const len = gen.const("len", (0, codegen_1$d._)`${data}.length`);
21161
20406
  schArr.forEach((sch, i2) => {
21162
- if ((0, util_1$g.alwaysValidSchema)(it2, sch))
20407
+ if ((0, util_1$g.alwaysValidSchema)(it, sch))
21163
20408
  return;
21164
20409
  gen.if((0, codegen_1$d._)`${len} > ${i2}`, () => cxt.subschema({
21165
20410
  keyword: keyword2,
@@ -21169,12 +20414,12 @@ function validateTuple(cxt, extraItems, schArr = cxt.schema) {
21169
20414
  cxt.ok(valid);
21170
20415
  });
21171
20416
  function checkStrictTuple(sch) {
21172
- const { opts, errSchemaPath } = it2;
20417
+ const { opts, errSchemaPath } = it;
21173
20418
  const l2 = schArr.length;
21174
20419
  const fullTuple = l2 === sch.minItems && (l2 === sch.maxItems || sch[extraItems] === false);
21175
20420
  if (opts.strictTuples && !fullTuple) {
21176
20421
  const msg = `"${keyword2}" is ${l2}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
21177
- (0, util_1$g.checkStrictMode)(it2, msg, opts.strictTuples);
20422
+ (0, util_1$g.checkStrictMode)(it, msg, opts.strictTuples);
21178
20423
  }
21179
20424
  }
21180
20425
  }
@@ -21207,10 +20452,10 @@ const def$m = {
21207
20452
  before: "uniqueItems",
21208
20453
  error: error$9,
21209
20454
  code(cxt) {
21210
- const { schema: schema2, parentSchema, it: it2 } = cxt;
20455
+ const { schema: schema2, parentSchema, it } = cxt;
21211
20456
  const { prefixItems: prefixItems2 } = parentSchema;
21212
- it2.items = true;
21213
- if ((0, util_1$f.alwaysValidSchema)(it2, schema2))
20457
+ it.items = true;
20458
+ if ((0, util_1$f.alwaysValidSchema)(it, schema2))
21214
20459
  return;
21215
20460
  if (prefixItems2)
21216
20461
  (0, additionalItems_1$1.validateAdditionalItems)(cxt, prefixItems2);
@@ -21235,11 +20480,11 @@ const def$l = {
21235
20480
  trackErrors: true,
21236
20481
  error: error$8,
21237
20482
  code(cxt) {
21238
- const { gen, schema: schema2, parentSchema, data, it: it2 } = cxt;
20483
+ const { gen, schema: schema2, parentSchema, data, it } = cxt;
21239
20484
  let min;
21240
20485
  let max;
21241
20486
  const { minContains, maxContains } = parentSchema;
21242
- if (it2.opts.next) {
20487
+ if (it.opts.next) {
21243
20488
  min = minContains === void 0 ? 1 : minContains;
21244
20489
  max = maxContains;
21245
20490
  } else {
@@ -21248,22 +20493,22 @@ const def$l = {
21248
20493
  const len = gen.const("len", (0, codegen_1$b._)`${data}.length`);
21249
20494
  cxt.setParams({ min, max });
21250
20495
  if (max === void 0 && min === 0) {
21251
- (0, util_1$e.checkStrictMode)(it2, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
20496
+ (0, util_1$e.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
21252
20497
  return;
21253
20498
  }
21254
20499
  if (max !== void 0 && min > max) {
21255
- (0, util_1$e.checkStrictMode)(it2, `"minContains" > "maxContains" is always invalid`);
20500
+ (0, util_1$e.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
21256
20501
  cxt.fail();
21257
20502
  return;
21258
20503
  }
21259
- if ((0, util_1$e.alwaysValidSchema)(it2, schema2)) {
20504
+ if ((0, util_1$e.alwaysValidSchema)(it, schema2)) {
21260
20505
  let cond = (0, codegen_1$b._)`${len} >= ${min}`;
21261
20506
  if (max !== void 0)
21262
20507
  cond = (0, codegen_1$b._)`${cond} && ${len} <= ${max}`;
21263
20508
  cxt.pass(cond);
21264
20509
  return;
21265
20510
  }
21266
- it2.items = true;
20511
+ it.items = true;
21267
20512
  const valid = gen.name("valid");
21268
20513
  if (max === void 0 && min === 1) {
21269
20514
  validateItems(valid, () => gen.if(valid, () => gen.break()));
@@ -21348,7 +20593,7 @@ var dependencies = {};
21348
20593
  return [propertyDeps, schemaDeps];
21349
20594
  }
21350
20595
  function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
21351
- const { gen, data, it: it2 } = cxt;
20596
+ const { gen, data, it } = cxt;
21352
20597
  if (Object.keys(propertyDeps).length === 0)
21353
20598
  return;
21354
20599
  const missing = gen.let("missing");
@@ -21356,13 +20601,13 @@ var dependencies = {};
21356
20601
  const deps = propertyDeps[prop];
21357
20602
  if (deps.length === 0)
21358
20603
  continue;
21359
- const hasProperty = (0, code_12.propertyInData)(gen, data, prop, it2.opts.ownProperties);
20604
+ const hasProperty = (0, code_12.propertyInData)(gen, data, prop, it.opts.ownProperties);
21360
20605
  cxt.setParams({
21361
20606
  property: prop,
21362
20607
  depsCount: deps.length,
21363
20608
  deps: deps.join(", ")
21364
20609
  });
21365
- if (it2.allErrors) {
20610
+ if (it.allErrors) {
21366
20611
  gen.if(hasProperty, () => {
21367
20612
  for (const depProp of deps) {
21368
20613
  (0, code_12.checkReportMissingProp)(cxt, depProp);
@@ -21377,13 +20622,13 @@ var dependencies = {};
21377
20622
  }
21378
20623
  exports.validatePropertyDeps = validatePropertyDeps;
21379
20624
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
21380
- const { gen, data, keyword: keyword2, it: it2 } = cxt;
20625
+ const { gen, data, keyword: keyword2, it } = cxt;
21381
20626
  const valid = gen.name("valid");
21382
20627
  for (const prop in schemaDeps) {
21383
- if ((0, util_12.alwaysValidSchema)(it2, schemaDeps[prop]))
20628
+ if ((0, util_12.alwaysValidSchema)(it, schemaDeps[prop]))
21384
20629
  continue;
21385
20630
  gen.if(
21386
- (0, code_12.propertyInData)(gen, data, prop, it2.opts.ownProperties),
20631
+ (0, code_12.propertyInData)(gen, data, prop, it.opts.ownProperties),
21387
20632
  () => {
21388
20633
  const schCxt = cxt.subschema({ keyword: keyword2, schemaProp: prop }, valid);
21389
20634
  cxt.mergeValidEvaluated(schCxt, valid);
@@ -21411,8 +20656,8 @@ const def$k = {
21411
20656
  schemaType: ["object", "boolean"],
21412
20657
  error: error$7,
21413
20658
  code(cxt) {
21414
- const { gen, schema: schema2, data, it: it2 } = cxt;
21415
- if ((0, util_1$d.alwaysValidSchema)(it2, schema2))
20659
+ const { gen, schema: schema2, data, it } = cxt;
20660
+ if ((0, util_1$d.alwaysValidSchema)(it, schema2))
21416
20661
  return;
21417
20662
  const valid = gen.name("valid");
21418
20663
  gen.forIn("key", data, (key) => {
@@ -21426,7 +20671,7 @@ const def$k = {
21426
20671
  }, valid);
21427
20672
  gen.if((0, codegen_1$a.not)(valid), () => {
21428
20673
  cxt.error(true);
21429
- if (!it2.allErrors)
20674
+ if (!it.allErrors)
21430
20675
  gen.break();
21431
20676
  });
21432
20677
  });
@@ -21452,12 +20697,12 @@ const def$j = {
21452
20697
  trackErrors: true,
21453
20698
  error: error$6,
21454
20699
  code(cxt) {
21455
- const { gen, schema: schema2, parentSchema, data, errsCount, it: it2 } = cxt;
20700
+ const { gen, schema: schema2, parentSchema, data, errsCount, it } = cxt;
21456
20701
  if (!errsCount)
21457
20702
  throw new Error("ajv implementation error");
21458
- const { allErrors, opts } = it2;
21459
- it2.props = true;
21460
- if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(it2, schema2))
20703
+ const { allErrors, opts } = it;
20704
+ it.props = true;
20705
+ if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(it, schema2))
21461
20706
  return;
21462
20707
  const props = (0, code_1$3.allSchemaProperties)(parentSchema.properties);
21463
20708
  const patProps = (0, code_1$3.allSchemaProperties)(parentSchema.patternProperties);
@@ -21474,7 +20719,7 @@ const def$j = {
21474
20719
  function isAdditional(key) {
21475
20720
  let definedProp;
21476
20721
  if (props.length > 8) {
21477
- const propsSchema = (0, util_1$c.schemaRefOrVal)(it2, parentSchema.properties, "properties");
20722
+ const propsSchema = (0, util_1$c.schemaRefOrVal)(it, parentSchema.properties, "properties");
21478
20723
  definedProp = (0, code_1$3.isOwnProperty)(gen, propsSchema, key);
21479
20724
  } else if (props.length) {
21480
20725
  definedProp = (0, codegen_1$9.or)(...props.map((p2) => (0, codegen_1$9._)`${key} === ${p2}`));
@@ -21501,7 +20746,7 @@ const def$j = {
21501
20746
  gen.break();
21502
20747
  return;
21503
20748
  }
21504
- if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(it2, schema2)) {
20749
+ if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(it, schema2)) {
21505
20750
  const valid = gen.name("valid");
21506
20751
  if (opts.removeAdditional === "failing") {
21507
20752
  applyAdditionalSchema(key, valid, false);
@@ -21545,18 +20790,18 @@ const def$i = {
21545
20790
  type: "object",
21546
20791
  schemaType: "object",
21547
20792
  code(cxt) {
21548
- const { gen, schema: schema2, parentSchema, data, it: it2 } = cxt;
21549
- if (it2.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
21550
- additionalProperties_1$1.default.code(new validate_1.KeywordCxt(it2, additionalProperties_1$1.default, "additionalProperties"));
20793
+ const { gen, schema: schema2, parentSchema, data, it } = cxt;
20794
+ if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
20795
+ additionalProperties_1$1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1$1.default, "additionalProperties"));
21551
20796
  }
21552
20797
  const allProps = (0, code_1$2.allSchemaProperties)(schema2);
21553
20798
  for (const prop of allProps) {
21554
- it2.definedProperties.add(prop);
20799
+ it.definedProperties.add(prop);
21555
20800
  }
21556
- if (it2.opts.unevaluated && allProps.length && it2.props !== true) {
21557
- it2.props = util_1$b.mergeEvaluated.props(gen, (0, util_1$b.toHash)(allProps), it2.props);
20801
+ if (it.opts.unevaluated && allProps.length && it.props !== true) {
20802
+ it.props = util_1$b.mergeEvaluated.props(gen, (0, util_1$b.toHash)(allProps), it.props);
21558
20803
  }
21559
- const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(it2, schema2[p2]));
20804
+ const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(it, schema2[p2]));
21560
20805
  if (properties2.length === 0)
21561
20806
  return;
21562
20807
  const valid = gen.name("valid");
@@ -21564,9 +20809,9 @@ const def$i = {
21564
20809
  if (hasDefault(prop)) {
21565
20810
  applyPropertySchema(prop);
21566
20811
  } else {
21567
- gen.if((0, code_1$2.propertyInData)(gen, data, prop, it2.opts.ownProperties));
20812
+ gen.if((0, code_1$2.propertyInData)(gen, data, prop, it.opts.ownProperties));
21568
20813
  applyPropertySchema(prop);
21569
- if (!it2.allErrors)
20814
+ if (!it.allErrors)
21570
20815
  gen.else().var(valid, true);
21571
20816
  gen.endIf();
21572
20817
  }
@@ -21574,7 +20819,7 @@ const def$i = {
21574
20819
  cxt.ok(valid);
21575
20820
  }
21576
20821
  function hasDefault(prop) {
21577
- return it2.opts.useDefaults && !it2.compositeRule && schema2[prop].default !== void 0;
20822
+ return it.opts.useDefaults && !it.compositeRule && schema2[prop].default !== void 0;
21578
20823
  }
21579
20824
  function applyPropertySchema(prop) {
21580
20825
  cxt.subschema({
@@ -21597,25 +20842,25 @@ const def$h = {
21597
20842
  type: "object",
21598
20843
  schemaType: "object",
21599
20844
  code(cxt) {
21600
- const { gen, schema: schema2, data, parentSchema, it: it2 } = cxt;
21601
- const { opts } = it2;
20845
+ const { gen, schema: schema2, data, parentSchema, it } = cxt;
20846
+ const { opts } = it;
21602
20847
  const patterns = (0, code_1$1.allSchemaProperties)(schema2);
21603
- const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(it2, schema2[p2]));
21604
- if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it2.opts.unevaluated || it2.props === true)) {
20848
+ const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(it, schema2[p2]));
20849
+ if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) {
21605
20850
  return;
21606
20851
  }
21607
20852
  const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
21608
20853
  const valid = gen.name("valid");
21609
- if (it2.props !== true && !(it2.props instanceof codegen_1$8.Name)) {
21610
- it2.props = (0, util_2.evaluatedPropsToName)(gen, it2.props);
20854
+ if (it.props !== true && !(it.props instanceof codegen_1$8.Name)) {
20855
+ it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
21611
20856
  }
21612
- const { props } = it2;
20857
+ const { props } = it;
21613
20858
  validatePatternProperties();
21614
20859
  function validatePatternProperties() {
21615
20860
  for (const pat of patterns) {
21616
20861
  if (checkProperties)
21617
20862
  checkMatchingProperties(pat);
21618
- if (it2.allErrors) {
20863
+ if (it.allErrors) {
21619
20864
  validateProperties(pat);
21620
20865
  } else {
21621
20866
  gen.var(valid, true);
@@ -21627,7 +20872,7 @@ const def$h = {
21627
20872
  function checkMatchingProperties(pat) {
21628
20873
  for (const prop in checkProperties) {
21629
20874
  if (new RegExp(pat).test(prop)) {
21630
- (0, util_1$a.checkStrictMode)(it2, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
20875
+ (0, util_1$a.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
21631
20876
  }
21632
20877
  }
21633
20878
  }
@@ -21643,9 +20888,9 @@ const def$h = {
21643
20888
  dataPropType: util_2.Type.Str
21644
20889
  }, valid);
21645
20890
  }
21646
- if (it2.opts.unevaluated && props !== true) {
20891
+ if (it.opts.unevaluated && props !== true) {
21647
20892
  gen.assign((0, codegen_1$8._)`${props}[${key}]`, true);
21648
- } else if (!alwaysValid && !it2.allErrors) {
20893
+ } else if (!alwaysValid && !it.allErrors) {
21649
20894
  gen.if((0, codegen_1$8.not)(valid), () => gen.break());
21650
20895
  }
21651
20896
  });
@@ -21662,8 +20907,8 @@ const def$g = {
21662
20907
  schemaType: ["object", "boolean"],
21663
20908
  trackErrors: true,
21664
20909
  code(cxt) {
21665
- const { gen, schema: schema2, it: it2 } = cxt;
21666
- if ((0, util_1$9.alwaysValidSchema)(it2, schema2)) {
20910
+ const { gen, schema: schema2, it } = cxt;
20911
+ if ((0, util_1$9.alwaysValidSchema)(it, schema2)) {
21667
20912
  cxt.fail();
21668
20913
  return;
21669
20914
  }
@@ -21704,10 +20949,10 @@ const def$e = {
21704
20949
  trackErrors: true,
21705
20950
  error: error$5,
21706
20951
  code(cxt) {
21707
- const { gen, schema: schema2, parentSchema, it: it2 } = cxt;
20952
+ const { gen, schema: schema2, parentSchema, it } = cxt;
21708
20953
  if (!Array.isArray(schema2))
21709
20954
  throw new Error("ajv implementation error");
21710
- if (it2.opts.discriminator && parentSchema.discriminator)
20955
+ if (it.opts.discriminator && parentSchema.discriminator)
21711
20956
  return;
21712
20957
  const schArr = schema2;
21713
20958
  const valid = gen.let("valid", false);
@@ -21719,7 +20964,7 @@ const def$e = {
21719
20964
  function validateOneOf() {
21720
20965
  schArr.forEach((sch, i2) => {
21721
20966
  let schCxt;
21722
- if ((0, util_1$8.alwaysValidSchema)(it2, sch)) {
20967
+ if ((0, util_1$8.alwaysValidSchema)(it, sch)) {
21723
20968
  gen.var(schValid, true);
21724
20969
  } else {
21725
20970
  schCxt = cxt.subschema({
@@ -21749,12 +20994,12 @@ const def$d = {
21749
20994
  keyword: "allOf",
21750
20995
  schemaType: "array",
21751
20996
  code(cxt) {
21752
- const { gen, schema: schema2, it: it2 } = cxt;
20997
+ const { gen, schema: schema2, it } = cxt;
21753
20998
  if (!Array.isArray(schema2))
21754
20999
  throw new Error("ajv implementation error");
21755
21000
  const valid = gen.name("valid");
21756
21001
  schema2.forEach((sch, i2) => {
21757
- if ((0, util_1$7.alwaysValidSchema)(it2, sch))
21002
+ if ((0, util_1$7.alwaysValidSchema)(it, sch))
21758
21003
  return;
21759
21004
  const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i2 }, valid);
21760
21005
  cxt.ok(valid);
@@ -21777,12 +21022,12 @@ const def$c = {
21777
21022
  trackErrors: true,
21778
21023
  error: error$4,
21779
21024
  code(cxt) {
21780
- const { gen, parentSchema, it: it2 } = cxt;
21025
+ const { gen, parentSchema, it } = cxt;
21781
21026
  if (parentSchema.then === void 0 && parentSchema.else === void 0) {
21782
- (0, util_1$6.checkStrictMode)(it2, '"if" without "then" and "else" is ignored');
21027
+ (0, util_1$6.checkStrictMode)(it, '"if" without "then" and "else" is ignored');
21783
21028
  }
21784
- const hasThen = hasSchema(it2, "then");
21785
- const hasElse = hasSchema(it2, "else");
21029
+ const hasThen = hasSchema(it, "then");
21030
+ const hasElse = hasSchema(it, "else");
21786
21031
  if (!hasThen && !hasElse)
21787
21032
  return;
21788
21033
  const valid = gen.let("valid", true);
@@ -21821,9 +21066,9 @@ const def$c = {
21821
21066
  }
21822
21067
  }
21823
21068
  };
21824
- function hasSchema(it2, keyword2) {
21825
- const schema2 = it2.schema[keyword2];
21826
- return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(it2, schema2);
21069
+ function hasSchema(it, keyword2) {
21070
+ const schema2 = it.schema[keyword2];
21071
+ return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(it, schema2);
21827
21072
  }
21828
21073
  _if.default = def$c;
21829
21074
  var thenElse = {};
@@ -21832,9 +21077,9 @@ const util_1$5 = util;
21832
21077
  const def$b = {
21833
21078
  keyword: ["then", "else"],
21834
21079
  schemaType: ["object", "boolean"],
21835
- code({ keyword: keyword2, parentSchema, it: it2 }) {
21080
+ code({ keyword: keyword2, parentSchema, it }) {
21836
21081
  if (parentSchema.if === void 0)
21837
- (0, util_1$5.checkStrictMode)(it2, `"${keyword2}" without "if" is ignored`);
21082
+ (0, util_1$5.checkStrictMode)(it, `"${keyword2}" without "if" is ignored`);
21838
21083
  }
21839
21084
  };
21840
21085
  thenElse.default = def$b;
@@ -21894,8 +21139,8 @@ const def$a = {
21894
21139
  $data: true,
21895
21140
  error: error$3,
21896
21141
  code(cxt, ruleType) {
21897
- const { gen, data, $data, schema: schema2, schemaCode, it: it2 } = cxt;
21898
- const { opts, errSchemaPath, schemaEnv, self: self2 } = it2;
21142
+ const { gen, data, $data, schema: schema2, schemaCode, it } = cxt;
21143
+ const { opts, errSchemaPath, schemaEnv, self: self2 } = it;
21899
21144
  if (!opts.validateFormats)
21900
21145
  return;
21901
21146
  if ($data)
@@ -22014,10 +21259,10 @@ const def$9 = {
22014
21259
  code: (cxt) => dynamicAnchor(cxt, cxt.schema)
22015
21260
  };
22016
21261
  function dynamicAnchor(cxt, anchor) {
22017
- const { gen, it: it2 } = cxt;
22018
- it2.schemaEnv.root.dynamicAnchors[anchor] = true;
21262
+ const { gen, it } = cxt;
21263
+ it.schemaEnv.root.dynamicAnchors[anchor] = true;
22019
21264
  const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
22020
- const validate2 = it2.errSchemaPath === "#" ? it2.validateName : _getValidate(cxt);
21265
+ const validate2 = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
22021
21266
  gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
22022
21267
  }
22023
21268
  dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
@@ -22042,11 +21287,11 @@ const def$8 = {
22042
21287
  code: (cxt) => dynamicRef(cxt, cxt.schema)
22043
21288
  };
22044
21289
  function dynamicRef(cxt, ref2) {
22045
- const { gen, keyword: keyword2, it: it2 } = cxt;
21290
+ const { gen, keyword: keyword2, it } = cxt;
22046
21291
  if (ref2[0] !== "#")
22047
21292
  throw new Error(`"${keyword2}" only supports hash fragment reference`);
22048
21293
  const anchor = ref2.slice(1);
22049
- if (it2.allErrors) {
21294
+ if (it.allErrors) {
22050
21295
  _dynamicRef();
22051
21296
  } else {
22052
21297
  const valid = gen.let("valid", false);
@@ -22054,11 +21299,11 @@ function dynamicRef(cxt, ref2) {
22054
21299
  cxt.ok(valid);
22055
21300
  }
22056
21301
  function _dynamicRef(valid) {
22057
- if (it2.schemaEnv.root.dynamicAnchors[anchor]) {
21302
+ if (it.schemaEnv.root.dynamicAnchors[anchor]) {
22058
21303
  const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
22059
- gen.if(v2, _callRef(v2, valid), _callRef(it2.validateName, valid));
21304
+ gen.if(v2, _callRef(v2, valid), _callRef(it.validateName, valid));
22060
21305
  } else {
22061
- _callRef(it2.validateName, valid)();
21306
+ _callRef(it.validateName, valid)();
22062
21307
  }
22063
21308
  }
22064
21309
  function _callRef(validate2, valid) {
@@ -22130,9 +21375,9 @@ const def$3 = {
22130
21375
  keyword: ["maxContains", "minContains"],
22131
21376
  type: "array",
22132
21377
  schemaType: "number",
22133
- code({ keyword: keyword2, parentSchema, it: it2 }) {
21378
+ code({ keyword: keyword2, parentSchema, it }) {
22134
21379
  if (parentSchema.contains === void 0) {
22135
- (0, util_1$3.checkStrictMode)(it2, `"${keyword2}" without "contains" is ignored`);
21380
+ (0, util_1$3.checkStrictMode)(it, `"${keyword2}" without "contains" is ignored`);
22136
21381
  }
22137
21382
  }
22138
21383
  };
@@ -22160,16 +21405,16 @@ const def$2 = {
22160
21405
  trackErrors: true,
22161
21406
  error: error$2,
22162
21407
  code(cxt) {
22163
- const { gen, schema: schema2, data, errsCount, it: it2 } = cxt;
21408
+ const { gen, schema: schema2, data, errsCount, it } = cxt;
22164
21409
  if (!errsCount)
22165
21410
  throw new Error("ajv implementation error");
22166
- const { allErrors, props } = it2;
21411
+ const { allErrors, props } = it;
22167
21412
  if (props instanceof codegen_1$2.Name) {
22168
21413
  gen.if((0, codegen_1$2._)`${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
22169
21414
  } else if (props !== true) {
22170
21415
  gen.forIn("key", data, (key) => props === void 0 ? unevaluatedPropCode(key) : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
22171
21416
  }
22172
- it2.props = true;
21417
+ it.props = true;
22173
21418
  cxt.ok((0, codegen_1$2._)`${errsCount} === ${names_1.default.errors}`);
22174
21419
  function unevaluatedPropCode(key) {
22175
21420
  if (schema2 === false) {
@@ -22179,7 +21424,7 @@ const def$2 = {
22179
21424
  gen.break();
22180
21425
  return;
22181
21426
  }
22182
- if (!(0, util_1$2.alwaysValidSchema)(it2, schema2)) {
21427
+ if (!(0, util_1$2.alwaysValidSchema)(it, schema2)) {
22183
21428
  const valid = gen.name("valid");
22184
21429
  cxt.subschema({
22185
21430
  keyword: "unevaluatedProperties",
@@ -22218,24 +21463,24 @@ const def$1 = {
22218
21463
  schemaType: ["boolean", "object"],
22219
21464
  error: error$1,
22220
21465
  code(cxt) {
22221
- const { gen, schema: schema2, data, it: it2 } = cxt;
22222
- const items2 = it2.items || 0;
21466
+ const { gen, schema: schema2, data, it } = cxt;
21467
+ const items2 = it.items || 0;
22223
21468
  if (items2 === true)
22224
21469
  return;
22225
21470
  const len = gen.const("len", (0, codegen_1$1._)`${data}.length`);
22226
21471
  if (schema2 === false) {
22227
21472
  cxt.setParams({ len: items2 });
22228
21473
  cxt.fail((0, codegen_1$1._)`${len} > ${items2}`);
22229
- } else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(it2, schema2)) {
21474
+ } else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(it, schema2)) {
22230
21475
  const valid = gen.var("valid", (0, codegen_1$1._)`${len} <= ${items2}`);
22231
21476
  gen.if((0, codegen_1$1.not)(valid), () => validateItems(valid, items2));
22232
21477
  cxt.ok(valid);
22233
21478
  }
22234
- it2.items = true;
21479
+ it.items = true;
22235
21480
  function validateItems(valid, from) {
22236
21481
  gen.forRange("i", from, len, (i2) => {
22237
21482
  cxt.subschema({ keyword: "unevaluatedItems", dataProp: i2, dataPropType: util_1$1.Type.Num }, valid);
22238
- if (!it2.allErrors)
21483
+ if (!it.allErrors)
22239
21484
  gen.if((0, codegen_1$1.not)(valid), () => gen.break());
22240
21485
  });
22241
21486
  }
@@ -22272,9 +21517,9 @@ const def = {
22272
21517
  schemaType: "object",
22273
21518
  error,
22274
21519
  code(cxt) {
22275
- const { gen, data, schema: schema2, parentSchema, it: it2 } = cxt;
21520
+ const { gen, data, schema: schema2, parentSchema, it } = cxt;
22276
21521
  const { oneOf: oneOf2 } = parentSchema;
22277
- if (!it2.opts.discriminator) {
21522
+ if (!it.opts.discriminator) {
22278
21523
  throw new Error("discriminator: requires discriminator option");
22279
21524
  }
22280
21525
  const tagName = schema2.propertyName;
@@ -22312,8 +21557,8 @@ const def = {
22312
21557
  let tagRequired = true;
22313
21558
  for (let i2 = 0; i2 < oneOf2.length; i2++) {
22314
21559
  let sch = oneOf2[i2];
22315
- if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it2.self.RULES)) {
22316
- sch = compile_1.resolveRef.call(it2.self, it2.schemaEnv.root, it2.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
21560
+ if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
21561
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
22317
21562
  if (sch instanceof compile_1.SchemaEnv)
22318
21563
  sch = sch.schema;
22319
21564
  }
@@ -23821,7 +23066,7 @@ function handleComputedProperty(options) {
23821
23066
  var _a;
23822
23067
  return Object.assign({}, options, {
23823
23068
  _computed: {
23824
- version: "7.4.1",
23069
+ version: "7.5.1",
23825
23070
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
23826
23071
  }
23827
23072
  });
@@ -26969,7 +26214,7 @@ class RebillyInstrumentsInstance {
26969
26214
  await show({ componentName, payload });
26970
26215
  }
26971
26216
  get version() {
26972
- return `RebillyInstruments Ver.${"7.4.1"}`;
26217
+ return `RebillyInstruments Ver.${"7.5.1"}`;
26973
26218
  }
26974
26219
  on(eventName, callback) {
26975
26220
  on({ eventName, callback });