zudoku 0.12.2 → 0.13.1

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 (197) hide show
  1. package/dist/app/main.js +3 -3
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/cli/dev/handler.js +2 -2
  4. package/dist/cli/dev/handler.js.map +1 -1
  5. package/dist/config/validators/validate.d.ts +42 -23
  6. package/dist/config/validators/validate.js +6 -2
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/lib/components/Banner.js +7 -1
  10. package/dist/lib/components/Banner.js.map +1 -1
  11. package/dist/lib/components/Header.js +1 -1
  12. package/dist/lib/components/Header.js.map +1 -1
  13. package/dist/lib/components/Layout.js +1 -1
  14. package/dist/lib/components/Layout.js.map +1 -1
  15. package/dist/lib/components/MobileTopNavigation.js +2 -1
  16. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  17. package/dist/lib/components/Search.js +1 -1
  18. package/dist/lib/components/Search.js.map +1 -1
  19. package/dist/lib/components/SlotletProvider.d.ts +9 -2
  20. package/dist/lib/components/SlotletProvider.js +4 -2
  21. package/dist/lib/components/SlotletProvider.js.map +1 -1
  22. package/dist/lib/components/index.d.ts +2 -1
  23. package/dist/lib/components/index.js.map +1 -1
  24. package/dist/lib/core/DevPortalContext.d.ts +1 -1
  25. package/dist/lib/oas/graphql/index.js +2 -6
  26. package/dist/lib/oas/graphql/index.js.map +1 -1
  27. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  28. package/dist/lib/plugins/custom-pages/CustomPage.js +10 -0
  29. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  30. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  31. package/dist/lib/plugins/custom-pages/index.js +11 -0
  32. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  33. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  34. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  35. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  36. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  38. package/dist/lib/plugins/openapi/Route.js +1 -1
  39. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  40. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  41. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  42. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  43. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  44. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  45. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  46. package/dist/lib/plugins/openapi/index.js +1 -1
  47. package/dist/lib/plugins/openapi/index.js.map +1 -1
  48. package/dist/lib/ui/Callout.d.ts +36 -35
  49. package/dist/lib/ui/Callout.js.map +1 -1
  50. package/dist/lib/ui/Drawer.d.ts +8 -10
  51. package/dist/lib/ui/Drawer.js.map +1 -1
  52. package/dist/lib/util/useExposedProps.d.ts +2 -0
  53. package/dist/lib/util/useExposedProps.js +8 -0
  54. package/dist/lib/util/useExposedProps.js.map +1 -0
  55. package/dist/vite/config.js +2 -0
  56. package/dist/vite/config.js.map +1 -1
  57. package/dist/vite/dev-server.d.ts +6 -1
  58. package/dist/vite/dev-server.js +13 -3
  59. package/dist/vite/dev-server.js.map +1 -1
  60. package/dist/vite/plugin-component.js +0 -1
  61. package/dist/vite/plugin-component.js.map +1 -1
  62. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  63. package/dist/vite/plugin-custom-pages.js +30 -0
  64. package/dist/vite/plugin-custom-pages.js.map +1 -0
  65. package/dist/vite/plugin.js +2 -0
  66. package/dist/vite/plugin.js.map +1 -1
  67. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
  68. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
  69. package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-CiXPc9Xm.js} +2 -2
  70. package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-CiXPc9Xm.js.map} +1 -1
  71. package/lib/ErrorPage-B-zoPPVx.js +15 -0
  72. package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B-zoPPVx.js.map} +1 -1
  73. package/lib/Input-QMLhK7Rb.js +2229 -0
  74. package/lib/Input-QMLhK7Rb.js.map +1 -0
  75. package/lib/{Markdown-DapSf3wG.js → Markdown-D6Nze6qq.js} +3281 -5392
  76. package/lib/Markdown-D6Nze6qq.js.map +1 -0
  77. package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-DBhq6-5F.js} +15 -15
  78. package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-DBhq6-5F.js.map} +1 -1
  79. package/lib/{OperationList-CYrmxPa8.js → OperationList-Ba24gUd2.js} +50 -51
  80. package/lib/OperationList-Ba24gUd2.js.map +1 -0
  81. package/lib/{Route-Q5mqNQrv.js → Route-DI38nxYt.js} +3 -4
  82. package/lib/Route-DI38nxYt.js.map +1 -0
  83. package/lib/SidebarBadge-B9-VJSQr.js +503 -0
  84. package/lib/SidebarBadge-B9-VJSQr.js.map +1 -0
  85. package/lib/{SlotletProvider-D3UD5Go3.js → SlotletProvider-Cb8mGpBO.js} +46 -46
  86. package/lib/{SlotletProvider-D3UD5Go3.js.map → SlotletProvider-Cb8mGpBO.js.map} +1 -1
  87. package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
  88. package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
  89. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  90. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  91. package/lib/assets/{worker-Bcj4NA2p.js → worker-Bf8vjASY.js} +4582 -4303
  92. package/lib/assets/worker-Bf8vjASY.js.map +1 -0
  93. package/lib/cn-BmFQLtkS.js +2279 -0
  94. package/lib/cn-BmFQLtkS.js.map +1 -0
  95. package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
  96. package/lib/index-BRCiYFaL.js.map +1 -0
  97. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  98. package/lib/index-CkwDvuPt.js.map +1 -0
  99. package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
  100. package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
  101. package/lib/{index-BlJ2rj99.js → index-DA74gNq3.js} +1124 -974
  102. package/lib/index-DA74gNq3.js.map +1 -0
  103. package/lib/index-DJqnphbT.js +35 -0
  104. package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
  105. package/lib/{index-BngPzhKn.js → index-dgcPryXi.js} +3 -3
  106. package/lib/{index-BngPzhKn.js.map → index-dgcPryXi.js.map} +1 -1
  107. package/lib/{index-Dolisrci.js → index-g_JJcuFg.js} +603 -549
  108. package/lib/index-g_JJcuFg.js.map +1 -0
  109. package/lib/router-Oe6YmY6B.js +3024 -0
  110. package/lib/router-Oe6YmY6B.js.map +1 -0
  111. package/lib/state-CsuHT8ZO.js +183 -0
  112. package/lib/state-CsuHT8ZO.js.map +1 -0
  113. package/lib/urql-core-KJnLL26g.js +1455 -0
  114. package/lib/urql-core-KJnLL26g.js.map +1 -0
  115. package/lib/useExposedProps-Csw8oAlt.js +9 -0
  116. package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
  117. package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
  118. package/lib/utils-Chi3p5nE.js.map +1 -0
  119. package/lib/zudoku.auth-auth0.js +1 -1
  120. package/lib/zudoku.auth-clerk.js +2 -2
  121. package/lib/zudoku.auth-openid.js +363 -350
  122. package/lib/zudoku.auth-openid.js.map +1 -1
  123. package/lib/zudoku.components.js +1697 -1623
  124. package/lib/zudoku.components.js.map +1 -1
  125. package/lib/zudoku.openapi-worker.js +4599 -4319
  126. package/lib/zudoku.openapi-worker.js.map +1 -1
  127. package/lib/zudoku.plugin-api-keys.js +7 -7
  128. package/lib/zudoku.plugin-custom-pages.js +21 -0
  129. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  130. package/lib/zudoku.plugin-markdown.js +1 -1
  131. package/lib/zudoku.plugin-openapi.js +8 -8
  132. package/lib/zudoku.plugin-redirect.js +1 -1
  133. package/package.json +61 -68
  134. package/src/app/main.tsx +3 -3
  135. package/src/lib/components/Banner.tsx +12 -2
  136. package/src/lib/components/Header.tsx +4 -2
  137. package/src/lib/components/Layout.tsx +1 -0
  138. package/src/lib/components/MobileTopNavigation.tsx +4 -0
  139. package/src/lib/components/Search.tsx +1 -1
  140. package/src/lib/components/SlotletProvider.tsx +27 -4
  141. package/src/lib/components/index.ts +1 -1
  142. package/src/lib/core/DevPortalContext.ts +1 -1
  143. package/src/lib/oas/graphql/index.ts +3 -11
  144. package/src/lib/plugins/custom-pages/CustomPage.tsx +15 -0
  145. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  146. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  147. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  148. package/src/lib/plugins/openapi/Route.tsx +1 -2
  149. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  150. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  151. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  152. package/src/lib/plugins/openapi/index.tsx +1 -5
  153. package/src/lib/ui/Callout.tsx +7 -6
  154. package/src/lib/ui/Drawer.tsx +38 -36
  155. package/src/lib/util/useExposedProps.tsx +10 -0
  156. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  157. package/dist/lib/plugins/custom-page/index.js +0 -12
  158. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  159. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  160. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  161. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  162. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  163. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  164. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  165. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  166. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  167. package/lib/ErrorPage-CsZAN_za.js +0 -16
  168. package/lib/Input-CtVUl3eT.js +0 -2198
  169. package/lib/Input-CtVUl3eT.js.map +0 -1
  170. package/lib/Markdown-DapSf3wG.js.map +0 -1
  171. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  172. package/lib/Route-Q5mqNQrv.js.map +0 -1
  173. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  174. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  175. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  176. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  177. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  178. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  179. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  180. package/lib/assets/worker-Bcj4NA2p.js.map +0 -1
  181. package/lib/index-BG0g4WW0.js.map +0 -1
  182. package/lib/index-BlJ2rj99.js.map +0 -1
  183. package/lib/index-Bn6Lc9tq.js +0 -9
  184. package/lib/index-CLd8ycZz.js.map +0 -1
  185. package/lib/index-Dolisrci.js.map +0 -1
  186. package/lib/router-D2p7Olpn.js +0 -2971
  187. package/lib/router-D2p7Olpn.js.map +0 -1
  188. package/lib/state-hNe1dw4B.js +0 -548
  189. package/lib/state-hNe1dw4B.js.map +0 -1
  190. package/lib/urql-YhcsXYy8.js +0 -1591
  191. package/lib/urql-YhcsXYy8.js.map +0 -1
  192. package/lib/utils-ByIc_KIM.js.map +0 -1
  193. package/lib/zudoku.plugin-custom-page.js +0 -13
  194. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  195. package/src/lib/plugins/custom-page/index.tsx +0 -22
  196. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  197. package/src/lib/plugins/openapi/util/urql.ts +0 -8
@@ -1,22 +1,161 @@
1
1
  import { j as p } from "./jsx-runtime-B6kdoens.js";
2
- import { u as sa, C as la, c as ca, f as ua } from "./urql-YhcsXYy8.js";
3
- import { z as da, A as pa } from "./ZudokuContext-cr-pTRY1.js";
4
- import { XIcon as rr, EraserIcon as ar, ChevronsUpDownIcon as fa, LogInIcon as ma, CirclePlayIcon as ha } from "lucide-react";
5
- import { createClient as ya } from "zudoku/openapi-worker";
6
- import { c as va, g as ga, u as ba, a as xa, P as ft, b as yt, B as je, S as ka, V as $a, m as Sa } from "./index-Dolisrci.js";
7
- import { E as wa } from "./ErrorPage-CsZAN_za.js";
8
- import { a as q, b as ja, S as De, C as Na } from "./Markdown-DapSf3wG.js";
9
- import { j as Ta } from "./joinPath-B7kNnUX4.js";
10
- import * as V from "react";
11
- import { useRef as ir, useEffect as or, useState as sr, useTransition as lr, Fragment as Ze, createContext as Oa, useContext as Ca, useMemo as Pa } from "react";
12
- import { O as cr, C as ur, b as Ea, d as dr, D as pr, a as Ra, e as Aa, T as qa, c as fr, R as Fa, I as Ia, P as _a, f as me } from "./SidebarBadge-Dx7jtnoA.js";
13
- import { g as Dt, I as it, C as $e, h as La, u as Ua, a as Ha, S as fn, b as mn, c as hn, d as yn, f as vt, F as Ma } from "./Input-CtVUl3eT.js";
14
- import { a as mr } from "./state-hNe1dw4B.js";
15
- import { S as vn } from "./Spinner-3cQDBVGr.js";
16
- import { g as Ba, c as He, a as Va } from "./_commonjsHelpers-BkfeUUK-.js";
17
- import { u as za, d as Ja } from "./index-BG0g4WW0.js";
18
- import { c as Wa } from "./router-D2p7Olpn.js";
19
- const Da = {
2
+ import { z as ma, A as ha } from "./ZudokuContext-BEmsYQoq.js";
3
+ import { XIcon as cr, EraserIcon as ur, ChevronsUpDownIcon as ya, LogInIcon as va, CirclePlayIcon as ga } from "lucide-react";
4
+ import { createClient as ba } from "zudoku/openapi-worker";
5
+ import { c as xa, h as ka, u as $a, a as Sa, P as ft, b as vt, B as je, S as wa, V as ja, n as Na } from "./index-g_JJcuFg.js";
6
+ import { E as Ta } from "./ErrorPage-B-zoPPVx.js";
7
+ import { b as Oa, S as We, a as Ca } from "./Markdown-D6Nze6qq.js";
8
+ import { j as Pa } from "./joinPath-B7kNnUX4.js";
9
+ import * as P from "react";
10
+ import { useRef as dr, useEffect as pr, useState as fr, useTransition as mr, Fragment as Ze, createContext as Ea, useContext as Ra, useMemo as Aa } from "react";
11
+ import { O as hr, C as yr, a as qa, b as vr, D as gr, e as Fa, d as Ia, T as _a, c as br, R as La, I as Ua, P as Ma, f as me } from "./SidebarBadge-B9-VJSQr.js";
12
+ import { c as F } from "./cn-BmFQLtkS.js";
13
+ import { g as Yt, I as it, C as $e, h as Ha, u as Ba, a as Va, S as vn, b as gn, c as bn, d as xn, f as gt, F as za } from "./Input-QMLhK7Rb.js";
14
+ import { a as xr } from "./state-CsuHT8ZO.js";
15
+ import { S as kn } from "./Spinner-3cQDBVGr.js";
16
+ import { g as Da, c as Me, a as Ja } from "./index-DJqnphbT.js";
17
+ import { b as Wa, d as Ga } from "./index-BRCiYFaL.js";
18
+ import { o as $n, s as _t, t as Qa, a as Ka, c as Ya, C as Xa, b as Za, f as ei } from "./urql-core-KJnLL26g.js";
19
+ import { c as ti } from "./router-Oe6YmY6B.js";
20
+ var kr = {}, mt = P.createContext(kr), cu = mt.Provider;
21
+ mt.Consumer;
22
+ mt.displayName = "UrqlContext";
23
+ var ni = () => {
24
+ var e = P.useContext(mt);
25
+ if (e === kr && process.env.NODE_ENV !== "production") {
26
+ var t = "No client has been specified using urql's Provider. please create a client and add a Provider.";
27
+ throw console.error(t), new Error(t);
28
+ }
29
+ return e;
30
+ }, ri = {
31
+ fetching: !1,
32
+ stale: !1,
33
+ error: void 0,
34
+ data: void 0,
35
+ extensions: void 0,
36
+ operation: void 0
37
+ }, ai = (e, t) => e === t || !(!e || !t || e.key !== t.key), bt = (e, t) => {
38
+ var n = {
39
+ ...e,
40
+ ...t,
41
+ data: t.data !== void 0 || t.error ? t.data : e.data,
42
+ fetching: !!t.fetching,
43
+ stale: !!t.stale
44
+ };
45
+ return ((a, s) => {
46
+ for (var i in a)
47
+ if (!(i in s))
48
+ return !0;
49
+ for (var r in s)
50
+ if (r === "operation" ? !ai(a[r], s[r]) : a[r] !== s[r])
51
+ return !0;
52
+ return !1;
53
+ })(e, n) ? n : e;
54
+ }, ii = (e, t) => {
55
+ for (var n = 0, a = t.length; n < a; n++)
56
+ if (e[n] !== t[n])
57
+ return !0;
58
+ return !1;
59
+ }, xt = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
+ function Sn(e, t) {
61
+ process.env.NODE_ENV !== "production" && xt && xt.ReactCurrentOwner && xt.ReactCurrentOwner.current ? Promise.resolve(t).then(e) : e(t);
62
+ }
63
+ function oi(e, t) {
64
+ var n = P.useRef(void 0);
65
+ return P.useMemo(() => {
66
+ var a = Ya(e, t);
67
+ return n.current !== void 0 && n.current.key === a.key ? n.current : (n.current = a, a);
68
+ }, [e, t]);
69
+ }
70
+ var si = (e) => {
71
+ if (!e._react) {
72
+ var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
73
+ e.operations$ && _t((a) => {
74
+ a.kind === "teardown" && t.has(a.key) && (t.delete(a.key), n.delete(a.key));
75
+ })(e.operations$), e._react = {
76
+ get: (a) => n.get(a),
77
+ set(a, s) {
78
+ t.delete(a), n.set(a, s);
79
+ },
80
+ dispose(a) {
81
+ t.add(a);
82
+ }
83
+ };
84
+ }
85
+ return e._react;
86
+ }, li = (e, t) => t && t.suspense !== void 0 ? !!t.suspense : e.suspense;
87
+ function ci(e) {
88
+ var t = ni(), n = si(t), a = li(t, e.context), s = oi(e.query, e.variables), i = P.useMemo(() => {
89
+ if (e.pause)
90
+ return null;
91
+ var d = t.executeQuery(s, {
92
+ requestPolicy: e.requestPolicy,
93
+ ...e.context
94
+ });
95
+ return a ? $n((m) => {
96
+ n.set(s.key, m);
97
+ })(d) : d;
98
+ }, [n, t, s, a, e.pause, e.requestPolicy, e.context]), r = P.useCallback((d, m) => {
99
+ if (!d)
100
+ return {
101
+ fetching: !1
102
+ };
103
+ var h = n.get(s.key);
104
+ if (h) {
105
+ if (m && h != null && "then" in h)
106
+ throw h;
107
+ } else {
108
+ var v, g = _t((y) => {
109
+ h = y, v && v(h);
110
+ })(Qa(() => m && !v || !h)(d));
111
+ if (h == null && m) {
112
+ var b = new Promise((y) => {
113
+ v = y;
114
+ });
115
+ throw n.set(s.key, b), b;
116
+ } else
117
+ g.unsubscribe();
118
+ }
119
+ return h || {
120
+ fetching: !0
121
+ };
122
+ }, [n, s]), o = [t, s, e.requestPolicy, e.context, e.pause], [l, c] = P.useState(() => [i, bt(ri, r(i, a)), o]), u = l[1];
123
+ i !== l[0] && ii(l[2], o) && c([i, u = bt(l[1], r(i, a)), o]), P.useEffect(() => {
124
+ var d = l[0], m = l[2][1], h = !1, v = (b) => {
125
+ h = !0, Sn(c, (y) => {
126
+ var x = bt(y[1], b);
127
+ return y[1] !== x ? [y[0], x, y[2]] : y;
128
+ });
129
+ };
130
+ if (d) {
131
+ var g = _t(v)(Ka(() => {
132
+ v({
133
+ fetching: !1
134
+ });
135
+ })(d));
136
+ return h || v({
137
+ fetching: !0
138
+ }), () => {
139
+ n.dispose(m.key), g.unsubscribe();
140
+ };
141
+ } else
142
+ v({
143
+ fetching: !1
144
+ });
145
+ }, [n, l[0], l[2][1]]);
146
+ var f = P.useCallback((d) => {
147
+ var m = {
148
+ requestPolicy: e.requestPolicy,
149
+ ...e.context,
150
+ ...d
151
+ };
152
+ Sn(c, (h) => [a ? $n((v) => {
153
+ n.set(s.key, v);
154
+ })(t.executeQuery(s, m)) : t.executeQuery(s, m), h[1], o]);
155
+ }, [t, n, s, a, e.requestPolicy, e.context, e.pause]);
156
+ return [u, f];
157
+ }
158
+ const ui = {
20
159
  kind: "Document",
21
160
  definitions: [
22
161
  {
@@ -161,7 +300,7 @@ const Da = {
161
300
  }
162
301
  }
163
302
  ]
164
- }, Ga = {
303
+ }, di = {
165
304
  kind: "Document",
166
305
  definitions: [
167
306
  {
@@ -237,7 +376,7 @@ const Da = {
237
376
  }
238
377
  }
239
378
  ]
240
- }, Qa = {
379
+ }, pi = {
241
380
  kind: "Document",
242
381
  definitions: [
243
382
  {
@@ -481,7 +620,7 @@ const Da = {
481
620
  }
482
621
  }
483
622
  ]
484
- }, Ka = {
623
+ }, fi = {
485
624
  kind: "Document",
486
625
  definitions: [
487
626
  {
@@ -557,7 +696,7 @@ const Da = {
557
696
  }
558
697
  }
559
698
  ]
560
- }, Ya = {
699
+ }, mi = {
561
700
  kind: "Document",
562
701
  definitions: [
563
702
  {
@@ -673,76 +812,76 @@ const Da = {
673
812
  }
674
813
  }
675
814
  ]
676
- }, Xa = {
677
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ga,
678
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Da,
679
- "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": Qa,
680
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ka,
681
- "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": Ya
815
+ }, hi = {
816
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": di,
817
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ui,
818
+ "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": pi,
819
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": fi,
820
+ "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": mi
682
821
  };
683
- function hr(e) {
684
- return Xa[e] ?? {};
822
+ function $r(e) {
823
+ return hi[e] ?? {};
685
824
  }
686
- const Za = Aa, ei = qa, ti = Ra, yr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
687
- cr,
825
+ const yi = Ia, vi = _a, gi = Fa, Sr = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
826
+ hr,
688
827
  {
689
828
  ref: n,
690
- className: q(
829
+ className: F(
691
830
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
692
831
  e
693
832
  ),
694
833
  ...t
695
834
  }
696
835
  ));
697
- yr.displayName = cr.displayName;
698
- const vr = V.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p.jsxs(ti, { children: [
699
- /* @__PURE__ */ p.jsx(yr, {}),
836
+ Sr.displayName = hr.displayName;
837
+ const wr = P.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p.jsxs(gi, { children: [
838
+ /* @__PURE__ */ p.jsx(Sr, {}),
700
839
  /* @__PURE__ */ p.jsxs(
701
- ur,
840
+ yr,
702
841
  {
703
842
  ref: a,
704
- className: q(
843
+ className: F(
705
844
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg border-border",
706
845
  e
707
846
  ),
708
847
  ...n,
709
848
  children: [
710
849
  t,
711
- /* @__PURE__ */ p.jsxs(Ea, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
712
- /* @__PURE__ */ p.jsx(rr, { className: "h-4 w-4" }),
850
+ /* @__PURE__ */ p.jsxs(qa, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
851
+ /* @__PURE__ */ p.jsx(cr, { className: "h-4 w-4" }),
713
852
  /* @__PURE__ */ p.jsx("span", { className: "sr-only", children: "Close" })
714
853
  ] })
715
854
  ]
716
855
  }
717
856
  )
718
857
  ] }));
719
- vr.displayName = ur.displayName;
720
- const gr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
721
- dr,
858
+ wr.displayName = yr.displayName;
859
+ const jr = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
860
+ vr,
722
861
  {
723
862
  ref: n,
724
- className: q(
863
+ className: F(
725
864
  "text-lg font-semibold leading-none tracking-tight",
726
865
  e
727
866
  ),
728
867
  ...t
729
868
  }
730
869
  ));
731
- gr.displayName = dr.displayName;
732
- const ni = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
733
- pr,
870
+ jr.displayName = vr.displayName;
871
+ const bi = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
872
+ gr,
734
873
  {
735
874
  ref: n,
736
- className: q("text-sm text-muted-foreground", e),
875
+ className: F("text-sm text-muted-foreground", e),
737
876
  ...t
738
877
  }
739
878
  ));
740
- ni.displayName = pr.displayName;
741
- const ot = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
879
+ bi.displayName = gr.displayName;
880
+ const ot = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
742
881
  "div",
743
882
  {
744
883
  ref: n,
745
- className: q(
884
+ className: F(
746
885
  "rounded-xl border bg-card text-card-foreground shadow",
747
886
  e
748
887
  ),
@@ -750,47 +889,47 @@ const ot = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
750
889
  }
751
890
  ));
752
891
  ot.displayName = "Card";
753
- const br = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
892
+ const Nr = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
754
893
  "div",
755
894
  {
756
895
  ref: n,
757
- className: q("flex flex-col space-y-1.5 p-6", e),
896
+ className: F("flex flex-col space-y-1.5 p-6", e),
758
897
  ...t
759
898
  }
760
899
  ));
761
- br.displayName = "CardHeader";
762
- const xr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
900
+ Nr.displayName = "CardHeader";
901
+ const Tr = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
763
902
  "h3",
764
903
  {
765
904
  ref: n,
766
- className: q("font-semibold leading-none tracking-tight", e),
905
+ className: F("font-semibold leading-none tracking-tight", e),
767
906
  ...t
768
907
  }
769
908
  ));
770
- xr.displayName = "CardTitle";
771
- const ri = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
909
+ Tr.displayName = "CardTitle";
910
+ const xi = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
772
911
  "p",
773
912
  {
774
913
  ref: n,
775
- className: q("text-sm text-muted-foreground", e),
914
+ className: F("text-sm text-muted-foreground", e),
776
915
  ...t
777
916
  }
778
917
  ));
779
- ri.displayName = "CardDescription";
780
- const kr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx("div", { ref: n, className: q("p-6 pt-0", e), ...t }));
781
- kr.displayName = "CardContent";
782
- const ai = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
918
+ xi.displayName = "CardDescription";
919
+ const Or = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx("div", { ref: n, className: F("p-6 pt-0", e), ...t }));
920
+ Or.displayName = "CardContent";
921
+ const ki = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
783
922
  "div",
784
923
  {
785
924
  ref: n,
786
- className: q("flex items-center p-6 pt-0", e),
925
+ className: F("flex items-center p-6 pt-0", e),
787
926
  ...t
788
927
  }
789
928
  ));
