@rebilly/instruments 9.27.1 → 9.28.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
@@ -297,7 +297,7 @@ const readonlyHandlers = {
297
297
  }
298
298
  };
299
299
  const toShallow = (value) => value;
300
- const getProto = (v3) => Reflect.getPrototypeOf(v3);
300
+ const getProto = (v2) => Reflect.getPrototypeOf(v2);
301
301
  function get(target, key, isReadonly2 = false, isShallow2 = false) {
302
302
  target = target[
303
303
  "__v_raw"
@@ -3805,7 +3805,7 @@ const isHTMLForm = kindOfTest("HTMLFormElement");
3805
3805
  const toCamelCase = (str) => {
3806
3806
  return str.toLowerCase().replace(
3807
3807
  /[-_\s]([a-z\d])(\w*)/g,
3808
- function replacer(m, p1, p2) {
3808
+ function replacer(m2, p1, p2) {
3809
3809
  return p1.toUpperCase() + p2;
3810
3810
  }
3811
3811
  );
@@ -5963,7 +5963,7 @@ function Jt(e2, t2) {
5963
5963
  return s;
5964
5964
  }
5965
5965
  var Gt = P$1;
5966
- const Yt = /* @__PURE__ */ wt(Gt), Qt = "56.11.0";
5966
+ const Yt = /* @__PURE__ */ wt(Gt), Qt = "56.11.2";
5967
5967
  let Xt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Zt = (e2 = 21) => {
5968
5968
  let t2 = "", s = e2;
5969
5969
  for (; s--; )
@@ -6020,9 +6020,9 @@ class d {
6020
6020
  }
6021
6021
  }
6022
6022
  const w$1 = new d();
6023
- let v$1 = class v {
6024
- };
6025
- q$1(v$1, "cancelById", (t2, s) => {
6023
+ class v {
6024
+ }
6025
+ q$1(v, "cancelById", (t2, s) => {
6026
6026
  try {
6027
6027
  w$1.getById(t2).cancel(s), w$1.deleteById(t2);
6028
6028
  } catch {
@@ -6042,14 +6042,14 @@ q$1(v$1, "cancelById", (t2, s) => {
6042
6042
  * // cancel all active requests
6043
6043
  * cancellation.cancelAll();
6044
6044
  */
6045
- q$1(v$1, "cancelAll", (t2) => w$1.getAll().forEach((s) => {
6045
+ q$1(v, "cancelAll", (t2) => w$1.getAll().forEach((s) => {
6046
6046
  s.cancel(t2), w$1.deleteById(s.id);
6047
6047
  }));
6048
6048
  const cn = {
6049
6049
  /**
6050
6050
  * @type Cancellation.cancelAll
6051
6051
  */
6052
- cancelAll: (...e2) => v$1.cancelAll(...e2)
6052
+ cancelAll: (...e2) => v.cancelAll(...e2)
6053
6053
  }, b$1 = {
6054
6054
  request: "request",
6055
6055
  response: "response"
@@ -6097,21 +6097,21 @@ function C$1({ options: e2 }) {
6097
6097
  const i = l();
6098
6098
  e2.publishableKey = c, i.common.Authorization = `${c}`, t2.defaults.headers = i;
6099
6099
  }
6100
- function E({ host: c, port: i, auth: g }) {
6100
+ function E({ host: c, port: i, auth: g2 }) {
6101
6101
  t2.defaults.proxy = {
6102
6102
  host: c,
6103
6103
  port: i,
6104
- auth: g
6104
+ auth: g2
6105
6105
  };
6106
6106
  }
6107
- function I2({ live: c = null, sandbox: i = null }) {
6107
+ function I({ live: c = null, sandbox: i = null }) {
6108
6108
  c && (e2.apiEndpoints.live = c), i && (e2.apiEndpoints.sandbox = i), t2.defaults.baseURL = u();
6109
6109
  }
6110
- function M2(c, { thenDelegate: i, catchDelegate: g = () => {
6110
+ function M2(c, { thenDelegate: i, catchDelegate: g2 = () => {
6111
6111
  } }) {
6112
6112
  return J$1(c) && t2.interceptors[b$1[c]].use(
6113
6113
  i,
6114
- g
6114
+ g2
6115
6115
  );
6116
6116
  }
6117
6117
  function O2(c, i) {
@@ -6140,27 +6140,27 @@ function C$1({ options: e2 }) {
6140
6140
  function H2(c) {
6141
6141
  O2(b$1.response, c);
6142
6142
  }
6143
- function A2({ request: c, isCollection: i, config: g }) {
6144
- const m = K2(g), { id: h, cancelToken: ct } = w$1.save();
6145
- m.cancelToken = ct;
6143
+ function A2({ request: c, isCollection: i, config: g2 }) {
6144
+ const m2 = K2(g2), { id: h, cancelToken: ct } = w$1.save();
6145
+ m2.cancelToken = ct;
6146
6146
  const z2 = async function() {
6147
6147
  try {
6148
- const k2 = await c(m);
6148
+ const k2 = await c(m2);
6149
6149
  return tt({
6150
6150
  response: k2,
6151
6151
  isCollection: i,
6152
- config: m
6152
+ config: m2
6153
6153
  });
6154
6154
  } catch (k2) {
6155
- return F2({ error: k2, config: m });
6155
+ return F2({ error: k2, config: m2 });
6156
6156
  } finally {
6157
6157
  w$1.deleteById(h);
6158
6158
  }
6159
6159
  }();
6160
- return z2.cancel = (k2) => v$1.cancelById(h, k2), z2;
6160
+ return z2.cancel = (k2) => v.cancelById(h, k2), z2;
6161
6161
  }
6162
- function tt({ response: c, isCollection: i, config: g }) {
6163
- return i ? new at(c, g) : new G$1(c, g);
6162
+ function tt({ response: c, isCollection: i, config: g2 }) {
6163
+ return i ? new at(c, g2) : new G$1(c, g2);
6164
6164
  }
6165
6165
  function F2({ error: c }) {
6166
6166
  if (axios.isCancel(c))
@@ -6185,40 +6185,40 @@ function C$1({ options: e2 }) {
6185
6185
  function et(c) {
6186
6186
  return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
6187
6187
  (i) => c.params[i] !== null && c.params[i] !== ""
6188
- ).reduce((i, g) => (i[g] = c.params[g], i), {})), c;
6188
+ ).reduce((i, g2) => (i[g2] = c.params[g2], i), {})), c;
6189
6189
  }
6190
6190
  function K2(c = {}) {
6191
6191
  return { ...et(c) };
6192
6192
  }
6193
6193
  function B2(c, i = {}) {
6194
6194
  return A2({
6195
- request: (g) => t2.get(c, g),
6195
+ request: (g2) => t2.get(c, g2),
6196
6196
  config: { params: i }
6197
6197
  });
6198
6198
  }
6199
6199
  function st(c, i) {
6200
6200
  return A2({
6201
- request: (g) => t2.get(c, g),
6201
+ request: (g2) => t2.get(c, g2),
6202
6202
  config: { params: i },
6203
6203
  isCollection: true
6204
6204
  });
6205
6205
  }
6206
- function L2(c, i, g = {}) {
6207
- let m = {};
6208
- return g.authenticate === false && (m = { headers: l() }, delete m.headers.common["REB-APIKEY"], delete m.headers.common.Authorization), g.params && (m.params = { ...g.params }), A2({
6206
+ function L2(c, i, g2 = {}) {
6207
+ let m2 = {};
6208
+ return g2.authenticate === false && (m2 = { headers: l() }, delete m2.headers.common["REB-APIKEY"], delete m2.headers.common.Authorization), g2.params && (m2.params = { ...g2.params }), A2({
6209
6209
  request: (h) => t2.post(c, i, h),
6210
- config: m
6210
+ config: m2
6211
6211
  });
6212
6212
  }
6213
- function N2(c, i, g = {}) {
6213
+ function N2(c, i, g2 = {}) {
6214
6214
  return A2({
6215
- request: (m) => t2.put(c, i, m),
6216
- config: { params: g }
6215
+ request: (m2) => t2.put(c, i, m2),
6216
+ config: { params: g2 }
6217
6217
  });
6218
6218
  }
6219
6219
  function nt(c, i) {
6220
6220
  return A2({
6221
- request: (g) => t2.patch(c, i, g),
6221
+ request: (g2) => t2.patch(c, i, g2),
6222
6222
  config: {}
6223
6223
  });
6224
6224
  }
@@ -6230,13 +6230,13 @@ function C$1({ options: e2 }) {
6230
6230
  }
6231
6231
  function ut(c, i) {
6232
6232
  return A2({
6233
- request: (g) => t2.delete(c, g),
6233
+ request: (g2) => t2.delete(c, g2),
6234
6234
  config: { data: { ...i } }
6235
6235
  });
6236
6236
  }
6237
- async function ot(c, i, g, m = {}) {
6237
+ async function ot(c, i, g2, m2 = {}) {
6238
6238
  if (i === "")
6239
- return L2(c, g, { params: m });
6239
+ return L2(c, g2, { params: m2 });
6240
6240
  try {
6241
6241
  if ((await B2(c)).response.status === 200)
6242
6242
  throw new $$1.RebillyConflictError({
@@ -6244,17 +6244,17 @@ function C$1({ options: e2 }) {
6244
6244
  });
6245
6245
  } catch (h) {
6246
6246
  if (h.name === "RebillyNotFoundError")
6247
- return N2(c, g, m);
6247
+ return N2(c, g2, m2);
6248
6248
  throw h;
6249
6249
  }
6250
6250
  }
6251
6251
  async function lt(c, i) {
6252
- const g = K2(i);
6252
+ const g2 = K2(i);
6253
6253
  try {
6254
- const m = await t2.get(c, g);
6255
- return new mt(m, g);
6256
- } catch (m) {
6257
- return F2({ error: m, config: g });
6254
+ const m2 = await t2.get(c, g2);
6255
+ return new mt(m2, g2);
6256
+ } catch (m2) {
6257
+ return F2({ error: m2, config: g2 });
6258
6258
  }
6259
6259
  }
6260
6260
  return {
@@ -6267,7 +6267,7 @@ function C$1({ options: e2 }) {
6267
6267
  setProxyAgent: E,
6268
6268
  setSessionToken: f,
6269
6269
  setPublishableKey: y2,
6270
- setEndpoints: I2,
6270
+ setEndpoints: I,
6271
6271
  get: B2,
6272
6272
  getAll: st,
6273
6273
  post: L2,
@@ -9837,7 +9837,7 @@ function Ts({ apiHandler: e2 }) {
9837
9837
  sort: y2 = null,
9838
9838
  criteria: E = null
9839
9839
  }) {
9840
- const I2 = {
9840
+ const I = {
9841
9841
  aggregationField: t2,
9842
9842
  aggregationPeriod: s,
9843
9843
  includeRefunds: n2,
@@ -9850,7 +9850,7 @@ function Ts({ apiHandler: e2 }) {
9850
9850
  sort: y2,
9851
9851
  criteria: E
9852
9852
  };
9853
- return e2.get("reports/retention-value", I2);
9853
+ return e2.get("reports/retention-value", I);
9854
9854
  },
9855
9855
  /**
9856
9856
  * @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
@@ -10916,7 +10916,7 @@ function Re(r2, e2) {
10916
10916
  }(r2, e2) ? r2[e2] : void 0;
10917
10917
  }
10918
10918
  var b = { default: "endpoint" }, j = { default: "tlsEndpoint" };
10919
- function I(r2) {
10919
+ function m(r2) {
10920
10920
  for (var e2 = "", t2 = 0; t2 < r2.length; ++t2)
10921
10921
  if (t2 > 0) {
10922
10922
  var n2 = r2[t2].toLowerCase();
@@ -10925,7 +10925,7 @@ function I(r2) {
10925
10925
  e2 += r2[t2].toUpperCase();
10926
10926
  return e2;
10927
10927
  }
10928
- var F = "Client timeout", M = "Network connection error", x = "Network request aborted", B = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", V = /* @__PURE__ */ I("WrongRegion"), q = /* @__PURE__ */ I("SubscriptionNotActive"), G2 = /* @__PURE__ */ I("UnsupportedVersion"), $ = /* @__PURE__ */ I("InstallationMethodRestricted"), H = /* @__PURE__ */ I("HostnameRestricted"), W = /* @__PURE__ */ I("IntegrationFailed"), P = "API key required", D = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", Q = "Too many requests, rate limit exceeded", z = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = D, ne = C, fe = "3.9.0", S = "Failed to load the JS script of the agent", L = "9319";
10928
+ var F = "Client timeout", M = "Network connection error", x = "Network request aborted", B = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", V = /* @__PURE__ */ m("WrongRegion"), q = /* @__PURE__ */ m("SubscriptionNotActive"), G2 = /* @__PURE__ */ m("UnsupportedVersion"), $ = /* @__PURE__ */ m("InstallationMethodRestricted"), H = /* @__PURE__ */ m("HostnameRestricted"), W = /* @__PURE__ */ m("IntegrationFailed"), P = "API key required", D = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", Q = "Too many requests, rate limit exceeded", z = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = D, ne = C, fe = "3.9.2", S = "Failed to load the JS script of the agent", L = "9319";
10929
10929
  function Ee(r2, e2) {
10930
10930
  var t2, n2, o2, i, a, l, u = [], h = (t2 = function(R2) {
10931
10931
  var d2 = he([], R2, true);
@@ -10946,12 +10946,12 @@ function Ee(r2, e2) {
10946
10946
  else if (p2 === L)
10947
10947
  t2.exclude();
10948
10948
  else if (p2 === S) {
10949
- var _ = Date.now() - R2.getTime() < 50, g = t2.current();
10950
- g && _ && !o2.has(g) && (o2.add(g), f = 0), t2.postpone();
10949
+ var _ = Date.now() - R2.getTime() < 50, v2 = t2.current();
10950
+ v2 && _ && !o2.has(v2) && (o2.add(v2), f = 0), t2.postpone();
10951
10951
  } else
10952
10952
  t2.postpone();
10953
- var m = t2.current();
10954
- return m === void 0 ? void 0 : [m, f ?? R2.getTime() + n2() - Date.now()];
10953
+ var I = t2.current();
10954
+ return I === void 0 ? void 0 : [I, f ?? R2.getTime() + n2() - Date.now()];
10955
10955
  }]), c = h[0], s = h[1];
10956
10956
  if (c === void 0)
10957
10957
  return Promise.reject(new TypeError("The list of script URL patterns is empty"));
@@ -10964,12 +10964,12 @@ function Ee(r2, e2) {
10964
10964
  }, f), p2.catch(function(_) {
10965
10965
  if (u.length >= 5)
10966
10966
  throw _;
10967
- var g = s(d2, _);
10968
- if (!g)
10967
+ var v2 = s(d2, _);
10968
+ if (!v2)
10969
10969
  throw _;
10970
- var m, se2 = g[0], le2 = g[1];
10971
- return (m = le2, new Promise(function(ue2) {
10972
- return setTimeout(ue2, m);
10970
+ var I, se2 = v2[0], le2 = v2[1];
10971
+ return (I = le2, new Promise(function(ue2) {
10972
+ return setTimeout(ue2, I);
10973
10973
  })).then(function() {
10974
10974
  return E(se2);
10975
10975
  });
@@ -11076,7 +11076,7 @@ function _e() {
11076
11076
  return t2;
11077
11077
  }
11078
11078
  var Oe = { load: oe, defaultScriptUrlPattern: K, ERROR_SCRIPT_LOAD_FAIL: S, ERROR_API_KEY_EXPIRED: C, ERROR_API_KEY_INVALID: D, ERROR_API_KEY_MISSING: P, ERROR_BAD_REQUEST_FORMAT: J, ERROR_BAD_RESPONSE_FORMAT: B, ERROR_CLIENT_TIMEOUT: F, ERROR_CSP_BLOCK: T, ERROR_FORBIDDEN_ENDPOINT: H, ERROR_FORBIDDEN_HEADER: Z, ERROR_FORBIDDEN_ORIGIN: z, ERROR_GENERAL_SERVER_FAILURE: Y, ERROR_INSTALLATION_METHOD_RESTRICTED: $, ERROR_INTEGRATION_FAILURE: W, ERROR_INVALID_ENDPOINT: A, ERROR_NETWORK_ABORT: x, ERROR_NETWORK_CONNECTION: M, ERROR_RATE_LIMIT: Q, ERROR_SERVER_TIMEOUT: X, ERROR_SUBSCRIPTION_NOT_ACTIVE: q, ERROR_TOKEN_EXPIRED: ne, ERROR_TOKEN_INVALID: te, ERROR_TOKEN_MISSING: ee, ERROR_UNSUPPORTED_VERSION: G2, ERROR_WRONG_REGION: V, defaultEndpoint: b, defaultTlsEndpoint: j };
11079
- const ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11079
+ const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11080
11080
  __proto__: null,
11081
11081
  ERROR_API_KEY_EXPIRED: C,
11082
11082
  ERROR_API_KEY_INVALID: D,
@@ -11108,8 +11108,8 @@ const ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11108
11108
  defaultScriptUrlPattern: K,
11109
11109
  defaultTlsEndpoint: j,
11110
11110
  load: oe
11111
- }, Symbol.toStringTag, { value: "Module" })), ie = "@fpjs@client@", ge = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11112
- class Ie {
11111
+ }, Symbol.toStringTag, { value: "Module" })), ie = "@fpjs@client@", ve = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11112
+ class me {
11113
11113
  constructor(e2) {
11114
11114
  var t2;
11115
11115
  this.tag = e2.tag || null, this.linkedId = e2.linkedId || null, this.extendedResult = (t2 = e2.extendedResult) !== null && t2 !== void 0 ? t2 : false;
@@ -11128,7 +11128,7 @@ function y(r2, e2) {
11128
11128
  function ce(r2, e2) {
11129
11129
  return r2.replace(`${e2}__`, "");
11130
11130
  }
11131
- class me {
11131
+ class Ie {
11132
11132
  constructor(e2 = ie) {
11133
11133
  this.prefix = e2;
11134
11134
  }
@@ -11278,26 +11278,26 @@ class Te {
11278
11278
  return [];
11279
11279
  }
11280
11280
  }
11281
- var v2;
11281
+ var g;
11282
11282
  (function(r2) {
11283
11283
  r2.Memory = "memory", r2.LocalStorage = "localstorage", r2.SessionStorage = "sessionstorage", r2.NoCache = "nocache";
11284
- })(v2 || (v2 = {}));
11285
- var Ae = "1.3.0";
11284
+ })(g || (g = {}));
11285
+ var Ae = "1.3.1";
11286
11286
  const Pe = {
11287
- [v2.Memory]: () => new Ne().enclosedCache,
11288
- [v2.LocalStorage]: (r2) => new me(r2),
11289
- [v2.SessionStorage]: (r2) => new we(r2),
11290
- [v2.NoCache]: () => new Te()
11287
+ [g.Memory]: () => new Ne().enclosedCache,
11288
+ [g.LocalStorage]: (r2) => new Ie(r2),
11289
+ [g.SessionStorage]: (r2) => new we(r2),
11290
+ [g.NoCache]: () => new Te()
11291
11291
  }, be = (r2) => {
11292
11292
  switch (r2) {
11293
- case v2.SessionStorage:
11293
+ case g.SessionStorage:
11294
11294
  try {
11295
11295
  window.sessionStorage.getItem("item");
11296
11296
  } catch {
11297
11297
  return false;
11298
11298
  }
11299
11299
  return true;
11300
- case v2.LocalStorage:
11300
+ case g.LocalStorage:
11301
11301
  try {
11302
11302
  window.localStorage.getItem("item");
11303
11303
  } catch {
@@ -11320,11 +11320,11 @@ class w {
11320
11320
  if (e2 != null && e2.cache)
11321
11321
  n2 = e2.cache;
11322
11322
  else {
11323
- if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || v2.SessionStorage, !k(this.cacheLocation))
11323
+ if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || g.SessionStorage, !k(this.cacheLocation))
11324
11324
  throw new Error(`Invalid cache location "${this.cacheLocation}"`);
11325
- be(this.cacheLocation) || (this.cacheLocation = v2.Memory), n2 = k(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11325
+ be(this.cacheLocation) || (this.cacheLocation = g.Memory), n2 = k(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11326
11326
  }
11327
- if (e2 != null && e2.cacheTimeInSeconds && e2.cacheTimeInSeconds > ge)
11327
+ if (e2 != null && e2.cacheTimeInSeconds && e2.cacheTimeInSeconds > ve)
11328
11328
  throw new Error("Cache time cannot exceed 86400 seconds (24 hours)");
11329
11329
  const o2 = (t2 = e2 == null ? void 0 : e2.cacheTimeInSeconds) !== null && t2 !== void 0 ? t2 : ae;
11330
11330
  this.cacheManager = new Se(n2, o2);
@@ -11336,8 +11336,8 @@ class w {
11336
11336
  * @param passedLoadOptions Additional load options to be passed to the agent, they will be merged with load options provided in the constructor.
11337
11337
  */
11338
11338
  init(e2) {
11339
- var t2, n2;
11340
11339
  return O(this, void 0, void 0, function* () {
11340
+ var t2, n2;
11341
11341
  if (!this.loadOptions && !e2)
11342
11342
  throw new TypeError("No load options provided");
11343
11343
  const o2 = Object.assign(Object.assign(Object.assign({}, this.loadOptions), e2), { integrationInfo: [
@@ -11346,7 +11346,7 @@ class w {
11346
11346
  `fingerprintjs-pro-spa/${Ae}`
11347
11347
  ] });
11348
11348
  if (!this.agentPromise) {
11349
- const i = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ve;
11349
+ const i = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ge;
11350
11350
  this.agentPromise = i.load(o2).then((a) => (this.agent = a, a)).catch((a) => {
11351
11351
  throw this.agentPromise = null, a;
11352
11352
  });
@@ -11361,8 +11361,8 @@ class w {
11361
11361
  * @param options
11362
11362
  * @param ignoreCache if set to true a request to the API will be made even if the data is present in cache
11363
11363
  */
11364
- getVisitorData(e2 = {}, t2 = false) {
11365
- return O(this, void 0, void 0, function* () {
11364
+ getVisitorData() {
11365
+ return O(this, arguments, void 0, function* (e2 = {}, t2 = false) {
11366
11366
  const o2 = w.makeCacheKey(e2).toKey();
11367
11367
  if (!this.inFlightRequests.has(o2)) {
11368
11368
  const i = this._identify(e2, t2).finally(() => {
@@ -11376,8 +11376,8 @@ class w {
11376
11376
  /**
11377
11377
  * Returns cached visitor data based on the request options, or undefined if the data is not present in cache
11378
11378
  * */
11379
- getVisitorDataFromCache(e2 = {}) {
11380
- return O(this, void 0, void 0, function* () {
11379
+ getVisitorDataFromCache() {
11380
+ return O(this, arguments, void 0, function* (e2 = {}) {
11381
11381
  const t2 = w.makeCacheKey(e2), n2 = yield this.cacheManager.get(t2);
11382
11382
  return n2 ? Object.assign(Object.assign({}, n2), { cacheHit: true }) : void 0;
11383
11383
  });
@@ -11385,8 +11385,8 @@ class w {
11385
11385
  /**
11386
11386
  * Checks if request matching given options is present in cache
11387
11387
  * */
11388
- isInCache(e2 = {}) {
11389
- return O(this, void 0, void 0, function* () {
11388
+ isInCache() {
11389
+ return O(this, arguments, void 0, function* (e2 = {}) {
11390
11390
  return !!(yield this.getVisitorDataFromCache(e2));
11391
11391
  });
11392
11392
  }
@@ -11402,18 +11402,18 @@ class w {
11402
11402
  * Makes a CacheKey object from GetOptions
11403
11403
  */
11404
11404
  static makeCacheKey(e2) {
11405
- return new Ie(e2);
11406
- }
11407
- _identify(e2, t2 = false) {
11408
- return O(this, void 0, void 0, function* () {
11409
- const n2 = w.makeCacheKey(e2);
11410
- if (!t2) {
11411
- const i = yield this.cacheManager.get(n2);
11412
- if (i)
11413
- return Object.assign(Object.assign({}, i), { cacheHit: true });
11414
- }
11415
- const o2 = yield this.agent.get(e2);
11416
- return yield this.cacheManager.set(n2, o2), Object.assign(Object.assign({}, o2), { cacheHit: false });
11405
+ return new me(e2);
11406
+ }
11407
+ _identify(e2) {
11408
+ return O(this, arguments, void 0, function* (t2, n2 = false) {
11409
+ const o2 = w.makeCacheKey(t2);
11410
+ if (!n2) {
11411
+ const a = yield this.cacheManager.get(o2);
11412
+ if (a)
11413
+ return Object.assign(Object.assign({}, a), { cacheHit: true });
11414
+ }
11415
+ const i = yield this.agent.get(t2);
11416
+ return yield this.cacheManager.set(o2, i), Object.assign(Object.assign({}, i), { cacheHit: false });
11417
11417
  });
11418
11418
  }
11419
11419
  }
@@ -15288,8 +15288,8 @@ class AddressModel {
15288
15288
  this.region = region;
15289
15289
  this.country = country;
15290
15290
  this.postalCode = postalCode;
15291
- this.email = ((_a = emails.find((v3) => v3.primary)) == null ? void 0 : _a.value) || null;
15292
- this.phoneNumber = ((_b = phoneNumbers.find((v3) => v3.primary)) == null ? void 0 : _b.value) || null;
15291
+ this.email = ((_a = emails.find((v2) => v2.primary)) == null ? void 0 : _a.value) || null;
15292
+ this.phoneNumber = ((_b = phoneNumbers.find((v2) => v2.primary)) == null ? void 0 : _b.value) || null;
15293
15293
  }
15294
15294
  }
15295
15295
  class AccountModel extends BaseModel {
@@ -19763,15 +19763,15 @@ var uri_all = { exports: {} };
19763
19763
  output.push(delimiter);
19764
19764
  }
19765
19765
  while (handledCPCount < inputLength) {
19766
- var m = maxInt;
19766
+ var m2 = maxInt;
19767
19767
  var _iteratorNormalCompletion2 = true;
19768
19768
  var _didIteratorError2 = false;
19769
19769
  var _iteratorError2 = void 0;
19770
19770
  try {
19771
19771
  for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
19772
19772
  var currentValue = _step2.value;
19773
- if (currentValue >= n2 && currentValue < m) {
19774
- m = currentValue;
19773
+ if (currentValue >= n2 && currentValue < m2) {
19774
+ m2 = currentValue;
19775
19775
  }
19776
19776
  }
19777
19777
  } catch (err) {
@@ -19789,11 +19789,11 @@ var uri_all = { exports: {} };
19789
19789
  }
19790
19790
  }
19791
19791
  var handledCPCountPlusOne = handledCPCount + 1;
19792
- if (m - n2 > floor((maxInt - delta) / handledCPCountPlusOne)) {
19792
+ if (m2 - n2 > floor((maxInt - delta) / handledCPCountPlusOne)) {
19793
19793
  error$12("overflow");
19794
19794
  }
19795
- delta += (m - n2) * handledCPCountPlusOne;
19796
- n2 = m;
19795
+ delta += (m2 - n2) * handledCPCountPlusOne;
19796
+ n2 = m2;
19797
19797
  var _iteratorNormalCompletion3 = true;
19798
19798
  var _didIteratorError3 = false;
19799
19799
  var _iteratorError3 = void 0;
@@ -20660,17 +20660,17 @@ uri$1.default = uri;
20660
20660
  return this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : void 0;
20661
20661
  }
20662
20662
  validate(schemaKeyRef, data) {
20663
- let v3;
20663
+ let v2;
20664
20664
  if (typeof schemaKeyRef == "string") {
20665
- v3 = this.getSchema(schemaKeyRef);
20666
- if (!v3)
20665
+ v2 = this.getSchema(schemaKeyRef);
20666
+ if (!v2)
20667
20667
  throw new Error(`no schema with key or ref "${schemaKeyRef}"`);
20668
20668
  } else {
20669
- v3 = this.compile(schemaKeyRef);
20669
+ v2 = this.compile(schemaKeyRef);
20670
20670
  }
20671
- const valid = v3(data);
20672
- if (!("$async" in v3))
20673
- this.errors = v3.errors;
20671
+ const valid = v2(data);
20672
+ if (!("$async" in v2))
20673
+ this.errors = v2.errors;
20674
20674
  return valid;
20675
20675
  }
20676
20676
  compile(schema2, _meta) {
@@ -21155,8 +21155,8 @@ const def$A = {
21155
21155
  return callRef(cxt, (0, codegen_1$p._)`${rootName}.validate`, root2, root2.$async);
21156
21156
  }
21157
21157
  function callValidate(sch) {
21158
- const v3 = getValidate(cxt, sch);
21159
- callRef(cxt, v3, sch, sch.$async);
21158
+ const v2 = getValidate(cxt, sch);
21159
+ callRef(cxt, v2, sch, sch.$async);
21160
21160
  }
21161
21161
  function inlineRefSchema(sch) {
21162
21162
  const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1$p.stringify)(sch) } : { ref: sch });
@@ -21178,7 +21178,7 @@ function getValidate(cxt, sch) {
21178
21178
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1$p._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
21179
21179
  }
21180
21180
  ref.getValidate = getValidate;
21181
- function callRef(cxt, v3, sch, $async) {
21181
+ function callRef(cxt, v2, sch, $async) {
21182
21182
  const { gen, it: it2 } = cxt;
21183
21183
  const { allErrors, schemaEnv: env, opts } = it2;
21184
21184
  const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
@@ -21191,8 +21191,8 @@ function callRef(cxt, v3, sch, $async) {
21191
21191
  throw new Error("async schema referenced by sync schema");
21192
21192
  const valid = gen.let("valid");
21193
21193
  gen.try(() => {
21194
- gen.code((0, codegen_1$p._)`await ${(0, code_1$8.callValidateCode)(cxt, v3, passCxt)}`);
21195
- addEvaluatedFrom(v3);
21194
+ gen.code((0, codegen_1$p._)`await ${(0, code_1$8.callValidateCode)(cxt, v2, passCxt)}`);
21195
+ addEvaluatedFrom(v2);
21196
21196
  if (!allErrors)
21197
21197
  gen.assign(valid, true);
21198
21198
  }, (e2) => {
@@ -21204,7 +21204,7 @@ function callRef(cxt, v3, sch, $async) {
21204
21204
  cxt.ok(valid);
21205
21205
  }
21206
21206
  function callSyncRef() {
21207
- cxt.result((0, code_1$8.callValidateCode)(cxt, v3, passCxt), () => addEvaluatedFrom(v3), () => addErrorsFrom(v3));
21207
+ cxt.result((0, code_1$8.callValidateCode)(cxt, v2, passCxt), () => addEvaluatedFrom(v2), () => addErrorsFrom(v2));
21208
21208
  }
21209
21209
  function addErrorsFrom(source) {
21210
21210
  const errs = (0, codegen_1$p._)`${source}.errors`;
@@ -21616,7 +21616,7 @@ const def$q = {
21616
21616
  cxt.pass(valid);
21617
21617
  function loopEnum() {
21618
21618
  gen.assign(valid, false);
21619
- gen.forOf("v", schemaCode, (v3) => gen.if((0, codegen_1$f._)`${getEql()}(${data}, ${v3})`, () => gen.assign(valid, true).break()));
21619
+ gen.forOf("v", schemaCode, (v2) => gen.if((0, codegen_1$f._)`${getEql()}(${data}, ${v2})`, () => gen.assign(valid, true).break()));
21620
21620
  }
21621
21621
  function equalCode(vSchema, i) {
21622
21622
  const sch = schema2[i];
@@ -22592,9 +22592,9 @@ const def$9 = {
22592
22592
  function dynamicAnchor(cxt, anchor) {
22593
22593
  const { gen, it: it2 } = cxt;
22594
22594
  it2.schemaEnv.root.dynamicAnchors[anchor] = true;
22595
- const v3 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
22595
+ const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
22596
22596
  const validate2 = it2.errSchemaPath === "#" ? it2.validateName : _getValidate(cxt);
22597
- gen.if((0, codegen_1$4._)`!${v3}`, () => gen.assign(v3, validate2));
22597
+ gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
22598
22598
  }
22599
22599
  dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
22600
22600
  function _getValidate(cxt) {
@@ -22631,8 +22631,8 @@ function dynamicRef(cxt, ref2) {
22631
22631
  }
22632
22632
  function _dynamicRef(valid) {
22633
22633
  if (it2.schemaEnv.root.dynamicAnchors[anchor]) {
22634
- const v3 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
22635
- gen.if(v3, _callRef(v3, valid), _callRef(it2.validateName, valid));
22634
+ const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
22635
+ gen.if(v2, _callRef(v2, valid), _callRef(it2.validateName, valid));
22636
22636
  } else {
22637
22637
  _callRef(it2.validateName, valid)();
22638
22638
  }
@@ -23449,7 +23449,7 @@ jsonSchema201909.default = addMetaSchema2019;
23449
23449
  _addVocabularies() {
23450
23450
  super._addVocabularies();
23451
23451
  this.addVocabulary(dynamic_1.default);
23452
- draft7_1.default.forEach((v3) => this.addVocabulary(v3));
23452
+ draft7_1.default.forEach((v2) => this.addVocabulary(v2));
23453
23453
  this.addVocabulary(next_1.default);
23454
23454
  this.addVocabulary(unevaluated_1.default);
23455
23455
  if (this.opts.discriminator)
@@ -24485,7 +24485,7 @@ function handleComputedProperty(options) {
24485
24485
  var _a;
24486
24486
  return Object.assign({}, options, {
24487
24487
  _computed: {
24488
- version: "9.27.0",
24488
+ version: "9.27.2",
24489
24489
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
24490
24490
  }
24491
24491
  });
@@ -24856,8 +24856,8 @@ function parseAlpha$1(alpha) {
24856
24856
  return clamp$3(a, 0, 1);
24857
24857
  }
24858
24858
  function getHEX$1(hex) {
24859
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
24860
- return getRGB$1([null, ...[r2, g, b2, a]]);
24859
+ const [r2, g2, b2, a] = hex2Rgb(hex, { format: "array" });
24860
+ return getRGB$1([null, ...[r2, g2, b2, a]]);
24861
24861
  }
24862
24862
  function getHSL$1([, h, s, l, a = 1]) {
24863
24863
  let hh = h;
@@ -24874,10 +24874,10 @@ function getHSL$1([, h, s, l, a = 1]) {
24874
24874
  alpha: parseAlpha$1(a === null ? 1 : a)
24875
24875
  };
24876
24876
  }
24877
- function getRGB$1([, r2, g, b2, a = 1]) {
24877
+ function getRGB$1([, r2, g2, b2, a = 1]) {
24878
24878
  return {
24879
24879
  type: "rgb",
24880
- values: [r2, g, b2].map(parseRGB$1),
24880
+ values: [r2, g2, b2].map(parseRGB$1),
24881
24881
  alpha: parseAlpha$1(a === null ? 1 : a)
24882
24882
  };
24883
24883
  }
@@ -24953,15 +24953,15 @@ function rgb2hex(rgb) {
24953
24953
  var rgb2hex_1 = rgb2hex;
24954
24954
  const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
24955
24955
  function rgb2hsl(rgb) {
24956
- var r2 = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g, b2), max = Math.max(r2, g, b2), delta = max - min, h, s, l;
24956
+ var r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g2, b2), max = Math.max(r2, g2, b2), delta = max - min, h, s, l;
24957
24957
  if (max == min)
24958
24958
  h = 0;
24959
24959
  else if (r2 == max)
24960
- h = (g - b2) / delta;
24961
- else if (g == max)
24960
+ h = (g2 - b2) / delta;
24961
+ else if (g2 == max)
24962
24962
  h = 2 + (b2 - r2) / delta;
24963
24963
  else if (b2 == max)
24964
- h = 4 + (r2 - g) / delta;
24964
+ h = 4 + (r2 - g2) / delta;
24965
24965
  h = Math.min(h * 60, 360);
24966
24966
  if (h < 0)
24967
24967
  h += 360;
@@ -25000,13 +25000,13 @@ function mix(color1, color2, percentage2 = 50) {
25000
25000
  const a = c1.alpha - c2.alpha;
25001
25001
  const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
25002
25002
  const w22 = 1 - w1;
25003
- const [r2, g, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
25003
+ const [r2, g2, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
25004
25004
  const alpha = parseFloat((c1.alpha * p2 + c2.alpha * (1 - p2)).toFixed(8));
25005
25005
  return {
25006
- hex: rgb2hex$1([r2, g, b2]),
25007
- hexa: rgb2hex$1([r2, g, b2, alpha]),
25008
- rgba: [r2, g, b2, alpha],
25009
- hsla: [...rgb2hsl$1([r2, g, b2]).map(Math.round), alpha]
25006
+ hex: rgb2hex$1([r2, g2, b2]),
25007
+ hexa: rgb2hex$1([r2, g2, b2, alpha]),
25008
+ rgba: [r2, g2, b2, alpha],
25009
+ hsla: [...rgb2hsl$1([r2, g2, b2]).map(Math.round), alpha]
25010
25010
  };
25011
25011
  }
25012
25012
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -25092,8 +25092,8 @@ function parseAlpha(alpha) {
25092
25092
  return clamp(a, 0, 1);
25093
25093
  }
25094
25094
  function getHEX(hex) {
25095
- const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
25096
- return getRGB([null, ...[r2, g, b2, a]]);
25095
+ const [r2, g2, b2, a] = hex2Rgb(hex, { format: "array" });
25096
+ return getRGB([null, ...[r2, g2, b2, a]]);
25097
25097
  }
25098
25098
  function getHSL([, h, s, l, a = 1]) {
25099
25099
  let hh = h;
@@ -25110,10 +25110,10 @@ function getHSL([, h, s, l, a = 1]) {
25110
25110
  alpha: parseAlpha(a === null ? 1 : a)
25111
25111
  };
25112
25112
  }
25113
- function getRGB([, r2, g, b2, a = 1]) {
25113
+ function getRGB([, r2, g2, b2, a = 1]) {
25114
25114
  return {
25115
25115
  type: "rgb",
25116
- values: [r2, g, b2].map(parseRGB),
25116
+ values: [r2, g2, b2].map(parseRGB),
25117
25117
  alpha: parseAlpha(a === null ? 1 : a)
25118
25118
  };
25119
25119
  }
@@ -25148,7 +25148,7 @@ const parseCSSColor = (str) => {
25148
25148
  * @link http://noeldelgado.github.io/values.js/
25149
25149
  * @license MIT
25150
25150
  */
25151
- const defaultNumberParam = (v3, d2) => v3 === null || isNaN(v3) || typeof v3 === "string" ? d2 : v3;
25151
+ const defaultNumberParam = (v2, d2) => v2 === null || isNaN(v2) || typeof v2 === "string" ? d2 : v2;
25152
25152
  class Values {
25153
25153
  constructor(color = "#000", type2 = "base", weight = 0) {
25154
25154
  [this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type2, weight];
@@ -25194,8 +25194,8 @@ class Values {
25194
25194
  getBrightness() {
25195
25195
  return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
25196
25196
  }
25197
- _setFromRGB([r2, g, b2, a]) {
25198
- [this.rgb, this.alpha] = [[r2, g, b2], a];
25197
+ _setFromRGB([r2, g2, b2, a]) {
25198
+ [this.rgb, this.alpha] = [[r2, g2, b2], a];
25199
25199
  return this;
25200
25200
  }
25201
25201
  _setFromHSL([h, s, l, a]) {
@@ -26317,7 +26317,7 @@ const _Theme = class _Theme {
26317
26317
  });
26318
26318
  }
26319
26319
  get cssVars() {
26320
- return Object.keys(this.theme).filter((v3) => !_Theme.nonCssProperties.includes(v3)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
26320
+ return Object.keys(this.theme).filter((v2) => !_Theme.nonCssProperties.includes(v2)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
26321
26321
  }
26322
26322
  build() {
26323
26323
  this.overrideTheme();
@@ -27827,7 +27827,7 @@ class RebillyInstrumentsInstance {
27827
27827
  await show({ componentName, payload });
27828
27828
  }
27829
27829
  get version() {
27830
- return `RebillyInstruments Ver.${"9.27.0"}`;
27830
+ return `RebillyInstruments Ver.${"9.27.2"}`;
27831
27831
  }
27832
27832
  on(eventName, callback) {
27833
27833
  on({ eventName, callback });