@ticketapp-dev/shop-sdk 1.0.61 → 1.0.63

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
@@ -1,24 +1,24 @@
1
- import { GraphQLClient as O } from "graphql-request";
2
- import { DateTime as Te } from "luxon";
3
- var T = /* @__PURE__ */ ((e) => (e.PACKAGE = "PACKAGE", e.PRODUCT = "PRODUCT", e.ADD_ONS = "ADD_ONS", e.DELIVERY = "DELIVERY", e.PICKUP = "PICKUP", e))(T || {}), L = /* @__PURE__ */ ((e) => (e.AdditionalEvent = "ADDITIONAL_EVENT", e.Addon = "ADDON", e.Regular = "REGULAR", e))(L || {}), W = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Concept = "CONCEPT", e.Paused = "PAUSED", e.SoldOut = "SOLD_OUT", e))(W || {}), Z = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Inactive = "INACTIVE", e))(Z || {}), K = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Inactive = "INACTIVE", e.Paused = "PAUSED", e.SoldOut = "SOLD_OUT", e))(K || {}), ee = /* @__PURE__ */ ((e) => (e.Asc = "ASC", e.Desc = "DESC", e))(ee || {}), te = /* @__PURE__ */ ((e) => (e.AllReserved = "ALL_RESERVED", e.Available = "AVAILABLE", e.SoldOut = "SOLD_OUT", e))(te || {}), ne = /* @__PURE__ */ ((e) => (e.Addon = "ADDON", e.Delivery = "DELIVERY", e.Door = "DOOR", e.Friend = "FRIEND", e.Guest = "GUEST", e.Pickup = "PICKUP", e.Promoter = "PROMOTER", e.Ticket = "TICKET", e))(ne || {}), re = /* @__PURE__ */ ((e) => (e.FIXED = "FIXED", e.PERCENTAGE = "PERCENTAGE", e))(re || {}), ie = /* @__PURE__ */ ((e) => (e.AddOn = "ADD_ON", e.DeliveryOption = "DELIVERY_OPTION", e.EntranceTicket = "ENTRANCE_TICKET", e))(ie || {}), se = /* @__PURE__ */ ((e) => (e.Fixed = "FIXED", e.Percentage = "PERCENTAGE", e))(se || {}), oe = /* @__PURE__ */ ((e) => (e.Default = "DEFAULT", e.Transparent = "TRANSPARENT", e))(oe || {}), ae = /* @__PURE__ */ ((e) => (e.Calendar = "CALENDAR", e.Large = "LARGE", e.Small = "SMALL", e))(ae || {}), R = /* @__PURE__ */ ((e) => (e.Event = "EVENT", e.Package = "PACKAGE", e))(R || {}), ce = /* @__PURE__ */ ((e) => (e.RADIO_BUTTON = "RADIO_BUTTON", e.DATE = "DATE", e.EMAIL = "EMAIL", e.NUMERIC = "NUMERIC", e.DROPDOWN = "DROPDOWN", e.TEXT = "TEXT", e.TEXT_AREA = "TEXT_AREA", e.TIME = "TIME", e.CHECKBOX = "CHECKBOX", e.PHONE_NUMBER = "PHONE_NUMBER", e))(ce || {}), de = /* @__PURE__ */ ((e) => (e.GENDER = "GENDER", e.FIRST_NAME = "FIRST_NAME", e.LAST_NAME = "LAST_NAME", e.EMAIL = "EMAIL", e.AGE = "AGE", e.RESIDENCE = "RESIDENCE", e.GOOGLE_PLACE = "GOOGLE_PLACE", e))(de || {}), ue = /* @__PURE__ */ ((e) => (e.ONLINE = "ONLINE", e.OFFLINE = "OFFLINE", e))(ue || {});
4
- const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ import { GraphQLClient as T } from "graphql-request";
2
+ import { DateTime as De } from "luxon";
3
+ var O = /* @__PURE__ */ ((e) => (e.PACKAGE = "PACKAGE", e.PRODUCT = "PRODUCT", e.ADD_ONS = "ADD_ONS", e.DELIVERY = "DELIVERY", e.PICKUP = "PICKUP", e))(O || {}), v = /* @__PURE__ */ ((e) => (e.AdditionalEvent = "ADDITIONAL_EVENT", e.Addon = "ADDON", e.Regular = "REGULAR", e))(v || {}), W = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Concept = "CONCEPT", e.Paused = "PAUSED", e.SoldOut = "SOLD_OUT", e))(W || {}), Z = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Inactive = "INACTIVE", e))(Z || {}), K = /* @__PURE__ */ ((e) => (e.Active = "ACTIVE", e.Inactive = "INACTIVE", e.Paused = "PAUSED", e.SoldOut = "SOLD_OUT", e))(K || {}), ee = /* @__PURE__ */ ((e) => (e.Asc = "ASC", e.Desc = "DESC", e))(ee || {}), te = /* @__PURE__ */ ((e) => (e.AllReserved = "ALL_RESERVED", e.Available = "AVAILABLE", e.SoldOut = "SOLD_OUT", e))(te || {}), ne = /* @__PURE__ */ ((e) => (e.Addon = "ADDON", e.Delivery = "DELIVERY", e.Door = "DOOR", e.Friend = "FRIEND", e.Guest = "GUEST", e.Pickup = "PICKUP", e.Promoter = "PROMOTER", e.Ticket = "TICKET", e))(ne || {}), re = /* @__PURE__ */ ((e) => (e.FIXED = "FIXED", e.PERCENTAGE = "PERCENTAGE", e))(re || {}), ie = /* @__PURE__ */ ((e) => (e.AddOn = "ADD_ON", e.DeliveryOption = "DELIVERY_OPTION", e.EntranceTicket = "ENTRANCE_TICKET", e))(ie || {}), se = /* @__PURE__ */ ((e) => (e.Fixed = "FIXED", e.Percentage = "PERCENTAGE", e))(se || {}), ae = /* @__PURE__ */ ((e) => (e.Default = "DEFAULT", e.Transparent = "TRANSPARENT", e))(ae || {}), oe = /* @__PURE__ */ ((e) => (e.Calendar = "CALENDAR", e.Large = "LARGE", e.Small = "SMALL", e))(oe || {}), R = /* @__PURE__ */ ((e) => (e.Event = "EVENT", e.Package = "PACKAGE", e))(R || {}), ce = /* @__PURE__ */ ((e) => (e.RADIO_BUTTON = "RADIO_BUTTON", e.DATE = "DATE", e.EMAIL = "EMAIL", e.NUMERIC = "NUMERIC", e.DROPDOWN = "DROPDOWN", e.TEXT = "TEXT", e.TEXT_AREA = "TEXT_AREA", e.TIME = "TIME", e.CHECKBOX = "CHECKBOX", e.PHONE_NUMBER = "PHONE_NUMBER", e))(ce || {}), de = /* @__PURE__ */ ((e) => (e.GENDER = "GENDER", e.FIRST_NAME = "FIRST_NAME", e.LAST_NAME = "LAST_NAME", e.EMAIL = "EMAIL", e.AGE = "AGE", e.RESIDENCE = "RESIDENCE", e.GOOGLE_PLACE = "GOOGLE_PLACE", e))(de || {}), ue = /* @__PURE__ */ ((e) => (e.ONLINE = "ONLINE", e.OFFLINE = "OFFLINE", e))(ue || {});
4
+ const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
6
- BasketOrderType: T,
6
+ BasketOrderType: O,
7
7
  CustomFieldMandatoryType: de,
8
8
  CustomFieldType: ce,
9
9
  DiscountType: se,
10
10
  EventStatus: K,
11
11
  MetricsType: R,
12
12
  OrderItemType: ie,
13
- PackageItemType: L,
13
+ PackageItemType: v,
14
14
  PackageStatus: W,
15
15
  PackageTabType: Z,
16
16
  PaymentMethodFeeType: re,
17
17
  ProductStatus: te,
18
18
  ProductType: ne,
19
19
  SalesLocations: ue,
20
- ShopTemplateType: oe,
21
- ShopVariationType: ae,
20
+ ShopTemplateType: ae,
21
+ ShopVariationType: oe,
22
22
  SortOrder: ee
23
23
  }, Symbol.toStringTag, { value: "Module" }));
