@vbotma/sdk 3.2.7 → 3.2.9

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
@@ -204,35 +204,35 @@ function A(n, e) {
204
204
  return `option ${w} is not supported in Mini Apps version ${s()}`;
205
205
  }, F = S(() => !l()), b = S(() => s() !== "0.0"), k = S(() => e.isMounted ? e.isMounted() : !0), C = S(
206
206
  () => r() && b() && F() && k()
207
- ), y = (g) => {
207
+ ), q = (g) => {
208
208
  const w = new Et(g);
209
209
  return ["task", "promise"].includes(e.returns) ? u.left(w) : m.left(w);
210
- }, q = (...g) => o === "plain" ? m.tryCatch(() => n(...g), (w) => w) : o === "promise" ? u.tryCatch(() => n(...g), (w) => w) : n(...g);
210
+ }, I = (...g) => o === "plain" ? m.tryCatch(() => n(...g), (w) => w) : o === "promise" ? u.tryCatch(() => n(...g), (w) => w) : n(...g);
211
211
  return Object.assign(
212
212
  (...g) => {
213
213
  var V;
214
214
  const w = "Unable to call function:";
215
215
  if (!r())
216
- return y(`${w} it can't be called outside Mini Apps`);
216
+ return q(`${w} it can't be called outside Mini Apps`);
217
217
  if (!b())
218
- return y(`${w} the SDK was not initialized. Use the SDK init() function`);
218
+ return q(`${w} the SDK was not initialized. Use the SDK init() function`);
219
219
  const _ = l();
220
220
  if (_)
221
- return y(`${w} ${_}`);
221
+ return q(`${w} ${_}`);
222
222
  const x = f(...g);
223
223
  if (x)
224
- return y(`${w} ${x}`);
224
+ return q(`${w} ${x}`);
225
225
  if (!k()) {
226
226
  const R = (V = e.isMounting) != null && V.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
227
- return y(`${w} the component is ${R}`);
227
+ return q(`${w} the component is ${R}`);
228
228
  }
229
- return q(...g);
229
+ return I(...g);
230
230
  },
231
231
  n,
232
232
  {
233
233
  isAvailable: C,
234
234
  ifAvailable(...g) {
235
- return C() ? N.some(q(...g)) : N.none;
235
+ return C() ? N.some(I(...g)) : N.none;
236
236
  }
237
237
  },
238
238
  p ? { isSupported: F } : {},
@@ -344,15 +344,15 @@ class _e {
344
344
  isPageReload: p,
345
345
  onMounted: b.setState,
346
346
  restoreState: s.get
347
- }), C = { version: F, requires: f, isVBma: e }, y = E({
347
+ }), C = { version: F, requires: f, isVBma: e }, q = E({
348
348
  ...C,
349
349
  returns: "plain"
350
- }), q = E({
350
+ }), I = E({
351
351
  ...C,
352
352
  returns: "either",
353
353
  isMounted: k.isMounted
354
354
  });
