zudoku 0.1.1-dev.31 → 0.1.1-dev.33

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.
Files changed (137) hide show
  1. package/dist/app/App.js +8 -1
  2. package/dist/app/App.js.map +1 -1
  3. package/dist/config/config.d.ts +7 -0
  4. package/dist/lib/components/Header.js +1 -1
  5. package/dist/lib/components/Header.js.map +1 -1
  6. package/dist/lib/components/Layout.js +1 -2
  7. package/dist/lib/components/Layout.js.map +1 -1
  8. package/dist/lib/components/SyntaxHighlight.d.ts +1 -0
  9. package/dist/lib/components/SyntaxHighlight.js +1 -1
  10. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  11. package/dist/lib/components/context/DevPortalProvider.js +1 -1
  12. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  13. package/dist/lib/components/navigation/SideNavigation.js +1 -1
  14. package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
  15. package/dist/lib/components/navigation/SideNavigationCategory.js +1 -1
  16. package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
  17. package/dist/lib/components/navigation/SideNavigationItem.d.ts +2 -1
  18. package/dist/lib/components/navigation/SideNavigationItem.js +11 -4
  19. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
  20. package/dist/lib/components/navigation/SideNavigationWrapper.d.ts +3 -0
  21. package/dist/lib/components/navigation/SideNavigationWrapper.js +2 -3
  22. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -1
  23. package/dist/lib/core/DevPortalContext.d.ts +1 -0
  24. package/dist/lib/core/DevPortalContext.js +2 -2
  25. package/dist/lib/core/DevPortalContext.js.map +1 -1
  26. package/dist/lib/core/plugins.d.ts +1 -1
  27. package/dist/lib/core/plugins.js +1 -1
  28. package/dist/lib/core/plugins.js.map +1 -1
  29. package/dist/lib/plugins/api-key/CreateApiKeys.d.ts +5 -0
  30. package/dist/lib/plugins/api-key/CreateApiKeys.js +37 -0
  31. package/dist/lib/plugins/api-key/CreateApiKeys.js.map +1 -0
  32. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +3 -2
  33. package/dist/lib/plugins/api-key/SettingsApiKeys.js +35 -4
  34. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
  35. package/dist/lib/plugins/api-key/index.d.ts +19 -21
  36. package/dist/lib/plugins/api-key/index.js +57 -36
  37. package/dist/lib/plugins/api-key/index.js.map +1 -1
  38. package/dist/lib/plugins/index.js +0 -1
  39. package/dist/lib/plugins/index.js.map +1 -1
  40. package/dist/lib/plugins/openapi/MakeRequest.js +27 -12
  41. package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -1
  42. package/dist/lib/plugins/openapi/OperationListItem.js +24 -1
  43. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  44. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -1
  45. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  46. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +2 -2
  47. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  48. package/dist/lib/plugins/openapi/Sidecar.js +13 -13
  49. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  50. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  51. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  52. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  53. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
  54. package/dist/lib/plugins/openapi/graphql/graphql.js +4 -0
  55. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  56. package/dist/lib/plugins/openapi/index.js +2 -0
  57. package/dist/lib/plugins/openapi/index.js.map +1 -1
  58. package/dist/lib/plugins/openapi/playground/Headers.js +5 -16
  59. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  60. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +1 -0
  61. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  62. package/dist/lib/plugins/openapi/playground/{UrlParts.d.ts → PathParams.d.ts} +2 -2
  63. package/dist/lib/plugins/openapi/playground/{UrlParts.js → PathParams.js} +4 -4
  64. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
  65. package/dist/lib/plugins/openapi/playground/Playground.d.ts +8 -4
  66. package/dist/lib/plugins/openapi/playground/Playground.js +49 -46
  67. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  68. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -6
  69. package/dist/lib/plugins/openapi/playground/QueryParams.js +27 -22
  70. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  71. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
  72. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
  73. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
  74. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
  75. package/dist/lib/plugins/openapi/playground/createUrl.js +15 -0
  76. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
  77. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  78. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +19 -9
  79. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  80. package/dist/lib/plugins/redirect/index.d.ts +1 -2
  81. package/dist/lib/util/MdxComponents.js +1 -1
  82. package/dist/lib/util/MdxComponents.js.map +1 -1
  83. package/dist/lib/util/createVariantComponent.d.ts +4 -3
  84. package/dist/lib/util/createVariantComponent.js +9 -5
  85. package/dist/lib/util/createVariantComponent.js.map +1 -1
  86. package/dist/vite/plugin-api-keys.d.ts +4 -0
  87. package/dist/vite/plugin-api-keys.js +33 -0
  88. package/dist/vite/plugin-api-keys.js.map +1 -0
  89. package/dist/vite/plugin-mdx.js +1 -1
  90. package/dist/vite/plugin-mdx.js.map +1 -1
  91. package/dist/vite/plugin-redirect.d.ts +4 -0
  92. package/dist/vite/plugin-redirect.js +32 -0
  93. package/dist/vite/plugin-redirect.js.map +1 -0
  94. package/dist/vite/plugin.js +4 -0
  95. package/dist/vite/plugin.js.map +1 -1
  96. package/lib/{urql-B7mLfVog.js → urql-DMlBWUKL.js} +301 -321
  97. package/lib/{DevPortal-Dh66z5c3.js → util-BJVAslZ-.js} +3666 -4913
  98. package/lib/zudoku.components.js +1310 -4
  99. package/lib/zudoku.openapi-worker.js +1 -1
  100. package/lib/zudoku.plugins.js +12876 -12545
  101. package/package.json +1 -1
  102. package/src/app/App.tsx +8 -1
  103. package/src/lib/components/Header.tsx +2 -2
  104. package/src/lib/components/Layout.tsx +10 -6
  105. package/src/lib/components/SyntaxHighlight.tsx +6 -3
  106. package/src/lib/components/context/DevPortalProvider.ts +1 -1
  107. package/src/lib/components/navigation/SideNavigation.tsx +4 -1
  108. package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -1
  109. package/src/lib/components/navigation/SideNavigationItem.tsx +15 -5
  110. package/src/lib/components/navigation/SideNavigationWrapper.tsx +14 -11
  111. package/src/lib/core/DevPortalContext.ts +3 -2
  112. package/src/lib/core/plugins.ts +1 -1
  113. package/src/lib/plugins/api-key/CreateApiKeys.tsx +84 -0
  114. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +111 -11
  115. package/src/lib/plugins/api-key/index.tsx +80 -77
  116. package/src/lib/plugins/index.ts +0 -1
  117. package/src/lib/plugins/openapi/MakeRequest.tsx +38 -29
  118. package/src/lib/plugins/openapi/OperationListItem.tsx +137 -1
  119. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  120. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -2
  121. package/src/lib/plugins/openapi/Sidecar.tsx +20 -20
  122. package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
  123. package/src/lib/plugins/openapi/graphql/graphql.ts +5 -0
  124. package/src/lib/plugins/openapi/index.tsx +2 -0
  125. package/src/lib/plugins/openapi/playground/Headers.tsx +14 -20
  126. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  127. package/src/lib/plugins/openapi/playground/{UrlParts.tsx → PathParams.tsx} +22 -26
  128. package/src/lib/plugins/openapi/playground/Playground.tsx +205 -155
  129. package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -57
  130. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
  131. package/src/lib/plugins/openapi/playground/createUrl.ts +22 -0
  132. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +24 -9
  133. package/src/lib/plugins/redirect/index.tsx +1 -1
  134. package/src/lib/util/MdxComponents.tsx +1 -0
  135. package/src/lib/util/createVariantComponent.tsx +11 -8
  136. package/dist/lib/plugins/openapi/playground/UrlParts.js.map +0 -1
  137. package/src/lib/plugins/openapi/queries.graphql +0 -6
