tanya-chatbot 0.2.3 → 0.2.4

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.
@@ -1,4 +1,4 @@
1
- import { useEffect as lt, forwardRef as mr, useState as L, createElement as fe, useRef as Ot } from "react";
1
+ import { useEffect as lt, forwardRef as mr, useState as L, createElement as fe, useRef as Pt } from "react";
2
2
  import { jsx as l, jsxs as p, Fragment as pe } from "react/jsx-runtime";
3
3
  import { createHttpLink as Xr, ApolloClient as Zr, InMemoryCache as tn, ApolloProvider as en } from "@apollo/client";
4
4
  import { Provider as rn, useDispatch as gr, useSelector as Wt } from "react-redux";
@@ -126,7 +126,7 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
126
126
  return z.isAxiosError(r) ? console.error("Error creating basket:", r.response || r.message) : console.error("Unexpected error:", r), null;
127
127
  }
128
128
  };
129
- async function Nt() {
129
+ async function Ut() {
130
130
  const t = localStorage.getItem("expires_in"), e = localStorage.getItem("access_token"), r = JSON.parse(
131
131
  sessionStorage.getItem("customerData") || "{}"
132
132
  ).isGuest;
@@ -158,8 +158,8 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
158
158
  let n = "";
159
159
  {
160
160
  n = await Se();
161
- const { access_token: o } = await Nt();
162
- console.log("the token from getSearchResults", await Nt()), n = o;
161
+ const o = await Ut();
162
+ console.log("the token from getSearchResults", o), n = o.access_token;
163
163
  }
164
164
  try {
165
165
  const o = ut();
@@ -179,7 +179,7 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
179
179
  if (!t) throw new Error("Product ID is required");
180
180
  const { serverUrl: e, basePath: r } = wt(), n = ut();
181
181
  console.log("calling access");
182
- const { access_token: o } = await Nt();
182
+ const { access_token: o } = await Ut();
183
183
  return console.log(o), (await z.get(
184
184
  `${e}${r}/product-sfcc/${t}?baseUrl=${n}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
185
185
  {
@@ -193,7 +193,7 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
193
193
  if (!t) throw new Error("customerId is required");
194
194
  const e = await Se(), { customer_token: r } = await vr(
195
195
  e
196
- ), { serverUrl: n, basePath: o } = wt(), a = (await Nt()).access_token;
196
+ ), { serverUrl: n, basePath: o } = wt(), a = (await Ut()).access_token;
197
197
  return (await z.get(
198
198
  `${n}${o}/get-interest?baseUrl=${ut()}&customerId=${t}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
199
199
  {
@@ -316,7 +316,7 @@ function vn(t, e) {
316
316
  missing: /* @__PURE__ */ new Set()
317
317
  };
318
318
  }
319
- function Et(t, e) {
319
+ function Nt(t, e) {
320
320
  const r = He[t] || (He[t] = /* @__PURE__ */ Object.create(null));
321
321
  return r[e] || (r[e] = vn(t, e));
322
322
  }
@@ -367,26 +367,26 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
367
367
  }
368
368
  return null;
369
369
  }, Jt = (t, e) => t ? !!((e && t.prefix === "" || t.prefix) && t.name) : !1;
370
- let Mt = !1;
370
+ let zt = !1;
371
371
  function Nr(t) {
372
- return typeof t == "boolean" && (Mt = t), Mt;
372
+ return typeof t == "boolean" && (zt = t), zt;
373
373
  }
374
374
  function Ve(t) {
375
- const e = typeof t == "string" ? ee(t, !0, Mt) : t;
375
+ const e = typeof t == "string" ? ee(t, !0, zt) : t;
376
376
  if (e) {
377
- const r = Et(e.provider, e.prefix), n = e.name;
377
+ const r = Nt(e.provider, e.prefix), n = e.name;
378
378
  return r.icons[n] || (r.missing.has(n) ? null : void 0);
379
379
  }
380
380
  }
381
381
  function Sn(t, e) {
382
- const r = ee(t, !0, Mt);
382
+ const r = ee(t, !0, zt);
383
383
  if (!r) return !1;
384
- const n = Et(r.provider, r.prefix);
384
+ const n = Nt(r.provider, r.prefix);
385
385
  return e ? kn(n, r.name, e) : (n.missing.add(r.name), !0);
386
386
  }
387
387
  function In(t, e) {
388
388
  if (typeof t != "object") return !1;
389
- if (typeof e != "string" && (e = t.provider || ""), Mt && !e && !t.prefix) {
389
+ if (typeof e != "string" && (e = t.provider || ""), zt && !e && !t.prefix) {
390
390
  let o = !1;
391
391
  return Cr(t) && (t.prefix = "", Ir(t, (i, a) => {
392
392
  Sn(i, a) && (o = !0);
@@ -397,7 +397,7 @@ function In(t, e) {
397
397
  prefix: r,
398
398
  name: "a"
399
399
  })) return !1;
400
- const n = Et(e, r);
400
+ const n = Nt(e, r);
401
401
  return !!_r(n, t);
402
402
  }
403
403
  const Er = Object.freeze({
@@ -533,8 +533,8 @@ function Ce(t) {
533
533
  dataAfterTimeout: t.dataAfterTimeout !== !1
534
534
  };
535
535
  }
536
- const _e = /* @__PURE__ */ Object.create(null), jt = ["https://api.simplesvg.com", "https://api.unisvg.com"], Kt = [];
537
- for (; jt.length > 0; ) jt.length === 1 || Math.random() > 0.5 ? Kt.push(jt.shift()) : Kt.push(jt.pop());
536
+ const _e = /* @__PURE__ */ Object.create(null), Ot = ["https://api.simplesvg.com", "https://api.unisvg.com"], Kt = [];
537
+ for (; Ot.length > 0; ) Ot.length === 1 || Math.random() > 0.5 ? Kt.push(Ot.shift()) : Kt.push(Ot.pop());
538
538
  _e[""] = Ce({ resources: ["https://api.iconify.design"].concat(Kt) });
539
539
  function Dn(t, e) {
540
540
  const r = Ce(e);
@@ -705,7 +705,7 @@ function Kn(t) {
705
705
  return t.forEach((o) => {
706
706
  if (n.name === o.name && n.prefix === o.prefix && n.provider === o.provider) return;
707
707
  n = o;
708
- const i = o.provider, a = o.prefix, c = o.name, s = r[i] || (r[i] = /* @__PURE__ */ Object.create(null)), d = s[a] || (s[a] = Et(i, a));
708
+ const i = o.provider, a = o.prefix, c = o.name, s = r[i] || (r[i] = /* @__PURE__ */ Object.create(null)), d = s[a] || (s[a] = Nt(i, a));
709
709
  let f;
710
710
  c in d.icons ? f = e.loaded : a === "" || d.missing.has(c) ? f = e.missing : f = e.pending;
711
711
  const h = {
@@ -907,7 +907,7 @@ function eo(t) {
907
907
  invalid: r
908
908
  };
909
909
  }
910
- function $t(t, e, r) {
910
+ function jt(t, e, r) {
911
911
  function n() {
912
912
  const o = t.pendingIcons;
913
913
  e.forEach((i) => {
@@ -939,7 +939,7 @@ function ro(t, e) {
939
939
  const i = t.loadIcon;
940
940
  if (t.loadIcons && (o.length > 1 || !i)) {
941
941
  We(t.loadIcons(o, n, r), (f) => {
942
- $t(t, o, f);
942
+ jt(t, o, f);
943
943
  });
944
944
  return;
945
945
  }
@@ -951,21 +951,21 @@ function ro(t, e) {
951
951
  prefix: n,
952
952
  icons: { [f]: m }
953
953
  } : null;
954
- $t(t, [f], g);
954
+ jt(t, [f], g);
955
955
  });
956
956
  });
957
957
  return;
958
958
  }
959
959
  const { valid: a, invalid: c } = eo(o);
960
- if (c.length && $t(t, c, null), !a.length) return;
960
+ if (c.length && jt(t, c, null), !a.length) return;
961
961
  const s = n.match(Fr) ? we(r) : null;
962
962
  if (!s) {
963
- $t(t, a, null);
963
+ jt(t, a, null);
964
964
  return;
965
965
  }
966
966
  s.prepare(r, n, a).forEach((f) => {
967
967
  Zn(r, f, (h) => {
968
- $t(t, f.icons, h);
968
+ jt(t, f.icons, h);
969
969
  });
970
970
  });
971
971
  }));
@@ -985,11 +985,11 @@ const no = (t, e) => {
985
985
  return n.pending.forEach((s) => {
986
986
  const { provider: d, prefix: f } = s;
987
987
  if (f === c && d === a) return;
988
- a = d, c = f, i.push(Et(d, f));
988
+ a = d, c = f, i.push(Nt(d, f));
989
989
  const h = o[d] || (o[d] = /* @__PURE__ */ Object.create(null));
990
990
  h[f] || (h[f] = []);
991
991
  }), n.pending.forEach((s) => {
992
- const { provider: d, prefix: f, name: h } = s, m = Et(d, f), g = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
992
+ const { provider: d, prefix: f, name: h } = s, m = Nt(d, f), g = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
993
993
  g.has(h) || (g.add(h), o[d][f].push(h));
994
994
  }), i.forEach((s) => {
995
995
  const d = o[s.provider][s.prefix];
@@ -1056,16 +1056,16 @@ function uo(t) {
1056
1056
  function fo(t) {
1057
1057
  return 'url("' + uo(t) + '")';
1058
1058
  }
1059
- let zt;
1059
+ let Dt;
1060
1060
  function po() {
1061
1061
  try {
1062
- zt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
1062
+ Dt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
1063
1063
  } catch {
1064
- zt = null;
1064
+ Dt = null;
1065
1065
  }
1066
1066
  }
1067
1067
  function ho(t) {
1068
- return zt === void 0 && po(), zt ? zt.createHTML(t) : t;
1068
+ return Dt === void 0 && po(), Dt ? Dt.createHTML(t) : t;
1069
1069
  }
1070
1070
  const jr = {
1071
1071
  ...Tr,
@@ -1485,7 +1485,7 @@ const xo = ({
1485
1485
  } catch (a) {
1486
1486
  return z.isAxiosError(a) ? { status: (i = a.response) == null ? void 0 : i.status, data: null } : { status: null, data: null };
1487
1487
  }
1488
- }, er = "sfcc_basket_id", rr = "sfcc_customer_token", Ut = "sfcc_token_expiry", ko = 300 * 1e3, At = "1.0.0";
1488
+ }, er = "sfcc_basket_id", rr = "sfcc_customer_token", Mt = "sfcc_token_expiry", ko = 300 * 1e3, $t = "1.0.0";
1489
1489
  const Ft = (t) => {
1490
1490
  try {
1491
1491
  t ? localStorage.setItem(er, t) : localStorage.removeItem(er);
@@ -1497,7 +1497,7 @@ const Ft = (t) => {
1497
1497
  if (t) {
1498
1498
  localStorage.setItem(rr, t);
1499
1499
  const e = Date.now() + ko;
1500
- localStorage.setItem(Ut, e.toString());
1500
+ localStorage.setItem(Mt, e.toString());
1501
1501
  } else
1502
1502
  localStorage.removeItem(rr);
1503
1503
  } catch (e) {
@@ -1527,13 +1527,13 @@ const Ft = (t) => {
1527
1527
  }
1528
1528
  ];
1529
1529
  console.log(y, "the product data");
1530
- const Pt = JSON.parse(
1530
+ const Tt = JSON.parse(
1531
1531
  sessionStorage.getItem("customerData") || "{}"
1532
- ), ht = Pt == null ? void 0 : Pt.basketId, re = !1, Bt = localStorage.getItem(Ut), rt = Date.now();
1532
+ ), ht = Tt == null ? void 0 : Tt.basketId, re = !1, Bt = localStorage.getItem(Mt), rt = Date.now();
1533
1533
  if (!re || !Bt || rt >= parseInt(Bt)) {
1534
1534
  let R = "";
1535
1535
  {
1536
- const ot = await Nt();
1536
+ const ot = await Ut();
1537
1537
  console.log("token from auth data"), R = "Bearer " + ot.access_token;
1538
1538
  }
1539
1539
  if (!R) {
@@ -1541,7 +1541,7 @@ const Ft = (t) => {
1541
1541
  return;
1542
1542
  }
1543
1543
  const qt = rt + 300 * 1e3;
1544
- if (Zt(R), localStorage.setItem(Ut, qt.toString()), ht) {
1544
+ if (Zt(R), localStorage.setItem(Mt, qt.toString()), ht) {
1545
1545
  const ot = await Dr({
1546
1546
  basketId: ht,
1547
1547
  customer_token: R
@@ -1780,12 +1780,12 @@ const Ft = (t) => {
1780
1780
  "Niece/Nephew": "his/her niece/nephew",
1781
1781
  "My Friends": "his/her friends",
1782
1782
  Others: "others"
1783
- }, n = Ot(null), o = Ot(null), i = Ot(null), a = Ot(null), [c, s] = L(null), [d, f] = L(!1), [h, m] = L(!1), [g, S] = L(!1), [T, w] = L(!1), [k, M] = L(!1), [O, P] = L(!1), [Q, _] = L(""), [j, V] = L(""), X = (u) => ({
1783
+ }, n = Pt(null), o = Pt(null), i = Pt(null), a = Pt(null), [c, s] = L(null), [d, f] = L(!1), [h, m] = L(!1), [g, S] = L(!1), [T, w] = L(!1), [k, M] = L(!1), [O, P] = L(!1), [Q, _] = L(""), [j, V] = L(""), X = (u) => ({
1784
1784
  id: u.id,
1785
1785
  title: u.name,
1786
1786
  image: u.image ?? "",
1787
1787
  price: u.price ?? 0
1788
- }), [U, B] = L([]), yt = Ot(null), y = Wt((u) => u.store.store), Pt = Wt((u) => u.product.product), ht = () => {
1788
+ }), [U, B] = L([]), yt = Pt(null), y = Wt((u) => u.store.store), Tt = Wt((u) => u.product.product), ht = () => {
1789
1789
  S(!0), setTimeout(() => m(!0), 10);
1790
1790
  }, re = () => {
1791
1791
  m(!1), setTimeout(() => S(!1), 300);
@@ -1828,7 +1828,7 @@ const Ft = (t) => {
1828
1828
  return console.error("Error obtaining JWT token:", u), rt = null, R = null, null;
1829
1829
  }
1830
1830
  }, ne = async () => {
1831
- const u = await Nt();
1831
+ const u = await Ut();
1832
1832
  u != null && s(u);
1833
1833
  };
1834
1834
  lt(() => {
@@ -1844,9 +1844,9 @@ const Ft = (t) => {
1844
1844
  ).customerId;
1845
1845
  return (await hn(u || "")).c_interests;
1846
1846
  }, nt = async (u, E) => {
1847
- console.log("in secondary flow", At);
1847
+ console.log("in secondary flow", $t);
1848
1848
  const I = await v();
1849
- if (console.log(I, "interests of customer", At), !!I)
1849
+ if (console.log(I, "interests of customer", $t), !!I)
1850
1850
  try {
1851
1851
  B(
1852
1852
  (K) => K.map(
@@ -2052,7 +2052,7 @@ const Ft = (t) => {
2052
2052
  const E = JSON.parse(
2053
2053
  sessionStorage.getItem("customerData") || "{}"
2054
2054
  );
2055
- (E == null ? void 0 : E.isGuest) == !1 ? (console.log("running secondary flow", At), nt(n.current, 0)) : console.log("not running secondary flow", At);
2055
+ (E == null ? void 0 : E.isGuest) == !1 ? (console.log("running secondary flow", $t), nt(n.current, 0)) : console.log("not running secondary flow", $t);
2056
2056
  }
2057
2057
  P(!1);
2058
2058
  }, Kr = async (u, E) => {
@@ -2073,10 +2073,10 @@ const Ft = (t) => {
2073
2073
  quantity: E
2074
2074
  }
2075
2075
  ];
2076
- console.log(G, "product data", "app version", At);
2076
+ console.log(G, "product data", "app version", $t);
2077
2077
  const $ = JSON.parse(
2078
2078
  sessionStorage.getItem("customerData") || "{}"
2079
- ), q = $ == null ? void 0 : $.basketId, st = !1, Rt = localStorage.getItem(Ut), Ae = Date.now();
2079
+ ), q = $ == null ? void 0 : $.basketId, st = !1, Rt = localStorage.getItem(Mt), Ae = Date.now();
2080
2080
  if (!st || !Rt || Ae >= parseInt(Rt)) {
2081
2081
  const Gr = await Se();
2082
2082
  let { customer_token: mt } = await vr(
@@ -2087,7 +2087,7 @@ const Ft = (t) => {
2087
2087
  return;
2088
2088
  }
2089
2089
  const Wr = Ae + 300 * 1e3;
2090
- if (Zt(mt), localStorage.setItem(Ut, Wr.toString()), q) {
2090
+ if (Zt(mt), localStorage.setItem(Mt, Wr.toString()), q) {
2091
2091
  const Le = await Dr({
2092
2092
  basketId: q,
2093
2093
  customer_token: mt
@@ -2369,7 +2369,7 @@ const Ft = (t) => {
2369
2369
  /* @__PURE__ */ p(
2370
2370
  "div",
2371
2371
  {
2372
- className: `flex flex-col h-full ${Pt ? "lg:w-2/3 w-full" : "w-full"}`,
2372
+ className: `flex flex-col h-full ${Tt ? "lg:w-2/3 w-full" : "w-full"}`,
2373
2373
  children: [
2374
2374
  /* @__PURE__ */ p(
2375
2375
  "div",
@@ -3005,15 +3005,15 @@ function te(t, e) {
3005
3005
  return r;
3006
3006
  }
3007
3007
  }
3008
- function Lt(t) {
3008
+ function At(t) {
3009
3009
  var e = t.constructor;
3010
3010
  return e !== void 0 && (e = e[Rr], e === null && (e = void 0)), e !== void 0 ? e : D;
3011
3011
  }
3012
3012
  function zo(t) {
3013
3013
  return t instanceof D;
3014
3014
  }
3015
- function Tt(t) {
3016
- Tt.log ? Tt.log(t) : setTimeout(function() {
3015
+ function Et(t) {
3016
+ Et.log ? Et.log(t) : setTimeout(function() {
3017
3017
  throw t;
3018
3018
  });
3019
3019
  }
@@ -3022,7 +3022,7 @@ function Gt(t) {
3022
3022
  try {
3023
3023
  t();
3024
3024
  } catch (e) {
3025
- Tt(e);
3025
+ Et(e);
3026
3026
  }
3027
3027
  });
3028
3028
  }
@@ -3037,7 +3037,7 @@ function Hr(t) {
3037
3037
  r && r.call(e);
3038
3038
  }
3039
3039
  } catch (n) {
3040
- Tt(n);
3040
+ Et(n);
3041
3041
  }
3042
3042
  }
3043
3043
  function ke(t) {
@@ -3069,7 +3069,7 @@ function Vr(t, e, r) {
3069
3069
  break;
3070
3070
  }
3071
3071
  } catch (i) {
3072
- Tt(i);
3072
+ Et(i);
3073
3073
  }
3074
3074
  t._state === "closed" ? Hr(t) : t._state === "running" && (t._state = "ready");
3075
3075
  }
@@ -3169,7 +3169,7 @@ var Uo = /* @__PURE__ */ (function() {
3169
3169
  }, e.map = function(n) {
3170
3170
  var o = this;
3171
3171
  if (typeof n != "function") throw new TypeError(n + " is not a function");
3172
- var i = Lt(this);
3172
+ var i = At(this);
3173
3173
  return new i(function(a) {
3174
3174
  return o.subscribe({
3175
3175
  next: function(c) {
@@ -3191,7 +3191,7 @@ var Uo = /* @__PURE__ */ (function() {
3191
3191
  }, e.filter = function(n) {
3192
3192
  var o = this;
3193
3193
  if (typeof n != "function") throw new TypeError(n + " is not a function");
3194
- var i = Lt(this);
3194
+ var i = At(this);
3195
3195
  return new i(function(a) {
3196
3196
  return o.subscribe({
3197
3197
  next: function(c) {
@@ -3213,7 +3213,7 @@ var Uo = /* @__PURE__ */ (function() {
3213
3213
  }, e.reduce = function(n) {
3214
3214
  var o = this;
3215
3215
  if (typeof n != "function") throw new TypeError(n + " is not a function");
3216
- var i = Lt(this), a = arguments.length > 1, c = !1, s = arguments[1], d = s;
3216
+ var i = At(this), a = arguments.length > 1, c = !1, s = arguments[1], d = s;
3217
3217
  return new i(function(f) {
3218
3218
  return o.subscribe({
3219
3219
  next: function(h) {
@@ -3239,7 +3239,7 @@ var Uo = /* @__PURE__ */ (function() {
3239
3239
  }, e.concat = function() {
3240
3240
  for (var n = this, o = arguments.length, i = new Array(o), a = 0; a < o; a++)
3241
3241
  i[a] = arguments[a];
3242
- var c = Lt(this);
3242
+ var c = At(this);
3243
3243
  return new c(function(s) {
3244
3244
  var d, f = 0;
3245
3245
  function h(m) {
@@ -3262,7 +3262,7 @@ var Uo = /* @__PURE__ */ (function() {
3262
3262
  }, e.flatMap = function(n) {
3263
3263
  var o = this;
3264
3264
  if (typeof n != "function") throw new TypeError(n + " is not a function");
3265
- var i = Lt(this);
3265
+ var i = At(this);
3266
3266
  return new i(function(a) {
3267
3267
  var c = [], s = o.subscribe({
3268
3268
  next: function(f) {
@@ -3361,7 +3361,7 @@ var Uo = /* @__PURE__ */ (function() {
3361
3361
  Oe() && Object.defineProperty(D, Symbol("extensions"), {
3362
3362
  value: {
3363
3363
  symbol: ve,
3364
- hostReportError: Tt
3364
+ hostReportError: Et
3365
3365
  },
3366
3366
  configurable: !0
3367
3367
  });
@@ -3435,7 +3435,7 @@ function Wo(t, e) {
3435
3435
  function hr(t, e) {
3436
3436
  return e ? e(t) : D.of();
3437
3437
  }
3438
- function Dt(t) {
3438
+ function Lt(t) {
3439
3439
  return typeof t == "function" ? new Yr(t) : t;
3440
3440
  }
3441
3441
  function Yt(t) {
@@ -3452,11 +3452,11 @@ var Yr = (
3452
3452
  return D.of();
3453
3453
  });
3454
3454
  }, t.from = function(e) {
3455
- return e.length === 0 ? t.empty() : e.map(Dt).reduce(function(r, n) {
3455
+ return e.length === 0 ? t.empty() : e.map(Lt).reduce(function(r, n) {
3456
3456
  return r.concat(n);
3457
3457
  });
3458
3458
  }, t.split = function(e, r, n) {
3459
- var o = Dt(r), i = Dt(n || new t(hr)), a;
3459
+ var o = Lt(r), i = Lt(n || new t(hr)), a;
3460
3460
  return Yt(o) && Yt(i) ? a = new t(function(c) {
3461
3461
  return e(c) ? o.request(c) || D.of() : i.request(c) || D.of();
3462
3462
  }) : a = new t(function(c, s) {
@@ -3465,10 +3465,10 @@ var Yr = (
3465
3465
  }, t.execute = function(e, r) {
3466
3466
  return e.request(Ho(r.context, Vo(Ro(r)))) || D.of();
3467
3467
  }, t.concat = function(e, r) {
3468
- var n = Dt(e);
3468
+ var n = Lt(e);
3469
3469
  if (Yt(n))
3470
3470
  return globalThis.__DEV__ !== !1 && le.warn(47, n), n;
3471
- var o = Dt(r), i;
3471
+ var o = Lt(r), i;
3472
3472
  return Yt(o) ? i = new t(function(a) {
3473
3473
  return n.request(a, function(c) {
3474
3474
  return o.request(c) || D.of();