zudoku 0.0.0-eb5886a → 0.0.0-f114fe8

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 (131) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +0 -3
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +0 -1
  7. package/dist/app/main.js +21 -6
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/config/config.d.ts +1 -1
  14. package/dist/config/validators/SidebarSchema.d.ts +1 -1
  15. package/dist/config/validators/SidebarSchema.js +9 -5
  16. package/dist/config/validators/SidebarSchema.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +48 -62
  18. package/dist/config/validators/validate.js +5 -6
  19. package/dist/config/validators/validate.js.map +1 -1
  20. package/dist/index.d.ts +0 -3
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/components/Header.js +1 -5
  24. package/dist/lib/components/Header.js.map +1 -1
  25. package/dist/lib/components/TopNavigation.js +4 -28
  26. package/dist/lib/components/TopNavigation.js.map +1 -1
  27. package/dist/lib/components/context/ZudokuContext.d.ts +12 -5
  28. package/dist/lib/components/context/ZudokuContext.js +20 -26
  29. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  30. package/dist/lib/components/index.d.ts +1 -1
  31. package/dist/lib/components/navigation/Sidebar.js +3 -3
  32. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  33. package/dist/lib/components/navigation/SidebarCategory.js +3 -1
  34. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  35. package/dist/lib/components/navigation/SidebarItem.js +3 -1
  36. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  37. package/dist/lib/components/navigation/utils.js +14 -10
  38. package/dist/lib/components/navigation/utils.js.map +1 -1
  39. package/dist/lib/core/DevPortalContext.d.ts +6 -3
  40. package/dist/lib/core/DevPortalContext.js.map +1 -1
  41. package/dist/lib/core/plugins.d.ts +0 -1
  42. package/dist/lib/core/plugins.js.map +1 -1
  43. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -0
  44. package/dist/lib/plugins/markdown/generateRoutes.js +21 -0
  45. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
  46. package/dist/lib/plugins/markdown/index.d.ts +6 -5
  47. package/dist/lib/plugins/markdown/index.js +3 -31
  48. package/dist/lib/plugins/markdown/index.js.map +1 -1
  49. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  50. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  51. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  52. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  53. package/dist/lib/plugins/openapi/index.js.map +1 -1
  54. package/dist/lib/ui/Button.d.ts +1 -1
  55. package/dist/lib/util/MdxComponents.d.ts +1 -1
  56. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  57. package/dist/vite/plugin-config-reload.js.map +1 -1
  58. package/dist/vite/plugin-docs.js +13 -19
  59. package/dist/vite/plugin-docs.js.map +1 -1
  60. package/dist/vite/plugin-sidebar.js +2 -5
  61. package/dist/vite/plugin-sidebar.js.map +1 -1
  62. package/lib/{AuthenticationPlugin-BFO0iXPa.js → AuthenticationPlugin-Bx9FK124.js} +2 -2
  63. package/lib/{AuthenticationPlugin-BFO0iXPa.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
  64. package/lib/{Input-B2qMWklW.js → Input-CtVUl3eT.js} +3 -3
  65. package/lib/{Input-B2qMWklW.js.map → Input-CtVUl3eT.js.map} +1 -1
  66. package/lib/{MdxPage-aE7f-Uli.js → MdxPage-BqBWsXZ1.js} +24 -25
  67. package/lib/{MdxPage-aE7f-Uli.js.map → MdxPage-BqBWsXZ1.js.map} +1 -1
  68. package/lib/{OperationList-BcfWM4ir.js → OperationList-CYrmxPa8.js} +4 -4
  69. package/lib/OperationList-CYrmxPa8.js.map +1 -0
  70. package/lib/{Route-DzTbXYJ8.js → Route-Q5mqNQrv.js} +2 -2
  71. package/lib/{Route-DzTbXYJ8.js.map → Route-Q5mqNQrv.js.map} +1 -1
  72. package/lib/{SidebarBadge-1Mv5r_Vo.js → SidebarBadge-Dx7jtnoA.js} +2 -2
  73. package/lib/{SidebarBadge-1Mv5r_Vo.js.map → SidebarBadge-Dx7jtnoA.js.map} +1 -1
  74. package/lib/ZudokuContext-cr-pTRY1.js +1084 -0
  75. package/lib/ZudokuContext-cr-pTRY1.js.map +1 -0
  76. package/lib/assets/worker-Bcj4NA2p.js.map +1 -1
  77. package/lib/{index-DrrYONSc.js → index-BlJ2rj99.js} +419 -416
  78. package/lib/index-BlJ2rj99.js.map +1 -0
  79. package/lib/{index-Bwy2Len1.js → index-BngPzhKn.js} +3 -3
  80. package/lib/{index-Bwy2Len1.js.map → index-BngPzhKn.js.map} +1 -1
  81. package/lib/{index-DtahPCcC.js → index-Dolisrci.js} +2 -2
  82. package/lib/{index-DtahPCcC.js.map → index-Dolisrci.js.map} +1 -1
  83. package/lib/joinPath-B7kNnUX4.js +8 -0
  84. package/lib/joinPath-B7kNnUX4.js.map +1 -0
  85. package/lib/{AnchorLink-CnXSVkGB.js → utils-ByIc_KIM.js} +275 -231
  86. package/lib/utils-ByIc_KIM.js.map +1 -0
  87. package/lib/zudoku.auth-clerk.js +1 -1
  88. package/lib/zudoku.auth-openid.js +1 -1
  89. package/lib/zudoku.components.js +735 -745
  90. package/lib/zudoku.components.js.map +1 -1
  91. package/lib/zudoku.plugin-api-keys.js +3 -3
  92. package/lib/zudoku.plugin-markdown.js +27 -93
  93. package/lib/zudoku.plugin-markdown.js.map +1 -1
  94. package/lib/zudoku.plugin-openapi.js +5 -4
  95. package/lib/zudoku.plugin-openapi.js.map +1 -1
  96. package/package.json +1 -1
  97. package/src/app/entry.client.tsx +2 -4
  98. package/src/app/entry.server.tsx +0 -4
  99. package/src/app/main.tsx +25 -9
  100. package/src/app/standalone.tsx +1 -1
  101. package/src/lib/components/Header.tsx +2 -10
  102. package/src/lib/components/TopNavigation.tsx +15 -47
  103. package/src/lib/components/context/ZudokuContext.ts +20 -34
  104. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  105. package/src/lib/components/navigation/SidebarCategory.tsx +3 -1
  106. package/src/lib/components/navigation/SidebarItem.tsx +3 -1
  107. package/src/lib/components/navigation/utils.ts +16 -11
  108. package/src/lib/core/DevPortalContext.ts +2 -3
  109. package/src/lib/core/plugins.ts +0 -2
  110. package/src/lib/plugins/markdown/generateRoutes.tsx +38 -0
  111. package/src/lib/plugins/markdown/index.tsx +12 -49
  112. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  113. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  114. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  115. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  116. package/src/lib/plugins/openapi/index.tsx +1 -1
  117. package/src/lib/util/useScrollToAnchor.ts +1 -1
  118. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  119. package/dist/lib/plugins/markdown/resolver.js +0 -75
  120. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  121. package/dist/vite/debug.d.ts +0 -1
  122. package/dist/vite/debug.js +0 -10
  123. package/dist/vite/debug.js.map +0 -1
  124. package/lib/AnchorLink-CnXSVkGB.js.map +0 -1
  125. package/lib/OperationList-BcfWM4ir.js.map +0 -1
  126. package/lib/ZudokuContext-CSrx4lfi.js +0 -1134
  127. package/lib/ZudokuContext-CSrx4lfi.js.map +0 -1
  128. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  129. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  130. package/lib/index-DrrYONSc.js.map +0 -1
  131. package/src/lib/plugins/markdown/resolver.ts +0 -92
@@ -1,22 +1,22 @@
1
1
  import { j as p } from "./jsx-runtime-B6kdoens.js";
2
2
  import { u as sa, C as la, c as ca, f as ua } from "./urql-YhcsXYy8.js";
3
- import { D as da, x as pa, E as fa } from "./ZudokuContext-CSrx4lfi.js";
4
- import { XIcon as rr, EraserIcon as ar, ChevronsUpDownIcon as ma, LogInIcon as ha, CirclePlayIcon as ya } from "lucide-react";
5
- import { createClient as va } from "zudoku/openapi-worker";
6
- import { c as ga, g as ba, u as xa, a as ka, P as ft, b as yt, B as je, S as $a, V as Sa, m as wa } from "./index-DtahPCcC.js";
7
- import { E as ja } from "./ErrorPage-CsZAN_za.js";
8
- import { a as q, b as Na, S as De, C as Ta } from "./Markdown-DapSf3wG.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";
9
10
  import * as V from "react";
10
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";
11
- 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-1Mv5r_Vo.js";
12
- 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-B2qMWklW.js";
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";
13
14
  import { a as mr } from "./state-hNe1dw4B.js";
14
15
  import { S as vn } from "./Spinner-3cQDBVGr.js";
15
16
  import { g as Ba, c as He, a as Va } from "./_commonjsHelpers-BkfeUUK-.js";
16
- import { _ as za } from "./__vite-browser-external-BYRIRx8p.js";
17
- import { u as Ja, d as Wa } from "./index-BG0g4WW0.js";
18
- import { c as Da } from "./router-D2p7Olpn.js";
19
- const Ga = {
17
+ import { u as za, d as Ja } from "./index-BG0g4WW0.js";
18
+ import { c as Wa } from "./router-D2p7Olpn.js";
19
+ const Da = {
20
20
  kind: "Document",
21
21
  definitions: [
22
22
  {
@@ -161,7 +161,7 @@ const Ga = {
161
161
  }
162
162
  }
163
163
  ]
164
- }, Qa = {
164
+ }, Ga = {
165
165
  kind: "Document",
166
166
  definitions: [
167
167
  {
@@ -237,7 +237,7 @@ const Ga = {
237
237
  }
238
238
  }
239
239
  ]
240
- }, Ka = {
240
+ }, Qa = {
241
241
  kind: "Document",
242
242
  definitions: [
243
243
  {
@@ -481,7 +481,7 @@ const Ga = {
481
481
  }
482
482
  }
483
483
  ]
484
- }, Ya = {
484
+ }, Ka = {
485
485
  kind: "Document",
486
486
  definitions: [
487
487
  {
@@ -557,7 +557,7 @@ const Ga = {
557
557
  }
558
558
  }
559
559
  ]
560
- }, Xa = {
560
+ }, Ya = {
561
561
  kind: "Document",
562
562
  definitions: [
563
563
  {
@@ -673,17 +673,17 @@ const Ga = {
673
673
  }
674
674
  }
675
675
  ]
676
- }, Za = {
677
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Qa,
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": Ga,
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": Ka,
680
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ya,
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": Xa
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
682
682
  };
683
683
  function hr(e) {
684
- return Za[e] ?? {};
684
+ return Xa[e] ?? {};
685
685
  }
686
- const ei = Aa, ti = qa, ni = Ra, yr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
686
+ const Za = Aa, ei = qa, ti = Ra, yr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
687
687
  cr,
688
688
  {
689
689
  ref: n,
@@ -695,7 +695,7 @@ const ei = Aa, ti = qa, ni = Ra, yr = V.forwardRef(({ className: e, ...t }, n) =
695
695
  }
696
696
  ));
697
697
  yr.displayName = cr.displayName;
698
- const vr = V.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p.jsxs(ni, { children: [
698
+ const vr = V.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p.jsxs(ti, { children: [
699
699
  /* @__PURE__ */ p.jsx(yr, {}),
700
700
  /* @__PURE__ */ p.jsxs(
701
701
  ur,
@@ -729,7 +729,7 @@ const gr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
729
729
  }
730
730
  ));
731
731
  gr.displayName = dr.displayName;
732
- const ri = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
732
+ const ni = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
733
733
  pr,
734
734
  {
735
735
  ref: n,
@@ -737,7 +737,7 @@ const ri = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
737
737
  ...t
738
738
  }
739
739
  ));
740
- ri.displayName = pr.displayName;
740
+ ni.displayName = pr.displayName;
741
741
  const ot = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
742
742
  "div",
743
743
  {
@@ -768,7 +768,7 @@ const xr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
768
768
  }
769
769
  ));
770
770
  xr.displayName = "CardTitle";
771
- const ai = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
771
+ const ri = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
772
772
  "p",
773
773
  {
774
774
  ref: n,
@@ -776,10 +776,10 @@ const ai = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
776
776
  ...t
777
777
  }
778
778
  ));
779
- ai.displayName = "CardDescription";
779
+ ri.displayName = "CardDescription";
780
780
  const kr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx("div", { ref: n, className: q("p-6 pt-0", e), ...t }));
781
781
  kr.displayName = "CardContent";
782
- const ii = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
782
+ const ai = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
783
783
  "div",
784
784
  {
785
785
  ref: n,
@@ -787,10 +787,10 @@ const ii = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
787
787
  ...t
788
788
  }
789
789
  ));