24
24
  var w = function() {
@@ -34,20 +34,20 @@ function U(e, t) {
34
34
  if (!!!e)
35
35
  throw new Error(t);
36
36
  }
37
- function Ne(e) {
37
+ function ve(e) {
38
38
  return typeof e == "object" && e !== null;
39
39
  }
40
- function ve(e, t) {
40
+ function Pe(e, t) {
41
41
  if (!!!e)
42
42
  throw new Error(
43
43
  "Unexpected invariant triggered."
44
44
  );
45
45
  }
46
- const Pe = /\r\n|[\n\r]/g;
46
+ const be = /\r\n|[\n\r]/g;
47
47
  function M(e, t) {
48
48
  let n = 0, r = 1;
49
- for (const i of e.body.matchAll(Pe)) {
50
- if (typeof i.index == "number" || ve(!1), i.index >= t)
49
+ for (const i of e.body.matchAll(be)) {
50
+ if (typeof i.index == "number" || Pe(!1), i.index >= t)
51
51
  break;
52
52
  n = i.index + i[0].length, r += 1;
53
53
  }
@@ -56,32 +56,32 @@ function M(e, t) {
56
56
  column: t + 1 - n
57
57
  };
58
58
  }
59
- function be(e) {
59
+ function xe(e) {
60
60
  return le(
61
61
  e.source,
62
62
  M(e.source, e.start)
63
63
  );
64
64
  }
65
65
  function le(e, t) {
66
- const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, a = t.line + s, l = t.line === 1 ? n : 0, h = t.column + l, E = `${e.name}:${a}:${h}
67
- `, p = r.split(/\r\n|[\n\r]/g), d = p[i];
68
- if (d.length > 120) {
69
- const g = Math.floor(h / 80), y = h % 80, m = [];
70
- for (let k = 0; k < d.length; k += 80)
71
- m.push(d.slice(k, k + 80));
72
- return E + Q([
73
- [`${a} |`, m[0]],
74
- ...m.slice(1, g + 1).map((k) => ["|", k]),
75
- ["|", "^".padStart(y)],
76
- ["|", m[g + 1]]
66
+ const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, l = t.line === 1 ? n : 0, h = t.column + l, I = `${e.name}:${o}:${h}
67
+ `, g = r.split(/\r\n|[\n\r]/g), k = g[i];
68
+ if (k.length > 120) {
69
+ const c = Math.floor(h / 80), E = h % 80, p = [];
70
+ for (let y = 0; y < k.length; y += 80)
71
+ p.push(k.slice(y, y + 80));
72
+ return I + Q([
73
+ [`${o} |`, p[0]],
74
+ ...p.slice(1, c + 1).map((y) => ["|", y]),
75
+ ["|", "^".padStart(E)],
76
+ ["|", p[c + 1]]
77
77
  ]);
78
78
  }
79
- return E + Q([
79
+ return I + Q([
80
80
  // Lines specified like this: ["prefix", "string"],
81
- [`${a - 1} |`, p[i - 1]],
82
- [`${a} |`, d],
81
+ [`${o - 1} |`, g[i - 1]],
82
+ [`${o} |`, k],
83
83
  ["|", "^".padStart(h)],
84
- [`${a + 1} |`, p[i + 1]]
84
+ [`${o + 1} |`, g[i + 1]]
85
85
  ]);
86
86
  }
87
87
  function Q(e) {
@@ -89,7 +89,7 @@ function Q(e) {
89
89
  return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
90
90
  `);
91
91
  }
92
- function xe(e) {
92
+ function Se(e) {
93
93
  const t = e[0];
94
94
  return t == null || "kind" in t || "length" in t ? {
95
95
  nodes: t,
@@ -141,18 +141,18 @@ class G extends Error {
141
141
  */
142
142
  constructor(t, ...n) {
143
143
  var r, i, s;
144
- const { nodes: a, source: l, positions: h, path: E, originalError: p, extensions: d } = xe(n);
145
- super(t), this.name = "GraphQLError", this.path = E ?? void 0, this.originalError = p ?? void 0, this.nodes = X(
146
- Array.isArray(a) ? a : a ? [a] : void 0
144
+ const { nodes: o, source: l, positions: h, path: I, originalError: g, extensions: k } = Se(n);
145
+ super(t), this.name = "GraphQLError", this.path = I ?? void 0, this.originalError = g ?? void 0, this.nodes = X(
146
+ Array.isArray(o) ? o : o ? [o] : void 0
147
147
  );
148
- const g = X(
149
- (r = this.nodes) === null || r === void 0 ? void 0 : r.map((m) => m.loc).filter((m) => m != null)
148
+ const c = X(
149
+ (r = this.nodes) === null || r === void 0 ? void 0 : r.map((p) => p.loc).filter((p) => p != null)
150
150
  );
151
- this.source = l ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = h ?? g?.map((m) => m.start), this.locations = h && l ? h.map((m) => M(l, m)) : g?.map((m) => M(m.source, m.start));
152
- const y = Ne(
153
- p?.extensions
154
- ) ? p?.extensions : void 0;
155
- this.extensions = (s = d ?? y) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
151
+ this.source = l ?? (c == null || (i = c[0]) === null || i === void 0 ? void 0 : i.source), this.positions = h ?? c?.map((p) => p.start), this.locations = h && l ? h.map((p) => M(l, p)) : c?.map((p) => M(p.source, p.start));
152
+ const E = ve(
153
+ g?.extensions
154
+ ) ? g?.extensions : void 0;
155
+ this.extensions = (s = k ?? E) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
156
156
  message: {
157
157
  writable: !0,
158
158
  enumerable: !0
@@ -172,8 +172,8 @@ class G extends Error {
172
172
  originalError: {
173
173
  enumerable: !1
174
174
  }
175
- }), p != null && p.stack ? Object.defineProperty(this, "stack", {
176
- value: p.stack,
175
+ }), g != null && g.stack ? Object.defineProperty(this, "stack", {
176
+ value: g.stack,
177
177
  writable: !0,
178
178
  configurable: !0
179
179
  }) : Error.captureStackTrace ? Error.captureStackTrace(this, G) : Object.defineProperty(this, "stack", {
@@ -191,7 +191,7 @@ class G extends Error {
191
191
  for (const n of this.nodes)
192
192
  n.loc && (t += `
193
193
 
194
- ` + be(n.loc));
194
+ ` + xe(n.loc));
195
195
  else if (this.source && this.locations)
196
196
  for (const n of this.locations)
197
197
  t += `
@@ -209,13 +209,13 @@ class G extends Error {
209
209
  function X(e) {
210
210
  return e === void 0 || e.length === 0 ? void 0 : e;
211
211
  }
212
- function I(e, t, n) {
212
+ function f(e, t, n) {
213
213
  return new G(`Syntax Error: ${n}`, {
214
214
  source: e,
215
215
  positions: [t]
216
216
  });
217
217
  }
218
- class Se {
218
+ class Ce {
219
219
  /**
220
220
  * The character offset at which this Node begins.
221
221
  */
@@ -271,8 +271,8 @@ class he {
271
271
  * including ignored tokens. <SOF> is always the first node and <EOF>
272
272
  * the last.
273
273
  */
274
- constructor(t, n, r, i, s, a) {
275
- this.kind = t, this.start = n, this.end = r, this.line = i, this.column = s, this.value = a, this.prev = null, this.next = null;
274
+ constructor(t, n, r, i, s, o) {
275
+ this.kind = t, this.start = n, this.end = r, this.line = i, this.column = s, this.value = o, this.prev = null, this.next = null;
276
276
  }
277
277
  get [Symbol.toStringTag]() {
278
278
  return "Token";
@@ -286,7 +286,7 @@ class he {
286
286
  };
287
287
  }
288
288
  }
289
- const Ce = {
289
+ const _e = {
290
290
  Name: [],
291
291
  Document: ["definitions"],
292
292
  OperationDefinition: [
@@ -374,7 +374,7 @@ const Ce = {
374
374
  DirectiveCoordinate: ["name"],
375
375
  DirectiveArgumentCoordinate: ["name", "argumentName"]
376
376
  };
377
- new Set(Object.keys(Ce));
377
+ new Set(Object.keys(_e));
378
378
  var N;
379
379
  (function(e) {
380
380
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
@@ -383,14 +383,14 @@ var q;
383
383
  (function(e) {
384
384
  e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
385
385
  })(q || (q = {}));
386
- var c;
386
+ var d;
387
387
  (function(e) {
388
388
  e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension", e.TYPE_COORDINATE = "TypeCoordinate", e.MEMBER_COORDINATE = "MemberCoordinate", e.ARGUMENT_COORDINATE = "ArgumentCoordinate", e.DIRECTIVE_COORDINATE = "DirectiveCoordinate", e.DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
389
- })(c || (c = {}));
390
- function _e(e) {
389
+ })(d || (d = {}));
390
+ function Le(e) {
391
391
  return e === 9 || e === 32;
392
392
  }
393
- function x(e) {
393
+ function S(e) {
394
394
  return e >= 48 && e <= 57;
395
395
  }
396
396
  function pe(e) {
@@ -400,33 +400,33 @@ function pe(e) {
400
400
  function ge(e) {
401
401
  return pe(e) || e === 95;
402
402
  }
403
- function Le(e) {
404
- return pe(e) || x(e) || e === 95;
405
- }
406
403
  function Re(e) {
404
+ return pe(e) || S(e) || e === 95;
405
+ }
406
+ function we(e) {
407
407
  var t;
408
408
  let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
409
- for (let a = 0; a < e.length; ++a) {
409
+ for (let o = 0; o < e.length; ++o) {
410
410
  var s;
411
- const l = e[a], h = we(l);
412
- h !== l.length && (r = (s = r) !== null && s !== void 0 ? s : a, i = a, a !== 0 && h < n && (n = h));
411
+ const l = e[o], h = Fe(l);
412
+ h !== l.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && h < n && (n = h));
413
413
  }
414
- return e.map((a, l) => l === 0 ? a : a.slice(n)).slice(
414
+ return e.map((o, l) => l === 0 ? o : o.slice(n)).slice(
415
415
  (t = r) !== null && t !== void 0 ? t : 0,
416
416
  i + 1
417
417
  );
418
418
  }
419
- function we(e) {
419
+ function Fe(e) {
420
420
  let t = 0;
421
- for (; t < e.length && _e(e.charCodeAt(t)); )
421
+ for (; t < e.length && Le(e.charCodeAt(t)); )
422
422
  ++t;
423
423
  return t;
424
424
  }
425
- var o;
425
+ var a;
426
426
  (function(e) {
427
427
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
428
- })(o || (o = {}));
429
- class Fe {
428
+ })(a || (a = {}));
429
+ class $e {
430
430
  /**
431
431
  * The previously focused non-ignored token.
432
432
  */
@@ -440,7 +440,7 @@ class Fe {
440
440
  * The character offset at which the current line begins.
441
441
  */
442
442
  constructor(t) {
443
- const n = new he(o.SOF, 0, 0, 0, 0);
443
+ const n = new he(a.SOF, 0, 0, 0, 0);
444
444
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
445
445
  }
446
446
  get [Symbol.toStringTag]() {
@@ -458,22 +458,22 @@ class Fe {
458
458
  */
459
459
  lookahead() {
460
460
  let t = this.token;
461
- if (t.kind !== o.EOF)
461
+ if (t.kind !== a.EOF)
462
462
  do
463
463
  if (t.next)
464
464
  t = t.next;
465
465
  else {
466
- const n = Be(this, t.end);
466
+ const n = Ue(this, t.end);
467
467
  t.next = n, n.prev = t, t = n;
468
468
  }
469
- while (t.kind === o.COMMENT);
469
+ while (t.kind === a.COMMENT);
470
470
  return t;
471
471
  }
472
472
  }
473
- function $e(e) {
474
- return e === o.BANG || e === o.DOLLAR || e === o.AMP || e === o.PAREN_L || e === o.PAREN_R || e === o.DOT || e === o.SPREAD || e === o.COLON || e === o.EQUALS || e === o.AT || e === o.BRACKET_L || e === o.BRACKET_R || e === o.BRACE_L || e === o.PIPE || e === o.BRACE_R;
473
+ function Be(e) {
474
+ return e === a.BANG || e === a.DOLLAR || e === a.AMP || e === a.PAREN_L || e === a.PAREN_R || e === a.DOT || e === a.SPREAD || e === a.COLON || e === a.EQUALS || e === a.AT || e === a.BRACKET_L || e === a.BRACKET_R || e === a.BRACE_L || e === a.PIPE || e === a.BRACE_R;
475
475
  }
476
- function v(e) {
476
+ function P(e) {
477
477
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
478
478
  }
479
479
  function $(e, t) {
@@ -488,18 +488,18 @@ function fe(e) {
488
488
  function D(e, t) {
489
489
  const n = e.source.body.codePointAt(t);
490
490
  if (n === void 0)
491
- return o.EOF;
491
+ return a.EOF;
492
492
  if (n >= 32 && n <= 126) {
493
493
  const r = String.fromCodePoint(n);
494
494
  return r === '"' ? `'"'` : `"${r}"`;
495
495
  }
496
496
  return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
497
497
  }
498
- function f(e, t, n, r, i) {
499
- const s = e.line, a = 1 + n - e.lineStart;
500
- return new he(t, n, r, s, a, i);
498
+ function m(e, t, n, r, i) {
499
+ const s = e.line, o = 1 + n - e.lineStart;
500
+ return new he(t, n, r, s, o, i);
501
501
  }
502
- function Be(e, t) {
502
+ function Ue(e, t) {
503
503
  const n = e.source.body, r = n.length;
504
504
  let i = t;
505
505
  for (; i < r; ) {
@@ -540,7 +540,7 @@ function Be(e, t) {
540
540
  continue;
541
541
  // Comment
542
542
  case 35:
543
- return Ue(e, i);
543
+ return Ve(e, i);
544
544
  // Token ::
545
545
  // - Punctuator
546
546
  // - Name
@@ -550,79 +550,79 @@ function Be(e, t) {
550
550
  //
551
551
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
552
552
  case 33:
553
- return f(e, o.BANG, i, i + 1);
553
+ return m(e, a.BANG, i, i + 1);
554
554
  case 36:
555
- return f(e, o.DOLLAR, i, i + 1);
555
+ return m(e, a.DOLLAR, i, i + 1);
556
556
  case 38:
557
- return f(e, o.AMP, i, i + 1);
557
+ return m(e, a.AMP, i, i + 1);
558
558
  case 40:
559
- return f(e, o.PAREN_L, i, i + 1);
559
+ return m(e, a.PAREN_L, i, i + 1);
560
560
  case 41:
561
- return f(e, o.PAREN_R, i, i + 1);
561
+ return m(e, a.PAREN_R, i, i + 1);
562
562
  case 46:
563
563
  if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
564
- return f(e, o.SPREAD, i, i + 3);
564
+ return m(e, a.SPREAD, i, i + 3);
565
565
  break;
566
566
  case 58:
567
- return f(e, o.COLON, i, i + 1);
567
+ return m(e, a.COLON, i, i + 1);
568
568
  case 61:
569
- return f(e, o.EQUALS, i, i + 1);
569
+ return m(e, a.EQUALS, i, i + 1);
570
570
  case 64:
571
- return f(e, o.AT, i, i + 1);
571
+ return m(e, a.AT, i, i + 1);
572
572
  case 91:
573
- return f(e, o.BRACKET_L, i, i + 1);
573
+ return m(e, a.BRACKET_L, i, i + 1);
574
574
  case 93:
575
- return f(e, o.BRACKET_R, i, i + 1);
575
+ return m(e, a.BRACKET_R, i, i + 1);
576
576
  case 123:
577
- return f(e, o.BRACE_L, i, i + 1);
577
+ return m(e, a.BRACE_L, i, i + 1);
578
578
  case 124:
579
- return f(e, o.PIPE, i, i + 1);
579
+ return m(e, a.PIPE, i, i + 1);
580
580
  case 125:
581
- return f(e, o.BRACE_R, i, i + 1);
581
+ return m(e, a.BRACE_R, i, i + 1);
582
582
  // StringValue
583
583
  case 34:
584
- return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? je(e, i) : Me(e, i);
584
+ return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? He(e, i) : qe(e, i);
585
585
  }
586
- if (x(s) || s === 45)
587
- return Ve(e, i, s);
586
+ if (S(s) || s === 45)
587
+ return Me(e, i, s);
588
588
  if (ge(s))
589
- return He(e, i);
590
- throw I(
589
+ return Ye(e, i);
590
+ throw f(
591
591
  e.source,
592
592
  i,
593
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : v(s) || $(n, i) ? `Unexpected character: ${D(e, i)}.` : `Invalid character: ${D(e, i)}.`
593
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : P(s) || $(n, i) ? `Unexpected character: ${D(e, i)}.` : `Invalid character: ${D(e, i)}.`
594
594
  );
595
595
  }
596
- return f(e, o.EOF, r, r);
596
+ return m(e, a.EOF, r, r);
597
597
  }
598
- function Ue(e, t) {
598
+ function Ve(e, t) {
599
599
  const n = e.source.body, r = n.length;
600
600
  let i = t + 1;
601
601
  for (; i < r; ) {
602
602
  const s = n.charCodeAt(i);
603
603
  if (s === 10 || s === 13)
604
604
  break;
605
- if (v(s))
605
+ if (P(s))
606
606
  ++i;
607
607
  else if ($(n, i))
608
608
  i += 2;
609
609
  else
610
610
  break;
611
611
  }
612
- return f(
612
+ return m(
613
613
  e,
614
- o.COMMENT,
614
+ a.COMMENT,
615
615
  t,
616
616
  i,
617
617
  n.slice(t + 1, i)
618
618
  );
619
619
  }
620
- function Ve(e, t, n) {
620
+ function Me(e, t, n) {
621
621
  const r = e.source.body;
622
- let i = t, s = n, a = !1;
622
+ let i = t, s = n, o = !1;
623
623
  if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
624
- if (s = r.charCodeAt(++i), x(s))
625
- throw I(
624
+ if (s = r.charCodeAt(++i), S(s))
625
+ throw f(
626
626
  e.source,
627
627
  i,
628
628
  `Invalid number, unexpected digit after 0: ${D(
@@ -632,8 +632,8 @@ function Ve(e, t, n) {
632
632
  );
633
633
  } else
634
634
  i = V(e, i, s), s = r.charCodeAt(i);
635
- if (s === 46 && (a = !0, s = r.charCodeAt(++i), i = V(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (a = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = V(e, i, s), s = r.charCodeAt(i)), s === 46 || ge(s))
636
- throw I(
635
+ if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = V(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = V(e, i, s), s = r.charCodeAt(i)), s === 46 || ge(s))
636
+ throw f(
637
637
  e.source,
638
638
  i,
639
639
  `Invalid number, expected digit but got: ${D(
@@ -641,17 +641,17 @@ function Ve(e, t, n) {
641
641
  i
642
642
  )}.`
643
643
  );
644
- return f(
644
+ return m(
645
645
  e,
646
- a ? o.FLOAT : o.INT,
646
+ o ? a.FLOAT : a.INT,
647
647
  t,
648
648
  i,
649
649
  r.slice(t, i)
650
650
  );
651
651
  }
652
652
  function V(e, t, n) {
653
- if (!x(n))
654
- throw I(
653
+ if (!S(n))
654
+ throw f(
655
655
  e.source,
656
656
  t,
657
657
  `Invalid number, expected digit but got: ${D(
@@ -661,31 +661,31 @@ function V(e, t, n) {
661
661
  );
662
662
  const r = e.source.body;
663
663
  let i = t + 1;
664
- for (; x(r.charCodeAt(i)); )
664
+ for (; S(r.charCodeAt(i)); )
665
665
  ++i;
666
666
  return i;
667
667
  }
668
- function Me(e, t) {
668
+ function qe(e, t) {
669
669
  const n = e.source.body, r = n.length;
670
- let i = t + 1, s = i, a = "";
670
+ let i = t + 1, s = i, o = "";
671
671
  for (; i < r; ) {
672
672
  const l = n.charCodeAt(i);
673
673
  if (l === 34)
674
- return a += n.slice(s, i), f(e, o.STRING, t, i + 1, a);
674
+ return o += n.slice(s, i), m(e, a.STRING, t, i + 1, o);
675
675
  if (l === 92) {
676
- a += n.slice(s, i);
677
- const h = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? qe(e, i) : ze(e, i) : Ge(e, i);
678
- a += h.value, i += h.size, s = i;
676
+ o += n.slice(s, i);
677
+ const h = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? ze(e, i) : Ge(e, i) : je(e, i);
678
+ o += h.value, i += h.size, s = i;
679
679
  continue;
680
680
  }
681
681
  if (l === 10 || l === 13)
682
682
  break;
683
- if (v(l))
683
+ if (P(l))
684
684
  ++i;
685
685
  else if ($(n, i))
686
686
  i += 2;
687
687
  else
688
- throw I(
688
+ throw f(
689
689
  e.source,
690
690
  i,
691
691
  `Invalid character within String: ${D(
@@ -694,25 +694,25 @@ function Me(e, t) {
694
694
  )}.`
695
695
  );
696
696
  }
697
- throw I(e.source, i, "Unterminated string.");
697
+ throw f(e.source, i, "Unterminated string.");
698
698
  }
699
- function qe(e, t) {
699
+ function ze(e, t) {
700
700
  const n = e.source.body;
701
701
  let r = 0, i = 3;
702
702
  for (; i < 12; ) {
703
703
  const s = n.charCodeAt(t + i++);
704
704
  if (s === 125) {
705
- if (i < 5 || !v(r))
705
+ if (i < 5 || !P(r))
706
706
  break;
707
707
  return {
708
708
  value: String.fromCodePoint(r),
709
709
  size: i
710
710
  };
711
711
  }
712
- if (r = r << 4 | b(s), r < 0)
712
+ if (r = r << 4 | x(s), r < 0)
713
713
  break;
714
714
  }
715
- throw I(
715
+ throw f(
716
716
  e.source,
717
717
  t,
718
718
  `Invalid Unicode escape sequence: "${n.slice(
@@ -721,9 +721,9 @@ function qe(e, t) {
721
721
  )}".`
722
722
  );
723
723
  }
724
- function ze(e, t) {
724
+ function Ge(e, t) {
725
725
  const n = e.source.body, r = J(n, t + 2);
726
- if (v(r))
726
+ if (P(r))
727
727
  return {
728
728
  value: String.fromCodePoint(r),
729
729
  size: 6
@@ -736,19 +736,19 @@ function ze(e, t) {
736
736
  size: 12
737
737
  };
738
738
  }
739
- throw I(
739
+ throw f(
740
740
  e.source,
741
741
  t,
742
742
  `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
743
743
  );
744
744
  }
745
745
  function J(e, t) {
746
- return b(e.charCodeAt(t)) << 12 | b(e.charCodeAt(t + 1)) << 8 | b(e.charCodeAt(t + 2)) << 4 | b(e.charCodeAt(t + 3));
746
+ return x(e.charCodeAt(t)) << 12 | x(e.charCodeAt(t + 1)) << 8 | x(e.charCodeAt(t + 2)) << 4 | x(e.charCodeAt(t + 3));
747
747
  }
748
- function b(e) {
748
+ function x(e) {
749
749
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
750
750
  }
751
- function Ge(e, t) {
751
+ function je(e, t) {
752
752
  const n = e.source.body;
753
753
  switch (n.charCodeAt(t + 1)) {
754
754
  case 34:
@@ -793,7 +793,7 @@ function Ge(e, t) {
793
793
  size: 2
794
794
  };
795
795
  }
796
- throw I(
796
+ throw f(
797
797
  e.source,
798
798
  t,
799
799
  `Invalid character escape sequence: "${n.slice(
@@ -802,39 +802,39 @@ function Ge(e, t) {
802
802
  )}".`
803
803
  );
804
804
  }
805
- function je(e, t) {
805
+ function He(e, t) {
806
806
  const n = e.source.body, r = n.length;
807
- let i = e.lineStart, s = t + 3, a = s, l = "";
807
+ let i = e.lineStart, s = t + 3, o = s, l = "";
808
808
  const h = [];
809
809
  for (; s < r; ) {
810
- const E = n.charCodeAt(s);
811
- if (E === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
812
- l += n.slice(a, s), h.push(l);
813
- const p = f(
810
+ const I = n.charCodeAt(s);
811
+ if (I === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
812
+ l += n.slice(o, s), h.push(l);
813
+ const g = m(
814
814
  e,
815
- o.BLOCK_STRING,
815
+ a.BLOCK_STRING,
816
816
  t,
817
817
  s + 3,
818
818
  // Return a string of the lines joined with U+000A.
819
- Re(h).join(`
819
+ we(h).join(`
820
820
  `)
821
821
  );
822
- return e.line += h.length - 1, e.lineStart = i, p;
822
+ return e.line += h.length - 1, e.lineStart = i, g;
823
823
  }
824
- if (E === 92 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34 && n.charCodeAt(s + 3) === 34) {
825
- l += n.slice(a, s), a = s + 1, s += 4;
824
+ if (I === 92 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34 && n.charCodeAt(s + 3) === 34) {
825
+ l += n.slice(o, s), o = s + 1, s += 4;
826
826
  continue;
827
827
  }
828
- if (E === 10 || E === 13) {
829
- l += n.slice(a, s), h.push(l), E === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, l = "", a = s, i = s;
828
+ if (I === 10 || I === 13) {
829
+ l += n.slice(o, s), h.push(l), I === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, l = "", o = s, i = s;
830
830
  continue;
831
831
  }
832
- if (v(E))
832
+ if (P(I))
833
833
  ++s;
834
834
  else if ($(n, s))
835
835
  s += 2;
836
836
  else
837
- throw I(
837
+ throw f(
838
838
  e.source,
839
839
  s,
840
840
  `Invalid character within String: ${D(
@@ -843,27 +843,27 @@ function je(e, t) {
843
843
  )}.`
844
844
  );
845
845
  }
846
- throw I(e.source, s, "Unterminated string.");
846
+ throw f(e.source, s, "Unterminated string.");
847
847
  }
848
- function He(e, t) {
848
+ function Ye(e, t) {
849
849
  const n = e.source.body, r = n.length;
850
850
  let i = t + 1;
851
851
  for (; i < r; ) {
852
852
  const s = n.charCodeAt(i);
853
- if (Le(s))
853
+ if (Re(s))
854
854
  ++i;
855
855
  else
856
856
  break;
857
857
  }
858
- return f(
858
+ return m(
859
859
  e,
860
- o.NAME,
860
+ a.NAME,
861
861
  t,
862
862
  i,
863
863
  n.slice(t, i)
864
864
  );
865
865
  }
866
- const Ye = 10, Ie = 2;
866
+ const Qe = 10, Ie = 2;
867
867
  function Ee(e) {
868
868
  return B(e, []);
869
869
  }
@@ -874,45 +874,45 @@ function B(e, t) {
874
874
  case "function":
875
875
  return e.name ? `[function ${e.name}]` : "[function]";
876
876
  case "object":
877
- return Qe(e, t);
877
+ return Xe(e, t);
878
878
  default:
879
879
  return String(e);
880
880
  }
881
881
  }
882
- function Qe(e, t) {
882
+ function Xe(e, t) {
883
883
  if (e === null)
884
884
  return "null";
885
885
  if (t.includes(e))
886
886
  return "[Circular]";
887
887
  const n = [...t, e];
888
- if (Xe(e)) {
888
+ if (Je(e)) {
889
889
  const r = e.toJSON();
890
890
  if (r !== e)
891
891
  return typeof r == "string" ? r : B(r, n);
892
892
  } else if (Array.isArray(e))
893
- return We(e, n);
894
- return Je(e, n);
893
+ return Ze(e, n);
894
+ return We(e, n);
895
895
  }
896
- function Xe(e) {
896
+ function Je(e) {
897
897
  return typeof e.toJSON == "function";
898
898
  }
899
- function Je(e, t) {
899
+ function We(e, t) {
900
900
  const n = Object.entries(e);
901
- return n.length === 0 ? "{}" : t.length > Ie ? "[" + Ze(e) + "]" : "{ " + n.map(
901
+ return n.length === 0 ? "{}" : t.length > Ie ? "[" + Ke(e) + "]" : "{ " + n.map(
902
902
  ([i, s]) => i + ": " + B(s, t)
903
903
  ).join(", ") + " }";
904
904
  }
905
- function We(e, t) {
905
+ function Ze(e, t) {
906
906
  if (e.length === 0)
907
907
  return "[]";
908
908
  if (t.length > Ie)
909
909
  return "[Array]";
910
- const n = Math.min(Ye, e.length), r = e.length - n, i = [];
910
+ const n = Math.min(Qe, e.length), r = e.length - n, i = [];
911
911
  for (let s = 0; s < n; ++s)
912
912
  i.push(B(e[s], t));
913
913
  return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
914
914
  }
915
- function Ze(e) {
915
+ function Ke(e) {
916
916
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
917
917
  if (t === "Object" && typeof e.constructor == "function") {
918
918
  const n = e.constructor.name;
@@ -921,11 +921,11 @@ function Ze(e) {
921
921
  }
922
922
  return t;
923
923
  }
924
- const Ke = globalThis.process && // eslint-disable-next-line no-undef
925
- process.env.NODE_ENV === "production", et = (
924
+ const et = globalThis.process && // eslint-disable-next-line no-undef
925
+ process.env.NODE_ENV === "production", tt = (
926
926
  /* c8 ignore next 6 */
927
927
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
928
- Ke ? function(t, n) {
928
+ et ? function(t, n) {
929
929
  return t instanceof n;
930
930
  } : function(t, n) {
931
931
  if (t instanceof n)
@@ -937,8 +937,8 @@ process.env.NODE_ENV === "production", et = (
937
937
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (r = t.constructor) === null || r === void 0 ? void 0 : r.name
938
938
  );
939
939
  if (i === s) {
940
- const a = Ee(t);
941
- throw new Error(`Cannot use ${i} "${a}" from another module or realm.
940
+ const o = Ee(t);
941
+ throw new Error(`Cannot use ${i} "${o}" from another module or realm.
942
942
 
943
943
  Ensure that there is only one instance of "graphql" in the node_modules
944
944
  directory. If different versions of "graphql" are the dependencies of other
@@ -972,24 +972,24 @@ class ye {
972
972
  return "Source";
973
973
  }
974
974
  }
975
- function tt(e) {
976
- return et(e, ye);
975
+ function nt(e) {
976
+ return tt(e, ye);
977
977
  }
978
- function nt(e, t) {
979
- const n = new rt(e, t), r = n.parseDocument();
978
+ function rt(e, t) {
979
+ const n = new it(e, t), r = n.parseDocument();
980
980
  return Object.defineProperty(r, "tokenCount", {
981
981
  enumerable: !1,
982
982
  value: n.tokenCount
983
983
  }), r;
984
984
  }
985
- class rt {
985
+ class it {
986
986
  constructor(t, n = {}) {
987
987
  const { lexer: r, ...i } = n;
988
988
  if (r)
989
989
  this._lexer = r;
990
990
  else {
991
- const s = tt(t) ? t : new ye(t);
992
- this._lexer = new Fe(s);
991
+ const s = nt(t) ? t : new ye(t);
992
+ this._lexer = new $e(s);
993
993
  }
994
994
  this._options = i, this._tokenCounter = 0;
995
995
  }
@@ -1000,9 +1000,9 @@ class rt {
1000
1000
  * Converts a name lex token into a name parse node.
1001
1001
  */
1002
1002
  parseName() {
1003
- const t = this.expectToken(o.NAME);
1003
+ const t = this.expectToken(a.NAME);
1004
1004
  return this.node(t, {
1005
- kind: c.NAME,
1005
+ kind: d.NAME,
1006
1006
  value: t.value
1007
1007
  });
1008
1008
  }
@@ -1012,11 +1012,11 @@ class rt {
1012
1012
  */
1013
1013
  parseDocument() {
1014
1014
  return this.node(this._lexer.token, {
1015
- kind: c.DOCUMENT,
1015
+ kind: d.DOCUMENT,
1016
1016
  definitions: this.many(
1017
- o.SOF,
1017
+ a.SOF,
1018
1018
  this.parseDefinition,
1019
- o.EOF
1019
+ a.EOF
1020
1020
  )
1021
1021
  });
1022
1022
  }
@@ -1044,16 +1044,16 @@ class rt {
1044
1044
  * - InputObjectTypeDefinition
1045
1045
  */
1046
1046
  parseDefinition() {
1047
- if (this.peek(o.BRACE_L))
1047
+ if (this.peek(a.BRACE_L))
1048
1048
  return this.parseOperationDefinition();
1049
1049
  const t = this.peekDescription(), n = t ? this._lexer.lookahead() : this._lexer.token;
1050
- if (t && n.kind === o.BRACE_L)
1051
- throw I(
1050
+ if (t && n.kind === a.BRACE_L)
1051
+ throw f(
1052
1052
  this._lexer.source,
1053
1053
  this._lexer.token.start,
1054
1054
  "Unexpected description, descriptions are not supported on shorthand queries."
1055
1055
  );
1056
- if (n.kind === o.NAME) {
1056
+ if (n.kind === a.NAME) {
1057
1057
  switch (n.value) {
1058
1058
  case "schema":
1059
1059
  return this.parseSchemaDefinition();
@@ -1081,7 +1081,7 @@ class rt {
1081
1081
  return this.parseFragmentDefinition();
1082
1082
  }
1083
1083
  if (t)
1084
- throw I(
1084
+ throw f(
1085
1085
  this._lexer.source,
1086
1086
  this._lexer.token.start,
1087
1087
  "Unexpected description, only GraphQL definitions support descriptions."
@@ -1099,9 +1099,9 @@ class rt {
1099
1099
  */
1100
1100
  parseOperationDefinition() {
1101
1101
  const t = this._lexer.token;
1102
- if (this.peek(o.BRACE_L))
1102
+ if (this.peek(a.BRACE_L))
1103
1103
  return this.node(t, {
1104
- kind: c.OPERATION_DEFINITION,
1104
+ kind: d.OPERATION_DEFINITION,
1105
1105
  operation: N.QUERY,
1106
1106
  description: void 0,
1107
1107
  name: void 0,
@@ -1111,8 +1111,8 @@ class rt {
1111
1111
  });
1112
1112
  const n = this.parseDescription(), r = this.parseOperationType();
1113
1113
  let i;
1114
- return this.peek(o.NAME) && (i = this.parseName()), this.node(t, {
1115
- kind: c.OPERATION_DEFINITION,
1114
+ return this.peek(a.NAME) && (i = this.parseName()), this.node(t, {
1115
+ kind: d.OPERATION_DEFINITION,
1116
1116
  operation: r,
1117
1117
  description: n,
1118
1118
  name: i,
@@ -1125,7 +1125,7 @@ class rt {
1125
1125
  * OperationType : one of query mutation subscription
1126
1126
  */
1127
1127
  parseOperationType() {
1128
- const t = this.expectToken(o.NAME);
1128
+ const t = this.expectToken(a.NAME);
1129
1129
  switch (t.value) {
1130
1130
  case "query":
1131
1131
  return N.QUERY;
@@ -1141,9 +1141,9 @@ class rt {
1141
1141
  */
1142
1142
  parseVariableDefinitions() {
1143
1143
  return this.optionalMany(
1144
- o.PAREN_L,
1144
+ a.PAREN_L,
1145
1145
  this.parseVariableDefinition,
1146
- o.PAREN_R
1146
+ a.PAREN_R
1147
1147
  );
1148
1148
  }
1149
1149
  /**
@@ -1151,11 +1151,11 @@ class rt {
1151
1151
  */
1152
1152
  parseVariableDefinition() {
1153
1153
  return this.node(this._lexer.token, {
1154
- kind: c.VARIABLE_DEFINITION,
1154
+ kind: d.VARIABLE_DEFINITION,
1155
1155
  description: this.parseDescription(),
1156
1156
  variable: this.parseVariable(),
1157
- type: (this.expectToken(o.COLON), this.parseTypeReference()),
1158
- defaultValue: this.expectOptionalToken(o.EQUALS) ? this.parseConstValueLiteral() : void 0,
1157
+ type: (this.expectToken(a.COLON), this.parseTypeReference()),
1158
+ defaultValue: this.expectOptionalToken(a.EQUALS) ? this.parseConstValueLiteral() : void 0,
1159
1159
  directives: this.parseConstDirectives()
1160
1160
  });
1161
1161
  }
@@ -1164,8 +1164,8 @@ class rt {
1164
1164
  */
1165
1165
  parseVariable() {
1166
1166
  const t = this._lexer.token;
1167
- return this.expectToken(o.DOLLAR), this.node(t, {
1168
- kind: c.VARIABLE,
1167
+ return this.expectToken(a.DOLLAR), this.node(t, {
1168
+ kind: d.VARIABLE,
1169
1169
  name: this.parseName()
1170
1170
  });
1171
1171
  }
@@ -1176,11 +1176,11 @@ class rt {
1176
1176
  */
1177
1177
  parseSelectionSet() {
1178
1178
  return this.node(this._lexer.token, {
1179
- kind: c.SELECTION_SET,
1179
+ kind: d.SELECTION_SET,
1180
1180
  selections: this.many(
1181
- o.BRACE_L,
1181
+ a.BRACE_L,
1182
1182
  this.parseSelection,
1183
- o.BRACE_R
1183
+ a.BRACE_R
1184
1184
  )
1185
1185
  });
1186
1186
  }
@@ -1191,7 +1191,7 @@ class rt {
1191
1191
  * - InlineFragment
1192
1192
  */
1193
1193
  parseSelection() {
1194
- return this.peek(o.SPREAD) ? this.parseFragment() : this.parseField();
1194
+ return this.peek(a.SPREAD) ? this.parseFragment() : this.parseField();
1195
1195
  }
1196
1196
  /**
1197
1197
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -1201,13 +1201,13 @@ class rt {
1201
1201
  parseField() {
1202
1202
  const t = this._lexer.token, n = this.parseName();
1203
1203
  let r, i;
1204
- return this.expectOptionalToken(o.COLON) ? (r = n, i = this.parseName()) : i = n, this.node(t, {
1205
- kind: c.FIELD,
1204
+ return this.expectOptionalToken(a.COLON) ? (r = n, i = this.parseName()) : i = n, this.node(t, {
1205
+ kind: d.FIELD,
1206
1206
  alias: r,
1207
1207
  name: i,
1208
1208
  arguments: this.parseArguments(!1),
1209
1209
  directives: this.parseDirectives(!1),
1210
- selectionSet: this.peek(o.BRACE_L) ? this.parseSelectionSet() : void 0
1210
+ selectionSet: this.peek(a.BRACE_L) ? this.parseSelectionSet() : void 0
1211
1211
  });
1212
1212
  }
1213
1213
  /**
@@ -1215,15 +1215,15 @@ class rt {
1215
1215
  */
1216
1216
  parseArguments(t) {
1217
1217
  const n = t ? this.parseConstArgument : this.parseArgument;
1218
- return this.optionalMany(o.PAREN_L, n, o.PAREN_R);
1218
+ return this.optionalMany(a.PAREN_L, n, a.PAREN_R);
1219
1219
  }
1220
1220
  /**
1221
1221
  * Argument[Const] : Name : Value[?Const]
1222
1222
  */
1223
1223
  parseArgument(t = !1) {
1224
1224
  const n = this._lexer.token, r = this.parseName();
1225
- return this.expectToken(o.COLON), this.node(n, {
1226
- kind: c.ARGUMENT,
1225
+ return this.expectToken(a.COLON), this.node(n, {
1226
+ kind: d.ARGUMENT,
1227
1227
  name: r,
1228
1228
  value: this.parseValueLiteral(t)
1229
1229
  });
@@ -1241,14 +1241,14 @@ class rt {
1241
1241
  */
1242
1242
  parseFragment() {
1243
1243
  const t = this._lexer.token;
1244
- this.expectToken(o.SPREAD);
1244
+ this.expectToken(a.SPREAD);
1245
1245
  const n = this.expectOptionalKeyword("on");
1246
- return !n && this.peek(o.NAME) ? this.node(t, {
1247
- kind: c.FRAGMENT_SPREAD,
1246
+ return !n && this.peek(a.NAME) ? this.node(t, {
1247
+ kind: d.FRAGMENT_SPREAD,
1248
1248
  name: this.parseFragmentName(),
1249
1249
  directives: this.parseDirectives(!1)
1250
1250
  }) : this.node(t, {
1251
- kind: c.INLINE_FRAGMENT,
1251
+ kind: d.INLINE_FRAGMENT,
1252
1252
  typeCondition: n ? this.parseNamedType() : void 0,
1253
1253
  directives: this.parseDirectives(!1),
1254
1254
  selectionSet: this.parseSelectionSet()
@@ -1263,7 +1263,7 @@ class rt {
1263
1263
  parseFragmentDefinition() {
1264
1264
  const t = this._lexer.token, n = this.parseDescription();
1265
1265
  return this.expectKeyword("fragment"), this._options.allowLegacyFragmentVariables === !0 ? this.node(t, {
1266
- kind: c.FRAGMENT_DEFINITION,
1266
+ kind: d.FRAGMENT_DEFINITION,
1267
1267
  description: n,
1268
1268
  name: this.parseFragmentName(),
1269
1269
  variableDefinitions: this.parseVariableDefinitions(),
@@ -1271,7 +1271,7 @@ class rt {
1271
1271
  directives: this.parseDirectives(!1),
1272
1272
  selectionSet: this.parseSelectionSet()
1273
1273
  }) : this.node(t, {
1274
- kind: c.FRAGMENT_DEFINITION,
1274
+ kind: d.FRAGMENT_DEFINITION,
1275
1275
  description: n,
1276
1276
  name: this.parseFragmentName(),
1277
1277
  typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
@@ -1309,50 +1309,50 @@ class rt {
1309
1309
  parseValueLiteral(t) {
1310
1310
  const n = this._lexer.token;
1311
1311
  switch (n.kind) {
1312
- case o.BRACKET_L:
1312
+ case a.BRACKET_L:
1313
1313
  return this.parseList(t);
1314
- case o.BRACE_L:
1314
+ case a.BRACE_L:
1315
1315
  return this.parseObject(t);
1316
- case o.INT:
1316
+ case a.INT:
1317
1317
  return this.advanceLexer(), this.node(n, {
1318
- kind: c.INT,
1318
+ kind: d.INT,
1319
1319
  value: n.value
1320
1320
  });
1321
- case o.FLOAT:
1321
+ case a.FLOAT:
1322
1322
  return this.advanceLexer(), this.node(n, {
1323
- kind: c.FLOAT,
1323
+ kind: d.FLOAT,
1324
1324
  value: n.value
1325
1325
  });
1326
- case o.STRING:
1327
- case o.BLOCK_STRING:
1326
+ case a.STRING:
1327
+ case a.BLOCK_STRING:
1328
1328
  return this.parseStringLiteral();
1329
- case o.NAME:
1329
+ case a.NAME:
1330
1330
  switch (this.advanceLexer(), n.value) {
1331
1331
  case "true":
1332
1332
  return this.node(n, {
1333
- kind: c.BOOLEAN,
1333
+ kind: d.BOOLEAN,
1334
1334
  value: !0
1335
1335
  });
1336
1336
  case "false":
1337
1337
  return this.node(n, {
1338
- kind: c.BOOLEAN,
1338
+ kind: d.BOOLEAN,
1339
1339
  value: !1
1340
1340
  });
1341
1341
  case "null":
1342
1342
  return this.node(n, {
1343
- kind: c.NULL
1343
+ kind: d.NULL
1344
1344
  });
1345
1345
  default:
1346
1346
  return this.node(n, {
1347
- kind: c.ENUM,
1347
+ kind: d.ENUM,
1348
1348
  value: n.value
1349
1349
  });
1350
1350
  }
1351
- case o.DOLLAR:
1351
+ case a.DOLLAR:
1352
1352
  if (t)
1353
- if (this.expectToken(o.DOLLAR), this._lexer.token.kind === o.NAME) {
1353
+ if (this.expectToken(a.DOLLAR), this._lexer.token.kind === a.NAME) {
1354
1354
  const r = this._lexer.token.value;
1355
- throw I(
1355
+ throw f(
1356
1356
  this._lexer.source,
1357
1357
  n.start,
1358
1358
  `Unexpected variable "$${r}" in constant value.`
@@ -1370,9 +1370,9 @@ class rt {
1370
1370
  parseStringLiteral() {
1371
1371
  const t = this._lexer.token;
1372
1372
  return this.advanceLexer(), this.node(t, {
1373
- kind: c.STRING,
1373
+ kind: d.STRING,
1374
1374
  value: t.value,
1375
- block: t.kind === o.BLOCK_STRING
1375
+ block: t.kind === a.BLOCK_STRING
1376
1376
  });
1377
1377
  }
1378
1378
  /**
@@ -1383,8 +1383,8 @@ class rt {
1383
1383
  parseList(t) {
1384
1384
  const n = () => this.parseValueLiteral(t);
1385
1385
  return this.node(this._lexer.token, {
1386
- kind: c.LIST,
1387
- values: this.any(o.BRACKET_L, n, o.BRACKET_R)
1386
+ kind: d.LIST,
1387
+ values: this.any(a.BRACKET_L, n, a.BRACKET_R)
1388
1388
  });
1389
1389
  }
1390
1390
  /**
@@ -1397,8 +1397,8 @@ class rt {
1397
1397
  parseObject(t) {
1398
1398
  const n = () => this.parseObjectField(t);
1399
1399
  return this.node(this._lexer.token, {
1400
- kind: c.OBJECT,
1401
- fields: this.any(o.BRACE_L, n, o.BRACE_R)
1400
+ kind: d.OBJECT,
1401
+ fields: this.any(a.BRACE_L, n, a.BRACE_R)
1402
1402
  });
1403
1403
  }
1404
1404
  /**
@@ -1406,8 +1406,8 @@ class rt {
1406
1406
  */
1407
1407
  parseObjectField(t) {
1408
1408
  const n = this._lexer.token, r = this.parseName();
1409
- return this.expectToken(o.COLON), this.node(n, {
1410
- kind: c.OBJECT_FIELD,
1409
+ return this.expectToken(a.COLON), this.node(n, {
1410
+ kind: d.OBJECT_FIELD,
1411
1411
  name: r,
1412
1412
  value: this.parseValueLiteral(t)
1413
1413
  });
@@ -1418,7 +1418,7 @@ class rt {
1418
1418
  */
1419
1419
  parseDirectives(t) {
1420
1420
  const n = [];
1421
- for (; this.peek(o.AT); )
1421
+ for (; this.peek(a.AT); )
1422
1422
  n.push(this.parseDirective(t));
1423
1423
  return n;
1424
1424
  }
@@ -1432,8 +1432,8 @@ class rt {
1432
1432
  */
1433
1433
  parseDirective(t) {
1434
1434
  const n = this._lexer.token;
1435
- return this.expectToken(o.AT), this.node(n, {
1436
- kind: c.DIRECTIVE,
1435
+ return this.expectToken(a.AT), this.node(n, {
1436
+ kind: d.DIRECTIVE,
1437
1437
  name: this.parseName(),
1438
1438
  arguments: this.parseArguments(t)
1439
1439
  });
@@ -1448,16 +1448,16 @@ class rt {
1448
1448
  parseTypeReference() {
1449
1449
  const t = this._lexer.token;
1450
1450
  let n;
1451
- if (this.expectOptionalToken(o.BRACKET_L)) {
1451
+ if (this.expectOptionalToken(a.BRACKET_L)) {
1452
1452
  const r = this.parseTypeReference();
1453
- this.expectToken(o.BRACKET_R), n = this.node(t, {
1454
- kind: c.LIST_TYPE,
1453
+ this.expectToken(a.BRACKET_R), n = this.node(t, {
1454
+ kind: d.LIST_TYPE,
1455
1455
  type: r
1456
1456
  });
1457
1457
  } else
1458
1458
  n = this.parseNamedType();
1459
- return this.expectOptionalToken(o.BANG) ? this.node(t, {
1460
- kind: c.NON_NULL_TYPE,
1459
+ return this.expectOptionalToken(a.BANG) ? this.node(t, {
1460
+ kind: d.NON_NULL_TYPE,
1461
1461
  type: n
1462
1462
  }) : n;
1463
1463
  }
@@ -1466,13 +1466,13 @@ class rt {
1466
1466
  */
1467
1467
  parseNamedType() {
1468
1468
  return this.node(this._lexer.token, {
1469
- kind: c.NAMED_TYPE,
1469
+ kind: d.NAMED_TYPE,
1470
1470
  name: this.parseName()
1471
1471
  });
1472
1472
  }
1473
1473
  // Implements the parsing rules in the Type Definition section.
1474
1474
  peekDescription() {
1475
- return this.peek(o.STRING) || this.peek(o.BLOCK_STRING);
1475
+ return this.peek(a.STRING) || this.peek(a.BLOCK_STRING);
1476
1476
  }
1477
1477
  /**
1478
1478
  * Description : StringValue
@@ -1490,12 +1490,12 @@ class rt {
1490
1490
  const t = this._lexer.token, n = this.parseDescription();
1491
1491
  this.expectKeyword("schema");
1492
1492
  const r = this.parseConstDirectives(), i = this.many(
1493
- o.BRACE_L,
1493
+ a.BRACE_L,
1494
1494
  this.parseOperationTypeDefinition,
1495
- o.BRACE_R
1495
+ a.BRACE_R
1496
1496
  );
1497
1497
  return this.node(t, {
1498
- kind: c.SCHEMA_DEFINITION,
1498
+ kind: d.SCHEMA_DEFINITION,
1499
1499
  description: n,
1500
1500
  directives: r,
1501
1501
  operationTypes: i
@@ -1506,10 +1506,10 @@ class rt {
1506
1506
  */
1507
1507
  parseOperationTypeDefinition() {
1508
1508
  const t = this._lexer.token, n = this.parseOperationType();
1509
- this.expectToken(o.COLON);
1509
+ this.expectToken(a.COLON);
1510
1510
  const r = this.parseNamedType();
1511
1511
  return this.node(t, {
1512
- kind: c.OPERATION_TYPE_DEFINITION,
1512
+ kind: d.OPERATION_TYPE_DEFINITION,
1513
1513
  operation: n,
1514
1514
  type: r
1515
1515
  });
@@ -1522,7 +1522,7 @@ class rt {
1522
1522
  this.expectKeyword("scalar");
1523
1523
  const r = this.parseName(), i = this.parseConstDirectives();
1524
1524
  return this.node(t, {
1525
- kind: c.SCALAR_TYPE_DEFINITION,
1525
+ kind: d.SCALAR_TYPE_DEFINITION,
1526
1526
  description: n,
1527
1527
  name: r,
1528
1528
  directives: i
@@ -1536,14 +1536,14 @@ class rt {
1536
1536
  parseObjectTypeDefinition() {
1537
1537
  const t = this._lexer.token, n = this.parseDescription();
1538
1538
  this.expectKeyword("type");
1539
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1539
+ const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
1540
1540
  return this.node(t, {
1541
- kind: c.OBJECT_TYPE_DEFINITION,
1541
+ kind: d.OBJECT_TYPE_DEFINITION,
1542
1542
  description: n,
1543
1543
  name: r,
1544
1544
  interfaces: i,
1545
1545
  directives: s,
1546
- fields: a
1546
+ fields: o
1547
1547
  });
1548
1548
  }
1549
1549
  /**
@@ -1552,7 +1552,7 @@ class rt {
1552
1552
  * - ImplementsInterfaces & NamedType
1553
1553
  */
1554
1554
  parseImplementsInterfaces() {
1555
- return this.expectOptionalKeyword("implements") ? this.delimitedMany(o.AMP, this.parseNamedType) : [];
1555
+ return this.expectOptionalKeyword("implements") ? this.delimitedMany(a.AMP, this.parseNamedType) : [];
1556
1556
  }
1557
1557
  /**
1558
1558
  * ```
@@ -1561,9 +1561,9 @@ class rt {
1561
1561
  */
1562
1562
  parseFieldsDefinition() {
1563
1563
  return this.optionalMany(
1564
- o.BRACE_L,
1564
+ a.BRACE_L,
1565
1565
  this.parseFieldDefinition,
1566
- o.BRACE_R
1566
+ a.BRACE_R
1567
1567
  );
1568
1568
  }
1569
1569
  /**
@@ -1572,15 +1572,15 @@ class rt {
1572
1572
  */
1573
1573
  parseFieldDefinition() {
1574
1574
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseName(), i = this.parseArgumentDefs();
1575
- this.expectToken(o.COLON);
1576
- const s = this.parseTypeReference(), a = this.parseConstDirectives();
1575
+ this.expectToken(a.COLON);
1576
+ const s = this.parseTypeReference(), o = this.parseConstDirectives();
1577
1577
  return this.node(t, {
1578
- kind: c.FIELD_DEFINITION,
1578
+ kind: d.FIELD_DEFINITION,
1579
1579
  description: n,
1580
1580
  name: r,
1581
1581
  arguments: i,
1582
1582
  type: s,
1583
- directives: a
1583
+ directives: o
1584
1584
  });
1585
1585
  }
1586
1586
  /**
@@ -1588,9 +1588,9 @@ class rt {
1588
1588
  */
1589
1589
  parseArgumentDefs() {
1590
1590
  return this.optionalMany(
1591
- o.PAREN_L,
1591
+ a.PAREN_L,
1592
1592
  this.parseInputValueDef,
1593
- o.PAREN_R
1593
+ a.PAREN_R
1594
1594
  );
1595
1595
  }
1596
1596
  /**
@@ -1599,18 +1599,18 @@ class rt {
1599
1599
  */
1600
1600
  parseInputValueDef() {
1601
1601
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseName();
1602
- this.expectToken(o.COLON);
1602
+ this.expectToken(a.COLON);
1603
1603
  const i = this.parseTypeReference();
1604
1604
  let s;
1605
- this.expectOptionalToken(o.EQUALS) && (s = this.parseConstValueLiteral());
1606
- const a = this.parseConstDirectives();
1605
+ this.expectOptionalToken(a.EQUALS) && (s = this.parseConstValueLiteral());
1606
+ const o = this.parseConstDirectives();
1607
1607
  return this.node(t, {
1608
- kind: c.INPUT_VALUE_DEFINITION,
1608
+ kind: d.INPUT_VALUE_DEFINITION,
1609
1609
  description: n,
1610
1610
  name: r,
1611
1611
  type: i,
1612
1612
  defaultValue: s,
1613
- directives: a
1613
+ directives: o
1614
1614
  });
1615
1615
  }
1616
1616
  /**
@@ -1620,14 +1620,14 @@ class rt {
1620
1620
  parseInterfaceTypeDefinition() {
1621
1621
  const t = this._lexer.token, n = this.parseDescription();
1622
1622
  this.expectKeyword("interface");
1623
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1623
+ const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
1624
1624
  return this.node(t, {
1625
- kind: c.INTERFACE_TYPE_DEFINITION,
1625
+ kind: d.INTERFACE_TYPE_DEFINITION,
1626
1626
  description: n,
1627
1627
  name: r,
1628
1628
  interfaces: i,
1629
1629
  directives: s,
1630
- fields: a
1630
+ fields: o
1631
1631
  });
1632
1632
  }
1633
1633
  /**
@@ -1639,7 +1639,7 @@ class rt {
1639
1639
  this.expectKeyword("union");
1640
1640
  const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseUnionMemberTypes();
1641
1641
  return this.node(t, {
1642
- kind: c.UNION_TYPE_DEFINITION,
1642
+ kind: d.UNION_TYPE_DEFINITION,
1643
1643
  description: n,
1644
1644
  name: r,
1645
1645
  directives: i,
@@ -1652,7 +1652,7 @@ class rt {
1652
1652
  * - UnionMemberTypes | NamedType
1653
1653
  */
1654
1654
  parseUnionMemberTypes() {
1655
- return this.expectOptionalToken(o.EQUALS) ? this.delimitedMany(o.PIPE, this.parseNamedType) : [];
1655
+ return this.expectOptionalToken(a.EQUALS) ? this.delimitedMany(a.PIPE, this.parseNamedType) : [];
1656
1656
  }
1657
1657
  /**
1658
1658
  * EnumTypeDefinition :
@@ -1663,7 +1663,7 @@ class rt {
1663
1663
  this.expectKeyword("enum");
1664
1664
  const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseEnumValuesDefinition();
1665
1665
  return this.node(t, {
1666
- kind: c.ENUM_TYPE_DEFINITION,
1666
+ kind: d.ENUM_TYPE_DEFINITION,
1667
1667
  description: n,
1668
1668
  name: r,
1669
1669
  directives: i,
@@ -1677,9 +1677,9 @@ class rt {
1677
1677
  */
1678
1678
  parseEnumValuesDefinition() {
1679
1679
  return this.optionalMany(
1680
- o.BRACE_L,
1680
+ a.BRACE_L,
1681
1681
  this.parseEnumValueDefinition,
1682
- o.BRACE_R
1682
+ a.BRACE_R
1683
1683
  );
1684
1684
  }
1685
1685
  /**
@@ -1688,7 +1688,7 @@ class rt {
1688
1688
  parseEnumValueDefinition() {
1689
1689
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseEnumValueName(), i = this.parseConstDirectives();
1690
1690
  return this.node(t, {
1691
- kind: c.ENUM_VALUE_DEFINITION,
1691
+ kind: d.ENUM_VALUE_DEFINITION,
1692
1692
  description: n,
1693
1693
  name: r,
1694
1694
  directives: i
@@ -1699,10 +1699,10 @@ class rt {
1699
1699
  */
1700
1700
  parseEnumValueName() {
1701
1701
  if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null")
1702
- throw I(
1702
+ throw f(
1703
1703
  this._lexer.source,
1704
1704
  this._lexer.token.start,
1705
- `${C(
1705
+ `${_(
1706
1706
  this._lexer.token
1707
1707
  )} is reserved and cannot be used for an enum value.`
1708
1708
  );
@@ -1717,7 +1717,7 @@ class rt {
1717
1717
  this.expectKeyword("input");
1718
1718
  const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseInputFieldsDefinition();
1719
1719
  return this.node(t, {
1720
- kind: c.INPUT_OBJECT_TYPE_DEFINITION,
1720
+ kind: d.INPUT_OBJECT_TYPE_DEFINITION,
1721
1721
  description: n,
1722
1722
  name: r,
1723
1723
  directives: i,
@@ -1731,9 +1731,9 @@ class rt {
1731
1731
  */
1732
1732
  parseInputFieldsDefinition() {
1733
1733
  return this.optionalMany(
1734
- o.BRACE_L,
1734
+ a.BRACE_L,
1735
1735
  this.parseInputValueDef,
1736
- o.BRACE_R
1736
+ a.BRACE_R
1737
1737
  );
1738
1738
  }
1739
1739
  /**
@@ -1751,7 +1751,7 @@ class rt {
1751
1751
  */
1752
1752
  parseTypeSystemExtension() {
1753
1753
  const t = this._lexer.lookahead();
1754
- if (t.kind === o.NAME)
1754
+ if (t.kind === a.NAME)
1755
1755
  switch (t.value) {
1756
1756
  case "schema":
1757
1757
  return this.parseSchemaExtension();
@@ -1781,14 +1781,14 @@ class rt {
1781
1781
  const t = this._lexer.token;
1782
1782
  this.expectKeyword("extend"), this.expectKeyword("schema");
1783
1783
  const n = this.parseConstDirectives(), r = this.optionalMany(
1784
- o.BRACE_L,
1784
+ a.BRACE_L,
1785
1785
  this.parseOperationTypeDefinition,
1786
- o.BRACE_R
1786
+ a.BRACE_R
1787
1787
  );
1788
1788
  if (n.length === 0 && r.length === 0)
1789
1789
  throw this.unexpected();
1790
1790
  return this.node(t, {
1791
- kind: c.SCHEMA_EXTENSION,
1791
+ kind: d.SCHEMA_EXTENSION,
1792
1792
  directives: n,
1793
1793
  operationTypes: r
1794
1794
  });
@@ -1804,7 +1804,7 @@ class rt {
1804
1804
  if (r.length === 0)
1805
1805
  throw this.unexpected();
1806
1806
  return this.node(t, {
1807
- kind: c.SCALAR_TYPE_EXTENSION,
1807
+ kind: d.SCALAR_TYPE_EXTENSION,
1808
1808
  name: n,
1809
1809
  directives: r
1810
1810
  });
@@ -1822,7 +1822,7 @@ class rt {
1822
1822
  if (r.length === 0 && i.length === 0 && s.length === 0)
1823
1823
  throw this.unexpected();
1824
1824
  return this.node(t, {
1825
- kind: c.OBJECT_TYPE_EXTENSION,
1825
+ kind: d.OBJECT_TYPE_EXTENSION,
1826
1826
  name: n,
1827
1827
  interfaces: r,
1828
1828
  directives: i,
@@ -1842,7 +1842,7 @@ class rt {
1842
1842
  if (r.length === 0 && i.length === 0 && s.length === 0)
1843
1843
  throw this.unexpected();
1844
1844
  return this.node(t, {
1845
- kind: c.INTERFACE_TYPE_EXTENSION,
1845
+ kind: d.INTERFACE_TYPE_EXTENSION,
1846
1846
  name: n,
1847
1847
  interfaces: r,
1848
1848
  directives: i,
@@ -1861,7 +1861,7 @@ class rt {
1861
1861
  if (r.length === 0 && i.length === 0)
1862
1862
  throw this.unexpected();
1863
1863
  return this.node(t, {
1864
- kind: c.UNION_TYPE_EXTENSION,
1864
+ kind: d.UNION_TYPE_EXTENSION,
1865
1865
  name: n,
1866
1866
  directives: r,
1867
1867
  types: i
@@ -1879,7 +1879,7 @@ class rt {
1879
1879
  if (r.length === 0 && i.length === 0)
1880
1880
  throw this.unexpected();
1881
1881
  return this.node(t, {
1882
- kind: c.ENUM_TYPE_EXTENSION,
1882
+ kind: d.ENUM_TYPE_EXTENSION,
1883
1883
  name: n,
1884
1884
  directives: r,
1885
1885
  values: i
@@ -1897,7 +1897,7 @@ class rt {
1897
1897
  if (r.length === 0 && i.length === 0)
1898
1898
  throw this.unexpected();
1899
1899
  return this.node(t, {
1900
- kind: c.INPUT_OBJECT_TYPE_EXTENSION,
1900
+ kind: d.INPUT_OBJECT_TYPE_EXTENSION,
1901
1901
  name: n,
1902
1902
  directives: r,
1903
1903
  fields: i
@@ -1911,17 +1911,17 @@ class rt {
1911
1911
  */
1912
1912
  parseDirectiveDefinition() {
1913
1913
  const t = this._lexer.token, n = this.parseDescription();
1914
- this.expectKeyword("directive"), this.expectToken(o.AT);
1914
+ this.expectKeyword("directive"), this.expectToken(a.AT);
1915
1915
  const r = this.parseName(), i = this.parseArgumentDefs(), s = this.expectOptionalKeyword("repeatable");
1916
1916
  this.expectKeyword("on");
1917
- const a = this.parseDirectiveLocations();
1917
+ const o = this.parseDirectiveLocations();
1918
1918
  return this.node(t, {
1919
- kind: c.DIRECTIVE_DEFINITION,
1919
+ kind: d.DIRECTIVE_DEFINITION,
1920
1920
  description: n,
1921
1921
  name: r,
1922
1922
  arguments: i,
1923
1923
  repeatable: s,
1924
- locations: a
1924
+ locations: o
1925
1925
  });
1926
1926
  }
1927
1927
  /**
@@ -1930,7 +1930,7 @@ class rt {
1930
1930
  * - DirectiveLocations | DirectiveLocation
1931
1931
  */
1932
1932
  parseDirectiveLocations() {
1933
- return this.delimitedMany(o.PIPE, this.parseDirectiveLocation);
1933
+ return this.delimitedMany(a.PIPE, this.parseDirectiveLocation);
1934
1934
  }
1935
1935
  /*
1936
1936
  * DirectiveLocation :
@@ -1975,28 +1975,28 @@ class rt {
1975
1975
  * - \@ Name ( Name : )
1976
1976
  */
1977
1977
  parseSchemaCoordinate() {
1978
- const t = this._lexer.token, n = this.expectOptionalToken(o.AT), r = this.parseName();
1978
+ const t = this._lexer.token, n = this.expectOptionalToken(a.AT), r = this.parseName();
1979
1979
  let i;
1980
- !n && this.expectOptionalToken(o.DOT) && (i = this.parseName());
1980
+ !n && this.expectOptionalToken(a.DOT) && (i = this.parseName());
1981
1981
  let s;
1982
- return (n || i) && this.expectOptionalToken(o.PAREN_L) && (s = this.parseName(), this.expectToken(o.COLON), this.expectToken(o.PAREN_R)), n ? s ? this.node(t, {
1983
- kind: c.DIRECTIVE_ARGUMENT_COORDINATE,
1982
+ return (n || i) && this.expectOptionalToken(a.PAREN_L) && (s = this.parseName(), this.expectToken(a.COLON), this.expectToken(a.PAREN_R)), n ? s ? this.node(t, {
1983
+ kind: d.DIRECTIVE_ARGUMENT_COORDINATE,
1984
1984
  name: r,
1985
1985
  argumentName: s
1986
1986
  }) : this.node(t, {
1987
- kind: c.DIRECTIVE_COORDINATE,
1987
+ kind: d.DIRECTIVE_COORDINATE,
1988
1988
  name: r
1989
1989
  }) : i ? s ? this.node(t, {
1990
- kind: c.ARGUMENT_COORDINATE,
1990
+ kind: d.ARGUMENT_COORDINATE,
1991
1991
  name: r,
1992
1992
  fieldName: i,
1993
1993
  argumentName: s
1994
1994
  }) : this.node(t, {
1995
- kind: c.MEMBER_COORDINATE,
1995
+ kind: d.MEMBER_COORDINATE,
1996
1996
  name: r,
1997
1997
  memberName: i
1998
1998
  }) : this.node(t, {
1999
- kind: c.TYPE_COORDINATE,
1999
+ kind: d.TYPE_COORDINATE,
2000
2000
  name: r
2001
2001
  });
2002
2002
  }
@@ -2007,7 +2007,7 @@ class rt {
2007
2007
  * given parsed object.
2008
2008
  */
2009
2009
  node(t, n) {
2010
- return this._options.noLocation !== !0 && (n.loc = new Se(
2010
+ return this._options.noLocation !== !0 && (n.loc = new Ce(
2011
2011
  t,
2012
2012
  this._lexer.lastToken,
2013
2013
  this._lexer.source
@@ -2027,10 +2027,10 @@ class rt {
2027
2027
  const n = this._lexer.token;
2028
2028
  if (n.kind === t)
2029
2029
  return this.advanceLexer(), n;
2030
- throw I(
2030
+ throw f(
2031
2031
  this._lexer.source,
2032
2032
  n.start,
2033
- `Expected ${ke(t)}, found ${C(n)}.`
2033
+ `Expected ${ke(t)}, found ${_(n)}.`
2034
2034
  );
2035
2035
  }
2036
2036
  /**
@@ -2046,13 +2046,13 @@ class rt {
2046
2046
  */
2047
2047
  expectKeyword(t) {
2048
2048
  const n = this._lexer.token;
2049
- if (n.kind === o.NAME && n.value === t)
2049
+ if (n.kind === a.NAME && n.value === t)
2050
2050
  this.advanceLexer();
2051
2051
  else
2052
- throw I(
2052
+ throw f(
2053
2053
  this._lexer.source,
2054
2054
  n.start,
2055
- `Expected "${t}", found ${C(n)}.`
2055
+ `Expected "${t}", found ${_(n)}.`
2056
2056
  );
2057
2057
  }
2058
2058
  /**
@@ -2061,17 +2061,17 @@ class rt {
2061
2061
  */
2062
2062
  expectOptionalKeyword(t) {
2063
2063
  const n = this._lexer.token;
2064
- return n.kind === o.NAME && n.value === t ? (this.advanceLexer(), !0) : !1;
2064
+ return n.kind === a.NAME && n.value === t ? (this.advanceLexer(), !0) : !1;
2065
2065
  }
2066
2066
  /**
2067
2067
  * Helper function for creating an error when an unexpected lexed token is encountered.
2068
2068
  */
2069
2069
  unexpected(t) {
2070
2070
  const n = t ?? this._lexer.token;
2071
- return I(
2071
+ return f(
2072
2072
  this._lexer.source,
2073
2073
  n.start,
2074
- `Unexpected ${C(n)}.`
2074
+ `Unexpected ${_(n)}.`
2075
2075
  );
2076
2076
  }
2077
2077
  /**
@@ -2130,36 +2130,36 @@ class rt {
2130
2130
  }
2131
2131
  advanceLexer() {
2132
2132
  const { maxTokens: t } = this._options, n = this._lexer.advance();
2133
- if (n.kind !== o.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2134
- throw I(
2133
+ if (n.kind !== a.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2134
+ throw f(
2135
2135
  this._lexer.source,
2136
2136
  n.start,
2137
2137
  `Document contains more that ${t} tokens. Parsing aborted.`
2138
2138
  );
2139
2139
  }
2140
2140
  }
2141
- function C(e) {
2141
+ function _(e) {
2142
2142
  const t = e.value;
2143
2143
  return ke(e.kind) + (t != null ? ` "${t}"` : "");
2144
2144
  }
2145
2145
  function ke(e) {
2146
- return $e(e) ? `"${e}"` : e;
2146
+ return Be(e) ? `"${e}"` : e;
2147
2147
  }
2148
- var _ = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), Ae = !0, F = !1;
2148
+ var L = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), Ae = !0, F = !1;
2149
2149
  function Oe(e) {
2150
2150
  return e.replace(/[\s,]+/g, " ").trim();
2151
2151
  }
2152
- function it(e) {
2152
+ function st(e) {
2153
2153
  return Oe(e.source.body.substring(e.start, e.end));
2154
2154
  }
2155
- function st(e) {
2155
+ function at(e) {
2156
2156
  var t = /* @__PURE__ */ new Set(), n = [];
2157
2157
  return e.definitions.forEach(function(r) {
2158
2158
  if (r.kind === "FragmentDefinition") {
2159
- var i = r.name.value, s = it(r.loc), a = z.get(i);
2160
- a && !a.has(s) ? Ae && console.warn("Warning: fragment with name " + i + ` already exists.
2159
+ var i = r.name.value, s = st(r.loc), o = z.get(i);
2160
+ o && !o.has(s) ? Ae && console.warn("Warning: fragment with name " + i + ` already exists.
2161
2161
  graphql-tag enforces all fragment names across your application to be unique; read more about
2162
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || z.set(i, a = /* @__PURE__ */ new Set()), a.add(s), t.has(s) || (t.add(s), n.push(r));
2162
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || z.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
2163
2163
  } else
2164
2164
  n.push(r);
2165
2165
  }), w(w({}, e), { definitions: n });
@@ -2175,18 +2175,18 @@ function ot(e) {
2175
2175
  var n = e.loc;
2176
2176
  return n && (delete n.startToken, delete n.endToken), e;
2177
2177
  }
2178
- function at(e) {
2178
+ function ct(e) {
2179
2179
  var t = Oe(e);
2180
- if (!_.has(t)) {
2181
- var n = nt(e, {
2180
+ if (!L.has(t)) {
2181
+ var n = rt(e, {
2182
2182
  experimentalFragmentVariables: F,
2183
2183
  allowLegacyFragmentVariables: F
2184
2184
  });
2185
2185
  if (!n || n.kind !== "Document")
2186
2186
  throw new Error("Not a valid GraphQL document.");
2187
- _.set(t, ot(st(n)));
2187
+ L.set(t, ot(at(n)));
2188
2188
  }
2189
- return _.get(t);
2189
+ return L.get(t);
2190
2190
  }
2191
2191
  function u(e) {
2192
2192
  for (var t = [], n = 1; n < arguments.length; n++)
@@ -2195,32 +2195,32 @@ function u(e) {
2195
2195
  var r = e[0];
2196
2196
  return t.forEach(function(i, s) {
2197
2197
  i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
2198
- }), at(r);
2199
- }
2200
- function ct() {
2201
- _.clear(), z.clear();
2198
+ }), ct(r);
2202
2199
  }
2203
2200
  function dt() {
2204
- Ae = !1;
2201
+ L.clear(), z.clear();
2205
2202
  }
2206
2203
  function ut() {
2207
- F = !0;
2204
+ Ae = !1;
2208
2205
  }
2209
2206
  function lt() {
2207
+ F = !0;
2208
+ }
2209
+ function ht() {
2210
2210
  F = !1;
2211
2211
  }
2212
- var P = {
2212
+ var b = {
2213
2213
  gql: u,
2214
- resetCaches: ct,
2215
- disableFragmentWarnings: dt,
2216
- enableExperimentalFragmentVariables: ut,
2217
- disableExperimentalFragmentVariables: lt
2214
+ resetCaches: dt,
2215
+ disableFragmentWarnings: ut,
2216
+ enableExperimentalFragmentVariables: lt,
2217
+ disableExperimentalFragmentVariables: ht
2218
2218
  };
2219
2219
  (function(e) {
2220
- e.gql = P.gql, e.resetCaches = P.resetCaches, e.disableFragmentWarnings = P.disableFragmentWarnings, e.enableExperimentalFragmentVariables = P.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = P.disableExperimentalFragmentVariables;
2220
+ e.gql = b.gql, e.resetCaches = b.resetCaches, e.disableFragmentWarnings = b.disableFragmentWarnings, e.enableExperimentalFragmentVariables = b.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = b.disableExperimentalFragmentVariables;
2221
2221
  })(u || (u = {}));
2222
2222
  u.default = u;
2223
- const ht = u`
2223
+ const pt = u`
2224
2224
  query findActiveOrderById($id: String) {
2225
2225
  findOrder(id: $id) {
2226
2226
  id
@@ -2311,7 +2311,7 @@ const ht = u`
2311
2311
  }
2312
2312
  }
2313
2313
  }
2314
- `, pt = u`
2314
+ `, gt = u`
2315
2315
  query findOrderById($id: String, $reference: String) {
2316
2316
  findOrder(id: $id, reference: $reference) {
2317
2317
  id
@@ -2358,7 +2358,7 @@ const ht = u`
2358
2358
  }
2359
2359
  }
2360
2360
  }
2361
- `, gt = u`
2361
+ `, mt = u`
2362
2362
  mutation addToOrder($orderId: ID!, $productId: ID!, $shopId: ID, $additionalData: AdditionalDataInput, $trackerId: ID, $amount: Int) {
2363
2363
  reserveProduct(
2364
2364
  input: {orderId: $orderId, productId: $productId, additionalData: $additionalData, trackerId: $trackerId, shopId: $shopId, amountToIncrease: $amount}
@@ -2368,7 +2368,7 @@ const ht = u`
2368
2368
  amountReserved
2369
2369
  }
2370
2370
  }
2371
- `, mt = u`
2371
+ `, ft = u`
2372
2372
  mutation removeFromOrder($orderId: ID!, $productId: ID!, $additionalData: AdditionalDataInput, $amount: Int) {
2373
2373
  releaseProduct(
2374
2374
  input: {orderId: $orderId, productId: $productId, additionalData: $additionalData, amountToRelease: $amount}
@@ -2377,14 +2377,14 @@ const ht = u`
2377
2377
  amountReleased
2378
2378
  }
2379
2379
  }
2380
- `, ft = u`
2380
+ `, It = u`
2381
2381
  mutation configureDiscount($orderId: ID!, $discountCode: String) {
2382
2382
  createOrderDiscount(input: {id: $orderId, discountCode: $discountCode}) {
2383
2383
  amount
2384
2384
  code
2385
2385
  }
2386
2386
  }
2387
- `, It = u`
2387
+ `, Et = u`
2388
2388
  mutation configurePackage($orderId: ID!, $packageId: ID!, $amount: Int!, $items: [ReservedItem!]!, $shopId: ID, $trackerId: ID) {
2389
2389
  configurePackage(
2390
2390
  input: {orderId: $orderId, shopId: $shopId, trackerId: $trackerId, packageId: $packageId, amount: $amount, items: $items}
@@ -2394,7 +2394,7 @@ const ht = u`
2394
2394
  amountReserved
2395
2395
  }
2396
2396
  }
2397
- `, Et = u`
2397
+ `, yt = u`
2398
2398
  mutation reserveAdditionalPackageItem($amount: Int!, $orderId: ID!, $packageId: ID!, $eventId: ID!, $packageItemId: ID!) {
2399
2399
  reserveAdditionalPackageItem(
2400
2400
  input: {amount: $amount, eventId: $eventId, orderId: $orderId, packageId: $packageId, packageItemId: $packageItemId}
@@ -2404,60 +2404,60 @@ const ht = u`
2404
2404
  amountReserved
2405
2405
  }
2406
2406
  }
2407
- `, yt = u`
2407
+ `, kt = u`
2408
2408
  mutation configureOrderDeliveryOption($orderId: ID!, $productId: ID) {
2409
2409
  configureDeliveryOption(input: {orderId: $orderId, productId: $productId})
2410
2410
  }
2411
- `, kt = u`
2411
+ `, At = u`
2412
2412
  mutation createOrderCustomer($orderId: ID!, $countryCode: String, $customer: CreateCustomerInput!) {
2413
2413
  createOrderCustomer(
2414
2414
  input: {id: $orderId, countryCode: $countryCode, customer: $customer}
2415
2415
  )
2416
2416
  }
2417
- `, At = u`
2417
+ `, Ot = u`
2418
2418
  mutation deleteOrder($orderId: ID!) {
2419
2419
  cancelOrder(id: $orderId)
2420
2420
  }
2421
- `, Ot = (e, t, n, r) => e();
2422
- function Tt(e, t = Ot) {
2421
+ `, Tt = (e, t, n, r) => e();
2422
+ function Dt(e, t = Tt) {
2423
2423
  return {
2424
2424
  findActiveOrderById(n, r, i) {
2425
- return t((s) => e.request({ document: ht, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findActiveOrderById", "query", n);
2425
+ return t((s) => e.request({ document: pt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findActiveOrderById", "query", n);
2426
2426
  },
2427
2427
  findOrderById(n, r, i) {
2428
- return t((s) => e.request({ document: pt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findOrderById", "query", n);
2428
+ return t((s) => e.request({ document: gt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findOrderById", "query", n);
2429
2429
  },
2430
2430
  addToOrder(n, r, i) {
2431
- return t((s) => e.request({ document: gt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "addToOrder", "mutation", n);
2431
+ return t((s) => e.request({ document: mt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "addToOrder", "mutation", n);
2432
2432
  },
2433
2433
  removeFromOrder(n, r, i) {
2434
- return t((s) => e.request({ document: mt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "removeFromOrder", "mutation", n);
2434
+ return t((s) => e.request({ document: ft, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "removeFromOrder", "mutation", n);
2435
2435
  },
2436
2436
  configureDiscount(n, r, i) {
2437
- return t((s) => e.request({ document: ft, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configureDiscount", "mutation", n);
2437
+ return t((s) => e.request({ document: It, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configureDiscount", "mutation", n);
2438
2438
  },
2439
2439
  configurePackage(n, r, i) {
2440
- return t((s) => e.request({ document: It, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configurePackage", "mutation", n);
2440
+ return t((s) => e.request({ document: Et, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configurePackage", "mutation", n);
2441
2441
  },
2442
2442
  reserveAdditionalPackageItem(n, r, i) {
2443
- return t((s) => e.request({ document: Et, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "reserveAdditionalPackageItem", "mutation", n);
2443
+ return t((s) => e.request({ document: yt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "reserveAdditionalPackageItem", "mutation", n);
2444
2444
  },
2445
2445
  configureOrderDeliveryOption(n, r, i) {
2446
- return t((s) => e.request({ document: yt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configureOrderDeliveryOption", "mutation", n);
2446
+ return t((s) => e.request({ document: kt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "configureOrderDeliveryOption", "mutation", n);
2447
2447
  },
2448
2448
  createOrderCustomer(n, r, i) {
2449
- return t((s) => e.request({ document: kt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "createOrderCustomer", "mutation", n);
2449
+ return t((s) => e.request({ document: At, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "createOrderCustomer", "mutation", n);
2450
2450
  },
2451
2451
  deleteOrder(n, r, i) {
2452
- return t((s) => e.request({ document: At, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "deleteOrder", "mutation", n);
2452
+ return t((s) => e.request({ document: Ot, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "deleteOrder", "mutation", n);
2453
2453
  }
2454
2454
  };
2455
2455
  }
2456
- class Dt {
2456
+ class Nt {
2457
2457
  config;
2458
2458
  sdk;
2459
2459
  constructor(t) {
2460
- this.config = t, this.sdk = Tt(new O(t.apiUrl));
2460
+ this.config = t, this.sdk = Dt(new T(t.apiUrl));
2461
2461
  }
2462
2462
  // Basket update functions
2463
2463
  async addProduct(t, n, r) {
@@ -2508,9 +2508,9 @@ class Dt {
2508
2508
  }
2509
2509
  async configurePackage(t, n, r) {
2510
2510
  try {
2511
- const i = n.items.map((a) => ({
2512
- packageItemId: a.packageItemId,
2513
- eventId: a.eventId
2511
+ const i = n.items.map((o) => ({
2512
+ packageItemId: o.packageItemId,
2513
+ eventId: o.eventId
2514
2514
  }));
2515
2515
  this.debugLog("Configuring package", {
2516
2516
  packageId: n.id,
@@ -2618,67 +2618,90 @@ class Dt {
2618
2618
  return null;
2619
2619
  const r = n.findOrder;
2620
2620
  this.debugLog("Order fetched successfully", r);
2621
- const i = r.items, s = i.filter((d) => d.product != null && d.amount > 0).map((d) => {
2622
- let g = T.PRODUCT;
2623
- return d.product.type === "ADDON" ? g = T.ADD_ONS : d.product.type === "PICKUP" ? g = T.PICKUP : d.product.type === "DELIVERY" && (g = T.DELIVERY), {
2624
- id: d.product.id,
2625
- type: g,
2626
- name: d.product.name,
2627
- icon: d.product.icon,
2628
- description: d.product.description,
2629
- amount: d.amount,
2630
- price: d.price ?? 0,
2631
- depositPrice: d.depositPrice ?? 0,
2632
- originalPrice: d.originalPrice ?? 0,
2633
- serviceFee: d.serviceFee ?? 0,
2634
- maxAmountOfAddons: d.product?.maxAmountOfAddons ?? 0,
2635
- minAmountOfAddons: d.product?.minAmountOfAddons ?? 0,
2636
- seats: d.seats?.map((y) => ({
2637
- id: y.seatsIoId,
2638
- label: y.label,
2639
- amount: y.amount
2621
+ const i = r.items, s = i.filter((c) => c.product != null && c.amount > 0).map((c) => {
2622
+ let E = O.PRODUCT;
2623
+ return c.product.type === "ADDON" ? E = O.ADD_ONS : c.product.type === "PICKUP" ? E = O.PICKUP : c.product.type === "DELIVERY" && (E = O.DELIVERY), {
2624
+ id: c.product.id,
2625
+ type: E,
2626
+ name: c.product.name,
2627
+ icon: c.product.icon,
2628
+ description: c.product.description,
2629
+ amount: c.amount,
2630
+ price: c.price ?? 0,
2631
+ depositPrice: c.depositPrice ?? 0,
2632
+ originalPrice: c.originalPrice ?? 0,
2633
+ serviceFee: c.serviceFee ?? 0,
2634
+ maxAmountOfAddons: c.product?.maxAmountOfAddons ?? 0,
2635
+ minAmountOfAddons: c.product?.minAmountOfAddons ?? 0,
2636
+ seats: c.seats?.map((p) => ({
2637
+ id: p.seatsIoId,
2638
+ label: p.label,
2639
+ amount: p.amount
2640
2640
  }))
2641
2641
  };
2642
- }), a = i.filter((d) => d.packageItem != null && d.amount > 0).reduce((d, g) => {
2642
+ }), o = i.filter(
2643
+ (c) => c.packageItem != null && c.packageItem.type !== v.Regular && c.amount
2644
+ ).map((c) => ({
2645
+ id: c.packageItem.id,
2646
+ type: O.ADD_ONS,
2647
+ name: c.event.name,
2648
+ icon: c.event.icon,
2649
+ amount: c.amount,
2650
+ price: c.price,
2651
+ depositPrice: c.depositPrice,
2652
+ originalPrice: c.originalPrice,
2653
+ serviceFee: c.serviceFee,
2654
+ packageItems: [
2655
+ {
2656
+ packageItemId: c.packageItem.id,
2657
+ eventId: c.event.id,
2658
+ name: c.event.name,
2659
+ startAt: c.event.startAt,
2660
+ endAt: c.event.endAt,
2661
+ timezone: c.event.timezone
2662
+ }
2663
+ ]
2664
+ })), l = i.filter((c) => c.packageItem != null && c.amount > 0 && c.packageItem.type === v.Regular).reduce((c, E) => {
2643
2665
  const {
2644
- packageItem: y,
2645
- event: m,
2646
- amount: k,
2647
- price: S,
2666
+ packageItem: p,
2667
+ event: y,
2668
+ amount: Te,
2669
+ price: C,
2648
2670
  serviceFee: j,
2649
2671
  depositPrice: H,
2650
2672
  originalPrice: Y
2651
- } = g, A = y.package.id;
2652
- return d[A] ? (d[A].price += S ?? 0, d[A].serviceFee += j ?? 0, d[A].originalPrice += Y ?? 0, d[A].depositPrice += H ?? S ?? 0) : d[A] = {
2673
+ } = E, A = p.package.id;
2674
+ return c[A] ? (c[A].price += C ?? 0, c[A].serviceFee += j ?? 0, c[A].originalPrice += Y ?? 0, c[A].depositPrice += H ?? C ?? 0) : c[A] = {
2653
2675
  id: A,
2654
- type: T.PACKAGE,
2655
- name: y.package.name,
2656
- amount: k,
2657
- price: S ?? 0,
2676
+ type: O.PACKAGE,
2677
+ name: p.package.name,
2678
+ amount: Te,
2679
+ price: C ?? 0,
2658
2680
  serviceFee: j ?? 0,
2659
- depositPrice: H ?? S ?? 0,
2681
+ depositPrice: H ?? C ?? 0,
2660
2682
  originalPrice: Y ?? 0,
2661
2683
  packageItems: []
2662
- }, d[A].packageItems.push({
2663
- packageItemId: y.id,
2664
- eventId: m.id,
2665
- name: m.name,
2666
- startAt: m.startAt,
2667
- endAt: m.endAt,
2668
- timezone: m.timezone
2669
- }), d;
2670
- }, {}), l = [
2684
+ }, c[A].packageItems.push({
2685
+ packageItemId: p.id,
2686
+ eventId: y.id,
2687
+ name: y.name,
2688
+ startAt: y.startAt,
2689
+ endAt: y.endAt,
2690
+ timezone: y.timezone
2691
+ }), c;
2692
+ }, {}), h = [
2671
2693
  ...s,
2672
- ...Object.values(a)
2673
- ], h = l.reduce((d, g) => d + (g.amount || 0), 0);
2674
- if (h === 0)
2694
+ ...o,
2695
+ ...Object.values(l)
2696
+ ], I = h.reduce((c, E) => c + (E.amount || 0), 0);
2697
+ if (I === 0)
2675
2698
  return null;
2676
- const E = i.filter((d) => d.amount > 0).map((d) => new Date(d.expiredAt).getTime()), p = Te.fromMillis(Math.min(...E));
2699
+ const g = i.filter((c) => c.amount > 0).map((c) => new Date(c.expiredAt).getTime()), k = De.fromMillis(Math.min(...g));
2677
2700
  return {
2678
2701
  id: r.id,
2679
2702
  currency: r.currency,
2680
- expiredAt: p?.toJSDate().toISOString(),
2681
- items: l,
2703
+ expiredAt: k?.toJSDate().toISOString(),
2704
+ items: h,
2682
2705
  customer: r.mainBooker ? {
2683
2706
  firstName: r.mainBooker.firstName,
2684
2707
  lastName: r.mainBooker.lastName,
@@ -2688,7 +2711,7 @@ class Dt {
2688
2711
  residence: r.mainBooker.residence,
2689
2712
  extraInfo: r.mainBooker.extraInfo
2690
2713
  } : null,
2691
- count: h,
2714
+ count: I,
2692
2715
  orderProtection: !1,
2693
2716
  discountCode: r.discount?.code
2694
2717
  };
@@ -2711,7 +2734,7 @@ class Dt {
2711
2734
  }
2712
2735
  }
2713
2736
  }
2714
- const Nt = u`
2737
+ const vt = u`
2715
2738
  query EventOverviewPage($organizationId: ID!, $hostingIds: [String!], $locationIds: [String!], $excludedEventIds: [String!], $trackerId: String, $filterEventStatuses: [EventStatus!], $dateRange: DateRangeInput, $page: PageInput, $sorts: [SortInput!], $searchTerm: String, $priceRange: PriceRangeInput, $showDoorTickets: Boolean) {
2716
2739
  findAllPublicEventByOrganizationId(
2717
2740
  id: $organizationId
@@ -2758,7 +2781,7 @@ const Nt = u`
2758
2781
  count
2759
2782
  }
2760
2783
  }
2761
- `, vt = u`
2784
+ `, Pt = u`
2762
2785
  query EventDetailPage($eventId: ID!) {
2763
2786
  findPublicEventById(id: $eventId) {
2764
2787
  id
@@ -2791,7 +2814,7 @@ const Nt = u`
2791
2814
  seatsIoEventId
2792
2815
  }
2793
2816
  }
2794
- `, Pt = u`
2817
+ `, bt = u`
2795
2818
  query FindPublicEventBySlug($organizationId: ID!, $slug: String!) {
2796
2819
  findPublicEventBySlug(organizationId: $organizationId, slug: $slug) {
2797
2820
  id
@@ -2824,7 +2847,7 @@ const Nt = u`
2824
2847
  seatsIoEventId
2825
2848
  }
2826
2849
  }
2827
- `, bt = u`
2850
+ `, xt = u`
2828
2851
  query findProductsByEventId($eventId: ID!, $promoCode: String, $trackerId: String, $productTypes: [ProductType!]) {
2829
2852
  findPublicProductsByEventId(
2830
2853
  eventId: $eventId
@@ -2859,28 +2882,28 @@ const Nt = u`
2859
2882
  showEndSalesAtTag
2860
2883
  }
2861
2884
  }
2862
- `, xt = (e, t, n, r) => e();
2863
- function St(e, t = xt) {
2885
+ `, St = (e, t, n, r) => e();
2886
+ function Ct(e, t = St) {
2864
2887
  return {
2865
2888
  EventOverviewPage(n, r, i) {
2866
- return t((s) => e.request({ document: Nt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "EventOverviewPage", "query", n);
2889
+ return t((s) => e.request({ document: vt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "EventOverviewPage", "query", n);
2867
2890
  },
2868
2891
  EventDetailPage(n, r, i) {
2869
- return t((s) => e.request({ document: vt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "EventDetailPage", "query", n);
2892
+ return t((s) => e.request({ document: Pt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "EventDetailPage", "query", n);
2870
2893
  },
2871
2894
  FindPublicEventBySlug(n, r, i) {
2872
- return t((s) => e.request({ document: Pt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "FindPublicEventBySlug", "query", n);
2895
+ return t((s) => e.request({ document: bt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "FindPublicEventBySlug", "query", n);
2873
2896
  },
2874
2897
  findProductsByEventId(n, r, i) {
2875
- return t((s) => e.request({ document: bt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findProductsByEventId", "query", n);
2898
+ return t((s) => e.request({ document: xt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findProductsByEventId", "query", n);
2876
2899
  }
2877
2900
  };
2878
2901
  }
2879
- class Ct {
2902
+ class _t {
2880
2903
  config;
2881
2904
  sdk;
2882
2905
  constructor(t) {
2883
- this.config = t, this.sdk = St(new O(t.apiUrl));
2906
+ this.config = t, this.sdk = Ct(new T(t.apiUrl));
2884
2907
  }
2885
2908
  async getEvents(t, n) {
2886
2909
  try {
@@ -3055,36 +3078,36 @@ class Ct {
3055
3078
  productTypes: n
3056
3079
  });
3057
3080
  if (i?.findPublicProductsByEventId) {
3058
- const s = i.findPublicProductsByEventId.map((a) => ({
3059
- id: a.id,
3060
- name: a.name,
3061
- category: a.category ? {
3062
- id: a.category.id,
3063
- name: a.category.name,
3064
- description: a.category.description,
3065
- order: a.category.order
3081
+ const s = i.findPublicProductsByEventId.map((o) => ({
3082
+ id: o.id,
3083
+ name: o.name,
3084
+ category: o.category ? {
3085
+ id: o.category.id,
3086
+ name: o.category.name,
3087
+ description: o.category.description,
3088
+ order: o.category.order
3066
3089
  } : void 0,
3067
- currency: a.currency,
3068
- depositPrice: a.depositPrice,
3069
- description: a.description,
3070
- discountPrice: a.promoterDiscountPrice ?? a.discountPrice,
3071
- startSalesAt: a.startSalesAt,
3072
- endSalesAt: a.endSalesAt,
3073
- icon: a.icon,
3074
- maxAmountOfAddons: a.maxAmountOfAddons,
3075
- minAmountOfAddons: a.minAmountOfAddons,
3076
- maxAmountPerOrder: a.maxAmountPerOrder,
3077
- price: a.price,
3078
- serviceFee: a.serviceFee,
3079
- showEndSalesAtTag: a.showEndSalesAtTag,
3080
- status: a.status,
3081
- type: a.type,
3082
- seatsCategory: a.seatsCategory
3090
+ currency: o.currency,
3091
+ depositPrice: o.depositPrice,
3092
+ description: o.description,
3093
+ discountPrice: o.promoterDiscountPrice ?? o.discountPrice,
3094
+ startSalesAt: o.startSalesAt,
3095
+ endSalesAt: o.endSalesAt,
3096
+ icon: o.icon,
3097
+ maxAmountOfAddons: o.maxAmountOfAddons,
3098
+ minAmountOfAddons: o.minAmountOfAddons,
3099
+ maxAmountPerOrder: o.maxAmountPerOrder,
3100
+ price: o.price,
3101
+ serviceFee: o.serviceFee,
3102
+ showEndSalesAtTag: o.showEndSalesAtTag,
3103
+ status: o.status,
3104
+ type: o.type,
3105
+ seatsCategory: o.seatsCategory
3083
3106
  }));
3084
3107
  return this.debugLog("Products fetched", {
3085
3108
  eventId: t,
3086
3109
  count: s.length,
3087
- types: s.map((a) => a.type)
3110
+ types: s.map((o) => o.type)
3088
3111
  }), s;
3089
3112
  }
3090
3113
  return;
@@ -3096,7 +3119,7 @@ class Ct {
3096
3119
  this.config.debug && console.log(`[EventService:${this.config.organizationId}] ${t}`, n || "");
3097
3120
  }
3098
3121
  }
3099
- const _t = u`
3122
+ const Lt = u`
3100
3123
  query findPaymentMethods($orderId: ID!, $orderItemId: String, $amountOfTickets: Int, $paymentMethodId: String, $withTicketProtection: Boolean) {
3101
3124
  findPaymentDetails(
3102
3125
  orderId: $orderId
@@ -3126,26 +3149,26 @@ const _t = u`
3126
3149
  protectionFee
3127
3150
  }
3128
3151
  }
3129
- `, Lt = u`
3152
+ `, Rt = u`
3130
3153
  mutation createDigitalPayment($input: CreateDigitalOrderPaymentInput!) {
3131
3154
  createDigitalOrderPayment(input: $input)
3132
3155
  }
3133
- `, Rt = (e, t, n, r) => e();
3134
- function wt(e, t = Rt) {
3156
+ `, wt = (e, t, n, r) => e();
3157
+ function Ft(e, t = wt) {
3135
3158
  return {
3136
3159
  findPaymentMethods(n, r, i) {
3137
- return t((s) => e.request({ document: _t, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPaymentMethods", "query", n);
3160
+ return t((s) => e.request({ document: Lt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPaymentMethods", "query", n);
3138
3161
  },
3139
3162
  createDigitalPayment(n, r, i) {
3140
- return t((s) => e.request({ document: Lt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "createDigitalPayment", "mutation", n);
3163
+ return t((s) => e.request({ document: Rt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "createDigitalPayment", "mutation", n);
3141
3164
  }
3142
3165
  };
3143
3166
  }
3144
- class Ft {
3167
+ class $t {
3145
3168
  config;
3146
3169
  sdk;
3147
3170
  constructor(t) {
3148
- this.config = t, this.sdk = wt(new O(t.apiUrl));
3171
+ this.config = t, this.sdk = Ft(new T(t.apiUrl));
3149
3172
  }
3150
3173
  async getPaymentDetails(t) {
3151
3174
  this.debugLog("Fetching payment methods", t);
@@ -3223,7 +3246,7 @@ class Ft {
3223
3246
  this.config.debug && console.log(`[PaymentService] ${t}`, n || "");
3224
3247
  }
3225
3248
  }
3226
- const $t = u`
3249
+ const Bt = u`
3227
3250
  query findAllPublicPackagesByOrganizationId($organizationId: ID!) {
3228
3251
  findAllPublicPackagesByOrganizationId(organizationId: $organizationId) {
3229
3252
  data {
@@ -3250,7 +3273,7 @@ const $t = u`
3250
3273
  count
3251
3274
  }
3252
3275
  }
3253
- `, Bt = u`
3276
+ `, Ut = u`
3254
3277
  query findPublicPackageById($packageId: ID!) {
3255
3278
  findPublicPackageById(id: $packageId) {
3256
3279
  id
@@ -3278,7 +3301,7 @@ const $t = u`
3278
3301
  amountOfDaysToPlanAhead
3279
3302
  }
3280
3303
  }
3281
- `, Ut = u`
3304
+ `, Vt = u`
3282
3305
  query findPublicPackageBySlug($organizationId: ID!, $slug: String!) {
3283
3306
  findPublicPackageBySlug(organizationId: $organizationId, slug: $slug) {
3284
3307
  id
@@ -3306,7 +3329,7 @@ const $t = u`
3306
3329
  amountOfDaysToPlanAhead
3307
3330
  }
3308
3331
  }
3309
- `, Vt = u`
3332
+ `, Mt = u`
3310
3333
  query findPublicItemsByPackageId($packageId: ID!, $types: [PackageItemType!], $page: PageInput) {
3311
3334
  findPublicItemsByPackageId(packageId: $packageId, types: $types, page: $page) {
3312
3335
  data {
@@ -3336,33 +3359,34 @@ const $t = u`
3336
3359
  name
3337
3360
  address
3338
3361
  }
3362
+ status
3339
3363
  }
3340
3364
  }
3341
3365
  count
3342
3366
  }
3343
3367
  }
3344
- `, Mt = (e, t, n, r) => e();
3345
- function qt(e, t = Mt) {
3368
+ `, qt = (e, t, n, r) => e();
3369
+ function zt(e, t = qt) {
3346
3370
  return {
3347
3371
  findAllPublicPackagesByOrganizationId(n, r, i) {
3348
- return t((s) => e.request({ document: $t, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllPublicPackagesByOrganizationId", "query", n);
3372
+ return t((s) => e.request({ document: Bt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllPublicPackagesByOrganizationId", "query", n);
3349
3373
  },
3350
3374
  findPublicPackageById(n, r, i) {
3351
- return t((s) => e.request({ document: Bt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicPackageById", "query", n);
3375
+ return t((s) => e.request({ document: Ut, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicPackageById", "query", n);
3352
3376
  },
3353
3377
  findPublicPackageBySlug(n, r, i) {
3354
- return t((s) => e.request({ document: Ut, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicPackageBySlug", "query", n);
3378
+ return t((s) => e.request({ document: Vt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicPackageBySlug", "query", n);
3355
3379
  },
3356
3380
  findPublicItemsByPackageId(n, r, i) {
3357
- return t((s) => e.request({ document: Vt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicItemsByPackageId", "query", n);
3381
+ return t((s) => e.request({ document: Mt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findPublicItemsByPackageId", "query", n);
3358
3382
  }
3359
3383
  };
3360
3384
  }
3361
- class zt {
3385
+ class Gt {
3362
3386
  config;
3363
3387
  sdk;
3364
3388
  constructor(t) {
3365
- this.config = t, this.sdk = qt(new O(t.apiUrl));
3389
+ this.config = t, this.sdk = zt(new T(t.apiUrl));
3366
3390
  }
3367
3391
  debugLog(t, n) {
3368
3392
  this.config.debug && console.log(`[PackageService] ${t}`, n || "");
@@ -3425,7 +3449,7 @@ class zt {
3425
3449
  throw this.debugLog("Error fetching public packages", r), r;
3426
3450
  }
3427
3451
  }
3428
- async getPackageItems(t, n = [L.Regular, L.AdditionalEvent]) {
3452
+ async getPackageItems(t, n = [v.Regular, v.AdditionalEvent]) {
3429
3453
  try {
3430
3454
  this.debugLog("Fetching public package items", { packageId: t, types: n });
3431
3455
  const r = await this.sdk.findPublicItemsByPackageId({
@@ -3446,7 +3470,7 @@ class zt {
3446
3470
  }
3447
3471
  }
3448
3472
  }
3449
- const Gt = u`
3473
+ const jt = u`
3450
3474
  query findAllPublicCategoriesByOrganizationId($organizationId: ID!, $dateRange: DateRangeInput) {
3451
3475
  findAllPublicLocationsByOrganizationId(id: $organizationId) {
3452
3476
  data {
@@ -3466,19 +3490,19 @@ const Gt = u`
3466
3490
  count
3467
3491
  }
3468
3492
  }
3469
- `, jt = (e, t, n, r) => e();
3470
- function Ht(e, t = jt) {
3493
+ `, Ht = (e, t, n, r) => e();
3494
+ function Yt(e, t = Ht) {
3471
3495
  return {
3472
3496
  findAllPublicCategoriesByOrganizationId(n, r, i) {
3473
- return t((s) => e.request({ document: Gt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllPublicCategoriesByOrganizationId", "query", n);
3497
+ return t((s) => e.request({ document: jt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllPublicCategoriesByOrganizationId", "query", n);
3474
3498
  }
3475
3499
  };
3476
3500
  }
3477
- class Yt {
3501
+ class Qt {
3478
3502
  config;
3479
3503
  sdk;
3480
3504
  constructor(t) {
3481
- this.config = t, this.sdk = Ht(new O(t.apiUrl));
3505
+ this.config = t, this.sdk = Yt(new T(t.apiUrl));
3482
3506
  }
3483
3507
  debugLog(t, n) {
3484
3508
  this.config.debug && console.log(`[CategoryService] ${t}`, n || "");
@@ -3490,8 +3514,8 @@ class Yt {
3490
3514
  if (r?.findAllPublicHostingsByOrganizationId) {
3491
3515
  const i = r.findAllPublicHostingsByOrganizationId, s = r.findAllPublicLocationsByOrganizationId;
3492
3516
  return this.debugLog("Categories fetched", { count: i.count + s.count, dataLength: i.data.length + s.data.length }), [
3493
- ...i.data.map((a) => ({ id: a.id, name: a.name, icon: a.icon, activeEvents: a.amountOfActiveEvents, type: "HOSTING" })),
3494
- ...s.data.map((a) => ({ id: a.id, name: a.name, activeEvents: a.amountOfActiveEvents, type: "LOCATION" }))
3517
+ ...i.data.map((o) => ({ id: o.id, name: o.name, icon: o.icon, activeEvents: o.amountOfActiveEvents, type: "HOSTING" })),
3518
+ ...s.data.map((o) => ({ id: o.id, name: o.name, activeEvents: o.amountOfActiveEvents, type: "LOCATION" }))
3495
3519
  ];
3496
3520
  }
3497
3521
  return [];
@@ -3500,37 +3524,37 @@ class Yt {
3500
3524
  }
3501
3525
  }
3502
3526
  }
3503
- const Qt = u`
3527
+ const Xt = u`
3504
3528
  mutation CreateShopView($id: ID!, $trackerLinkId: ID) {
3505
3529
  createShopView(id: $id, trackerId: $trackerLinkId)
3506
3530
  }
3507
- `, Xt = u`
3531
+ `, Jt = u`
3508
3532
  mutation CreateEventView($id: ID!, $shopId: ID, $trackerLinkId: ID) {
3509
3533
  createEventView(id: $id, shopId: $shopId, trackerId: $trackerLinkId)
3510
3534
  }
3511
- `, Jt = u`
3535
+ `, Wt = u`
3512
3536
  mutation CreatePackageView($id: ID!, $shopId: ID, $trackerLinkId: ID) {
3513
3537
  createPackageView(id: $id, shopId: $shopId, trackerId: $trackerLinkId)
3514
3538
  }
3515
- `, Wt = (e, t, n, r) => e();
3516
- function Zt(e, t = Wt) {
3539
+ `, Zt = (e, t, n, r) => e();
3540
+ function Kt(e, t = Zt) {
3517
3541
  return {
3518
3542
  CreateShopView(n, r, i) {
3519
- return t((s) => e.request({ document: Qt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreateShopView", "mutation", n);
3543
+ return t((s) => e.request({ document: Xt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreateShopView", "mutation", n);
3520
3544
  },
3521
3545
  CreateEventView(n, r, i) {
3522
- return t((s) => e.request({ document: Xt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreateEventView", "mutation", n);
3546
+ return t((s) => e.request({ document: Jt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreateEventView", "mutation", n);
3523
3547
  },
3524
3548
  CreatePackageView(n, r, i) {
3525
- return t((s) => e.request({ document: Jt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreatePackageView", "mutation", n);
3549
+ return t((s) => e.request({ document: Wt, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "CreatePackageView", "mutation", n);
3526
3550
  }
3527
3551
  };
3528
3552
  }
3529
- class Kt {
3553
+ class en {
3530
3554
  config;
3531
3555
  sdk;
3532
3556
  constructor(t) {
3533
- this.config = t, this.sdk = Zt(new O(t.apiUrl));
3557
+ this.config = t, this.sdk = Kt(new T(t.apiUrl));
3534
3558
  }
3535
3559
  createMetric = async (t, n, r) => {
3536
3560
  switch (!n && !r && await this.sdk.CreateShopView({
@@ -3556,7 +3580,7 @@ class Kt {
3556
3580
  }
3557
3581
  };
3558
3582
  }
3559
- const en = u`
3583
+ const tn = u`
3560
3584
  query getShopBySlug($slug: String!, $trackerLinkId: String) {
3561
3585
  findShopBySlug(slug: $slug, promoterId: $trackerLinkId) {
3562
3586
  id
@@ -3600,19 +3624,19 @@ const en = u`
3600
3624
  blockedLanguages
3601
3625
  }
3602
3626
  }
3603
- `, tn = (e, t, n, r) => e();
3604
- function nn(e, t = tn) {
3627
+ `, nn = (e, t, n, r) => e();
3628
+ function rn(e, t = nn) {
3605
3629
  return {
3606
3630
  getShopBySlug(n, r, i) {
3607
- return t((s) => e.request({ document: en, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "getShopBySlug", "query", n);
3631
+ return t((s) => e.request({ document: tn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "getShopBySlug", "query", n);
3608
3632
  }
3609
3633
  };
3610
3634
  }
3611
- class rn {
3635
+ class sn {
3612
3636
  config;
3613
3637
  sdk;
3614
3638
  constructor(t) {
3615
- this.config = t, this.sdk = nn(new O(t.apiUrl));
3639
+ this.config = t, this.sdk = rn(new T(t.apiUrl));
3616
3640
  }
3617
3641
  async getShop(t) {
3618
3642
  try {
@@ -3631,7 +3655,7 @@ class rn {
3631
3655
  this.config.debug && console.log(`[ShopService] ${t}`, n || "");
3632
3656
  }
3633
3657
  }
3634
- const sn = u`
3658
+ const an = u`
3635
3659
  query findAllCustomFieldsByOrderId($orderId: String!, $salesLocations: [SalesLocations!]) {
3636
3660
  findAllCustomFieldsByOrderId(orderId: $orderId, salesLocations: $salesLocations) {
3637
3661
  id
@@ -3651,18 +3675,18 @@ const sn = u`
3651
3675
  }
3652
3676
  }
3653
3677
  `, on = (e, t, n, r) => e();
3654
- function an(e, t = on) {
3678
+ function cn(e, t = on) {
3655
3679
  return {
3656
3680
  findAllCustomFieldsByOrderId(n, r, i) {
3657
- return t((s) => e.request({ document: sn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllCustomFieldsByOrderId", "query", n);
3681
+ return t((s) => e.request({ document: an, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "findAllCustomFieldsByOrderId", "query", n);
3658
3682
  }
3659
3683
  };
3660
3684
  }
3661
- class cn {
3685
+ class dn {
3662
3686
  config;
3663
3687
  sdk;
3664
3688
  constructor(t) {
3665
- this.config = t, this.sdk = an(new O(t.apiUrl));
3689
+ this.config = t, this.sdk = cn(new T(t.apiUrl));
3666
3690
  }
3667
3691
  async findByOrderId(t, n) {
3668
3692
  try {
@@ -3680,8 +3704,8 @@ class cn {
3680
3704
  this.config.debug && console.log(`[CustomFieldService] ${t}`, n || "");
3681
3705
  }
3682
3706
  }
3683
- const dn = "https://api.ticketapp.com/graphql";
3684
- class hn {
3707
+ const un = "https://api.ticketapp.com/graphql";
3708
+ class pn {
3685
3709
  basket;
3686
3710
  event;
3687
3711
  payment;
@@ -3691,29 +3715,29 @@ class hn {
3691
3715
  shop;
3692
3716
  customField;
3693
3717
  // Attach selected public types to the SDK class
3694
- static Types = De;
3718
+ static Types = Ne;
3695
3719
  constructor(t) {
3696
- const { organizationId: n, debug: r = !1, apiUrl: i = dn } = t;
3697
- this.event = new Ct({ organizationId: n, debug: r, apiUrl: i, trackerId: t.trackerId }), this.package = new zt({ organizationId: n, debug: r, apiUrl: i }), this.category = new Yt({ organizationId: n, debug: r, apiUrl: i }), this.metric = new Kt({ apiUrl: i, trackerId: t.trackerId }), this.shop = new rn({ debug: r, apiUrl: i, trackerId: t.trackerId }), this.customField = new cn({ debug: r, apiUrl: i }), this.basket = new Dt({ debug: r, apiUrl: i, trackerId: t.trackerId }), this.payment = new Ft({ debug: r, apiUrl: i });
3720
+ const { organizationId: n, debug: r = !1, apiUrl: i = un } = t;
3721
+ this.event = new _t({ organizationId: n, debug: r, apiUrl: i, trackerId: t.trackerId }), this.package = new Gt({ organizationId: n, debug: r, apiUrl: i }), this.category = new Qt({ organizationId: n, debug: r, apiUrl: i }), this.metric = new en({ apiUrl: i, trackerId: t.trackerId }), this.shop = new sn({ debug: r, apiUrl: i, trackerId: t.trackerId }), this.customField = new dn({ debug: r, apiUrl: i }), this.basket = new Nt({ debug: r, apiUrl: i, trackerId: t.trackerId }), this.payment = new $t({ debug: r, apiUrl: i });
3698
3722
  }
3699
3723
  }
3700
3724
  export {
3701
- T as BasketOrderType,
3725
+ O as BasketOrderType,
3702
3726
  de as CustomFieldMandatoryType,
3703
3727
  ce as CustomFieldType,
3704
3728
  se as DiscountType,
3705
3729
  K as EventStatus,
3706
3730
  R as MetricsType,
3707
3731
  ie as OrderItemType,
3708
- L as PackageItemType,
3732
+ v as PackageItemType,
3709
3733
  W as PackageStatus,
3710
3734
  Z as PackageTabType,
3711
3735
  re as PaymentMethodFeeType,
3712
3736
  te as ProductStatus,
3713
3737
  ne as ProductType,
3714
3738
  ue as SalesLocations,
3715
- oe as ShopTemplateType,
3716
- ae as ShopVariationType,
3739
+ ae as ShopTemplateType,
3740
+ oe as ShopVariationType,
3717
3741
  ee as SortOrder,
3718
- hn as TicketappSDK
3742
+ pn as TicketappSDK
3719
3743
  };