@@ -1,5 +1,5 @@
1
- import * as P from "react";
2
- var $ = {
1
+ import * as F from "react";
2
+ var Q = {
3
3
  NAME: "Name",
4
4
  DOCUMENT: "Document",
5
5
  OPERATION_DEFINITION: "OperationDefinition",
@@ -25,7 +25,7 @@ var $ = {
25
25
  LIST_TYPE: "ListType",
26
26
  NON_NULL_TYPE: "NonNullType"
27
27
  };
28
- class me extends Error {
28
+ class he extends Error {
29
29
  constructor(r, t, n, a, i, o, s) {
30
30
  super(r), this.name = "GraphQLError", this.message = r, i && (this.path = i), t && (this.nodes = Array.isArray(t) ? t : [t]), n && (this.source = n), a && (this.positions = a), o && (this.originalError = o);
31
31
  var c = s;
@@ -48,13 +48,13 @@ class me extends Error {
48
48
  return "GraphQLError";
49
49
  }
50
50
  }
51
- var x, p;
52
- function E(e) {
53
- return new me(`Syntax Error: Unexpected token at ${p} in ${e}`);
51
+ var x, d;
52
+ function b(e) {
53
+ return new he(`Syntax Error: Unexpected token at ${d} in ${e}`);
54
54
  }
55
- function q(e) {
56
- if (e.lastIndex = p, e.test(x))
57
- return x.slice(p, p = e.lastIndex);
55
+ function V(e) {
56
+ if (e.lastIndex = d, e.test(x))
57
+ return x.slice(d, d = e.lastIndex);
58
58
  }
59
59
  var Z = / +(?=[^\s])/y;
60
60
  function Ke(e) {
@@ -67,30 +67,30 @@ function Ke(e) {
67
67
  return t;
68
68
  }
69
69
  function m() {
70
- for (var e = 0 | x.charCodeAt(p++); e === 9 || e === 10 || e === 13 || e === 32 || e === 35 || e === 44 || e === 65279; e = 0 | x.charCodeAt(p++))
70
+ for (var e = 0 | x.charCodeAt(d++); e === 9 || e === 10 || e === 13 || e === 32 || e === 35 || e === 44 || e === 65279; e = 0 | x.charCodeAt(d++))
71
71
  if (e === 35)
72
- for (; (e = x.charCodeAt(p++)) !== 10 && e !== 13; )
72
+ for (; (e = x.charCodeAt(d++)) !== 10 && e !== 13; )
73
73
  ;
74
- p--;
74
+ d--;
75
75
  }
76
- var A = /[_A-Za-z]\w*/y, ve = new RegExp("(?:(null|true|false)|\\$(" + A.source + ')|(-?\\d+)((?:\\.\\d+)?[eE][+-]?\\d+|\\.\\d+)?|("""(?:"""|(?:[\\s\\S]*?[^\\\\])"""))|("(?:"|[^\\r\\n]*?[^\\\\]"))|(' + A.source + "))", "y"), M = function(e) {
76
+ var A = /[_A-Za-z]\w*/y, ce = new RegExp("(?:(null|true|false)|\\$(" + A.source + ')|(-?\\d+)((?:\\.\\d+)?[eE][+-]?\\d+|\\.\\d+)?|("""(?:"""|(?:[\\s\\S]*?[^\\\\])"""))|("(?:"|[^\\r\\n]*?[^\\\\]"))|(' + A.source + "))", "y"), $ = function(e) {
77
77
  return e[e.Const = 1] = "Const", e[e.Var = 2] = "Var", e[e.Int = 3] = "Int", e[e.Float = 4] = "Float", e[e.BlockString = 5] = "BlockString", e[e.String = 6] = "String", e[e.Enum = 7] = "Enum", e;
78
- }(M || {}), Xe = /\\/g;
78
+ }($ || {}), Xe = /\\/g;
79
79
  function te(e) {
80
80
  var r, t;
81
- if (ve.lastIndex = p, x.charCodeAt(p) === 91) {
82
- p++, m();
83
- for (var n = []; x.charCodeAt(p) !== 93; )
81
+ if (ce.lastIndex = d, x.charCodeAt(d) === 91) {
82
+ d++, m();
83
+ for (var n = []; x.charCodeAt(d) !== 93; )
84
84
  n.push(te(e));
85
- return p++, m(), {
85
+ return d++, m(), {
86
86
  kind: "ListValue",
87
87
  values: n
88
88
  };
89
- } else if (x.charCodeAt(p) === 123) {
90
- p++, m();
91
- for (var a = []; x.charCodeAt(p) !== 125; ) {
92
- if ((r = q(A)) == null || (m(), x.charCodeAt(p++) !== 58))
93
- throw E("ObjectField");
89
+ } else if (x.charCodeAt(d) === 123) {
90
+ d++, m();
91
+ for (var a = []; x.charCodeAt(d) !== 125; ) {
92
+ if ((r = V(A)) == null || (m(), x.charCodeAt(d++) !== 58))
93
+ throw b("ObjectField");
94
94
  m(), a.push({
95
95
  kind: "ObjectField",
96
96
  name: {
@@ -100,21 +100,21 @@ function te(e) {
100
100
  value: te(e)
101
101
  });
102
102
  }
103
- return p++, m(), {
103
+ return d++, m(), {
104
104
  kind: "ObjectValue",
105
105
  fields: a
106
106
  };
107
- } else if ((t = ve.exec(x)) != null) {
108
- if (p = ve.lastIndex, m(), (r = t[M.Const]) != null)
107
+ } else if ((t = ce.exec(x)) != null) {
108
+ if (d = ce.lastIndex, m(), (r = t[$.Const]) != null)
109
109
  return r === "null" ? {
110
110
  kind: "NullValue"
111
111
  } : {
112
112
  kind: "BooleanValue",
113
113
  value: r === "true"
114
114
  };
115
- if ((r = t[M.Var]) != null) {
115
+ if ((r = t[$.Var]) != null) {
116
116
  if (e)
117
- throw E("Variable");
117
+ throw b("Variable");
118
118
  return {
119
119
  kind: "Variable",
120
120
  name: {
@@ -122,9 +122,9 @@ function te(e) {
122
122
  value: r
123
123
  }
124
124
  };
125
- } else if ((r = t[M.Int]) != null) {
125
+ } else if ((r = t[$.Int]) != null) {
126
126
  var i;
127
- return (i = t[M.Float]) != null ? {
127
+ return (i = t[$.Float]) != null ? {
128
128
  kind: "FloatValue",
129
129
  value: r + i
130
130
  } : {
@@ -132,35 +132,35 @@ function te(e) {
132
132
  value: r
133
133
  };
134
134
  } else {
135
- if ((r = t[M.BlockString]) != null)
135
+ if ((r = t[$.BlockString]) != null)
136
136
  return {
137
137
  kind: "StringValue",
138
138
  value: Ke(r.slice(3, -3)),
139
139
  block: !0
140
140
  };
141
- if ((r = t[M.String]) != null)
141
+ if ((r = t[$.String]) != null)
142
142
  return {
143
143
  kind: "StringValue",
144
144
  value: Xe.test(r) ? JSON.parse(r) : r.slice(1, -1),
145
145
  block: !1
146
146
  };
147
- if ((r = t[M.Enum]) != null)
147
+ if ((r = t[$.Enum]) != null)
148
148
  return {
149
149
  kind: "EnumValue",
150
150
  value: r
151
151
  };
152
152
  }
153
153
  }
154
- throw E("Value");
154
+ throw b("Value");
155
155
  }
156
- function Ge(e) {
157
- if (x.charCodeAt(p) === 40) {
156
+ function Be(e) {
157
+ if (x.charCodeAt(d) === 40) {
158
158
  var r = [];
159
- p++, m();
159
+ d++, m();
160
160
  var t;
161
161
  do {
162
- if ((t = q(A)) == null || (m(), x.charCodeAt(p++) !== 58))
163
- throw E("Argument");
162
+ if ((t = V(A)) == null || (m(), x.charCodeAt(d++) !== 58))
163
+ throw b("Argument");
164
164
  m(), r.push({
165
165
  kind: "Argument",
166
166
  name: {
@@ -169,33 +169,33 @@ function Ge(e) {
169
169
  },
170
170
  value: te(e)
171
171
  });
172
- } while (x.charCodeAt(p) !== 41);
173
- return p++, m(), r;
172
+ } while (x.charCodeAt(d) !== 41);
173
+ return d++, m(), r;
174
174
  }
175
175
  }
176
176
  function B(e) {
177
- if (x.charCodeAt(p) === 64) {
177
+ if (x.charCodeAt(d) === 64) {
178
178
  var r = [], t;
179
179
  do {
180
- if (p++, (t = q(A)) == null)
181
- throw E("Directive");
180
+ if (d++, (t = V(A)) == null)
181
+ throw b("Directive");
182
182
  m(), r.push({
183
183
  kind: "Directive",
184
184
  name: {
185
185
  kind: "Name",
186
186
  value: t
187
187
  },
188
- arguments: Ge(e)
188
+ arguments: Be(e)
189
189
  });
190
- } while (x.charCodeAt(p) === 64);
190
+ } while (x.charCodeAt(d) === 64);
191
191
  return r;
192
192
  }
193
193
  }
194
194
  function er() {
195
- for (var e, r = 0; x.charCodeAt(p) === 91; )
196
- r++, p++, m();
197
- if ((e = q(A)) == null)
198
- throw E("NamedType");
195
+ for (var e, r = 0; x.charCodeAt(d) === 91; )
196
+ r++, d++, m();
197
+ if ((e = V(A)) == null)
198
+ throw b("NamedType");
199
199
  m();
200
200
  var t = {
201
201
  kind: "NamedType",
@@ -205,12 +205,12 @@ function er() {
205
205
  }
206
206
  };
207
207
  do
208
- if (x.charCodeAt(p) === 33 && (p++, m(), t = {
208
+ if (x.charCodeAt(d) === 33 && (d++, m(), t = {
209
209
  kind: "NonNullType",
210
210
  type: t
211
211
  }), r) {
212
- if (x.charCodeAt(p++) !== 93)
213
- throw E("NamedType");
212
+ if (x.charCodeAt(d++) !== 93)
213
+ throw b("NamedType");
214
214
  m(), t = {
215
215
  kind: "ListType",
216
216
  type: t
@@ -219,16 +219,16 @@ function er() {
219
219
  while (r--);
220
220
  return t;
221
221
  }
222
- var de = new RegExp("(?:(\\.{3})|(" + A.source + "))", "y"), ge = function(e) {
222
+ var fe = new RegExp("(?:(\\.{3})|(" + A.source + "))", "y"), ye = function(e) {
223
223
  return e[e.Spread = 1] = "Spread", e[e.Name = 2] = "Name", e;
224
- }(ge || {});
224
+ }(ye || {});
225
225
  function ne() {
226
226
  var e = [], r, t;
227
227
  do
228
- if (de.lastIndex = p, (t = de.exec(x)) != null) {
229
- if (p = de.lastIndex, t[ge.Spread] != null) {
228
+ if (fe.lastIndex = d, (t = fe.exec(x)) != null) {
229
+ if (d = fe.lastIndex, t[ye.Spread] != null) {
230
230
  m();
231
- var n = q(A);
231
+ var n = V(A);
232
232
  if (n != null && n !== "on")
233
233
  m(), e.push({
234
234
  kind: "FragmentSpread",
@@ -240,13 +240,13 @@ function ne() {
240
240
  });
241
241
  else {
242
242
  if (m(), n === "on") {
243
- if ((n = q(A)) == null)
244
- throw E("NamedType");
243
+ if ((n = V(A)) == null)
244
+ throw b("NamedType");
245
245
  m();
246
246
  }
247
247
  var a = B(!1);
248
- if (x.charCodeAt(p++) !== 123)
249
- throw E("InlineFragment");
248
+ if (x.charCodeAt(d++) !== 123)
249
+ throw b("InlineFragment");
250
250
  m(), e.push({
251
251
  kind: "InlineFragment",
252
252
  typeCondition: n ? {
@@ -260,17 +260,17 @@ function ne() {
260
260
  selectionSet: ne()
261
261
  });
262
262
  }
263
- } else if ((r = t[ge.Name]) != null) {
263
+ } else if ((r = t[ye.Name]) != null) {
264
264
  var i = void 0;
265
- if (m(), x.charCodeAt(p) === 58) {
266
- if (p++, m(), i = r, (r = q(A)) == null)
267
- throw E("Field");
265
+ if (m(), x.charCodeAt(d) === 58) {
266
+ if (d++, m(), i = r, (r = V(A)) == null)
267
+ throw b("Field");
268
268
  m();
269
269
  }
270
- var o = Ge(!1);
270
+ var o = Be(!1);
271
271
  m();
272
272
  var s = B(!1), c = void 0;
273
- x.charCodeAt(p) === 123 && (p++, m(), c = ne()), e.push({
273
+ x.charCodeAt(d) === 123 && (d++, m(), c = ne()), e.push({
274
274
  kind: "Field",
275
275
  alias: i ? {
276
276
  kind: "Name",
@@ -286,21 +286,21 @@ function ne() {
286
286
  });
287
287
  }
288
288
  } else
289
- throw E("SelectionSet");
290
- while (x.charCodeAt(p) !== 125);
291
- return p++, m(), {
289
+ throw b("SelectionSet");
290
+ while (x.charCodeAt(d) !== 125);
291
+ return d++, m(), {
292
292
  kind: "SelectionSet",
293
293
  selections: e
294
294
  };
295
295
  }
296
296
  function rr() {
297
297
  var e, r;
298
- if ((e = q(A)) == null || (m(), q(A) !== "on") || (m(), (r = q(A)) == null))
299
- throw E("FragmentDefinition");
298
+ if ((e = V(A)) == null || (m(), V(A) !== "on") || (m(), (r = V(A)) == null))
299
+ throw b("FragmentDefinition");
300
300
  m();
301
301
  var t = B(!1);
302
- if (x.charCodeAt(p++) !== 123)
303
- throw E("FragmentDefinition");
302
+ if (x.charCodeAt(d++) !== 123)
303
+ throw b("FragmentDefinition");
304
304
  return m(), {
305
305
  kind: "FragmentDefinition",
306
306
  name: {
@@ -321,19 +321,19 @@ function rr() {
321
321
  var tr = /(?:query|mutation|subscription|fragment)/y;
322
322
  function nr(e) {
323
323
  var r, t, n;
324
- if (e && (m(), r = q(A), t = function() {
325
- if (m(), x.charCodeAt(p) === 40) {
324
+ if (e && (m(), r = V(A), t = function() {
325
+ if (m(), x.charCodeAt(d) === 40) {
326
326
  var i = [];
327
- p++, m();
327
+ d++, m();
328
328
  var o;
329
329
  do {
330
- if (x.charCodeAt(p++) !== 36 || (o = q(A)) == null)
331
- throw E("Variable");
332
- if (m(), x.charCodeAt(p++) !== 58)
333
- throw E("VariableDefinition");
330
+ if (x.charCodeAt(d++) !== 36 || (o = V(A)) == null)
331
+ throw b("Variable");
332
+ if (m(), x.charCodeAt(d++) !== 58)
333
+ throw b("VariableDefinition");
334
334
  m();
335
335
  var s = er(), c = void 0;
336
- x.charCodeAt(p) === 61 && (p++, m(), c = te(!0)), m(), i.push({
336
+ x.charCodeAt(d) === 61 && (d++, m(), c = te(!0)), m(), i.push({
337
337
  kind: "VariableDefinition",
338
338
  variable: {
339
339
  kind: "Variable",
@@ -346,11 +346,11 @@ function nr(e) {
346
346
  defaultValue: c,
347
347
  directives: B(!0)
348
348
  });
349
- } while (x.charCodeAt(p) !== 41);
350
- return p++, m(), i;
349
+ } while (x.charCodeAt(d) !== 41);
350
+ return d++, m(), i;
351
351
  }
352
- }(), n = B(!1)), x.charCodeAt(p) === 123)
353
- return p++, m(), {
352
+ }(), n = B(!1)), x.charCodeAt(d) === 123)
353
+ return d++, m(), {
354
354
  kind: "OperationDefinition",
355
355
  operation: e || "query",
356
356
  name: r ? {
@@ -363,18 +363,18 @@ function nr(e) {
363
363
  };
364
364
  }
365
365
  function ar(e, r) {
366
- return x = typeof e.body == "string" ? e.body : e, p = 0, function() {
366
+ return x = typeof e.body == "string" ? e.body : e, d = 0, function() {
367
367
  var n, a;
368
368
  m();
369
369
  var i = [];
370
370
  do
371
- if ((n = q(tr)) === "fragment")
371
+ if ((n = V(tr)) === "fragment")
372
372
  m(), i.push(rr());
373
373
  else if ((a = nr(n)) != null)
374
374
  i.push(a);
375
375
  else
376
- throw E("Document");
377
- while (p < x.length);
376
+ throw b("Document");
377
+ while (d < x.length);
378
378
  return {
379
379
  kind: "Document",
380
380
  definitions: i
@@ -394,26 +394,26 @@ function or(e) {
394
394
  ` + e.replace(/"""/g, '\\"""') + `
395
395
  """`;
396
396
  }
397
- var F = `
398
- `, b = {
397
+ var P = `
398
+ `, E = {
399
399
  OperationDefinition(e) {
400
400
  var r = e.operation;
401
- return e.name && (r += " " + e.name.value), e.variableDefinitions && e.variableDefinitions.length && (e.name || (r += " "), r += "(" + _(e.variableDefinitions, ", ", b.VariableDefinition) + ")"), e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), r !== "query" ? r + " " + b.SelectionSet(e.selectionSet) : b.SelectionSet(e.selectionSet);
401
+ return e.name && (r += " " + e.name.value), e.variableDefinitions && e.variableDefinitions.length && (e.name || (r += " "), r += "(" + _(e.variableDefinitions, ", ", E.VariableDefinition) + ")"), e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), r !== "query" ? r + " " + E.SelectionSet(e.selectionSet) : E.SelectionSet(e.selectionSet);
402
402
  },
403
403
  VariableDefinition(e) {
404
- var r = b.Variable(e.variable) + ": " + R(e.type);
405
- return e.defaultValue && (r += " = " + R(e.defaultValue)), e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), r;
404
+ var r = E.Variable(e.variable) + ": " + R(e.type);
405
+ return e.defaultValue && (r += " = " + R(e.defaultValue)), e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), r;
406
406
  },
407
407
  Field(e) {
408
408
  var r = e.alias ? e.alias.value + ": " + e.name.value : e.name.value;
409
409
  if (e.arguments && e.arguments.length) {
410
- var t = _(e.arguments, ", ", b.Argument);
411
- r.length + t.length + 2 > 80 ? r += "(" + (F += " ") + _(e.arguments, F, b.Argument) + (F = F.slice(0, -2)) + ")" : r += "(" + t + ")";
410
+ var t = _(e.arguments, ", ", E.Argument);
411
+ r.length + t.length + 2 > 80 ? r += "(" + (P += " ") + _(e.arguments, P, E.Argument) + (P = P.slice(0, -2)) + ")" : r += "(" + t + ")";
412
412
  }
413
- return e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), e.selectionSet && (r += " " + b.SelectionSet(e.selectionSet)), r;
413
+ return e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), e.selectionSet && (r += " " + E.SelectionSet(e.selectionSet)), r;
414
414
  },
415
415
  StringValue(e) {
416
- return e.block ? or(e.value).replace(/\n/g, F) : ir(e.value);
416
+ return e.block ? or(e.value).replace(/\n/g, P) : ir(e.value);
417
417
  },
418
418
  BooleanValue: (e) => "" + e.value,
419
419
  NullValue: (e) => "null",
@@ -423,41 +423,41 @@ var F = `
423
423
  Name: (e) => e.value,
424
424
  Variable: (e) => "$" + e.name.value,
425
425
  ListValue: (e) => "[" + _(e.values, ", ", R) + "]",
426
- ObjectValue: (e) => "{" + _(e.fields, ", ", b.ObjectField) + "}",
426
+ ObjectValue: (e) => "{" + _(e.fields, ", ", E.ObjectField) + "}",
427
427
  ObjectField: (e) => e.name.value + ": " + R(e.value),
428
428
  Document(e) {
429
429
  return !e.definitions || !e.definitions.length ? "" : _(e.definitions, `
430
430
 
431
431
  `, R);
432
432
  },
433
- SelectionSet: (e) => "{" + (F += " ") + _(e.selections, F, R) + (F = F.slice(0, -2)) + "}",
433
+ SelectionSet: (e) => "{" + (P += " ") + _(e.selections, P, R) + (P = P.slice(0, -2)) + "}",
434
434
  Argument: (e) => e.name.value + ": " + R(e.value),
435
435
  FragmentSpread(e) {
436
436
  var r = "..." + e.name.value;
437
- return e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), r;
437
+ return e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), r;
438
438
  },
439
439
  InlineFragment(e) {
440
440
  var r = "...";
441
- return e.typeCondition && (r += " on " + e.typeCondition.name.value), e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), r += " " + b.SelectionSet(e.selectionSet);
441
+ return e.typeCondition && (r += " on " + e.typeCondition.name.value), e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), r += " " + E.SelectionSet(e.selectionSet);
442
442
  },
443
443
  FragmentDefinition(e) {
444
444
  var r = "fragment " + e.name.value;
445
- return r += " on " + e.typeCondition.name.value, e.directives && e.directives.length && (r += " " + _(e.directives, " ", b.Directive)), r + " " + b.SelectionSet(e.selectionSet);
445
+ return r += " on " + e.typeCondition.name.value, e.directives && e.directives.length && (r += " " + _(e.directives, " ", E.Directive)), r + " " + E.SelectionSet(e.selectionSet);
446
446
  },
447
447
  Directive(e) {
448
448
  var r = "@" + e.name.value;
449
- return e.arguments && e.arguments.length && (r += "(" + _(e.arguments, ", ", b.Argument) + ")"), r;
449
+ return e.arguments && e.arguments.length && (r += "(" + _(e.arguments, ", ", E.Argument) + ")"), r;
450
450
  },
451
451
  NamedType: (e) => e.name.value,
452
452
  ListType: (e) => "[" + R(e.type) + "]",
453
453
  NonNullType: (e) => R(e.type) + "!"
454
- }, R = (e) => b[e.kind](e);
454
+ }, R = (e) => E[e.kind](e);
455
455
  function sr(e) {
456
- return F = `
457
- `, b[e.kind] ? b[e.kind](e) : "";
456
+ return P = `
457
+ `, E[e.kind] ? E[e.kind](e) : "";
458
458
  }
459
- var be = () => {
460
- }, V = be;
459
+ var we = () => {
460
+ }, q = we;
461
461
  function T(e) {
462
462
  return {
463
463
  tag: 0,
@@ -470,10 +470,10 @@ function H(e) {
470
470
  0: e
471
471
  };
472
472
  }
473
- var De = () => typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator", ur = (e) => e;
473
+ var Se = () => typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator", ur = (e) => e;
474
474
  function I(e) {
475
475
  return (r) => (t) => {
476
- var n = V;
476
+ var n = q;
477
477
  r((a) => {
478
478
  a === 0 ? t(0) : a.tag === 0 ? (n = a[0], t(a)) : e(a[0]) ? t(a) : n(0);
479
479
  });
@@ -486,23 +486,23 @@ function K(e) {
486
486
  }
487
487
  function ae(e) {
488
488
  return (r) => (t) => {
489
- var n = [], a = V, i = !1, o = !1;
489
+ var n = [], a = q, i = !1, o = !1;
490
490
  r((s) => {
491
491
  o || (s === 0 ? (o = !0, n.length || t(0)) : s.tag === 0 ? a = s[0] : (i = !1, function(l) {
492
- var d = V;
492
+ var p = q;
493
493
  l((f) => {
494
494
  if (f === 0) {
495
495
  if (n.length) {
496
- var h = n.indexOf(d);
496
+ var h = n.indexOf(p);
497
497
  h > -1 && (n = n.slice()).splice(h, 1), n.length || (o ? t(0) : i || (i = !0, a(0)));
498
498
  }
499
- } else f.tag === 0 ? (n.push(d = f[0]), d(0)) : n.length && (t(f), d(0));
499
+ } else f.tag === 0 ? (n.push(p = f[0]), p(0)) : n.length && (t(f), p(0));
500
500
  });
501
501
  }(e(s[0])), i || (i = !0, a(0))));
502
502
  }), t(T((s) => {
503
503
  if (s === 1) {
504
504
  o || (o = !0, a(1));
505
- for (var c = 0, l = n, d = n.length; c < d; c++)
505
+ for (var c = 0, l = n, p = n.length; c < p; c++)
506
506
  l[c](1);
507
507
  n.length = 0;
508
508
  } else {
@@ -519,7 +519,7 @@ function lr(e) {
519
519
  function z(e) {
520
520
  return lr(vr(e));
521
521
  }
522
- function Oe(e) {
522
+ function be(e) {
523
523
  return (r) => (t) => {
524
524
  var n = !1;
525
525
  r((a) => {
@@ -551,13 +551,13 @@ function G(e) {
551
551
  });
552
552
  };
553
553
  }
554
- function Ae(e) {
554
+ function De(e) {
555
555
  return (r) => (t) => r((n) => {
556
556
  n === 0 ? t(0) : n.tag === 0 ? (t(n), e()) : t(n);
557
557
  });
558
558
  }
559
- function W(e) {
560
- var r = [], t = V, n = !1;
559
+ function Y(e) {
560
+ var r = [], t = q, n = !1;
561
561
  return (a) => {
562
562
  r.push(a), r.length === 1 && e((i) => {
563
563
  if (i === 0) {
@@ -568,8 +568,8 @@ function W(e) {
568
568
  t = i[0];
569
569
  else {
570
570
  n = !1;
571
- for (var l = 0, d = r, f = r.length; l < f; l++)
572
- d[l](i);
571
+ for (var l = 0, p = r, f = r.length; l < f; l++)
572
+ p[l](i);
573
573
  }
574
574
  }), a(T((i) => {
575
575
  if (i === 1) {
@@ -579,11 +579,11 @@ function W(e) {
579
579
  }));
580
580
  };
581
581
  }
582
- function _e(e) {
582
+ function Ae(e) {
583
583
  return (r) => (t) => {
584
- var n = V, a = V, i = !1, o = !1, s = !1, c = !1;
584
+ var n = q, a = q, i = !1, o = !1, s = !1, c = !1;
585
585
  r((l) => {
586
- c || (l === 0 ? (c = !0, s || t(0)) : l.tag === 0 ? n = l[0] : (s && (a(1), a = V), i ? i = !1 : (i = !0, n(0)), function(f) {
586
+ c || (l === 0 ? (c = !0, s || t(0)) : l.tag === 0 ? n = l[0] : (s && (a(1), a = q), i ? i = !1 : (i = !0, n(0)), function(f) {
587
587
  s = !0, f((h) => {
588
588
  s && (h === 0 ? (s = !1, c ? t(0) : i || (i = !0, n(0))) : h.tag === 0 ? (o = !1, (a = h[0])(0)) : (t(h), o ? o = !1 : a(0)));
589
589
  });
@@ -593,9 +593,9 @@ function _e(e) {
593
593
  }));
594
594
  };
595
595
  }
596
- function Je(e) {
596
+ function Ge(e) {
597
597
  return (r) => (t) => {
598
- var n = V, a = !1, i = 0;
598
+ var n = q, a = !1, i = 0;
599
599
  r((o) => {
600
600
  a || (o === 0 ? (a = !0, t(0)) : o.tag === 0 ? n = o[0] : i++ < e ? (t(o), !a && i >= e && (a = !0, t(0), n(1))) : t(o));
601
601
  }), t(T((o) => {
@@ -603,9 +603,9 @@ function Je(e) {
603
603
  }));
604
604
  };
605
605
  }
606
- function Ue(e) {
606
+ function Je(e) {
607
607
  return (r) => (t) => {
608
- var n = V, a = V, i = !1;
608
+ var n = q, a = q, i = !1;
609
609
  r((o) => {
610
610
  i || (o === 0 ? (i = !0, a(1), t(0)) : o.tag === 0 ? (n = o[0], e((s) => {
611
611
  s === 0 || (s.tag === 0 ? (a = s[0])(0) : (i = !0, a(1), n(1), t(0)));
@@ -615,9 +615,9 @@ function Ue(e) {
615
615
  }));
616
616
  };
617
617
  }
618
- function ze(e, r) {
618
+ function Ue(e, r) {
619
619
  return (t) => (n) => {
620
- var a = V, i = !1;
620
+ var a = q, i = !1;
621
621
  t((o) => {
622
622
  i || (o === 0 ? (i = !0, n(0)) : o.tag === 0 ? (a = o[0], n(o)) : e(o[0]) ? n(o) : (i = !0, r && n(o), n(0), a(1)));
623
623
  });
@@ -626,9 +626,9 @@ function ze(e, r) {
626
626
  function cr(e) {
627
627
  return (r) => e()(r);
628
628
  }
629
- function We(e) {
629
+ function ze(e) {
630
630
  return (r) => {
631
- var t = e[De()] && e[De()]() || e, n = !1, a = !1, i = !1, o;
631
+ var t = e[Se()] && e[Se()]() || e, n = !1, a = !1, i = !1, o;
632
632
  r(T(async (s) => {
633
633
  if (s === 1)
634
634
  n = !0, t.return && t.return();
@@ -653,7 +653,7 @@ function We(e) {
653
653
  };
654
654
  }
655
655
  function fr(e) {
656
- return e[Symbol.asyncIterator] ? We(e) : (r) => {
656
+ return e[Symbol.asyncIterator] ? ze(e) : (r) => {
657
657
  var t = e[Symbol.iterator](), n = !1, a = !1, i = !1, o;
658
658
  r(T((s) => {
659
659
  if (s === 1)
@@ -702,10 +702,10 @@ function Ye(e) {
702
702
  }));
703
703
  };
704
704
  }
705
- function Ie() {
705
+ function _e() {
706
706
  var e, r;
707
707
  return {
708
- source: W(Ye((t) => (e = t.next, r = t.complete, be))),
708
+ source: Y(Ye((t) => (e = t.next, r = t.complete, we))),
709
709
  next(t) {
710
710
  e && e(t);
711
711
  },
@@ -714,16 +714,16 @@ function Ie() {
714
714
  }
715
715
  };
716
716
  }
717
- function Ce(e) {
717
+ function Ie(e) {
718
718
  return Ye((r) => (e.then((t) => {
719
719
  Promise.resolve(t).then(() => {
720
720
  r.next(t), r.complete();
721
721
  });
722
- }), be));
722
+ }), we));
723
723
  }
724
- function j(e) {
724
+ function M(e) {
725
725
  return (r) => {
726
- var t = V, n = !1;
726
+ var t = q, n = !1;
727
727
  return r((a) => {
728
728
  a === 0 ? n = !0 : a.tag === 0 ? (t = a[0])(0) : n || (e(a[0]), t(0));
729
729
  }), {
@@ -734,19 +734,19 @@ function j(e) {
734
734
  };
735
735
  }
736
736
  function dr(e) {
737
- j((r) => {
737
+ M((r) => {
738
738
  })(e);
739
739
  }
740
740
  function pr(e) {
741
741
  return new Promise((r) => {
742
- var t = V, n;
742
+ var t = q, n;
743
743
  e((a) => {
744
744
  a === 0 ? Promise.resolve(n).then(r) : a.tag === 0 ? (t = a[0])(0) : (n = a[0], t(0));
745
745
  });
746
746
  });
747
747
  }
748
- var hr = (e) => e && e.message && (e.extensions || e.name === "GraphQLError") ? e : typeof e == "object" && e.message ? new me(e.message, e.nodes, e.source, e.positions, e.path, e, e.extensions || {}) : new me(e);
749
- class Se extends Error {
748
+ var hr = (e) => e && e.message && (e.extensions || e.name === "GraphQLError") ? e : typeof e == "object" && e.message ? new he(e.message, e.nodes, e.source, e.positions, e.path, e, e.extensions || {}) : new he(e);
749
+ class Ee extends Error {
750
750
  constructor(r) {
751
751
  var t = (r.graphQLErrors || []).map(hr), n = ((a, i) => {
752
752
  var o = "";
@@ -768,52 +768,52 @@ var X = (e, r) => {
768
768
  for (var t = 0 | (r || 5381), n = 0, a = 0 | e.length; n < a; n++)
769
769
  t = (t << 5) + t + e.charCodeAt(n);
770
770
  return t;
771
- }, L = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new WeakMap(), Q = (e, r) => {
771
+ }, L = /* @__PURE__ */ new Set(), Ce = /* @__PURE__ */ new WeakMap(), j = (e, r) => {
772
772
  if (e === null || L.has(e))
773
773
  return "null";
774
774
  if (typeof e != "object")
775
775
  return JSON.stringify(e) || "";
776
776
  if (e.toJSON)
777
- return Q(e.toJSON(), r);
777
+ return j(e.toJSON(), r);
778
778
  if (Array.isArray(e)) {
779
779
  var t = "[";
780
780
  for (var n of e)
781
- t.length > 1 && (t += ","), t += Q(n, r) || "null";
781
+ t.length > 1 && (t += ","), t += j(n, r) || "null";
782
782
  return t += "]";
783
783
  } else if (!r && (oe !== J && e instanceof oe || se !== J && e instanceof se))
784
784
  return "null";
785
785
  var a = Object.keys(e).sort();
786
786
  if (!a.length && e.constructor && Object.getPrototypeOf(e).constructor !== Object.prototype.constructor) {
787
- var i = qe.get(e) || Math.random().toString(36).slice(2);
788
- return qe.set(e, i), Q({
787
+ var i = Ce.get(e) || Math.random().toString(36).slice(2);
788
+ return Ce.set(e, i), j({
789
789
  __key: i
790
790
  }, r);
791
791
  }
792
792
  L.add(e);
793
793
  var o = "{";
794
794
  for (var s of a) {
795
- var c = Q(e[s], r);
796
- c && (o.length > 1 && (o += ","), o += Q(s, r) + ":" + c);
795
+ var c = j(e[s], r);
796
+ c && (o.length > 1 && (o += ","), o += j(s, r) + ":" + c);
797
797
  }
798
798
  return L.delete(e), o += "}";
799
- }, ke = (e, r, t) => {
799
+ }, me = (e, r, t) => {
800
800
  if (!(t == null || typeof t != "object" || t.toJSON || L.has(t))) if (Array.isArray(t))
801
801
  for (var n = 0, a = t.length; n < a; n++)
802
- ke(e, `${r}.${n}`, t[n]);
802
+ me(e, `${r}.${n}`, t[n]);
803
803
  else if (t instanceof oe || t instanceof se)
804
804
  e.set(r, t);
805
805
  else {
806
806
  L.add(t);
807
807
  for (var i of Object.keys(t))
808
- ke(e, `${r}.${i}`, t[i]);
808
+ me(e, `${r}.${i}`, t[i]);
809
809
  }
810
- }, ie = (e, r) => (L.clear(), Q(e, r || !1));
810
+ }, ie = (e, r) => (L.clear(), j(e, r || !1));
811
811
  class J {
812
812
  }
813
813
  var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g, mr = /(?:#[^\n\r]+)?(?:[\r\n]+|$)/g, gr = (e, r) => r % 2 == 0 ? e.replace(mr, `
814
- `) : e, Ve = (e) => e.split(yr).map(gr).join("").trim(), Te = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(), le = (e) => {
814
+ `) : e, Ve = (e) => e.split(yr).map(gr).join("").trim(), qe = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(), Oe = (e) => {
815
815
  var r;
816
- return typeof e == "string" ? r = Ve(e) : e.loc && ee.get(e.__key) === e ? r = e.loc.source.body : (r = Te.get(e) || Ve(sr(e)), Te.set(e, r)), typeof e != "string" && !e.loc && (e.loc = {
816
+ return typeof e == "string" ? r = Ve(e) : e.loc && ee.get(e.__key) === e ? r = e.loc.source.body : (r = qe.get(e) || Ve(sr(e)), qe.set(e, r)), typeof e != "string" && !e.loc && (e.loc = {
817
817
  start: 0,
818
818
  end: r.length,
819
819
  source: {
@@ -825,21 +825,21 @@ var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /
825
825
  }
826
826
  }
827
827
  }), r;
828
- }, Fe = (e) => {
828
+ }, Te = (e) => {
829
829
  var r;
830
830
  if (e.documentId)
831
831
  r = X(e.documentId);
832
- else if (r = X(le(e)), e.definitions) {
832
+ else if (r = X(Oe(e)), e.definitions) {
833
833
  var t = He(e);
834
834
  t && (r = X(`
835
835
  # ${t}`, r));
836
836
  }
837
837
  return r;
838
- }, ue = (e) => {
838
+ }, We = (e) => {
839
839
  var r, t;
840
- return typeof e == "string" ? (r = Fe(e), t = ee.get(r) || ar(e)) : (r = e.__key || Fe(e), t = ee.get(r) || e), t.loc || le(t), t.__key = r, ee.set(r, t), t;
840
+ return typeof e == "string" ? (r = Te(e), t = ee.get(r) || ar(e)) : (r = e.__key || Te(e), t = ee.get(r) || e), t.loc || Oe(t), t.__key = r, ee.set(r, t), t;
841
841
  }, re = (e, r, t) => {
842
- var n = r || {}, a = ue(e), i = ie(n, !0), o = a.__key;
842
+ var n = r || {}, a = We(e), i = ie(n, !0), o = a.__key;
843
843
  return i !== "{}" && (o = X(i, o)), {
844
844
  key: o,
845
845
  query: a,
@@ -848,20 +848,20 @@ var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /
848
848
  };
849
849
  }, He = (e) => {
850
850
  for (var r of e.definitions)
851
- if (r.kind === $.OPERATION_DEFINITION)
851
+ if (r.kind === Q.OPERATION_DEFINITION)
852
852
  return r.name ? r.name.value : void 0;
853
853
  }, kr = (e) => {
854
854
  for (var r of e.definitions)
855
- if (r.kind === $.OPERATION_DEFINITION)
855
+ if (r.kind === Q.OPERATION_DEFINITION)
856
856
  return r.operation;
857
- }, xe = (e, r, t) => {
857
+ }, ge = (e, r, t) => {
858
858
  if (!("data" in r || "errors" in r && Array.isArray(r.errors)))
859
859
  throw new Error("No Content");
860
860
  var n = e.kind === "subscription";
861
861
  return {
862
862
  operation: e,
863
863
  data: r.data,
864
- error: Array.isArray(r.errors) ? new Se({
864
+ error: Array.isArray(r.errors) ? new Ee({
865
865
  graphQLErrors: r.errors,
866
866
  response: t
867
867
  }) : void 0,
@@ -871,13 +871,13 @@ var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /
871
871
  hasNext: r.hasNext == null ? n : r.hasNext,
872
872
  stale: !1
873
873
  };
874
- }, Ne = (e, r) => {
874
+ }, ke = (e, r) => {
875
875
  if (typeof e == "object" && e != null && (!e.constructor || e.constructor === Object || Array.isArray(e))) {
876
876
  e = Array.isArray(e) ? [...e] : {
877
877
  ...e
878
878
  };
879
879
  for (var t of Object.keys(r))
880
- e[t] = Ne(e[t], r[t]);
880
+ e[t] = ke(e[t], r[t]);
881
881
  return e;
882
882
  }
883
883
  return r;
@@ -906,17 +906,17 @@ var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /
906
906
  };
907
907
  if (f.items)
908
908
  for (var w = +h >= 0 ? h : 0, D = 0, u = f.items.length; D < u; D++)
909
- k[w + D] = Ne(k[w + D], f.items[D]);
910
- else f.data !== void 0 && (k[h] = Ne(k[h], f.data));
909
+ k[w + D] = ke(k[w + D], f.items[D]);
910
+ else f.data !== void 0 && (k[h] = ke(k[h], f.data));
911
911
  };
912
- for (var d of s)
913
- l(d);
912
+ for (var p of s)
913
+ l(p);
914
914
  } else
915
915
  c.data = (r.payload || r).data || e.data, a = r.errors || r.payload && r.payload.errors || a;
916
916
  return {
917
917
  operation: e.operation,
918
918
  data: c.data,
919
- error: a.length ? new Se({
919
+ error: a.length ? new Ee({
920
920
  graphQLErrors: a,
921
921
  response: t
922
922
  }) : void 0,
@@ -927,7 +927,7 @@ var oe = typeof File < "u" ? File : J, se = typeof Blob < "u" ? Blob : J, yr = /
927
927
  }, Nr = (e, r, t) => ({
928
928
  operation: e,
929
929
  data: void 0,
930
- error: new Se({
930
+ error: new Ee({
931
931
  networkError: r,
932
932
  response: t
933
933
  }),
@@ -943,27 +943,27 @@ function wr(e) {
943
943
  variables: e.variables || void 0,
944
944
  extensions: e.extensions
945
945
  };
946
- return "documentId" in e.query && e.query.documentId && (!e.query.definitions || !e.query.definitions.length) ? r.documentId = e.query.documentId : (!e.extensions || !e.extensions.persistedQuery || e.extensions.persistedQuery.miss) && (r.query = le(e.query)), r;
946
+ return "documentId" in e.query && e.query.documentId && (!e.query.definitions || !e.query.definitions.length) ? r.documentId = e.query.documentId : (!e.extensions || !e.extensions.persistedQuery || e.extensions.persistedQuery.miss) && (r.query = Oe(e.query)), r;
947
947
  }
948
- var Er = (e, r) => {
948
+ var br = (e, r) => {
949
949
  var t = e.kind === "query" && e.context.preferGetMethod;
950
950
  if (!t || !r)
951
951
  return e.context.url;
952
- var n = br(e.context.url);
952
+ var n = Er(e.context.url);
953
953
  for (var a in r) {
954
954
  var i = r[a];
955
955
  i && n[1].set(a, typeof i == "object" ? ie(i) : i);
956
956
  }
957
957
  var o = n.join("?");
958
958
  return o.length > 2047 && t !== "force" ? (e.context.preferGetMethod = !1, e.context.url) : o;
959
- }, br = (e) => {
959
+ }, Er = (e) => {
960
960
  var r = e.indexOf("?");
961
961
  return r > -1 ? [e.slice(0, r), new URLSearchParams(e.slice(r + 1))] : [e, new URLSearchParams()];
962
962
  }, Or = (e, r) => {
963
963
  if (r && !(e.kind === "query" && e.context.preferGetMethod)) {
964
964
  var t = ie(r), n = ((s) => {
965
965
  var c = /* @__PURE__ */ new Map();
966
- return (oe !== J || se !== J) && (L.clear(), ke(c, "variables", s)), c;
966
+ return (oe !== J || se !== J) && (L.clear(), me(c, "variables", s)), c;
967
967
  })(r.variables);
968
968
  if (n.size) {
969
969
  var a = new FormData();
@@ -1001,7 +1001,7 @@ var Er = (e, r) => {
1001
1001
  headers: t
1002
1002
  };
1003
1003
  }, Dr = typeof TextDecoder < "u" ? new TextDecoder() : null, Ar = /boundary="?([^=";]+)"?/i, _r = /data: ?([^\n]+)/, Pe = (e) => e.constructor.name === "Buffer" ? e.toString() : Dr.decode(e);
1004
- async function* Re(e) {
1004
+ async function* Fe(e) {
1005
1005
  if (e.body[Symbol.asyncIterator])
1006
1006
  for await (var r of e.body)
1007
1007
  yield Pe(r);
@@ -1015,7 +1015,7 @@ async function* Re(e) {
1015
1015
  }
1016
1016
  }
1017
1017
  }
1018
- async function* Me(e, r) {
1018
+ async function* Re(e, r) {
1019
1019
  var t = "", n;
1020
1020
  for await (var a of e)
1021
1021
  for (t += a; (n = t.indexOf(r)) > -1; )
@@ -1028,7 +1028,7 @@ async function* Ir(e, r, t) {
1028
1028
  var o = (i = await (e.context.fetch || fetch)(r, t)).headers.get("Content-Type") || "", s;
1029
1029
  /multipart\/mixed/i.test(o) ? s = async function* (f, h) {
1030
1030
  var k = f.match(Ar), y = "--" + (k ? k[1] : "-"), N = !0, O;
1031
- for await (var S of Me(Re(h), `\r
1031
+ for await (var S of Re(Fe(h), `\r
1032
1032
  ` + y)) {
1033
1033
  if (N) {
1034
1034
  N = !1;
@@ -1054,7 +1054,7 @@ async function* Ir(e, r, t) {
1054
1054
  });
1055
1055
  }(o, i) : /text\/event-stream/i.test(o) ? s = async function* (f) {
1056
1056
  var h;
1057
- for await (var k of Me(Re(f), `
1057
+ for await (var k of Re(Fe(f), `
1058
1058
 
1059
1059
  `)) {
1060
1060
  var y = k.match(_r);
@@ -1086,33 +1086,33 @@ async function* Ir(e, r, t) {
1086
1086
  }(i);
1087
1087
  var c;
1088
1088
  for await (var l of s)
1089
- l.pending && !a ? c = l.pending : l.pending && (c = [...c, ...l.pending]), a = a ? xr(a, l, i, c) : xe(e, l, i), n = !1, yield a, n = !0;
1090
- a || (yield a = xe(e, {}, i));
1091
- } catch (d) {
1089
+ l.pending && !a ? c = l.pending : l.pending && (c = [...c, ...l.pending]), a = a ? xr(a, l, i, c) : ge(e, l, i), n = !1, yield a, n = !0;
1090
+ a || (yield a = ge(e, {}, i));
1091
+ } catch (p) {
1092
1092
  if (!n)
1093
- throw d;
1094
- yield Nr(e, i && (i.status < 200 || i.status >= 300) && i.statusText ? new Error(i.statusText) : d, i);
1093
+ throw p;
1094
+ yield Nr(e, i && (i.status < 200 || i.status >= 300) && i.statusText ? new Error(i.statusText) : p, i);
1095
1095
  }
1096
1096
  }
1097
1097
  function Cr(e, r, t) {
1098
1098
  var n;
1099
- return typeof AbortController < "u" && (t.signal = (n = new AbortController()).signal), Oe(() => {
1099
+ return typeof AbortController < "u" && (t.signal = (n = new AbortController()).signal), be(() => {
1100
1100
  n && n.abort();
1101
- })(I((a) => !!a)(We(Ir(e, r, t))));
1101
+ })(I((a) => !!a)(ze(Ir(e, r, t))));
1102
1102
  }
1103
- var we = (e, r) => {
1103
+ var xe = (e, r) => {
1104
1104
  if (Array.isArray(e))
1105
1105
  for (var t of e)
1106
- we(t, r);
1106
+ xe(t, r);
1107
1107
  else if (typeof e == "object" && e !== null)
1108
1108
  for (var n in e)
1109
- n === "__typename" && typeof e[n] == "string" ? r.add(e[n]) : we(e[n], r);
1109
+ n === "__typename" && typeof e[n] == "string" ? r.add(e[n]) : xe(e[n], r);
1110
1110
  return r;
1111
- }, Ee = (e) => {
1111
+ }, Ne = (e) => {
1112
1112
  if ("definitions" in e) {
1113
1113
  var r = [];
1114
1114
  for (var t of e.definitions) {
1115
- var n = Ee(t);
1115
+ var n = Ne(t);
1116
1116
  r.push(n);
1117
1117
  }
1118
1118
  return {
@@ -1133,17 +1133,17 @@ var we = (e, r) => {
1133
1133
  };
1134
1134
  }
1135
1135
  if ("selectionSet" in e) {
1136
- var c = [], l = e.kind === $.OPERATION_DEFINITION;
1136
+ var c = [], l = e.kind === Q.OPERATION_DEFINITION;
1137
1137
  if (e.selectionSet) {
1138
- for (var d of e.selectionSet.selections || []) {
1139
- l = l || d.kind === $.FIELD && d.name.value === "__typename" && !d.alias;
1140
- var f = Ee(d);
1138
+ for (var p of e.selectionSet.selections || []) {
1139
+ l = l || p.kind === Q.FIELD && p.name.value === "__typename" && !p.alias;
1140
+ var f = Ne(p);
1141
1141
  c.push(f);
1142
1142
  }
1143
1143
  return l || c.push({
1144
- kind: $.FIELD,
1144
+ kind: Q.FIELD,
1145
1145
  name: {
1146
- kind: $.NAME,
1146
+ kind: Q.NAME,
1147
1147
  value: "__typename"
1148
1148
  },
1149
1149
  _generated: !0
@@ -1157,18 +1157,18 @@ var we = (e, r) => {
1157
1157
  }
1158
1158
  }
1159
1159
  return e;
1160
- }, $e = /* @__PURE__ */ new Map(), qr = (e) => {
1161
- var r = ue(e), t = $e.get(r.__key);
1162
- return t || ($e.set(r.__key, t = Ee(r)), Object.defineProperty(t, "__key", {
1160
+ }, $e = /* @__PURE__ */ new Map(), Vr = (e) => {
1161
+ var r = We(e), t = $e.get(r.__key);
1162
+ return t || ($e.set(r.__key, t = Ne(r)), Object.defineProperty(t, "__key", {
1163
1163
  value: r.__key,
1164
1164
  enumerable: !1
1165
1165
  })), t;
1166
1166
  };
1167
1167
  function Le(e) {
1168
1168
  var r = (t) => e(t);
1169
- return r.toPromise = () => pr(Je(1)(I((t) => !t.stale && !t.hasNext)(r))), r.then = (t, n) => r.toPromise().then(t, n), r.subscribe = (t) => j(t)(r), r;
1169
+ return r.toPromise = () => pr(Ge(1)(I((t) => !t.stale && !t.hasNext)(r))), r.then = (t, n) => r.toPromise().then(t, n), r.subscribe = (t) => M(t)(r), r;
1170
1170
  }
1171
- function Y(e, r, t) {
1171
+ function W(e, r, t) {
1172
1172
  return {
1173
1173
  ...r,
1174
1174
  kind: e,
@@ -1178,46 +1178,27 @@ function Y(e, r, t) {
1178
1178
  } : t || r.context
1179
1179
  };
1180
1180
  }
1181
- var je = (e, r) => Y(e.kind, e, {
1181
+ var Me = (e, r) => W(e.kind, e, {
1182
1182
  meta: {
1183
1183
  ...e.context.meta,
1184
1184
  ...r
1185
1185
  }
1186
- }), Vr = () => {
1187
- };
1188
- function Hr(e) {
1189
- for (var r = /* @__PURE__ */ new Map(), t = [], n = [], a = Array.isArray(e) ? e[0] : e || "", i = 1; i < arguments.length; i++) {
1190
- var o = arguments[i];
1191
- o && o.definitions ? n.push(o) : a += o, a += arguments[0][i];
1192
- }
1193
- n.unshift(ue(a));
1194
- for (var s of n)
1195
- for (var c of s.definitions)
1196
- if (c.kind === $.FRAGMENT_DEFINITION) {
1197
- var l = c.name.value, d = le(c);
1198
- r.has(l) ? process.env.NODE_ENV !== "production" && r.get(l) !== d && console.warn("[WARNING: Duplicate Fragment] A fragment with name `" + l + "` already exists in this document.\nWhile fragment names may not be unique across your source, each name must be unique per document.") : (r.set(l, d), t.push(c));
1199
- } else
1200
- t.push(c);
1201
- return ue({
1202
- kind: $.DOCUMENT,
1203
- definitions: t
1204
- });
1205
- }
1206
- var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1207
- var r = qr(e.query);
1186
+ }), qr = () => {
1187
+ }, ve = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1188
+ var r = Vr(e.query);
1208
1189
  if (r !== e.query) {
1209
- var t = Y(e.kind, e);
1190
+ var t = W(e.kind, e);
1210
1191
  return t.query = r, t;
1211
1192
  } else
1212
1193
  return e;
1213
- }, Fr = ({ forward: e, client: r, dispatchDebug: t }) => {
1194
+ }, Pr = ({ forward: e, client: r, dispatchDebug: t }) => {
1214
1195
  var n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = (o) => o.kind === "query" && o.context.requestPolicy !== "network-only" && (o.context.requestPolicy === "cache-only" || n.has(o.key));
1215
1196
  return (o) => {
1216
1197
  var s = K((l) => {
1217
- var d = n.get(l.key);
1198
+ var p = n.get(l.key);
1218
1199
  process.env.NODE_ENV !== "production" && t({
1219
1200
  operation: l,
1220
- ...d ? {
1201
+ ...p ? {
1221
1202
  type: "cacheHit",
1222
1203
  message: "The result was successfully retried from the cache"
1223
1204
  } : {
@@ -1226,25 +1207,25 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1226
1207
  },
1227
1208
  source: "cacheExchange"
1228
1209
  });
1229
- var f = d || xe(l, {
1210
+ var f = p || ge(l, {
1230
1211
  data: null
1231
1212
  });
1232
1213
  return f = {
1233
1214
  ...f,
1234
- operation: process.env.NODE_ENV !== "production" ? je(l, {
1235
- cacheOutcome: d ? "hit" : "miss"
1215
+ operation: process.env.NODE_ENV !== "production" ? Me(l, {
1216
+ cacheOutcome: p ? "hit" : "miss"
1236
1217
  }) : l
1237
- }, l.context.requestPolicy === "cache-and-network" && (f.stale = !0, Qe(r, l)), f;
1238
- })(I((l) => !pe(l) && i(l))(o)), c = G((l) => {
1239
- var { operation: d } = l;
1240
- if (d) {
1241
- var f = d.context.additionalTypenames || [];
1242
- if (l.operation.kind !== "subscription" && (f = ((g) => [...we(g, /* @__PURE__ */ new Set())])(l.data).concat(f)), l.operation.kind === "mutation" || l.operation.kind === "subscription") {
1218
+ }, l.context.requestPolicy === "cache-and-network" && (f.stale = !0, je(r, l)), f;
1219
+ })(I((l) => !ve(l) && i(l))(o)), c = G((l) => {
1220
+ var { operation: p } = l;
1221
+ if (p) {
1222
+ var f = p.context.additionalTypenames || [];
1223
+ if (l.operation.kind !== "subscription" && (f = ((g) => [...xe(g, /* @__PURE__ */ new Set())])(l.data).concat(f)), l.operation.kind === "mutation" || l.operation.kind === "subscription") {
1243
1224
  var h = /* @__PURE__ */ new Set();
1244
1225
  process.env.NODE_ENV !== "production" && t({
1245
1226
  type: "cacheInvalidation",
1246
1227
  message: `The following typenames have been invalidated: ${f}`,
1247
- operation: d,
1228
+ operation: p,
1248
1229
  data: {
1249
1230
  typenames: f,
1250
1231
  response: l
@@ -1259,25 +1240,25 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1259
1240
  N.clear();
1260
1241
  }
1261
1242
  for (var S of h.values())
1262
- n.has(S) && (d = n.get(S).operation, n.delete(S), Qe(r, d));
1263
- } else if (d.kind === "query" && l.data) {
1264
- n.set(d.key, l);
1243
+ n.has(S) && (p = n.get(S).operation, n.delete(S), je(r, p));
1244
+ } else if (p.kind === "query" && l.data) {
1245
+ n.set(p.key, l);
1265
1246
  for (var w = 0; w < f.length; w++) {
1266
1247
  var D = f[w], u = a.get(D);
1267
- u || a.set(D, u = /* @__PURE__ */ new Set()), u.add(d.key);
1248
+ u || a.set(D, u = /* @__PURE__ */ new Set()), u.add(p.key);
1268
1249
  }
1269
1250
  }
1270
1251
  }
1271
- })(e(I((l) => l.kind !== "query" || l.context.requestPolicy !== "cache-only")(K((l) => process.env.NODE_ENV !== "production" ? je(l, {
1252
+ })(e(I((l) => l.kind !== "query" || l.context.requestPolicy !== "cache-only")(K((l) => process.env.NODE_ENV !== "production" ? Me(l, {
1272
1253
  cacheOutcome: "miss"
1273
- }) : l)(z([K(Tr)(I((l) => !pe(l) && !i(l))(o)), I((l) => pe(l))(o)])))));
1254
+ }) : l)(z([K(Tr)(I((l) => !ve(l) && !i(l))(o)), I((l) => ve(l))(o)])))));
1274
1255
  return z([s, c]);
1275
1256
  };
1276
- }, Qe = (e, r) => e.reexecuteOperation(Y(r.kind, r, {
1257
+ }, je = (e, r) => e.reexecuteOperation(W(r.kind, r, {
1277
1258
  requestPolicy: "network-only"
1278
- })), Pr = ({ forward: e, dispatchDebug: r }) => (t) => {
1259
+ })), Fr = ({ forward: e, dispatchDebug: r }) => (t) => {
1279
1260
  var n = ae((i) => {
1280
- var o = wr(i), s = Er(i, o), c = Sr(i, o);
1261
+ var o = wr(i), s = br(i, o), c = Sr(i, o);
1281
1262
  process.env.NODE_ENV !== "production" && r({
1282
1263
  type: "fetchRequest",
1283
1264
  message: "A fetch request is being executed.",
@@ -1288,9 +1269,9 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1288
1269
  },
1289
1270
  source: "fetchExchange"
1290
1271
  });
1291
- var l = Ue(I((d) => d.kind === "teardown" && d.key === i.key)(t))(Cr(i, s, c));
1292
- return process.env.NODE_ENV !== "production" ? G((d) => {
1293
- var f = d.data ? void 0 : d.error;
1272
+ var l = Je(I((p) => p.kind === "teardown" && p.key === i.key)(t))(Cr(i, s, c));
1273
+ return process.env.NODE_ENV !== "production" ? G((p) => {
1274
+ var f = p.data ? void 0 : p.error;
1294
1275
  process.env.NODE_ENV !== "production" && r({
1295
1276
  type: f ? "fetchError" : "fetchSuccess",
1296
1277
  message: `A ${f ? "failed" : "successful"} fetch response has been returned.`,
@@ -1298,7 +1279,7 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1298
1279
  data: {
1299
1280
  url: s,
1300
1281
  fetchOptions: c,
1301
- value: f || d
1282
+ value: f || p
1302
1283
  },
1303
1284
  source: "fetchExchange"
1304
1285
  });
@@ -1315,7 +1296,7 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1315
1296
  throw new Error("forward() must only be called once in each Exchange.");
1316
1297
  o = !0;
1317
1298
  }
1318
- return W(a(W(s)));
1299
+ return Y(a(Y(s)));
1319
1300
  },
1320
1301
  dispatchDebug(s) {
1321
1302
  process.env.NODE_ENV !== "production" && n({
@@ -1325,14 +1306,14 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1325
1306
  });
1326
1307
  }
1327
1308
  });
1328
- }, t), Mr = ({ onOperation: e, onResult: r, onError: t }) => ({ forward: n }) => (a) => ae((i) => {
1309
+ }, t), $r = ({ onOperation: e, onResult: r, onError: t }) => ({ forward: n }) => (a) => ae((i) => {
1329
1310
  t && i.error && t(i.error, i.operation);
1330
1311
  var o = r && r(i) || i;
1331
- return "then" in o ? Ce(o) : U(o);
1312
+ return "then" in o ? Ie(o) : U(o);
1332
1313
  })(n(ae((i) => {
1333
1314
  var o = e && e(i) || i;
1334
- return "then" in o ? Ce(o) : U(o);
1335
- })(a))), $r = ({ dispatchDebug: e }) => (r) => (process.env.NODE_ENV !== "production" && (r = G((t) => {
1315
+ return "then" in o ? Ie(o) : U(o);
1316
+ })(a))), Lr = ({ dispatchDebug: e }) => (r) => (process.env.NODE_ENV !== "production" && (r = G((t) => {
1336
1317
  if (t.kind !== "teardown" && process.env.NODE_ENV !== "production") {
1337
1318
  var n = `No exchange has handled operations of kind "${t.kind}". Check whether you've added an exchange responsible for these operations.`;
1338
1319
  process.env.NODE_ENV !== "production" && e({
@@ -1342,7 +1323,7 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1342
1323
  source: "fallbackExchange"
1343
1324
  }), console.warn(n);
1344
1325
  }
1345
- })(r)), I((t) => !1)(r)), Lr = function e(r) {
1326
+ })(r)), I((t) => !1)(r)), Mr = function e(r) {
1346
1327
  if (process.env.NODE_ENV !== "production" && !r.url)
1347
1328
  throw new Error("You are creating an urql-client without a url.");
1348
1329
  var t = 0, n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), o = [], s = {
@@ -1352,28 +1333,28 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1352
1333
  fetch: r.fetch,
1353
1334
  preferGetMethod: r.preferGetMethod,
1354
1335
  requestPolicy: r.requestPolicy || "cache-first"
1355
- }, c = Ie();
1336
+ }, c = _e();
1356
1337
  function l(u) {
1357
1338
  (u.kind === "mutation" || u.kind === "teardown" || !i.has(u.key)) && (u.kind === "teardown" ? i.delete(u.key) : u.kind !== "mutation" && i.add(u.key), c.next(u));
1358
1339
  }
1359
- var d = !1;
1340
+ var p = !1;
1360
1341
  function f(u) {
1361
- if (u && l(u), !d) {
1362
- for (d = !0; d && (u = o.shift()); )
1342
+ if (u && l(u), !p) {
1343
+ for (p = !0; p && (u = o.shift()); )
1363
1344
  l(u);
1364
- d = !1;
1345
+ p = !1;
1365
1346
  }
1366
1347
  }
1367
1348
  var h = (u) => {
1368
- var g = Ue(I((v) => v.kind === "teardown" && v.key === u.key)(c.source))(I((v) => v.operation.kind === u.kind && v.operation.key === u.key && (!v.operation.context._instance || v.operation.context._instance === u.context._instance))(D));
1369
- return u.kind !== "query" ? g = ze((v) => !!v.hasNext, !0)(g) : g = _e((v) => {
1349
+ var g = Je(I((v) => v.kind === "teardown" && v.key === u.key)(c.source))(I((v) => v.operation.kind === u.kind && v.operation.key === u.key && (!v.operation.context._instance || v.operation.context._instance === u.context._instance))(D));
1350
+ return u.kind !== "query" ? g = Ue((v) => !!v.hasNext, !0)(g) : g = Ae((v) => {
1370
1351
  var C = U(v);
1371
- return v.stale || v.hasNext ? C : z([C, K(() => (v.stale = !0, v))(Je(1)(I((fe) => fe.key === u.key)(c.source)))]);
1372
- })(g), u.kind !== "mutation" ? g = Oe(() => {
1373
- i.delete(u.key), n.delete(u.key), a.delete(u.key), d = !1;
1352
+ return v.stale || v.hasNext ? C : z([C, K(() => (v.stale = !0, v))(Ge(1)(I((le) => le.key === u.key)(c.source)))]);
1353
+ })(g), u.kind !== "mutation" ? g = be(() => {
1354
+ i.delete(u.key), n.delete(u.key), a.delete(u.key), p = !1;
1374
1355
  for (var v = o.length - 1; v >= 0; v--)
1375
1356
  o[v].key === u.key && o.splice(v, 1);
1376
- l(Y("teardown", u, u.context));
1357
+ l(W("teardown", u, u.context));
1377
1358
  })(G((v) => {
1378
1359
  if (v.stale) {
1379
1360
  if (!v.hasNext)
@@ -1386,9 +1367,9 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1386
1367
  }
1387
1368
  } else v.hasNext || i.delete(u.key);
1388
1369
  n.set(u.key, v);
1389
- })(g)) : g = Ae(() => {
1370
+ })(g)) : g = De(() => {
1390
1371
  l(u);
1391
- })(g), W(g);
1372
+ })(g), Y(g);
1392
1373
  }, k = this instanceof e ? this : Object.create(e.prototype), y = Object.assign(k, {
1393
1374
  suspense: !!r.suspense,
1394
1375
  operations$: c.source,
@@ -1408,7 +1389,7 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1408
1389
  var C;
1409
1390
  if (process.env.NODE_ENV !== "production" && u !== "teardown" && (C = kr(g.query)) !== u)
1410
1391
  throw new Error(`Expected operation of type "${u}" but found "${C}"`);
1411
- return Y(u, g, {
1392
+ return W(u, g, {
1412
1393
  _instance: u === "mutation" ? t = t + 1 | 0 : void 0,
1413
1394
  ...s,
1414
1395
  ...v,
@@ -1419,11 +1400,11 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1419
1400
  executeRequestOperation(u) {
1420
1401
  return u.kind === "mutation" ? Le(h(u)) : Le(cr(() => {
1421
1402
  var g = a.get(u.key);
1422
- g || a.set(u.key, g = h(u)), g = Ae(() => {
1403
+ g || a.set(u.key, g = h(u)), g = De(() => {
1423
1404
  f(u);
1424
1405
  })(g);
1425
1406
  var v = n.get(u.key);
1426
- return u.kind === "query" && v && (v.stale || v.hasNext) ? _e(U)(z([g, I((C) => C === n.get(u.key))(U(v))])) : g;
1407
+ return u.kind === "query" && v && (v.stale || v.hasNext) ? Ae(U)(z([g, I((C) => C === n.get(u.key))(U(v))])) : g;
1427
1408
  }));
1428
1409
  },
1429
1410
  executeQuery(u, g) {
@@ -1440,31 +1421,31 @@ var pe = ({ kind: e }) => e !== "mutation" && e !== "query", Tr = (e) => {
1440
1421
  },
1441
1422
  readQuery(u, g, v) {
1442
1423
  var C = null;
1443
- return j((fe) => {
1444
- C = fe;
1424
+ return M((le) => {
1425
+ C = le;
1445
1426
  })(y.query(u, g, v)).unsubscribe(), C;
1446
1427
  },
1447
1428
  query: (u, g, v) => y.executeQuery(re(u, g), v),
1448
1429
  subscription: (u, g, v) => y.executeSubscription(re(u, g), v),
1449
1430
  mutation: (u, g, v) => y.executeMutation(re(u, g), v)
1450
- }), N = Vr;
1431
+ }), N = qr;
1451
1432
  if (process.env.NODE_ENV !== "production") {
1452
- var { next: O, source: S } = Ie();
1453
- y.subscribeToDebugTarget = (u) => j(u)(S), N = O;
1433
+ var { next: O, source: S } = _e();
1434
+ y.subscribeToDebugTarget = (u) => M(u)(S), N = O;
1454
1435
  }
1455
- var w = Rr(r.exchanges), D = W(w({
1436
+ var w = Rr(r.exchanges), D = Y(w({
1456
1437
  client: y,
1457
1438
  dispatchDebug: N,
1458
- forward: $r({
1439
+ forward: Lr({
1459
1440
  dispatchDebug: N
1460
1441
  })
1461
1442
  })(c.source));
1462
1443
  return dr(D), y;
1463
- }, Ze = {}, ce = P.createContext(Ze), jr = ce.Provider;
1464
- ce.Consumer;
1465
- ce.displayName = "UrqlContext";
1444
+ }, Ze = {}, ue = F.createContext(Ze), jr = ue.Provider;
1445
+ ue.Consumer;
1446
+ ue.displayName = "UrqlContext";
1466
1447
  var Qr = () => {
1467
- var e = P.useContext(ce);
1448
+ var e = F.useContext(ue);
1468
1449
  if (e === Ze && process.env.NODE_ENV !== "production") {
1469
1450
  var r = "No client has been specified using urql's Provider. please create a client and add a Provider.";
1470
1451
  throw console.error(r), new Error(r);
@@ -1477,7 +1458,7 @@ var Qr = () => {
1477
1458
  data: void 0,
1478
1459
  extensions: void 0,
1479
1460
  operation: void 0
1480
- }, Gr = (e, r) => e === r || !(!e || !r || e.key !== r.key), he = (e, r) => {
1461
+ }, Gr = (e, r) => e === r || !(!e || !r || e.key !== r.key), de = (e, r) => {
1481
1462
  var t = {
1482
1463
  ...e,
1483
1464
  ...r,
@@ -1499,13 +1480,13 @@ var Qr = () => {
1499
1480
  if (e[t] !== r[t])
1500
1481
  return !0;
1501
1482
  return !1;
1502
- }, ye = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1503
- function Be(e, r) {
1504
- process.env.NODE_ENV !== "production" && ye && ye.ReactCurrentOwner && ye.ReactCurrentOwner.current ? Promise.resolve(r).then(e) : e(r);
1483
+ }, pe = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1484
+ function Qe(e, r) {
1485
+ process.env.NODE_ENV !== "production" && pe && pe.ReactCurrentOwner && pe.ReactCurrentOwner.current ? Promise.resolve(r).then(e) : e(r);
1505
1486
  }
1506
1487
  function Ur(e, r) {
1507
- var t = P.useRef(void 0);
1508
- return P.useMemo(() => {
1488
+ var t = F.useRef(void 0);
1489
+ return F.useMemo(() => {
1509
1490
  var n = re(e, r);
1510
1491
  return t.current !== void 0 && t.current.key === n.key ? t.current : (t.current = n, n);
1511
1492
  }, [e, r]);
@@ -1513,7 +1494,7 @@ function Ur(e, r) {
1513
1494
  var zr = (e) => {
1514
1495
  if (!e._react) {
1515
1496
  var r = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Map();
1516
- e.operations$ && j((n) => {
1497
+ e.operations$ && M((n) => {
1517
1498
  n.kind === "teardown" && r.has(n.key) && (r.delete(n.key), t.delete(n.key));
1518
1499
  })(e.operations$), e._react = {
1519
1500
  get: (n) => t.get(n),
@@ -1526,9 +1507,9 @@ var zr = (e) => {
1526
1507
  };
1527
1508
  }
1528
1509
  return e._react;
1529
- }, Wr = (e, r) => r && r.suspense !== void 0 ? !!r.suspense : e.suspense;
1530
- function Yr(e) {
1531
- var r = Qr(), t = zr(r), n = Wr(r, e.context), a = Ur(e.query, e.variables), i = P.useMemo(() => {
1510
+ }, Yr = (e, r) => r && r.suspense !== void 0 ? !!r.suspense : e.suspense;
1511
+ function Wr(e) {
1512
+ var r = Qr(), t = zr(r), n = Yr(r, e.context), a = Ur(e.query, e.variables), i = F.useMemo(() => {
1532
1513
  if (e.pause)
1533
1514
  return null;
1534
1515
  var h = r.executeQuery(a, {
@@ -1538,7 +1519,7 @@ function Yr(e) {
1538
1519
  return n ? G((k) => {
1539
1520
  t.set(a.key, k);
1540
1521
  })(h) : h;
1541
- }, [t, r, a, n, e.pause, e.requestPolicy, e.context]), o = P.useCallback((h, k) => {
1522
+ }, [t, r, a, n, e.pause, e.requestPolicy, e.context]), o = F.useCallback((h, k) => {
1542
1523
  if (!h)
1543
1524
  return {
1544
1525
  fetching: !1
@@ -1548,9 +1529,9 @@ function Yr(e) {
1548
1529
  if (k && y != null && "then" in y)
1549
1530
  throw y;
1550
1531
  } else {
1551
- var N, O = j((w) => {
1532
+ var N, O = M((w) => {
1552
1533
  y = w, N && N(y);
1553
- })(ze(() => k && !N || !y)(h));
1534
+ })(Ue(() => k && !N || !y)(h));
1554
1535
  if (y == null && k) {
1555
1536
  var S = new Promise((w) => {
1556
1537
  N = w;
@@ -1562,16 +1543,16 @@ function Yr(e) {
1562
1543
  return y || {
1563
1544
  fetching: !0
1564
1545
  };
1565
- }, [t, a]), s = [r, a, e.requestPolicy, e.context, e.pause], [c, l] = P.useState(() => [i, he(Br, o(i, n)), s]), d = c[1];
1566
- i !== c[0] && Jr(c[2], s) && l([i, d = he(c[1], o(i, n)), s]), P.useEffect(() => {
1546
+ }, [t, a]), s = [r, a, e.requestPolicy, e.context, e.pause], [c, l] = F.useState(() => [i, de(Br, o(i, n)), s]), p = c[1];
1547
+ i !== c[0] && Jr(c[2], s) && l([i, p = de(c[1], o(i, n)), s]), F.useEffect(() => {
1567
1548
  var h = c[0], k = c[2][1], y = !1, N = (S) => {
1568
- y = !0, Be(l, (w) => {
1569
- var D = he(w[1], S);
1549
+ y = !0, Qe(l, (w) => {
1550
+ var D = de(w[1], S);
1570
1551
  return w[1] !== D ? [w[0], D, w[2]] : w;
1571
1552
  });
1572
1553
  };
1573
1554
  if (h) {
1574
- var O = j(N)(Oe(() => {
1555
+ var O = M(N)(be(() => {
1575
1556
  N({
1576
1557
  fetching: !1
1577
1558
  });
@@ -1586,26 +1567,25 @@ function Yr(e) {
1586
1567
  fetching: !1
1587
1568
  });
1588
1569
  }, [t, c[0], c[2][1]]);
1589
- var f = P.useCallback((h) => {
1570
+ var f = F.useCallback((h) => {
1590
1571
  var k = {
1591
1572
  requestPolicy: e.requestPolicy,
1592
1573
  ...e.context,
1593
1574
  ...h
1594
1575
  };
1595
- Be(l, (y) => [n ? G((N) => {
1576
+ Qe(l, (y) => [n ? G((N) => {
1596
1577
  t.set(a.key, N);
1597
1578
  })(r.executeQuery(a, k)) : r.executeQuery(a, k), y[1], s]);
1598
1579
  }, [r, t, a, n, e.requestPolicy, e.context, e.pause]);
1599
- return [d, f];
1580
+ return [p, f];
1600
1581
  }
1601
- const Zr = Yr, Kr = jr, Xr = Fr, et = Pr, rt = Mr, tt = Lr;
1582
+ const Hr = Wr, Zr = jr, Kr = Pr, Xr = Fr, et = $r, rt = Mr;
1602
1583
  export {
1603
- tt as C,
1604
- Kr as P,
1605
- Zr as a,
1606
- Xr as c,
1607
- et as f,
1608
- Hr as g,
1609
- rt as m,
1610
- Yr as u
1584
+ rt as C,
1585
+ Zr as P,
1586
+ Hr as a,
1587
+ Kr as c,
1588
+ Xr as f,
1589
+ et as m,
1590
+ Wr as u
1611
1591
  };