790
- ii.displayName = "CardFooter";
791
- var Gt = "Tabs", [oi, zc] = ga(Gt, [
790
+ ai.displayName = "CardFooter";
791
+ var Gt = "Tabs", [ii, Jc] = va(Gt, [
792
792
  fr
793
- ]), $r = fr(), [si, Qt] = oi(Gt), Sr = V.forwardRef(
793
+ ]), $r = fr(), [oi, Qt] = ii(Gt), Sr = V.forwardRef(
794
794
  (e, t) => {
795
795
  const {
796
796
  __scopeTabs: n,
@@ -801,16 +801,16 @@ var Gt = "Tabs", [oi, zc] = ga(Gt, [
801
801
  dir: o,
802
802
  activationMode: l = "automatic",
803
803
  ...c
804
- } = e, u = ba(o), [f, d] = xa({
804
+ } = e, u = ga(o), [f, d] = ba({
805
805
  prop: a,
806
806
  onChange: s,
807
807
  defaultProp: i
808
808
  });
809
809
  return /* @__PURE__ */ p.jsx(
810
- si,
810
+ oi,
811
811
  {
812
812
  scope: n,
813
- baseId: ka(),
813
+ baseId: xa(),
814
814
  value: f,
815
815
  onValueChange: d,
816
816
  orientation: r,
@@ -968,12 +968,12 @@ const Ce = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
968
968
  Ce.displayName = Xt.displayName;
969
969
  const gt = (e) => Math.abs(
970
970
  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), li = (e, t = {}) => {
971
+ ), bt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${gt(t) + gt(n)}`)) : gt(e), si = (e, t = {}) => {
972
972
  const n = (3 * bt(e) + 2 * bt(e) + bt(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
973
973
  return `${n}deg ${a}% ${s}%`;
974
- }, xt = "data-linked-param", ci = (e) => {
975
- const [t] = Na();
976
- return li(
974
+ }, xt = "data-linked-param", li = (e) => {
975
+ const [t] = ja();
976
+ return si(
977
977
  e,
978
978
  t ? void 0 : { saturation: 85, lightness: 50 }
979
979
  );
@@ -986,7 +986,7 @@ const gt = (e) => Math.abs(
986
986
  children: i,
987
987
  onClick: r
988
988
  }) => {
989
- const o = ir(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = ci(l), f = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
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
990
  return or(() => {
991
991
  if (!c || !o.current) return;
992
992
  const m = () => {
@@ -1021,7 +1021,7 @@ const gt = (e) => Math.abs(
1021
1021
  ]
1022
1022
  }
1023
1023
  );
1024
- }, ui = (e, t, n) => {
1024
+ }, ci = (e, t, n) => {
1025
1025
  const a = t.replace(/(:\w+|\{\w+})/g, (i) => {
1026
1026
  var l;
1027
1027
  const r = i.replace(/[:{}]/g, "");
@@ -1033,7 +1033,7 @@ const gt = (e) => Math.abs(
1033
1033
  return n.queryParams.filter((i) => i.active).forEach((i) => {
1034
1034
  s.searchParams.set(i.name, i.value);
1035
1035
  }), s;
1036
- }, di = ({
1036
+ }, ui = ({
1037
1037
  control: e,
1038
1038
  register: t
1039
1039
  }) => {
@@ -1094,7 +1094,7 @@ const gt = (e) => Math.abs(
1094
1094
  }
1095
1095
  ) })
1096
1096
  ] });
1097
- }, pi = ({
1097
+ }, di = ({
1098
1098
  control: e
1099
1099
  }) => {
1100
1100
  const { fields: t } = Dt({
@@ -1166,9 +1166,9 @@ const gt = (e) => Math.abs(
1166
1166
  )
1167
1167
  ] }) })
1168
1168
  ] }, n.id)) }) });
1169
- }, fi = (e, t) => {
1169
+ }, pi = (e, t) => {
1170
1170
  const n = V.forwardRef(({ className: a, asChild: s, ...i }, r) => {
1171
- const o = s ? $a : e;
1171
+ const o = s ? ka : e;
1172
1172
  return V.createElement(o, {
1173
1173
  ...i,
1174
1174
  ref: r,
@@ -1176,10 +1176,10 @@ const gt = (e) => Math.abs(
1176
1176
  });
1177
1177
  });
1178
1178
  return n.displayName = `VariantComponent(${e})`, n;
1179
- }, mi = fi(
1179
+ }, fi = pi(
1180
1180
  "input",
1181
1181
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1182
- ), hi = ({
1182
+ ), mi = ({
1183
1183
  control: e,
1184
1184
  queryParams: t
1185
1185
  }) => {
@@ -1211,7 +1211,7 @@ const gt = (e) => Math.abs(
1211
1211
  $e,
1212
1212
  {
1213
1213
  control: e,
1214
- render: ({ field: c }) => /* @__PURE__ */ p.jsx(mi, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
1214
+ render: ({ field: c }) => /* @__PURE__ */ p.jsx(fi, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
1215
1215
  "label",
1216
1216
  {
1217
1217
  className: "flex items-center cursor-pointer",
@@ -1297,10 +1297,10 @@ const gt = (e) => Math.abs(
1297
1297
  !s && "hidden",
1298
1298
  "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
1299
1299
  ),
1300
- children: /* @__PURE__ */ p.jsx(ma, { size: 14 })
1300
+ children: /* @__PURE__ */ p.jsx(fa, { size: 14 })
1301
1301
  }
1302
1302
  )
1303
- ] }), yi = (e) => {
1303
+ ] }), hi = (e) => {
1304
1304
  var n;
1305
1305
  return (n = Object.entries({
1306
1306
  "application/json": "json",
@@ -1313,20 +1313,20 @@ const gt = (e) => Math.abs(
1313
1313
  }).find(
1314
1314
  ([a]) => e.includes(a)
1315
1315
  )) == null ? void 0 : n[1];
1316
- }, vi = (e) => {
1316
+ }, yi = (e) => {
1317
1317
  const t = e.get("Content-Type") || "";
1318
- return yi(t);
1319
- }, gi = (e) => {
1318
+ return hi(t);
1319
+ }, vi = (e) => {
1320
1320
  try {
1321
1321
  return JSON.stringify(JSON.parse(e), null, 2);
1322
1322
  } catch {
1323
1323
  return null;
1324
1324
  }
1325
- }, bi = ({
1325
+ }, gi = ({
1326
1326
  body: e = "",
1327
1327
  headers: t
1328
1328
  }) => {
1329
- const n = vi(t), a = gi(e), s = a || e, [i, r] = sr(
1329
+ const n = yi(t), a = vi(e), s = a || e, [i, r] = sr(
1330
1330
  a ? "formatted" : "raw"
1331
1331
  );
1332
1332
  return /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -1351,7 +1351,7 @@ const gt = (e) => Math.abs(
1351
1351
  }
1352
1352
  ) })
1353
1353
  ] });
1354
- }, et = "__none", xi = {
1354
+ }, et = "__none", bi = {
1355
1355
  200: "OK",
1356
1356
  201: "Created",
1357
1357
  202: "Accepted",
@@ -1362,7 +1362,7 @@ const gt = (e) => Math.abs(
1362
1362
  404: "Not Found",
1363
1363
  405: "Method Not Allowed",
1364
1364
  500: "Internal Server Error"
1365
- }, ki = ({
1365
+ }, xi = ({
1366
1366
  server: e,
1367
1367
  servers: t,
1368
1368
  url: n,
@@ -1401,7 +1401,7 @@ const gt = (e) => Math.abs(
1401
1401
  const k = Ha({
1402
1402
  mutationFn: async ($) => {
1403
1403
  var H, J;
1404
- const _ = ui(l ?? e, n, $), F = performance.now(), z = new Request(_, {
1404
+ const _ = ci(l ?? e, n, $), F = performance.now(), z = new Request(_, {
1405
1405
  method: a.toUpperCase(),
1406
1406
  headers: Object.fromEntries(
1407
1407
  $.headers.filter((I) => I.name).map((I) => [I.name, I.value])
@@ -1530,15 +1530,15 @@ const gt = (e) => Math.abs(
1530
1530
  )
1531
1531
  ] })
1532
1532
  ] }),
1533
- /* @__PURE__ */ p.jsx(Ce, { value: "headers", children: /* @__PURE__ */ p.jsx(di, { control: d, register: f }) }),
1533
+ /* @__PURE__ */ p.jsx(Ce, { value: "headers", children: /* @__PURE__ */ p.jsx(ui, { control: d, register: f }) }),
1534
1534
  /* @__PURE__ */ p.jsxs(Ce, { value: "parameters", children: [
1535
1535
  r.length > 0 && /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1536
1536
  /* @__PURE__ */ p.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1537
- /* @__PURE__ */ p.jsx(pi, { control: d })
1537
+ /* @__PURE__ */ p.jsx(di, { control: d })
1538
1538
  ] }),
1539
1539
  i.length > 0 && /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1540
1540
  /* @__PURE__ */ p.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1541
- /* @__PURE__ */ p.jsx(hi, { control: d, queryParams: i })
1541
+ /* @__PURE__ */ p.jsx(mi, { control: d, queryParams: i })
1542
1542
  ] })
1543
1543
  ] }),
1544
1544
  /* @__PURE__ */ p.jsx(Ce, { value: "body", children: /* @__PURE__ */ p.jsx(
@@ -1553,7 +1553,7 @@ const gt = (e) => Math.abs(
1553
1553
  )
1554
1554
  ] }),
1555
1555
  /* @__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(Ta, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
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." }),
1557
1557
  /* @__PURE__ */ p.jsxs(ot, { children: [
1558
1558
  /* @__PURE__ */ p.jsx(br, { children: /* @__PURE__ */ p.jsx(xr, { children: "Request failed" }) }),
1559
1559
  /* @__PURE__ */ p.jsxs(kr, { children: [
@@ -1568,7 +1568,7 @@ const gt = (e) => Math.abs(
1568
1568
  "Status: ",
1569
1569
  k.data.status,
1570
1570
  " ",
1571
- xi[k.data.status] ?? ""
1571
+ bi[k.data.status] ?? ""
1572
1572
  ] }),
1573
1573
  /* @__PURE__ */ p.jsxs("div", { children: [
1574
1574
  "Time: ",
@@ -1587,7 +1587,7 @@ const gt = (e) => Math.abs(
1587
1587
  /* @__PURE__ */ p.jsx(Oe, { value: "headers", children: j.length ? `Headers (${j.length})` : "No headers" })
1588
1588
  ] }),
1589
1589
  /* @__PURE__ */ p.jsx(Ce, { value: "response", children: /* @__PURE__ */ p.jsx(
1590
- bi,
1590
+ gi,
1591
1591
  {
1592
1592
  headers: k.data.headers,
1593
1593
  body: k.data.body
@@ -1612,7 +1612,7 @@ const gt = (e) => Math.abs(
1612
1612
  ] }) })
1613
1613
  }
1614
1614
  );
1615
- }, $i = ({
1615
+ }, ki = ({
1616
1616
  className: e,
1617
1617
  size: t = 16
1618
1618
  }) => /* @__PURE__ */ p.jsx(
@@ -1635,10 +1635,10 @@ const gt = (e) => Math.abs(
1635
1635
  }
1636
1636
  ), qr = (e) => {
1637
1637
  const [t, n] = sr(!1);
1638
- return /* @__PURE__ */ p.jsxs(ei, { onOpenChange: (a) => n(a), children: [
1639
- /* @__PURE__ */ p.jsx(ti, { 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: [
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: [
1640
1640
  "Test",
1641
- /* @__PURE__ */ p.jsx($i, { className: "", size: 14 })
1641
+ /* @__PURE__ */ p.jsx(ki, { className: "", size: 14 })
1642
1642
  ] }) }),
1643
1643
  /* @__PURE__ */ p.jsxs(
1644
1644
  vr,
@@ -1646,8 +1646,8 @@ const gt = (e) => Math.abs(
1646
1646
  className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
1647
1647
  "aria-describedby": void 0,
1648
1648
  children: [
1649
- /* @__PURE__ */ p.jsx(Sa, { children: /* @__PURE__ */ p.jsx(gr, { children: "Playground" }) }),
1650
- t && /* @__PURE__ */ p.jsx(ki, { ...e })
1649
+ /* @__PURE__ */ p.jsx($a, { children: /* @__PURE__ */ p.jsx(gr, { children: "Playground" }) }),
1650
+ t && /* @__PURE__ */ p.jsx(xi, { ...e })
1651
1651
  ]
1652
1652
  }
1653
1653
  )
@@ -1678,16 +1678,16 @@ var bn = (e, t) => {
1678
1678
  this.postProcessors = [...this.postProcessors, n];
1679
1679
  }, this.indentationCharacter = e || xn, this.lineJoin = t ?? kn;
1680
1680
  }
1681
- }, Si = function(e) {
1681
+ }, $i = function(e) {
1682
1682
  return Object.prototype.toString.call(e) === "[object RegExp]";
1683
- }, wi = function(e) {
1683
+ }, Si = function(e) {
1684
1684
  var t = typeof e;
1685
1685
  return e !== null && (t === "object" || t === "function");
1686
1686
  }, en = {};
1687
1687
  Object.defineProperty(en, "__esModule", { value: !0 });
1688
1688
  en.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
1689
- const ji = Si, Ni = wi, Ti = en.default;
1690
- var Oi = (e, t, n) => {
1689
+ const wi = $i, ji = Si, Ni = en.default;
1690
+ var Ti = (e, t, n) => {
1691
1691
  const a = [];
1692
1692
  return function s(i, r, o) {
1693
1693
  r = r || {}, r.indent = r.indent || " ", o = o || "";
@@ -1714,7 +1714,7 @@ var Oi = (e, t, n) => {
1714
1714
  };
1715
1715
  if (a.indexOf(i) !== -1)
1716
1716
  return '"[Circular]"';
1717
- if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" || ji(i))
1717
+ if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" || wi(i))
1718
1718
  return String(i);
1719
1719
  if (i instanceof Date)
1720
1720
  return `new Date('${i.toISOString()}')`;
@@ -1729,8 +1729,8 @@ var Oi = (e, t, n) => {
1729
1729
  }).join("") + l.pad + "]";
1730
1730
  return a.pop(), c(u);
1731
1731
  }
1732
- if (Ni(i)) {
1733
- let u = Object.keys(i).concat(Ti(i));
1732
+ if (ji(i)) {
1733
+ let u = Object.keys(i).concat(Ni(i));
1734
1734
  if (r.filter && (u = u.filter((d) => r.filter(i, d))), u.length === 0)
1735
1735
  return "{}";
1736
1736
  a.push(i);
@@ -1745,13 +1745,13 @@ var Oi = (e, t, n) => {
1745
1745
  ` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
1746
1746
  }(e, t, n);
1747
1747
  };
1748
- const Y = /* @__PURE__ */ Ba(Oi);
1748
+ const Y = /* @__PURE__ */ Ba(Ti);
1749
1749
  function ze(e, t = {}) {
1750
1750
  const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
1751
1751
  return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
1752
1752
  ` ? 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
1753
  }
1754
- var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }), Ci = {
1754
+ var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }), Oi = {
1755
1755
  info: {
1756
1756
  key: "libcurl",
1757
1757
  title: "Libcurl",
@@ -1767,7 +1767,7 @@ var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }),
1767
1767
  i(`headers = curl_slist_append(headers, "${c}: ${G(n[c])}");`);
1768
1768
  }), 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
1769
  }
1770
- }, Pi = {
1770
+ }, Ci = {
1771
1771
  info: {
1772
1772
  key: "c",
1773
1773
  title: "C",
@@ -1775,19 +1775,19 @@ var Je = (e) => ze(e, { delimiter: "'" }), G = (e) => ze(e, { delimiter: '"' }),
1775
1775
  cli: "c"
1776
1776
  },
1777
1777
  clientsById: {
1778
- libcurl: Ci
1778
+ libcurl: Oi
1779
1779
  }
1780
1780
  }, Z = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), de = (e, t) => {
1781
1781
  const n = Z(e, t);
1782
1782
  if (n)
1783
1783
  return e[n];
1784
- }, mt = (e, t) => !!Z(e, t), Ei = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1784
+ }, mt = (e, t) => !!Z(e, t), Pi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1785
1785
  (t) => e.indexOf(t) > -1
1786
1786
  ), $n = class {
1787
1787
  constructor(e) {
1788
1788
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
1789
1789
  }
1790
- }, Ri = class {
1790
+ }, Ei = class {
1791
1791
  constructor(e) {
1792
1792
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
1793
1793
  }
@@ -1824,7 +1824,7 @@ ${n}`);
1824
1824
  default:
1825
1825
  return e.toString();
1826
1826
  }
1827
- }, Ai = {
1827
+ }, Ri = {
1828
1828
  info: {
1829
1829
  key: "clj_http",
1830
1830
  title: "clj-http",
@@ -1866,7 +1866,7 @@ ${n}`);
1866
1866
  if (n.params) {
1867
1867
  c.multipart = n.params.map((f) => f.fileName && !f.value ? {
1868
1868
  name: f.name,
1869
- content: new Ri(f.fileName)
1869
+ content: new Ei(f.fileName)
1870
1870
  } : {
1871
1871
  name: f.name,
1872
1872
  content: f.value
@@ -1895,16 +1895,16 @@ ${n}`);
1895
1895
  }
1896
1896
  return o();
1897
1897
  }
1898
- }, qi = {
1898
+ }, Ai = {
1899
1899
  info: {
1900
1900
  key: "clojure",
1901
1901
  title: "Clojure",
1902
1902
  default: "clj_http"
1903
1903
  },
1904
1904
  clientsById: {
1905
- clj_http: Ai
1905
+ clj_http: Ri
1906
1906
  }
1907
- }, Fi = (e) => {
1907
+ }, qi = (e) => {
1908
1908
  let t = de(e, "accept-encoding");
1909
1909
  if (!t)
1910
1910
  return [];
@@ -1921,7 +1921,7 @@ ${n}`);
1921
1921
  }
1922
1922
  });
1923
1923
  }), a;
1924
- }, Ii = {
1924
+ }, Fi = {
1925
1925
  info: {
1926
1926
  key: "httpclient",
1927
1927
  title: "HttpClient",
@@ -1937,7 +1937,7 @@ ${n}`);
1937
1937
  }, { push: r, join: o } = new O({ indent: i.indent });
1938
1938
  r("using System.Net.Http.Headers;");
1939
1939
  let l = "";
1940
- const c = !!e.cookie, u = Fi(e);
1940
+ const c = !!e.cookie, u = qi(e);
1941
1941
  (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
1942
  const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
1943
1943
  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 +1974,10 @@ ${n}`);
1974
1974
  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
1975
  }
1976
1976
  };
1977
- function _i(e) {
1977
+ function Ii(e) {
1978
1978
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
1979
1979
  }
1980
- var Li = {
1980
+ var _i = {
1981
1981
  info: {
1982
1982
  key: "restsharp",
1983
1983
  title: "RestSharp",
@@ -2027,11 +2027,11 @@ var Li = {
2027
2027
  if (!s.text) break;
2028
2028
  r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
2029
2029
  }
2030
- return r(`var response = await client.${_i(e)}Async(request);
2030
+ return r(`var response = await client.${Ii(e)}Async(request);
2031
2031
  `), r(`Console.WriteLine("{0}", response.Content);
2032
2032
  `), o();
2033
2033
  }
2034
- }, Ui = {
2034
+ }, Li = {
2035
2035
  info: {
2036
2036
  key: "csharp",
2037
2037
  title: "C#",
@@ -2039,10 +2039,10 @@ var Li = {
2039
2039
  cli: "dotnet"
2040
2040
  },
2041
2041
  clientsById: {
2042
- httpclient: Ii,
2043
- restsharp: Li
2042
+ httpclient: Fi,
2043
+ restsharp: _i
2044
2044
  }
2045
- }, Hi = {
2045
+ }, Ui = {
2046
2046
  info: {
2047
2047
  key: "native",
2048
2048
  title: "NewRequest",
@@ -2060,7 +2060,7 @@ var Li = {
2060
2060
  r(`req.Header.Add("${y}", "${G(n[y])}")`, m);
2061
2061
  }), 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
2062
  }
2063
- }, Mi = {
2063
+ }, Hi = {
2064
2064
  info: {
2065
2065
  key: "go",
2066
2066
  title: "Go",
@@ -2068,10 +2068,10 @@ var Li = {
2068
2068
  cli: "go"
2069
2069
  },
2070
2070
  clientsById: {
2071
- native: Hi
2071
+ native: Ui
2072
2072
  }
2073
2073
  }, wn = `\r
2074
- `, Bi = {
2074
+ `, Mi = {
2075
2075
  info: {
2076
2076
  key: "http1.1",
2077
2077
  title: "HTTP/1.1",
@@ -2099,16 +2099,16 @@ var Li = {
2099
2099
  const m = u(), h = i.text || "";
2100
2100
  return `${m}${wn}${h}`;
2101
2101
  }
2102
- }, Vi = {
2102
+ }, Bi = {
2103
2103
  info: {
2104
2104
  key: "http",
2105
2105
  title: "HTTP",
2106
2106
  default: "http1.1"
2107
2107
  },
2108
2108
  clientsById: {
2109
- "http1.1": Bi
2109
+ "http1.1": Mi
2110
2110
  }
2111
- }, zi = {
2111
+ }, Vi = {
2112
2112
  info: {
2113
2113
  key: "asynchttp",
2114
2114
  title: "AsyncHttp",
@@ -2125,7 +2125,7 @@ var Li = {
2125
2125
  o(`.setHeader("${c}", "${G(t[c])}")`, 1);
2126
2126
  }), 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
2127
  }
2128
- }, Ji = {
2128
+ }, zi = {
2129
2129
  info: {
2130
2130
  key: "nethttp",
2131
2131
  title: "java.net.http",
@@ -2147,7 +2147,7 @@ var Li = {
2147
2147
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
2148
2148
  ), r("System.out.println(response.body());"), o();
2149
2149
  }
2150
- }, Wi = {
2150
+ }, Ji = {
2151
2151
  info: {
2152
2152
  key: "okhttp",
2153
2153
  title: "OkHttp",
@@ -2164,7 +2164,7 @@ var Li = {
2164
2164
  r(`.addHeader("${f}", "${G(a[f])}")`, 1);
2165
2165
  }), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), l();
2166
2166
  }
2167
- }, Di = {
2167
+ }, Wi = {
2168
2168
  info: {
2169
2169
  key: "unirest",
2170
2170
  title: "Unirest",
@@ -2181,19 +2181,19 @@ var Li = {
2181
2181
  o(`.header("${c}", "${G(t[c])}")`, 1);
2182
2182
  }), n.text && o(`.body(${JSON.stringify(n.text)})`, 1), o(".asString();", 1), r();
2183
2183
  }
2184
- }, Gi = {
2184
+ }, Di = {
2185
2185
  info: {
2186
2186
  key: "java",
2187
2187
  title: "Java",
2188
2188
  default: "unirest"
2189
2189
  },
2190
2190
  clientsById: {
2191
- asynchttp: zi,
2192
- nethttp: Ji,
2193
- okhttp: Wi,
2194
- unirest: Di
2191
+ asynchttp: Vi,
2192
+ nethttp: zi,
2193
+ okhttp: Ji,
2194
+ unirest: Wi
2195
2195
  }
2196
- }, Qi = {
2196
+ }, Gi = {
2197
2197
  info: {
2198
2198
  key: "axios",
2199
2199
  title: "Axios",
@@ -2237,7 +2237,7 @@ var Li = {
2237
2237
  }).replace('"[form]"', "form");
2238
2238
  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
2239
  }
2240
- }, Ki = {
2240
+ }, Qi = {
2241
2241
  info: {
2242
2242
  key: "fetch",
2243
2243
  title: "fetch",
@@ -2290,7 +2290,7 @@ var Li = {
2290
2290
  })};`
2291
2291
  ), 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
2292
  }
