promogame-player 0.0.30 → 0.0.32

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.
@@ -175,19 +175,19 @@ function ut(t) {
175
175
  t.debug = ut("debug"), t.log = ut("log"), t.warn = ut("warn"), t.error = ut("error");
176
176
  })(me || (me = {}));
177
177
  var hr = "3.13.8";
178
- function X(t) {
178
+ function Z(t) {
179
179
  try {
180
180
  return t();
181
181
  } catch {
182
182
  }
183
183
  }
184
- const Ut = X(function() {
184
+ const Ut = Z(function() {
185
185
  return globalThis;
186
- }) || X(function() {
186
+ }) || Z(function() {
187
187
  return window;
188
- }) || X(function() {
188
+ }) || Z(function() {
189
189
  return self;
190
- }) || X(function() {
190
+ }) || Z(function() {
191
191
  return global;
192
192
  }) || // We don't expect the Function constructor ever to be invoked at runtime, as
193
193
  // long as at least one of globalThis, window, self, or global is defined, so
@@ -195,8 +195,8 @@ const Ut = X(function() {
195
195
  // detect syntactic usage of the Function constructor. If you think you can
196
196
  // improve your static analysis to detect this obfuscation, think again. This
197
197
  // is an arms race you cannot win, at least not in JavaScript.
198
- X(function() {
199
- return X.constructor("return this")();
198
+ Z(function() {
199
+ return Z.constructor("return this")();
200
200
  });
201
201
  var zr = /* @__PURE__ */ new Map();
202
202
  function $t(t) {
@@ -595,7 +595,7 @@ const Fa = [
595
595
  "\\u009E",
596
596
  "\\u009F"
597
597
  ], Et = Object.freeze({});
598
- function Z(t, e, r = Xn) {
598
+ function K(t, e, r = Xn) {
599
599
  const n = /* @__PURE__ */ new Map();
600
600
  for (const v of Object.values(N))
601
601
  n.set(v, Ra(e, v));
@@ -670,7 +670,7 @@ function Ra(t, e) {
670
670
  };
671
671
  }
672
672
  function Ca(t) {
673
- return Z(t, Pa);
673
+ return K(t, Pa);
674
674
  }
675
675
  const Ma = 80, Pa = {
676
676
  Name: {
@@ -702,7 +702,7 @@ const Ma = 80, Pa = {
702
702
  leave: ({ variable: t, type: e, defaultValue: r, directives: n }) => t + ": " + e + I(" = ", r) + I(" ", T(n, " "))
703
703
  },
704
704
  SelectionSet: {
705
- leave: ({ selections: t }) => Y(t)
705
+ leave: ({ selections: t }) => X(t)
706
706
  },
707
707
  Field: {
708
708
  leave({ alias: t, name: e, arguments: r, directives: n, selectionSet: i }) {
@@ -783,7 +783,7 @@ const Ma = 80, Pa = {
783
783
  // Type System Definitions
784
784
  SchemaDefinition: {
785
785
  leave: ({ description: t, directives: e, operationTypes: r }) => I("", t, `
786
- `) + T(["schema", T(e, " "), Y(r)], " ")
786
+ `) + T(["schema", T(e, " "), X(r)], " ")
787
787
  },
788
788
  OperationTypeDefinition: {
789
789
  leave: ({ operation: t, type: e }) => t + ": " + e
@@ -800,7 +800,7 @@ const Ma = 80, Pa = {
800
800
  e,
801
801
  I("implements ", T(r, " & ")),
802
802
  T(n, " "),
803
- Y(i)
803
+ X(i)
804
804
  ],
805
805
  " "
806
806
  )
@@ -827,7 +827,7 @@ const Ma = 80, Pa = {
827
827
  e,
828
828
  I("implements ", T(r, " & ")),
829
829
  T(n, " "),
830
- Y(i)
830
+ X(i)
831
831
  ],
832
832
  " "
833
833
  )
@@ -841,7 +841,7 @@ const Ma = 80, Pa = {
841
841
  },
842
842
  EnumTypeDefinition: {
843
843
  leave: ({ description: t, name: e, directives: r, values: n }) => I("", t, `
844
- `) + T(["enum", e, T(r, " "), Y(n)], " ")
844
+ `) + T(["enum", e, T(r, " "), X(n)], " ")
845
845
  },
846
846
  EnumValueDefinition: {
847
847
  leave: ({ description: t, name: e, directives: r }) => I("", t, `
@@ -849,7 +849,7 @@ const Ma = 80, Pa = {
849
849
  },
850
850
  InputObjectTypeDefinition: {
851
851
  leave: ({ description: t, name: e, directives: r, fields: n }) => I("", t, `
852
- `) + T(["input", e, T(r, " "), Y(n)], " ")
852
+ `) + T(["input", e, T(r, " "), X(n)], " ")
853
853
  },
854
854
  DirectiveDefinition: {
855
855
  leave: ({ description: t, name: e, arguments: r, repeatable: n, locations: i }) => I("", t, `
@@ -860,7 +860,7 @@ const Ma = 80, Pa = {
860
860
  },
861
861
  SchemaExtension: {
862
862
  leave: ({ directives: t, operationTypes: e }) => T(
863
- ["extend schema", T(t, " "), Y(e)],
863
+ ["extend schema", T(t, " "), X(e)],
864
864
  " "
865
865
  )
866
866
  },
@@ -874,7 +874,7 @@ const Ma = 80, Pa = {
874
874
  t,
875
875
  I("implements ", T(e, " & ")),
876
876
  T(r, " "),
877
- Y(n)
877
+ X(n)
878
878
  ],
879
879
  " "
880
880
  )
@@ -886,7 +886,7 @@ const Ma = 80, Pa = {
886
886
  t,
887
887
  I("implements ", T(e, " & ")),
888
888
  T(r, " "),
889
- Y(n)
889
+ X(n)
890
890
  ],
891
891
  " "
892
892
  )
@@ -903,17 +903,17 @@ const Ma = 80, Pa = {
903
903
  )
904
904
  },
905
905
  EnumTypeExtension: {
906
- leave: ({ name: t, directives: e, values: r }) => T(["extend enum", t, T(e, " "), Y(r)], " ")
906
+ leave: ({ name: t, directives: e, values: r }) => T(["extend enum", t, T(e, " "), X(r)], " ")
907
907
  },
908
908
  InputObjectTypeExtension: {
909
- leave: ({ name: t, directives: e, fields: r }) => T(["extend input", t, T(e, " "), Y(r)], " ")
909
+ leave: ({ name: t, directives: e, fields: r }) => T(["extend input", t, T(e, " "), X(r)], " ")
910
910
  }
911
911
  };
912
912
  function T(t, e = "") {
913
913
  var r;
914
914
  return (r = t == null ? void 0 : t.filter((n) => n).join(e)) !== null && r !== void 0 ? r : "";
915
915
  }
916
- function Y(t) {
916
+ function X(t) {
917
917
  return I(`{
918
918
  `, lt(T(t, `
919
919
  `)), `
@@ -943,7 +943,7 @@ function at(t, e) {
943
943
  }
944
944
  function tt(t, e, r) {
945
945
  var n = new Set(t), i = n.size;
946
- return Z(e, {
946
+ return K(e, {
947
947
  Directive: function(a) {
948
948
  if (n.delete(a.name.value) && (!r || !n.size))
949
949
  return Et;
@@ -984,7 +984,7 @@ function ja(t) {
984
984
  return globalThis.__DEV__ !== !1 && i && (i.value.kind === N.VARIABLE ? globalThis.__DEV__ !== !1 && S.warn(82) : i.value.kind !== N.STRING ? globalThis.__DEV__ !== !1 && S.warn(83) : i.value.value !== "migrate" && globalThis.__DEV__ !== !1 && S.warn(84, i.value.value)), i && "value" in i.value && i.value.value === "migrate" ? "migrate" : "unmask";
985
985
  }
986
986
  const qa = () => /* @__PURE__ */ Object.create(null), { forEach: Qa, slice: Jr } = Array.prototype, { hasOwnProperty: Va } = Object.prototype;
987
- class ae {
987
+ class oe {
988
988
  constructor(e = !0, r = qa) {
989
989
  this.weakness = e, this.makeData = r;
990
990
  }
@@ -1021,7 +1021,7 @@ class ae {
1021
1021
  getChildTrie(e) {
1022
1022
  const r = this.mapFor(e, !0);
1023
1023
  let n = r.get(e);
1024
- return n || r.set(e, n = new ae(this.weakness, this.makeData)), n;
1024
+ return n || r.set(e, n = new oe(this.weakness, this.makeData)), n;
1025
1025
  }
1026
1026
  mapFor(e, r) {
1027
1027
  return this.weakness && La(e) ? this.weak || (r ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (r ? this.strong = /* @__PURE__ */ new Map() : void 0);
@@ -1038,9 +1038,9 @@ function La(t) {
1038
1038
  }
1039
1039
  return !1;
1040
1040
  }
1041
- var Kn = X(function() {
1041
+ var Kn = Z(function() {
1042
1042
  return navigator.product;
1043
- }) == "ReactNative", we = typeof WeakMap == "function" && !(Kn && !global.HermesInternal), pr = typeof WeakSet == "function", yr = typeof Symbol == "function" && typeof Symbol.for == "function", wt = yr && Symbol.asyncIterator, ei = typeof X(function() {
1043
+ }) == "ReactNative", we = typeof WeakMap == "function" && !(Kn && !global.HermesInternal), pr = typeof WeakSet == "function", yr = typeof Symbol == "function" && typeof Symbol.for == "function", wt = yr && Symbol.asyncIterator, ei = typeof Z(function() {
1044
1044
  return window.document.createElement;
1045
1045
  }) == "function", za = (
1046
1046
  // Following advice found in this comment from @domenic (maintainer of jsdom):
@@ -1051,7 +1051,7 @@ var Kn = X(function() {
1051
1051
  // at the end of the user agent string, I believe this case is all we need to
1052
1052
  // check. Testing for "Node.js" was recommended for backwards compatibility
1053
1053
  // with older version of jsdom, but we don't have that problem.
1054
- X(function() {
1054
+ Z(function() {
1055
1055
  return navigator.userAgent.indexOf("jsdom") >= 0;
1056
1056
  }) || !1
1057
1057
  ), Wa = (ei || Kn) && !za;
@@ -1114,7 +1114,7 @@ function Ot(t, e) {
1114
1114
  }
1115
1115
  function Ua(t) {
1116
1116
  var e = !0;
1117
- return Z(t, {
1117
+ return K(t, {
1118
1118
  FragmentSpread: function(r) {
1119
1119
  if (e = !!r.directives && r.directives.some(function(n) {
1120
1120
  return n.name.value === "unmask";
@@ -1492,7 +1492,7 @@ function St(t, e) {
1492
1492
  }
1493
1493
  return null;
1494
1494
  }
1495
- function ie(t) {
1495
+ function ae(t) {
1496
1496
  return t.alias ? t.alias.value : t.name.value;
1497
1497
  }
1498
1498
  function Xt(t, e, r) {
@@ -1500,7 +1500,7 @@ function Xt(t, e, r) {
1500
1500
  var o = a[i];
1501
1501
  if (he(o)) {
1502
1502
  if (o.name.value === "__typename")
1503
- return t[ie(o)];
1503
+ return t[ae(o)];
1504
1504
  } else n ? n.push(o) : n = [o];
1505
1505
  }
1506
1506
  if (typeof t.__typename == "string")
@@ -1850,7 +1850,7 @@ function gi(t) {
1850
1850
  }
1851
1851
  let en;
1852
1852
  function Po(...t) {
1853
- return (en || (en = new ae(typeof WeakMap == "function"))).lookupArray(t);
1853
+ return (en || (en = new oe(typeof WeakMap == "function"))).lookupArray(t);
1854
1854
  }
1855
1855
  const Mt = /* @__PURE__ */ new Set();
1856
1856
  function nt(t, { max: e = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = Po, normalizeResult: i, subscribe: a, cache: o = Gt } = /* @__PURE__ */ Object.create(null)) {
@@ -1924,7 +1924,7 @@ var bi = (
1924
1924
  }, t.prototype.resetCache = function() {
1925
1925
  var e = this;
1926
1926
  if (this.cached) {
1927
- var r = new ae(we);
1927
+ var r = new oe(we);
1928
1928
  this.performWork = nt(t.prototype.performWork.bind(this), {
1929
1929
  makeCacheKey: function(n) {
1930
1930
  var i = e.getCacheKey(n);
@@ -2038,7 +2038,7 @@ function Ei(t, e) {
2038
2038
  if (u(v.directives))
2039
2039
  return f = !0, null;
2040
2040
  }
2041
- }, h = Z(e, {
2041
+ }, h = K(e, {
2042
2042
  // These two AST node types share the same implementation, defined above.
2043
2043
  Field: l,
2044
2044
  InlineFragment: l,
@@ -2120,7 +2120,7 @@ function Ei(t, e) {
2120
2120
  return null;
2121
2121
  }
2122
2122
  };
2123
- return Ao(Z(h, {
2123
+ return Ao(K(h, {
2124
2124
  // If the fragment is going to be removed, then leaving any dangling
2125
2125
  // FragmentSpread nodes with the same name would be a mistake.
2126
2126
  FragmentSpread: g,
@@ -2143,7 +2143,7 @@ function Ei(t, e) {
2143
2143
  }));
2144
2144
  }
2145
2145
  var Or = Object.assign(function(t) {
2146
- return Z(t, {
2146
+ return K(t, {
2147
2147
  SelectionSet: {
2148
2148
  enter: function(e, r, n) {
2149
2149
  if (!(n && n.kind === N.OPERATION_DEFINITION)) {
@@ -2173,7 +2173,7 @@ function jo(t) {
2173
2173
  var e = ot(t), r = e.operation;
2174
2174
  if (r === "query")
2175
2175
  return t;
2176
- var n = Z(t, {
2176
+ var n = K(t, {
2177
2177
  OperationDefinition: {
2178
2178
  enter: function(i) {
2179
2179
  return p(p({}, i), { operation: "query" });
@@ -2195,7 +2195,7 @@ function wi(t) {
2195
2195
  return e;
2196
2196
  }
2197
2197
  function qo(t) {
2198
- return Ve(t), Z(t, {
2198
+ return Ve(t), K(t, {
2199
2199
  FragmentSpread: function(e) {
2200
2200
  var r;
2201
2201
  if (!(!((r = e.directives) === null || r === void 0) && r.some(function(n) {
@@ -2962,7 +2962,7 @@ function is(t) {
2962
2962
  }
2963
2963
  function as(t, e) {
2964
2964
  var r = p({}, t), n = new Set(Object.keys(t));
2965
- return Z(e, {
2965
+ return K(e, {
2966
2966
  Variable: function(i, a, o) {
2967
2967
  o && o.kind !== "VariableDefinition" && n.delete(i.name.value);
2968
2968
  }
@@ -3381,7 +3381,7 @@ function Cs(t, e) {
3381
3381
  var c = s.indexOf("?") === -1 ? "?" : "&", f = s + c + r.join("&") + o;
3382
3382
  return { newURI: f };
3383
3383
  }
3384
- var dn = X(function() {
3384
+ var dn = Z(function() {
3385
3385
  return fetch;
3386
3386
  }), Mi = function(t) {
3387
3387
  t === void 0 && (t = {});
@@ -3422,11 +3422,11 @@ var dn = X(function() {
3422
3422
  }, j = J(ot(d.query)), U = tt(["defer"], d.query);
3423
3423
  if (u && !d.query.definitions.some(B) && (k.method = "GET"), U || j) {
3424
3424
  k.headers = k.headers || {};
3425
- var K = "multipart/mixed;";
3426
- j && U && globalThis.__DEV__ !== !1 && S.warn(41), j ? K += "boundary=graphql;subscriptionSpec=1.0,application/json" : U && (K += "deferSpec=20220824,application/json"), k.headers.accept = K;
3425
+ var Y = "multipart/mixed;";
3426
+ j && U && globalThis.__DEV__ !== !1 && S.warn(41), j ? Y += "boundary=graphql;subscriptionSpec=1.0,application/json" : U && (Y += "deferSpec=20220824,application/json"), k.headers.accept = Y;
3427
3427
  }
3428
3428
  if (k.method === "GET") {
3429
- var oe = Cs(y, R), Oe = oe.newURI, Se = oe.parseError;
3429
+ var ie = Cs(y, R), Oe = ie.newURI, Se = ie.parseError;
3430
3430
  if (Se)
3431
3431
  return At(Se);
3432
3432
  y = Oe;
@@ -3437,7 +3437,7 @@ var dn = X(function() {
3437
3437
  return At($);
3438
3438
  }
3439
3439
  return new P(function($) {
3440
- var ca = n || X(function() {
3440
+ var ca = n || Z(function() {
3441
3441
  return fetch;
3442
3442
  }) || dn, Ar = $.next.bind($);
3443
3443
  return ca(y, k).then(function(Te) {
@@ -3592,7 +3592,7 @@ function vt(t, e, r, n) {
3592
3592
  if (i.has(a) || (i.add(a), !at(a, n.variables)) || gn(a))
3593
3593
  return !0;
3594
3594
  if (he(a)) {
3595
- var o = ie(a), s = e && e[o], u = r && r[o], c = a.selectionSet;
3595
+ var o = ae(a), s = e && e[o], u = r && r[o], c = a.selectionSet;
3596
3596
  if (!c)
3597
3597
  return C(s, u);
3598
3598
  var f = Array.isArray(s), l = Array.isArray(u);
@@ -3663,7 +3663,7 @@ function He(t, e, r, n, i) {
3663
3663
  for (var y = 0, m = e.selections; y < m.length; y++) {
3664
3664
  var g = m[y], v = void 0;
3665
3665
  if (n && o.add(s), g.kind === N.FIELD) {
3666
- var b = ie(g), _ = g.selectionSet;
3666
+ var b = ae(g), _ = g.selectionSet;
3667
3667
  if (v = s[b] || t[b], v === void 0)
3668
3668
  continue;
3669
3669
  if (_ && v !== null) {
@@ -3884,7 +3884,7 @@ function or(t, e, r) {
3884
3884
  return or(t, n, r);
3885
3885
  }) : t.selections.every(function(n) {
3886
3886
  if (he(n) && at(n, r)) {
3887
- var i = ie(n);
3887
+ var i = ae(n);
3888
3888
  return V.call(e, i) && (!n.selectionSet || or(n.selectionSet, e[i], r));
3889
3889
  }
3890
3890
  return !0;
@@ -4104,7 +4104,7 @@ var pt = /* @__PURE__ */ Object.create(null), xt = function() {
4104
4104
  r === void 0 && (r = null), this.caching = e, this.parent = r, this.d = null, this.resetCaching();
4105
4105
  }
4106
4106
  return t.prototype.resetCaching = function() {
4107
- this.d = this.caching ? gi() : null, this.keyMaker = new ae(we);
4107
+ this.d = this.caching ? gi() : null, this.keyMaker = new oe(we);
4108
4108
  }, t.prototype.depend = function(e, r) {
4109
4109
  if (this.d) {
4110
4110
  this.d(jt(e, r));
@@ -4139,7 +4139,7 @@ function En(t, e) {
4139
4139
  ne(n, r);
4140
4140
  function n(i) {
4141
4141
  var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, u = i.seed, c = r.call(this, a, new $i(s)) || this;
4142
- return c.stump = new Bs(c), c.storageTrie = new ae(we), u && c.replace(u), c;
4142
+ return c.stump = new Bs(c), c.storageTrie = new oe(we), u && c.replace(u), c;
4143
4143
  }
4144
4144
  return n.prototype.addLayer = function(i, a) {
4145
4145
  return this.stump.addLayer(i, a);
@@ -4219,7 +4219,7 @@ var wn = (
4219
4219
  /** @class */
4220
4220
  function() {
4221
4221
  function t() {
4222
- this.known = new (pr ? WeakSet : Set)(), this.pool = new ae(we), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
4222
+ this.known = new (pr ? WeakSet : Set)(), this.pool = new oe(we), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
4223
4223
  }
4224
4224
  return t.prototype.isKnown = function(e) {
4225
4225
  return q(e) && this.known.has(e);
@@ -4381,7 +4381,7 @@ var Hs = (
4381
4381
  field: _,
4382
4382
  variables: o.variables,
4383
4383
  from: i
4384
- }, o), D = ie(_);
4384
+ }, o), D = ae(_);
4385
4385
  O === void 0 ? Or.added(_) || (h = d.merge(h, (E = {}, E[D] = "Can't find field '".concat(_.name.value, "' on ").concat(M(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), E))) : Q(O) ? O.length > 0 && (O = y(r.executeSubSelectedArray({
4386
4386
  field: _,
4387
4387
  array: O,
@@ -4929,7 +4929,7 @@ var ru = (
4929
4929
  o,
4930
4930
  f
4931
4931
  ).forEach(function(_, E) {
4932
- var w, O = ie(E), D = i[O];
4932
+ var w, O = ae(E), D = i[O];
4933
4933
  if (h.add(E), D !== void 0) {
4934
4934
  var k = u.getStoreFieldName({
4935
4935
  typename: f,
@@ -4955,7 +4955,7 @@ var ru = (
4955
4955
  } else globalThis.__DEV__ !== !1 && !_.clientOnly && !_.deferred && !Or.added(E) && // If the field has a read function, it may be a synthetic field or
4956
4956
  // provide a default value, so its absence from the written data should
4957
4957
  // not be cause for alarm.
4958
- !u.getReadFunction(f, E.name.value) && globalThis.__DEV__ !== !1 && S.error(13, ie(E), i);
4958
+ !u.getReadFunction(f, E.name.value) && globalThis.__DEV__ !== !1 && S.error(13, ae(E), i);
4959
4959
  });
4960
4960
  try {
4961
4961
  var d = u.identify(i, {
@@ -5000,7 +5000,7 @@ var ru = (
5000
5000
  });
5001
5001
  }, t.prototype.flattenFields = function(e, r, n, i) {
5002
5002
  i === void 0 && (i = Xt(r, e, n.fragmentMap));
5003
- var a = /* @__PURE__ */ new Map(), o = this.cache.policies, s = new ae(!1);
5003
+ var a = /* @__PURE__ */ new Map(), o = this.cache.policies, s = new oe(!1);
5004
5004
  return function u(c, f) {
5005
5005
  var l = s.lookup(
5006
5006
  c,
@@ -5819,7 +5819,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
5819
5819
  this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new mr(
5820
5820
  re["queryManager.getDocumentInfo"] || 2e3
5821
5821
  /* defaultCacheSizes["queryManager.getDocumentInfo"] */
5822
- ), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new ae(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
5822
+ ), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new oe(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
5823
5823
  var n = new bi(
5824
5824
  function(a) {
5825
5825
  return r.cache.transformDocument(a);
@@ -6521,7 +6521,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
6521
6521
  });
6522
6522
  }, t.prototype.shouldForceResolvers = function(e) {
6523
6523
  var r = !1;
6524
- return Z(e, {
6524
+ return K(e, {
6525
6525
  Directive: {
6526
6526
  enter: function(n) {
6527
6527
  if (n.name.value === "client" && n.arguments && (r = n.arguments.some(function(i) {
@@ -6574,7 +6574,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
6574
6574
  /*return*/
6575
6575
  ] : at(h, s) ? he(h) ? [2, this.resolveField(h, r, n, i).then(function(g) {
6576
6576
  var v;
6577
- typeof g < "u" && u.push((v = {}, v[ie(h)] = g, v));
6577
+ typeof g < "u" && u.push((v = {}, v[ae(h)] = g, v));
6578
6578
  })] : (wo(h) ? d = h : (d = a[h.name.value], S(d, 19, h.name.value)), d && d.typeCondition && (y = d.typeCondition.name.value, i.fragmentMatcher(n, y, o)) ? [2, this.resolveSelectionSet(d.selectionSet, r, n, i).then(function(g) {
6579
6579
  u.push(g);
6580
6580
  })] : [
@@ -6595,7 +6595,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
6595
6595
  return ue(this, void 0, void 0, function() {
6596
6596
  var a, o, s, u, c, f, l, h, d, y = this;
6597
6597
  return ce(this, function(m) {
6598
- return n ? (a = i.variables, o = e.name.value, s = ie(e), u = o !== s, c = n[s] || n[o], f = Promise.resolve(c), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (l = n.__typename || i.defaultOperationType, h = this.resolvers && this.resolvers[l], h && (d = h[u ? o : s], d && (f = Promise.resolve(
6598
+ return n ? (a = i.variables, o = e.name.value, s = ae(e), u = o !== s, c = n[s] || n[o], f = Promise.resolve(c), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (l = n.__typename || i.defaultOperationType, h = this.resolvers && this.resolvers[l], h && (d = h[u ? o : s], d && (f = Promise.resolve(
6599
6599
  // In case the resolve function accesses reactive variables,
6600
6600
  // set cacheSlot to the current cache instance.
6601
6601
  Rr.withValue(this.cache, d, [
@@ -6639,7 +6639,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
6639
6639
  function a(o) {
6640
6640
  if (!i.has(o)) {
6641
6641
  var s = /* @__PURE__ */ new Set();
6642
- i.set(o, s), Z(o, {
6642
+ i.set(o, s), K(o, {
6643
6643
  Directive: function(u, c, f, l, h) {
6644
6644
  u.name.value === "client" && h.forEach(function(d) {
6645
6645
  n(d) && Hr(d) && s.add(d);
@@ -7360,20 +7360,20 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
7360
7360
  }, g) => {
7361
7361
  var A, B;
7362
7362
  const v = Qr(
7363
- () => e && o && s && u,
7364
- [e, o, s, u]
7363
+ () => e && (o && s && u || n && i),
7364
+ [e, o, s, u, n, i]
7365
7365
  ), b = Qr(() => {
7366
7366
  const J = Mi({
7367
7367
  uri: r
7368
- }), j = Ru((U, { headers: K }) => {
7369
- const oe = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
7370
- return oe ? {
7368
+ }), j = Ru((U, { headers: Y }) => {
7369
+ const ie = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
7370
+ return ie ? {
7371
7371
  headers: {
7372
- ...K,
7373
- authorization: oe ? `Bearer ${oe}` : ""
7372
+ ...Y,
7373
+ authorization: ie ? `Bearer ${ie}` : ""
7374
7374
  }
7375
7375
  } : {
7376
- headers: K
7376
+ headers: Y
7377
7377
  };
7378
7378
  });
7379
7379
  return new ea({
@@ -7390,9 +7390,13 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
7390
7390
  }, [d]), Vr(() => {
7391
7391
  (async () => {
7392
7392
  var J, j, U;
7393
- if (console.log("useEffect"), console.log(w), console.log(window), !w && window)
7393
+ if (!w && window)
7394
7394
  try {
7395
- const K = new URLSearchParams(window.location.search), oe = Object.fromEntries(K.entries()), { data: Oe, errors: Se } = await D({
7395
+ const Y = new URLSearchParams(window.location.search);
7396
+ console.log(Y);
7397
+ const ie = Object.fromEntries(Y.entries());
7398
+ console.log(ie);
7399
+ const { data: Oe, errors: Se } = await D({
7396
7400
  variables: {
7397
7401
  campaignId: e,
7398
7402
  externalUserId: s,
@@ -7400,7 +7404,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
7400
7404
  requestedAt: u,
7401
7405
  authenticateRequestId: n,
7402
7406
  authenticateRequestPassword: i,
7403
- parameters: oe
7407
+ parameters: ie
7404
7408
  }
7405
7409
  });
7406
7410
  console.log(Oe), window.__PROMOGAME_CAMPAIGN_ID = e, window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN = Oe == null ? void 0 : Oe.startAppSession.accessToken, window.__PROMOGAME_ERROR_CODE = (U = (j = (J = Se == null ? void 0 : Se[0]) == null ? void 0 : J.extensions) == null ? void 0 : j.code) == null ? void 0 : U.toString(), O(!0), k({
@@ -7413,8 +7417,8 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
7413
7417
  }).then(() => {
7414
7418
  console.log("Update info success");
7415
7419
  });
7416
- } catch (K) {
7417
- console.error("Failed to start session:", K);
7420
+ } catch (Y) {
7421
+ console.error("Failed to start session:", Y);
7418
7422
  }
7419
7423
  })();
7420
7424
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promogame-player",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",