@prosopo/procaptcha-bundle 0.3.5 → 0.3.37

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.
@@ -2929,7 +2929,7 @@ var L;
2929
2929
  })(L || (L = {}));
2930
2930
  const Bh = (e, t = {
2931
2931
  message: `Input not instance of ${e.name}`
2932
- }) => pd((n) => n instanceof e, t), I = at.create, K = en.create, Hh = So.create, Qh = tn.create, Jo = Zr.create, Kh = Sn.create, Gh = go.create, pl = Wr.create, qh = br.create, Yh = tr.create, Xh = gn.create, Jh = It.create, em = wo.create, At = st.create, Q = oe.create, tm = oe.strictCreate, Xr = Br.create, nm = Xo.create, rm = Hr.create, im = xt.create, _s = Qr.create, om = _o.create, am = xn.create, lm = Qn.create, sm = Kr.create, hn = Gr.create, Ei = nn.create, ks = qr.create, um = nr.create, Nu = dt.create, cm = Ot.create, dm = En.create, fm = dt.createWithPreprocess, pm = xi.create, hm = () => I().optional(), mm = () => K().optional(), vm = () => Jo().optional(), ym = {
2932
+ }) => pd((n) => n instanceof e, t), I = at.create, Q = en.create, Hh = So.create, Qh = tn.create, Jo = Zr.create, Kh = Sn.create, Gh = go.create, pl = Wr.create, qh = br.create, Yh = tr.create, Xh = gn.create, Jh = It.create, em = wo.create, At = st.create, K = oe.create, tm = oe.strictCreate, Xr = Br.create, nm = Xo.create, rm = Hr.create, im = xt.create, _s = Qr.create, om = _o.create, am = xn.create, lm = Qn.create, sm = Kr.create, hn = Gr.create, Ei = nn.create, ks = qr.create, um = nr.create, Nu = dt.create, cm = Ot.create, dm = En.create, fm = dt.createWithPreprocess, pm = xi.create, hm = () => I().optional(), mm = () => Q().optional(), vm = () => Jo().optional(), ym = {
2933
2933
  string: (e) => at.create({ ...e, coerce: !0 }),
2934
2934
  number: (e) => en.create({ ...e, coerce: !0 }),
2935
2935
  boolean: (e) => Zr.create({
@@ -3029,8 +3029,8 @@ var _0 = /* @__PURE__ */ Object.freeze({
3029
3029
  never: Jh,
3030
3030
  null: qh,
3031
3031
  nullable: dm,
3032
- number: K,
3033
- object: Q,
3032
+ number: Q,
3033
+ object: K,
3034
3034
  oboolean: vm,
3035
3035
  onumber: mm,
3036
3036
  optional: cm,
@@ -3062,14 +3062,14 @@ const wm = (e, t) => {
3062
3062
  hn("ed25519"),
3063
3063
  hn("ecdsa"),
3064
3064
  hn("ethereum")
3065
- ]), _m = Q({
3065
+ ]), _m = K({
3066
3066
  endpoint: I().url(),
3067
- contract: Q({
3067
+ contract: K({
3068
3068
  address: I(),
3069
3069
  name: I()
3070
3070
  }),
3071
3071
  pairType: hd,
3072
- ss58Format: K().positive().default(42)
3072
+ ss58Format: Q().positive().default(42)
3073
3073
  }), km = wm(wn, _m.required({
3074
3074
  endpoint: !0,
3075
3075
  pairType: !0,
@@ -3104,68 +3104,68 @@ const wm = (e, t) => {
3104
3104
  }
3105
3105
  }), Ou = Ei(["trace", "debug", "info", "warn", "error", "fatal", "log"]);
3106
3106
  Ei(["mongo", "mongoMemory"]);
3107
- const Eo = Ei(["development", "staging", "production"]), xm = _s(Eo, Q({
3107
+ const Eo = Ei(["development", "staging", "production"]), xm = _s(Eo, K({
3108
3108
  type: I(),
3109
3109
  endpoint: I(),
3110
3110
  dbname: I(),
3111
3111
  authSource: I()
3112
- })), Em = Q({
3113
- interval: K().positive().optional().default(300),
3114
- maxBatchExtrinsicPercentage: K().positive().optional().default(59)
3115
- }), Cm = Q({
3112
+ })), Em = K({
3113
+ interval: Q().positive().optional().default(300),
3114
+ maxBatchExtrinsicPercentage: Q().positive().optional().default(59)
3115
+ }), Cm = K({
3116
3116
  logLevel: Ou.optional().default(Ou.enum.info),
3117
3117
  defaultEnvironment: Eo.default(Eo.Values.production),
3118
3118
  defaultNetwork: wn.default(wn.Values.rococo),
3119
- account: Q({
3119
+ account: K({
3120
3120
  address: I().optional(),
3121
3121
  secret: I().optional(),
3122
3122
  password: I().optional()
3123
3123
  })
3124
- }), md = Cm.merge(Q({
3124
+ }), md = Cm.merge(K({
3125
3125
  networks: km.default(Sm),
3126
3126
  database: xm.optional(),
3127
3127
  devOnlyWatchEvents: Jo().optional()
3128
- })), Tm = Q({
3129
- solved: Q({
3130
- count: K().positive()
3128
+ })), Tm = K({
3129
+ solved: K({
3130
+ count: Q().positive()
3131
3131
  }).optional().default({ count: 1 }),
3132
- unsolved: Q({
3133
- count: K().nonnegative()
3132
+ unsolved: K({
3133
+ count: Q().nonnegative()
3134
3134
  }).optional().default({ count: 1 })
3135
- }), Pm = Q({
3135
+ }), Pm = K({
3136
3136
  baseURL: I().url(),
3137
- port: K().optional().default(9229)
3138
- }), Nm = Q({
3139
- requiredNumberOfSolutions: K().positive().min(2),
3140
- solutionWinningPercentage: K().positive().max(100),
3141
- captchaBlockRecency: K().positive().min(2)
3142
- }), vd = md.merge(Q({
3137
+ port: Q().optional().default(9229)
3138
+ }), Nm = K({
3139
+ requiredNumberOfSolutions: Q().positive().min(2),
3140
+ solutionWinningPercentage: Q().positive().max(100),
3141
+ captchaBlockRecency: Q().positive().min(2)
3142
+ }), vd = md.merge(K({
3143
3143
  userAccountAddress: I().optional(),
3144
3144
  web2: Jo().optional().default(!0),
3145
- solutionThreshold: K().positive().max(100).optional().default(80),
3145
+ solutionThreshold: Q().positive().max(100).optional().default(80),
3146
3146
  dappName: I().optional().default("ProsopoClientDapp"),
3147
3147
  serverUrl: I().optional()
3148
3148
  }));
3149
- vd.merge(Q({
3149
+ vd.merge(K({
3150
3150
  serverUrl: I().url().optional()
3151
3151
  }));
3152
- const Om = Q({
3153
- area: Q({
3154
- width: K().positive(),
3155
- height: K().positive()
3152
+ const Om = K({
3153
+ area: K({
3154
+ width: Q().positive(),
3155
+ height: Q().positive()
3156
3156
  }),
3157
- offsetParameter: K().positive(),
3158
- multiplier: K().positive(),
3159
- fontSizeFactor: K().positive(),
3160
- maxShadowBlur: K().positive(),
3161
- numberOfRounds: K().positive(),
3162
- seed: K().positive()
3163
- }), Rm = Xr([hn("light"), hn("dark")]), Im = vd.and(Q({
3157
+ offsetParameter: Q().positive(),
3158
+ multiplier: Q().positive(),
3159
+ fontSizeFactor: Q().positive(),
3160
+ maxShadowBlur: Q().positive(),
3161
+ numberOfRounds: Q().positive(),
3162
+ seed: Q().positive()
3163
+ }), Rm = Xr([hn("light"), hn("dark")]), Im = vd.and(K({
3164
3164
  accountCreator: Om.optional(),
3165
3165
  theme: Rm.optional(),
3166
- challengeValidLength: K().positive().optional()
3166
+ challengeValidLength: Q().positive().optional()
3167
3167
  }));
3168
- md.merge(Q({
3168
+ md.merge(K({
3169
3169
  captchas: Tm.optional().default({
3170
3170
  solved: { count: 1 },
3171
3171
  unsolved: { count: 0 }
@@ -3220,14 +3220,14 @@ var Ru;
3220
3220
  (function(e) {
3221
3221
  e.Solved = "solved", e.Unsolved = "unsolved";
3222
3222
  })(Ru || (Ru = {}));
3223
- const Mm = Q({
3223
+ const Mm = K({
3224
3224
  captchaId: Xr([I(), pl()]),
3225
3225
  captchaContentId: Xr([I(), pl()]),
3226
3226
  salt: I().min(34),
3227
- solution: K().array().optional(),
3228
- unlabelled: K().array().optional(),
3229
- timeLimit: K().optional()
3230
- }), gd = Q({
3227
+ solution: Q().array().optional(),
3228
+ unlabelled: Q().array().optional(),
3229
+ timeLimit: Q().optional()
3230
+ }), gd = K({
3231
3231
  hash: I(),
3232
3232
  data: I(),
3233
3233
  type: ks(ml)
@@ -3244,28 +3244,28 @@ const Mm = Q({
3244
3244
  solution: I().array().optional(),
3245
3245
  unlabelled: I().array().optional()
3246
3246
  }), Dm = Am.extend({
3247
- solution: K().array().optional(),
3248
- unlabelled: K().array().optional()
3247
+ solution: Q().array().optional(),
3248
+ unlabelled: Q().array().optional()
3249
3249
  }), $m = At(_d);
3250
3250
  At(Dm);
3251
- const kd = Q({
3251
+ const kd = K({
3252
3252
  captchaId: I(),
3253
3253
  captchaContentId: I(),
3254
3254
  solution: I().array(),
3255
3255
  salt: I().min(34)
3256
3256
  });
3257
3257
  At(kd);
3258
- Q({
3258
+ K({
3259
3259
  items: At(jm)
3260
3260
  });
3261
- Q({
3261
+ K({
3262
3262
  items: At(zm)
3263
3263
  });
3264
- Q({
3264
+ K({
3265
3265
  captchas: $m,
3266
3266
  format: ks(hl)
3267
3267
  });
3268
- Q({
3268
+ K({
3269
3269
  labels: At(I())
3270
3270
  });
3271
3271
  var Iu;
@@ -3276,41 +3276,42 @@ var Lu;
3276
3276
  (function(e) {
3277
3277
  e.BatchCommit = "/v1/prosopo/provider/admin/batch", e.UpdateDataset = "/v1/prosopo/provider/admin/dataset", e.ProviderDeregister = "/v1/prosopo/provider/admin/deregister", e.ProviderUpdate = "/v1/prosopo/provider/admin/update";
3278
3278
  })(Lu || (Lu = {}));
3279
- var te;
3279
+ var J;
3280
3280
  (function(e) {
3281
3281
  e.datasetId = "datasetId", e.user = "user", e.dapp = "dapp", e.provider = "provider", e.blockNumber = "blockNumber", e.signature = "signature", e.requestHash = "requestHash", e.captchas = "captchas", e.commitmentId = "commitmentId", e.proof = "proof", e.providerUrl = "providerUrl", e.procaptchaResponse = "procaptcha-response", e.maxVerifiedTime = "maxVerifiedTime", e.verified = "verified", e.status = "status", e.challenge = "challenge", e.difficulty = "difficulty", e.nonce = "nonce";
3282
- })(te || (te = {}));
3283
- Q({
3284
- [te.user]: I(),
3285
- [te.dapp]: I(),
3286
- [te.datasetId]: I(),
3287
- [te.blockNumber]: I()
3282
+ })(J || (J = {}));
3283
+ K({
3284
+ [J.user]: I(),
3285
+ [J.dapp]: I(),
3286
+ [J.datasetId]: I(),
3287
+ [J.blockNumber]: I()
3288
3288
  });
3289
- const k0 = Q({
3290
- [te.user]: I(),
3291
- [te.dapp]: I(),
3292
- [te.captchas]: At(kd),
3293
- [te.requestHash]: I(),
3294
- [te.signature]: I()
3289
+ const k0 = K({
3290
+ [J.user]: I(),
3291
+ [J.dapp]: I(),
3292
+ [J.captchas]: At(kd),
3293
+ [J.requestHash]: I(),
3294
+ [J.signature]: I()
3295
3295
  });
3296
- Q({
3297
- [te.dapp]: I(),
3298
- [te.user]: I(),
3299
- [te.commitmentId]: I().optional(),
3300
- [te.maxVerifiedTime]: K().optional()
3296
+ K({
3297
+ [J.dapp]: I(),
3298
+ [J.user]: I(),
3299
+ [J.blockNumber]: Q(),
3300
+ [J.commitmentId]: I().optional(),
3301
+ [J.maxVerifiedTime]: Q().optional()
3301
3302
  });
3302
- Q({
3303
- [te.challenge]: I(),
3304
- [te.dapp]: I()
3303
+ K({
3304
+ [J.challenge]: I(),
3305
+ [J.dapp]: I()
3305
3306
  });
3306
- Q({
3307
- [te.blockNumber]: K(),
3308
- [te.challenge]: I(),
3309
- [te.difficulty]: K(),
3310
- [te.signature]: I(),
3311
- [te.user]: I(),
3312
- [te.dapp]: I(),
3313
- [te.nonce]: K()
3307
+ K({
3308
+ [J.blockNumber]: Q(),
3309
+ [J.challenge]: I(),
3310
+ [J.difficulty]: Q(),
3311
+ [J.signature]: I(),
3312
+ [J.user]: I(),
3313
+ [J.dapp]: I(),
3314
+ [J.nonce]: Q()
3314
3315
  });
3315
3316
  var vl;
3316
3317
  (function(e) {
@@ -4826,8 +4827,8 @@ function bu(e, t, n) {
4826
4827
  throw new Error(`Index ${t} smaller than 0`);
4827
4828
  return e[t];
4828
4829
  }
4829
- const iy = (e) => Array.isArray(e), N0 = (e) => iy(e) ? Lm(new Uint8Array(e)) : e.toString(), oy = Y.lazy(async () => import("./ProcaptchaWidget-DDAodo6R.js")), ay = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(oy, { config: e.config, callbacks: e.callbacks }) }), Kd = ay, ly = Y.lazy(async () => import("./Captcha-Cx0ArXYl.js")), Gd = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(ly, { config: e.config, callbacks: e.callbacks }) });
4830
- var sy = "1.9.0", V = {
4830
+ const iy = (e) => Array.isArray(e), N0 = (e) => iy(e) ? Lm(new Uint8Array(e)) : e.toString(), oy = Y.lazy(async () => import("./ProcaptchaWidget-O71j1WKI.js")), ay = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(oy, { config: e.config, callbacks: e.callbacks }) }), Kd = ay, ly = Y.lazy(async () => import("./Captcha-Cv4jnpZb.js")), Gd = (e) => D(Y.Suspense, { fallback: D(Os, { darkMode: e.config.theme }), children: D(ly, { config: e.config, callbacks: e.callbacks }) });
4831
+ var sy = "1.9.1", V = {
4831
4832
  // Object is used instead of Typescript enum to avoid emitting IIFE which might be affected by further tree-shaking.
4832
4833
  // See example of compiled enums https://stackoverflow.com/q/47363996)
4833
4834
  Awesomium: "awesomium",
@@ -4848,7 +4849,7 @@ var sy = "1.9.0", V = {
4848
4849
  WebDriver: "webdriver",
4849
4850
  HeadlessChrome: "headless_chrome",
4850
4851
  Unknown: "unknown"
4851
- }, ne = (
4852
+ }, te = (
4852
4853
  /** @class */
4853
4854
  function(e) {
4854
4855
  Lv(t, e);
@@ -4887,7 +4888,7 @@ function cy(e) {
4887
4888
  case 2:
4888
4889
  return l[s] = (d.value = h.sent(), d.state = 0, d), [3, 4];
4889
4890
  case 3:
4890
- return u = h.sent(), u instanceof ne ? t[o] = {
4891
+ return u = h.sent(), u instanceof te ? t[o] = {
4891
4892
  state: u.state,
4892
4893
  error: "".concat(u.name, ": ").concat(u.message)
4893
4894
  } : t[o] = {
@@ -5112,15 +5113,15 @@ var Ry = {
5112
5113
  function Iy() {
5113
5114
  var e = navigator.appVersion;
5114
5115
  if (e == null)
5115
- throw new ne(-1, "navigator.appVersion is undefined");
5116
+ throw new te(-1, "navigator.appVersion is undefined");
5116
5117
  return e;
5117
5118
  }
5118
5119
  function Ly() {
5119
5120
  if (document.documentElement === void 0)
5120
- throw new ne(-1, "document.documentElement is undefined");
5121
+ throw new te(-1, "document.documentElement is undefined");
5121
5122
  var e = document.documentElement;
5122
5123
  if (typeof e.getAttributeNames != "function")
5123
- throw new ne(-2, "document.documentElement.getAttributeNames is not a function");
5124
+ throw new te(-2, "document.documentElement.getAttributeNames is not a function");
5124
5125
  return e.getAttributeNames();
5125
5126
  }
5126
5127
  function My() {
@@ -5130,14 +5131,14 @@ function My() {
5130
5131
  if (e instanceof Error && e.stack != null)
5131
5132
  return e.stack.toString();
5132
5133
  }
5133
- throw new ne(-3, "errorTrace signal unexpected behaviour");
5134
+ throw new te(-3, "errorTrace signal unexpected behaviour");
5134
5135
  }
5135
5136
  function zy() {
5136
5137
  return eval.toString().length;
5137
5138
  }
5138
5139
  function jy() {
5139
5140
  if (Function.prototype.bind === void 0)
5140
- throw new ne(-2, "Function.prototype.bind is undefined");
5141
+ throw new te(-2, "Function.prototype.bind is undefined");
5141
5142
  return Function.prototype.bind.toString();
5142
5143
  }
5143
5144
  function Rs() {
@@ -5207,7 +5208,7 @@ function Uy() {
5207
5208
  }
5208
5209
  function Vy() {
5209
5210
  if (navigator.mimeTypes === void 0)
5210
- throw new ne(-1, "navigator.mimeTypes is undefined");
5211
+ throw new te(-1, "navigator.mimeTypes is undefined");
5211
5212
  for (var e = navigator.mimeTypes, t = Object.getPrototypeOf(e) === MimeTypeArray.prototype, n = 0; n < e.length; n++)
5212
5213
  t && (t = Object.getPrototypeOf(e[n]) === MimeType.prototype);
5213
5214
  return t;
@@ -5219,18 +5220,18 @@ function Zy() {
5219
5220
  switch (n.label) {
5220
5221
  case 0:
5221
5222
  if (window.Notification === void 0)
5222
- throw new ne(-1, "window.Notification is undefined");
5223
+ throw new te(-1, "window.Notification is undefined");
5223
5224
  if (navigator.permissions === void 0)
5224
- throw new ne(-1, "navigator.permissions is undefined");
5225
+ throw new te(-1, "navigator.permissions is undefined");
5225
5226
  if (e = navigator.permissions, typeof e.query != "function")
5226
- throw new ne(-2, "navigator.permissions.query is not a function");
5227
+ throw new te(-2, "navigator.permissions.query is not a function");
5227
5228
  n.label = 1;
5228
5229
  case 1:
5229
5230
  return n.trys.push([1, 3, , 4]), [4, e.query({ name: "notifications" })];
5230
5231
  case 2:
5231
5232
  return t = n.sent(), [2, window.Notification.permission === "denied" && t.state === "prompt"];
5232
5233
  case 3:
5233
- throw n.sent(), new ne(-3, "notificationPermissions signal unexpected behaviour");
5234
+ throw n.sent(), new te(-3, "notificationPermissions signal unexpected behaviour");
5234
5235
  case 4:
5235
5236
  return [
5236
5237
  2
@@ -5242,34 +5243,37 @@ function Zy() {
5242
5243
  }
5243
5244
  function Wy() {
5244
5245
  if (navigator.plugins === void 0)
5245
- throw new ne(-1, "navigator.plugins is undefined");
5246
+ throw new te(-1, "navigator.plugins is undefined");
5246
5247
  if (window.PluginArray === void 0)
5247
- throw new ne(-1, "window.PluginArray is undefined");
5248
+ throw new te(-1, "window.PluginArray is undefined");
5248
5249
  return navigator.plugins instanceof PluginArray;
5249
5250
  }
5250
5251
  function by() {
5251
5252
  if (navigator.plugins === void 0)
5252
- throw new ne(-1, "navigator.plugins is undefined");
5253
+ throw new te(-1, "navigator.plugins is undefined");
5253
5254
  if (navigator.plugins.length === void 0)
5254
- throw new ne(-3, "navigator.plugins.length is undefined");
5255
+ throw new te(-3, "navigator.plugins.length is undefined");
5255
5256
  return navigator.plugins.length;
5256
5257
  }
5257
5258
  function By() {
5258
- if (window.process === void 0)
5259
- throw new ne(-1, "window.process is undefined");
5260
- return window.process;
5259
+ var e = window.process, t = "window.process is";
5260
+ if (e === void 0)
5261
+ throw new te(-1, "".concat(t, " undefined"));
5262
+ if (e && typeof e != "object")
5263
+ throw new te(-3, "".concat(t, " not an object"));
5264
+ return e;
5261
5265
  }
5262
5266
  function Hy() {
5263
5267
  var e = navigator.productSub;
5264
5268
  if (e === void 0)
5265
- throw new ne(-1, "navigator.productSub is undefined");
5269
+ throw new te(-1, "navigator.productSub is undefined");
5266
5270
  return e;
5267
5271
  }
5268
5272
  function Qy() {
5269
5273
  if (navigator.connection === void 0)
5270
- throw new ne(-1, "navigator.connection is undefined");
5274
+ throw new te(-1, "navigator.connection is undefined");
5271
5275
  if (navigator.connection.rtt === void 0)
5272
- throw new ne(-1, "navigator.connection.rtt is undefined");
5276
+ throw new te(-1, "navigator.connection.rtt is undefined");
5273
5277
  return navigator.connection.rtt;
5274
5278
  }
5275
5279
  function Ky() {
@@ -5277,27 +5281,27 @@ function Ky() {
5277
5281
  }
5278
5282
  function Gy() {
5279
5283
  if (navigator.webdriver == null)
5280
- throw new ne(-1, "navigator.webdriver is undefined");
5284
+ throw new te(-1, "navigator.webdriver is undefined");
5281
5285
  return navigator.webdriver;
5282
5286
  }
5283
5287
  function qy() {
5284
5288
  var e = document.createElement("canvas");
5285
5289
  if (typeof e.getContext != "function")
5286
- throw new ne(-2, "HTMLCanvasElement.getContext is not a function");
5290
+ throw new te(-2, "HTMLCanvasElement.getContext is not a function");
5287
5291
  var t = e.getContext("webgl");
5288
5292
  if (t === null)
5289
- throw new ne(-4, "WebGLRenderingContext is null");
5293
+ throw new te(-4, "WebGLRenderingContext is null");
5290
5294
  if (typeof t.getParameter != "function")
5291
- throw new ne(-2, "WebGLRenderingContext.getParameter is not a function");
5295
+ throw new te(-2, "WebGLRenderingContext.getParameter is not a function");
5292
5296
  var n = t.getParameter(t.VENDOR), r = t.getParameter(t.RENDERER);
5293
5297
  return { vendor: n, renderer: r };
5294
5298
  }
5295
5299
  function Yy() {
5296
5300
  if (window.external === void 0)
5297
- throw new ne(-1, "window.external is undefined");
5301
+ throw new te(-1, "window.external is undefined");
5298
5302
  var e = window.external;
5299
5303
  if (typeof e.toString != "function")
5300
- throw new ne(-2, "window.external.toString is not a function");
5304
+ throw new te(-2, "window.external.toString is not a function");
5301
5305
  return e.toString();
5302
5306
  }
5303
5307
  function Xy() {
@@ -7281,7 +7285,7 @@ function Qf(e, t) {
7281
7285
  if (Oo)
7282
7286
  throw e = Fl, Oo = !1, Fl = null, e;
7283
7287
  }
7284
- function ee(e, t) {
7288
+ function ne(e, t) {
7285
7289
  var n = t[Gl];
7286
7290
  n === void 0 && (n = t[Gl] = /* @__PURE__ */ new Set());
7287
7291
  var r = e + "__bubble";
@@ -7663,7 +7667,7 @@ function ln(e) {
7663
7667
  function re(e) {
7664
7668
  0 > Vn || (e.current = ql[Vn], ql[Vn] = null, Vn--);
7665
7669
  }
7666
- function J(e, t) {
7670
+ function ee(e, t) {
7667
7671
  Vn++, ql[Vn] = e.current, e.current = t;
7668
7672
  }
7669
7673
  var on = {}, Oe = ln(on), De = ln(!1), Tn = on;
@@ -7688,7 +7692,7 @@ function Ao() {
7688
7692
  function Sc(e, t, n) {
7689
7693
  if (Oe.current !== on)
7690
7694
  throw Error(_(168));
7691
- J(Oe, t), J(De, n);
7695
+ ee(Oe, t), ee(De, n);
7692
7696
  }
7693
7697
  function Gf(e, t, n) {
7694
7698
  var r = e.stateNode;
@@ -7701,13 +7705,13 @@ function Gf(e, t, n) {
7701
7705
  return se({}, n, r);
7702
7706
  }
7703
7707
  function Do(e) {
7704
- return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || on, Tn = Oe.current, J(Oe, e), J(De, De.current), !0;
7708
+ return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || on, Tn = Oe.current, ee(Oe, e), ee(De, De.current), !0;
7705
7709
  }
7706
7710
  function xc(e, t, n) {
7707
7711
  var r = e.stateNode;
7708
7712
  if (!r)
7709
7713
  throw Error(_(169));
7710
- n ? (e = Gf(e, t, Tn), r.__reactInternalMemoizedMergedChildContext = e, re(De), re(Oe), J(Oe, e)) : re(De), J(De, n);
7714
+ n ? (e = Gf(e, t, Tn), r.__reactInternalMemoizedMergedChildContext = e, re(De), re(Oe), ee(Oe, e)) : re(De), ee(De, n);
7711
7715
  }
7712
7716
  var Tt = null, wa = !1, el = !1;
7713
7717
  function qf(e) {
@@ -8313,7 +8317,7 @@ function yn(e) {
8313
8317
  return e;
8314
8318
  }
8315
8319
  function tu(e, t) {
8316
- switch (J(yi, t), J(vi, e), J(kt, Oi), e = t.nodeType, e) {
8320
+ switch (ee(yi, t), ee(vi, e), ee(kt, Oi), e = t.nodeType, e) {
8317
8321
  case 9:
8318
8322
  case 11:
8319
8323
  t = (t = t.documentElement) ? t.namespaceURI : Ml(null, "");
@@ -8321,7 +8325,7 @@ function tu(e, t) {
8321
8325
  default:
8322
8326
  e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = Ml(t, e);
8323
8327
  }
8324
- re(kt), J(kt, t);
8328
+ re(kt), ee(kt, t);
8325
8329
  }
8326
8330
  function sr() {
8327
8331
  re(kt), re(vi), re(yi);
@@ -8329,7 +8333,7 @@ function sr() {
8329
8333
  function ap(e) {
8330
8334
  yn(yi.current);
8331
8335
  var t = yn(kt.current), n = Ml(t, e.type);
8332
- t !== n && (J(vi, e), J(kt, n));
8336
+ t !== n && (ee(vi, e), ee(kt, n));
8333
8337
  }
8334
8338
  function nu(e) {
8335
8339
  vi.current === e && (re(kt), re(vi));
@@ -8840,14 +8844,14 @@ function Op(e, t, n) {
8840
8844
  var r = t.pendingProps, i = r.children, o = e !== null ? e.memoizedState : null;
8841
8845
  if (r.mode === "hidden")
8842
8846
  if (!(t.mode & 1))
8843
- t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, J(Hn, Ve), Ve |= n;
8847
+ t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, ee(Hn, Ve), Ve |= n;
8844
8848
  else {
8845
8849
  if (!(n & 1073741824))
8846
- return e = o !== null ? o.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, J(Hn, Ve), Ve |= e, null;
8847
- t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = o !== null ? o.baseLanes : n, J(Hn, Ve), Ve |= r;
8850
+ return e = o !== null ? o.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, ee(Hn, Ve), Ve |= e, null;
8851
+ t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = o !== null ? o.baseLanes : n, ee(Hn, Ve), Ve |= r;
8848
8852
  }
8849
8853
  else
8850
- o !== null ? (r = o.baseLanes | n, t.memoizedState = null) : r = n, J(Hn, Ve), Ve |= r;
8854
+ o !== null ? (r = o.baseLanes | n, t.memoizedState = null) : r = n, ee(Hn, Ve), Ve |= r;
8851
8855
  return Re(e, t, i, n), t.child;
8852
8856
  }
8853
8857
  function Rp(e, t) {
@@ -8906,7 +8910,7 @@ function as(e) {
8906
8910
  }
8907
8911
  function Lp(e, t, n) {
8908
8912
  var r = t.pendingProps, i = ae.current, o = !1, a = (t.flags & 128) !== 0, l;
8909
- if ((l = a) || (l = e !== null && e.memoizedState === null ? !1 : (i & 2) !== 0), l ? (o = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (i |= 1), J(ae, i & 1), e === null)
8913
+ if ((l = a) || (l = e !== null && e.memoizedState === null ? !1 : (i & 2) !== 0), l ? (o = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (i |= 1), ee(ae, i & 1), e === null)
8910
8914
  return Xl(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (a = r.children, e = r.fallback, o ? (r = t.mode, o = t.child, a = { mode: "hidden", children: a }, !(r & 1) && o !== null ? (o.childLanes = 0, o.pendingProps = a) : o = Ea(a, r, 0, null), e = kn(e, r, n, null), o.return = t, e.return = t, o.sibling = e, t.child = o, t.child.memoizedState = as(n), t.memoizedState = os, e) : uu(t, a));
8911
8915
  if (i = e.memoizedState, i !== null && (l = i.dehydrated, l !== null))
8912
8916
  return F1(e, t, a, r, l, i, n);
@@ -9013,7 +9017,7 @@ function Mp(e, t, n) {
9013
9017
  }
9014
9018
  r &= 1;
9015
9019
  }
9016
- if (J(ae, r), !(t.mode & 1))
9020
+ if (ee(ae, r), !(t.mode & 1))
9017
9021
  t.memoizedState = null;
9018
9022
  else
9019
9023
  switch (i) {
@@ -9071,12 +9075,12 @@ function U1(e, t, n) {
9071
9075
  break;
9072
9076
  case 10:
9073
9077
  var r = t.type._context, i = t.memoizedProps.value;
9074
- J(Uo, r._currentValue), r._currentValue = i;
9078
+ ee(Uo, r._currentValue), r._currentValue = i;
9075
9079
  break;
9076
9080
  case 13:
9077
9081
  if (r = t.memoizedState, r !== null)
9078
- return r.dehydrated !== null ? (J(ae, ae.current & 1), t.flags |= 128, null) : n & t.child.childLanes ? Lp(e, t, n) : (J(ae, ae.current & 1), e = jt(e, t, n), e !== null ? e.sibling : null);
9079
- J(ae, ae.current & 1);
9082
+ return r.dehydrated !== null ? (ee(ae, ae.current & 1), t.flags |= 128, null) : n & t.child.childLanes ? Lp(e, t, n) : (ee(ae, ae.current & 1), e = jt(e, t, n), e !== null ? e.sibling : null);
9083
+ ee(ae, ae.current & 1);
9080
9084
  break;
9081
9085
  case 19:
9082
9086
  if (r = (n & t.childLanes) !== 0, e.flags & 128) {
@@ -9084,7 +9088,7 @@ function U1(e, t, n) {
9084
9088
  return Mp(e, t, n);
9085
9089
  t.flags |= 128;
9086
9090
  }
9087
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), J(ae, ae.current), r)
9091
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), ee(ae, ae.current), r)
9088
9092
  break;
9089
9093
  return null;
9090
9094
  case 22:
@@ -9158,7 +9162,7 @@ jp = function(e, t, n, r) {
9158
9162
  n
9159
9163
  )), n = s;
9160
9164
  else
9161
- u === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, l = l ? l.__html : void 0, s != null && l !== s && (o = o || []).push(u, s)) : u === "children" ? typeof s != "string" && typeof s != "number" || (o = o || []).push(u, "" + s) : u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && (oi.hasOwnProperty(u) ? (s != null && u === "onScroll" && ee("scroll", e), o || l === s || (o = [])) : (o = o || []).push(u, s));
9165
+ u === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, l = l ? l.__html : void 0, s != null && l !== s && (o = o || []).push(u, s)) : u === "children" ? typeof s != "string" && typeof s != "number" || (o = o || []).push(u, "" + s) : u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && (oi.hasOwnProperty(u) ? (s != null && u === "onScroll" && ne("scroll", e), o || l === s || (o = [])) : (o = o || []).push(u, s));
9162
9166
  }
9163
9167
  n && (o = o || []).push("style", n);
9164
9168
  var u = o;
@@ -9228,40 +9232,40 @@ function V1(e, t, n) {
9228
9232
  var o = t.memoizedProps;
9229
9233
  switch (r[yt] = t, r[mi] = o, e = (t.mode & 1) !== 0, n) {
9230
9234
  case "dialog":
9231
- ee("cancel", r), ee("close", r);
9235
+ ne("cancel", r), ne("close", r);
9232
9236
  break;
9233
9237
  case "iframe":
9234
9238
  case "object":
9235
9239
  case "embed":
9236
- ee("load", r);
9240
+ ne("load", r);
9237
9241
  break;
9238
9242
  case "video":
9239
9243
  case "audio":
9240
9244
  for (i = 0; i < Or.length; i++)
9241
- ee(Or[i], r);
9245
+ ne(Or[i], r);
9242
9246
  break;
9243
9247
  case "source":
9244
- ee("error", r);
9248
+ ne("error", r);
9245
9249
  break;
9246
9250
  case "img":
9247
9251
  case "image":
9248
9252
  case "link":
9249
- ee(
9253
+ ne(
9250
9254
  "error",
9251
9255
  r
9252
- ), ee("load", r);
9256
+ ), ne("load", r);
9253
9257
  break;
9254
9258
  case "details":
9255
- ee("toggle", r);
9259
+ ne("toggle", r);
9256
9260
  break;
9257
9261
  case "input":
9258
- Gu(r, o), ee("invalid", r);
9262
+ Gu(r, o), ne("invalid", r);
9259
9263
  break;
9260
9264
  case "select":
9261
- r._wrapperState = { wasMultiple: !!o.multiple }, ee("invalid", r);
9265
+ r._wrapperState = { wasMultiple: !!o.multiple }, ne("invalid", r);
9262
9266
  break;
9263
9267
  case "textarea":
9264
- Yu(r, o), ee("invalid", r);
9268
+ Yu(r, o), ne("invalid", r);
9265
9269
  }
9266
9270
  zl(n, o), i = null;
9267
9271
  for (var a in o)
@@ -9271,7 +9275,7 @@ function V1(e, t, n) {
9271
9275
  r.textContent,
9272
9276
  l,
9273
9277
  e
9274
- ), i = ["children", "" + l]) : oi.hasOwnProperty(a) && l != null && a === "onScroll" && ee("scroll", r);
9278
+ ), i = ["children", "" + l]) : oi.hasOwnProperty(a) && l != null && a === "onScroll" && ne("scroll", r);
9275
9279
  }
9276
9280
  switch (n) {
9277
9281
  case "input":
@@ -9292,44 +9296,44 @@ function V1(e, t, n) {
9292
9296
  e: {
9293
9297
  switch (a = jl(n, r), n) {
9294
9298
  case "dialog":
9295
- ee("cancel", e), ee("close", e), i = r;
9299
+ ne("cancel", e), ne("close", e), i = r;
9296
9300
  break;
9297
9301
  case "iframe":
9298
9302
  case "object":
9299
9303
  case "embed":
9300
- ee("load", e), i = r;
9304
+ ne("load", e), i = r;
9301
9305
  break;
9302
9306
  case "video":
9303
9307
  case "audio":
9304
9308
  for (i = 0; i < Or.length; i++)
9305
- ee(Or[i], e);
9309
+ ne(Or[i], e);
9306
9310
  i = r;
9307
9311
  break;
9308
9312
  case "source":
9309
- ee("error", e), i = r;
9313
+ ne("error", e), i = r;
9310
9314
  break;
9311
9315
  case "img":
9312
9316
  case "image":
9313
9317
  case "link":
9314
- ee(
9318
+ ne(
9315
9319
  "error",
9316
9320
  e
9317
- ), ee("load", e), i = r;
9321
+ ), ne("load", e), i = r;
9318
9322
  break;
9319
9323
  case "details":
9320
- ee("toggle", e), i = r;
9324
+ ne("toggle", e), i = r;
9321
9325
  break;
9322
9326
  case "input":
9323
- Gu(e, r), i = Ol(e, r), ee("invalid", e);
9327
+ Gu(e, r), i = Ol(e, r), ne("invalid", e);
9324
9328
  break;
9325
9329
  case "option":
9326
9330
  i = r;
9327
9331
  break;
9328
9332
  case "select":
9329
- e._wrapperState = { wasMultiple: !!r.multiple }, i = se({}, r, { value: void 0 }), ee("invalid", e);
9333
+ e._wrapperState = { wasMultiple: !!r.multiple }, i = se({}, r, { value: void 0 }), ne("invalid", e);
9330
9334
  break;
9331
9335
  case "textarea":
9332
- Yu(e, r), i = Ll(e, r), ee("invalid", e);
9336
+ Yu(e, r), i = Ll(e, r), ne("invalid", e);
9333
9337
  break;
9334
9338
  default:
9335
9339
  i = r;
@@ -9338,7 +9342,7 @@ function V1(e, t, n) {
9338
9342
  for (o in l)
9339
9343
  if (l.hasOwnProperty(o)) {
9340
9344
  var s = l[o];
9341
- o === "style" ? ff(e, s) : o === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, s != null && cf(e, s)) : o === "children" ? typeof s == "string" ? (n !== "textarea" || s !== "") && ai(e, s) : typeof s == "number" && ai(e, "" + s) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (oi.hasOwnProperty(o) ? s != null && o === "onScroll" && ee("scroll", e) : s != null && Ms(e, o, s, a));
9345
+ o === "style" ? ff(e, s) : o === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, s != null && cf(e, s)) : o === "children" ? typeof s == "string" ? (n !== "textarea" || s !== "") && ai(e, s) : typeof s == "number" && ai(e, "" + s) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (oi.hasOwnProperty(o) ? s != null && o === "onScroll" && ne("scroll", e) : s != null && Ms(e, o, s, a));
9342
9346
  }
9343
9347
  switch (n) {
9344
9348
  case "input":
@@ -9438,7 +9442,7 @@ function V1(e, t, n) {
9438
9442
  if (a = Wo(e), a !== null) {
9439
9443
  for (t.flags |= 128, Er(o, !1), r = a.updateQueue, r !== null && (t.updateQueue = r, t.flags |= 4), t.subtreeFlags = 0, r = n, n = t.child; n !== null; )
9440
9444
  o = n, e = r, o.flags &= 14680066, a = o.alternate, a === null ? (o.childLanes = 0, o.lanes = e, o.child = null, o.subtreeFlags = 0, o.memoizedProps = null, o.memoizedState = null, o.updateQueue = null, o.dependencies = null, o.stateNode = null) : (o.childLanes = a.childLanes, o.lanes = a.lanes, o.child = a.child, o.subtreeFlags = 0, o.deletions = null, o.memoizedProps = a.memoizedProps, o.memoizedState = a.memoizedState, o.updateQueue = a.updateQueue, o.type = a.type, e = a.dependencies, o.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }), n = n.sibling;
9441
- return J(ae, ae.current & 1 | 2), t.child;
9445
+ return ee(ae, ae.current & 1 | 2), t.child;
9442
9446
  }
9443
9447
  e = e.sibling;
9444
9448
  }
@@ -9453,7 +9457,7 @@ function V1(e, t, n) {
9453
9457
  2 * de() - o.renderingStartTime > cr && n !== 1073741824 && (t.flags |= 128, r = !0, Er(o, !1), t.lanes = 4194304);
9454
9458
  o.isBackwards ? (a.sibling = t.child, t.child = a) : (n = o.last, n !== null ? n.sibling = a : t.child = a, o.last = a);
9455
9459
  }
9456
- return o.tail !== null ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = de(), t.sibling = null, n = ae.current, J(ae, r ? n & 1 | 2 : n & 1), t) : (Ce(t), null);
9460
+ return o.tail !== null ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = de(), t.sibling = null, n = ae.current, ee(ae, r ? n & 1 | 2 : n & 1), t) : (Ce(t), null);
9457
9461
  case 22:
9458
9462
  case 23:
9459
9463
  return hu(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && t.mode & 1 ? Ve & 1073741824 && (Ce(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Ce(t), null;
@@ -10877,7 +10881,7 @@ Kp = function(e, t, n) {
10877
10881
  return Re(e, t, t.pendingProps.children, n), t.child;
10878
10882
  case 10:
10879
10883
  e: {
10880
- if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, a = i.value, J(Uo, r._currentValue), r._currentValue = a, o !== null)
10884
+ if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, a = i.value, ee(Uo, r._currentValue), r._currentValue = a, o !== null)
10881
10885
  if (ft(o.value, a)) {
10882
10886
  if (o.children === i.children && !De.current) {
10883
10887
  t = jt(e, t, n);
@@ -11384,7 +11388,7 @@ const eh = "procaptcha.bundle.js", th = () => document.querySelector('script[src
11384
11388
  return;
11385
11389
  }
11386
11390
  const r = document.createElement("input");
11387
- r.type = "hidden", r.name = te.procaptchaResponse, r.value = JSON.stringify(t), n.appendChild(r);
11391
+ r.type = "hidden", r.name = J.procaptchaResponse, r.value = JSON.stringify(t), n.appendChild(r);
11388
11392
  }, p0 = /* @__PURE__ */ new Set(["light", "dark"]), h0 = (e) => p0.has(e) ? e : "light", rh = (e, t, n) => {
11389
11393
  e.forEach((r) => {
11390
11394
  const i = (n == null ? void 0 : n.callback) || r.getAttribute("data-callback"), o = (n == null ? void 0 : n["chalexpired-callback"]) || r.getAttribute("data-chalexpired-callback"), a = (n == null ? void 0 : n["error-callback"]) || r.getAttribute("data-error-callback"), l = (n == null ? void 0 : n["close-callback"]) || r.getAttribute("data-close-callback"), s = (n == null ? void 0 : n["open-callback"]) || r.getAttribute("data-open-callback"), u = (n == null ? void 0 : n["expired-callback"]) || r.getAttribute("data-expired-callback"), d = {
@@ -11450,7 +11454,7 @@ if (Xc) {
11450
11454
  });
11451
11455
  }
11452
11456
  export {
11453
- te as A,
11457
+ J as A,
11454
11458
  zd as B,
11455
11459
  Qv as C,
11456
11460
  Vu as D,