2293
- }, Yi = {
2293
+ }, Ki = {
2294
2294
  info: {
2295
2295
  key: "jquery",
2296
2296
  title: "jQuery",
@@ -2334,7 +2334,7 @@ var Li = {
2334
2334
  const u = Y(c, { indent: i.indent }).replace("'[form]'", "form");
2335
2335
  return o(`const settings = ${u};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), l();
2336
2336
  }
2337
- }, Xi = {
2337
+ }, Yi = {
2338
2338
  info: {
2339
2339
  key: "xhr",
2340
2340
  title: "XMLHttpRequest",
@@ -2375,19 +2375,19 @@ var Li = {
2375
2375
  o(`xhr.setRequestHeader('${u}', '${Je(t[u])}');`);
2376
2376
  }), r(), o("xhr.send(data);"), l();
2377
2377
  }
2378
- }, Zi = {
2378
+ }, Xi = {
2379
2379
  info: {
2380
2380
  key: "javascript",
2381
2381
  title: "JavaScript",
2382
2382
  default: "xhr"
2383
2383
  },
2384
2384
  clientsById: {
2385
- xhr: Xi,
2386
- axios: Qi,
2387
- fetch: Ki,
2388
- jquery: Yi
2385
+ xhr: Yi,
2386
+ axios: Gi,
2387
+ fetch: Qi,
2388
+ jquery: Ki
2389
2389
  }
2390
- }, eo = {
2390
+ }, Zi = {
2391
2391
  info: {
2392
2392
  key: "native",
2393
2393
  title: "Native JSON",
@@ -2421,16 +2421,16 @@ var Li = {
2421
2421
  }
2422
2422
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
2423
2423
  }
2424
- }, to = {
2424
+ }, eo = {
2425
2425
  info: {
2426
2426
  key: "json",
2427
2427
  title: "JSON",
2428
2428
  default: "native"
2429
2429
  },
2430
2430
  clientsById: {
2431
- native: eo
2431
+ native: Zi
2432
2432
  }
2433
- }, no = {
2433
+ }, to = {
2434
2434
  info: {
2435
2435
  key: "okhttp",
2436
2436
  title: "OkHttp",
@@ -2447,16 +2447,16 @@ var Li = {
2447
2447
  l(`.addHeader("${f}", "${G(a[f])}")`, 1);
2448
2448
  }), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), o();
2449
2449
  }
2450
- }, ro = {
2450
+ }, no = {
2451
2451
  info: {
2452
2452
  key: "kotlin",
2453
2453
  title: "Kotlin",
2454
2454
  default: "okhttp"
2455
2455
  },
2456
2456
  clientsById: {
2457
- okhttp: no
2457
+ okhttp: to
2458
2458
  }
2459
- }, ao = {
2459
+ }, ro = {
2460
2460
  info: {
2461
2461
  key: "axios",
2462
2462
  title: "Axios",
@@ -2490,7 +2490,7 @@ var Li = {
2490
2490
  const f = Y(u, { indent: " ", inlineCharacterLimit: 80 });
2491
2491
  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
2492
  }
2493
- }, io = {
2493
+ }, ao = {
2494
2494
  info: {
2495
2495
  key: "fetch",
2496
2496
  title: "Fetch",
@@ -2550,7 +2550,7 @@ var Li = {
2550
2550
  });
2551
2551
  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
2552
  }
2553
- }, oo = {
2553
+ }, io = {
2554
2554
  info: {
2555
2555
  key: "native",
2556
2556
  title: "HTTP",
@@ -2589,7 +2589,7 @@ var Li = {
2589
2589
  }
2590
2590
  return l("req.end();"), o();
2591
2591
  }
2592
- }, so = {
2592
+ }, oo = {
2593
2593
  info: {
2594
2594
  key: "request",
2595
2595
  title: "Request",
@@ -2642,7 +2642,7 @@ var Li = {
2642
2642
  c(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(g)}'), '${t}');`);
2643
2643
  }), 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
2644
  }