790
- ai.displayName = "CardFooter";
791
- var Gt = "Tabs", [ii, Jc] = va(Gt, [
792
- fr
793
- ]), $r = fr(), [oi, Qt] = ii(Gt), Sr = V.forwardRef(
929
+ ki.displayName = "CardFooter";
930
+ var Xt = "Tabs", [$i, uu] = xa(Xt, [
931
+ br
932
+ ]), Cr = br(), [Si, Zt] = $i(Xt), Pr = P.forwardRef(
794
933
  (e, t) => {
795
934
  const {
796
935
  __scopeTabs: n,
@@ -801,16 +940,16 @@ var Gt = "Tabs", [ii, Jc] = va(Gt, [
801
940
  dir: o,
802
941
  activationMode: l = "automatic",
803
942
  ...c
804
- } = e, u = ga(o), [f, d] = ba({
943
+ } = e, u = ka(o), [f, d] = $a({
805
944
  prop: a,
806
945
  onChange: s,
807
946
  defaultProp: i
808
947
  });
809
948
  return /* @__PURE__ */ p.jsx(
810
- oi,
949
+ Si,
811
950
  {
812
951
  scope: n,
813
- baseId: xa(),
952
+ baseId: Sa(),
814
953
  value: f,
815
954
  onValueChange: d,
816
955
  orientation: r,
@@ -829,12 +968,12 @@ var Gt = "Tabs", [ii, Jc] = va(Gt, [
829
968
  );
830
969
  }
831
970
  );
832
- Sr.displayName = Gt;
833
- var wr = "TabsList", jr = V.forwardRef(
971
+ Pr.displayName = Xt;
972
+ var Er = "TabsList", Rr = P.forwardRef(
834
973
  (e, t) => {
835
- const { __scopeTabs: n, loop: a = !0, ...s } = e, i = Qt(wr, n), r = $r(n);
974
+ const { __scopeTabs: n, loop: a = !0, ...s } = e, i = Zt(Er, n), r = Cr(n);
836
975
  return /* @__PURE__ */ p.jsx(
837
- Fa,
976
+ La,
838
977
  {
839
978
  asChild: !0,
840
979
  ...r,
@@ -854,12 +993,12 @@ var wr = "TabsList", jr = V.forwardRef(
854
993
  );
855
994
  }
856
995
  );
857
- jr.displayName = wr;
858
- var Nr = "TabsTrigger", Tr = V.forwardRef(
996
+ Rr.displayName = Er;
997
+ var Ar = "TabsTrigger", qr = P.forwardRef(
859
998
  (e, t) => {
860
- const { __scopeTabs: n, value: a, disabled: s = !1, ...i } = e, r = Qt(Nr, n), o = $r(n), l = Pr(r.baseId, a), c = Er(r.baseId, a), u = a === r.value;
999
+ const { __scopeTabs: n, value: a, disabled: s = !1, ...i } = e, r = Zt(Ar, n), o = Cr(n), l = _r(r.baseId, a), c = Lr(r.baseId, a), u = a === r.value;
861
1000
  return /* @__PURE__ */ p.jsx(
862
- Ia,
1001
+ Ua,
863
1002
  {
864
1003
  asChild: !0,
865
1004
  ...o,
@@ -878,13 +1017,13 @@ var Nr = "TabsTrigger", Tr = V.forwardRef(
878
1017
  id: l,
879
1018
  ...i,
880
1019
  ref: t,
881
- onMouseDown: yt(e.onMouseDown, (f) => {
1020
+ onMouseDown: vt(e.onMouseDown, (f) => {
882
1021
  !s && f.button === 0 && f.ctrlKey === !1 ? r.onValueChange(a) : f.preventDefault();
883
1022
  }),
884
- onKeyDown: yt(e.onKeyDown, (f) => {
1023
+ onKeyDown: vt(e.onKeyDown, (f) => {
885
1024
  [" ", "Enter"].includes(f.key) && r.onValueChange(a);
886
1025
  }),
887
- onFocus: yt(e.onFocus, () => {
1026
+ onFocus: vt(e.onFocus, () => {
888
1027
  const f = r.activationMode !== "manual";
889
1028
  !u && !s && f && r.onValueChange(a);
890
1029
  })
@@ -894,14 +1033,14 @@ var Nr = "TabsTrigger", Tr = V.forwardRef(
894
1033
  );
895
1034
  }
896
1035
  );
897
- Tr.displayName = Nr;
898
- var Or = "TabsContent", Cr = V.forwardRef(
1036
+ qr.displayName = Ar;
1037
+ var Fr = "TabsContent", Ir = P.forwardRef(
899
1038
  (e, t) => {
900
- const { __scopeTabs: n, value: a, forceMount: s, children: i, ...r } = e, o = Qt(Or, n), l = Pr(o.baseId, a), c = Er(o.baseId, a), u = a === o.value, f = V.useRef(u);
901
- return V.useEffect(() => {
1039
+ const { __scopeTabs: n, value: a, forceMount: s, children: i, ...r } = e, o = Zt(Fr, n), l = _r(o.baseId, a), c = Lr(o.baseId, a), u = a === o.value, f = P.useRef(u);
1040
+ return P.useEffect(() => {
902
1041
  const d = requestAnimationFrame(() => f.current = !1);
903
1042
  return () => cancelAnimationFrame(d);
904
- }, []), /* @__PURE__ */ p.jsx(_a, { present: s || u, children: ({ present: d }) => /* @__PURE__ */ p.jsx(
1043
+ }, []), /* @__PURE__ */ p.jsx(Ma, { present: s || u, children: ({ present: d }) => /* @__PURE__ */ p.jsx(
905
1044
  ft.div,
906
1045
  {
907
1046
  "data-state": u ? "active" : "inactive",
@@ -922,62 +1061,62 @@ var Or = "TabsContent", Cr = V.forwardRef(
922
1061
  ) });
923
1062
  }
924
1063
  );
925
- Cr.displayName = Or;
926
- function Pr(e, t) {
1064
+ Ir.displayName = Fr;
1065
+ function _r(e, t) {
927
1066
  return `${e}-trigger-${t}`;
928
1067
  }
929
- function Er(e, t) {
1068
+ function Lr(e, t) {
930
1069
  return `${e}-content-${t}`;
931
1070
  }
932
- var Rr = Sr, Kt = jr, Yt = Tr, Xt = Cr;
933
- const gn = Rr, qt = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
934
- Kt,
1071
+ var Ur = Pr, en = Rr, tn = qr, nn = Ir;
1072
+ const wn = Ur, Lt = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
1073
+ en,
935
1074
  {
936
1075
  ref: n,
937
- className: q(
1076
+ className: F(
938
1077
  "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
939
1078
  e
940
1079
  ),
941
1080
  ...t
942
1081
  }
943
1082
  ));
944
- qt.displayName = Kt.displayName;
945
- const Oe = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
946
- Yt,
1083
+ Lt.displayName = en.displayName;
1084
+ const Oe = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
1085
+ tn,
947
1086
  {
948
1087
  ref: n,
949
- className: q(
1088
+ className: F(
950
1089
  "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
951
1090
  e
952
1091
  ),
953
1092
  ...t
954
1093
  }
955
1094
  ));
956
- Oe.displayName = Yt.displayName;
957
- const Ce = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
958
- Xt,
1095
+ Oe.displayName = tn.displayName;
1096
+ const Ce = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
1097
+ nn,
959
1098
  {
960
1099
  ref: n,
961
- className: q(
1100
+ className: F(
962
1101
  "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
963
1102
  e
964
1103
  ),
965
1104
  ...t
966
1105
  }
967
1106
  ));
968
- Ce.displayName = Xt.displayName;
969
- const gt = (e) => Math.abs(
1107
+ Ce.displayName = nn.displayName;
1108
+ const kt = (e) => Math.abs(
970
1109
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
971
- ), bt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${gt(t) + gt(n)}`)) : gt(e), si = (e, t = {}) => {
972
- const n = (3 * bt(e) + 2 * bt(e) + bt(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
1110
+ ), $t = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${kt(t) + kt(n)}`)) : kt(e), wi = (e, t = {}) => {
1111
+ const n = (3 * $t(e) + 2 * $t(e) + $t(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
973
1112
  return `${n}deg ${a}% ${s}%`;
974
- }, xt = "data-linked-param", li = (e) => {
975
- const [t] = ja();
976
- return si(
1113
+ }, St = "data-linked-param", ji = (e) => {
1114
+ const [t] = Oa();
1115
+ return wi(
977
1116
  e,
978
1117
  t ? void 0 : { saturation: 85, lightness: 50 }
979
1118
  );
980
- }, Zt = ({
1119
+ }, rn = ({
981
1120
  name: e,
982
1121
  className: t,
983
1122
  backgroundOpacity: n = "100%",
@@ -986,15 +1125,15 @@ const gt = (e) => Math.abs(
986
1125
  children: i,
987
1126
  onClick: r
988
1127
  }) => {
989
- const o = ir(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = li(l), f = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
990
- return or(() => {
1128
+ const o = dr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = ji(l), f = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
1129
+ return pr(() => {
991
1130
  if (!c || !o.current) return;
992
1131
  const m = () => {
993
- document.querySelectorAll(`[${xt}="${c}"]`).forEach((v) => {
1132
+ document.querySelectorAll(`[${St}="${c}"]`).forEach((v) => {
994
1133
  v instanceof HTMLElement && (v.dataset.active = "true");
995
1134
  });
996
1135
  }, h = () => {
997
- document.querySelectorAll(`[${xt}="${c}"]`).forEach((v) => {
1136
+ document.querySelectorAll(`[${St}="${c}"]`).forEach((v) => {
998
1137
  v instanceof HTMLElement && (v.dataset.active = "false");
999
1138
  });
1000
1139
  };
@@ -1005,8 +1144,8 @@ const gt = (e) => Math.abs(
1005
1144
  }, [c]), /* @__PURE__ */ p.jsxs(
1006
1145
  "span",
1007
1146
  {
1008
- className: q("inline-flex relative rounded group", t),
1009
- [xt]: c,
1147
+ className: F("inline-flex relative rounded group", t),
1148
+ [St]: c,
1010
1149
  ref: o,
1011
1150
  onClick: r,
1012
1151
  children: [
@@ -1021,7 +1160,7 @@ const gt = (e) => Math.abs(
1021
1160
  ]
1022
1161
  }
1023
1162
  );
1024
- }, ci = (e, t, n) => {
1163
+ }, Ni = (e, t, n) => {
1025
1164
  const a = t.replace(/(:\w+|\{\w+})/g, (i) => {
1026
1165
  var l;
1027
1166
  const r = i.replace(/[:{}]/g, "");
@@ -1033,11 +1172,11 @@ const gt = (e) => Math.abs(
1033
1172
  return n.queryParams.filter((i) => i.active).forEach((i) => {
1034
1173
  s.searchParams.set(i.name, i.value);
1035
1174
  }), s;
1036
- }, ui = ({
1175
+ }, Ti = ({
1037
1176
  control: e,
1038
1177
  register: t
1039
1178
  }) => {
1040
- const { fields: n, append: a, remove: s } = Dt({
1179
+ const { fields: n, append: a, remove: s } = Yt({
1041
1180
  control: e,
1042
1181
  name: "headers"
1043
1182
  });
@@ -1076,7 +1215,7 @@ const gt = (e) => Math.abs(
1076
1215
  s(r);
1077
1216
  },
1078
1217
  type: "button",
1079
- children: /* @__PURE__ */ p.jsx(rr, { size: 16 })
1218
+ children: /* @__PURE__ */ p.jsx(cr, { size: 16 })
1080
1219
  }
1081
1220
  )
1082
1221
  ] }) })
@@ -1094,10 +1233,10 @@ const gt = (e) => Math.abs(
1094
1233
  }
1095
1234
  ) })
1096
1235
  ] });
1097
- }, di = ({
1236
+ }, Oi = ({
1098
1237
  control: e
1099
1238
  }) => {
1100
- const { fields: t } = Dt({
1239
+ const { fields: t } = Yt({
1101
1240
  control: e,
1102
1241
  name: "pathParams"
1103
1242
  });
@@ -1109,13 +1248,13 @@ const gt = (e) => Math.abs(
1109
1248
  name: `pathParams.${a}.value`,
1110
1249
  render: ({ field: s }) => /* @__PURE__ */ p.jsxs("div", { children: [
1111
1250
  /* @__PURE__ */ p.jsx(
1112
- Zt,
1251
+ rn,
1113
1252
  {
1114
1253
  slug: n.name,
1115
1254
  name: n.name,
1116
1255
  backgroundOpacity: "25%",
1117
1256
  borderOpacity: s.value ? "100%" : "0",
1118
- className: q(
1257
+ className: F(
1119
1258
  "font-mono text-xs m-2",
1120
1259
  !s.value && "opacity-60"
1121
1260
  )
@@ -1153,40 +1292,40 @@ const gt = (e) => Math.abs(
1153
1292
  type: "button",
1154
1293
  variant: "ghost",
1155
1294
  "aria-label": "Clear value",
1156
- className: q(
1295
+ className: F(
1157
1296
  "ms-2",
1158
1297
  s.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
1159
1298
  ),
1160
1299
  title: "Clear value",
1161
1300
  onClick: () => s.onChange(""),
1162
- children: /* @__PURE__ */ p.jsx(ar, { size: 16 })
1301
+ children: /* @__PURE__ */ p.jsx(ur, { size: 16 })
1163
1302
  }
1164
1303
  )
1165
1304
  }
1166
1305
  )
1167
1306
  ] }) })
1168
1307
  ] }, n.id)) }) });
1169
- }, pi = (e, t) => {
1170
- const n = V.forwardRef(({ className: a, asChild: s, ...i }, r) => {
1171
- const o = s ? ka : e;
1172
- return V.createElement(o, {
1308
+ }, Ci = (e, t) => {
1309
+ const n = P.forwardRef(({ className: a, asChild: s, ...i }, r) => {
1310
+ const o = s ? wa : e;
1311
+ return P.createElement(o, {
1173
1312
  ...i,
1174
1313
  ref: r,
1175
- className: q(t, a)
1314
+ className: F(t, a)
1176
1315
  });
1177
1316
  });
1178
1317
  return n.displayName = `VariantComponent(${e})`, n;
1179
- }, fi = pi(
1318
+ }, Pi = Ci(
1180
1319
  "input",
1181
1320
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1182
- ), mi = ({
1321
+ ), Ei = ({
1183
1322
  control: e,
1184
1323
  queryParams: t
1185
1324
  }) => {
1186
- const { fields: n } = Dt({
1325
+ const { fields: n } = Yt({
1187
1326
  control: e,
1188
1327
  name: "queryParams"
1189
- }), a = La(), s = t.map((o) => !!o.isRequired), r = a.watch("identity") !== et;
1328
+ }), a = Ha(), s = t.map((o) => !!o.isRequired), r = a.watch("identity") !== et;
1190
1329
  return /* @__PURE__ */ p.jsx("div", { className: "", children: /* @__PURE__ */ p.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ p.jsx("tbody", { children: n.filter(
1191
1330
  // TODO remove this hack for Accu or make it more generic
1192
1331
  (o) => !(r && o.name === "apikey")
@@ -1211,7 +1350,7 @@ const gt = (e) => Math.abs(
1211
1350
  $e,
1212
1351
  {
1213
1352
  control: e,
1214
- render: ({ field: c }) => /* @__PURE__ */ p.jsx(fi, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
1353
+ render: ({ field: c }) => /* @__PURE__ */ p.jsx(Pi, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
1215
1354
  "label",
1216
1355
  {
1217
1356
  className: "flex items-center cursor-pointer",
@@ -1256,13 +1395,13 @@ const gt = (e) => Math.abs(
1256
1395
  type: "button",
1257
1396
  variant: "ghost",
1258
1397
  "aria-label": "Clear value",
1259
- className: q(
1398
+ className: F(
1260
1399
  "ms-2",
1261
1400
  c.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
1262
1401
  ),
1263
1402
  title: "Clear value",
1264
1403
  onClick: () => c.onChange(""),
1265
- children: /* @__PURE__ */ p.jsx(ar, { size: 16 })
1404
+ children: /* @__PURE__ */ p.jsx(ur, { size: 16 })
1266
1405
  }
1267
1406
  ),
1268
1407
  name: `queryParams.${l}.value`
@@ -1270,7 +1409,7 @@ const gt = (e) => Math.abs(
1270
1409
  )
1271
1410
  ] }) })
1272
1411
  ] }, o.id)) }) }) });
1273
- }, Ar = ({
1412
+ }, Mr = ({
1274
1413
  value: e,
1275
1414
  onChange: t,
1276
1415
  className: n,
@@ -1280,7 +1419,7 @@ const gt = (e) => Math.abs(
1280
1419
  /* @__PURE__ */ p.jsx(
1281
1420
  "select",
1282
1421
  {
1283
- className: q(
1422
+ className: F(
1284
1423
  "row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6",
1285
1424
  "rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75",
1286
1425
  n
@@ -1293,14 +1432,14 @@ const gt = (e) => Math.abs(
1293
1432
  /* @__PURE__ */ p.jsx(
1294
1433
  "div",
1295
1434
  {
1296
- className: q(
1435
+ className: F(
1297
1436
  !s && "hidden",
1298
1437
  "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
1299
1438
  ),
1300
- children: /* @__PURE__ */ p.jsx(fa, { size: 14 })
1439
+ children: /* @__PURE__ */ p.jsx(ya, { size: 14 })
1301
1440
  }
1302
1441
  )
1303
- ] }), hi = (e) => {
1442
+ ] }), Ri = (e) => {
1304
1443
  var n;
1305
1444
  return (n = Object.entries({
1306
1445
  "application/json": "json",
@@ -1313,25 +1452,25 @@ const gt = (e) => Math.abs(
1313
1452
  }).find(
1314
1453
  ([a]) => e.includes(a)
1315
1454
  )) == null ? void 0 : n[1];
1316
- }, yi = (e) => {
1455
+ }, Ai = (e) => {
1317
1456
  const t = e.get("Content-Type") || "";
1318
- return hi(t);
1319
- }, vi = (e) => {
1457
+ return Ri(t);
1458
+ }, qi = (e) => {
1320
1459
  try {
1321
1460
  return JSON.stringify(JSON.parse(e), null, 2);
1322
1461
  } catch {
1323
1462
  return null;
1324
1463
  }
1325
- }, gi = ({
1464
+ }, Fi = ({
1326
1465
  body: e = "",
1327
1466
  headers: t
1328
1467
  }) => {
1329
- const n = yi(t), a = vi(e), s = a || e, [i, r] = sr(
1468
+ const n = Ai(t), a = qi(e), s = a || e, [i, r] = fr(
1330
1469
  a ? "formatted" : "raw"
1331
1470
  );
1332
1471
  return /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1333
1472
  /* @__PURE__ */ p.jsx(ot, { className: "shadow-none", children: /* @__PURE__ */ p.jsx(
1334
- De,
1473
+ We,
1335
1474
  {
1336
1475
  language: i === "raw" ? a ? "plain" : n : "json",
1337
1476
  noBackground: !0,
@@ -1340,7 +1479,7 @@ const gt = (e) => Math.abs(
1340
1479
  }
1341
1480
  ) }),
1342
1481
  a && /* @__PURE__ */ p.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ p.jsx(
1343
- Ar,
1482
+ Mr,
1344
1483
  {
1345
1484
  value: i,
1346
1485
  onChange: (o) => r(o.target.value),
@@ -1351,7 +1490,7 @@ const gt = (e) => Math.abs(
1351
1490
  }
1352
1491
  ) })
1353
1492
  ] });
1354
- }, et = "__none", bi = {
1493
+ }, et = "__none", Ii = {
1355
1494
  200: "OK",
1356
1495
  201: "Created",
1357
1496
  202: "Accepted",
@@ -1362,7 +1501,7 @@ const gt = (e) => Math.abs(
1362
1501
  404: "Not Found",
1363
1502
  405: "Method Not Allowed",
1364
1503
  500: "Internal Server Error"
1365
- }, xi = ({
1504
+ }, _i = ({
1366
1505
  server: e,
1367
1506
  servers: t,
1368
1507
  url: n,
@@ -1372,8 +1511,8 @@ const gt = (e) => Math.abs(
1372
1511
  pathParams: r = [],
1373
1512
  defaultBody: o = ""
1374
1513
  }) => {
1375
- var R, U;
1376
- const { selectedServer: l, setSelectedServer: c } = mr(), [, u] = lr(), { register: f, control: d, handleSubmit: m, watch: h, setValue: v, ...g } = Ua({
1514
+ var A, H;
1515
+ const { selectedServer: l, setSelectedServer: c } = xr(), [, u] = mr(), { register: f, control: d, handleSubmit: m, watch: h, setValue: v, ...g } = Ba({
1377
1516
  defaultValues: {
1378
1517
  body: o,
1379
1518
  queryParams: i.map(($) => ({
@@ -1391,66 +1530,66 @@ const gt = (e) => Math.abs(
1391
1530
  })),
1392
1531
  identity: et
1393
1532
  }
1394
- }), b = h(), y = da(), x = ir(!1);
1395
- or(() => {
1396
- var _;
1533
+ }), b = h(), y = ma(), x = dr(!1);
1534
+ pr(() => {
1535
+ var L;
1397
1536
  if (x.current) return;
1398
- const $ = (_ = y.data) == null ? void 0 : _.at(0);
1537
+ const $ = (L = y.data) == null ? void 0 : L.at(0);
1399
1538
  $ && (v("identity", $.id), x.current = !0);
1400
1539
  }, [v, y.data]);
1401
- const k = Ha({
1540
+ const k = Va({
1402
1541
  mutationFn: async ($) => {
1403
- var H, J;
1404
- const _ = ci(l ?? e, n, $), F = performance.now(), z = new Request(_, {
1542
+ var B, D;
1543
+ const L = Ni(l ?? e, n, $), I = performance.now(), z = new Request(L, {
1405
1544
  method: a.toUpperCase(),
1406
1545
  headers: Object.fromEntries(
1407
- $.headers.filter((I) => I.name).map((I) => [I.name, I.value])
1546
+ $.headers.filter((_) => _.name).map((_) => [_.name, _.value])
1408
1547
  )
1409
1548
  });
1410
- $.identity !== et && ((J = (H = y.data) == null ? void 0 : H.find((I) => I.id === $.identity)) == null || J.authorizeRequest(z));
1549
+ $.identity !== et && ((D = (B = y.data) == null ? void 0 : B.find((_) => _.id === $.identity)) == null || D.authorizeRequest(z));
1411
1550
  try {
1412
- const I = await fetch(z, {
1551
+ const _ = await fetch(z, {
1413
1552
  signal: AbortSignal.timeout(5e3)
1414
- }), he = performance.now() - F, pe = await I.text();
1553
+ }), he = performance.now() - I, pe = await _.text();
1415
1554
  return {
1416
- status: I.status,
1417
- headers: I.headers,
1555
+ status: _.status,
1556
+ headers: _.headers,
1418
1557
  size: pe.length,
1419
1558
  body: pe,
1420
1559
  time: he
1421
1560
  };
1422
- } catch (I) {
1423
- throw I instanceof TypeError ? new Error(
1561
+ } catch (_) {
1562
+ throw _ instanceof TypeError ? new Error(
1424
1563
  "The request failed, possibly due to network issues or CORS policy."
1425
- ) : I;
1564
+ ) : _;
1426
1565
  }
1427
1566
  }
1428
- }), S = n.split("/").map(($, _, F) => {
1567
+ }), S = n.split("/").map(($, L, I) => {
1429
1568
  var he;
1430
- const z = $.startsWith("{") && $.endsWith("}") || $.startsWith(":"), H = $.replace(/[:{}]/g, ""), J = (he = b.pathParams.find((pe) => pe.name === H)) == null ? void 0 : he.value, I = J ? /* @__PURE__ */ p.jsx(Zt, { backgroundOpacity: "25%", name: $, slug: $, children: encodeURIComponent(J) }) : /* @__PURE__ */ p.jsx(
1569
+ const z = $.startsWith("{") && $.endsWith("}") || $.startsWith(":"), B = $.replace(/[:{}]/g, ""), D = (he = b.pathParams.find((pe) => pe.name === B)) == null ? void 0 : he.value, _ = D ? /* @__PURE__ */ p.jsx(rn, { backgroundOpacity: "25%", name: $, slug: $, children: encodeURIComponent(D) }) : /* @__PURE__ */ p.jsx(
1431
1570
  "span",
1432
1571
  {
1433
1572
  className: "underline decoration-wavy decoration-red-500",
1434
- title: `Missing value for path parameter \`${H}\``,
1573
+ title: `Missing value for path parameter \`${B}\``,
1435
1574
  children: $
1436
1575
  }
1437
1576
  );
1438
1577
  return (
1439
1578
  // eslint-disable-next-line react/no-array-index-key
1440
1579
  /* @__PURE__ */ p.jsxs(Ze, { children: [
1441
- z ? I : $,
1442
- _ < F.length - 1 && "/",
1580
+ z ? _ : $,
1581
+ L < I.length - 1 && "/",
1443
1582
  /* @__PURE__ */ p.jsx("wbr", {})
1444
- ] }, $ + _)
1583
+ ] }, $ + L)
1445
1584
  );
1446
- }), j = Array.from(((R = k.data) == null ? void 0 : R.headers.entries()) ?? []), E = b.queryParams.filter(($) => $.active).map(($, _, F) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1585
+ }), j = Array.from(((A = k.data) == null ? void 0 : A.headers.entries()) ?? []), R = b.queryParams.filter(($) => $.active).map(($, L, I) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1447
1586
  $.name,
1448
1587
  "=",
1449
1588
  encodeURIComponent($.value).replaceAll("%20", "+"),
1450
- _ < F.length - 1 && "&",
1589
+ L < I.length - 1 && "&",
1451
1590
  /* @__PURE__ */ p.jsx("wbr", {})
1452
- ] }, $.name)), P = /* @__PURE__ */ p.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t && t.length > 1 ? /* @__PURE__ */ p.jsxs(
1453
- fn,
1591
+ ] }, $.name)), E = /* @__PURE__ */ p.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t && t.length > 1 ? /* @__PURE__ */ p.jsxs(
1592
+ vn,
1454
1593
  {
1455
1594
  onValueChange: ($) => {
1456
1595
  u(() => {
@@ -1459,13 +1598,13 @@ const gt = (e) => Math.abs(
1459
1598
  },
1460
1599
  value: l,
1461
1600
  children: [
1462
- /* @__PURE__ */ p.jsx(mn, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ p.jsx(hn, {}) }),
1463
- /* @__PURE__ */ p.jsx(yn, { children: t.map(($) => /* @__PURE__ */ p.jsx(vt, { value: $, children: $.replace(/^https?:\/\//, "") }, $)) })
1601
+ /* @__PURE__ */ p.jsx(gn, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ p.jsx(bn, {}) }),
1602
+ /* @__PURE__ */ p.jsx(xn, { children: t.map(($) => /* @__PURE__ */ p.jsx(gt, { value: $, children: $.replace(/^https?:\/\//, "") }, $)) })
1464
1603
  ]
1465
1604
  }
1466
1605
  ) : /* @__PURE__ */ p.jsx("span", { children: e.replace(/^https?:\/\//, "") }) });
1467
1606
  return /* @__PURE__ */ p.jsx(
1468
- Ma,
1607
+ za,
1469
1608
  {
1470
1609
  register: f,
1471
1610
  control: d,
@@ -1479,21 +1618,21 @@ const gt = (e) => Math.abs(
1479
1618
  /* @__PURE__ */ p.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1480
1619
  /* @__PURE__ */ p.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono", children: a.toUpperCase() }),
1481
1620
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center flex-wrap p-2 font-mono text-xs", children: [
1482
- P,
1621
+ E,
1483
1622
  S,
1484
- E.length > 0 ? "?" : "",
1485
- E
1623
+ R.length > 0 ? "?" : "",
1624
+ R
1486
1625
  ] })
1487
1626
  ] }),
1488
1627
  /* @__PURE__ */ p.jsx(je, { type: "submit", className: "h-auto flex gap-1", children: "Send" })
1489
1628
  ] }),
1490
1629
  /* @__PURE__ */ p.jsxs(
1491
- gn,
1630
+ wn,
1492
1631
  {
1493
1632
  defaultValue: i.length + r.length > 0 ? "parameters" : "headers",
1494
1633
  children: [
1495
1634
  /* @__PURE__ */ p.jsxs("div", { className: "flex flex-wrap gap-1 justify-between", children: [
1496
- /* @__PURE__ */ p.jsxs(qt, { children: [
1635
+ /* @__PURE__ */ p.jsxs(Lt, { children: [
1497
1636
  i.length + r.length > 0 && /* @__PURE__ */ p.jsx(Oe, { value: "parameters", children: "Parameters" }),
1498
1637
  /* @__PURE__ */ p.jsxs(Oe, { value: "headers", children: [
1499
1638
  "Headers",
@@ -1514,31 +1653,31 @@ const gt = (e) => Math.abs(
1514
1653
  /* @__PURE__ */ p.jsxs("div", { className: "flex gap-2 items-center", children: [
1515
1654
  "Auth:",
1516
1655
  /* @__PURE__ */ p.jsxs(
1517
- fn,
1656
+ vn,
1518
1657
  {
1519
1658
  onValueChange: ($) => v("identity", $),
1520
1659
  value: b.identity,
1521
1660
  defaultValue: b.identity,
1522
1661
  children: [
1523
- /* @__PURE__ */ p.jsx(mn, { className: "w-[180px] flex", children: y.isPending ? /* @__PURE__ */ p.jsx(vn, {}) : /* @__PURE__ */ p.jsx(hn, {}) }),
1524
- /* @__PURE__ */ p.jsxs(yn, { align: "center", children: [
1525
- /* @__PURE__ */ p.jsx(vt, { value: et, children: "None" }),
1526
- (U = y.data) == null ? void 0 : U.map(($) => /* @__PURE__ */ p.jsx(vt, { value: $.id, children: $.label }, $.id))
1662
+ /* @__PURE__ */ p.jsx(gn, { className: "w-[180px] flex", children: y.isPending ? /* @__PURE__ */ p.jsx(kn, {}) : /* @__PURE__ */ p.jsx(bn, {}) }),
1663
+ /* @__PURE__ */ p.jsxs(xn, { align: "center", children: [
1664
+ /* @__PURE__ */ p.jsx(gt, { value: et, children: "None" }),
1665
+ (H = y.data) == null ? void 0 : H.map(($) => /* @__PURE__ */ p.jsx(gt, { value: $.id, children: $.label }, $.id))
1527
1666
  ] })
1528
1667
  ]
1529
1668
  }
1530
1669
  )
1531
1670
  ] })
1532
1671
  ] }),
1533
- /* @__PURE__ */ p.jsx(Ce, { value: "headers", children: /* @__PURE__ */ p.jsx(ui, { control: d, register: f }) }),
1672
+ /* @__PURE__ */ p.jsx(Ce, { value: "headers", children: /* @__PURE__ */ p.jsx(Ti, { control: d, register: f }) }),
1534
1673
  /* @__PURE__ */ p.jsxs(Ce, { value: "parameters", children: [
1535
1674
  r.length > 0 && /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1536
1675
  /* @__PURE__ */ p.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1537
- /* @__PURE__ */ p.jsx(di, { control: d })
1676
+ /* @__PURE__ */ p.jsx(Oi, { control: d })
1538
1677
  ] }),
1539
1678
  i.length > 0 && /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1540
1679
  /* @__PURE__ */ p.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1541
- /* @__PURE__ */ p.jsx(mi, { control: d, queryParams: i })
1680
+ /* @__PURE__ */ p.jsx(Ei, { control: d, queryParams: i })
1542
1681
  ] })
1543
1682
  ] }),
1544
1683
  /* @__PURE__ */ p.jsx(Ce, { value: "body", children: /* @__PURE__ */ p.jsx(
@@ -1553,10 +1692,10 @@ const gt = (e) => Math.abs(
1553
1692
  )
1554
1693
  ] }),
1555
1694
  /* @__PURE__ */ p.jsx("div", { className: "min-w-0 p-8 bg-muted/70", children: k.error ? /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1556
- b.pathParams.some(($) => $.value === "") && /* @__PURE__ */ p.jsx(Na, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1695
+ b.pathParams.some(($) => $.value === "") && /* @__PURE__ */ p.jsx(Ca, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1557
1696
  /* @__PURE__ */ p.jsxs(ot, { children: [
1558
- /* @__PURE__ */ p.jsx(br, { children: /* @__PURE__ */ p.jsx(xr, { children: "Request failed" }) }),
1559
- /* @__PURE__ */ p.jsxs(kr, { children: [
1697
+ /* @__PURE__ */ p.jsx(Nr, { children: /* @__PURE__ */ p.jsx(Tr, { children: "Request failed" }) }),
1698
+ /* @__PURE__ */ p.jsxs(Or, { children: [
1560
1699
  "Error:",
1561
1700
  " ",
1562
1701
  k.error.message || String(k.error) || "Unexpected error"
@@ -1568,7 +1707,7 @@ const gt = (e) => Math.abs(
1568
1707
  "Status: ",
1569
1708
  k.data.status,
1570
1709
  " ",
1571
- bi[k.data.status] ?? ""
1710
+ Ii[k.data.status] ?? ""
1572
1711
  ] }),
1573
1712
  /* @__PURE__ */ p.jsxs("div", { children: [
1574
1713
  "Time: ",
@@ -1581,13 +1720,13 @@ const gt = (e) => Math.abs(
1581
1720
  " B"
1582
1721
  ] })
1583
1722
  ] }) }),
1584
- /* @__PURE__ */ p.jsxs(gn, { defaultValue: "response", children: [
1585
- /* @__PURE__ */ p.jsxs(qt, { children: [
1723
+ /* @__PURE__ */ p.jsxs(wn, { defaultValue: "response", children: [
1724
+ /* @__PURE__ */ p.jsxs(Lt, { children: [
1586
1725
  /* @__PURE__ */ p.jsx(Oe, { value: "response", children: "Response" }),
1587
1726
  /* @__PURE__ */ p.jsx(Oe, { value: "headers", children: j.length ? `Headers (${j.length})` : "No headers" })
1588
1727
  ] }),
1589
1728
  /* @__PURE__ */ p.jsx(Ce, { value: "response", children: /* @__PURE__ */ p.jsx(
1590
- gi,
1729
+ Fi,
1591
1730
  {
1592
1731
  headers: k.data.headers,
1593
1732
  body: k.data.body
@@ -1600,19 +1739,19 @@ const gt = (e) => Math.abs(
1600
1739
  children: [
1601
1740
  /* @__PURE__ */ p.jsx("div", { className: "font-semibold", children: "Key" }),
1602
1741
  /* @__PURE__ */ p.jsx("div", { className: "font-semibold", children: "Value" }),
1603
- j.map(([$, _]) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1742
+ j.map(([$, L]) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1604
1743
  /* @__PURE__ */ p.jsx("div", { children: $ }),
1605
- /* @__PURE__ */ p.jsx("div", { className: "break-words", children: _ })
1744
+ /* @__PURE__ */ p.jsx("div", { className: "break-words", children: L })
1606
1745
  ] }, $))
1607
1746
  ]
1608
1747
  }
1609
1748
  ) })
1610
1749
  ] })
1611
- ] }) : /* @__PURE__ */ p.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ p.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: k.isPending ? /* @__PURE__ */ p.jsx(vn, {}) : "Send a request first to see the response here" }) }) })
1750
+ ] }) : /* @__PURE__ */ p.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ p.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: k.isPending ? /* @__PURE__ */ p.jsx(kn, {}) : "Send a request first to see the response here" }) }) })
1612
1751
  ] }) })
1613
1752
  }
1614
1753
  );
1615
- }, ki = ({
1754
+ }, Li = ({
1616
1755
  className: e,
1617
1756
  size: t = 16
1618
1757
  }) => /* @__PURE__ */ p.jsx(
@@ -1633,37 +1772,37 @@ const gt = (e) => Math.abs(
1633
1772
  }
1634
1773
  )
1635
1774
  }
1636
- ), qr = (e) => {
1637
- const [t, n] = sr(!1);
1638
- return /* @__PURE__ */ p.jsxs(Za, { onOpenChange: (a) => n(a), children: [
1639
- /* @__PURE__ */ p.jsx(ei, { asChild: !0, children: e.children ?? /* @__PURE__ */ p.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
1775
+ ), Hr = (e) => {
1776
+ const [t, n] = fr(!1);
1777
+ return /* @__PURE__ */ p.jsxs(yi, { onOpenChange: (a) => n(a), children: [
1778
+ /* @__PURE__ */ p.jsx(vi, { asChild: !0, children: e.children ?? /* @__PURE__ */ p.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
1640
1779
  "Test",
1641
- /* @__PURE__ */ p.jsx(ki, { className: "", size: 14 })
1780
+ /* @__PURE__ */ p.jsx(Li, { className: "", size: 14 })
1642
1781
  ] }) }),
1643
1782
  /* @__PURE__ */ p.jsxs(
1644
- vr,
1783
+ wr,
1645
1784
  {
1646
1785
  className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
1647
1786
  "aria-describedby": void 0,
1648
1787
  children: [
1649
- /* @__PURE__ */ p.jsx($a, { children: /* @__PURE__ */ p.jsx(gr, { children: "Playground" }) }),
1650
- t && /* @__PURE__ */ p.jsx(xi, { ...e })
1788
+ /* @__PURE__ */ p.jsx(ja, { children: /* @__PURE__ */ p.jsx(jr, { children: "Playground" }) }),
1789
+ t && /* @__PURE__ */ p.jsx(_i, { ...e })
1651
1790
  ]
1652
1791
  }
1653
1792
  )
1654
1793
  ] });
1655
1794
  };
1656
- var bn = (e, t) => {
1795
+ var jn = (e, t) => {
1657
1796
  const n = e[t.name];
1658
1797
  return n === void 0 ? (e[t.name] = t.value, e) : Array.isArray(n) ? (n.push(t.value), e) : (e[t.name] = [n, t.value], e);
1659
- }, xn = "", kn = `
1798
+ }, Nn = "", Tn = `
1660
1799
  `, O = class {
1661
1800
  /**
1662
1801
  * Helper object to format and aggragate lines of code.
1663
1802
  * Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
1664
1803
  */
1665
1804
  constructor({ indent: e, join: t } = {}) {
1666
- this.postProcessors = [], this.code = [], this.indentationCharacter = xn, this.lineJoin = kn, this.indentLine = (n, a = 0) => `${this.indentationCharacter.repeat(a)}${n}`, this.unshift = (n, a) => {
1805
+ this.postProcessors = [], this.code = [], this.indentationCharacter = Nn, this.lineJoin = Tn, this.indentLine = (n, a = 0) => `${this.indentationCharacter.repeat(a)}${n}`, this.unshift = (n, a) => {
1667
1806
  const s = this.indentLine(n, a);
1668
1807
  this.code.unshift(s);
1669
1808
  }, this.push = (n, a) => {
@@ -1676,18 +1815,18 @@ var bn = (e, t) => {
1676
1815
  return this.postProcessors.reduce((s, i) => i(s), n);
1677
1816
  }, this.addPostProcessor = (n) => {
1678
1817
  this.postProcessors = [...this.postProcessors, n];
1679
- }, this.indentationCharacter = e || xn, this.lineJoin = t ?? kn;
1818
+ }, this.indentationCharacter = e || Nn, this.lineJoin = t ?? Tn;
1680
1819
  }
1681
- }, $i = function(e) {
1820
+ }, Ui = function(e) {
1682
1821
  return Object.prototype.toString.call(e) === "[object RegExp]";
1683
- }, Si = function(e) {
1822
+ }, Mi = function(e) {
1684
1823
  var t = typeof e;
1685
1824
  return e !== null && (t === "object" || t === "function");
1686
- }, en = {};
1687
- Object.defineProperty(en, "__esModule", { value: !0 });
1688
- en.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
1689
- const wi = $i, ji = Si, Ni = en.default;
1690
- var Ti = (e, t, n) => {
1825
+ }, an = {};
1826
+ Object.defineProperty(an, "__esModule", { value: !0 });
1827
+ an.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
1828
+ const Hi = Ui, Bi = Mi, Vi = an.default;
1829
+ var zi = (e, t, n) => {
1691
1830
  const a = [];
1692
1831
  return function s(i, r, o) {
1693
1832
  r = r || {}, r.indent = r.indent || " ", o = o || "";
@@ -1714,7 +1853,7 @@ var Ti = (e, t, n) => {
1714
1853
  };
1715
1854
  if (a.indexOf(i) !== -1)
1716
1855
  return '"[Circular]"';
1717
- if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" || wi(i))
1856
+ if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" || Hi(i))
1718
1857
  return String(i);
1719
1858
  if (i instanceof Date)
1720
1859
  return `new Date('${i.toISOString()}')`;
@@ -1729,8 +1868,8 @@ var Ti = (e, t, n) => {
1729
1868
  }).join("") + l.pad + "]";
1730
1869
  return a.pop(), c(u);
1731
1870
  }
1732
- if (ji(i)) {
1733
- let u = Object.keys(i).concat(Ni(i));
1871
+ if (Bi(i)) {
1872
+ let u = Object.keys(i).concat(Vi(i));
1734
1873
  if (r.filter && (u = u.filter((d) => r.filter(i, d))), u.length === 0)
1735
1874
  return "{}";
1736
1875
  a.push(i);
@@ -1745,13 +1884,13 @@ var Ti = (e, t, n) => {
1745
1884
  ` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
1746
1885
  }(e, t, n);
1747
1886
  };
1748
- const Y = /* @__PURE__ */ Ba(Ti);
1887
+ const Y = /* @__PURE__ */ Da(zi);
1749
1888
  function ze(e, t = {}) {
1750
1889
  const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
1751
1890
  return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
1752
1891
  ` ? s ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? s ? `${a}r` : r : r === a ? a + a : r === n ? a + n : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
1753
1892
  }
1754
- var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }), Oi = {
1893
+ var De = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }), Di = {
1755
1894
  info: {
1756
1895
  key: "libcurl",
1757
1896
  title: "Libcurl",
@@ -1767,7 +1906,7 @@ var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }),
1767
1906
  i(`headers = curl_slist_append(headers, "${c}: ${G(n[c])}");`);
1768
1907
  }), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), s.text && (r(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
1769
1908
  }
1770
- }, Ci = {
1909
+ }, Ji = {
1771
1910
  info: {
1772
1911
  key: "c",
1773
1912
  title: "C",
@@ -1775,30 +1914,30 @@ var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }),
1775
1914
  cli: "c"
1776
1915
  },
1777
1916
  clientsById: {
1778
- libcurl: Oi
1917
+ libcurl: Di
1779
1918
  }
1780
1919
  }, Z = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), de = (e, t) => {
1781
1920
  const n = Z(e, t);
1782
1921
  if (n)
1783
1922
  return e[n];
1784
- }, mt = (e, t) => !!Z(e, t), Pi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1923
+ }, ht = (e, t) => !!Z(e, t), Wi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1785
1924
  (t) => e.indexOf(t) > -1
1786
- ), $n = class {
1925
+ ), On = class {
1787
1926
  constructor(e) {
1788
1927
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
1789
1928
  }
1790
- }, Ei = class {
1929
+ }, Gi = class {
1791
1930
  constructor(e) {
1792
1931
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
1793
1932
  }
1794
- }, Fr = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), Ir = (e) => e === void 0 ? !0 : Fr(e) === "object" ? Object.keys(e).length === 0 : !1, Sn = (e) => (Object.keys(e).filter((t) => Ir(e[t])).forEach((t) => {
1933
+ }, Br = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), Vr = (e) => e === void 0 ? !0 : Br(e) === "object" ? Object.keys(e).length === 0 : !1, Cn = (e) => (Object.keys(e).filter((t) => Vr(e[t])).forEach((t) => {
1795
1934
  delete e[t];
1796
1935
  }), e), tt = (e, t) => {
1797
1936
  const n = " ".repeat(e);
1798
1937
  return t.replace(/\n/g, `
1799
1938
  ${n}`);
1800
- }, Ft = (e) => {
1801
- switch (Fr(e)) {
1939
+ }, Ut = (e) => {
1940
+ switch (Br(e)) {
1802
1941
  case "string":
1803
1942
  return `"${e.replace(/"/g, '\\"')}"`;
1804
1943
  case "file":
@@ -1811,20 +1950,20 @@ ${n}`);
1811
1950
  return `#"${e.source}"`;
1812
1951
  case "object": {
1813
1952
  const t = Object.keys(e).reduce((n, a) => {
1814
- const s = tt(a.length + 2, Ft(e[a]));
1953
+ const s = tt(a.length + 2, Ut(e[a]));
1815
1954
  return `${n}:${a} ${s}
1816
1955
  `;
1817
1956
  }, "").trim();
1818
1957
  return `{${tt(1, t)}}`;
1819
1958
  }
1820
1959
  case "array": {
1821
- const t = e.reduce((n, a) => `${n} ${Ft(a)}`, "").trim();
1960
+ const t = e.reduce((n, a) => `${n} ${Ut(a)}`, "").trim();
1822
1961
  return `[${tt(1, t)}]`;
1823
1962
  }
1824
1963
  default:
1825
1964
  return e.toString();
1826
1965
  }
1827
- }, Ri = {
1966
+ }, Qi = {
1828
1967
  info: {
1829
1968
  key: "clj_http",
1830
1969
  title: "clj-http",
@@ -1843,7 +1982,7 @@ ${n}`);
1843
1982
  switch (n.mimeType) {
1844
1983
  case "application/json":
1845
1984
  {
1846
- c["content-type"] = new $n("json"), c["form-params"] = n.jsonObj;
1985
+ c["content-type"] = new On("json"), c["form-params"] = n.jsonObj;
1847
1986
  const u = Z(c.headers, "content-type");
1848
1987
  u && delete c.headers[u];
1849
1988
  }
@@ -1866,7 +2005,7 @@ ${n}`);
1866
2005
  if (n.params) {
1867
2006
  c.multipart = n.params.map((f) => f.fileName && !f.value ? {
1868
2007
  name: f.name,
1869
- content: new Ei(f.fileName)
2008
+ content: new Gi(f.fileName)
1870
2009
  } : {
1871
2010
  name: f.name,
1872
2011
  content: f.value
@@ -1880,31 +2019,31 @@ ${n}`);
1880
2019
  switch (de(c.headers, "accept")) {
1881
2020
  case "application/json":
1882
2021
  {
1883
- c.accept = new $n("json");
2022
+ c.accept = new On("json");
1884
2023
  const u = Z(c.headers, "accept");
1885
2024
  u && delete c.headers[u];
1886
2025
  }
1887
2026
  break;
1888
2027
  }
1889
2028
  if (r(`(require '[clj-http.client :as client])
1890
- `), Ir(Sn(c)))
2029
+ `), Vr(Cn(c)))
1891
2030
  r(`(client/${t} "${a}")`);
1892
2031
  else {
1893
- const u = 11 + t.length + a.length, f = tt(u, Ft(Sn(c)));
2032
+ const u = 11 + t.length + a.length, f = tt(u, Ut(Cn(c)));
1894
2033
  r(`(client/${t} "${a}" ${f})`);
1895
2034
  }
1896
2035
  return o();
1897
2036
  }
1898
- }, Ai = {
2037
+ }, Ki = {
1899
2038
  info: {
1900
2039
  key: "clojure",
1901
2040
  title: "Clojure",
1902
2041
  default: "clj_http"
1903
2042
  },
1904
2043
  clientsById: {
1905
- clj_http: Ri
2044
+ clj_http: Qi
1906
2045
  }
1907
- }, qi = (e) => {
2046
+ }, Yi = (e) => {
1908
2047
  let t = de(e, "accept-encoding");
1909
2048
  if (!t)
1910
2049
  return [];
@@ -1921,7 +2060,7 @@ ${n}`);
1921
2060
  }
1922
2061
  });
1923
2062
  }), a;
1924
- }, Fi = {
2063
+ }, Xi = {
1925
2064
  info: {
1926
2065
  key: "httpclient",
1927
2066
  title: "HttpClient",
@@ -1937,7 +2076,7 @@ ${n}`);
1937
2076
  }, { push: r, join: o } = new O({ indent: i.indent });
1938
2077
  r("using System.Net.Http.Headers;");
1939
2078
  let l = "";
1940
- const c = !!e.cookie, u = qi(e);
2079
+ const c = !!e.cookie, u = Yi(e);
1941
2080
  (c || u.length) && (l = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), c && r("UseCookies = false,", 1), u.length && r(`AutomaticDecompression = ${u.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${l});`), r("var request = new HttpRequestMessage"), r("{");
1942
2081
  const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
1943
2082
  n = n.toUpperCase(), n && f.includes(n) ? n = `HttpMethod.${n[0]}${n.substring(1).toLowerCase()}` : n = `new HttpMethod("${n}")`, r(`Method = ${n},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
@@ -1974,10 +2113,10 @@ ${n}`);
1974
2113
  return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
1975
2114
  }
1976
2115
  };
1977
- function Ii(e) {
2116
+ function Zi(e) {
1978
2117
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
1979
2118
  }
1980
- var _i = {
2119
+ var eo = {
1981
2120
  info: {
1982
2121
  key: "restsharp",
1983
2122
  title: "RestSharp",
@@ -2027,11 +2166,11 @@ var _i = {
2027
2166
  if (!s.text) break;
2028
2167
  r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
2029
2168
  }
2030
- return r(`var response = await client.${Ii(e)}Async(request);
2169
+ return r(`var response = await client.${Zi(e)}Async(request);
2031
2170
  `), r(`Console.WriteLine("{0}", response.Content);
2032
2171
  `), o();
2033
2172
  }
2034
- }, Li = {
2173
+ }, to = {
2035
2174
  info: {
2036
2175
  key: "csharp",
2037
2176
  title: "C#",
@@ -2039,10 +2178,10 @@ var _i = {
2039
2178
  cli: "dotnet"
2040
2179
  },
2041
2180
  clientsById: {
2042
- httpclient: Fi,
2043
- restsharp: _i
2181
+ httpclient: Xi,
2182
+ restsharp: eo
2044
2183
  }
2045
- }, Ui = {
2184
+ }, no = {
2046
2185
  info: {
2047
2186
  key: "native",
2048
2187
  title: "NewRequest",
@@ -2060,7 +2199,7 @@ var _i = {
2060
2199
  r(`req.Header.Add("${y}", "${G(n[y])}")`, m);
2061
2200
  }), i()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (i(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), i(), u && r("fmt.Println(string(body))", m), l && (i(), r("}")), o();
2062
2201
  }
2063
- }, Hi = {
2202
+ }, ro = {
2064
2203
  info: {
2065
2204
  key: "go",
2066
2205
  title: "Go",
@@ -2068,10 +2207,10 @@ var _i = {
2068
2207
  cli: "go"
2069
2208
  },
2070
2209
  clientsById: {
2071
- native: Ui
2210
+ native: no
2072
2211
  }
2073
- }, wn = `\r
2074
- `, Mi = {
2212
+ }, Pn = `\r
2213
+ `, ao = {
2075
2214
  info: {
2076
2215
  key: "http1.1",
2077
2216
  title: "HTTP/1.1",
@@ -2085,7 +2224,7 @@ var _i = {
2085
2224
  autoContentLength: !0,
2086
2225
  autoHost: !0,
2087
2226
  ...r
2088
- }, { blank: l, push: c, join: u } = new O({ indent: "", join: wn }), f = o.absoluteURI ? t : n.path;
2227
+ }, { blank: l, push: c, join: u } = new O({ indent: "", join: Pn }), f = o.absoluteURI ? t : n.path;
2089
2228
  c(`${e} ${f} ${a}`);
2090
2229
  const d = Object.keys(s);
2091
2230
  if (d.forEach((v) => {
@@ -2097,18 +2236,18 @@ var _i = {
2097
2236
  }
2098
2237
  l();
2099
2238
  const m = u(), h = i.text || "";
2100
- return `${m}${wn}${h}`;
2239
+ return `${m}${Pn}${h}`;
2101
2240
  }
2102
- }, Bi = {
2241
+ }, io = {
2103
2242
  info: {
2104
2243
  key: "http",
2105
2244
  title: "HTTP",
2106
2245
  default: "http1.1"
2107
2246
  },
2108
2247
  clientsById: {
2109
- "http1.1": Mi
2248
+ "http1.1": ao
2110
2249
  }
2111
- }, Vi = {
2250
+ }, oo = {
2112
2251
  info: {
2113
2252
  key: "asynchttp",
2114
2253
  title: "AsyncHttp",
@@ -2125,7 +2264,7 @@ var _i = {
2125
2264
  o(`.setHeader("${c}", "${G(t[c])}")`, 1);
2126
2265
  }), n.text && o(`.setBody(${JSON.stringify(n.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), l();
2127
2266
  }
2128
- }, zi = {
2267
+ }, so = {
2129
2268
  info: {
2130
2269
  key: "nethttp",
2131
2270
  title: "java.net.http",
@@ -2147,7 +2286,7 @@ var _i = {
2147
2286
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
2148
2287
  ), r("System.out.println(response.body());"), o();
2149
2288
  }
2150
- }, Ji = {
2289
+ }, lo = {
2151
2290
  info: {
2152
2291
  key: "okhttp",
2153
2292
  title: "OkHttp",
@@ -2164,7 +2303,7 @@ var _i = {
2164
2303
  r(`.addHeader("${f}", "${G(a[f])}")`, 1);
2165
2304
  }), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), l();
2166
2305
  }
2167
- }, Wi = {
2306
+ }, co = {
2168
2307
  info: {
2169
2308
  key: "unirest",
2170
2309
  title: "Unirest",
@@ -2181,19 +2320,19 @@ var _i = {
2181
2320
  o(`.header("${c}", "${G(t[c])}")`, 1);
2182
2321
  }), n.text && o(`.body(${JSON.stringify(n.text)})`, 1), o(".asString();", 1), r();
2183
2322
  }
2184
- }, Di = {
2323
+ }, uo = {
2185
2324
  info: {
2186
2325
  key: "java",
2187
2326
  title: "Java",
2188
2327
  default: "unirest"
2189
2328
  },
2190
2329
  clientsById: {
2191
- asynchttp: Vi,
2192
- nethttp: zi,
2193
- okhttp: Ji,
2194
- unirest: Wi
2330
+ asynchttp: oo,
2331
+ nethttp: so,
2332
+ okhttp: lo,
2333
+ unirest: co
2195
2334
  }
2196
- }, Gi = {
2335
+ }, po = {
2197
2336
  info: {
2198
2337
  key: "axios",
2199
2338
  title: "Axios",
@@ -2237,7 +2376,7 @@ var _i = {
2237
2376
  }).replace('"[form]"', "form");
2238
2377
  return l(`const options = ${d};`), o(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
2239
2378
  }
2240
- }, Qi = {
2379
+ }, fo = {
2241
2380
  info: {
2242
2381
  key: "fetch",
2243
2382
  title: "fetch",
@@ -2290,7 +2429,7 @@ var _i = {
2290
2429
  })};`
2291
2430
  ), r(), n.params && n.mimeType === "multipart/form-data" && (l("options.body = form;"), r()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), o();
2292
2431
  }
2293
- }, Ki = {
2432
+ }, mo = {
2294
2433
  info: {
2295
2434
  key: "jquery",
2296
2435
  title: "jQuery",
@@ -2322,7 +2461,7 @@ var _i = {
2322
2461
  break;
2323
2462
  if (o("const form = new FormData();"), a.params.forEach((d) => {
2324
2463
  o(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
2325
- }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", mt(n, "content-type") && (f = de(n, "content-type")) != null && f.includes("boundary")) {
2464
+ }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", ht(n, "content-type") && (f = de(n, "content-type")) != null && f.includes("boundary")) {
2326
2465
  const d = Z(n, "content-type");
2327
2466
  d && delete c.headers[d];
2328
2467
  }
@@ -2334,7 +2473,7 @@ var _i = {
2334
2473
  const u = Y(c, { indent: i.indent }).replace("'[form]'", "form");
2335
2474
  return o(`const settings = ${u};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), l();
2336
2475
  }
2337
- }, Yi = {
2476
+ }, ho = {
2338
2477
  info: {
2339
2478
  key: "xhr",
2340
2479
  title: "XMLHttpRequest",
@@ -2362,7 +2501,7 @@ var _i = {
2362
2501
  break;
2363
2502
  if (o("const data = new FormData();"), e.params.forEach((u) => {
2364
2503
  o(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
2365
- }), mt(t, "content-type") && (c = de(t, "content-type")) != null && c.includes("boundary")) {
2504
+ }), ht(t, "content-type") && (c = de(t, "content-type")) != null && c.includes("boundary")) {
2366
2505
  const u = Z(t, "content-type");
2367
2506
  u && delete t[u];
2368
2507
  }
@@ -2372,22 +2511,22 @@ var _i = {
2372
2511
  o(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
2373
2512
  }
2374
2513
  return o("const xhr = new XMLHttpRequest();"), i.cors && o("xhr.withCredentials = true;"), r(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), r(), o(`xhr.open('${n}', '${a}');`), Object.keys(t).forEach((u) => {
2375
- o(`xhr.setRequestHeader('${u}', '${Je(t[u])}');`);
2514
+ o(`xhr.setRequestHeader('${u}', '${De(t[u])}');`);
2376
2515
  }), r(), o("xhr.send(data);"), l();
2377
2516
  }
2378
- }, Xi = {
2517
+ }, yo = {
2379
2518
  info: {
2380
2519
  key: "javascript",
2381
2520
  title: "JavaScript",
2382
2521
  default: "xhr"
2383
2522
  },
2384
2523
  clientsById: {
2385
- xhr: Yi,
2386
- axios: Gi,
2387
- fetch: Qi,
2388
- jquery: Ki
2524
+ xhr: ho,
2525
+ axios: po,
2526
+ fetch: fo,
2527
+ jquery: mo
2389
2528
  }
2390
- }, Zi = {
2529
+ }, vo = {
2391
2530
  info: {
2392
2531
  key: "native",
2393
2532
  title: "Native JSON",
@@ -2421,16 +2560,16 @@ var _i = {
2421
2560
  }
2422
2561
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
2423
2562
  }
2424
- }, eo = {
2563
+ }, go = {
2425
2564
  info: {
2426
2565
  key: "json",
2427
2566
  title: "JSON",
2428
2567
  default: "native"
2429
2568
  },
2430
2569
  clientsById: {
2431
- native: Zi
2570
+ native: vo
2432
2571
  }
2433
- }, to = {
2572
+ }, bo = {
2434
2573
  info: {
2435
2574
  key: "okhttp",
2436
2575
  title: "OkHttp",
@@ -2447,16 +2586,16 @@ var _i = {
2447
2586
  l(`.addHeader("${f}", "${G(a[f])}")`, 1);
2448
2587
  }), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), o();
2449
2588
  }
2450
- }, no = {
2589
+ }, xo = {
2451
2590
  info: {
2452
2591
  key: "kotlin",
2453
2592
  title: "Kotlin",
2454
2593
  default: "okhttp"
2455
2594
  },
2456
2595
  clientsById: {
2457
- okhttp: to
2596
+ okhttp: bo
2458
2597
  }
2459
- }, ro = {
2598
+ }, ko = {
2460
2599
  info: {
2461
2600
  key: "axios",
2462
2601
  title: "Axios",
@@ -2490,7 +2629,7 @@ var _i = {
2490
2629
  const f = Y(u, { indent: " ", inlineCharacterLimit: 80 });
2491
2630
  return l(`const options = ${f};`), r(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), o();
2492
2631
  }
2493
- }, ao = {
2632
+ }, $o = {
2494
2633
  info: {
2495
2634
  key: "fetch",
2496
2635
  title: "Fetch",
@@ -2550,7 +2689,7 @@ var _i = {
2550
2689
  });
2551
2690
  return c(`const options = ${h};`), l(), o && f("const fs = require('fs');"), n.params && n.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
2552
2691
  }
2553
- }, io = {
2692
+ }, So = {
2554
2693
  info: {
2555
2694
  key: "native",
2556
2695
  title: "HTTP",
@@ -2589,7 +2728,7 @@ var _i = {
2589
2728
  }
2590
2729
  return l("req.end();"), o();
2591
2730
  }
2592
- }, oo = {
2731
+ }, wo = {
2593
2732
  info: {
2594
2733
  key: "request",
2595
2734
  title: "Request",
@@ -2642,7 +2781,7 @@ var _i = {
2642
2781
  c(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(g)}'), '${t}');`);
2643
2782
  }), u(), m((v) => v.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${Y(h, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), f();
2644
2783
  }
2645
- }, so = {
2784
+ }, jo = {
2646
2785
  info: {
2647
2786
  key: "unirest",
2648
2787
  title: "Unirest",
@@ -2683,7 +2822,7 @@ var _i = {
2683
2822
  }
2684
2823
  return l && m("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), u(), d("console.log(res.body);", 1), d("});"), f();
2685
2824
  }
2686
- }, lo = {
2825
+ }, No = {
2687
2826
  info: {
2688
2827
  key: "node",
2689
2828
  title: "Node.js",
@@ -2691,27 +2830,27 @@ var _i = {
2691
2830
  cli: "node %s"
2692
2831
  },
2693
2832
  clientsById: {
2694
- native: io,
2695
- request: oo,
2696
- unirest: so,
2697
- axios: ro,
2698
- fetch: ao
2699
- }
2700
- }, kt = (e, t, n, a) => {
2701
- const s = `${e} *${t} = `, i = It(n, a ? s.length : void 0);
2833
+ native: So,
2834
+ request: wo,
2835
+ unirest: jo,
2836
+ axios: ko,
2837
+ fetch: $o
2838
+ }
2839
+ }, wt = (e, t, n, a) => {
2840
+ const s = `${e} *${t} = `, i = Mt(n, a ? s.length : void 0);
2702
2841
  return `${s}${i};`;
2703
- }, It = (e, t) => {
2842
+ }, Mt = (e, t) => {
2704
2843
  const n = t === void 0 ? ", " : `,
2705
2844
  ${" ".repeat(t)}`;
2706
2845
  switch (Object.prototype.toString.call(e)) {
2707
2846
  case "[object Number]":
2708
2847
  return `@${e}`;
2709
2848
  case "[object Array]":
2710
- return `@[ ${e.map((s) => It(s)).join(n)} ]`;
2849
+ return `@[ ${e.map((s) => Mt(s)).join(n)} ]`;
2711
2850
  case "[object Object]": {
2712
2851
  const a = [];
2713
2852
  return Object.keys(e).forEach((s) => {
2714
- a.push(`@"${s}": ${It(e[s])}`);
2853
+ a.push(`@"${s}": ${Mt(e[s])}`);
2715
2854
  }), `@{ ${a.join(n)} }`;
2716
2855
  }
2717
2856
  case "[object Boolean]":
@@ -2719,7 +2858,7 @@ var _i = {
2719
2858
  default:
2720
2859
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
2721
2860
  }
2722
- }, co = {
2861
+ }, To = {
2723
2862
  info: {
2724
2863
  key: "nsurlsession",
2725
2864
  title: "NSURLSession",
@@ -2738,7 +2877,7 @@ var _i = {
2738
2877
  hasHeaders: !1,
2739
2878
  hasBody: !1
2740
2879
  };
2741
- if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, l(), r(kt("NSDictionary", "headers", e, i.pretty))), t.text || t.jsonObj || t.params)
2880
+ if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, l(), r(wt("NSDictionary", "headers", e, i.pretty))), t.text || t.jsonObj || t.params)
2742
2881
  switch (c.hasBody = !0, t.mimeType) {
2743
2882
  case "application/x-www-form-urlencoded":
2744
2883
  if ((u = t.params) != null && u.length) {
@@ -2753,10 +2892,10 @@ var _i = {
2753
2892
  c.hasBody = !1;
2754
2893
  break;
2755
2894
  case "application/json":
2756
- t.jsonObj && (r(kt("NSDictionary", "parameters", t.jsonObj, i.pretty)), l(), r("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
2895
+ t.jsonObj && (r(wt("NSDictionary", "parameters", t.jsonObj, i.pretty)), l(), r("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
2757
2896
  break;
2758
2897
  case "multipart/form-data":
2759
- r(kt("NSArray", "parameters", t.params || [], i.pretty)), r(`NSString *boundary = @"${t.boundary}";`), l(), r("NSError *error;"), r("NSMutableString *body = [NSMutableString string];"), r("for (NSDictionary *param in parameters) {"), r('[body appendFormat:@"--%@\\r\\n", boundary];', 1), r('if (param[@"fileName"]) {', 1), r(
2898
+ r(wt("NSArray", "parameters", t.params || [], i.pretty)), r(`NSString *boundary = @"${t.boundary}";`), l(), r("NSError *error;"), r("NSMutableString *body = [NSMutableString string];"), r("for (NSDictionary *param in parameters) {"), r('[body appendFormat:@"--%@\\r\\n", boundary];', 1), r('if (param[@"fileName"]) {', 1), r(
2760
2899
  '[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
2761
2900
  2
2762
2901
  ), r('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), r(
@@ -2776,16 +2915,16 @@ var _i = {
2776
2915
  2
2777
2916
  ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
2778
2917
  }
2779
- }, uo = {
2918
+ }, Oo = {
2780
2919
  info: {
2781
2920
  key: "objc",
2782
2921
  title: "Objective-C",
2783
2922
  default: "nsurlsession"
2784
2923
  },
2785
2924
  clientsById: {
2786
- nsurlsession: co
2925
+ nsurlsession: To
2787
2926
  }
2788
- }, po = {
2927
+ }, Co = {
2789
2928
  info: {
2790
2929
  key: "cohttp",
2791
2930
  title: "CoHTTP",
@@ -2811,16 +2950,16 @@ var _i = {
2811
2950
  const f = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
2812
2951
  return o(`Client.call ${f}${d}${m} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), c();
2813
2952
  }
2814
- }, fo = {
2953
+ }, Po = {
2815
2954
  info: {
2816
2955
  key: "ocaml",
2817
2956
  title: "OCaml",
2818
2957
  default: "cohttp"
2819
2958
  },
2820
2959
  clientsById: {
2821
- cohttp: po
2960
+ cohttp: Co
2822
2961
  }
2823
- }, A = (e, t, n) => {
2962
+ }, q = (e, t, n) => {
2824
2963
  switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
2825
2964
  case "[object Boolean]":
2826
2965
  return e;
@@ -2833,7 +2972,7 @@ var _i = {
2833
2972
  case "[object Number]":
2834
2973
  return e.toString();
2835
2974
  case "[object Array]": {
2836
- const a = e.map((s) => A(s, `${t}${t}`, t)).join(`,
2975
+ const a = e.map((s) => q(s, `${t}${t}`, t)).join(`,
2837
2976
  ${t}`);
2838
2977
  return `[
2839
2978
  ${t}${a}
@@ -2842,7 +2981,7 @@ ${n}]`;
2842
2981
  case "[object Object]": {
2843
2982
  const a = [];
2844
2983
  for (const s in e)
2845
- Object.prototype.hasOwnProperty.call(e, s) && a.push(`${A(s, t)} => ${A(e[s], `${t}${t}`, t)}`);
2984
+ Object.prototype.hasOwnProperty.call(e, s) && a.push(`${q(s, t)} => ${q(e[s], `${t}${t}`, t)}`);
2846
2985
  return `[
2847
2986
  ${t}${a.join(`,
2848
2987
  ${t}`)}
@@ -2851,7 +2990,7 @@ ${n}]`;
2851
2990
  default:
2852
2991
  return "null";
2853
2992
  }
2854
- }, jn = [
2993
+ }, En = [
2855
2994
  "ACL",
2856
2995
  "BASELINE_CONTROL",
2857
2996
  "CHECKIN",
@@ -2879,7 +3018,7 @@ ${n}]`;
2879
3018
  "UNLOCK",
2880
3019
  "UPDATE",
2881
3020
  "VERSION_CONTROL"
2882
- ], mo = {
3021
+ ], Eo = {
2883
3022
  info: {
2884
3023
  key: "curl",
2885
3024
  title: "cURL",
@@ -2942,14 +3081,14 @@ ${n}]`;
2942
3081
  {
2943
3082
  escape: !t.jsonObj,
2944
3083
  name: "CURLOPT_POSTFIELDS",
2945
- value: t ? t.jsonObj ? `json_encode(${A(t.jsonObj, c.repeat(2), c)})` : t.text : void 0
3084
+ value: t ? t.jsonObj ? `json_encode(${q(t.jsonObj, c.repeat(2), c)})` : t.text : void 0
2946
3085
  }
2947
3086
  ];
2948
3087
  v("curl_setopt_array($curl, [");
2949
3088
  const x = new O({ indent: c, join: `
2950
3089
  ${c}` });
2951
- y.forEach(({ value: j, name: E, escape: P }) => {
2952
- j != null && x.push(`${E} => ${P ? JSON.stringify(j) : j},`);
3090
+ y.forEach(({ value: j, name: R, escape: E }) => {
3091
+ j != null && x.push(`${R} => ${E ? JSON.stringify(j) : j},`);
2953
3092
  });
2954
3093
  const k = i.map((j) => `${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}`);
2955
3094
  k.length && x.push(`CURLOPT_COOKIE => "${k.join("; ")}",`);
@@ -2957,7 +3096,7 @@ ${c}` });
2957
3096
  return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
2958
3097
  ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), g(), v("curl_close($curl);"), g(), v("if ($err) {"), v(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !d && l && (g(), v("?>")), b();
2959
3098
  }
2960
- }, ho = {
3099
+ }, Ro = {
2961
3100
  info: {
2962
3101
  key: "guzzle",
2963
3102
  title: "Guzzle",
@@ -2977,7 +3116,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
2977
3116
  }, { push: o, blank: l, join: c } = new O({ indent: r.indent }), { code: u, push: f, join: d } = new O({ indent: r.indent });
2978
3117
  switch (r.noTags || o(r.shortTags ? "<?" : "<?php"), o("require_once('vendor/autoload.php');"), l(), e.mimeType) {
2979
3118
  case "application/x-www-form-urlencoded":
2980
- f(`'form_params' => ${A(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
3119
+ f(`'form_params' => ${q(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
2981
3120
  break;
2982
3121
  case "multipart/form-data": {
2983
3122
  const g = [];
@@ -2993,22 +3132,22 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
2993
3132
  name: b.name,
2994
3133
  contents: b.value
2995
3134
  });
2996
- }), g.length && (f(`'multipart' => ${A(g, r.indent + r.indent, r.indent)}`, 1), mt(s, "content-type") && (v = de(s, "content-type")) != null && v.indexOf("boundary"))) {
3135
+ }), g.length && (f(`'multipart' => ${q(g, r.indent + r.indent, r.indent)}`, 1), ht(s, "content-type") && (v = de(s, "content-type")) != null && v.indexOf("boundary"))) {
2997
3136
  const b = Z(s, "content-type");
2998
3137
  b && delete s[b];
2999
3138
  }
3000
3139
  break;
3001
3140
  }
3002
3141
  default:
3003
- e.text && f(`'body' => ${A(e.text)},`, 1);
3142
+ e.text && f(`'body' => ${q(e.text)},`, 1);
3004
3143
  }
3005
3144
  const m = Object.keys(s).sort().map(function(g) {
3006
- return `${r.indent}${r.indent}'${g}' => '${Je(s[g])}',`;
3145
+ return `${r.indent}${r.indent}'${g}' => '${De(s[g])}',`;
3007
3146
  }), h = a.map((g) => `${encodeURIComponent(g.name)}=${encodeURIComponent(g.value)}`).join("; ");
3008
- return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (f("'headers' => [", 1), f(m.join(`
3147
+ return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${De(h)}',`), m.length && (f("'headers' => [", 1), f(m.join(`
3009
3148
  `)), f("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (o(`$response = $client->request('${n}', '${t}', [`), o(d()), o("]);")) : o(`$response = $client->request('${n}', '${t}');`), l(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), o("?>")), c();
3010
3149
  }
3011
- }, yo = {
3150
+ }, Ao = {
3012
3151
  info: {
3013
3152
  key: "http1",
3014
3153
  title: "HTTP v1",
@@ -3018,19 +3157,19 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3018
3157
  },
3019
3158
  convert: ({ method: e, url: t, postData: n, queryObj: a, headersObj: s, cookiesObj: i }, r = {}) => {
3020
3159
  const { closingTag: o = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: f, blank: d, join: m } = new O({ indent: l });
3021
- switch (c || (f(u ? "<?" : "<?php"), d()), jn.includes(e.toUpperCase()) || f(`HttpRequest::methodRegister('${e}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${A(t)});`), jn.includes(e.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), d(), Object.keys(a).length && (f(`$request->setQueryData(${A(a, l)});`), d()), Object.keys(s).length && (f(`$request->setHeaders(${A(s, l)});`), d()), Object.keys(i).length && (f(`$request->setCookies(${A(i, l)});`), d()), n.mimeType) {
3160
+ switch (c || (f(u ? "<?" : "<?php"), d()), En.includes(e.toUpperCase()) || f(`HttpRequest::methodRegister('${e}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${q(t)});`), En.includes(e.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), d(), Object.keys(a).length && (f(`$request->setQueryData(${q(a, l)});`), d()), Object.keys(s).length && (f(`$request->setHeaders(${q(s, l)});`), d()), Object.keys(i).length && (f(`$request->setCookies(${q(i, l)});`), d()), n.mimeType) {
3022
3161
  case "application/x-www-form-urlencoded":
3023
- f(`$request->setContentType(${A(n.mimeType)});`), f(`$request->setPostFields(${A(n.paramsObj, l)});`), d();
3162
+ f(`$request->setContentType(${q(n.mimeType)});`), f(`$request->setPostFields(${q(n.paramsObj, l)});`), d();
3024
3163
  break;
3025
3164
  case "application/json":
3026
- f(`$request->setContentType(${A(n.mimeType)});`), f(`$request->setBody(json_encode(${A(n.jsonObj, l)}));`), d();
3165
+ f(`$request->setContentType(${q(n.mimeType)});`), f(`$request->setBody(json_encode(${q(n.jsonObj, l)}));`), d();
3027
3166
  break;
3028
3167
  default:
3029
- n.text && (f(`$request->setBody(${A(n.text)});`), d());
3168
+ n.text && (f(`$request->setBody(${q(n.text)});`), d());
3030
3169
  }
3031
3170
  return f("try {"), f("$response = $request->send();", 1), d(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !c && o && (d(), f("?>")), m();
3032
3171
  }
3033
- }, vo = {
3172
+ }, qo = {
3034
3173
  info: {
3035
3174
  key: "http2",
3036
3175
  title: "HTTP v2",
@@ -3044,17 +3183,17 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3044
3183
  let h = !1;
3045
3184
  switch (c || (f(u ? "<?" : "<?php"), d()), f("$client = new http\\Client;"), f("$request = new http\\Client\\Request;"), d(), e.mimeType) {
3046
3185
  case "application/x-www-form-urlencoded":
3047
- f("$body = new http\\Message\\Body;"), f(`$body->append(new http\\QueryString(${A(e.paramsObj, l)}));`), d(), h = !0;
3186
+ f("$body = new http\\Message\\Body;"), f(`$body->append(new http\\QueryString(${q(e.paramsObj, l)}));`), d(), h = !0;
3048
3187
  break;
3049
3188
  case "multipart/form-data": {
3050
3189
  if (!e.params)
3051
3190
  break;
3052
3191
  const g = [], b = {};
3053
- e.params.forEach(({ name: k, fileName: S, value: j, contentType: E }) => {
3192
+ e.params.forEach(({ name: k, fileName: S, value: j, contentType: R }) => {
3054
3193
  if (S) {
3055
3194
  g.push({
3056
3195
  name: k,
3057
- type: E,
3196
+ type: R,
3058
3197
  file: S,
3059
3198
  data: j
3060
3199
  });
@@ -3062,8 +3201,8 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3062
3201
  }
3063
3202
  j && (b[k] = j);
3064
3203
  });
3065
- const y = Object.keys(b).length ? A(b, l) : "null", x = g.length ? A(g, l) : "null";
3066
- if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${y}, ${x});`), mt(t, "content-type") && (v = de(t, "content-type")) != null && v.indexOf("boundary")) {
3204
+ const y = Object.keys(b).length ? q(b, l) : "null", x = g.length ? q(g, l) : "null";
3205
+ if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${y}, ${x});`), ht(t, "content-type") && (v = de(t, "content-type")) != null && v.indexOf("boundary")) {
3067
3206
  const k = Z(t, "content-type");
3068
3207
  k && delete t[k];
3069
3208
  }
@@ -3071,14 +3210,14 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3071
3210
  break;
3072
3211
  }
3073
3212
  case "application/json":
3074
- f("$body = new http\\Message\\Body;"), f(`$body->append(json_encode(${A(e.jsonObj, l)}));`), h = !0;
3213
+ f("$body = new http\\Message\\Body;"), f(`$body->append(json_encode(${q(e.jsonObj, l)}));`), h = !0;
3075
3214
  break;
3076
3215
  default:
3077
- e.text && (f("$body = new http\\Message\\Body;"), f(`$body->append(${A(e.text)});`), d(), h = !0);
3216
+ e.text && (f("$body = new http\\Message\\Body;"), f(`$body->append(${q(e.text)});`), d(), h = !0);
3078
3217
  }
3079
- return f(`$request->setRequestUrl(${A(i)});`), f(`$request->setRequestMethod(${A(n)});`), h && (f("$request->setBody($body);"), d()), Object.keys(a).length && (f(`$request->setQuery(new http\\QueryString(${A(a, l)}));`), d()), Object.keys(t).length && (f(`$request->setHeaders(${A(t, l)});`), d()), Object.keys(s).length && (d(), f(`$client->setCookies(${A(s, l)});`), d()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), d(), f("echo $response->getBody();"), !c && o && (d(), f("?>")), m();
3218
+ return f(`$request->setRequestUrl(${q(i)});`), f(`$request->setRequestMethod(${q(n)});`), h && (f("$request->setBody($body);"), d()), Object.keys(a).length && (f(`$request->setQuery(new http\\QueryString(${q(a, l)}));`), d()), Object.keys(t).length && (f(`$request->setHeaders(${q(t, l)});`), d()), Object.keys(s).length && (d(), f(`$client->setCookies(${q(s, l)});`), d()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), d(), f("echo $response->getBody();"), !c && o && (d(), f("?>")), m();
3080
3219
  }
3081
- }, go = {
3220
+ }, Fo = {
3082
3221
  info: {
3083
3222
  key: "php",
3084
3223
  title: "PHP",
@@ -3086,12 +3225,12 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3086
3225
  cli: "php %s"
3087
3226
  },
3088
3227
  clientsById: {
3089
- curl: mo,
3090
- guzzle: ho,
3091
- http1: yo,
3092
- http2: vo
3228
+ curl: Eo,
3229
+ guzzle: Ro,
3230
+ http1: Ao,
3231
+ http2: qo
3093
3232
  }
3094
- }, _r = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: i, fullUrl: r, postData: o, allHeaders: l }) => {
3233
+ }, zr = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: i, fullUrl: r, postData: o, allHeaders: l }) => {
3095
3234
  const { push: c, join: u } = new O();
3096
3235
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(n.toUpperCase()))
3097
3236
  return "Method not supported";
@@ -3103,7 +3242,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3103
3242
  }), d.push("-WebSession $session")), o.text && (d.push(
3104
3243
  `-ContentType '${ze(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
3105
3244
  ), d.push(`-Body '${o.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
3106
- }, bo = {
3245
+ }, Io = {
3107
3246
  info: {
3108
3247
  key: "restmethod",
3109
3248
  title: "Invoke-RestMethod",
@@ -3111,8 +3250,8 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3111
3250
  description: "Powershell Invoke-RestMethod client",
3112
3251
  extname: ".ps1"
3113
3252
  },
3114
- convert: _r("Invoke-RestMethod")
3115
- }, xo = {
3253
+ convert: zr("Invoke-RestMethod")
3254
+ }, _o = {
3116
3255
  info: {
3117
3256
  key: "webrequest",
3118
3257
  title: "Invoke-WebRequest",
@@ -3120,19 +3259,19 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3120
3259
  description: "Powershell Invoke-WebRequest client",
3121
3260
  extname: ".ps1"
3122
3261
  },
3123
- convert: _r("Invoke-WebRequest")
3124
- }, ko = {
3262
+ convert: zr("Invoke-WebRequest")
3263
+ }, Lo = {
3125
3264
  info: {
3126
3265
  key: "powershell",
3127
3266
  title: "Powershell",
3128
3267
  default: "webrequest"
3129
3268
  },
3130
3269
  clientsById: {
3131
- webrequest: xo,
3132
- restmethod: bo
3270
+ webrequest: _o,
3271
+ restmethod: Io
3133
3272
  }
3134
3273
  };
3135
- function Nn(e, t, n, a, s) {
3274
+ function Rn(e, t, n, a, s) {
3136
3275
  const i = a.repeat(s), r = a.repeat(s - 1), o = n ? `,
3137
3276
  ${i}` : ", ", l = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
3138
3277
  return n ? `${l}
@@ -3146,13 +3285,13 @@ var Ee = (e, t, n) => {
3146
3285
  case "[object Array]": {
3147
3286
  let a = !1;
3148
3287
  const s = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), Ee(i, t, n)));
3149
- return Nn("array", s, a, t.indent, n);
3288
+ return Rn("array", s, a, t.indent, n);
3150
3289
  }
3151
3290
  case "[object Object]": {
3152
3291
  const a = [];
3153
3292
  for (const s in e)
3154
3293
  a.push(`"${s}": ${Ee(e[s], t, n)}`);
3155
- return Nn("object", a, t.pretty && a.length > 1, t.indent, n);
3294
+ return Rn("object", a, t.pretty && a.length > 1, t.indent, n);
3156
3295
  }
3157
3296
  case "[object Null]":
3158
3297
  return "None";
@@ -3161,7 +3300,7 @@ var Ee = (e, t, n) => {
3161
3300
  default:
3162
3301
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
3163
3302
  }
3164
- }, $o = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], So = {
3303
+ }, Uo = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Mo = {
3165
3304
  info: {
3166
3305
  key: "requests",
3167
3306
  title: "Requests",
@@ -3224,10 +3363,10 @@ var Ee = (e, t, n) => {
3224
3363
  r(y !== g ? `"${x}": "${G(u[x])}",` : `"${x}": "${G(u[x])}"`, 1), y += 1;
3225
3364
  }), r("}"), o();
3226
3365
  }
3227
- let b = $o.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
3366
+ let b = Uo.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
3228
3367
  return h && (v ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), g > 0 && (b += ", headers=headers"), b += ")", r(b), o(), r("print(response.text)"), l();
3229
3368
  }
3230
- }, wo = {
3369
+ }, Ho = {
3231
3370
  info: {
3232
3371
  key: "python",
3233
3372
  title: "Python",
@@ -3235,9 +3374,9 @@ var Ee = (e, t, n) => {
3235
3374
  cli: "python3 %s"
3236
3375
  },
3237
3376
  clientsById: {
3238
- requests: So
3377
+ requests: Mo
3239
3378
  }
3240
- }, jo = {
3379
+ }, Bo = {
3241
3380
  info: {
3242
3381
  key: "httr",
3243
3382
  title: "httr",
@@ -3270,22 +3409,22 @@ var Ee = (e, t, n) => {
3270
3409
  r('encode <- "raw"'), o();
3271
3410
  break;
3272
3411
  }
3273
- const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${G(m)}")` : void 0, g = `content_type("${G(a.mimeType)}")`, b = Object.entries(s).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, j]) => `'${S}' = '${Je(j)}'`).join(", "), y = b ? `add_headers(${b})` : void 0;
3412
+ const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${G(m)}")` : void 0, g = `content_type("${G(a.mimeType)}")`, b = Object.entries(s).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, j]) => `'${S}' = '${De(j)}'`).join(", "), y = b ? `add_headers(${b})` : void 0;
3274
3413
  let x = `response <- VERB("${i}", url`;
3275
3414
  f && (x += ", body = payload"), n.length && (x += ", query = queryString");
3276
3415
  const k = [y, g, v, h].filter((S) => !!S).join(", ");
3277
3416
  return k && (x += `, ${k}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), o(), r('content(response, "text")'), l();
3278
3417
  }
3279
- }, No = {
3418
+ }, Vo = {
3280
3419
  info: {
3281
3420
  key: "r",
3282
3421
  title: "R",
3283
3422
  default: "httr"
3284
3423
  },
3285
3424
  clientsById: {
3286
- httr: jo
3425
+ httr: Bo
3287
3426
  }
3288
- }, To = {
3427
+ }, zo = {
3289
3428
  info: {
3290
3429
  key: "native",
3291
3430
  title: "net::http",
@@ -3313,19 +3452,19 @@ var Ee = (e, t, n) => {
3313
3452
  c.includes(l) || (i(`class Net::HTTP::${u} < Net::HTTPRequest`), i(` METHOD = '${l.toUpperCase()}'`), i(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), i(" RESPONSE_HAS_BODY = true"), i("end"), r()), i(`url = URI("${n}")`), r(), i("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && i("http.use_ssl = true"), r(), i(`request = Net::HTTP::${u}.new(url)`);
3314
3453
  const f = Object.keys(s);
3315
3454
  return f.length && f.forEach((d) => {
3316
- i(`request["${d}"] = '${Je(s[d])}'`);
3455
+ i(`request["${d}"] = '${De(s[d])}'`);
3317
3456
  }), a.text && i(`request.body = ${JSON.stringify(a.text)}`), r(), i("response = http.request(request)"), i("puts response.read_body"), o();
3318
3457
  }
3319
- }, Oo = {
3458
+ }, Do = {
3320
3459
  info: {
3321
3460
  key: "ruby",
3322
3461
  title: "Ruby",
3323
3462
  default: "native"
3324
3463
  },
3325
3464
  clientsById: {
3326
- native: To
3465
+ native: zo
3327
3466
  }
3328
- }, K = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Co = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Po = {
3467
+ }, K = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Jo = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Wo = {
3329
3468
  "http1.0": "0",
3330
3469
  "url ": "",
3331
3470
  cookie: "b",
@@ -3335,13 +3474,13 @@ var Ee = (e, t, n) => {
3335
3474
  header: "H",
3336
3475
  insecure: "k",
3337
3476
  request: "X"
3338
- }, Eo = (e) => (t) => {
3477
+ }, Go = (e) => (t) => {
3339
3478
  if (e) {
3340
- const n = Po[t];
3479
+ const n = Wo[t];
3341
3480
  return n ? `-${n}` : "";
3342
3481
  }
3343
3482
  return `--${t}`;
3344
- }, Ro = {
3483
+ }, Qo = {
3345
3484
  info: {
3346
3485
  key: "curl",
3347
3486
  title: "cURL",
@@ -3355,7 +3494,7 @@ var Ee = (e, t, n) => {
3355
3494
  ...typeof o == "string" ? { indent: o } : {},
3356
3495
  join: o !== !1 ? ` \\
3357
3496
  ${o}` : " "
3358
- }), h = Eo(l);
3497
+ }), h = Go(l);
3359
3498
  let v = K(e);
3360
3499
  if (d(`curl ${h("request")} ${t}`), u && (v = unescape(v), d(h("globoff"))), d(`${h("url ")}${v}`), n === "HTTP/1.0" && d(h("http1.0")), de(s, "accept-encoding") && d("--compressed"), i.mimeType === "multipart/form-data") {
3361
3500
  const b = Z(a, "content-type");
@@ -3379,15 +3518,15 @@ ${o}` : " "
3379
3518
  break;
3380
3519
  case "application/x-www-form-urlencoded":
3381
3520
  i.params ? i.params.forEach((y) => {
3382
- const x = y.name, k = encodeURIComponent(y.name), S = k !== x, j = S ? k : x, E = c ? "--data-binary" : S ? "--data-urlencode" : h("data");
3383
- d(`${E} ${K(`${j}=${y.value}`)}`);
3521
+ const x = y.name, k = encodeURIComponent(y.name), S = k !== x, j = S ? k : x, R = c ? "--data-binary" : S ? "--data-urlencode" : h("data");
3522
+ d(`${R} ${K(`${j}=${y.value}`)}`);
3384
3523
  }) : d(`${c ? "--data-binary" : h("data")} ${K(i.text)}`);
3385
3524
  break;
3386
3525
  default:
3387
3526
  if (!i.text)
3388
3527
  break;
3389
3528
  let b = !1;
3390
- if (Pi(i.mimeType) && i.text.length > 20)
3529
+ if (Wi(i.mimeType) && i.text.length > 20)
3391
3530
  try {
3392
3531
  const y = JSON.parse(i.text);
3393
3532
  b = !0, i.text.indexOf("'") > 0 ? d(
@@ -3409,7 +3548,7 @@ ${JSON.stringify(y, null, f)}
3409
3548
  }
3410
3549
  return m();
3411
3550
  }
3412
- }, Ao = {
3551
+ }, Ko = {
3413
3552
  info: {
3414
3553
  key: "httpie",
3415
3554
  title: "HTTPie",
@@ -3458,7 +3597,7 @@ ${o.indent}` : " "
3458
3597
  }
3459
3598
  return c();
3460
3599
  }
3461
- }, qo = {
3600
+ }, Yo = {
3462
3601
  info: {
3463
3602
  key: "wget",
3464
3603
  title: "Wget",
@@ -3480,9 +3619,9 @@ ${i.indent}` : " "
3480
3619
  return i.verbose ? r(`wget ${i.short ? "-v" : "--verbose"}`) : r(`wget ${i.short ? "-q" : "--quiet"}`), r(`--method ${K(e)}`), Object.keys(n).forEach((l) => {
3481
3620
  const c = `${l}: ${n[l]}`;
3482
3621
  r(`--header ${K(c)}`);
3483
- }), t.text && r(`--body-data ${Co(K(t.text))}`), r(i.short ? "-O" : "--output-document"), r(`- ${K(a)}`), o();
3622
+ }), t.text && r(`--body-data ${Jo(K(t.text))}`), r(i.short ? "-O" : "--output-document"), r(`- ${K(a)}`), o();
3484
3623
  }
3485
- }, Fo = {
3624
+ }, Xo = {
3486
3625
  info: {
3487
3626
  key: "shell",
3488
3627
  title: "Shell",
@@ -3490,30 +3629,30 @@ ${i.indent}` : " "
3490
3629
  cli: "%s"
3491
3630
  },
3492
3631
  clientsById: {
3493
- curl: Ro,
3494
- httpie: Ao,
3495
- wget: qo
3632
+ curl: Qo,
3633
+ httpie: Ko,
3634
+ wget: Yo
3496
3635
  }
3497
- }, Tn = (e, t) => t.repeat(e), On = (e, t, n, a) => {
3498
- const s = Tn(a, n), i = Tn(a - 1, n), r = t ? `,
3636
+ }, An = (e, t) => t.repeat(e), qn = (e, t, n, a) => {
3637
+ const s = An(a, n), i = An(a - 1, n), r = t ? `,
3499
3638
  ${s}` : ", ";
3500
3639
  return t ? `[
3501
3640
  ${s}${e.join(r)}
3502
3641
  ${i}]` : `[${e.join(r)}]`;
3503
- }, Cn = (e, t, n) => `let ${e} = ${st(t, n)}`, st = (e, t, n) => {
3642
+ }, Fn = (e, t, n) => `let ${e} = ${st(t, n)}`, st = (e, t, n) => {
3504
3643
  switch (n = n === void 0 ? 1 : n + 1, Object.prototype.toString.call(e)) {
3505
3644
  case "[object Number]":
3506
3645
  return e;
3507
3646
  case "[object Array]": {
3508
3647
  let a = !1;
3509
3648
  const s = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), st(i, t, n)));
3510
- return On(s, a, t.indent, n);
3649
+ return qn(s, a, t.indent, n);
3511
3650
  }
3512
3651
  case "[object Object]": {
3513
3652
  const a = [];
3514
3653
  for (const s in e)
3515
3654
  a.push(`"${s}": ${st(e[s], t, n)}`);
3516
- return On(
3655
+ return qn(
3517
3656
  a,
3518
3657
  // @ts-expect-error needs better types
3519
3658
  t.pretty && a.length > 1,
@@ -3527,7 +3666,7 @@ ${i}]` : `[${e.join(r)}]`;
3527
3666
  default:
3528
3667
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
3529
3668
  }
3530
- }, Io = {
3669
+ }, Zo = {
3531
3670
  info: {
3532
3671
  key: "urlsession",
3533
3672
  title: "URLSession",
@@ -3554,10 +3693,10 @@ ${i}]` : `[${e.join(r)}]`;
3554
3693
  }
3555
3694
  break;
3556
3695
  case "application/json":
3557
- t.jsonObj && (o(`${Cn("parameters", t.jsonObj, r)} as [String : Any?]`), l(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
3696
+ t.jsonObj && (o(`${Fn("parameters", t.jsonObj, r)} as [String : Any?]`), l(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
3558
3697
  break;
3559
3698
  case "multipart/form-data":
3560
- o(Cn("parameters", t.params, r)), l(), o(`let boundary = "${t.boundary}"`), l(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), l(), o("let postData = Data(body.utf8)"), l();
3699
+ o(Fn("parameters", t.params, r)), l(), o(`let boundary = "${t.boundary}"`), l(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), l(), o("let postData = Data(body.utf8)"), l();
3561
3700
  break;
3562
3701
  default:
3563
3702
  o(`let postData = Data("${t.text}".utf8)`), l();
@@ -3578,122 +3717,122 @@ ${i}]` : `[${e.join(r)}]`;
3578
3717
  }
3579
3718
  }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${s}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, r)}`), u && o("request.httpBody = postData"), l(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), c();
3580
3719
  }
3581
- }, _o = {
3720
+ }, es = {
3582
3721
  info: {
3583
3722
  key: "swift",
3584
3723
  title: "Swift",
3585
3724
  default: "urlsession"
3586
3725
  },
3587
3726
  clientsById: {
3588
- urlsession: Io
3589
- }
3590
- }, Lo = {
3591
- c: Ci,
3592
- clojure: Ai,
3593
- csharp: Li,
3594
- go: Hi,
3595
- http: Bi,
3596
- java: Di,
3597
- javascript: Xi,
3598
- json: eo,
3599
- kotlin: no,
3600
- node: lo,
3601
- objc: uo,
3602
- ocaml: fo,
3603
- php: go,
3604
- powershell: ko,
3605
- python: wo,
3606
- r: No,
3607
- ruby: Oo,
3608
- shell: Fo,
3609
- swift: _o
3727
+ urlsession: Zo
3728
+ }
3729
+ }, ts = {
3730
+ c: Ji,
3731
+ clojure: Ki,
3732
+ csharp: to,
3733
+ go: ro,
3734
+ http: io,
3735
+ java: uo,
3736
+ javascript: yo,
3737
+ json: go,
3738
+ kotlin: xo,
3739
+ node: No,
3740
+ objc: Oo,
3741
+ ocaml: Po,
3742
+ php: Fo,
3743
+ powershell: Lo,
3744
+ python: Ho,
3745
+ r: Vo,
3746
+ ruby: Do,
3747
+ shell: Xo,
3748
+ swift: es
3610
3749
  }, lt = { exports: {} };
3611
3750
  /*! https://mths.be/punycode v1.4.1 by @mathias */
3612
3751
  lt.exports;
3613
3752
  (function(e, t) {
3614
3753
  (function(n) {
3615
- var a = t && !t.nodeType && t, s = e && !e.nodeType && e, i = typeof He == "object" && He;
3754
+ var a = t && !t.nodeType && t, s = e && !e.nodeType && e, i = typeof Me == "object" && Me;
3616
3755
  (i.global === i || i.window === i || i.self === i) && (n = i);
3617
3756
  var r, o = 2147483647, l = 36, c = 1, u = 26, f = 38, d = 700, m = 72, h = 128, v = "-", g = /^xn--/, b = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
3618
3757
  overflow: "Overflow: input needs wider integers to process",
3619
3758
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3620
3759
  "invalid-input": "Invalid input"
3621
- }, k = l - c, S = Math.floor, j = String.fromCharCode, E;
3622
- function P(w) {
3760
+ }, k = l - c, S = Math.floor, j = String.fromCharCode, R;
3761
+ function E(w) {
3623
3762
  throw new RangeError(x[w]);
3624
3763
  }
3625
- function R(w, N) {
3626
- for (var C = w.length, L = []; C--; )
3627
- L[C] = N(w[C]);
3628
- return L;
3764
+ function A(w, N) {
3765
+ for (var C = w.length, U = []; C--; )
3766
+ U[C] = N(w[C]);
3767
+ return U;
3629
3768
  }
3630
- function U(w, N) {
3631
- var C = w.split("@"), L = "";
3632
- C.length > 1 && (L = C[0] + "@", w = C[1]), w = w.replace(y, ".");
3633
- var M = w.split("."), te = R(M, N).join(".");
3634
- return L + te;
3769
+ function H(w, N) {
3770
+ var C = w.split("@"), U = "";
3771
+ C.length > 1 && (U = C[0] + "@", w = C[1]), w = w.replace(y, ".");
3772
+ var V = w.split("."), te = A(V, N).join(".");
3773
+ return U + te;
3635
3774
  }
3636
3775
  function $(w) {
3637
- for (var N = [], C = 0, L = w.length, M, te; C < L; )
3638
- M = w.charCodeAt(C++), M >= 55296 && M <= 56319 && C < L ? (te = w.charCodeAt(C++), (te & 64512) == 56320 ? N.push(((M & 1023) << 10) + (te & 1023) + 65536) : (N.push(M), C--)) : N.push(M);
3776
+ for (var N = [], C = 0, U = w.length, V, te; C < U; )
3777
+ V = w.charCodeAt(C++), V >= 55296 && V <= 56319 && C < U ? (te = w.charCodeAt(C++), (te & 64512) == 56320 ? N.push(((V & 1023) << 10) + (te & 1023) + 65536) : (N.push(V), C--)) : N.push(V);
3639
3778
  return N;
3640
3779
  }
3641
- function _(w) {
3642
- return R(w, function(N) {
3780
+ function L(w) {
3781
+ return A(w, function(N) {
3643
3782
  var C = "";
3644
3783
  return N > 65535 && (N -= 65536, C += j(N >>> 10 & 1023 | 55296), N = 56320 | N & 1023), C += j(N), C;
3645
3784
  }).join("");
3646
3785
  }
3647
- function F(w) {
3786
+ function I(w) {
3648
3787
  return w - 48 < 10 ? w - 22 : w - 65 < 26 ? w - 65 : w - 97 < 26 ? w - 97 : l;
3649
3788
  }
3650
3789
  function z(w, N) {
3651
3790
  return w + 22 + 75 * (w < 26) - ((N != 0) << 5);
3652
3791
  }
3653
- function H(w, N, C) {
3654
- var L = 0;
3655
- for (w = C ? S(w / d) : w >> 1, w += S(w / N); w > k * u >> 1; L += l)
3792
+ function B(w, N, C) {
3793
+ var U = 0;
3794
+ for (w = C ? S(w / d) : w >> 1, w += S(w / N); w > k * u >> 1; U += l)
3656
3795
  w = S(w / k);
3657
- return S(L + (k + 1) * w / (w + f));
3796
+ return S(U + (k + 1) * w / (w + f));
3658
3797
  }
3659
- function J(w) {
3660
- var N = [], C = w.length, L, M = 0, te = h, Q = m, ne, ae, se, fe, X, re, ie, ye, xe;
3798
+ function D(w) {
3799
+ var N = [], C = w.length, U, V = 0, te = h, Q = m, ne, ae, se, fe, X, re, ie, ye, xe;
3661
3800
  for (ne = w.lastIndexOf(v), ne < 0 && (ne = 0), ae = 0; ae < ne; ++ae)
3662
- w.charCodeAt(ae) >= 128 && P("not-basic"), N.push(w.charCodeAt(ae));
3801
+ w.charCodeAt(ae) >= 128 && E("not-basic"), N.push(w.charCodeAt(ae));
3663
3802
  for (se = ne > 0 ? ne + 1 : 0; se < C; ) {
3664
- for (fe = M, X = 1, re = l; se >= C && P("invalid-input"), ie = F(w.charCodeAt(se++)), (ie >= l || ie > S((o - M) / X)) && P("overflow"), M += ie * X, ye = re <= Q ? c : re >= Q + u ? u : re - Q, !(ie < ye); re += l)
3665
- xe = l - ye, X > S(o / xe) && P("overflow"), X *= xe;
3666
- L = N.length + 1, Q = H(M - fe, L, fe == 0), S(M / L) > o - te && P("overflow"), te += S(M / L), M %= L, N.splice(M++, 0, te);
3803
+ for (fe = V, X = 1, re = l; se >= C && E("invalid-input"), ie = I(w.charCodeAt(se++)), (ie >= l || ie > S((o - V) / X)) && E("overflow"), V += ie * X, ye = re <= Q ? c : re >= Q + u ? u : re - Q, !(ie < ye); re += l)
3804
+ xe = l - ye, X > S(o / xe) && E("overflow"), X *= xe;
3805
+ U = N.length + 1, Q = B(V - fe, U, fe == 0), S(V / U) > o - te && E("overflow"), te += S(V / U), V %= U, N.splice(V++, 0, te);
3667
3806
  }
3668
- return _(N);
3807
+ return L(N);
3669
3808
  }
3670
- function I(w) {
3671
- var N, C, L, M, te, Q, ne, ae, se, fe, X, re = [], ie, ye, xe, ht;
3809
+ function _(w) {
3810
+ var N, C, U, V, te, Q, ne, ae, se, fe, X, re = [], ie, ye, xe, yt;
3672
3811
  for (w = $(w), ie = w.length, N = h, C = 0, te = m, Q = 0; Q < ie; ++Q)
3673
3812
  X = w[Q], X < 128 && re.push(j(X));
3674
- for (L = M = re.length, M && re.push(v); L < ie; ) {
3813
+ for (U = V = re.length, V && re.push(v); U < ie; ) {
3675
3814
  for (ne = o, Q = 0; Q < ie; ++Q)
3676
3815
  X = w[Q], X >= N && X < ne && (ne = X);
3677
- for (ye = L + 1, ne - N > S((o - C) / ye) && P("overflow"), C += (ne - N) * ye, N = ne, Q = 0; Q < ie; ++Q)
3678
- if (X = w[Q], X < N && ++C > o && P("overflow"), X == N) {
3816
+ for (ye = U + 1, ne - N > S((o - C) / ye) && E("overflow"), C += (ne - N) * ye, N = ne, Q = 0; Q < ie; ++Q)
3817
+ if (X = w[Q], X < N && ++C > o && E("overflow"), X == N) {
3679
3818
  for (ae = C, se = l; fe = se <= te ? c : se >= te + u ? u : se - te, !(ae < fe); se += l)
3680
- ht = ae - fe, xe = l - fe, re.push(
3681
- j(z(fe + ht % xe, 0))
3682
- ), ae = S(ht / xe);
3683
- re.push(j(z(ae, 0))), te = H(C, ye, L == M), C = 0, ++L;
3819
+ yt = ae - fe, xe = l - fe, re.push(
3820
+ j(z(fe + yt % xe, 0))
3821
+ ), ae = S(yt / xe);
3822
+ re.push(j(z(ae, 0))), te = B(C, ye, U == V), C = 0, ++U;
3684
3823
  }
3685
3824
  ++C, ++N;
3686
3825
  }
3687
3826
  return re.join("");
3688
3827
  }
3689
3828
  function he(w) {
3690
- return U(w, function(N) {
3691
- return g.test(N) ? J(N.slice(4).toLowerCase()) : N;
3829
+ return H(w, function(N) {
3830
+ return g.test(N) ? D(N.slice(4).toLowerCase()) : N;
3692
3831
  });
3693
3832
  }
3694
3833
  function pe(w) {
3695
- return U(w, function(N) {
3696
- return b.test(N) ? "xn--" + I(N) : N;
3834
+ return H(w, function(N) {
3835
+ return b.test(N) ? "xn--" + _(N) : N;
3697
3836
  });
3698
3837
  }
3699
3838
  if (r = {
@@ -3712,23 +3851,23 @@ lt.exports;
3712
3851
  */
3713
3852
  ucs2: {
3714
3853
  decode: $,
3715
- encode: _
3854
+ encode: L
3716
3855
  },
3717
- decode: J,
3718
- encode: I,
3856
+ decode: D,
3857
+ encode: _,
3719
3858
  toASCII: pe,
3720
3859
  toUnicode: he
3721
3860
  }, a && s)
3722
3861
  if (e.exports == a)
3723
3862
  s.exports = r;
3724
3863
  else
3725
- for (E in r)
3726
- r.hasOwnProperty(E) && (a[E] = r[E]);
3864
+ for (R in r)
3865
+ r.hasOwnProperty(R) && (a[R] = r[R]);
3727
3866
  else
3728
3867
  n.punycode = r;
3729
- })(He);
3868
+ })(Me);
3730
3869
  })(lt, lt.exports);
3731
- var Uo = lt.exports, Ho = Error, Mo = EvalError, Bo = RangeError, Vo = ReferenceError, Lr = SyntaxError, Ge = TypeError, zo = URIError, Jo = function() {
3870
+ var ns = lt.exports, rs = Error, as = EvalError, is = RangeError, os = ReferenceError, Dr = SyntaxError, Ge = TypeError, ss = URIError, ls = function() {
3732
3871
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3733
3872
  return !1;
3734
3873
  if (typeof Symbol.iterator == "symbol")
@@ -3751,54 +3890,54 @@ var Uo = lt.exports, Ho = Error, Mo = EvalError, Bo = RangeError, Vo = Reference
3751
3890
  return !1;
3752
3891
  }
3753
3892
  return !0;
3754
- }, Pn = typeof Symbol < "u" && Symbol, Wo = Jo, Do = function() {
3755
- return typeof Pn != "function" || typeof Symbol != "function" || typeof Pn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Wo();
3756
- }, $t = {
3893
+ }, In = typeof Symbol < "u" && Symbol, cs = ls, us = function() {
3894
+ return typeof In != "function" || typeof Symbol != "function" || typeof In("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : cs();
3895
+ }, jt = {
3757
3896
  __proto__: null,
3758
3897
  foo: {}
3759
- }, Go = Object, Qo = function() {
3760
- return { __proto__: $t }.foo === $t.foo && !($t instanceof Go);
3761
- }, Ko = "Function.prototype.bind called on incompatible ", Yo = Object.prototype.toString, Xo = Math.max, Zo = "[object Function]", En = function(t, n) {
3898
+ }, ds = Object, ps = function() {
3899
+ return { __proto__: jt }.foo === jt.foo && !(jt instanceof ds);
3900
+ }, fs = "Function.prototype.bind called on incompatible ", ms = Object.prototype.toString, hs = Math.max, ys = "[object Function]", _n = function(t, n) {
3762
3901
  for (var a = [], s = 0; s < t.length; s += 1)
3763
3902
  a[s] = t[s];
3764
3903
  for (var i = 0; i < n.length; i += 1)
3765
3904
  a[i + t.length] = n[i];
3766
3905
  return a;
3767
- }, es = function(t, n) {
3906
+ }, vs = function(t, n) {
3768
3907
  for (var a = [], s = n, i = 0; s < t.length; s += 1, i += 1)
3769
3908
  a[i] = t[s];
3770
3909
  return a;
3771
- }, ts = function(e, t) {
3910
+ }, gs = function(e, t) {
3772
3911
  for (var n = "", a = 0; a < e.length; a += 1)
3773
3912
  n += e[a], a + 1 < e.length && (n += t);
3774
3913
  return n;
3775
- }, ns = function(t) {
3914
+ }, bs = function(t) {
3776
3915
  var n = this;
3777
- if (typeof n != "function" || Yo.apply(n) !== Zo)
3778
- throw new TypeError(Ko + n);
3779
- for (var a = es(arguments, 1), s, i = function() {
3916
+ if (typeof n != "function" || ms.apply(n) !== ys)
3917
+ throw new TypeError(fs + n);
3918
+ for (var a = vs(arguments, 1), s, i = function() {
3780
3919
  if (this instanceof s) {
3781
3920
  var u = n.apply(
3782
3921
  this,
3783
- En(a, arguments)
3922
+ _n(a, arguments)
3784
3923
  );
3785
3924
  return Object(u) === u ? u : this;
3786
3925
  }
3787
3926
  return n.apply(
3788
3927
  t,
3789
- En(a, arguments)
3928
+ _n(a, arguments)
3790
3929
  );
3791
- }, r = Xo(0, n.length - a.length), o = [], l = 0; l < r; l++)
3930
+ }, r = hs(0, n.length - a.length), o = [], l = 0; l < r; l++)
3792
3931
  o[l] = "$" + l;
3793
- if (s = Function("binder", "return function (" + ts(o, ",") + "){ return binder.apply(this,arguments); }")(i), n.prototype) {
3932
+ if (s = Function("binder", "return function (" + gs(o, ",") + "){ return binder.apply(this,arguments); }")(i), n.prototype) {
3794
3933
  var c = function() {
3795
3934
  };
3796
3935
  c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
3797
3936
  }
3798
3937
  return s;
3799
- }, rs = ns, tn = Function.prototype.bind || rs, as = Function.prototype.call, is = Object.prototype.hasOwnProperty, os = tn, ss = os.call(as, is), T, ls = Ho, cs = Mo, us = Bo, ds = Vo, qe = Lr, Re = Ge, ps = zo, Ur = Function, St = function(e) {
3938
+ }, xs = bs, on = Function.prototype.bind || xs, ks = Function.prototype.call, $s = Object.prototype.hasOwnProperty, Ss = on, ws = Ss.call(ks, $s), T, js = rs, Ns = as, Ts = is, Os = os, qe = Dr, Re = Ge, Cs = ss, Jr = Function, Nt = function(e) {
3800
3939
  try {
3801
- return Ur('"use strict"; return (' + e + ").constructor;")();
3940
+ return Jr('"use strict"; return (' + e + ").constructor;")();
3802
3941
  } catch {
3803
3942
  }
3804
3943
  }, Se = Object.getOwnPropertyDescriptor;
@@ -3808,26 +3947,26 @@ if (Se)
3808
3947
  } catch {
3809
3948
  Se = null;
3810
3949
  }
3811
- var wt = function() {
3950
+ var Tt = function() {
3812
3951
  throw new Re();
3813
- }, fs = Se ? function() {
3952
+ }, Ps = Se ? function() {
3814
3953
  try {
3815
- return arguments.callee, wt;
3954
+ return arguments.callee, Tt;
3816
3955
  } catch {
3817
3956
  try {
3818
3957
  return Se(arguments, "callee").get;
3819
3958
  } catch {
3820
- return wt;
3959
+ return Tt;
3821
3960
  }
3822
3961
  }
3823
- }() : wt, Ne = Do(), ms = Qo(), D = Object.getPrototypeOf || (ms ? function(e) {
3962
+ }() : Tt, Ne = us(), Es = ps(), W = Object.getPrototypeOf || (Es ? function(e) {
3824
3963
  return e.__proto__;
3825
- } : null), Pe = {}, hs = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), we = {
3964
+ } : null), Pe = {}, Rs = typeof Uint8Array > "u" || !W ? T : W(Uint8Array), we = {
3826
3965
  __proto__: null,
3827
3966
  "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
3828
3967
  "%Array%": Array,
3829
3968
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? T : ArrayBuffer,
3830
- "%ArrayIteratorPrototype%": Ne && D ? D([][Symbol.iterator]()) : T,
3969
+ "%ArrayIteratorPrototype%": Ne && W ? W([][Symbol.iterator]()) : T,
3831
3970
  "%AsyncFromSyncIteratorPrototype%": T,
3832
3971
  "%AsyncFunction%": Pe,
3833
3972
  "%AsyncGenerator%": Pe,
@@ -3844,24 +3983,24 @@ var wt = function() {
3844
3983
  "%decodeURIComponent%": decodeURIComponent,
3845
3984
  "%encodeURI%": encodeURI,
3846
3985
  "%encodeURIComponent%": encodeURIComponent,
3847
- "%Error%": ls,
3986
+ "%Error%": js,
3848
3987
  "%eval%": eval,
3849
3988
  // eslint-disable-line no-eval
3850
- "%EvalError%": cs,
3989
+ "%EvalError%": Ns,
3851
3990
  "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
3852
3991
  "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
3853
3992
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
3854
- "%Function%": Ur,
3993
+ "%Function%": Jr,
3855
3994
  "%GeneratorFunction%": Pe,
3856
3995
  "%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
3857
3996
  "%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
3858
3997
  "%Int32Array%": typeof Int32Array > "u" ? T : Int32Array,
3859
3998
  "%isFinite%": isFinite,
3860
3999
  "%isNaN%": isNaN,
3861
- "%IteratorPrototype%": Ne && D ? D(D([][Symbol.iterator]())) : T,
4000
+ "%IteratorPrototype%": Ne && W ? W(W([][Symbol.iterator]())) : T,
3862
4001
  "%JSON%": typeof JSON == "object" ? JSON : T,
3863
4002
  "%Map%": typeof Map > "u" ? T : Map,
3864
- "%MapIteratorPrototype%": typeof Map > "u" || !Ne || !D ? T : D((/* @__PURE__ */ new Map())[Symbol.iterator]()),
4003
+ "%MapIteratorPrototype%": typeof Map > "u" || !Ne || !W ? T : W((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3865
4004
  "%Math%": Math,
3866
4005
  "%Number%": Number,
3867
4006
  "%Object%": Object,
@@ -3869,53 +4008,53 @@ var wt = function() {
3869
4008
  "%parseInt%": parseInt,
3870
4009
  "%Promise%": typeof Promise > "u" ? T : Promise,
3871
4010
  "%Proxy%": typeof Proxy > "u" ? T : Proxy,
3872
- "%RangeError%": us,
3873
- "%ReferenceError%": ds,
4011
+ "%RangeError%": Ts,
4012
+ "%ReferenceError%": Os,
3874
4013
  "%Reflect%": typeof Reflect > "u" ? T : Reflect,
3875
4014
  "%RegExp%": RegExp,
3876
4015
  "%Set%": typeof Set > "u" ? T : Set,
3877
- "%SetIteratorPrototype%": typeof Set > "u" || !Ne || !D ? T : D((/* @__PURE__ */ new Set())[Symbol.iterator]()),
4016
+ "%SetIteratorPrototype%": typeof Set > "u" || !Ne || !W ? T : W((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3878
4017
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? T : SharedArrayBuffer,
3879
4018
  "%String%": String,
3880
- "%StringIteratorPrototype%": Ne && D ? D(""[Symbol.iterator]()) : T,
4019
+ "%StringIteratorPrototype%": Ne && W ? W(""[Symbol.iterator]()) : T,
3881
4020
  "%Symbol%": Ne ? Symbol : T,
3882
4021
  "%SyntaxError%": qe,
3883
- "%ThrowTypeError%": fs,
3884
- "%TypedArray%": hs,
4022
+ "%ThrowTypeError%": Ps,
4023
+ "%TypedArray%": Rs,
3885
4024
  "%TypeError%": Re,
3886
4025
  "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
3887
4026
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
3888
4027
  "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
3889
4028
  "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
3890
- "%URIError%": ps,
4029
+ "%URIError%": Cs,
3891
4030
  "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
3892
4031
  "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
3893
4032
  "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
3894
4033
  };
3895
- if (D)
4034
+ if (W)
3896
4035
  try {
3897
4036
  null.error;
3898
4037
  } catch (e) {
3899
- var ys = D(D(e));
3900
- we["%Error.prototype%"] = ys;
4038
+ var As = W(W(e));
4039
+ we["%Error.prototype%"] = As;
3901
4040
  }
3902
- var vs = function e(t) {
4041
+ var qs = function e(t) {
3903
4042
  var n;
3904
4043
  if (t === "%AsyncFunction%")
3905
- n = St("async function () {}");
4044
+ n = Nt("async function () {}");
3906
4045
  else if (t === "%GeneratorFunction%")
3907
- n = St("function* () {}");
4046
+ n = Nt("function* () {}");
3908
4047
  else if (t === "%AsyncGeneratorFunction%")
3909
- n = St("async function* () {}");
4048
+ n = Nt("async function* () {}");
3910
4049
  else if (t === "%AsyncGenerator%") {
3911
4050
  var a = e("%AsyncGeneratorFunction%");
3912
4051
  a && (n = a.prototype);
3913
4052
  } else if (t === "%AsyncIteratorPrototype%") {
3914
4053
  var s = e("%AsyncGenerator%");
3915
- s && D && (n = D(s.prototype));
4054
+ s && W && (n = W(s.prototype));
3916
4055
  }
3917
4056
  return we[t] = n, n;
3918
- }, Rn = {
4057
+ }, Ln = {
3919
4058
  __proto__: null,
3920
4059
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3921
4060
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -3968,21 +4107,21 @@ var vs = function e(t) {
3968
4107
  "%URIErrorPrototype%": ["URIError", "prototype"],
3969
4108
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3970
4109
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3971
- }, Qe = tn, ct = ss, gs = Qe.call(Function.call, Array.prototype.concat), bs = Qe.call(Function.apply, Array.prototype.splice), An = Qe.call(Function.call, String.prototype.replace), ut = Qe.call(Function.call, String.prototype.slice), xs = Qe.call(Function.call, RegExp.prototype.exec), ks = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, $s = /\\(\\)?/g, Ss = function(t) {
4110
+ }, Qe = on, ct = ws, Fs = Qe.call(Function.call, Array.prototype.concat), Is = Qe.call(Function.apply, Array.prototype.splice), Un = Qe.call(Function.call, String.prototype.replace), ut = Qe.call(Function.call, String.prototype.slice), _s = Qe.call(Function.call, RegExp.prototype.exec), Ls = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Us = /\\(\\)?/g, Ms = function(t) {
3972
4111
  var n = ut(t, 0, 1), a = ut(t, -1);
3973
4112
  if (n === "%" && a !== "%")
3974
4113
  throw new qe("invalid intrinsic syntax, expected closing `%`");
3975
4114
  if (a === "%" && n !== "%")
3976
4115
  throw new qe("invalid intrinsic syntax, expected opening `%`");
3977
4116
  var s = [];
3978
- return An(t, ks, function(i, r, o, l) {
3979
- s[s.length] = o ? An(l, $s, "$1") : r || i;
4117
+ return Un(t, Ls, function(i, r, o, l) {
4118
+ s[s.length] = o ? Un(l, Us, "$1") : r || i;
3980
4119
  }), s;
3981
- }, ws = function(t, n) {
4120
+ }, Hs = function(t, n) {
3982
4121
  var a = t, s;
3983
- if (ct(Rn, a) && (s = Rn[a], a = "%" + s[0] + "%"), ct(we, a)) {
4122
+ if (ct(Ln, a) && (s = Ln[a], a = "%" + s[0] + "%"), ct(we, a)) {
3984
4123
  var i = we[a];
3985
- if (i === Pe && (i = vs(a)), typeof i > "u" && !n)
4124
+ if (i === Pe && (i = qs(a)), typeof i > "u" && !n)
3986
4125
  throw new Re("intrinsic " + t + " exists, but is not available. Please file an issue!");
3987
4126
  return {
3988
4127
  alias: s,
@@ -3996,10 +4135,10 @@ var vs = function e(t) {
3996
4135
  throw new Re("intrinsic name must be a non-empty string");
3997
4136
  if (arguments.length > 1 && typeof n != "boolean")
3998
4137
  throw new Re('"allowMissing" argument must be a boolean');
3999
- if (xs(/^%?[^%]*%?$/, t) === null)
4138
+ if (_s(/^%?[^%]*%?$/, t) === null)
4000
4139
  throw new qe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
4001
- var a = Ss(t), s = a.length > 0 ? a[0] : "", i = ws("%" + s + "%", n), r = i.name, o = i.value, l = !1, c = i.alias;
4002
- c && (s = c[0], bs(a, gs([0, 1], c)));
4140
+ var a = Ms(t), s = a.length > 0 ? a[0] : "", i = Hs("%" + s + "%", n), r = i.name, o = i.value, l = !1, c = i.alias;
4141
+ c && (s = c[0], Is(a, Fs([0, 1], c)));
4003
4142
  for (var u = 1, f = !0; u < a.length; u += 1) {
4004
4143
  var d = a[u], m = ut(d, 0, 1), h = ut(d, -1);
4005
4144
  if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
@@ -4021,10 +4160,10 @@ var vs = function e(t) {
4021
4160
  }
4022
4161
  }
4023
4162
  return o;
4024
- }, Hr = { exports: {} }, jt, qn;
4025
- function nn() {
4026
- if (qn) return jt;
4027
- qn = 1;
4163
+ }, Wr = { exports: {} }, Ot, Mn;
4164
+ function sn() {
4165
+ if (Mn) return Ot;
4166
+ Mn = 1;
4028
4167
  var e = _e, t = e("%Object.defineProperty%", !0) || !1;
4029
4168
  if (t)
4030
4169
  try {
@@ -4032,16 +4171,16 @@ function nn() {
4032
4171
  } catch {
4033
4172
  t = !1;
4034
4173
  }
4035
- return jt = t, jt;
4174
+ return Ot = t, Ot;
4036
4175
  }
4037
- var js = _e, nt = js("%Object.getOwnPropertyDescriptor%", !0);
4176
+ var Bs = _e, nt = Bs("%Object.getOwnPropertyDescriptor%", !0);
4038
4177
  if (nt)
4039
4178
  try {
4040
4179
  nt([], "length");
4041
4180
  } catch {
4042
4181
  nt = null;
4043
4182
  }
4044
- var Mr = nt, Fn = nn(), Ns = Lr, Te = Ge, In = Mr, Ts = function(t, n, a) {
4183
+ var Gr = nt, Hn = sn(), Vs = Dr, Te = Ge, Bn = Gr, zs = function(t, n, a) {
4045
4184
  if (!t || typeof t != "object" && typeof t != "function")
4046
4185
  throw new Te("`obj` must be an object or a function`");
4047
4186
  if (typeof n != "string" && typeof n != "symbol")
@@ -4054,9 +4193,9 @@ var Mr = nt, Fn = nn(), Ns = Lr, Te = Ge, In = Mr, Ts = function(t, n, a) {
4054
4193
  throw new Te("`nonConfigurable`, if provided, must be a boolean or null");
4055
4194
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
4056
4195
  throw new Te("`loose`, if provided, must be a boolean");
4057
- var s = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, o = arguments.length > 6 ? arguments[6] : !1, l = !!In && In(t, n);
4058
- if (Fn)
4059
- Fn(t, n, {
4196
+ var s = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, o = arguments.length > 6 ? arguments[6] : !1, l = !!Bn && Bn(t, n);
4197
+ if (Hn)
4198
+ Hn(t, n, {
4060
4199
  configurable: r === null && l ? l.configurable : !r,
4061
4200
  enumerable: s === null && l ? l.enumerable : !s,
4062
4201
  value: a,
@@ -4065,37 +4204,37 @@ var Mr = nt, Fn = nn(), Ns = Lr, Te = Ge, In = Mr, Ts = function(t, n, a) {
4065
4204
  else if (o || !s && !i && !r)
4066
4205
  t[n] = a;
4067
4206
  else
4068
- throw new Ns("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
4069
- }, _t = nn(), Br = function() {
4070
- return !!_t;
4207
+ throw new Vs("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
4208
+ }, Ht = sn(), Qr = function() {
4209
+ return !!Ht;
4071
4210
  };
4072
- Br.hasArrayLengthDefineBug = function() {
4073
- if (!_t)
4211
+ Qr.hasArrayLengthDefineBug = function() {
4212
+ if (!Ht)
4074
4213
  return null;
4075
4214
  try {
4076
- return _t([], "length", { value: 1 }).length !== 1;
4215
+ return Ht([], "length", { value: 1 }).length !== 1;
4077
4216
  } catch {
4078
4217
  return !0;
4079
4218
  }
4080
4219
  };
4081
- var Os = Br, Cs = _e, _n = Ts, Ps = Os(), Ln = Mr, Un = Ge, Es = Cs("%Math.floor%"), Rs = function(t, n) {
4220
+ var Ds = Qr, Js = _e, Vn = zs, Ws = Ds(), zn = Gr, Dn = Ge, Gs = Js("%Math.floor%"), Qs = function(t, n) {
4082
4221
  if (typeof t != "function")
4083
- throw new Un("`fn` is not a function");
4084
- if (typeof n != "number" || n < 0 || n > 4294967295 || Es(n) !== n)
4085
- throw new Un("`length` must be a positive 32-bit integer");
4222
+ throw new Dn("`fn` is not a function");
4223
+ if (typeof n != "number" || n < 0 || n > 4294967295 || Gs(n) !== n)
4224
+ throw new Dn("`length` must be a positive 32-bit integer");
4086
4225
  var a = arguments.length > 2 && !!arguments[2], s = !0, i = !0;
4087
- if ("length" in t && Ln) {
4088
- var r = Ln(t, "length");
4226
+ if ("length" in t && zn) {
4227
+ var r = zn(t, "length");
4089
4228
  r && !r.configurable && (s = !1), r && !r.writable && (i = !1);
4090
4229
  }
4091
- return (s || i || !a) && (Ps ? _n(
4230
+ return (s || i || !a) && (Ws ? Vn(
4092
4231
  /** @type {Parameters<define>[0]} */
4093
4232
  t,
4094
4233
  "length",
4095
4234
  n,
4096
4235
  !0,
4097
4236
  !0
4098
- ) : _n(
4237
+ ) : Vn(
4099
4238
  /** @type {Parameters<define>[0]} */
4100
4239
  t,
4101
4240
  "length",
@@ -4103,7 +4242,7 @@ var Os = Br, Cs = _e, _n = Ts, Ps = Os(), Ln = Mr, Un = Ge, Es = Cs("%Math.floor
4103
4242
  )), t;
4104
4243
  };
4105
4244
  (function(e) {
4106
- var t = tn, n = _e, a = Rs, s = Ge, i = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), o = n("%Reflect.apply%", !0) || t.call(r, i), l = nn(), c = n("%Math.max%");
4245
+ var t = on, n = _e, a = Qs, s = Ge, i = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), o = n("%Reflect.apply%", !0) || t.call(r, i), l = sn(), c = n("%Math.max%");
4107
4246
  e.exports = function(d) {
4108
4247
  if (typeof d != "function")
4109
4248
  throw new s("a function is required");
@@ -4118,32 +4257,32 @@ var Os = Br, Cs = _e, _n = Ts, Ps = Os(), Ln = Mr, Un = Ge, Es = Cs("%Math.floor
4118
4257
  return o(t, i, arguments);
4119
4258
  };
4120
4259
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
4121
- })(Hr);
4122
- var As = Hr.exports, Vr = _e, zr = As, qs = zr(Vr("String.prototype.indexOf")), Fs = function(t, n) {
4123
- var a = Vr(t, !!n);
4124
- return typeof a == "function" && qs(t, ".prototype.") > -1 ? zr(a) : a;
4260
+ })(Wr);
4261
+ var Ks = Wr.exports, Kr = _e, Yr = Ks, Ys = Yr(Kr("String.prototype.indexOf")), Xs = function(t, n) {
4262
+ var a = Kr(t, !!n);
4263
+ return typeof a == "function" && Ys(t, ".prototype.") > -1 ? Yr(a) : a;
4125
4264
  };
4126
- const Is = {}, _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4265
+ const Zs = {}, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4127
4266
  __proto__: null,
4128
- default: Is
4129
- }, Symbol.toStringTag, { value: "Module" })), Ls = /* @__PURE__ */ Va(_s);
4130
- var rn = typeof Map == "function" && Map.prototype, Nt = Object.getOwnPropertyDescriptor && rn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, dt = rn && Nt && typeof Nt.get == "function" ? Nt.get : null, Hn = rn && Map.prototype.forEach, an = typeof Set == "function" && Set.prototype, Tt = Object.getOwnPropertyDescriptor && an ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, pt = an && Tt && typeof Tt.get == "function" ? Tt.get : null, Mn = an && Set.prototype.forEach, Us = typeof WeakMap == "function" && WeakMap.prototype, Me = Us ? WeakMap.prototype.has : null, Hs = typeof WeakSet == "function" && WeakSet.prototype, Be = Hs ? WeakSet.prototype.has : null, Ms = typeof WeakRef == "function" && WeakRef.prototype, Bn = Ms ? WeakRef.prototype.deref : null, Bs = Boolean.prototype.valueOf, Vs = Object.prototype.toString, zs = Function.prototype.toString, Js = String.prototype.match, on = String.prototype.slice, ge = String.prototype.replace, Ws = String.prototype.toUpperCase, Vn = String.prototype.toLowerCase, Jr = RegExp.prototype.test, zn = Array.prototype.concat, ue = Array.prototype.join, Ds = Array.prototype.slice, Jn = Math.floor, Lt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ot = Object.getOwnPropertySymbols, Ut = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Fe = typeof Symbol == "function" && typeof Symbol.iterator == "object", ee = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Fe || !0) ? Symbol.toStringTag : null, Wr = Object.prototype.propertyIsEnumerable, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
4267
+ default: Zs
4268
+ }, Symbol.toStringTag, { value: "Module" })), tl = /* @__PURE__ */ Ja(el);
4269
+ var ln = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && ln ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, dt = ln && Ct && typeof Ct.get == "function" ? Ct.get : null, Jn = ln && Map.prototype.forEach, cn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && cn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, pt = cn && Pt && typeof Pt.get == "function" ? Pt.get : null, Wn = cn && Set.prototype.forEach, nl = typeof WeakMap == "function" && WeakMap.prototype, He = nl ? WeakMap.prototype.has : null, rl = typeof WeakSet == "function" && WeakSet.prototype, Be = rl ? WeakSet.prototype.has : null, al = typeof WeakRef == "function" && WeakRef.prototype, Gn = al ? WeakRef.prototype.deref : null, il = Boolean.prototype.valueOf, ol = Object.prototype.toString, sl = Function.prototype.toString, ll = String.prototype.match, un = String.prototype.slice, ge = String.prototype.replace, cl = String.prototype.toUpperCase, Qn = String.prototype.toLowerCase, Xr = RegExp.prototype.test, Kn = Array.prototype.concat, ue = Array.prototype.join, ul = Array.prototype.slice, Yn = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Et = Object.getOwnPropertySymbols, Vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Fe = typeof Symbol == "function" && typeof Symbol.iterator == "object", ee = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Fe || !0) ? Symbol.toStringTag : null, Zr = Object.prototype.propertyIsEnumerable, Xn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
4131
4270
  return e.__proto__;
4132
4271
  } : null);
4133
- function Dn(e, t) {
4134
- if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Jr.call(/e/, t))
4272
+ function Zn(e, t) {
4273
+ if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Xr.call(/e/, t))
4135
4274
  return t;
4136
4275
  var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
4137
4276
  if (typeof e == "number") {
4138
- var a = e < 0 ? -Jn(-e) : Jn(e);
4277
+ var a = e < 0 ? -Yn(-e) : Yn(e);
4139
4278
  if (a !== e) {
4140
- var s = String(a), i = on.call(t, s.length + 1);
4279
+ var s = String(a), i = un.call(t, s.length + 1);
4141
4280
  return ge.call(s, n, "$&_") + "." + ge.call(ge.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
4142
4281
  }
4143
4282
  }
4144
4283
  return ge.call(t, n, "$&_");
4145
4284
  }
4146
- var Ht = Ls, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Gs = function e(t, n, a, s) {
4285
+ var zt = tl, er = zt.custom, tr = ta(er) ? er : null, dl = function e(t, n, a, s) {
4147
4286
  var i = n || {};
4148
4287
  if (ve(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
4149
4288
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -4164,165 +4303,165 @@ var Ht = Ls, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Gs = function e(t, n, a, s
4164
4303
  if (typeof t == "boolean")
4165
4304
  return t ? "true" : "false";
4166
4305
  if (typeof t == "string")
4167
- return Kr(t, i);
4306
+ return ra(t, i);
4168
4307
  if (typeof t == "number") {
4169
4308
  if (t === 0)
4170
4309
  return 1 / 0 / t > 0 ? "0" : "-0";
4171
4310
  var l = String(t);
4172
- return o ? Dn(t, l) : l;
4311
+ return o ? Zn(t, l) : l;
4173
4312
  }
4174
4313
  if (typeof t == "bigint") {
4175
4314
  var c = String(t) + "n";
4176
- return o ? Dn(t, c) : c;
4315
+ return o ? Zn(t, c) : c;
4177
4316
  }
4178
4317
  var u = typeof i.depth > "u" ? 5 : i.depth;
4179
4318
  if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
4180
- return Mt(t) ? "[Array]" : "[Object]";
4181
- var f = pl(i, a);
4319
+ return Dt(t) ? "[Array]" : "[Object]";
4320
+ var f = Cl(i, a);
4182
4321
  if (typeof s > "u")
4183
4322
  s = [];
4184
- else if (Qr(s, t) >= 0)
4323
+ else if (na(s, t) >= 0)
4185
4324
  return "[Circular]";
4186
- function d(F, z, H) {
4187
- if (z && (s = Ds.call(s), s.push(z)), H) {
4188
- var J = {
4325
+ function d(I, z, B) {
4326
+ if (z && (s = ul.call(s), s.push(z)), B) {
4327
+ var D = {
4189
4328
  depth: i.depth
4190
4329
  };
4191
- return ve(i, "quoteStyle") && (J.quoteStyle = i.quoteStyle), e(F, J, a + 1, s);
4330
+ return ve(i, "quoteStyle") && (D.quoteStyle = i.quoteStyle), e(I, D, a + 1, s);
4192
4331
  }
4193
- return e(F, i, a + 1, s);
4332
+ return e(I, i, a + 1, s);
4194
4333
  }
4195
- if (typeof t == "function" && !Kn(t)) {
4196
- var m = rl(t), h = Ke(t, d);
4334
+ if (typeof t == "function" && !nr(t)) {
4335
+ var m = xl(t), h = Ke(t, d);
4197
4336
  return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
4198
4337
  }
4199
- if (Gr(t)) {
4200
- var v = Fe ? ge.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ut.call(t);
4338
+ if (ta(t)) {
4339
+ var v = Fe ? ge.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Vt.call(t);
4201
4340
  return typeof t == "object" && !Fe ? Ue(v) : v;
4202
4341
  }
4203
- if (cl(t)) {
4204
- for (var g = "<" + Vn.call(String(t.nodeName)), b = t.attributes || [], y = 0; y < b.length; y++)
4205
- g += " " + b[y].name + "=" + Dr(Qs(b[y].value), "double", i);
4206
- return g += ">", t.childNodes && t.childNodes.length && (g += "..."), g += "</" + Vn.call(String(t.nodeName)) + ">", g;
4342
+ if (Nl(t)) {
4343
+ for (var g = "<" + Qn.call(String(t.nodeName)), b = t.attributes || [], y = 0; y < b.length; y++)
4344
+ g += " " + b[y].name + "=" + ea(pl(b[y].value), "double", i);
4345
+ return g += ">", t.childNodes && t.childNodes.length && (g += "..."), g += "</" + Qn.call(String(t.nodeName)) + ">", g;
4207
4346
  }
4208
- if (Mt(t)) {
4347
+ if (Dt(t)) {
4209
4348
  if (t.length === 0)
4210
4349
  return "[]";
4211
4350
  var x = Ke(t, d);
4212
- return f && !dl(x) ? "[" + Bt(x, f) + "]" : "[ " + ue.call(x, ", ") + " ]";
4351
+ return f && !Ol(x) ? "[" + Jt(x, f) + "]" : "[ " + ue.call(x, ", ") + " ]";
4213
4352
  }
4214
- if (Ys(t)) {
4353
+ if (ml(t)) {
4215
4354
  var k = Ke(t, d);
4216
- return !("cause" in Error.prototype) && "cause" in t && !Wr.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(zn.call("[cause]: " + d(t.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(k, ", ") + " }";
4355
+ return !("cause" in Error.prototype) && "cause" in t && !Zr.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Kn.call("[cause]: " + d(t.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(k, ", ") + " }";
4217
4356
  }
4218
4357
  if (typeof t == "object" && r) {
4219
- if (Qn && typeof t[Qn] == "function" && Ht)
4220
- return Ht(t, { depth: u - a });
4358
+ if (tr && typeof t[tr] == "function" && zt)
4359
+ return zt(t, { depth: u - a });
4221
4360
  if (r !== "symbol" && typeof t.inspect == "function")
4222
4361
  return t.inspect();
4223
4362
  }
4224
- if (al(t)) {
4363
+ if (kl(t)) {
4225
4364
  var S = [];
4226
- return Hn && Hn.call(t, function(F, z) {
4227
- S.push(d(z, t, !0) + " => " + d(F, t));
4228
- }), Yn("Map", dt.call(t), S, f);
4365
+ return Jn && Jn.call(t, function(I, z) {
4366
+ S.push(d(z, t, !0) + " => " + d(I, t));
4367
+ }), rr("Map", dt.call(t), S, f);
4229
4368
  }
4230
- if (sl(t)) {
4369
+ if (wl(t)) {
4231
4370
  var j = [];
4232
- return Mn && Mn.call(t, function(F) {
4233
- j.push(d(F, t));
4234
- }), Yn("Set", pt.call(t), j, f);
4235
- }
4236
- if (il(t))
4237
- return Ct("WeakMap");
4238
- if (ll(t))
4239
- return Ct("WeakSet");
4240
- if (ol(t))
4241
- return Ct("WeakRef");
4242
- if (Zs(t))
4371
+ return Wn && Wn.call(t, function(I) {
4372
+ j.push(d(I, t));
4373
+ }), rr("Set", pt.call(t), j, f);
4374
+ }
4375
+ if ($l(t))
4376
+ return Rt("WeakMap");
4377
+ if (jl(t))
4378
+ return Rt("WeakSet");
4379
+ if (Sl(t))
4380
+ return Rt("WeakRef");
4381
+ if (yl(t))
4243
4382
  return Ue(d(Number(t)));
4244
- if (tl(t))
4245
- return Ue(d(Lt.call(t)));
4246
- if (el(t))
4247
- return Ue(Bs.call(t));
4248
- if (Xs(t))
4383
+ if (gl(t))
4384
+ return Ue(d(Bt.call(t)));
4385
+ if (vl(t))
4386
+ return Ue(il.call(t));
4387
+ if (hl(t))
4249
4388
  return Ue(d(String(t)));
4250
4389
  if (typeof window < "u" && t === window)
4251
4390
  return "{ [object Window] }";
4252
- if (typeof globalThis < "u" && t === globalThis || typeof He < "u" && t === He)
4391
+ if (typeof globalThis < "u" && t === globalThis || typeof Me < "u" && t === Me)
4253
4392
  return "{ [object globalThis] }";
4254
- if (!Ks(t) && !Kn(t)) {
4255
- var E = Ke(t, d), P = Wn ? Wn(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", U = !P && ee && Object(t) === t && ee in t ? on.call(be(t), 8, -1) : R ? "Object" : "", $ = P || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", _ = $ + (U || R ? "[" + ue.call(zn.call([], U || [], R || []), ": ") + "] " : "");
4256
- return E.length === 0 ? _ + "{}" : f ? _ + "{" + Bt(E, f) + "}" : _ + "{ " + ue.call(E, ", ") + " }";
4393
+ if (!fl(t) && !nr(t)) {
4394
+ var R = Ke(t, d), E = Xn ? Xn(t) === Object.prototype : t instanceof Object || t.constructor === Object, A = t instanceof Object ? "" : "null prototype", H = !E && ee && Object(t) === t && ee in t ? un.call(be(t), 8, -1) : A ? "Object" : "", $ = E || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", L = $ + (H || A ? "[" + ue.call(Kn.call([], H || [], A || []), ": ") + "] " : "");
4395
+ return R.length === 0 ? L + "{}" : f ? L + "{" + Jt(R, f) + "}" : L + "{ " + ue.call(R, ", ") + " }";
4257
4396
  }
4258
4397
  return String(t);
4259
4398
  };
4260
- function Dr(e, t, n) {
4399
+ function ea(e, t, n) {
4261
4400
  var a = (n.quoteStyle || t) === "double" ? '"' : "'";
4262
4401
  return a + e + a;
4263
4402
  }
4264
- function Qs(e) {
4403
+ function pl(e) {
4265
4404
  return ge.call(String(e), /"/g, "&quot;");
4266
4405
  }
4267
- function Mt(e) {
4406
+ function Dt(e) {
4268
4407
  return be(e) === "[object Array]" && (!ee || !(typeof e == "object" && ee in e));
4269
4408
  }
4270
- function Ks(e) {
4409
+ function fl(e) {
4271
4410
  return be(e) === "[object Date]" && (!ee || !(typeof e == "object" && ee in e));
4272
4411
  }
4273
- function Kn(e) {
4412
+ function nr(e) {
4274
4413
  return be(e) === "[object RegExp]" && (!ee || !(typeof e == "object" && ee in e));
4275
4414
  }
4276
- function Ys(e) {
4415
+ function ml(e) {
4277
4416
  return be(e) === "[object Error]" && (!ee || !(typeof e == "object" && ee in e));
4278
4417
  }
4279
- function Xs(e) {
4418
+ function hl(e) {
4280
4419
  return be(e) === "[object String]" && (!ee || !(typeof e == "object" && ee in e));
4281
4420
  }
4282
- function Zs(e) {
4421
+ function yl(e) {
4283
4422
  return be(e) === "[object Number]" && (!ee || !(typeof e == "object" && ee in e));
4284
4423
  }
4285
- function el(e) {
4424
+ function vl(e) {
4286
4425
  return be(e) === "[object Boolean]" && (!ee || !(typeof e == "object" && ee in e));
4287
4426
  }
4288
- function Gr(e) {
4427
+ function ta(e) {
4289
4428
  if (Fe)
4290
4429
  return e && typeof e == "object" && e instanceof Symbol;
4291
4430
  if (typeof e == "symbol")
4292
4431
  return !0;
4293
- if (!e || typeof e != "object" || !Ut)
4432
+ if (!e || typeof e != "object" || !Vt)
4294
4433
  return !1;
4295
4434
  try {
4296
- return Ut.call(e), !0;
4435
+ return Vt.call(e), !0;
4297
4436
  } catch {
4298
4437
  }
4299
4438
  return !1;
4300
4439
  }
4301
- function tl(e) {
4302
- if (!e || typeof e != "object" || !Lt)
4440
+ function gl(e) {
4441
+ if (!e || typeof e != "object" || !Bt)
4303
4442
  return !1;
4304
4443
  try {
4305
- return Lt.call(e), !0;
4444
+ return Bt.call(e), !0;
4306
4445
  } catch {
4307
4446
  }
4308
4447
  return !1;
4309
4448
  }
4310
- var nl = Object.prototype.hasOwnProperty || function(e) {
4449
+ var bl = Object.prototype.hasOwnProperty || function(e) {
4311
4450
  return e in this;
4312
4451
  };
4313
4452
  function ve(e, t) {
4314
- return nl.call(e, t);
4453
+ return bl.call(e, t);
4315
4454
  }
4316
4455
  function be(e) {
4317
- return Vs.call(e);
4456
+ return ol.call(e);
4318
4457
  }
4319
- function rl(e) {
4458
+ function xl(e) {
4320
4459
  if (e.name)
4321
4460
  return e.name;
4322
- var t = Js.call(zs.call(e), /^function\s*([\w$]+)/);
4461
+ var t = ll.call(sl.call(e), /^function\s*([\w$]+)/);
4323
4462
  return t ? t[1] : null;
4324
4463
  }
4325
- function Qr(e, t) {
4464
+ function na(e, t) {
4326
4465
  if (e.indexOf)
4327
4466
  return e.indexOf(t);
4328
4467
  for (var n = 0, a = e.length; n < a; n++)
@@ -4330,7 +4469,7 @@ function Qr(e, t) {
4330
4469
  return n;
4331
4470
  return -1;
4332
4471
  }
4333
- function al(e) {
4472
+ function kl(e) {
4334
4473
  if (!dt || !e || typeof e != "object")
4335
4474
  return !1;
4336
4475
  try {
@@ -4345,11 +4484,11 @@ function al(e) {
4345
4484
  }
4346
4485
  return !1;
4347
4486
  }
4348
- function il(e) {
4349
- if (!Me || !e || typeof e != "object")
4487
+ function $l(e) {
4488
+ if (!He || !e || typeof e != "object")
4350
4489
  return !1;
4351
4490
  try {
4352
- Me.call(e, Me);
4491
+ He.call(e, He);
4353
4492
  try {
4354
4493
  Be.call(e, Be);
4355
4494
  } catch {
@@ -4360,16 +4499,16 @@ function il(e) {
4360
4499
  }
4361
4500
  return !1;
4362
4501
  }
4363
- function ol(e) {
4364
- if (!Bn || !e || typeof e != "object")
4502
+ function Sl(e) {
4503
+ if (!Gn || !e || typeof e != "object")
4365
4504
  return !1;
4366
4505
  try {
4367
- return Bn.call(e), !0;
4506
+ return Gn.call(e), !0;
4368
4507
  } catch {
4369
4508
  }
4370
4509
  return !1;
4371
4510
  }
4372
- function sl(e) {
4511
+ function wl(e) {
4373
4512
  if (!pt || !e || typeof e != "object")
4374
4513
  return !1;
4375
4514
  try {
@@ -4384,13 +4523,13 @@ function sl(e) {
4384
4523
  }
4385
4524
  return !1;
4386
4525
  }
4387
- function ll(e) {
4526
+ function jl(e) {
4388
4527
  if (!Be || !e || typeof e != "object")
4389
4528
  return !1;
4390
4529
  try {
4391
4530
  Be.call(e, Be);
4392
4531
  try {
4393
- Me.call(e, Me);
4532
+ He.call(e, He);
4394
4533
  } catch {
4395
4534
  return !0;
4396
4535
  }
@@ -4399,18 +4538,18 @@ function ll(e) {
4399
4538
  }
4400
4539
  return !1;
4401
4540
  }
4402
- function cl(e) {
4541
+ function Nl(e) {
4403
4542
  return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
4404
4543
  }
4405
- function Kr(e, t) {
4544
+ function ra(e, t) {
4406
4545
  if (e.length > t.maxStringLength) {
4407
4546
  var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
4408
- return Kr(on.call(e, 0, t.maxStringLength), t) + a;
4547
+ return ra(un.call(e, 0, t.maxStringLength), t) + a;
4409
4548
  }
4410
- var s = ge.call(ge.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ul);
4411
- return Dr(s, "single", t);
4549
+ var s = ge.call(ge.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Tl);
4550
+ return ea(s, "single", t);
4412
4551
  }
4413
- function ul(e) {
4552
+ function Tl(e) {
4414
4553
  var t = e.charCodeAt(0), n = {
4415
4554
  8: "b",
4416
4555
  9: "t",
@@ -4418,26 +4557,26 @@ function ul(e) {
4418
4557
  12: "f",
4419
4558
  13: "r"
4420
4559
  }[t];
4421
- return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Ws.call(t.toString(16));
4560
+ return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + cl.call(t.toString(16));
4422
4561
  }
4423
4562
  function Ue(e) {
4424
4563
  return "Object(" + e + ")";
4425
4564
  }
4426
- function Ct(e) {
4565
+ function Rt(e) {
4427
4566
  return e + " { ? }";
4428
4567
  }
4429
- function Yn(e, t, n, a) {
4430
- var s = a ? Bt(n, a) : ue.call(n, ", ");
4568
+ function rr(e, t, n, a) {
4569
+ var s = a ? Jt(n, a) : ue.call(n, ", ");
4431
4570
  return e + " (" + t + ") {" + s + "}";
4432
4571
  }
4433
- function dl(e) {
4572
+ function Ol(e) {
4434
4573
  for (var t = 0; t < e.length; t++)
4435
- if (Qr(e[t], `
4574
+ if (na(e[t], `
4436
4575
  `) >= 0)
4437
4576
  return !1;
4438
4577
  return !0;
4439
4578
  }
4440
- function pl(e, t) {
4579
+ function Cl(e, t) {
4441
4580
  var n;
4442
4581
  if (e.indent === " ")
4443
4582
  n = " ";
@@ -4450,7 +4589,7 @@ function pl(e, t) {
4450
4589
  prev: ue.call(Array(t + 1), n)
4451
4590
  };
4452
4591
  }
4453
- function Bt(e, t) {
4592
+ function Jt(e, t) {
4454
4593
  if (e.length === 0)
4455
4594
  return "";
4456
4595
  var n = `
@@ -4459,35 +4598,35 @@ function Bt(e, t) {
4459
4598
  ` + t.prev;
4460
4599
  }
4461
4600
  function Ke(e, t) {
4462
- var n = Mt(e), a = [];
4601
+ var n = Dt(e), a = [];
4463
4602
  if (n) {
4464
4603
  a.length = e.length;
4465
4604
  for (var s = 0; s < e.length; s++)
4466
4605
  a[s] = ve(e, s) ? t(e[s], e) : "";
4467
4606
  }
4468
- var i = typeof Ot == "function" ? Ot(e) : [], r;
4607
+ var i = typeof Et == "function" ? Et(e) : [], r;
4469
4608
  if (Fe) {
4470
4609
  r = {};
4471
4610
  for (var o = 0; o < i.length; o++)
4472
4611
  r["$" + i[o]] = i[o];
4473
4612
  }
4474
4613
  for (var l in e)
4475
- ve(e, l) && (n && String(Number(l)) === l && l < e.length || Fe && r["$" + l] instanceof Symbol || (Jr.call(/[^\w$]/, l) ? a.push(t(l, e) + ": " + t(e[l], e)) : a.push(l + ": " + t(e[l], e))));
4476
- if (typeof Ot == "function")
4614
+ ve(e, l) && (n && String(Number(l)) === l && l < e.length || Fe && r["$" + l] instanceof Symbol || (Xr.call(/[^\w$]/, l) ? a.push(t(l, e) + ": " + t(e[l], e)) : a.push(l + ": " + t(e[l], e))));
4615
+ if (typeof Et == "function")
4477
4616
  for (var c = 0; c < i.length; c++)
4478
- Wr.call(e, i[c]) && a.push("[" + t(i[c]) + "]: " + t(e[i[c]], e));
4617
+ Zr.call(e, i[c]) && a.push("[" + t(i[c]) + "]: " + t(e[i[c]], e));
4479
4618
  return a;
4480
4619
  }
4481
- var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%", !0), hl = Le("WeakMap.prototype.get", !0), yl = Le("WeakMap.prototype.set", !0), vl = Le("WeakMap.prototype.has", !0), gl = Le("Map.prototype.get", !0), bl = Le("Map.prototype.set", !0), xl = Le("Map.prototype.has", !0), sn = function(e, t) {
4620
+ var aa = _e, Le = Xs, Pl = dl, El = Ge, Ye = aa("%WeakMap%", !0), Xe = aa("%Map%", !0), Rl = Le("WeakMap.prototype.get", !0), Al = Le("WeakMap.prototype.set", !0), ql = Le("WeakMap.prototype.has", !0), Fl = Le("Map.prototype.get", !0), Il = Le("Map.prototype.set", !0), _l = Le("Map.prototype.has", !0), dn = function(e, t) {
4482
4621
  for (var n = e, a; (a = n.next) !== null; n = a)
4483
4622
  if (a.key === t)
4484
4623
  return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
4485
4624
  e.next, e.next = a, a;
4486
- }, kl = function(e, t) {
4487
- var n = sn(e, t);
4625
+ }, Ll = function(e, t) {
4626
+ var n = dn(e, t);
4488
4627
  return n && n.value;
4489
- }, $l = function(e, t, n) {
4490
- var a = sn(e, t);
4628
+ }, Ul = function(e, t, n) {
4629
+ var a = dn(e, t);
4491
4630
  a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
4492
4631
  {
4493
4632
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -4495,60 +4634,60 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4495
4634
  next: e.next,
4496
4635
  value: n
4497
4636
  };
4498
- }, Sl = function(e, t) {
4499
- return !!sn(e, t);
4500
- }, wl = function() {
4637
+ }, Ml = function(e, t) {
4638
+ return !!dn(e, t);
4639
+ }, Hl = function() {
4501
4640
  var t, n, a, s = {
4502
4641
  assert: function(i) {
4503
4642
  if (!s.has(i))
4504
- throw new ml("Side channel does not contain " + fl(i));
4643
+ throw new El("Side channel does not contain " + Pl(i));
4505
4644
  },
4506
4645
  get: function(i) {
4507
4646
  if (Ye && i && (typeof i == "object" || typeof i == "function")) {
4508
4647
  if (t)
4509
- return hl(t, i);
4648
+ return Rl(t, i);
4510
4649
  } else if (Xe) {
4511
4650
  if (n)
4512
- return gl(n, i);
4651
+ return Fl(n, i);
4513
4652
  } else if (a)
4514
- return kl(a, i);
4653
+ return Ll(a, i);
4515
4654
  },
4516
4655
  has: function(i) {
4517
4656
  if (Ye && i && (typeof i == "object" || typeof i == "function")) {
4518
4657
  if (t)
4519
- return vl(t, i);
4658
+ return ql(t, i);
4520
4659
  } else if (Xe) {
4521
4660
  if (n)
4522
- return xl(n, i);
4661
+ return _l(n, i);
4523
4662
  } else if (a)
4524
- return Sl(a, i);
4663
+ return Ml(a, i);
4525
4664
  return !1;
4526
4665
  },
4527
4666
  set: function(i, r) {
4528
- Ye && i && (typeof i == "object" || typeof i == "function") ? (t || (t = new Ye()), yl(t, i, r)) : Xe ? (n || (n = new Xe()), bl(n, i, r)) : (a || (a = { key: {}, next: null }), $l(a, i, r));
4667
+ Ye && i && (typeof i == "object" || typeof i == "function") ? (t || (t = new Ye()), Al(t, i, r)) : Xe ? (n || (n = new Xe()), Il(n, i, r)) : (a || (a = { key: {}, next: null }), Ul(a, i, r));
4529
4668
  }
4530
4669
  };
4531
4670
  return s;
4532
- }, jl = String.prototype.replace, Nl = /%20/g, Pt = {
4671
+ }, Bl = String.prototype.replace, Vl = /%20/g, At = {
4533
4672
  RFC1738: "RFC1738",
4534
4673
  RFC3986: "RFC3986"
4535
- }, ln = {
4536
- default: Pt.RFC3986,
4674
+ }, pn = {
4675
+ default: At.RFC3986,
4537
4676
  formatters: {
4538
4677
  RFC1738: function(e) {
4539
- return jl.call(e, Nl, "+");
4678
+ return Bl.call(e, Vl, "+");
4540
4679
  },
4541
4680
  RFC3986: function(e) {
4542
4681
  return String(e);
4543
4682
  }
4544
4683
  },
4545
- RFC1738: Pt.RFC1738,
4546
- RFC3986: Pt.RFC3986
4547
- }, Tl = ln, Et = Object.prototype.hasOwnProperty, ke = Array.isArray, le = function() {
4684
+ RFC1738: At.RFC1738,
4685
+ RFC3986: At.RFC3986
4686
+ }, zl = pn, qt = Object.prototype.hasOwnProperty, ke = Array.isArray, le = function() {
4548
4687
  for (var e = [], t = 0; t < 256; ++t)
4549
4688
  e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
4550
4689
  return e;
4551
- }(), Ol = function(t) {
4690
+ }(), Dl = function(t) {
4552
4691
  for (; t.length > 1; ) {
4553
4692
  var n = t.pop(), a = n.obj[n.prop];
4554
4693
  if (ke(a)) {
@@ -4557,18 +4696,18 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4557
4696
  n.obj[n.prop] = s;
4558
4697
  }
4559
4698
  }
4560
- }, Xr = function(t, n) {
4699
+ }, ia = function(t, n) {
4561
4700
  for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
4562
4701
  typeof t[s] < "u" && (a[s] = t[s]);
4563
4702
  return a;
4564
- }, Cl = function e(t, n, a) {
4703
+ }, Jl = function e(t, n, a) {
4565
4704
  if (!n)
4566
4705
  return t;
4567
4706
  if (typeof n != "object") {
4568
4707
  if (ke(t))
4569
4708
  t.push(n);
4570
4709
  else if (t && typeof t == "object")
4571
- (a && (a.plainObjects || a.allowPrototypes) || !Et.call(Object.prototype, n)) && (t[n] = !0);
4710
+ (a && (a.plainObjects || a.allowPrototypes) || !qt.call(Object.prototype, n)) && (t[n] = !0);
4572
4711
  else
4573
4712
  return [t, n];
4574
4713
  return t;
@@ -4576,21 +4715,21 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4576
4715
  if (!t || typeof t != "object")
4577
4716
  return [t].concat(n);
4578
4717
  var s = t;
4579
- return ke(t) && !ke(n) && (s = Xr(t, a)), ke(t) && ke(n) ? (n.forEach(function(i, r) {
4580
- if (Et.call(t, r)) {
4718
+ return ke(t) && !ke(n) && (s = ia(t, a)), ke(t) && ke(n) ? (n.forEach(function(i, r) {
4719
+ if (qt.call(t, r)) {
4581
4720
  var o = t[r];
4582
4721
  o && typeof o == "object" && i && typeof i == "object" ? t[r] = e(o, i, a) : t.push(i);
4583
4722
  } else
4584
4723
  t[r] = i;
4585
4724
  }), t) : Object.keys(n).reduce(function(i, r) {
4586
4725
  var o = n[r];
4587
- return Et.call(i, r) ? i[r] = e(i[r], o, a) : i[r] = o, i;
4726
+ return qt.call(i, r) ? i[r] = e(i[r], o, a) : i[r] = o, i;
4588
4727
  }, s);
4589
- }, Pl = function(t, n) {
4728
+ }, Wl = function(t, n) {
4590
4729
  return Object.keys(n).reduce(function(a, s) {
4591
4730
  return a[s] = n[s], a;
4592
4731
  }, t);
4593
- }, El = function(e, t, n) {
4732
+ }, Gl = function(e, t, n) {
4594
4733
  var a = e.replace(/\+/g, " ");
4595
4734
  if (n === "iso-8859-1")
4596
4735
  return a.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -4599,7 +4738,7 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4599
4738
  } catch {
4600
4739
  return a;
4601
4740
  }
4602
- }, Rt = 1024, Rl = function(t, n, a, s, i) {
4741
+ }, Ft = 1024, Ql = function(t, n, a, s, i) {
4603
4742
  if (t.length === 0)
4604
4743
  return t;
4605
4744
  var r = t;
@@ -4607,10 +4746,10 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4607
4746
  return escape(r).replace(/%u[0-9a-f]{4}/gi, function(m) {
4608
4747
  return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
4609
4748
  });
4610
- for (var o = "", l = 0; l < r.length; l += Rt) {
4611
- for (var c = r.length >= Rt ? r.slice(l, l + Rt) : r, u = [], f = 0; f < c.length; ++f) {
4749
+ for (var o = "", l = 0; l < r.length; l += Ft) {
4750
+ for (var c = r.length >= Ft ? r.slice(l, l + Ft) : r, u = [], f = 0; f < c.length; ++f) {
4612
4751
  var d = c.charCodeAt(f);
4613
- if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === Tl.RFC1738 && (d === 40 || d === 41)) {
4752
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === zl.RFC1738 && (d === 40 || d === 41)) {
4614
4753
  u[u.length] = c.charAt(f);
4615
4754
  continue;
4616
4755
  }
@@ -4631,38 +4770,38 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4631
4770
  o += u.join("");
4632
4771
  }
4633
4772
  return o;
4634
- }, Al = function(t) {
4773
+ }, Kl = function(t) {
4635
4774
  for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
4636
4775
  for (var i = n[s], r = i.obj[i.prop], o = Object.keys(r), l = 0; l < o.length; ++l) {
4637
4776
  var c = o[l], u = r[c];
4638
4777
  typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
4639
4778
  }
4640
- return Ol(n), t;
4641
- }, ql = function(t) {
4779
+ return Dl(n), t;
4780
+ }, Yl = function(t) {
4642
4781
  return Object.prototype.toString.call(t) === "[object RegExp]";
4643
- }, Fl = function(t) {
4782
+ }, Xl = function(t) {
4644
4783
  return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
4645
- }, Il = function(t, n) {
4784
+ }, Zl = function(t, n) {
4646
4785
  return [].concat(t, n);
4647
- }, _l = function(t, n) {
4786
+ }, ec = function(t, n) {
4648
4787
  if (ke(t)) {
4649
4788
  for (var a = [], s = 0; s < t.length; s += 1)
4650
4789
  a.push(n(t[s]));
4651
4790
  return a;
4652
4791
  }
4653
4792
  return n(t);
4654
- }, Zr = {
4655
- arrayToObject: Xr,
4656
- assign: Pl,
4657
- combine: Il,
4658
- compact: Al,
4659
- decode: El,
4660
- encode: Rl,
4661
- isBuffer: Fl,
4662
- isRegExp: ql,
4663
- maybeMap: _l,
4664
- merge: Cl
4665
- }, ea = wl, rt = Zr, Ve = ln, Ll = Object.prototype.hasOwnProperty, ta = {
4793
+ }, oa = {
4794
+ arrayToObject: ia,
4795
+ assign: Wl,
4796
+ combine: Zl,
4797
+ compact: Kl,
4798
+ decode: Gl,
4799
+ encode: Ql,
4800
+ isBuffer: Xl,
4801
+ isRegExp: Yl,
4802
+ maybeMap: ec,
4803
+ merge: Jl
4804
+ }, sa = Hl, rt = oa, Ve = pn, tc = Object.prototype.hasOwnProperty, la = {
4666
4805
  brackets: function(t) {
4667
4806
  return t + "[]";
4668
4807
  },
@@ -4673,9 +4812,9 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4673
4812
  repeat: function(t) {
4674
4813
  return t;
4675
4814
  }
4676
- }, ce = Array.isArray, Ul = Array.prototype.push, na = function(e, t) {
4677
- Ul.apply(e, ce(t) ? t : [t]);
4678
- }, Hl = Date.prototype.toISOString, Xn = Ve.default, W = {
4815
+ }, ce = Array.isArray, nc = Array.prototype.push, ca = function(e, t) {
4816
+ nc.apply(e, ce(t) ? t : [t]);
4817
+ }, rc = Date.prototype.toISOString, ar = Ve.default, J = {
4679
4818
  addQueryPrefix: !1,
4680
4819
  allowDots: !1,
4681
4820
  allowEmptyArrays: !1,
@@ -4687,64 +4826,64 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4687
4826
  encodeDotInKeys: !1,
4688
4827
  encoder: rt.encode,
4689
4828
  encodeValuesOnly: !1,
4690
- format: Xn,
4691
- formatter: Ve.formatters[Xn],
4829
+ format: ar,
4830
+ formatter: Ve.formatters[ar],
4692
4831
  // deprecated
4693
4832
  indices: !1,
4694
4833
  serializeDate: function(t) {
4695
- return Hl.call(t);
4834
+ return rc.call(t);
4696
4835
  },
4697
4836
  skipNulls: !1,
4698
4837
  strictNullHandling: !1
4699
- }, Ml = function(t) {
4838
+ }, ac = function(t) {
4700
4839
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
4701
- }, At = {}, Bl = function e(t, n, a, s, i, r, o, l, c, u, f, d, m, h, v, g, b, y) {
4702
- for (var x = t, k = y, S = 0, j = !1; (k = k.get(At)) !== void 0 && !j; ) {
4703
- var E = k.get(t);
4704
- if (S += 1, typeof E < "u") {
4705
- if (E === S)
4840
+ }, It = {}, ic = function e(t, n, a, s, i, r, o, l, c, u, f, d, m, h, v, g, b, y) {
4841
+ for (var x = t, k = y, S = 0, j = !1; (k = k.get(It)) !== void 0 && !j; ) {
4842
+ var R = k.get(t);
4843
+ if (S += 1, typeof R < "u") {
4844
+ if (R === S)
4706
4845
  throw new RangeError("Cyclic object value");
4707
4846
  j = !0;
4708
4847
  }
4709
- typeof k.get(At) > "u" && (S = 0);
4848
+ typeof k.get(It) > "u" && (S = 0);
4710
4849
  }
4711
4850
  if (typeof u == "function" ? x = u(n, x) : x instanceof Date ? x = m(x) : a === "comma" && ce(x) && (x = rt.maybeMap(x, function(w) {
4712
4851
  return w instanceof Date ? m(w) : w;
4713
4852
  })), x === null) {
4714
4853
  if (r)
4715
- return c && !g ? c(n, W.encoder, b, "key", h) : n;
4854
+ return c && !g ? c(n, J.encoder, b, "key", h) : n;
4716
4855
  x = "";
4717
4856
  }
4718
- if (Ml(x) || rt.isBuffer(x)) {
4857
+ if (ac(x) || rt.isBuffer(x)) {
4719
4858
  if (c) {
4720
- var P = g ? n : c(n, W.encoder, b, "key", h);
4721
- return [v(P) + "=" + v(c(x, W.encoder, b, "value", h))];
4859
+ var E = g ? n : c(n, J.encoder, b, "key", h);
4860
+ return [v(E) + "=" + v(c(x, J.encoder, b, "value", h))];
4722
4861
  }
4723
4862
  return [v(n) + "=" + v(String(x))];
4724
4863
  }
4725
- var R = [];
4864
+ var A = [];
4726
4865
  if (typeof x > "u")
4727
- return R;
4728
- var U;
4866
+ return A;
4867
+ var H;
4729
4868
  if (a === "comma" && ce(x))
4730
- g && c && (x = rt.maybeMap(x, c)), U = [{ value: x.length > 0 ? x.join(",") || null : void 0 }];
4869
+ g && c && (x = rt.maybeMap(x, c)), H = [{ value: x.length > 0 ? x.join(",") || null : void 0 }];
4731
4870
  else if (ce(u))
4732
- U = u;
4871
+ H = u;
4733
4872
  else {
4734
4873
  var $ = Object.keys(x);
4735
- U = f ? $.sort(f) : $;
4874
+ H = f ? $.sort(f) : $;
4736
4875
  }
4737
- var _ = l ? n.replace(/\./g, "%2E") : n, F = s && ce(x) && x.length === 1 ? _ + "[]" : _;
4876
+ var L = l ? n.replace(/\./g, "%2E") : n, I = s && ce(x) && x.length === 1 ? L + "[]" : L;
4738
4877
  if (i && ce(x) && x.length === 0)
4739
- return F + "[]";
4740
- for (var z = 0; z < U.length; ++z) {
4741
- var H = U[z], J = typeof H == "object" && typeof H.value < "u" ? H.value : x[H];
4742
- if (!(o && J === null)) {
4743
- var I = d && l ? H.replace(/\./g, "%2E") : H, he = ce(x) ? typeof a == "function" ? a(F, I) : F : F + (d ? "." + I : "[" + I + "]");
4878
+ return I + "[]";
4879
+ for (var z = 0; z < H.length; ++z) {
4880
+ var B = H[z], D = typeof B == "object" && typeof B.value < "u" ? B.value : x[B];
4881
+ if (!(o && D === null)) {
4882
+ var _ = d && l ? B.replace(/\./g, "%2E") : B, he = ce(x) ? typeof a == "function" ? a(I, _) : I : I + (d ? "." + _ : "[" + _ + "]");
4744
4883
  y.set(t, S);
4745
- var pe = ea();
4746
- pe.set(At, y), na(R, e(
4747
- J,
4884
+ var pe = sa();
4885
+ pe.set(It, y), ca(A, e(
4886
+ D,
4748
4887
  he,
4749
4888
  a,
4750
4889
  s,
@@ -4765,63 +4904,63 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4765
4904
  ));
4766
4905
  }
4767
4906
  }
4768
- return R;
4769
- }, Vl = function(t) {
4907
+ return A;
4908
+ }, oc = function(t) {
4770
4909
  if (!t)
4771
- return W;
4910
+ return J;
4772
4911
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
4773
4912
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
4774
4913
  if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
4775
4914
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
4776
4915
  if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
4777
4916
  throw new TypeError("Encoder has to be a function.");
4778
- var n = t.charset || W.charset;
4917
+ var n = t.charset || J.charset;
4779
4918
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
4780
4919
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
4781
4920
  var a = Ve.default;
4782
4921
  if (typeof t.format < "u") {
4783
- if (!Ll.call(Ve.formatters, t.format))
4922
+ if (!tc.call(Ve.formatters, t.format))
4784
4923
  throw new TypeError("Unknown format option provided.");
4785
4924
  a = t.format;
4786
4925
  }
4787
- var s = Ve.formatters[a], i = W.filter;
4926
+ var s = Ve.formatters[a], i = J.filter;
4788
4927
  (typeof t.filter == "function" || ce(t.filter)) && (i = t.filter);
4789
4928
  var r;
4790
- if (t.arrayFormat in ta ? r = t.arrayFormat : "indices" in t ? r = t.indices ? "indices" : "repeat" : r = W.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
4929
+ if (t.arrayFormat in la ? r = t.arrayFormat : "indices" in t ? r = t.indices ? "indices" : "repeat" : r = J.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
4791
4930
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
4792
- var o = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : W.allowDots : !!t.allowDots;
4931
+ var o = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : J.allowDots : !!t.allowDots;
4793
4932
  return {
4794
- addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : W.addQueryPrefix,
4933
+ addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : J.addQueryPrefix,
4795
4934
  allowDots: o,
4796
- allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : W.allowEmptyArrays,
4935
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : J.allowEmptyArrays,
4797
4936
  arrayFormat: r,
4798
4937
  charset: n,
4799
- charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : W.charsetSentinel,
4938
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : J.charsetSentinel,
4800
4939
  commaRoundTrip: t.commaRoundTrip,
4801
- delimiter: typeof t.delimiter > "u" ? W.delimiter : t.delimiter,
4802
- encode: typeof t.encode == "boolean" ? t.encode : W.encode,
4803
- encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : W.encodeDotInKeys,
4804
- encoder: typeof t.encoder == "function" ? t.encoder : W.encoder,
4805
- encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : W.encodeValuesOnly,
4940
+ delimiter: typeof t.delimiter > "u" ? J.delimiter : t.delimiter,
4941
+ encode: typeof t.encode == "boolean" ? t.encode : J.encode,
4942
+ encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : J.encodeDotInKeys,
4943
+ encoder: typeof t.encoder == "function" ? t.encoder : J.encoder,
4944
+ encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : J.encodeValuesOnly,
4806
4945
  filter: i,
4807
4946
  format: a,
4808
4947
  formatter: s,
4809
- serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : W.serializeDate,
4810
- skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : W.skipNulls,
4948
+ serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : J.serializeDate,
4949
+ skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : J.skipNulls,
4811
4950
  sort: typeof t.sort == "function" ? t.sort : null,
4812
- strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : W.strictNullHandling
4951
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : J.strictNullHandling
4813
4952
  };
4814
- }, zl = function(e, t) {
4815
- var n = e, a = Vl(t), s, i;
4953
+ }, sc = function(e, t) {
4954
+ var n = e, a = oc(t), s, i;
4816
4955
  typeof a.filter == "function" ? (i = a.filter, n = i("", n)) : ce(a.filter) && (i = a.filter, s = i);
4817
4956
  var r = [];
4818
4957
  if (typeof n != "object" || n === null)
4819
4958
  return "";
4820
- var o = ta[a.arrayFormat], l = o === "comma" && a.commaRoundTrip;
4959
+ var o = la[a.arrayFormat], l = o === "comma" && a.commaRoundTrip;
4821
4960
  s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
4822
- for (var c = ea(), u = 0; u < s.length; ++u) {
4961
+ for (var c = sa(), u = 0; u < s.length; ++u) {
4823
4962
  var f = s[u];
4824
- a.skipNulls && n[f] === null || na(r, Bl(
4963
+ a.skipNulls && n[f] === null || ca(r, ic(
4825
4964
  n[f],
4826
4965
  f,
4827
4966
  o,
@@ -4844,7 +4983,7 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4844
4983
  }
4845
4984
  var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
4846
4985
  return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
4847
- }, Ie = Zr, Vt = Object.prototype.hasOwnProperty, Jl = Array.isArray, B = {
4986
+ }, Ie = oa, Wt = Object.prototype.hasOwnProperty, lc = Array.isArray, M = {
4848
4987
  allowDots: !1,
4849
4988
  allowEmptyArrays: !1,
4850
4989
  allowPrototypes: !1,
@@ -4863,36 +5002,39 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4863
5002
  parameterLimit: 1e3,
4864
5003
  parseArrays: !0,
4865
5004
  plainObjects: !1,
5005
+ strictDepth: !1,
4866
5006
  strictNullHandling: !1
4867
- }, Wl = function(e) {
5007
+ }, cc = function(e) {
4868
5008
  return e.replace(/&#(\d+);/g, function(t, n) {
4869
5009
  return String.fromCharCode(parseInt(n, 10));
4870
5010
  });
4871
- }, ra = function(e, t) {
5011
+ }, ua = function(e, t) {
4872
5012
  return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
4873
- }, Dl = "utf8=%26%2310003%3B", Gl = "utf8=%E2%9C%93", Ql = function(t, n) {
4874
- var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, i), o = -1, l, c = n.charset;
5013
+ }, uc = "utf8=%26%2310003%3B", dc = "utf8=%E2%9C%93", pc = function(t, n) {
5014
+ var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t;
5015
+ s = s.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
5016
+ var i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, i), o = -1, l, c = n.charset;
4875
5017
  if (n.charsetSentinel)
4876
5018
  for (l = 0; l < r.length; ++l)
4877
- r[l].indexOf("utf8=") === 0 && (r[l] === Gl ? c = "utf-8" : r[l] === Dl && (c = "iso-8859-1"), o = l, l = r.length);
5019
+ r[l].indexOf("utf8=") === 0 && (r[l] === dc ? c = "utf-8" : r[l] === uc && (c = "iso-8859-1"), o = l, l = r.length);
4878
5020
  for (l = 0; l < r.length; ++l)
4879
5021
  if (l !== o) {
4880
5022
  var u = r[l], f = u.indexOf("]="), d = f === -1 ? u.indexOf("=") : f + 1, m, h;
4881
- d === -1 ? (m = n.decoder(u, B.decoder, c, "key"), h = n.strictNullHandling ? null : "") : (m = n.decoder(u.slice(0, d), B.decoder, c, "key"), h = Ie.maybeMap(
4882
- ra(u.slice(d + 1), n),
5023
+ d === -1 ? (m = n.decoder(u, M.decoder, c, "key"), h = n.strictNullHandling ? null : "") : (m = n.decoder(u.slice(0, d), M.decoder, c, "key"), h = Ie.maybeMap(
5024
+ ua(u.slice(d + 1), n),
4883
5025
  function(g) {
4884
- return n.decoder(g, B.decoder, c, "value");
5026
+ return n.decoder(g, M.decoder, c, "value");
4885
5027
  }
4886
- )), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Wl(h)), u.indexOf("[]=") > -1 && (h = Jl(h) ? [h] : h);
4887
- var v = Vt.call(a, m);
5028
+ )), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = cc(h)), u.indexOf("[]=") > -1 && (h = lc(h) ? [h] : h);
5029
+ var v = Wt.call(a, m);
4888
5030
  v && n.duplicates === "combine" ? a[m] = Ie.combine(a[m], h) : (!v || n.duplicates === "last") && (a[m] = h);
4889
5031
  }
4890
5032
  return a;
4891
- }, Kl = function(e, t, n, a) {
4892
- for (var s = a ? t : ra(t, n), i = e.length - 1; i >= 0; --i) {
5033
+ }, fc = function(e, t, n, a) {
5034
+ for (var s = a ? t : ua(t, n), i = e.length - 1; i >= 0; --i) {
4893
5035
  var r, o = e[i];
4894
5036
  if (o === "[]" && n.parseArrays)
4895
- r = n.allowEmptyArrays && s === "" ? [] : [].concat(s);
5037
+ r = n.allowEmptyArrays && (s === "" || n.strictNullHandling && s === null) ? [] : [].concat(s);
4896
5038
  else {
4897
5039
  r = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4898
5040
  var l = o.charAt(0) === "[" && o.charAt(o.length - 1) === "]" ? o.slice(1, -1) : o, c = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, u = parseInt(c, 10);
@@ -4901,24 +5043,29 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4901
5043
  s = r;
4902
5044
  }
4903
5045
  return s;
4904
- }, Yl = function(t, n, a, s) {
5046
+ }, mc = function(t, n, a, s) {
4905
5047
  if (t) {
4906
5048
  var i = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, o = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(i), c = l ? i.slice(0, l.index) : i, u = [];
4907
5049
  if (c) {
4908
- if (!a.plainObjects && Vt.call(Object.prototype, c) && !a.allowPrototypes)
5050
+ if (!a.plainObjects && Wt.call(Object.prototype, c) && !a.allowPrototypes)
4909
5051
  return;
4910
5052
  u.push(c);
4911
5053
  }
4912
5054
  for (var f = 0; a.depth > 0 && (l = o.exec(i)) !== null && f < a.depth; ) {
4913
- if (f += 1, !a.plainObjects && Vt.call(Object.prototype, l[1].slice(1, -1)) && !a.allowPrototypes)
5055
+ if (f += 1, !a.plainObjects && Wt.call(Object.prototype, l[1].slice(1, -1)) && !a.allowPrototypes)
4914
5056
  return;
4915
5057
  u.push(l[1]);
4916
5058
  }
4917
- return l && u.push("[" + i.slice(l.index) + "]"), Kl(u, n, a, s);
5059
+ if (l) {
5060
+ if (a.strictDepth === !0)
5061
+ throw new RangeError("Input depth exceeded depth option of " + a.depth + " and strictDepth is true");
5062
+ u.push("[" + i.slice(l.index) + "]");
5063
+ }
5064
+ return fc(u, n, a, s);
4918
5065
  }
4919
- }, Xl = function(t) {
5066
+ }, hc = function(t) {
4920
5067
  if (!t)
4921
- return B;
5068
+ return M;
4922
5069
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
4923
5070
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
4924
5071
  if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
@@ -4927,50 +5074,51 @@ var Yr = _e, Le = Fs, fl = Gs, ml = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4927
5074
  throw new TypeError("Decoder has to be a function.");
4928
5075
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
4929
5076
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
4930
- var n = typeof t.charset > "u" ? B.charset : t.charset, a = typeof t.duplicates > "u" ? B.duplicates : t.duplicates;
5077
+ var n = typeof t.charset > "u" ? M.charset : t.charset, a = typeof t.duplicates > "u" ? M.duplicates : t.duplicates;
4931
5078
  if (a !== "combine" && a !== "first" && a !== "last")
4932
5079
  throw new TypeError("The duplicates option must be either combine, first, or last");
4933
- var s = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : B.allowDots : !!t.allowDots;
5080
+ var s = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : M.allowDots : !!t.allowDots;
4934
5081
  return {
4935
5082
  allowDots: s,
4936
- allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : B.allowEmptyArrays,
4937
- allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : B.allowPrototypes,
4938
- allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : B.allowSparse,
4939
- arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : B.arrayLimit,
5083
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : M.allowEmptyArrays,
5084
+ allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : M.allowPrototypes,
5085
+ allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : M.allowSparse,
5086
+ arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : M.arrayLimit,
4940
5087
  charset: n,
4941
- charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : B.charsetSentinel,
4942
- comma: typeof t.comma == "boolean" ? t.comma : B.comma,
4943
- decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : B.decodeDotInKeys,
4944
- decoder: typeof t.decoder == "function" ? t.decoder : B.decoder,
4945
- delimiter: typeof t.delimiter == "string" || Ie.isRegExp(t.delimiter) ? t.delimiter : B.delimiter,
5088
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : M.charsetSentinel,
5089
+ comma: typeof t.comma == "boolean" ? t.comma : M.comma,
5090
+ decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : M.decodeDotInKeys,
5091
+ decoder: typeof t.decoder == "function" ? t.decoder : M.decoder,
5092
+ delimiter: typeof t.delimiter == "string" || Ie.isRegExp(t.delimiter) ? t.delimiter : M.delimiter,
4946
5093
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
4947
- depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : B.depth,
5094
+ depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : M.depth,
4948
5095
  duplicates: a,
4949
5096
  ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
4950
- interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : B.interpretNumericEntities,
4951
- parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : B.parameterLimit,
5097
+ interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : M.interpretNumericEntities,
5098
+ parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : M.parameterLimit,
4952
5099
  parseArrays: t.parseArrays !== !1,
4953
- plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : B.plainObjects,
4954
- strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
5100
+ plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : M.plainObjects,
5101
+ strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : M.strictDepth,
5102
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : M.strictNullHandling
4955
5103
  };
4956
- }, Zl = function(e, t) {
4957
- var n = Xl(t);
5104
+ }, yc = function(e, t) {
5105
+ var n = hc(t);
4958
5106
  if (e === "" || e === null || typeof e > "u")
4959
5107
  return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4960
- for (var a = typeof e == "string" ? Ql(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(a), r = 0; r < i.length; ++r) {
4961
- var o = i[r], l = Yl(o, a[o], n, typeof e == "string");
5108
+ for (var a = typeof e == "string" ? pc(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(a), r = 0; r < i.length; ++r) {
5109
+ var o = i[r], l = mc(o, a[o], n, typeof e == "string");
4962
5110
  s = Ie.merge(s, l, n);
4963
5111
  }
4964
5112
  return n.allowSparse === !0 ? s : Ie.compact(s);
4965
- }, ec = zl, tc = Zl, nc = ln, at = {
4966
- formats: nc,
4967
- parse: tc,
4968
- stringify: ec
4969
- }, rc = Uo;
5113
+ }, vc = sc, gc = yc, bc = pn, at = {
5114
+ formats: bc,
5115
+ parse: gc,
5116
+ stringify: vc
5117
+ }, xc = ns;
4970
5118
  function oe() {
4971
5119
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4972
5120
  }
4973
- var ac = /^([a-z0-9.+-]+:)/i, ic = /:[0-9]*$/, oc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, sc = [
5121
+ var kc = /^([a-z0-9.+-]+:)/i, $c = /:[0-9]*$/, Sc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, wc = [
4974
5122
  "<",
4975
5123
  ">",
4976
5124
  '"',
@@ -4980,27 +5128,27 @@ var ac = /^([a-z0-9.+-]+:)/i, ic = /:[0-9]*$/, oc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
4980
5128
  `
4981
5129
  `,
4982
5130
  " "
4983
- ], lc = [
5131
+ ], jc = [
4984
5132
  "{",
4985
5133
  "}",
4986
5134
  "|",
4987
5135
  "\\",
4988
5136
  "^",
4989
5137
  "`"
4990
- ].concat(sc), zt = ["'"].concat(lc), Zn = [
5138
+ ].concat(wc), Gt = ["'"].concat(jc), ir = [
4991
5139
  "%",
4992
5140
  "/",
4993
5141
  "?",
4994
5142
  ";",
4995
5143
  "#"
4996
- ].concat(zt), er = [
5144
+ ].concat(Gt), or = [
4997
5145
  "/",
4998
5146
  "?",
4999
5147
  "#"
5000
- ], cc = 255, tr = /^[+a-z0-9A-Z_-]{0,63}$/, uc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, dc = {
5148
+ ], Nc = 255, sr = /^[+a-z0-9A-Z_-]{0,63}$/, Tc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Oc = {
5001
5149
  javascript: !0,
5002
5150
  "javascript:": !0
5003
- }, Jt = {
5151
+ }, Qt = {
5004
5152
  javascript: !0,
5005
5153
  "javascript:": !0
5006
5154
  }, Ae = {
@@ -5014,8 +5162,8 @@ var ac = /^([a-z0-9.+-]+:)/i, ic = /:[0-9]*$/, oc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
5014
5162
  "ftp:": !0,
5015
5163
  "gopher:": !0,
5016
5164
  "file:": !0
5017
- }, Wt = at;
5018
- function cn(e, t, n) {
5165
+ }, Kt = at;
5166
+ function fn(e, t, n) {
5019
5167
  if (e && typeof e == "object" && e instanceof oe)
5020
5168
  return e;
5021
5169
  var a = new oe();
@@ -5028,11 +5176,11 @@ oe.prototype.parse = function(e, t, n) {
5028
5176
  i[0] = i[0].replace(r, "/"), e = i.join(s);
5029
5177
  var o = e;
5030
5178
  if (o = o.trim(), !n && e.split("#").length === 1) {
5031
- var l = oc.exec(o);
5179
+ var l = Sc.exec(o);
5032
5180
  if (l)
5033
- return this.path = o, this.href = o, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Wt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
5181
+ return this.path = o, this.href = o, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Kt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
5034
5182
  }
5035
- var c = ac.exec(o);
5183
+ var c = kc.exec(o);
5036
5184
  if (c) {
5037
5185
  c = c[0];
5038
5186
  var u = c.toLowerCase();
@@ -5040,17 +5188,17 @@ oe.prototype.parse = function(e, t, n) {
5040
5188
  }
5041
5189
  if (n || c || o.match(/^\/\/[^@/]+@[^@/]+/)) {
5042
5190
  var f = o.substr(0, 2) === "//";
5043
- f && !(c && Jt[c]) && (o = o.substr(2), this.slashes = !0);
5191
+ f && !(c && Qt[c]) && (o = o.substr(2), this.slashes = !0);
5044
5192
  }
5045
- if (!Jt[c] && (f || c && !Ae[c])) {
5046
- for (var d = -1, m = 0; m < er.length; m++) {
5047
- var h = o.indexOf(er[m]);
5193
+ if (!Qt[c] && (f || c && !Ae[c])) {
5194
+ for (var d = -1, m = 0; m < or.length; m++) {
5195
+ var h = o.indexOf(or[m]);
5048
5196
  h !== -1 && (d === -1 || h < d) && (d = h);
5049
5197
  }
5050
5198
  var v, g;
5051
5199
  d === -1 ? g = o.lastIndexOf("@") : g = o.lastIndexOf("@", d), g !== -1 && (v = o.slice(0, g), o = o.slice(g + 1), this.auth = decodeURIComponent(v)), d = -1;
5052
- for (var m = 0; m < Zn.length; m++) {
5053
- var h = o.indexOf(Zn[m]);
5200
+ for (var m = 0; m < ir.length; m++) {
5201
+ var h = o.indexOf(ir[m]);
5054
5202
  h !== -1 && (d === -1 || h < d) && (d = h);
5055
5203
  }
5056
5204
  d === -1 && (d = o.length), this.host = o.slice(0, d), o = o.slice(d), this.parseHost(), this.hostname = this.hostname || "";
@@ -5058,45 +5206,45 @@ oe.prototype.parse = function(e, t, n) {
5058
5206
  if (!b)
5059
5207
  for (var y = this.hostname.split(/\./), m = 0, x = y.length; m < x; m++) {
5060
5208
  var k = y[m];
5061
- if (k && !k.match(tr)) {
5062
- for (var S = "", j = 0, E = k.length; j < E; j++)
5209
+ if (k && !k.match(sr)) {
5210
+ for (var S = "", j = 0, R = k.length; j < R; j++)
5063
5211
  k.charCodeAt(j) > 127 ? S += "x" : S += k[j];
5064
- if (!S.match(tr)) {
5065
- var P = y.slice(0, m), R = y.slice(m + 1), U = k.match(uc);
5066
- U && (P.push(U[1]), R.unshift(U[2])), R.length && (o = "/" + R.join(".") + o), this.hostname = P.join(".");
5212
+ if (!S.match(sr)) {
5213
+ var E = y.slice(0, m), A = y.slice(m + 1), H = k.match(Tc);
5214
+ H && (E.push(H[1]), A.unshift(H[2])), A.length && (o = "/" + A.join(".") + o), this.hostname = E.join(".");
5067
5215
  break;
5068
5216
  }
5069
5217
  }
5070
5218
  }
5071
- this.hostname.length > cc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = rc.toASCII(this.hostname));
5072
- var $ = this.port ? ":" + this.port : "", _ = this.hostname || "";
5073
- this.host = _ + $, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
5074
- }
5075
- if (!dc[u])
5076
- for (var m = 0, x = zt.length; m < x; m++) {
5077
- var F = zt[m];
5078
- if (o.indexOf(F) !== -1) {
5079
- var z = encodeURIComponent(F);
5080
- z === F && (z = escape(F)), o = o.split(F).join(z);
5219
+ this.hostname.length > Nc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = xc.toASCII(this.hostname));
5220
+ var $ = this.port ? ":" + this.port : "", L = this.hostname || "";
5221
+ this.host = L + $, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
5222
+ }
5223
+ if (!Oc[u])
5224
+ for (var m = 0, x = Gt.length; m < x; m++) {
5225
+ var I = Gt[m];
5226
+ if (o.indexOf(I) !== -1) {
5227
+ var z = encodeURIComponent(I);
5228
+ z === I && (z = escape(I)), o = o.split(I).join(z);
5081
5229
  }
5082
5230
  }
5083
- var H = o.indexOf("#");
5084
- H !== -1 && (this.hash = o.substr(H), o = o.slice(0, H));
5085
- var J = o.indexOf("?");
5086
- if (J !== -1 ? (this.search = o.substr(J), this.query = o.substr(J + 1), t && (this.query = Wt.parse(this.query)), o = o.slice(0, J)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Ae[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
5087
- var $ = this.pathname || "", I = this.search || "";
5088
- this.path = $ + I;
5231
+ var B = o.indexOf("#");
5232
+ B !== -1 && (this.hash = o.substr(B), o = o.slice(0, B));
5233
+ var D = o.indexOf("?");
5234
+ if (D !== -1 ? (this.search = o.substr(D), this.query = o.substr(D + 1), t && (this.query = Kt.parse(this.query)), o = o.slice(0, D)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Ae[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
5235
+ var $ = this.pathname || "", _ = this.search || "";
5236
+ this.path = $ + _;
5089
5237
  }
5090
5238
  return this.href = this.format(), this;
5091
5239
  };
5092
- function pc(e) {
5093
- return typeof e == "string" && (e = cn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
5240
+ function Cc(e) {
5241
+ return typeof e == "string" && (e = fn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
5094
5242
  }
5095
5243
  oe.prototype.format = function() {
5096
5244
  var e = this.auth || "";
5097
5245
  e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
5098
5246
  var t = this.protocol || "", n = this.pathname || "", a = this.hash || "", s = !1, i = "";
5099
- this.host ? s = e + this.host : this.hostname && (s = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (i = Wt.stringify(this.query, {
5247
+ this.host ? s = e + this.host : this.hostname && (s = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (i = Kt.stringify(this.query, {
5100
5248
  arrayFormat: "repeat",
5101
5249
  addQueryPrefix: !1
5102
5250
  }));
@@ -5106,7 +5254,7 @@ oe.prototype.format = function() {
5106
5254
  }), r = r.replace("#", "%23"), t + s + n + r + a;
5107
5255
  };
5108
5256
  oe.prototype.resolve = function(e) {
5109
- return this.resolveObject(cn(e, !1, !0)).format();
5257
+ return this.resolveObject(fn(e, !1, !0)).format();
5110
5258
  };
5111
5259
  oe.prototype.resolveObject = function(e) {
5112
5260
  if (typeof e == "string") {
@@ -5134,7 +5282,7 @@ oe.prototype.resolveObject = function(e) {
5134
5282
  }
5135
5283
  return n.href = n.format(), n;
5136
5284
  }
5137
- if (n.protocol = e.protocol, !e.host && !Jt[e.protocol]) {
5285
+ if (n.protocol = e.protocol, !e.host && !Qt[e.protocol]) {
5138
5286
  for (var x = (e.pathname || "").split("/"); x.length && !(e.host = x.shift()); )
5139
5287
  ;
5140
5288
  e.host || (e.host = ""), e.hostname || (e.hostname = ""), x[0] !== "" && x.unshift(""), x.length < 2 && x.unshift(""), n.pathname = x.join("/");
@@ -5161,30 +5309,30 @@ oe.prototype.resolveObject = function(e) {
5161
5309
  }
5162
5310
  if (!y.length)
5163
5311
  return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n;
5164
- for (var j = y.slice(-1)[0], E = (n.host || e.host || y.length > 1) && (j === "." || j === "..") || j === "", P = 0, R = y.length; R >= 0; R--)
5165
- j = y[R], j === "." ? y.splice(R, 1) : j === ".." ? (y.splice(R, 1), P++) : P && (y.splice(R, 1), P--);
5312
+ for (var j = y.slice(-1)[0], R = (n.host || e.host || y.length > 1) && (j === "." || j === "..") || j === "", E = 0, A = y.length; A >= 0; A--)
5313
+ j = y[A], j === "." ? y.splice(A, 1) : j === ".." ? (y.splice(A, 1), E++) : E && (y.splice(A, 1), E--);
5166
5314
  if (!g && !b)
5167
- for (; P--; P)
5315
+ for (; E--; E)
5168
5316
  y.unshift("..");
5169
- g && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), E && y.join("/").substr(-1) !== "/" && y.push("");
5170
- var U = y[0] === "" || y[0] && y[0].charAt(0) === "/";
5317
+ g && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), R && y.join("/").substr(-1) !== "/" && y.push("");
5318
+ var H = y[0] === "" || y[0] && y[0].charAt(0) === "/";
5171
5319
  if (k) {
5172
- n.hostname = U ? "" : y.length ? y.shift() : "", n.host = n.hostname;
5320
+ n.hostname = H ? "" : y.length ? y.shift() : "", n.host = n.hostname;
5173
5321
  var S = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1;
5174
5322
  S && (n.auth = S.shift(), n.hostname = S.shift(), n.host = n.hostname);
5175
5323
  }
5176
- return g = g || n.host && y.length, g && !U && y.unshift(""), y.length > 0 ? n.pathname = y.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
5324
+ return g = g || n.host && y.length, g && !H && y.unshift(""), y.length > 0 ? n.pathname = y.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
5177
5325
  };
5178
5326
  oe.prototype.parseHost = function() {
5179
- var e = this.host, t = ic.exec(e);
5327
+ var e = this.host, t = $c.exec(e);
5180
5328
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
5181
5329
  };
5182
- var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), hc = class {
5330
+ var Pc = fn, lr = Cc, Ec = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Rc = class {
5183
5331
  constructor(e, t = {}) {
5184
5332
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
5185
5333
  harIsAlreadyEncoded: !1,
5186
5334
  ...t
5187
- }, this.requests = [], mc(e) ? this.entries = e.log.entries : this.entries = [
5335
+ }, this.requests = [], Ec(e) ? this.entries = e.log.entries : this.entries = [
5188
5336
  {
5189
5337
  request: e
5190
5338
  }
@@ -5219,7 +5367,7 @@ var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e
5219
5367
  cookiesObj: {},
5220
5368
  allHeaders: {}
5221
5369
  };
5222
- if (n.queryString && n.queryString.length && (n.queryObj = n.queryString.reduce(bn, {})), n.headers && n.headers.length) {
5370
+ if (n.queryString && n.queryString.length && (n.queryObj = n.queryString.reduce(jn, {})), n.headers && n.headers.length) {
5223
5371
  const m = /^HTTP\/2/;
5224
5372
  n.headersObj = n.headers.reduce((h, { name: v, value: g }) => {
5225
5373
  const b = m.exec(n.httpVersion) ? v.toLocaleLowerCase() : v;
@@ -5247,17 +5395,17 @@ var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e
5247
5395
  `, g = (k) => k.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), b = (k) => k.replace(/\r?\n|\r/g, `\r
5248
5396
  `), y = [`--${m}`];
5249
5397
  (d = n.postData) == null || d.params.forEach((k, S) => {
5250
- const j = k.name, E = k.value || "", P = k.fileName || null, R = k.contentType || "application/octet-stream";
5251
- P ? (y.push(
5252
- `Content-Disposition: form-data; name="${g(b(j))}"; filename="${P}"`
5253
- ), y.push(`Content-Type: ${R}`)) : y.push(`Content-Disposition: form-data; name="${g(b(j))}"`), y.push(""), y.push(b(E)), S !== n.postData.params.length - 1 && y.push(`--${m}`);
5398
+ const j = k.name, R = k.value || "", E = k.fileName || null, A = k.contentType || "application/octet-stream";
5399
+ E ? (y.push(
5400
+ `Content-Disposition: form-data; name="${g(b(j))}"; filename="${E}"`
5401
+ ), y.push(`Content-Type: ${A}`)) : y.push(`Content-Disposition: form-data; name="${g(b(j))}"`), y.push(""), y.push(b(R)), S !== n.postData.params.length - 1 && y.push(`--${m}`);
5254
5402
  }), y.push(`--${h}`), n.postData.boundary = m, n.postData.text = y.join(v);
5255
5403
  const x = Z(n.headersObj, "content-type") || "content-type";
5256
5404
  n.headersObj[x] = `multipart/form-data; boundary=${m}`;
5257
5405
  }
5258
5406
  break;
5259
5407
  case "application/x-www-form-urlencoded":
5260
- n.postData.params ? (n.postData.paramsObj = n.postData.params.reduce(bn, {}), n.postData.text = at.stringify(n.postData.paramsObj)) : n.postData.text = "";
5408
+ n.postData.params ? (n.postData.paramsObj = n.postData.params.reduce(jn, {}), n.postData.text = at.stringify(n.postData.paramsObj)) : n.postData.text = "";
5261
5409
  break;
5262
5410
  case "text/json":
5263
5411
  case "text/x-json":
@@ -5274,7 +5422,7 @@ var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e
5274
5422
  const s = {
5275
5423
  ...n.allHeaders,
5276
5424
  ...n.headersObj
5277
- }, i = fc(n.url, !0, !0);
5425
+ }, i = Pc(n.url, !0, !0);
5278
5426
  n.queryObj = {
5279
5427
  ...n.queryObj,
5280
5428
  ...i.query
@@ -5291,11 +5439,11 @@ var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e
5291
5439
  query: n.queryObj,
5292
5440
  search: r,
5293
5441
  path: r ? `${i.pathname}?${r}` : i.pathname
5294
- }, l = nr({
5442
+ }, l = lr({
5295
5443
  ...i,
5296
5444
  query: null,
5297
5445
  search: null
5298
- }), c = nr({
5446
+ }), c = lr({
5299
5447
  ...i,
5300
5448
  ...o
5301
5449
  });
@@ -5309,21 +5457,21 @@ var fc = cn, nr = pc, mc = (e) => typeof e == "object" && "log" in e && typeof e
5309
5457
  }
5310
5458
  convert(e, t, n) {
5311
5459
  this.initCalled || this.init(), !n && t && (n = t);
5312
- const a = Lo[e];
5460
+ const a = ts[e];
5313
5461
  if (!a)
5314
5462
  return !1;
5315
5463
  const { convert: s } = a.clientsById[t || a.info.default];
5316
5464
  return this.requests.map((r) => s(r, n));
5317
5465
  }
5318
5466
  };
5319
- const aa = Oa(
5467
+ const da = Ea(
5320
5468
  void 0
5321
- ), Wc = aa.Provider, yc = () => {
5322
- const e = Ca(aa);
5469
+ ), du = da.Provider, Ac = () => {
5470
+ const e = Ra(da);
5323
5471
  if (!e)
5324
5472
  throw new Error("useOasConfig must be used within a OasConfigProvider");
5325
5473
  return e.config;
5326
- }, vc = ({
5474
+ }, qc = ({
5327
5475
  server: e,
5328
5476
  servers: t,
5329
5477
  operation: n
@@ -5341,7 +5489,7 @@ const aa = Oa(
5341
5489
  isRequired: c.required ?? !1
5342
5490
  })), i = (l = n.parameters) == null ? void 0 : l.filter((c) => c.in === "path").map((c) => ({ name: c.name }));
5343
5491
  return /* @__PURE__ */ p.jsx(
5344
- qr,
5492
+ Hr,
5345
5493
  {
5346
5494
  server: e,
5347
5495
  servers: t,
@@ -5352,94 +5500,94 @@ const aa = Oa(
5352
5500
  pathParams: i
5353
5501
  }
5354
5502
  );
5355
- }, un = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5503
+ }, mn = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5356
5504
  "div",
5357
5505
  {
5358
- className: q(
5506
+ className: F(
5359
5507
  "rounded-lg overflow-hidden border dark:border-transparent",
5360
5508
  t
5361
5509
  ),
5362
5510
  children: e
5363
5511
  }
5364
- ), dn = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5512
+ ), hn = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5365
5513
  "div",
5366
5514
  {
5367
- className: q(
5515
+ className: F(
5368
5516
  "border-b dark:border-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2",
5369
5517
  t
5370
5518
  ),
5371
5519
  children: e
5372
5520
  }
5373
- ), pn = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5521
+ ), yn = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5374
5522
  "div",
5375
5523
  {
5376
- className: q("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", t),
5524
+ className: F("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", t),
5377
5525
  children: e
5378
5526
  }
5379
- ), ia = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5527
+ ), pa = ({ children: e, className: t }) => /* @__PURE__ */ p.jsx(
5380
5528
  "div",
5381
5529
  {
5382
- className: q(
5530
+ className: F(
5383
5531
  "border-t dark:border-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2",
5384
5532
  t
5385
5533
  ),
5386
5534
  children: e
5387
5535
  }
5388
- ), gc = (e) => typeof e == "object" && e !== null && !Array.isArray(e), We = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && gc(e.examples) ? Object.values(e.examples)[0] : bc(e);
5389
- function bc(e, t) {
5536
+ ), Fc = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Je = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && Fc(e.examples) ? Object.values(e.examples)[0] : Ic(e);
5537
+ function Ic(e, t) {
5390
5538
  const n = Object.entries(e.properties ?? {}).concat(
5391
5539
  Object.entries(e.additionalProperties ?? {})
5392
5540
  );
5393
5541
  if (e.type === "object" && n.length > 0) {
5394
5542
  const a = {};
5395
5543
  return n.forEach(([s, i]) => {
5396
- const r = We(i);
5544
+ const r = Je(i);
5397
5545
  r !== void 0 && (a[s] = r);
5398
5546
  }), a;
5399
5547
  } else if (e.type === "array" && e.items) {
5400
- const a = We(e.items);
5548
+ const a = Je(e.items);
5401
5549
  return a !== void 0 ? [a] : [];
5402
5550
  }
5403
5551
  }
5404
- const xc = ({ content: e }) => {
5552
+ const _c = ({ content: e }) => {
5405
5553
  var t;
5406
- return e.length ? /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs(un, { children: [
5407
- /* @__PURE__ */ p.jsx(dn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ p.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
5408
- /* @__PURE__ */ p.jsx(pn, { className: "p-0", children: /* @__PURE__ */ p.jsx(
5409
- De,
5554
+ return e.length ? /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs(mn, { children: [
5555
+ /* @__PURE__ */ p.jsx(hn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ p.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
5556
+ /* @__PURE__ */ p.jsx(yn, { className: "p-0", children: /* @__PURE__ */ p.jsx(
5557
+ We,
5410
5558
  {
5411
5559
  language: "json",
5412
5560
  noBackground: !0,
5413
5561
  copyable: !0,
5414
5562
  className: "text-xs max-h-[450px] p-2",
5415
5563
  code: JSON.stringify(
5416
- (t = e.at(0)) != null && t.schema ? We(e[0].schema) : "",
5564
+ (t = e.at(0)) != null && t.schema ? Je(e[0].schema) : "",
5417
5565
  null,
5418
5566
  2
5419
5567
  )
5420
5568
  }
5421
5569
  ) })
5422
5570
  ] }) }) : null;
5423
- }, kc = ({
5571
+ }, Lc = ({
5424
5572
  responses: e,
5425
5573
  selectedResponse: t,
5426
5574
  onSelectResponse: n
5427
5575
  }) => {
5428
5576
  var a;
5429
- return /* @__PURE__ */ p.jsx(un, { children: /* @__PURE__ */ p.jsxs(
5430
- Rr,
5577
+ return /* @__PURE__ */ p.jsx(mn, { children: /* @__PURE__ */ p.jsxs(
5578
+ Ur,
5431
5579
  {
5432
5580
  defaultValue: (a = e[0]) == null ? void 0 : a.statusCode,
5433
5581
  value: t,
5434
5582
  onValueChange: (s) => n(s),
5435
5583
  children: [
5436
- /* @__PURE__ */ p.jsxs(dn, { className: "text-xs flex flex-col gap-2 pb-0", children: [
5584
+ /* @__PURE__ */ p.jsxs(hn, { className: "text-xs flex flex-col gap-2 pb-0", children: [
5437
5585
  /* @__PURE__ */ p.jsx("span", { className: "font-mono", children: "Example Responses" }),
5438
- /* @__PURE__ */ p.jsx(Kt, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ p.jsx(
5439
- Yt,
5586
+ /* @__PURE__ */ p.jsx(en, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ p.jsx(
5587
+ tn,
5440
5588
  {
5441
5589
  value: s.statusCode,
5442
- className: q(
5590
+ className: F(
5443
5591
  "text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
5444
5592
  "data-[state=active]:text-primary data-[state=active]:dark:text-inherit data-[state=active]:border-primary",
5445
5593
  "hover:border-accent-foreground/25"
@@ -5452,23 +5600,23 @@ const xc = ({ content: e }) => {
5452
5600
  e.map((s) => {
5453
5601
  var r, o;
5454
5602
  const i = (o = (r = s.content) == null ? void 0 : r[0]) == null ? void 0 : o.schema;
5455
- return /* @__PURE__ */ p.jsxs(Xt, { value: s.statusCode, children: [
5456
- /* @__PURE__ */ p.jsx(pn, { className: "p-0", children: i ? /* @__PURE__ */ p.jsx(
5457
- De,
5603
+ return /* @__PURE__ */ p.jsxs(nn, { value: s.statusCode, children: [
5604
+ /* @__PURE__ */ p.jsx(yn, { className: "p-0", children: i ? /* @__PURE__ */ p.jsx(
5605
+ We,
5458
5606
  {
5459
5607
  language: "json",
5460
5608
  noBackground: !0,
5461
5609
  className: "text-xs max-h-[450px] p-2",
5462
- code: JSON.stringify(We(i), null, 2)
5610
+ code: JSON.stringify(Je(i), null, 2)
5463
5611
  }
5464
5612
  ) : /* @__PURE__ */ p.jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" }) }),
5465
- /* @__PURE__ */ p.jsx(ia, { className: "flex justify-end text-xs", children: s.description })
5613
+ /* @__PURE__ */ p.jsx(pa, { className: "flex justify-end text-xs", children: s.description })
5466
5614
  ] }, s.statusCode);
5467
5615
  })
5468
5616
  ]
5469
5617
  }
5470
5618
  ) });
5471
- }, $c = (e, t) => {
5619
+ }, Uc = (e, t) => {
5472
5620
  let n;
5473
5621
  switch (t) {
5474
5622
  case "shell":
@@ -5509,7 +5657,7 @@ const xc = ({ content: e }) => {
5509
5657
  break;
5510
5658
  }
5511
5659
  return n ? n[0] : "";
5512
- }, oa = hr(
5660
+ }, fa = $r(
5513
5661
  /* GraphQL */
5514
5662
  `
5515
5663
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -5521,7 +5669,7 @@ const xc = ({ content: e }) => {
5521
5669
  }
5522
5670
  }
5523
5671
  `
5524
- ), Sc = { suspense: !0 }, wc = {
5672
+ ), Mc = { suspense: !0 }, Hc = {
5525
5673
  get: me.green,
5526
5674
  post: me.blue,
5527
5675
  put: me.yellow,
@@ -5530,23 +5678,23 @@ const xc = ({ content: e }) => {
5530
5678
  options: me.indigo,
5531
5679
  head: me.gray,
5532
5680
  trace: me.gray
5533
- }, Dc = ({
5681
+ }, pu = ({
5534
5682
  operation: e,
5535
5683
  selectedResponse: t,
5536
5684
  onSelectResponse: n
5537
5685
  }) => {
5538
5686
  var h, v, g;
5539
- const a = yc(), [s] = sa({
5540
- query: oa,
5687
+ const a = Ac(), [s] = ci({
5688
+ query: fa,
5541
5689
  variables: a,
5542
- context: Sc
5543
- }), i = wc[e.method.toLocaleLowerCase()] ?? me.gray, [r, o] = za(), [, l] = lr(), c = r.get("lang") ?? "shell", u = (h = e.requestBody) == null ? void 0 : h.content, f = e.path.split("/").map((b, y, x) => {
5690
+ context: Mc
5691
+ }), i = Hc[e.method.toLocaleLowerCase()] ?? me.gray, [r, o] = Wa(), [, l] = mr(), c = r.get("lang") ?? "shell", u = (h = e.requestBody) == null ? void 0 : h.content, f = e.path.split("/").map((b, y, x) => {
5544
5692
  const S = b.startsWith("{") && b.endsWith("}") || b.startsWith(":") ? b.replace(/[:{}]/g, "") : void 0;
5545
5693
  return (
5546
5694
  // eslint-disable-next-line react/no-array-index-key
5547
5695
  /* @__PURE__ */ p.jsxs(Ze, { children: [
5548
5696
  S ? /* @__PURE__ */ p.jsx(
5549
- Zt,
5697
+ rn,
5550
5698
  {
5551
5699
  name: S,
5552
5700
  backgroundOpacity: "0",
@@ -5558,9 +5706,9 @@ const xc = ({ content: e }) => {
5558
5706
  /* @__PURE__ */ p.jsx("wbr", {})
5559
5707
  ] }, b + y)
5560
5708
  );
5561
- }), { selectedServer: d } = mr(), m = Pa(() => {
5709
+ }), { selectedServer: d } = xr(), m = Aa(() => {
5562
5710
  var x, k;
5563
- const b = (x = u == null ? void 0 : u[0]) != null && x.schema ? We(u[0].schema) : void 0, y = new hc({
5711
+ const b = (x = u == null ? void 0 : u[0]) != null && x.schema ? Je(u[0].schema) : void 0, y = new Rc({
5564
5712
  method: e.method.toLocaleUpperCase(),
5565
5713
  url: (d ?? ((k = s.data) == null ? void 0 : k.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5566
5714
  postData: b ? {
@@ -5574,7 +5722,7 @@ const xc = ({ content: e }) => {
5574
5722
  headersSize: 0,
5575
5723
  bodySize: 0
5576
5724
  });
5577
- return $c(y, c);
5725
+ return Uc(y, c);
5578
5726
  }, [
5579
5727
  d,
5580
5728
  c,
@@ -5583,15 +5731,15 @@ const xc = ({ content: e }) => {
5583
5731
  u
5584
5732
  ]);
5585
5733
  return /* @__PURE__ */ p.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
5586
- /* @__PURE__ */ p.jsxs(un, { children: [
5587
- /* @__PURE__ */ p.jsxs(dn, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
5734
+ /* @__PURE__ */ p.jsxs(mn, { children: [
5735
+ /* @__PURE__ */ p.jsxs(hn, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
5588
5736
  /* @__PURE__ */ p.jsxs("span", { className: "font-mono break-words", children: [
5589
- /* @__PURE__ */ p.jsx("span", { className: q("font-semibold", i), children: e.method.toLocaleUpperCase() }),
5737
+ /* @__PURE__ */ p.jsx("span", { className: F("font-semibold", i), children: e.method.toLocaleUpperCase() }),
5590
5738
  " ",
5591
5739
  f
5592
5740
  ] }),
5593
5741
  /* @__PURE__ */ p.jsx(
5594
- vc,
5742
+ qc,
5595
5743
  {
5596
5744
  server: ((v = s.data) == null ? void 0 : v.schema.url) ?? "",
5597
5745
  servers: ((g = s.data) == null ? void 0 : g.schema.servers.map((b) => b.url)) ?? [],
@@ -5599,8 +5747,8 @@ const xc = ({ content: e }) => {
5599
5747
  }
5600
5748
  )
5601
5749
  ] }),
5602
- /* @__PURE__ */ p.jsx(pn, { className: "max-h-[480px] p-0", children: /* @__PURE__ */ p.jsx(
5603
- De,
5750
+ /* @__PURE__ */ p.jsx(yn, { className: "max-h-[480px] p-0", children: /* @__PURE__ */ p.jsx(
5751
+ We,
5604
5752
  {
5605
5753
  language: c,
5606
5754
  noBackground: !0,
@@ -5608,10 +5756,10 @@ const xc = ({ content: e }) => {
5608
5756
  code: m
5609
5757
  }
5610
5758
  ) }),
5611
- /* @__PURE__ */ p.jsxs(ia, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
5759
+ /* @__PURE__ */ p.jsxs(pa, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
5612
5760
  /* @__PURE__ */ p.jsx("span", { children: "Show example in" }),
5613
5761
  /* @__PURE__ */ p.jsx(
5614
- Ar,
5762
+ Mr,
5615
5763
  {
5616
5764
  className: "self-start max-w-[150px]",
5617
5765
  value: c,
@@ -5637,9 +5785,9 @@ const xc = ({ content: e }) => {
5637
5785
  )
5638
5786
  ] })
5639
5787
  ] }),
5640
- u && /* @__PURE__ */ p.jsx(xc, { content: u }),
5788
+ u && /* @__PURE__ */ p.jsx(_c, { content: u }),
5641
5789
  e.responses.length > 0 && /* @__PURE__ */ p.jsx(
5642
- kc,
5790
+ Lc,
5643
5791
  {
5644
5792
  selectedResponse: t,
5645
5793
  onSelectResponse: n,
@@ -5647,7 +5795,7 @@ const xc = ({ content: e }) => {
5647
5795
  }
5648
5796
  )
5649
5797
  ] });
5650
- }, jc = hr(`
5798
+ }, Bc = $r(`
5651
5799
  query GetCategories($input: JSON!, $type: SchemaType!) {
5652
5800
  schema(input: $input, type: $type) {
5653
5801
  tags {
@@ -5665,10 +5813,10 @@ const xc = ({ content: e }) => {
5665
5813
  }
5666
5814
  }
5667
5815
  }
5668
- `), Nc = () => {
5669
- const e = Ja(), t = e instanceof Error ? /* @__PURE__ */ p.jsx(De, { code: e.message }) : "An unknown error occurred";
5670
- return /* @__PURE__ */ p.jsx(wa, { category: "Error", title: "An error occurred", message: t });
5671
- }, Tc = {
5816
+ `), Vc = () => {
5817
+ const e = Ga(), t = e instanceof Error ? /* @__PURE__ */ p.jsx(We, { code: e.message }) : "An unknown error occurred";
5818
+ return /* @__PURE__ */ p.jsx(Ta, { category: "Error", title: "An error occurred", message: t });
5819
+ }, zc = {
5672
5820
  get: "green",
5673
5821
  post: "blue",
5674
5822
  put: "yellow",
@@ -5676,11 +5824,11 @@ const xc = ({ content: e }) => {
5676
5824
  patch: "purple",
5677
5825
  options: "gray",
5678
5826
  head: "gray"
5679
- }, Gc = (e) => {
5680
- const t = Ta(e.navigationId ?? "/reference"), n = e.server ? new la({
5827
+ }, fu = (e) => {
5828
+ const t = Pa(e.navigationId ?? "/reference"), n = e.server ? new Xa({
5681
5829
  url: e.server,
5682
- exchanges: [ca, ua]
5683
- }) : ya({ useMemoryClient: e.inMemory ?? !1 });
5830
+ exchanges: [Za, ei]
5831
+ }) : ba({ useMemoryClient: e.inMemory ?? !1 });
5684
5832
  return {
5685
5833
  getHead: () => {
5686
5834
  if (e.type === "url" && !e.skipPreload)
@@ -5705,8 +5853,8 @@ const xc = ({ content: e }) => {
5705
5853
  ...o
5706
5854
  }) => {
5707
5855
  var u;
5708
- const l = Sa(), c = pa({
5709
- queryFn: async () => (await n.query(oa, {
5856
+ const l = Na(), c = ha({
5857
+ queryFn: async () => (await n.query(fa, {
5710
5858
  type: e.type,
5711
5859
  input: e.input
5712
5860
  })).data,
@@ -5721,11 +5869,11 @@ const xc = ({ content: e }) => {
5721
5869
  onClick: l.login,
5722
5870
  children: [
5723
5871
  "Login to open in Playground ",
5724
- /* @__PURE__ */ p.jsx(ma, { size: 16 })
5872
+ /* @__PURE__ */ p.jsx(va, { size: 16 })
5725
5873
  ]
5726
5874
  }
5727
5875
  ) : /* @__PURE__ */ p.jsx(
5728
- qr,
5876
+ Hr,
5729
5877
  {
5730
5878
  url: r ?? "/",
5731
5879
  method: i ?? "get",
@@ -5733,16 +5881,16 @@ const xc = ({ content: e }) => {
5733
5881
  ...o,
5734
5882
  children: /* @__PURE__ */ p.jsxs(je, { className: "gap-2 items-center", variant: "outline", children: [
5735
5883
  "Open in Playground ",
5736
- /* @__PURE__ */ p.jsx(ha, { size: 16 })
5884
+ /* @__PURE__ */ p.jsx(ga, { size: 16 })
5737
5885
  ] })
5738
5886
  }
5739
5887
  );
5740
5888
  }
5741
5889
  }),
5742
5890
  getSidebar: async (a) => {
5743
- if (!Wa({ path: t, end: !1 }, a))
5891
+ if (!ti({ path: t, end: !1 }, a))
5744
5892
  return [];
5745
- const { data: s } = await n.query(jc, {
5893
+ const { data: s } = await n.query(Bc, {
5746
5894
  input: e.input,
5747
5895
  type: e.type
5748
5896
  });
@@ -5758,7 +5906,7 @@ const xc = ({ content: e }) => {
5758
5906
  href: `#${o.slug}`,
5759
5907
  badge: {
5760
5908
  label: o.method,
5761
- color: Tc[o.method.toLowerCase()]
5909
+ color: zc[o.method.toLowerCase()]
5762
5910
  }
5763
5911
  }))
5764
5912
  }));
@@ -5771,12 +5919,12 @@ const xc = ({ content: e }) => {
5771
5919
  getRoutes: () => [
5772
5920
  {
5773
5921
  async lazy() {
5774
- const { OpenApiRoute: a } = await import("./Route-Q5mqNQrv.js");
5922
+ const { OpenApiRoute: a } = await import("./Route-DI38nxYt.js");
5775
5923
  return {
5776
5924
  element: /* @__PURE__ */ p.jsx(a, { client: n, config: e })
5777
5925
  };
5778
5926
  },
5779
- errorElement: /* @__PURE__ */ p.jsx(Nc, {}),
5927
+ errorElement: /* @__PURE__ */ p.jsx(Vc, {}),
5780
5928
  children: [
5781
5929
  {
5782
5930
  path: t,
@@ -5784,7 +5932,7 @@ const xc = ({ content: e }) => {
5784
5932
  {
5785
5933
  index: !0,
5786
5934
  async lazy() {
5787
- const { OperationList: a } = await import("./OperationList-CYrmxPa8.js");
5935
+ const { OperationList: a } = await import("./OperationList-Ba24gUd2.js");
5788
5936
  return { element: /* @__PURE__ */ p.jsx(a, {}) };
5789
5937
  }
5790
5938
  }
@@ -5796,20 +5944,22 @@ const xc = ({ content: e }) => {
5796
5944
  };
5797
5945
  };
5798
5946
  export {
5799
- Zt as C,
5800
- Wc as O,
5801
- Ar as S,
5802
- gn as T,
5803
- ot as a,
5804
- br as b,
5805
- xr as c,
5806
- kr as d,
5807
- qt as e,
5808
- Oe as f,
5809
- hr as g,
5810
- Ce as h,
5811
- Dc as i,
5812
- Gc as o,
5813
- yc as u
5947
+ rn as C,
5948
+ du as O,
5949
+ Mr as S,
5950
+ wn as T,
5951
+ Ac as a,
5952
+ ot as b,
5953
+ Nr as c,
5954
+ Tr as d,
5955
+ Or as e,
5956
+ cu as f,
5957
+ $r as g,
5958
+ Lt as h,
5959
+ Oe as i,
5960
+ Ce as j,
5961
+ pu as k,
5962
+ fu as o,
5963
+ ci as u
5814
5964
  };
5815
- //# sourceMappingURL=index-BlJ2rj99.js.map
5965
+ //# sourceMappingURL=index-DA74gNq3.js.map