355
- this.isMounted = k.isMounted, this.isSupported = U(f, F), this.state = b.state, this.setStateFp = q((g) => {
355
+ this.isMounted = k.isMounted, this.isSupported = U(f, F), this.state = b.state, this.setStateFp = I((g) => {
356
356
  const w = { ...this.state(), ...Se(g) };
357
357
  return b.hasDiff(w) ? c.pipe(
358
358
  a(f, l(w)),
@@ -360,15 +360,15 @@ class _e {
360
360
  b.setState(w);
361
361
  })
362
362
  ) : m.right(void 0);
363
- }), this.setState = /* @__PURE__ */ h(this.setStateFp), this.onClickFp = y(r), this.onClick = /* @__PURE__ */ h(this.onClickFp), this.offClickFp = y(i), this.offClick = /* @__PURE__ */ h(this.offClickFp), this.mountFp = y(() => {
363
+ }), this.setState = /* @__PURE__ */ h(this.setStateFp), this.onClickFp = q(r), this.onClick = /* @__PURE__ */ h(this.onClickFp), this.offClickFp = q(i), this.offClick = /* @__PURE__ */ h(this.offClickFp), this.mountFp = q(() => {
364
364
  const g = () => {
365
365
  };
366
366
  return c.pipe(k.mount(), m.match(g, g));
367
367
  }), this.mount = /* @__PURE__ */ h(this.mountFp), this.unmount = k.unmount, this.stateSetters = (g) => {
368
- const w = q((_) => this.setStateFp({ [g]: _ }));
368
+ const w = I((_) => this.setStateFp({ [g]: _ }));
369
369
  return [/* @__PURE__ */ h(w), w];
370
370
  }, this.stateBoolSetters = (g) => {
371
- const [, w] = this.stateSetters(g), _ = q(() => w(!1)), x = q(() => w(!0));
371
+ const [, w] = this.stateSetters(g), _ = I(() => w(!1)), x = I(() => w(!0));
372
372
  return [
373
373
  [/* @__PURE__ */ h(_), _],
374
374
  [/* @__PURE__ */ h(x), x]
@@ -509,14 +509,14 @@ function Z(n) {
509
509
  isPageReload: $t
510
510
  });
511
511
  }
512
- const Ce = /* @__PURE__ */ oe("0.0"), I = se({ version: Ce });
512
+ const Ce = /* @__PURE__ */ oe("0.0"), y = se({ version: Ce });
513
513
  // @__NO_SIDE_EFFECTS__
514
514
  function Ae(n, e) {
515
515
  return {
516
516
  ...c.pipe(
517
517
  v(),
518
518
  T,
519
- I,
519
+ y,
520
520
  Z(n)
521
521
  ),
522
522
  onClick(s, r) {
@@ -706,21 +706,21 @@ class Pt {
706
706
  }), k = { version: e, requires: "web_app_biometry_request_auth", isVBma: a }, C = E({
707
707
  ...k,
708
708
  returns: "either"
709
- }), y = E({
709
+ }), q = E({
710
710
  ...k,
711
711
  returns: "task"
712
- }), q = E({
712
+ }), I = E({
713
713
  ...k,
714
714
  isMounted: b.isMounted,
715
715
  returns: "task"
716
716
  });
717
- this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported = U("web_app_biometry_request_auth", e), this.state = F.state, this.unmount = b.unmount, this.mountFp = y(b.mount), this.authenticateFp = q((g) => this.isAvailable() ? c.pipe(
717
+ this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported = U("web_app_biometry_request_auth", e), this.state = F.state, this.unmount = b.unmount, this.mountFp = q(b.mount), this.authenticateFp = I((g) => this.isAvailable() ? c.pipe(
718
718
  s("web_app_biometry_request_auth", "biometry_auth_requested", {
719
719
  ...g,
720
720
  params: { reason: ((g || {}).reason || "").trim() }
721
721
  }),
722
722
  u.map((w) => (F.setState({ token: w.token }), w))
723
- ) : u.left(je())), this.openSettingsFp = C(() => r("web_app_biometry_open_settings")), this.requestAccessFp = q((g) => c.pipe(
723
+ ) : u.left(je())), this.openSettingsFp = C(() => r("web_app_biometry_open_settings")), this.requestAccessFp = I((g) => c.pipe(
724
724
  s("web_app_biometry_request_access", "biometry_info_received", {
725
725
  ...g,
726
726
  params: { reason: ((g || {}).reason || "").trim() }
@@ -729,7 +729,7 @@ class Pt {
729
729
  const _ = ge(w);
730
730
  return _.available ? (F.setState(_), u.right(_.accessRequested)) : u.left(je());
731
731
  })
732
- )), this.updateTokenFp = q((g = {}) => {
732
+ )), this.updateTokenFp = I((g = {}) => {
733
733
  var w;
734
734
  return c.pipe(
735
735
  s("web_app_biometry_update_token", "biometry_token_updated", {
@@ -753,7 +753,7 @@ function Ot() {
753
753
  ...c.pipe(
754
754
  v(),
755
755
  T,
756
- I,
756
+ y,
757
757
  L,
758
758
  Z("biometry")
759
759
  ),
@@ -959,7 +959,7 @@ const Re = se({
959
959
  function Wt() {
960
960
  return new Gt(c.pipe(
961
961
  v(),
962
- I,
962
+ y,
963
963
  Re
964
964
  ));
965
965
  }
@@ -1035,7 +1035,7 @@ const et = se({ createRequestId: Me });
1035
1035
  function Kt() {
1036
1036
  return new Qt(c.pipe(
1037
1037
  v(),
1038
- I,
1038
+ y,
1039
1039
  L,
1040
1040
  et
1041
1041
  ));
@@ -1051,7 +1051,7 @@ function zt({ request: n, ...e }) {
1051
1051
  function Nt() {
1052
1052
  return zt(c.pipe(
1053
1053
  v(),
1054
- I,
1054
+ y,
1055
1055
  L
1056
1056
  ));
1057
1057
  }
@@ -1077,7 +1077,7 @@ function Zt() {
1077
1077
  return Yt(c.pipe(
1078
1078
  v(),
1079
1079
  L,
1080
- I
1080
+ y
1081
1081
  ));
1082
1082
  }
1083
1083
  const Xt = /* @__PURE__ */ Zt(), vn = /* @__PURE__ */ h(Xt);
@@ -1136,7 +1136,7 @@ function ts() {
1136
1136
  return new es(c.pipe(
1137
1137
  v(),
1138
1138
  T,
1139
- I
1139
+ y
1140
1140
  ));
1141
1141
  }
1142
1142
  const kn = /* @__PURE__ */ ts();
@@ -1147,7 +1147,7 @@ function ss({ postEvent: n, ...e }) {
1147
1147
  function rs() {
1148
1148
  return ss(c.pipe(
1149
1149
  v(),
1150
- I,
1150
+ y,
1151
1151
  T
1152
1152
  ));
1153
1153
  }
@@ -1162,7 +1162,7 @@ function is({ request: n, ...e }) {
1162
1162
  function os() {
1163
1163
  return is(c.pipe(
1164
1164
  v(),
1165
- I,
1165
+ y,
1166
1166
  L
1167
1167
  ));
1168
1168
  }
@@ -1342,7 +1342,7 @@ class us {
1342
1342
  }
1343
1343
  }
1344
1344
  function ls() {
1345
- return new us(c.pipe(v(), L, I));
1345
+ return new us(c.pipe(v(), L, y));
1346
1346
  }
1347
1347
  const En = /* @__PURE__ */ ls();
1348
1348
  function ds({ postEvent: n, ...e }) {
@@ -1376,7 +1376,7 @@ function fs() {
1376
1376
  return bs(c.pipe(
1377
1377
  v(),
1378
1378
  T,
1379
- I
1379
+ y
1380
1380
  ));
1381
1381
  }
1382
1382
  const tt = /* @__PURE__ */ fs(), An = /* @__PURE__ */ h(tt);
@@ -1500,10 +1500,10 @@ class Ss {
1500
1500
  });
1501
1501
  this.isAvailable = a.getter("available"), this.isAccessRequested = a.getter("accessRequested"), this.isAccessGranted = a.getter("accessGranted"), this.isSupported = U("web_app_check_location", e), this.isMounted = l.isMounted, this.state = a.state, this.unmount = l.unmount, this.mountFp = b(l.mount), this.openSettingsFp = F(() => r("web_app_open_location_settings")), this.requestLocationFp = k((C) => c.pipe(
1502
1502
  s("web_app_request_location", "location_requested", C),
1503
- u.map((y) => {
1504
- if (!y.available)
1503
+ u.map((q) => {
1504
+ if (!q.available)
1505
1505
  return a.setState({ available: !1 }), null;
1506
- const { available: q, ...g } = y;
1506
+ const { available: I, ...g } = q;
1507
1507
  return g;
1508
1508
  })
1509
1509
  )), this.mount = /* @__PURE__ */ h(this.mountFp), this.openSettings = /* @__PURE__ */ h(this.openSettingsFp), this.requestLocation = /* @__PURE__ */ h(this.requestLocationFp);
@@ -1513,7 +1513,7 @@ function Cs() {
1513
1513
  return new Ss(c.pipe(
1514
1514
  v(),
1515
1515
  T,
1516
- I,
1516
+ y,
1517
1517
  L,
1518
1518
  Z("locationManager")
1519
1519
  ));
@@ -1895,17 +1895,17 @@ class ys {
1895
1895
  if (this._isCssVarsBound())
1896
1896
  return m.left(new Ee());
1897
1897
  C || (C = (g) => `--vb-theme-${gt(g)}`);
1898
- const y = (g) => {
1898
+ const q = (g) => {
1899
1899
  Object.entries(a.state()).forEach(([w, _]) => {
1900
1900
  _ && g(w, _);
1901
1901
  });
1902
- }, q = () => {
1903
- y((g, w) => {
1902
+ }, I = () => {
1903
+ q((g, w) => {
1904
1904
  Te(C(g), w);
1905
1905
  });
1906
1906
  };
1907
- return q(), a.state.sub(q), this._isCssVarsBound.set(!0), m.right(() => {
1908
- y(Ve), a.state.unsub(q), this._isCssVarsBound.set(!1);
1907
+ return I(), a.state.sub(I), this._isCssVarsBound.set(!0), m.right(() => {
1908
+ q(Ve), a.state.unsub(I), this._isCssVarsBound.set(!1);
1909
1909
  });
1910
1910
  }), this.mountFp = b(f.mount), this.unmount = f.unmount, this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp), this.mount = /* @__PURE__ */ h(this.mountFp);
1911
1911
  }
@@ -2167,28 +2167,28 @@ class Is {
2167
2167
  onChange: e.set
2168
2168
  });
2169
2169
  this.state = k.state;
2170
- const C = (_) => be(_) ? _ : P(p)[_], y = (_) => S(() => C(_()));
2170
+ const C = (_) => be(_) ? _ : P(p)[_], q = (_) => S(() => C(_()));
2171
2171
  this.isActive = k.getter("isActive"), this.isSupported = S(() => [
2172
2172
  "web_app_set_header_color",
2173
2173
  "web_app_set_background_color",
2174
2174
  "web_app_set_bottom_bar_color"
2175
2175
  ].some((_) => te(_, P(r))));
2176
- const q = O(!1);
2177
- this.isCssVarsBound = S(q), this.bindCssVarsFp = A((_) => {
2178
- if (q())
2176
+ const I = O(!1);
2177
+ this.isCssVarsBound = S(I), this.bindCssVarsFp = A((_) => {
2178
+ if (I())
2179
2179
  return m.left(new Ee());
2180
2180
  const [x, V] = qe(() => {
2181
- q.set(!1);
2181
+ I.set(!1);
2182
2182
  }), R = (H, $) => {
2183
2183
  const W = () => {
2184
2184
  Te(H, $() || null);
2185
2185
  };
2186
2186
  W(), x($.sub(W), Ve.bind(null, H));
2187
2187
  };
2188
- return _ || (_ = (H) => `--tg-${We(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), q.set(!0), m.right(V);
2188
+ return _ || (_ = (H) => `--tg-${We(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(V);
2189
2189
  }, { isVBma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp);
2190
2190
  const g = (_) => {
2191
- const x = k.getter(_), V = y(x), R = {
2191
+ const x = k.getter(_), V = q(x), R = {
2192
2192
  headerColor: "web_app_set_header_color",
2193
2193
  bgColor: "web_app_set_background_color",
2194
2194
  bottomBarColor: "web_app_set_bottom_bar_color"
@@ -2254,7 +2254,7 @@ function Es() {
2254
2254
  ...c.pipe(
2255
2255
  v(),
2256
2256
  T,
2257
- I,
2257
+ y,
2258
2258
  Z("miniApp")
2259
2259
  ),
2260
2260
  offVisibilityChanged(n) {
@@ -2287,14 +2287,13 @@ class xs {
2287
2287
  * @see sendFp
2288
2288
  */
2289
2289
  t(this, "send");
2290
- this.isSupported = U("web_app_send_notification", e || "6.0");
2291
2290
  const r = E({
2292
- isVBma: s,
2293
2291
  version: e,
2292
+ isVBma: s,
2294
2293
  requires: "web_app_send_notification",
2295
2294
  returns: "task"
2296
2295
  });
2297
- this.sendFp = r((i) => c.pipe(
2296
+ this.isSupported = U("web_app_send_notification", e), this.sendFp = r((i) => c.pipe(
2298
2297
  u.fromEither(ye("web_app_send_notification", {
2299
2298
  id: As(),
2300
2299
  message: i.message,
@@ -2311,7 +2310,7 @@ class xs {
2311
2310
  }
2312
2311
  }
2313
2312
  function Ms() {
2314
- return new xs(c.pipe(v()));
2313
+ return new xs(c.pipe(v(), y));
2315
2314
  }
2316
2315
  const Tn = /* @__PURE__ */ Ms();
2317
2316
  function Rs(n) {
@@ -2403,7 +2402,7 @@ class Ts {
2403
2402
  }
2404
2403
  }
2405
2404
  function Vs() {
2406
- return new Ts(c.pipe(v(), L, I));
2405
+ return new Ts(c.pipe(v(), L, y));
2407
2406
  }
2408
2407
  const Vn = /* @__PURE__ */ Vs();
2409
2408
  function Ls({ request: n, ...e }) {
@@ -2416,7 +2415,7 @@ function Ls({ request: n, ...e }) {
2416
2415
  function $s() {
2417
2416
  return Ls(c.pipe(
2418
2417
  v(),
2419
- I,
2418
+ y,
2420
2419
  L
2421
2420
  ));
2422
2421
  }
@@ -2493,7 +2492,7 @@ function Ps({
2493
2492
  // @__NO_SIDE_EFFECTS__
2494
2493
  function Hs() {
2495
2494
  return Ps({
2496
- ...c.pipe(v(), Re, I),
2495
+ ...c.pipe(v(), Re, y),
2497
2496
  requestPhoneAccess: nt
2498
2497
  });
2499
2498
  }
@@ -2506,7 +2505,7 @@ function Os({ requestContact: n, ...e }) {
2506
2505
  // @__NO_SIDE_EFFECTS__
2507
2506
  function Ds() {
2508
2507
  return Os({
2509
- ...c.pipe(v(), I),
2508
+ ...c.pipe(v(), y),
2510
2509
  requestContact(n) {
2511
2510
  return c.pipe(
2512
2511
  it(n),
@@ -2526,7 +2525,7 @@ function Gs({ request: n, ...e }) {
2526
2525
  function Us() {
2527
2526
  return Gs(c.pipe(
2528
2527
  v(),
2529
- I,
2528
+ y,
2530
2529
  L
2531
2530
  ));
2532
2531
  }
@@ -2636,20 +2635,20 @@ class Qs {
2636
2635
  f() ? u.left(new Be("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: b.text }),
2637
2636
  u.chainW(() => {
2638
2637
  f.set(!0);
2639
- const [k, C] = qe(), y = (q) => (C(), f.set(!1), q);
2638
+ const [k, C] = qe(), q = (I) => (C(), f.set(!1), I);
2640
2639
  return c.pipe(
2641
- we((q) => {
2640
+ we((I) => {
2642
2641
  k(
2643
2642
  // The scanner was closed externally.
2644
- s(q),
2643
+ s(I),
2645
2644
  // The scanner was closed internally.
2646
2645
  f.sub((g) => {
2647
- g || q();
2646
+ g || I();
2648
2647
  }),
2649
2648
  r(b.onCaptured)
2650
2649
  );
2651
2650
  }, b),
2652
- u.mapBoth(y, y)
2651
+ u.mapBoth(q, q)
2653
2652
  );
2654
2653
  })
2655
2654
  )), this.open = /* @__PURE__ */ h(this.openFp), this.capture = /* @__PURE__ */ h(this.captureFp), this.close = /* @__PURE__ */ h(this.closeFp);
@@ -2657,7 +2656,7 @@ class Qs {
2657
2656
  }
2658
2657
  function Ks() {
2659
2658
  return new Qs({
2660
- ...c.pipe(v(), T, I),
2659
+ ...c.pipe(v(), T, y),
2661
2660
  onClosed(n) {
2662
2661
  return j("scan_qr_popup_closed", n);
2663
2662
  },
@@ -3075,7 +3074,7 @@ class Zs {
3075
3074
  function Xs() {
3076
3075
  return new Zs(c.pipe(
3077
3076
  v(),
3078
- I,
3077
+ y,
3079
3078
  L,
3080
3079
  et
3081
3080
  ));
@@ -3239,11 +3238,11 @@ class tr {
3239
3238
  isMounted: l.isMounted,
3240
3239
  returns: "either"
3241
3240
  }), k = (C) => {
3242
- const y = { isVerticalEnabled: C };
3243
- return a.hasDiff(y) ? c.pipe(
3241
+ const q = { isVerticalEnabled: C };
3242
+ return a.hasDiff(q) ? c.pipe(
3244
3243
  e("web_app_setup_swipe_behavior", { allow_vertical_swipe: C }),
3245
3244
  m.map(() => {
3246
- a.setState(y);
3245
+ a.setState(q);
3247
3246
  })
3248
3247
  ) : m.right(void 0);
3249
3248
  };
@@ -3258,7 +3257,7 @@ function sr() {
3258
3257
  return new tr(c.pipe(
3259
3258
  v(),
3260
3259
  T,
3261
- I,
3260
+ y,
3262
3261
  Z("swipeBehavior")
3263
3262
  ));
3264
3263
  }
@@ -3293,7 +3292,7 @@ function nr() {
3293
3292
  return rr(c.pipe(
3294
3293
  v(),
3295
3294
  L,
3296
- I
3295
+ y
3297
3296
  ));
3298
3297
  }
3299
3298
  const ir = /* @__PURE__ */ nr(), Kn = /* @__PURE__ */ h(ir);
@@ -3314,7 +3313,7 @@ function ar() {
3314
3313
  return or(c.pipe(
3315
3314
  v(),
3316
3315
  Re,
3317
- I
3316
+ y
3318
3317
  ));
3319
3318
  }
3320
3319
  const cr = /* @__PURE__ */ ar(), zn = /* @__PURE__ */ h(cr);
@@ -3326,7 +3325,7 @@ function ur() {
3326
3325
  return pr(c.pipe(
3327
3326
  v(),
3328
3327
  T,
3329
- I
3328
+ y
3330
3329
  ));
3331
3330
  }
3332
3331
  const lr = /* @__PURE__ */ ur(), Nn = /* @__PURE__ */ h(lr);
@@ -3348,7 +3347,7 @@ function hr() {
3348
3347
  return dr({
3349
3348
  ...c.pipe(
3350
3349
  v(),
3351
- I,
3350
+ y,
3352
3351
  L
3353
3352
  ),
3354
3353
  createRequestId: Me
@@ -3405,7 +3404,7 @@ function Fr() {
3405
3404
  return wr(c.pipe(
3406
3405
  v(),
3407
3406
  L,
3408
- I
3407
+ y
3409
3408
  ));
3410
3409
  }
3411
3410
  const Sr = /* @__PURE__ */ Fr(), Xn = /* @__PURE__ */ h(Sr);
@@ -3421,7 +3420,7 @@ function vr() {
3421
3420
  return Cr(c.pipe(
3422
3421
  v(),
3423
3422
  T,
3424
- I
3423
+ y
3425
3424
  ));
3426
3425
  }
3427
3426
  const kr = /* @__PURE__ */ vr(), ei = /* @__PURE__ */ h(kr), ke = /* @__PURE__ */ oe(!1);
@@ -3443,7 +3442,7 @@ function qr() {
3443
3442
  ...c.pipe(
3444
3443
  v(),
3445
3444
  T,
3446
- I
3445
+ y
3447
3446
  ),
3448
3447
  isInlineMode: ke
3449
3448
  });
@@ -3464,8 +3463,8 @@ class Er {
3464
3463
  request: b,
3465
3464
  isViewportStable: k,
3466
3465
  isFullscreen: C,
3467
- isVBma: y,
3468
- version: q,
3466
+ isVBma: q,
3467
+ version: I,
3469
3468
  postEvent: g
3470
3469
  }) {
3471
3470
  //#region Other properties.
@@ -3683,7 +3682,7 @@ class Er {
3683
3682
  initialState(B) {
3684
3683
  const X = (K) => () => {
3685
3684
  const [J, D] = K === "safe-area" ? ["web_app_request_safe_area", "safe_area_changed"] : ["web_app_request_content_safe_area", "content_safe_area_changed"];
3686
- return te(J, P(q)) ? b(J, D, B) : u.right({ top: 0, left: 0, right: 0, bottom: 0 });
3685
+ return te(J, P(I)) ? b(J, D, B) : u.right({ top: 0, left: 0, right: 0, bottom: 0 });
3687
3686
  }, M = (K) => () => typeof K == "boolean" ? u.right(K) : u.fromEither(K());
3688
3687
  return c.pipe(
3689
3688
  u.Do,
@@ -3719,13 +3718,13 @@ class Er {
3719
3718
  restoreState: e.get
3720
3719
  }), W = (B) => S(() => this.safeAreaInsets()[B]), ae = (B) => S(() => this.contentSafeAreaInsets()[B]);
3721
3720
  this.state = _.state, this.height = _.getter("height"), this.stableHeight = _.getter("stableHeight"), this.width = _.getter("width"), this.isExpanded = _.getter("isExpanded"), this.safeAreaInsets = _.getter("safeAreaInsets"), this.safeAreaInsetTop = W("top"), this.safeAreaInsetBottom = W("bottom"), this.safeAreaInsetLeft = W("left"), this.safeAreaInsetRight = W("right"), this.contentSafeAreaInsets = _.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = ae("top"), this.contentSafeAreaInsetBottom = ae("bottom"), this.contentSafeAreaInsetLeft = ae("left"), this.contentSafeAreaInsetRight = ae("right");
3722
- const ot = E({ isVBma: y, returns: "task" }), Le = E({
3723
- isVBma: y,
3721
+ const ot = E({ isVBma: q, returns: "task" }), Le = E({
3722
+ isVBma: q,
3724
3723
  returns: "either"
3725
3724
  }), at = E({
3726
- isVBma: y,
3725
+ isVBma: q,
3727
3726
  requires: "web_app_request_fullscreen",
3728
- version: q,
3727
+ version: I,
3729
3728
  returns: "task"
3730
3729
  }), $e = (B) => at((X) => c.pipe(
3731
3730
  b(
@@ -3791,7 +3790,7 @@ function Br() {
3791
3790
  ...c.pipe(
3792
3791
  v(),
3793
3792
  Z("viewport"),
3794
- I,
3793
+ y,
3795
3794
  T,
3796
3795
  L
3797
3796
  ),