2645
- }, lo = {
2645
+ }, so = {
2646
2646
  info: {
2647
2647
  key: "unirest",
2648
2648
  title: "Unirest",
@@ -2683,7 +2683,7 @@ var Li = {
2683
2683
  }
2684
2684
  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
2685
  }
2686
- }, co = {
2686
+ }, lo = {
2687
2687
  info: {
2688
2688
  key: "node",
2689
2689
  title: "Node.js",
@@ -2691,11 +2691,11 @@ var Li = {
2691
2691
  cli: "node %s"
2692
2692
  },
2693
2693
  clientsById: {
2694
- native: oo,
2695
- request: so,
2696
- unirest: lo,
2697
- axios: ao,
2698
- fetch: io
2694
+ native: io,
2695
+ request: oo,
2696
+ unirest: so,
2697
+ axios: ro,
2698
+ fetch: ao
2699
2699
  }
2700
2700
  }, kt = (e, t, n, a) => {
2701
2701
  const s = `${e} *${t} = `, i = It(n, a ? s.length : void 0);
@@ -2719,7 +2719,7 @@ var Li = {
2719
2719
  default:
2720
2720
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
2721
2721
  }
2722
- }, uo = {
2722
+ }, co = {
2723
2723
  info: {
2724
2724
  key: "nsurlsession",
2725
2725
  title: "NSURLSession",
@@ -2776,16 +2776,16 @@ var Li = {
2776
2776
  2
2777
2777
  ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
2778
2778
  }
2779
- }, po = {
2779
+ }, uo = {
2780
2780
  info: {
2781
2781
  key: "objc",
2782
2782
  title: "Objective-C",
2783
2783
  default: "nsurlsession"
2784
2784
  },
2785
2785
  clientsById: {
2786
- nsurlsession: uo
2786
+ nsurlsession: co
2787
2787
  }
2788
- }, fo = {
2788
+ }, po = {
2789
2789
  info: {
2790
2790
  key: "cohttp",
2791
2791
  title: "CoHTTP",
@@ -2811,14 +2811,14 @@ var Li = {
2811
2811
  const f = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
2812
2812
  return o(`Client.call ${f}${d}${m} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), c();
2813
2813
  }
2814
- }, mo = {
2814
+ }, fo = {
2815
2815
  info: {
2816
2816
  key: "ocaml",
2817
2817
  title: "OCaml",
2818
2818
  default: "cohttp"
2819
2819
  },
2820
2820
  clientsById: {
2821
- cohttp: fo
2821
+ cohttp: po
2822
2822
  }
2823
2823
  }, A = (e, t, n) => {
2824
2824
  switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
@@ -2879,7 +2879,7 @@ ${n}]`;
2879
2879
  "UNLOCK",
2880
2880
  "UPDATE",
2881
2881
  "VERSION_CONTROL"
2882
- ], ho = {
2882
+ ], mo = {
2883
2883
  info: {
2884
2884
  key: "curl",
2885
2885
  title: "cURL",
@@ -2957,7 +2957,7 @@ ${c}` });
2957
2957
  return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
2958
2958
  ${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
2959
  }
2960
- }, yo = {
2960
+ }, ho = {
2961
2961
  info: {
2962
2962
  key: "guzzle",
2963
2963
  title: "Guzzle",
@@ -3008,7 +3008,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3008
3008
  return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (f("'headers' => [", 1), f(m.join(`
3009
3009
  `)), 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
3010
  }
3011
- }, vo = {
3011
+ }, yo = {
3012
3012
  info: {
3013
3013
  key: "http1",
3014
3014
  title: "HTTP v1",
@@ -3030,7 +3030,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3030
3030
  }
3031
3031
  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
3032
  }
3033
- }, go = {
3033
+ }, vo = {
3034
3034
  info: {
3035
3035
  key: "http2",
3036
3036
  title: "HTTP v2",
@@ -3078,7 +3078,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3078
3078
  }
3079
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();
3080
3080
  }
3081
- }, bo = {
3081
+ }, go = {
3082
3082
  info: {
3083
3083
  key: "php",
3084
3084
  title: "PHP",
@@ -3086,10 +3086,10 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3086
3086
  cli: "php %s"
3087
3087
  },
3088
3088
  clientsById: {
3089
- curl: ho,
3090
- guzzle: yo,
3091
- http1: vo,
3092
- http2: go
3089
+ curl: mo,
3090
+ guzzle: ho,
3091
+ http1: yo,
3092
+ http2: vo
3093
3093
  }
3094
3094
  }, _r = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: i, fullUrl: r, postData: o, allHeaders: l }) => {
3095
3095
  const { push: c, join: u } = new O();
@@ -3103,7 +3103,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3103
3103
  }), d.push("-WebSession $session")), o.text && (d.push(
3104
3104
  `-ContentType '${ze(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
3105
3105
  ), d.push(`-Body '${o.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
3106
- }, xo = {
3106
+ }, bo = {
3107
3107
  info: {
3108
3108
  key: "restmethod",
3109
3109
  title: "Invoke-RestMethod",
@@ -3112,7 +3112,7 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3112
3112
  extname: ".ps1"
3113
3113
  },
3114
3114
  convert: _r("Invoke-RestMethod")
3115
- }, ko = {
3115
+ }, xo = {
3116
3116
  info: {
3117
3117
  key: "webrequest",
3118
3118
  title: "Invoke-WebRequest",
@@ -3121,15 +3121,15 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3121
3121
  extname: ".ps1"
3122
3122
  },
3123
3123
  convert: _r("Invoke-WebRequest")
3124
- }, $o = {
3124
+ }, ko = {
3125
3125
  info: {
3126
3126
  key: "powershell",
3127
3127
  title: "Powershell",
3128
3128
  default: "webrequest"
3129
3129
  },
3130
3130
  clientsById: {
3131
- webrequest: ko,
3132
- restmethod: xo
3131
+ webrequest: xo,
3132
+ restmethod: bo
3133
3133
  }
3134
3134
  };
3135
3135
  function Nn(e, t, n, a, s) {
@@ -3161,7 +3161,7 @@ var Ee = (e, t, n) => {
3161
3161
  default:
3162
3162
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
3163
3163
  }
3164
- }, So = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], wo = {
3164
+ }, $o = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], So = {
3165
3165
  info: {
3166
3166
  key: "requests",
3167
3167
  title: "Requests",
@@ -3224,10 +3224,10 @@ var Ee = (e, t, n) => {
3224
3224
  r(y !== g ? `"${x}": "${G(u[x])}",` : `"${x}": "${G(u[x])}"`, 1), y += 1;
3225
3225
  }), r("}"), o();
3226
3226
  }
3227
- let b = So.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
3227
+ let b = $o.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
3228
3228
  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
3229
  }
3230
- }, jo = {
3230
+ }, wo = {
3231
3231
  info: {
3232
3232
  key: "python",
3233
3233
  title: "Python",
@@ -3235,9 +3235,9 @@ var Ee = (e, t, n) => {
3235
3235
  cli: "python3 %s"
3236
3236
  },
3237
3237
  clientsById: {
3238
- requests: wo
3238
+ requests: So
3239
3239
  }
3240
- }, No = {
3240
+ }, jo = {
3241
3241
  info: {
3242
3242
  key: "httr",
3243
3243
  title: "httr",
@@ -3276,16 +3276,16 @@ var Ee = (e, t, n) => {
3276
3276
  const k = [y, g, v, h].filter((S) => !!S).join(", ");
3277
3277
  return k && (x += `, ${k}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), o(), r('content(response, "text")'), l();
3278
3278
  }
3279
- }, To = {
3279
+ }, No = {
3280
3280
  info: {
3281
3281
  key: "r",
3282
3282
  title: "R",
3283
3283
  default: "httr"
3284
3284
  },
3285
3285
  clientsById: {
3286
- httr: No
3286
+ httr: jo
3287
3287
  }
3288
- }, Oo = {
3288
+ }, To = {
3289
3289
  info: {
3290
3290
  key: "native",
3291
3291
  title: "net::http",
@@ -3316,16 +3316,16 @@ var Ee = (e, t, n) => {
3316
3316
  i(`request["${d}"] = '${Je(s[d])}'`);
3317
3317
  }), a.text && i(`request.body = ${JSON.stringify(a.text)}`), r(), i("response = http.request(request)"), i("puts response.read_body"), o();
3318
3318
  }
3319
- }, Co = {
3319
+ }, Oo = {
3320
3320
  info: {
3321
3321
  key: "ruby",
3322
3322
  title: "Ruby",
3323
3323
  default: "native"
3324
3324
  },
3325
3325
  clientsById: {
3326
- native: Oo
3326
+ native: To
3327
3327
  }
3328
- }, K = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Po = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Eo = {
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 = {
3329
3329
  "http1.0": "0",
3330
3330
  "url ": "",
3331
3331
  cookie: "b",
@@ -3335,13 +3335,13 @@ var Ee = (e, t, n) => {
3335
3335
  header: "H",
3336
3336
  insecure: "k",
3337
3337
  request: "X"
3338
- }, Ro = (e) => (t) => {
3338
+ }, Eo = (e) => (t) => {
3339
3339
  if (e) {
3340
- const n = Eo[t];
3340
+ const n = Po[t];
3341
3341
  return n ? `-${n}` : "";
3342
3342
  }
3343
3343
  return `--${t}`;
3344
- }, Ao = {
3344
+ }, Ro = {
3345
3345
  info: {
3346
3346
  key: "curl",
3347
3347
  title: "cURL",
@@ -3355,7 +3355,7 @@ var Ee = (e, t, n) => {
3355
3355
  ...typeof o == "string" ? { indent: o } : {},
3356
3356
  join: o !== !1 ? ` \\
3357
3357
  ${o}` : " "
3358
- }), h = Ro(l);
3358
+ }), h = Eo(l);
3359
3359
  let v = K(e);
3360
3360
  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
3361
  const b = Z(a, "content-type");
@@ -3387,7 +3387,7 @@ ${o}` : " "
3387
3387
  if (!i.text)
3388
3388
  break;
3389
3389
  let b = !1;
3390
- if (Ei(i.mimeType) && i.text.length > 20)
3390
+ if (Pi(i.mimeType) && i.text.length > 20)
3391
3391
  try {
3392
3392
  const y = JSON.parse(i.text);
3393
3393
  b = !0, i.text.indexOf("'") > 0 ? d(
@@ -3409,7 +3409,7 @@ ${JSON.stringify(y, null, f)}
3409
3409
  }
3410
3410
  return m();
3411
3411
  }
3412
- }, qo = {
3412
+ }, Ao = {
3413
3413
  info: {
3414
3414
  key: "httpie",
3415
3415
  title: "HTTPie",
@@ -3458,7 +3458,7 @@ ${o.indent}` : " "
3458
3458
  }
3459
3459
  return c();
3460
3460
  }
3461
- }, Fo = {
3461
+ }, qo = {
3462
3462
  info: {
3463
3463
  key: "wget",
3464
3464
  title: "Wget",
@@ -3480,9 +3480,9 @@ ${i.indent}` : " "
3480
3480
  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
3481
  const c = `${l}: ${n[l]}`;
3482
3482
  r(`--header ${K(c)}`);
3483
- }), t.text && r(`--body-data ${Po(K(t.text))}`), r(i.short ? "-O" : "--output-document"), r(`- ${K(a)}`), o();
3483
+ }), t.text && r(`--body-data ${Co(K(t.text))}`), r(i.short ? "-O" : "--output-document"), r(`- ${K(a)}`), o();
3484
3484
  }
3485
- }, Io = {
3485
+ }, Fo = {
3486
3486
  info: {
3487
3487
  key: "shell",
3488
3488
  title: "Shell",
@@ -3490,9 +3490,9 @@ ${i.indent}` : " "
3490
3490
  cli: "%s"
3491
3491
  },
3492
3492
  clientsById: {
3493
- curl: Ao,
3494
- httpie: qo,
3495
- wget: Fo
3493
+ curl: Ro,
3494
+ httpie: Ao,
3495
+ wget: qo
3496
3496
  }
3497
3497
  }, Tn = (e, t) => t.repeat(e), On = (e, t, n, a) => {
3498
3498
  const s = Tn(a, n), i = Tn(a - 1, n), r = t ? `,
@@ -3527,7 +3527,7 @@ ${i}]` : `[${e.join(r)}]`;
3527
3527
  default:
3528
3528
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
3529
3529
  }
3530
- }, _o = {
3530
+ }, Io = {
3531
3531
  info: {
3532
3532
  key: "urlsession",
3533
3533
  title: "URLSession",
@@ -3578,35 +3578,35 @@ ${i}]` : `[${e.join(r)}]`;
3578
3578
  }
3579
3579
  }), 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
3580
  }
3581
- }, Lo = {
3581
+ }, _o = {
3582
3582
  info: {
3583
3583
  key: "swift",
3584
3584
  title: "Swift",
3585
3585
  default: "urlsession"
3586
3586
  },
3587
3587
  clientsById: {
3588
- urlsession: _o
3589
- }
3590
- }, Uo = {
3591
- c: Pi,
3592
- clojure: qi,
3593
- csharp: Ui,
3594
- go: Mi,
3595
- http: Vi,
3596
- java: Gi,
3597
- javascript: Zi,
3598
- json: to,
3599
- kotlin: ro,
3600
- node: co,
3601
- objc: po,
3602
- ocaml: mo,
3603
- php: bo,
3604
- powershell: $o,
3605
- python: jo,
3606
- r: To,
3607
- ruby: Co,
3608
- shell: Io,
3609
- swift: Lo
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
3610
3610
  }, lt = { exports: {} };
3611
3611
  /*! https://mths.be/punycode v1.4.1 by @mathias */
3612
3612
  lt.exports;
@@ -3728,7 +3728,7 @@ lt.exports;
3728
3728
  n.punycode = r;
3729
3729
  })(He);
3730
3730
  })(lt, lt.exports);
3731
- var Ho = lt.exports, Mo = Error, Bo = EvalError, Vo = RangeError, zo = ReferenceError, Lr = SyntaxError, Ge = TypeError, Jo = URIError, Wo = function() {
3731
+ var Uo = lt.exports, Ho = Error, Mo = EvalError, Bo = RangeError, Vo = ReferenceError, Lr = SyntaxError, Ge = TypeError, zo = URIError, Jo = function() {
3732
3732
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3733
3733
  return !1;
3734
3734
  if (typeof Symbol.iterator == "symbol")
@@ -3751,32 +3751,32 @@ var Ho = lt.exports, Mo = Error, Bo = EvalError, Vo = RangeError, zo = Reference
3751
3751
  return !1;
3752
3752
  }
3753
3753
  return !0;
3754
- }, Pn = typeof Symbol < "u" && Symbol, Do = Wo, Go = function() {
3755
- return typeof Pn != "function" || typeof Symbol != "function" || typeof Pn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Do();
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
3756
  }, $t = {
3757
3757
  __proto__: null,
3758
3758
  foo: {}
3759
- }, Qo = Object, Ko = function() {
3760
- return { __proto__: $t }.foo === $t.foo && !($t instanceof Qo);
3761
- }, Yo = "Function.prototype.bind called on incompatible ", Xo = Object.prototype.toString, Zo = Math.max, es = "[object Function]", En = function(t, n) {
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) {
3762
3762
  for (var a = [], s = 0; s < t.length; s += 1)
3763
3763
  a[s] = t[s];
3764
3764
  for (var i = 0; i < n.length; i += 1)
3765
3765
  a[i + t.length] = n[i];
3766
3766
  return a;
3767
- }, ts = function(t, n) {
3767
+ }, es = function(t, n) {
3768
3768
  for (var a = [], s = n, i = 0; s < t.length; s += 1, i += 1)
3769
3769
  a[i] = t[s];
3770
3770
  return a;
3771
- }, ns = function(e, t) {
3771
+ }, ts = function(e, t) {
3772
3772
  for (var n = "", a = 0; a < e.length; a += 1)
3773
3773
  n += e[a], a + 1 < e.length && (n += t);
3774
3774
  return n;
3775
- }, rs = function(t) {
3775
+ }, ns = function(t) {
3776
3776
  var n = this;
3777
- if (typeof n != "function" || Xo.apply(n) !== es)
3778
- throw new TypeError(Yo + n);
3779
- for (var a = ts(arguments, 1), s, i = function() {
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() {
3780
3780
  if (this instanceof s) {
3781
3781
  var u = n.apply(
3782
3782
  this,
@@ -3788,15 +3788,15 @@ var Ho = lt.exports, Mo = Error, Bo = EvalError, Vo = RangeError, zo = Reference
3788
3788
  t,
3789
3789
  En(a, arguments)
3790
3790
  );
3791
- }, r = Zo(0, n.length - a.length), o = [], l = 0; l < r; l++)
3791
+ }, r = Xo(0, n.length - a.length), o = [], l = 0; l < r; l++)
3792
3792
  o[l] = "$" + l;
3793
- if (s = Function("binder", "return function (" + ns(o, ",") + "){ return binder.apply(this,arguments); }")(i), n.prototype) {
3793
+ if (s = Function("binder", "return function (" + ts(o, ",") + "){ return binder.apply(this,arguments); }")(i), n.prototype) {
3794
3794
  var c = function() {
3795
3795
  };
3796
3796
  c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
3797
3797
  }
3798
3798
  return s;
3799
- }, as = rs, tn = Function.prototype.bind || as, is = Function.prototype.call, os = Object.prototype.hasOwnProperty, ss = tn, ls = ss.call(is, os), T, cs = Mo, us = Bo, ds = Vo, ps = zo, qe = Lr, Re = Ge, fs = Jo, Ur = Function, St = function(e) {
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) {
3800
3800
  try {
3801
3801
  return Ur('"use strict"; return (' + e + ").constructor;")();
3802
3802
  } catch {
@@ -3810,7 +3810,7 @@ if (Se)
3810
3810
  }
3811
3811
  var wt = function() {
3812
3812
  throw new Re();
3813
- }, ms = Se ? function() {
3813
+ }, fs = Se ? function() {
3814
3814
  try {
3815
3815
  return arguments.callee, wt;
3816
3816
  } catch {
@@ -3820,9 +3820,9 @@ var wt = function() {
3820
3820
  return wt;
3821
3821
  }
3822
3822
  }
3823
- }() : wt, Ne = Go(), hs = Ko(), D = Object.getPrototypeOf || (hs ? function(e) {
3823
+ }() : wt, Ne = Do(), ms = Qo(), D = Object.getPrototypeOf || (ms ? function(e) {
3824
3824
  return e.__proto__;
3825
- } : null), Pe = {}, ys = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), we = {
3825
+ } : null), Pe = {}, hs = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), we = {
3826
3826
  __proto__: null,
3827
3827
  "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
3828
3828
  "%Array%": Array,
@@ -3844,10 +3844,10 @@ var wt = function() {
3844
3844
  "%decodeURIComponent%": decodeURIComponent,
3845
3845
  "%encodeURI%": encodeURI,
3846
3846
  "%encodeURIComponent%": encodeURIComponent,
3847
- "%Error%": cs,
3847
+ "%Error%": ls,
3848
3848
  "%eval%": eval,
3849
3849
  // eslint-disable-line no-eval
3850
- "%EvalError%": us,
3850
+ "%EvalError%": cs,
3851
3851
  "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
3852
3852
  "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
3853
3853
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
@@ -3869,8 +3869,8 @@ var wt = function() {
3869
3869
  "%parseInt%": parseInt,
3870
3870
  "%Promise%": typeof Promise > "u" ? T : Promise,
3871
3871
  "%Proxy%": typeof Proxy > "u" ? T : Proxy,
3872
- "%RangeError%": ds,
3873
- "%ReferenceError%": ps,
3872
+ "%RangeError%": us,
3873
+ "%ReferenceError%": ds,
3874
3874
  "%Reflect%": typeof Reflect > "u" ? T : Reflect,
3875
3875
  "%RegExp%": RegExp,
3876
3876
  "%Set%": typeof Set > "u" ? T : Set,
@@ -3880,14 +3880,14 @@ var wt = function() {
3880
3880
  "%StringIteratorPrototype%": Ne && D ? D(""[Symbol.iterator]()) : T,
3881
3881
  "%Symbol%": Ne ? Symbol : T,
3882
3882
  "%SyntaxError%": qe,
3883
- "%ThrowTypeError%": ms,
3884
- "%TypedArray%": ys,
3883
+ "%ThrowTypeError%": fs,
3884
+ "%TypedArray%": hs,
3885
3885
  "%TypeError%": Re,
3886
3886
  "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
3887
3887
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
3888
3888
  "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
3889
3889
  "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
3890
- "%URIError%": fs,
3890
+ "%URIError%": ps,
3891
3891
  "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
3892
3892
  "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
3893
3893
  "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
@@ -3896,10 +3896,10 @@ if (D)
3896
3896
  try {
3897
3897
  null.error;
3898
3898
  } catch (e) {
3899
- var vs = D(D(e));
3900
- we["%Error.prototype%"] = vs;
3899
+ var ys = D(D(e));
3900
+ we["%Error.prototype%"] = ys;
3901
3901
  }
3902
- var gs = function e(t) {
3902
+ var vs = function e(t) {
3903
3903
  var n;
3904
3904
  if (t === "%AsyncFunction%")
3905
3905
  n = St("async function () {}");
@@ -3968,21 +3968,21 @@ var gs = function e(t) {
3968
3968
  "%URIErrorPrototype%": ["URIError", "prototype"],
3969
3969
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3970
3970
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3971
- }, Qe = tn, ct = ls, bs = Qe.call(Function.call, Array.prototype.concat), xs = Qe.call(Function.apply, Array.prototype.splice), An = Qe.call(Function.call, String.prototype.replace), ut = Qe.call(Function.call, String.prototype.slice), ks = Qe.call(Function.call, RegExp.prototype.exec), $s = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ss = /\\(\\)?/g, ws = function(t) {
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) {
3972
3972
  var n = ut(t, 0, 1), a = ut(t, -1);
3973
3973
  if (n === "%" && a !== "%")
3974
3974
  throw new qe("invalid intrinsic syntax, expected closing `%`");
3975
3975
  if (a === "%" && n !== "%")
3976
3976
  throw new qe("invalid intrinsic syntax, expected opening `%`");
3977
3977
  var s = [];
3978
- return An(t, $s, function(i, r, o, l) {
3979
- s[s.length] = o ? An(l, Ss, "$1") : r || i;
3978
+ return An(t, ks, function(i, r, o, l) {
3979
+ s[s.length] = o ? An(l, $s, "$1") : r || i;
3980
3980
  }), s;
3981
- }, js = function(t, n) {
3981
+ }, ws = function(t, n) {
3982
3982
  var a = t, s;
3983
3983
  if (ct(Rn, a) && (s = Rn[a], a = "%" + s[0] + "%"), ct(we, a)) {
3984
3984
  var i = we[a];
3985
- if (i === Pe && (i = gs(a)), typeof i > "u" && !n)
3985
+ if (i === Pe && (i = vs(a)), typeof i > "u" && !n)
3986
3986
  throw new Re("intrinsic " + t + " exists, but is not available. Please file an issue!");
3987
3987
  return {
3988
3988
  alias: s,
@@ -3996,10 +3996,10 @@ var gs = function e(t) {
3996
3996
  throw new Re("intrinsic name must be a non-empty string");
3997
3997
  if (arguments.length > 1 && typeof n != "boolean")
3998
3998
  throw new Re('"allowMissing" argument must be a boolean');
3999
- if (ks(/^%?[^%]*%?$/, t) === null)
3999
+ if (xs(/^%?[^%]*%?$/, t) === null)
4000
4000
  throw new qe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
4001
- var a = ws(t), s = a.length > 0 ? a[0] : "", i = js("%" + s + "%", n), r = i.name, o = i.value, l = !1, c = i.alias;
4002
- c && (s = c[0], xs(a, bs([0, 1], c)));
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)));
4003
4003
  for (var u = 1, f = !0; u < a.length; u += 1) {
4004
4004
  var d = a[u], m = ut(d, 0, 1), h = ut(d, -1);
4005
4005
  if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
@@ -4034,14 +4034,14 @@ function nn() {
4034
4034
  }
4035
4035
  return jt = t, jt;
4036
4036
  }
4037
- var Ns = _e, nt = Ns("%Object.getOwnPropertyDescriptor%", !0);
4037
+ var js = _e, nt = js("%Object.getOwnPropertyDescriptor%", !0);
4038
4038
  if (nt)
4039
4039
  try {
4040
4040
  nt([], "length");
4041
4041
  } catch {
4042
4042
  nt = null;
4043
4043
  }
4044
- var Mr = nt, Fn = nn(), Ts = Lr, Te = Ge, In = Mr, Os = function(t, n, a) {
4044
+ var Mr = nt, Fn = nn(), Ns = Lr, Te = Ge, In = Mr, Ts = function(t, n, a) {
4045
4045
  if (!t || typeof t != "object" && typeof t != "function")
4046
4046
  throw new Te("`obj` must be an object or a function`");
4047
4047
  if (typeof n != "string" && typeof n != "symbol")
@@ -4065,7 +4065,7 @@ var Mr = nt, Fn = nn(), Ts = Lr, Te = Ge, In = Mr, Os = function(t, n, a) {
4065
4065
  else if (o || !s && !i && !r)
4066
4066
  t[n] = a;
4067
4067
  else
4068
- throw new Ts("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
4068
+ throw new Ns("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
4069
4069
  }, _t = nn(), Br = function() {
4070
4070
  return !!_t;
4071
4071
  };
@@ -4078,17 +4078,17 @@ Br.hasArrayLengthDefineBug = function() {
4078
4078
  return !0;
4079
4079
  }
4080
4080
  };
4081
- var Cs = Br, Ps = _e, _n = Os, Es = Cs(), Ln = Mr, Un = Ge, Rs = Ps("%Math.floor%"), As = function(t, n) {
4081
+ var Os = Br, Cs = _e, _n = Ts, Ps = Os(), Ln = Mr, Un = Ge, Es = Cs("%Math.floor%"), Rs = function(t, n) {
4082
4082
  if (typeof t != "function")
4083
4083
  throw new Un("`fn` is not a function");
4084
- if (typeof n != "number" || n < 0 || n > 4294967295 || Rs(n) !== n)
4084
+ if (typeof n != "number" || n < 0 || n > 4294967295 || Es(n) !== n)
4085
4085
  throw new Un("`length` must be a positive 32-bit integer");
4086
4086
  var a = arguments.length > 2 && !!arguments[2], s = !0, i = !0;
4087
4087
  if ("length" in t && Ln) {
4088
4088
  var r = Ln(t, "length");
4089
4089
  r && !r.configurable && (s = !1), r && !r.writable && (i = !1);
4090
4090
  }
4091
- return (s || i || !a) && (Es ? _n(
4091
+ return (s || i || !a) && (Ps ? _n(
4092
4092
  /** @type {Parameters<define>[0]} */
4093
4093
  t,
4094
4094
  "length",
@@ -4103,7 +4103,7 @@ var Cs = Br, Ps = _e, _n = Os, Es = Cs(), Ln = Mr, Un = Ge, Rs = Ps("%Math.floor
4103
4103
  )), t;
4104
4104
  };
4105
4105
  (function(e) {
4106
- var t = tn, n = _e, a = As, 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%");
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%");
4107
4107
  e.exports = function(d) {
4108
4108
  if (typeof d != "function")
4109
4109
  throw new s("a function is required");
@@ -4119,12 +4119,15 @@ var Cs = Br, Ps = _e, _n = Os, Es = Cs(), Ln = Mr, Un = Ge, Rs = Ps("%Math.floor
4119
4119
  };
4120
4120
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
4121
4121
  })(Hr);
4122
- var qs = Hr.exports, Vr = _e, zr = qs, Fs = zr(Vr("String.prototype.indexOf")), Is = function(t, n) {
4122
+ var As = Hr.exports, Vr = _e, zr = As, qs = zr(Vr("String.prototype.indexOf")), Fs = function(t, n) {
4123
4123
  var a = Vr(t, !!n);
4124
- return typeof a == "function" && Fs(t, ".prototype.") > -1 ? zr(a) : a;
4124
+ return typeof a == "function" && qs(t, ".prototype.") > -1 ? zr(a) : a;
4125
4125
  };
4126
- const _s = /* @__PURE__ */ Va(za);
4127
- 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, Ls = typeof WeakMap == "function" && WeakMap.prototype, Me = Ls ? WeakMap.prototype.has : null, Us = typeof WeakSet == "function" && WeakSet.prototype, Be = Us ? WeakSet.prototype.has : null, Hs = typeof WeakRef == "function" && WeakRef.prototype, Bn = Hs ? WeakRef.prototype.deref : null, Ms = Boolean.prototype.valueOf, Bs = Object.prototype.toString, Vs = Function.prototype.toString, zs = String.prototype.match, on = String.prototype.slice, ge = String.prototype.replace, Js = String.prototype.toUpperCase, Vn = String.prototype.toLowerCase, Jr = RegExp.prototype.test, zn = Array.prototype.concat, ue = Array.prototype.join, Ws = 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) {
4126
+ const Is = {}, _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4127
+ __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) {
4128
4131
  return e.__proto__;
4129
4132
  } : null);
4130
4133
  function Dn(e, t) {
@@ -4140,7 +4143,7 @@ function Dn(e, t) {
4140
4143
  }
4141
4144
  return ge.call(t, n, "$&_");
4142
4145
  }
4143
- var Ht = _s, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Ds = function e(t, n, a, s) {
4146
+ var Ht = Ls, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Gs = function e(t, n, a, s) {
4144
4147
  var i = n || {};
4145
4148
  if (ve(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
4146
4149
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -4175,13 +4178,13 @@ var Ht = _s, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Ds = function e(t, n, a, s
4175
4178
  var u = typeof i.depth > "u" ? 5 : i.depth;
4176
4179
  if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
4177
4180
  return Mt(t) ? "[Array]" : "[Object]";
4178
- var f = dl(i, a);
4181
+ var f = pl(i, a);
4179
4182
  if (typeof s > "u")
4180
4183
  s = [];
4181
4184
  else if (Qr(s, t) >= 0)
4182
4185
  return "[Circular]";
4183
4186
  function d(F, z, H) {
4184
- if (z && (s = Ws.call(s), s.push(z)), H) {
4187
+ if (z && (s = Ds.call(s), s.push(z)), H) {
4185
4188
  var J = {
4186
4189
  depth: i.depth
4187
4190
  };
@@ -4190,25 +4193,25 @@ var Ht = _s, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Ds = function e(t, n, a, s
4190
4193
  return e(F, i, a + 1, s);
4191
4194
  }
4192
4195
  if (typeof t == "function" && !Kn(t)) {
4193
- var m = nl(t), h = Ke(t, d);
4196
+ var m = rl(t), h = Ke(t, d);
4194
4197
  return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
4195
4198
  }
4196
4199
  if (Gr(t)) {
4197
4200
  var v = Fe ? ge.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ut.call(t);
4198
4201
  return typeof t == "object" && !Fe ? Ue(v) : v;
4199
4202
  }
4200
- if (ll(t)) {
4203
+ if (cl(t)) {
4201
4204
  for (var g = "<" + Vn.call(String(t.nodeName)), b = t.attributes || [], y = 0; y < b.length; y++)
4202
- g += " " + b[y].name + "=" + Dr(Gs(b[y].value), "double", i);
4205
+ g += " " + b[y].name + "=" + Dr(Qs(b[y].value), "double", i);
4203
4206
  return g += ">", t.childNodes && t.childNodes.length && (g += "..."), g += "</" + Vn.call(String(t.nodeName)) + ">", g;
4204
4207
  }
4205
4208
  if (Mt(t)) {
4206
4209
  if (t.length === 0)
4207
4210
  return "[]";
4208
4211
  var x = Ke(t, d);
4209
- return f && !ul(x) ? "[" + Bt(x, f) + "]" : "[ " + ue.call(x, ", ") + " ]";
4212
+ return f && !dl(x) ? "[" + Bt(x, f) + "]" : "[ " + ue.call(x, ", ") + " ]";
4210
4213
  }
4211
- if (Ks(t)) {
4214
+ if (Ys(t)) {
4212
4215
  var k = Ke(t, d);
4213
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, ", ") + " }";
4214
4217
  }
@@ -4218,37 +4221,37 @@ var Ht = _s, Gn = Ht.custom, Qn = Gr(Gn) ? Gn : null, Ds = function e(t, n, a, s
4218
4221
  if (r !== "symbol" && typeof t.inspect == "function")
4219
4222
  return t.inspect();
4220
4223
  }
4221
- if (rl(t)) {
4224
+ if (al(t)) {
4222
4225
  var S = [];
4223
4226
  return Hn && Hn.call(t, function(F, z) {
4224
4227
  S.push(d(z, t, !0) + " => " + d(F, t));
4225
4228
  }), Yn("Map", dt.call(t), S, f);
4226
4229
  }
4227
- if (ol(t)) {
4230
+ if (sl(t)) {
4228
4231
  var j = [];
4229
4232
  return Mn && Mn.call(t, function(F) {
4230
4233
  j.push(d(F, t));
4231
4234
  }), Yn("Set", pt.call(t), j, f);
4232
4235
  }
4233
- if (al(t))
4236
+ if (il(t))
4234
4237
  return Ct("WeakMap");
4235
- if (sl(t))
4238
+ if (ll(t))
4236
4239
  return Ct("WeakSet");
4237
- if (il(t))
4240
+ if (ol(t))
4238
4241
  return Ct("WeakRef");
4239
- if (Xs(t))
4242
+ if (Zs(t))
4240
4243
  return Ue(d(Number(t)));
4241
- if (el(t))
4244
+ if (tl(t))
4242
4245
  return Ue(d(Lt.call(t)));
4243
- if (Zs(t))
4244
- return Ue(Ms.call(t));
4245
- if (Ys(t))
4246
+ if (el(t))
4247
+ return Ue(Bs.call(t));
4248
+ if (Xs(t))
4246
4249
  return Ue(d(String(t)));
4247
4250
  if (typeof window < "u" && t === window)
4248
4251
  return "{ [object Window] }";
4249
4252
  if (typeof globalThis < "u" && t === globalThis || typeof He < "u" && t === He)
4250
4253
  return "{ [object globalThis] }";
4251
- if (!Qs(t) && !Kn(t)) {
4254
+ if (!Ks(t) && !Kn(t)) {
4252
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 || []), ": ") + "] " : "");
4253
4256
  return E.length === 0 ? _ + "{}" : f ? _ + "{" + Bt(E, f) + "}" : _ + "{ " + ue.call(E, ", ") + " }";
4254
4257
  }
@@ -4258,28 +4261,28 @@ function Dr(e, t, n) {
4258
4261
  var a = (n.quoteStyle || t) === "double" ? '"' : "'";
4259
4262
  return a + e + a;
4260
4263
  }
4261
- function Gs(e) {
4264
+ function Qs(e) {
4262
4265
  return ge.call(String(e), /"/g, "&quot;");
4263
4266
  }
4264
4267
  function Mt(e) {
4265
4268
  return be(e) === "[object Array]" && (!ee || !(typeof e == "object" && ee in e));
4266
4269
  }
4267
- function Qs(e) {
4270
+ function Ks(e) {
4268
4271
  return be(e) === "[object Date]" && (!ee || !(typeof e == "object" && ee in e));
4269
4272
  }
4270
4273
  function Kn(e) {
4271
4274
  return be(e) === "[object RegExp]" && (!ee || !(typeof e == "object" && ee in e));
4272
4275
  }
4273
- function Ks(e) {
4276
+ function Ys(e) {
4274
4277
  return be(e) === "[object Error]" && (!ee || !(typeof e == "object" && ee in e));
4275
4278
  }
4276
- function Ys(e) {
4279
+ function Xs(e) {
4277
4280
  return be(e) === "[object String]" && (!ee || !(typeof e == "object" && ee in e));
4278
4281
  }
4279
- function Xs(e) {
4282
+ function Zs(e) {
4280
4283
  return be(e) === "[object Number]" && (!ee || !(typeof e == "object" && ee in e));
4281
4284
  }
4282
- function Zs(e) {
4285
+ function el(e) {
4283
4286
  return be(e) === "[object Boolean]" && (!ee || !(typeof e == "object" && ee in e));
4284
4287
  }
4285
4288
  function Gr(e) {
@@ -4295,7 +4298,7 @@ function Gr(e) {
4295
4298
  }
4296
4299
  return !1;
4297
4300
  }
4298
- function el(e) {
4301
+ function tl(e) {
4299
4302
  if (!e || typeof e != "object" || !Lt)
4300
4303
  return !1;
4301
4304
  try {
@@ -4304,19 +4307,19 @@ function el(e) {
4304
4307
  }
4305
4308
  return !1;
4306
4309
  }
4307
- var tl = Object.prototype.hasOwnProperty || function(e) {
4310
+ var nl = Object.prototype.hasOwnProperty || function(e) {
4308
4311
  return e in this;
4309
4312
  };
4310
4313
  function ve(e, t) {
4311
- return tl.call(e, t);
4314
+ return nl.call(e, t);
4312
4315
  }
4313
4316
  function be(e) {
4314
- return Bs.call(e);
4317
+ return Vs.call(e);
4315
4318
  }
4316
- function nl(e) {
4319
+ function rl(e) {
4317
4320
  if (e.name)
4318
4321
  return e.name;
4319
- var t = zs.call(Vs.call(e), /^function\s*([\w$]+)/);
4322
+ var t = Js.call(zs.call(e), /^function\s*([\w$]+)/);
4320
4323
  return t ? t[1] : null;
4321
4324
  }
4322
4325
  function Qr(e, t) {
@@ -4327,7 +4330,7 @@ function Qr(e, t) {
4327
4330
  return n;
4328
4331
  return -1;
4329
4332
  }
4330
- function rl(e) {
4333
+ function al(e) {
4331
4334
  if (!dt || !e || typeof e != "object")
4332
4335
  return !1;
4333
4336
  try {
@@ -4342,7 +4345,7 @@ function rl(e) {
4342
4345
  }
4343
4346
  return !1;
4344
4347
  }
4345
- function al(e) {
4348
+ function il(e) {
4346
4349
  if (!Me || !e || typeof e != "object")
4347
4350
  return !1;
4348
4351
  try {
@@ -4357,7 +4360,7 @@ function al(e) {
4357
4360
  }
4358
4361
  return !1;
4359
4362
  }
4360
- function il(e) {
4363
+ function ol(e) {
4361
4364
  if (!Bn || !e || typeof e != "object")
4362
4365
  return !1;
4363
4366
  try {
@@ -4366,7 +4369,7 @@ function il(e) {
4366
4369
  }
4367
4370
  return !1;
4368
4371
  }
4369
- function ol(e) {
4372
+ function sl(e) {
4370
4373
  if (!pt || !e || typeof e != "object")
4371
4374
  return !1;
4372
4375
  try {
@@ -4381,7 +4384,7 @@ function ol(e) {
4381
4384
  }
4382
4385
  return !1;
4383
4386
  }
4384
- function sl(e) {
4387
+ function ll(e) {
4385
4388
  if (!Be || !e || typeof e != "object")
4386
4389
  return !1;
4387
4390
  try {
@@ -4396,7 +4399,7 @@ function sl(e) {
4396
4399
  }
4397
4400
  return !1;
4398
4401
  }
4399
- function ll(e) {
4402
+ function cl(e) {
4400
4403
  return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
4401
4404
  }
4402
4405
  function Kr(e, t) {
@@ -4404,10 +4407,10 @@ function Kr(e, t) {
4404
4407
  var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
4405
4408
  return Kr(on.call(e, 0, t.maxStringLength), t) + a;
4406
4409
  }
4407
- var s = ge.call(ge.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, cl);
4410
+ var s = ge.call(ge.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ul);
4408
4411
  return Dr(s, "single", t);
4409
4412
  }
4410
- function cl(e) {
4413
+ function ul(e) {
4411
4414
  var t = e.charCodeAt(0), n = {
4412
4415
  8: "b",
4413
4416
  9: "t",
@@ -4415,7 +4418,7 @@ function cl(e) {
4415
4418
  12: "f",
4416
4419
  13: "r"
4417
4420
  }[t];
4418
- return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Js.call(t.toString(16));
4421
+ return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Ws.call(t.toString(16));
4419
4422
  }
4420
4423
  function Ue(e) {
4421
4424
  return "Object(" + e + ")";
@@ -4427,14 +4430,14 @@ function Yn(e, t, n, a) {
4427
4430
  var s = a ? Bt(n, a) : ue.call(n, ", ");
4428
4431
  return e + " (" + t + ") {" + s + "}";
4429
4432
  }
4430
- function ul(e) {
4433
+ function dl(e) {
4431
4434
  for (var t = 0; t < e.length; t++)
4432
4435
  if (Qr(e[t], `
4433
4436
  `) >= 0)
4434
4437
  return !1;
4435
4438
  return !0;
4436
4439
  }
4437
- function dl(e, t) {
4440
+ function pl(e, t) {
4438
4441
  var n;
4439
4442
  if (e.indent === " ")
4440
4443
  n = " ";
@@ -4475,15 +4478,15 @@ function Ke(e, t) {
4475
4478
  Wr.call(e, i[c]) && a.push("[" + t(i[c]) + "]: " + t(e[i[c]], e));
4476
4479
  return a;
4477
4480
  }
4478
- var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%", !0), ml = Le("WeakMap.prototype.get", !0), hl = Le("WeakMap.prototype.set", !0), yl = Le("WeakMap.prototype.has", !0), vl = Le("Map.prototype.get", !0), gl = Le("Map.prototype.set", !0), bl = Le("Map.prototype.has", !0), sn = function(e, t) {
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) {
4479
4482
  for (var n = e, a; (a = n.next) !== null; n = a)
4480
4483
  if (a.key === t)
4481
4484
  return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
4482
4485
  e.next, e.next = a, a;
4483
- }, xl = function(e, t) {
4486
+ }, kl = function(e, t) {
4484
4487
  var n = sn(e, t);
4485
4488
  return n && n.value;
4486
- }, kl = function(e, t, n) {
4489
+ }, $l = function(e, t, n) {
4487
4490
  var a = sn(e, t);
4488
4491
  a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
4489
4492
  {
@@ -4492,48 +4495,48 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4492
4495
  next: e.next,
4493
4496
  value: n
4494
4497
  };
4495
- }, $l = function(e, t) {
4498
+ }, Sl = function(e, t) {
4496
4499
  return !!sn(e, t);
4497
- }, Sl = function() {
4500
+ }, wl = function() {
4498
4501
  var t, n, a, s = {
4499
4502
  assert: function(i) {
4500
4503
  if (!s.has(i))
4501
- throw new fl("Side channel does not contain " + pl(i));
4504
+ throw new ml("Side channel does not contain " + fl(i));
4502
4505
  },
4503
4506
  get: function(i) {
4504
4507
  if (Ye && i && (typeof i == "object" || typeof i == "function")) {
4505
4508
  if (t)
4506
- return ml(t, i);
4509
+ return hl(t, i);
4507
4510
  } else if (Xe) {
4508
4511
  if (n)
4509
- return vl(n, i);
4512
+ return gl(n, i);
4510
4513
  } else if (a)
4511
- return xl(a, i);
4514
+ return kl(a, i);
4512
4515
  },
4513
4516
  has: function(i) {
4514
4517
  if (Ye && i && (typeof i == "object" || typeof i == "function")) {
4515
4518
  if (t)
4516
- return yl(t, i);
4519
+ return vl(t, i);
4517
4520
  } else if (Xe) {
4518
4521
  if (n)
4519
- return bl(n, i);
4522
+ return xl(n, i);
4520
4523
  } else if (a)
4521
- return $l(a, i);
4524
+ return Sl(a, i);
4522
4525
  return !1;
4523
4526
  },
4524
4527
  set: function(i, r) {
4525
- Ye && i && (typeof i == "object" || typeof i == "function") ? (t || (t = new Ye()), hl(t, i, r)) : Xe ? (n || (n = new Xe()), gl(n, i, r)) : (a || (a = { key: {}, next: null }), kl(a, 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));
4526
4529
  }
4527
4530
  };
4528
4531
  return s;
4529
- }, wl = String.prototype.replace, jl = /%20/g, Pt = {
4532
+ }, jl = String.prototype.replace, Nl = /%20/g, Pt = {
4530
4533
  RFC1738: "RFC1738",
4531
4534
  RFC3986: "RFC3986"
4532
4535
  }, ln = {
4533
4536
  default: Pt.RFC3986,
4534
4537
  formatters: {
4535
4538
  RFC1738: function(e) {
4536
- return wl.call(e, jl, "+");
4539
+ return jl.call(e, Nl, "+");
4537
4540
  },
4538
4541
  RFC3986: function(e) {
4539
4542
  return String(e);
@@ -4541,11 +4544,11 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4541
4544
  },
4542
4545
  RFC1738: Pt.RFC1738,
4543
4546
  RFC3986: Pt.RFC3986
4544
- }, Nl = ln, Et = Object.prototype.hasOwnProperty, ke = Array.isArray, le = function() {
4547
+ }, Tl = ln, Et = Object.prototype.hasOwnProperty, ke = Array.isArray, le = function() {
4545
4548
  for (var e = [], t = 0; t < 256; ++t)
4546
4549
  e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
4547
4550
  return e;
4548
- }(), Tl = function(t) {
4551
+ }(), Ol = function(t) {
4549
4552
  for (; t.length > 1; ) {
4550
4553
  var n = t.pop(), a = n.obj[n.prop];
4551
4554
  if (ke(a)) {
@@ -4558,7 +4561,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4558
4561
  for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
4559
4562
  typeof t[s] < "u" && (a[s] = t[s]);
4560
4563
  return a;
4561
- }, Ol = function e(t, n, a) {
4564
+ }, Cl = function e(t, n, a) {
4562
4565
  if (!n)
4563
4566
  return t;
4564
4567
  if (typeof n != "object") {
@@ -4583,11 +4586,11 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4583
4586
  var o = n[r];
4584
4587
  return Et.call(i, r) ? i[r] = e(i[r], o, a) : i[r] = o, i;
4585
4588
  }, s);
4586
- }, Cl = function(t, n) {
4589
+ }, Pl = function(t, n) {
4587
4590
  return Object.keys(n).reduce(function(a, s) {
4588
4591
  return a[s] = n[s], a;
4589
4592
  }, t);
4590
- }, Pl = function(e, t, n) {
4593
+ }, El = function(e, t, n) {
4591
4594
  var a = e.replace(/\+/g, " ");
4592
4595
  if (n === "iso-8859-1")
4593
4596
  return a.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -4596,7 +4599,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4596
4599
  } catch {
4597
4600
  return a;
4598
4601
  }
4599
- }, Rt = 1024, El = function(t, n, a, s, i) {
4602
+ }, Rt = 1024, Rl = function(t, n, a, s, i) {
4600
4603
  if (t.length === 0)
4601
4604
  return t;
4602
4605
  var r = t;
@@ -4607,7 +4610,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4607
4610
  for (var o = "", l = 0; l < r.length; l += Rt) {
4608
4611
  for (var c = r.length >= Rt ? r.slice(l, l + Rt) : r, u = [], f = 0; f < c.length; ++f) {
4609
4612
  var d = c.charCodeAt(f);
4610
- if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === Nl.RFC1738 && (d === 40 || d === 41)) {
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)) {
4611
4614
  u[u.length] = c.charAt(f);
4612
4615
  continue;
4613
4616
  }
@@ -4628,20 +4631,20 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4628
4631
  o += u.join("");
4629
4632
  }
4630
4633
  return o;
4631
- }, Rl = function(t) {
4634
+ }, Al = function(t) {
4632
4635
  for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
4633
4636
  for (var i = n[s], r = i.obj[i.prop], o = Object.keys(r), l = 0; l < o.length; ++l) {
4634
4637
  var c = o[l], u = r[c];
4635
4638
  typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
4636
4639
  }
4637
- return Tl(n), t;
4638
- }, Al = function(t) {
4639
- return Object.prototype.toString.call(t) === "[object RegExp]";
4640
+ return Ol(n), t;
4640
4641
  }, ql = function(t) {
4642
+ return Object.prototype.toString.call(t) === "[object RegExp]";
4643
+ }, Fl = function(t) {
4641
4644
  return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
4642
- }, Fl = function(t, n) {
4643
- return [].concat(t, n);
4644
4645
  }, Il = function(t, n) {
4646
+ return [].concat(t, n);
4647
+ }, _l = function(t, n) {
4645
4648
  if (ke(t)) {
4646
4649
  for (var a = [], s = 0; s < t.length; s += 1)
4647
4650
  a.push(n(t[s]));
@@ -4650,16 +4653,16 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4650
4653
  return n(t);
4651
4654
  }, Zr = {
4652
4655
  arrayToObject: Xr,
4653
- assign: Cl,
4654
- combine: Fl,
4655
- compact: Rl,
4656
- decode: Pl,
4657
- encode: El,
4658
- isBuffer: ql,
4659
- isRegExp: Al,
4660
- maybeMap: Il,
4661
- merge: Ol
4662
- }, ea = Sl, rt = Zr, Ve = ln, _l = Object.prototype.hasOwnProperty, ta = {
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 = {
4663
4666
  brackets: function(t) {
4664
4667
  return t + "[]";
4665
4668
  },
@@ -4670,9 +4673,9 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4670
4673
  repeat: function(t) {
4671
4674
  return t;
4672
4675
  }
4673
- }, ce = Array.isArray, Ll = Array.prototype.push, na = function(e, t) {
4674
- Ll.apply(e, ce(t) ? t : [t]);
4675
- }, Ul = Date.prototype.toISOString, Xn = Ve.default, W = {
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 = {
4676
4679
  addQueryPrefix: !1,
4677
4680
  allowDots: !1,
4678
4681
  allowEmptyArrays: !1,
@@ -4689,13 +4692,13 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4689
4692
  // deprecated
4690
4693
  indices: !1,
4691
4694
  serializeDate: function(t) {
4692
- return Ul.call(t);
4695
+ return Hl.call(t);
4693
4696
  },
4694
4697
  skipNulls: !1,
4695
4698
  strictNullHandling: !1
4696
- }, Hl = function(t) {
4699
+ }, Ml = function(t) {
4697
4700
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
4698
- }, At = {}, Ml = function e(t, n, a, s, i, r, o, l, c, u, f, d, m, h, v, g, b, y) {
4701
+ }, At = {}, Bl = function e(t, n, a, s, i, r, o, l, c, u, f, d, m, h, v, g, b, y) {
4699
4702
  for (var x = t, k = y, S = 0, j = !1; (k = k.get(At)) !== void 0 && !j; ) {
4700
4703
  var E = k.get(t);
4701
4704
  if (S += 1, typeof E < "u") {
@@ -4712,7 +4715,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4712
4715
  return c && !g ? c(n, W.encoder, b, "key", h) : n;
4713
4716
  x = "";
4714
4717
  }
4715
- if (Hl(x) || rt.isBuffer(x)) {
4718
+ if (Ml(x) || rt.isBuffer(x)) {
4716
4719
  if (c) {
4717
4720
  var P = g ? n : c(n, W.encoder, b, "key", h);
4718
4721
  return [v(P) + "=" + v(c(x, W.encoder, b, "value", h))];
@@ -4763,7 +4766,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4763
4766
  }
4764
4767
  }
4765
4768
  return R;
4766
- }, Bl = function(t) {
4769
+ }, Vl = function(t) {
4767
4770
  if (!t)
4768
4771
  return W;
4769
4772
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
@@ -4777,7 +4780,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4777
4780
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
4778
4781
  var a = Ve.default;
4779
4782
  if (typeof t.format < "u") {
4780
- if (!_l.call(Ve.formatters, t.format))
4783
+ if (!Ll.call(Ve.formatters, t.format))
4781
4784
  throw new TypeError("Unknown format option provided.");
4782
4785
  a = t.format;
4783
4786
  }
@@ -4808,8 +4811,8 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4808
4811
  sort: typeof t.sort == "function" ? t.sort : null,
4809
4812
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : W.strictNullHandling
4810
4813
  };
4811
- }, Vl = function(e, t) {
4812
- var n = e, a = Bl(t), s, i;
4814
+ }, zl = function(e, t) {
4815
+ var n = e, a = Vl(t), s, i;
4813
4816
  typeof a.filter == "function" ? (i = a.filter, n = i("", n)) : ce(a.filter) && (i = a.filter, s = i);
4814
4817
  var r = [];
4815
4818
  if (typeof n != "object" || n === null)
@@ -4818,7 +4821,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4818
4821
  s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
4819
4822
  for (var c = ea(), u = 0; u < s.length; ++u) {
4820
4823
  var f = s[u];
4821
- a.skipNulls && n[f] === null || na(r, Ml(
4824
+ a.skipNulls && n[f] === null || na(r, Bl(
4822
4825
  n[f],
4823
4826
  f,
4824
4827
  o,
@@ -4841,7 +4844,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4841
4844
  }
4842
4845
  var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
4843
4846
  return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
4844
- }, Ie = Zr, Vt = Object.prototype.hasOwnProperty, zl = Array.isArray, B = {
4847
+ }, Ie = Zr, Vt = Object.prototype.hasOwnProperty, Jl = Array.isArray, B = {
4845
4848
  allowDots: !1,
4846
4849
  allowEmptyArrays: !1,
4847
4850
  allowPrototypes: !1,
@@ -4861,17 +4864,17 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4861
4864
  parseArrays: !0,
4862
4865
  plainObjects: !1,
4863
4866
  strictNullHandling: !1
4864
- }, Jl = function(e) {
4867
+ }, Wl = function(e) {
4865
4868
  return e.replace(/&#(\d+);/g, function(t, n) {
4866
4869
  return String.fromCharCode(parseInt(n, 10));
4867
4870
  });
4868
4871
  }, ra = function(e, t) {
4869
4872
  return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
4870
- }, Wl = "utf8=%26%2310003%3B", Dl = "utf8=%E2%9C%93", Gl = function(t, n) {
4873
+ }, Dl = "utf8=%26%2310003%3B", Gl = "utf8=%E2%9C%93", Ql = function(t, n) {
4871
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;
4872
4875
  if (n.charsetSentinel)
4873
4876
  for (l = 0; l < r.length; ++l)
4874
- r[l].indexOf("utf8=") === 0 && (r[l] === Dl ? c = "utf-8" : r[l] === Wl && (c = "iso-8859-1"), o = l, l = r.length);
4877
+ r[l].indexOf("utf8=") === 0 && (r[l] === Gl ? c = "utf-8" : r[l] === Dl && (c = "iso-8859-1"), o = l, l = r.length);
4875
4878
  for (l = 0; l < r.length; ++l)
4876
4879
  if (l !== o) {
4877
4880
  var u = r[l], f = u.indexOf("]="), d = f === -1 ? u.indexOf("=") : f + 1, m, h;
@@ -4880,12 +4883,12 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4880
4883
  function(g) {
4881
4884
  return n.decoder(g, B.decoder, c, "value");
4882
4885
  }
4883
- )), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Jl(h)), u.indexOf("[]=") > -1 && (h = zl(h) ? [h] : h);
4886
+ )), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Wl(h)), u.indexOf("[]=") > -1 && (h = Jl(h) ? [h] : h);
4884
4887
  var v = Vt.call(a, m);
4885
4888
  v && n.duplicates === "combine" ? a[m] = Ie.combine(a[m], h) : (!v || n.duplicates === "last") && (a[m] = h);
4886
4889
  }
4887
4890
  return a;
4888
- }, Ql = function(e, t, n, a) {
4891
+ }, Kl = function(e, t, n, a) {
4889
4892
  for (var s = a ? t : ra(t, n), i = e.length - 1; i >= 0; --i) {
4890
4893
  var r, o = e[i];
4891
4894
  if (o === "[]" && n.parseArrays)
@@ -4898,7 +4901,7 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4898
4901
  s = r;
4899
4902
  }
4900
4903
  return s;
4901
- }, Kl = function(t, n, a, s) {
4904
+ }, Yl = function(t, n, a, s) {
4902
4905
  if (t) {
4903
4906
  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 = [];
4904
4907
  if (c) {
@@ -4911,9 +4914,9 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4911
4914
  return;
4912
4915
  u.push(l[1]);
4913
4916
  }
4914
- return l && u.push("[" + i.slice(l.index) + "]"), Ql(u, n, a, s);
4917
+ return l && u.push("[" + i.slice(l.index) + "]"), Kl(u, n, a, s);
4915
4918
  }
4916
- }, Yl = function(t) {
4919
+ }, Xl = function(t) {
4917
4920
  if (!t)
4918
4921
  return B;
4919
4922
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
@@ -4950,24 +4953,24 @@ var Yr = _e, Le = Is, pl = Ds, fl = Ge, Ye = Yr("%WeakMap%", !0), Xe = Yr("%Map%
4950
4953
  plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : B.plainObjects,
4951
4954
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
4952
4955
  };
4953
- }, Xl = function(e, t) {
4954
- var n = Yl(t);
4956
+ }, Zl = function(e, t) {
4957
+ var n = Xl(t);
4955
4958
  if (e === "" || e === null || typeof e > "u")
4956
4959
  return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4957
- for (var a = typeof e == "string" ? Gl(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(a), r = 0; r < i.length; ++r) {
4958
- var o = i[r], l = Kl(o, a[o], n, typeof e == "string");
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");
4959
4962
  s = Ie.merge(s, l, n);
4960
4963
  }
4961
4964
  return n.allowSparse === !0 ? s : Ie.compact(s);
4962
- }, Zl = Vl, ec = Xl, tc = ln, at = {
4963
- formats: tc,
4964
- parse: ec,
4965
- stringify: Zl
4966
- }, nc = Ho;
4965
+ }, ec = zl, tc = Zl, nc = ln, at = {
4966
+ formats: nc,
4967
+ parse: tc,
4968
+ stringify: ec
4969
+ }, rc = Uo;
4967
4970
  function oe() {
4968
4971
  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;
4969
4972
  }
4970
- var rc = /^([a-z0-9.+-]+:)/i, ac = /:[0-9]*$/, ic = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, oc = [
4973
+ var ac = /^([a-z0-9.+-]+:)/i, ic = /:[0-9]*$/, oc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, sc = [
4971
4974
  "<",
4972
4975
  ">",
4973
4976
  '"',
@@ -4977,14 +4980,14 @@ var rc = /^([a-z0-9.+-]+:)/i, ac = /:[0-9]*$/, ic = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
4977
4980
  `
4978
4981
  `,
4979
4982
  " "
4980
- ], sc = [
4983
+ ], lc = [
4981
4984
  "{",
4982
4985
  "}",
4983
4986
  "|",
4984
4987
  "\\",
4985
4988
  "^",
4986
4989
  "`"
4987
- ].concat(oc), zt = ["'"].concat(sc), Zn = [
4990
+ ].concat(sc), zt = ["'"].concat(lc), Zn = [
4988
4991
  "%",
4989
4992
  "/",
4990
4993
  "?",
@@ -4994,7 +4997,7 @@ var rc = /^([a-z0-9.+-]+:)/i, ac = /:[0-9]*$/, ic = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
4994
4997
  "/",
4995
4998
  "?",
4996
4999
  "#"
4997
- ], lc = 255, tr = /^[+a-z0-9A-Z_-]{0,63}$/, cc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, uc = {
5000
+ ], cc = 255, tr = /^[+a-z0-9A-Z_-]{0,63}$/, uc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, dc = {
4998
5001
  javascript: !0,
4999
5002
  "javascript:": !0
5000
5003
  }, Jt = {
@@ -5025,11 +5028,11 @@ oe.prototype.parse = function(e, t, n) {
5025
5028
  i[0] = i[0].replace(r, "/"), e = i.join(s);
5026
5029
  var o = e;
5027
5030
  if (o = o.trim(), !n && e.split("#").length === 1) {
5028
- var l = ic.exec(o);
5031
+ var l = oc.exec(o);
5029
5032
  if (l)
5030
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;
5031
5034
  }
5032
- var c = rc.exec(o);
5035
+ var c = ac.exec(o);
5033
5036
  if (c) {
5034
5037
  c = c[0];
5035
5038
  var u = c.toLowerCase();
@@ -5059,17 +5062,17 @@ oe.prototype.parse = function(e, t, n) {
5059
5062
  for (var S = "", j = 0, E = k.length; j < E; j++)
5060
5063
  k.charCodeAt(j) > 127 ? S += "x" : S += k[j];
5061
5064
  if (!S.match(tr)) {
5062
- var P = y.slice(0, m), R = y.slice(m + 1), U = k.match(cc);
5065
+ var P = y.slice(0, m), R = y.slice(m + 1), U = k.match(uc);
5063
5066
  U && (P.push(U[1]), R.unshift(U[2])), R.length && (o = "/" + R.join(".") + o), this.hostname = P.join(".");
5064
5067
  break;
5065
5068
  }
5066
5069
  }
5067
5070
  }
5068
- this.hostname.length > lc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = nc.toASCII(this.hostname));
5071
+ this.hostname.length > cc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = rc.toASCII(this.hostname));
5069
5072
  var $ = this.port ? ":" + this.port : "", _ = this.hostname || "";
5070
5073
  this.host = _ + $, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
5071
5074
  }
5072
- if (!uc[u])
5075
+ if (!dc[u])
5073
5076
  for (var m = 0, x = zt.length; m < x; m++) {
5074
5077
  var F = zt[m];
5075
5078
  if (o.indexOf(F) !== -1) {
@@ -5086,7 +5089,7 @@ oe.prototype.parse = function(e, t, n) {
5086
5089
  }
5087
5090
  return this.href = this.format(), this;
5088
5091
  };
5089
- function dc(e) {
5092
+ function pc(e) {
5090
5093
  return typeof e == "string" && (e = cn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
5091
5094
  }
5092
5095
  oe.prototype.format = function() {
@@ -5173,15 +5176,15 @@ oe.prototype.resolveObject = function(e) {
5173
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;
5174
5177
  };
5175
5178
  oe.prototype.parseHost = function() {
5176
- var e = this.host, t = ac.exec(e);
5179
+ var e = this.host, t = ic.exec(e);
5177
5180
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
5178
5181
  };
5179
- var pc = cn, nr = dc, fc = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), mc = class {
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 {
5180
5183
  constructor(e, t = {}) {
5181
5184
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
5182
5185
  harIsAlreadyEncoded: !1,
5183
5186
  ...t
5184
- }, this.requests = [], fc(e) ? this.entries = e.log.entries : this.entries = [
5187
+ }, this.requests = [], mc(e) ? this.entries = e.log.entries : this.entries = [
5185
5188
  {
5186
5189
  request: e
5187
5190
  }
@@ -5271,7 +5274,7 @@ var pc = cn, nr = dc, fc = (e) => typeof e == "object" && "log" in e && typeof e
5271
5274
  const s = {
5272
5275
  ...n.allHeaders,
5273
5276
  ...n.headersObj
5274
- }, i = pc(n.url, !0, !0);
5277
+ }, i = fc(n.url, !0, !0);
5275
5278
  n.queryObj = {
5276
5279
  ...n.queryObj,
5277
5280
  ...i.query
@@ -5306,7 +5309,7 @@ var pc = cn, nr = dc, fc = (e) => typeof e == "object" && "log" in e && typeof e
5306
5309
  }
5307
5310
  convert(e, t, n) {
5308
5311
  this.initCalled || this.init(), !n && t && (n = t);
5309
- const a = Uo[e];
5312
+ const a = Lo[e];
5310
5313
  if (!a)
5311
5314
  return !1;
5312
5315
  const { convert: s } = a.clientsById[t || a.info.default];
@@ -5315,12 +5318,12 @@ var pc = cn, nr = dc, fc = (e) => typeof e == "object" && "log" in e && typeof e
5315
5318
  };
5316
5319
  const aa = Oa(
5317
5320
  void 0
5318
- ), Jc = aa.Provider, hc = () => {
5321
+ ), Wc = aa.Provider, yc = () => {
5319
5322
  const e = Ca(aa);
5320
5323
  if (!e)
5321
5324
  throw new Error("useOasConfig must be used within a OasConfigProvider");
5322
5325
  return e.config;
5323
- }, yc = ({
5326
+ }, vc = ({
5324
5327
  server: e,
5325
5328
  servers: t,
5326
5329
  operation: n
@@ -5382,8 +5385,8 @@ const aa = Oa(
5382
5385
  ),
5383
5386
  children: e
5384
5387
  }
5385
- ), vc = (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 && vc(e.examples) ? Object.values(e.examples)[0] : gc(e);
5386
- function gc(e, t) {
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) {
5387
5390
  const n = Object.entries(e.properties ?? {}).concat(
5388
5391
  Object.entries(e.additionalProperties ?? {})
5389
5392
  );
@@ -5398,7 +5401,7 @@ function gc(e, t) {
5398
5401
  return a !== void 0 ? [a] : [];
5399
5402
  }
5400
5403
  }
5401
- const bc = ({ content: e }) => {
5404
+ const xc = ({ content: e }) => {
5402
5405
  var t;
5403
5406
  return e.length ? /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs(un, { children: [
5404
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" }) }),
@@ -5417,7 +5420,7 @@ const bc = ({ content: e }) => {
5417
5420
  }
5418
5421
  ) })
5419
5422
  ] }) }) : null;
5420
- }, xc = ({
5423
+ }, kc = ({
5421
5424
  responses: e,
5422
5425
  selectedResponse: t,
5423
5426
  onSelectResponse: n
@@ -5465,7 +5468,7 @@ const bc = ({ content: e }) => {
5465
5468
  ]
5466
5469
  }
5467
5470
  ) });
5468
- }, kc = (e, t) => {
5471
+ }, $c = (e, t) => {
5469
5472
  let n;
5470
5473
  switch (t) {
5471
5474
  case "shell":
@@ -5518,7 +5521,7 @@ const bc = ({ content: e }) => {
5518
5521
  }
5519
5522
  }
5520
5523
  `
5521
- ), $c = { suspense: !0 }, Sc = {
5524
+ ), Sc = { suspense: !0 }, wc = {
5522
5525
  get: me.green,
5523
5526
  post: me.blue,
5524
5527
  put: me.yellow,
@@ -5527,17 +5530,17 @@ const bc = ({ content: e }) => {
5527
5530
  options: me.indigo,
5528
5531
  head: me.gray,
5529
5532
  trace: me.gray
5530
- }, Wc = ({
5533
+ }, Dc = ({
5531
5534
  operation: e,
5532
5535
  selectedResponse: t,
5533
5536
  onSelectResponse: n
5534
5537
  }) => {
5535
5538
  var h, v, g;
5536
- const a = hc(), [s] = sa({
5539
+ const a = yc(), [s] = sa({
5537
5540
  query: oa,
5538
5541
  variables: a,
5539
- context: $c
5540
- }), i = Sc[e.method.toLocaleLowerCase()] ?? me.gray, [r, o] = Ja(), [, l] = lr(), c = r.get("lang") ?? "shell", u = (h = e.requestBody) == null ? void 0 : h.content, f = e.path.split("/").map((b, y, x) => {
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) => {
5541
5544
  const S = b.startsWith("{") && b.endsWith("}") || b.startsWith(":") ? b.replace(/[:{}]/g, "") : void 0;
5542
5545
  return (
5543
5546
  // eslint-disable-next-line react/no-array-index-key
@@ -5557,7 +5560,7 @@ const bc = ({ content: e }) => {
5557
5560
  );
5558
5561
  }), { selectedServer: d } = mr(), m = Pa(() => {
5559
5562
  var x, k;
5560
- const b = (x = u == null ? void 0 : u[0]) != null && x.schema ? We(u[0].schema) : void 0, y = new mc({
5563
+ const b = (x = u == null ? void 0 : u[0]) != null && x.schema ? We(u[0].schema) : void 0, y = new hc({
5561
5564
  method: e.method.toLocaleUpperCase(),
5562
5565
  url: (d ?? ((k = s.data) == null ? void 0 : k.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5563
5566
  postData: b ? {
@@ -5571,7 +5574,7 @@ const bc = ({ content: e }) => {
5571
5574
  headersSize: 0,
5572
5575
  bodySize: 0
5573
5576
  });
5574
- return kc(y, c);
5577
+ return $c(y, c);
5575
5578
  }, [
5576
5579
  d,
5577
5580
  c,
@@ -5588,7 +5591,7 @@ const bc = ({ content: e }) => {
5588
5591
  f
5589
5592
  ] }),
5590
5593
  /* @__PURE__ */ p.jsx(
5591
- yc,
5594
+ vc,
5592
5595
  {
5593
5596
  server: ((v = s.data) == null ? void 0 : v.schema.url) ?? "",
5594
5597
  servers: ((g = s.data) == null ? void 0 : g.schema.servers.map((b) => b.url)) ?? [],
@@ -5634,9 +5637,9 @@ const bc = ({ content: e }) => {
5634
5637
  )
5635
5638
  ] })
5636
5639
  ] }),
5637
- u && /* @__PURE__ */ p.jsx(bc, { content: u }),
5640
+ u && /* @__PURE__ */ p.jsx(xc, { content: u }),
5638
5641
  e.responses.length > 0 && /* @__PURE__ */ p.jsx(
5639
- xc,
5642
+ kc,
5640
5643
  {
5641
5644
  selectedResponse: t,
5642
5645
  onSelectResponse: n,
@@ -5644,7 +5647,7 @@ const bc = ({ content: e }) => {
5644
5647
  }
5645
5648
  )
5646
5649
  ] });
5647
- }, wc = hr(`
5650
+ }, jc = hr(`
5648
5651
  query GetCategories($input: JSON!, $type: SchemaType!) {
5649
5652
  schema(input: $input, type: $type) {
5650
5653
  tags {
@@ -5662,10 +5665,10 @@ const bc = ({ content: e }) => {
5662
5665
  }
5663
5666
  }
5664
5667
  }
5665
- `), jc = () => {
5666
- const e = Wa(), t = e instanceof Error ? /* @__PURE__ */ p.jsx(De, { code: e.message }) : "An unknown error occurred";
5667
- return /* @__PURE__ */ p.jsx(ja, { category: "Error", title: "An error occurred", message: t });
5668
- }, Nc = {
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 = {
5669
5672
  get: "green",
5670
5673
  post: "blue",
5671
5674
  put: "yellow",
@@ -5673,11 +5676,11 @@ const bc = ({ content: e }) => {
5673
5676
  patch: "purple",
5674
5677
  options: "gray",
5675
5678
  head: "gray"
5676
- }, Dc = (e) => {
5677
- const t = pa(e.navigationId ?? "/reference"), n = e.server ? new la({
5679
+ }, Gc = (e) => {
5680
+ const t = Ta(e.navigationId ?? "/reference"), n = e.server ? new la({
5678
5681
  url: e.server,
5679
5682
  exchanges: [ca, ua]
5680
- }) : va({ useMemoryClient: e.inMemory ?? !1 });
5683
+ }) : ya({ useMemoryClient: e.inMemory ?? !1 });
5681
5684
  return {
5682
5685
  getHead: () => {
5683
5686
  if (e.type === "url" && !e.skipPreload)
@@ -5702,7 +5705,7 @@ const bc = ({ content: e }) => {
5702
5705
  ...o
5703
5706
  }) => {
5704
5707
  var u;
5705
- const l = wa(), c = fa({
5708
+ const l = Sa(), c = pa({
5706
5709
  queryFn: async () => (await n.query(oa, {
5707
5710
  type: e.type,
5708
5711
  input: e.input
@@ -5718,7 +5721,7 @@ const bc = ({ content: e }) => {
5718
5721
  onClick: l.login,
5719
5722
  children: [
5720
5723
  "Login to open in Playground ",
5721
- /* @__PURE__ */ p.jsx(ha, { size: 16 })
5724
+ /* @__PURE__ */ p.jsx(ma, { size: 16 })
5722
5725
  ]
5723
5726
  }
5724
5727
  ) : /* @__PURE__ */ p.jsx(
@@ -5730,16 +5733,16 @@ const bc = ({ content: e }) => {
5730
5733
  ...o,
5731
5734
  children: /* @__PURE__ */ p.jsxs(je, { className: "gap-2 items-center", variant: "outline", children: [
5732
5735
  "Open in Playground ",
5733
- /* @__PURE__ */ p.jsx(ya, { size: 16 })
5736
+ /* @__PURE__ */ p.jsx(ha, { size: 16 })
5734
5737
  ] })
5735
5738
  }
5736
5739
  );
5737
5740
  }
5738
5741
  }),
5739
5742
  getSidebar: async (a) => {
5740
- if (!Da({ path: t, end: !1 }, a))
5743
+ if (!Wa({ path: t, end: !1 }, a))
5741
5744
  return [];
5742
- const { data: s } = await n.query(wc, {
5745
+ const { data: s } = await n.query(jc, {
5743
5746
  input: e.input,
5744
5747
  type: e.type
5745
5748
  });
@@ -5755,7 +5758,7 @@ const bc = ({ content: e }) => {
5755
5758
  href: `#${o.slug}`,
5756
5759
  badge: {
5757
5760
  label: o.method,
5758
- color: Nc[o.method.toLowerCase()]
5761
+ color: Tc[o.method.toLowerCase()]
5759
5762
  }
5760
5763
  }))
5761
5764
  }));
@@ -5768,12 +5771,12 @@ const bc = ({ content: e }) => {
5768
5771
  getRoutes: () => [
5769
5772
  {
5770
5773
  async lazy() {
5771
- const { OpenApiRoute: a } = await import("./Route-DzTbXYJ8.js");
5774
+ const { OpenApiRoute: a } = await import("./Route-Q5mqNQrv.js");
5772
5775
  return {
5773
5776
  element: /* @__PURE__ */ p.jsx(a, { client: n, config: e })
5774
5777
  };
5775
5778
  },
5776
- errorElement: /* @__PURE__ */ p.jsx(jc, {}),
5779
+ errorElement: /* @__PURE__ */ p.jsx(Nc, {}),
5777
5780
  children: [
5778
5781
  {
5779
5782
  path: t,
@@ -5781,7 +5784,7 @@ const bc = ({ content: e }) => {
5781
5784
  {
5782
5785
  index: !0,
5783
5786
  async lazy() {
5784
- const { OperationList: a } = await import("./OperationList-BcfWM4ir.js");
5787
+ const { OperationList: a } = await import("./OperationList-CYrmxPa8.js");
5785
5788
  return { element: /* @__PURE__ */ p.jsx(a, {}) };
5786
5789
  }
5787
5790
  }
@@ -5794,7 +5797,7 @@ const bc = ({ content: e }) => {
5794
5797
  };
5795
5798
  export {
5796
5799
  Zt as C,
5797
- Jc as O,
5800
+ Wc as O,
5798
5801
  Ar as S,
5799
5802
  gn as T,
5800
5803
  ot as a,
@@ -5805,8 +5808,8 @@ export {
5805
5808
  Oe as f,
5806
5809
  hr as g,
5807
5810
  Ce as h,
5808
- Wc as i,
5809
- Dc as o,
5810
- hc as u
5811
+ Dc as i,
5812
+ Gc as o,
5813
+ yc as u
5811
5814
  };
5812
- //# sourceMappingURL=index-DrrYONSc.js.map
5815
+ //# sourceMappingURL=index-BlJ2rj99.js.map