apiuikit 1.11.0 → 2.0.0

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 (162) hide show
  1. package/README.md +2 -52
  2. package/dist/{CodeSamples-DHBJ8w0h.js → CodeSamples-DqJT72uU.js} +648 -636
  3. package/dist/{CodeSamples-zwenaP41.cjs → CodeSamples-ILzruYIb.cjs} +33 -33
  4. package/dist/{LogoExtension-B35DbEgK.cjs → LogoExtension-pwW1l7NO.cjs} +1 -1
  5. package/dist/{LogoExtension-vr6PCtIB.js → LogoExtension-yx9jporL.js} +1 -1
  6. package/dist/apiuikit.cjs.js +1 -1
  7. package/dist/apiuikit.css +1 -1
  8. package/dist/apiuikit.es.js +1 -1
  9. package/dist/c-B4BAHWS4.cjs +1 -0
  10. package/dist/{c-Bz1-FJiA.js → c-C0DTNf68.js} +122 -63
  11. package/dist/components/AsyncCodeSample.d.ts +1 -1
  12. package/dist/components/Authorization.d.ts +5 -5
  13. package/dist/components/Bindings.d.ts +1 -1
  14. package/dist/components/ChannelAddress.d.ts +1 -1
  15. package/dist/components/CodeBlock.d.ts +1 -1
  16. package/dist/components/CodeSamples.d.ts +1 -1
  17. package/dist/components/CollapsiblePanel.d.ts +1 -1
  18. package/dist/components/ContentTab.d.ts +1 -1
  19. package/dist/components/CopyButton.d.ts +1 -1
  20. package/dist/components/DefinitionListItem.d.ts +1 -1
  21. package/dist/components/DocumentTopBar.d.ts +1 -1
  22. package/dist/components/ErrorBoundary.d.ts +1 -1
  23. package/dist/components/Examples.d.ts +1 -1
  24. package/dist/components/InfoMetadata.d.ts +1 -1
  25. package/dist/components/MarkdownExportMenu.d.ts +1 -1
  26. package/dist/components/MethodBadge.d.ts +1 -1
  27. package/dist/components/Navigation/AsyncAPINavigation.d.ts +1 -1
  28. package/dist/components/Navigation/Navigation.d.ts +1 -1
  29. package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
  30. package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
  31. package/dist/components/QueryParameters.d.ts +1 -1
  32. package/dist/components/RenderExtensions.d.ts +1 -1
  33. package/dist/components/Reply.d.ts +1 -1
  34. package/dist/components/SearchPanel.d.ts +1 -1
  35. package/dist/components/Section.d.ts +8 -1
  36. package/dist/components/ServerAddressBanner.d.ts +1 -1
  37. package/dist/components/TabToggle.d.ts +1 -1
  38. package/dist/components/Tabs.d.ts +2 -2
  39. package/dist/components/Tag.d.ts +1 -1
  40. package/dist/components/VerticalNavigation.d.ts +1 -1
  41. package/dist/components/schema/ExpandToggle.d.ts +1 -1
  42. package/dist/components/schema/SchemaCaseDetail.d.ts +1 -1
  43. package/dist/components/schema/SchemaConstraints.d.ts +1 -1
  44. package/dist/components/schema/SchemaFieldMeta.d.ts +1 -1
  45. package/dist/components/schema/SchemaIfThenElseBranch.d.ts +1 -1
  46. package/dist/components/schema/SchemaMapBranch.d.ts +1 -1
  47. package/dist/components/schema/SchemaNode.d.ts +1 -1
  48. package/dist/components/schema/SchemaNotBranch.d.ts +2 -2
  49. package/dist/components/schema/SchemaTab.d.ts +1 -1
  50. package/dist/components/schema/SchemaTree.d.ts +1 -1
  51. package/dist/components/schema/SchemaTreeBranch.d.ts +1 -1
  52. package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
  53. package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
  54. package/dist/components/schema/SchemaUnionBranch.d.ts +1 -1
  55. package/dist/config/config.d.ts +17 -0
  56. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +6 -1
  57. package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
  58. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +6 -1
  59. package/dist/containers/AsyncAPI/Layout.d.ts +7 -1
  60. package/dist/containers/Information/InformationSection.d.ts +2 -2
  61. package/dist/containers/Information/OpenAPIInformation.d.ts +1 -1
  62. package/dist/containers/Messages/Message.d.ts +1 -1
  63. package/dist/containers/Messages/MessageDetails.d.ts +1 -1
  64. package/dist/containers/Messages/Messages.d.ts +1 -1
  65. package/dist/containers/OpenAPI/Layout.d.ts +7 -1
  66. package/dist/containers/OpenAPI/OpenAPI.d.ts +6 -1
  67. package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
  68. package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +6 -1
  69. package/dist/containers/Operation/Operation.d.ts +1 -1
  70. package/dist/containers/Operation/Operations.d.ts +1 -1
  71. package/dist/containers/Path/OperationCallbacks.d.ts +1 -1
  72. package/dist/containers/Path/PathOperation.d.ts +1 -1
  73. package/dist/containers/Path/Paths.d.ts +1 -1
  74. package/dist/containers/Path/ResponseLinks.d.ts +1 -1
  75. package/dist/containers/Schema/Schemas.d.ts +1 -1
  76. package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
  77. package/dist/containers/Server/OpenAPIServers.d.ts +1 -1
  78. package/dist/containers/Server/Server.d.ts +1 -1
  79. package/dist/containers/Server/Servers.d.ts +1 -1
  80. package/dist/contexts/useSpec.d.ts +5 -0
  81. package/dist/{crystal-BcGgviMR.cjs → crystal-BA1RB3o9.cjs} +1 -1
  82. package/dist/{crystal-BtD5fR4q.js → crystal-C5EKc8oK.js} +29 -18
  83. package/dist/{csharp-AnFv7wyC.js → csharp-B6YWt0KR.js} +47 -47
  84. package/dist/csharp-IihVQN8U.cjs +1 -0
  85. package/dist/{go-BpetKc7b.cjs → go-By8nj0Vi.cjs} +1 -1
  86. package/dist/{go-CkZ9_bn0.js → go-C8VcBUsu.js} +7 -2
  87. package/dist/helpers/openapiParser.d.ts +1 -1
  88. package/dist/helpers/parser.d.ts +1 -1
  89. package/dist/hooks/useDocumentProviderValue.d.ts +1 -0
  90. package/dist/hooks/useSpecLayoutController.d.ts +17 -1
  91. package/dist/icons/ArrowDown.d.ts +1 -1
  92. package/dist/icons/ArrowRight.d.ts +1 -1
  93. package/dist/icons/AtSymbol.d.ts +1 -1
  94. package/dist/icons/BookOpen.d.ts +1 -1
  95. package/dist/icons/Check.d.ts +1 -1
  96. package/dist/icons/Clipboard.d.ts +1 -1
  97. package/dist/icons/Connection.d.ts +1 -1
  98. package/dist/icons/Copy.d.ts +1 -1
  99. package/dist/icons/ExternalLink.d.ts +1 -1
  100. package/dist/icons/Globe.d.ts +1 -1
  101. package/dist/icons/IconWrapper.d.ts +1 -1
  102. package/dist/icons/Info.d.ts +1 -1
  103. package/dist/icons/Link.d.ts +1 -1
  104. package/dist/icons/Message.d.ts +1 -1
  105. package/dist/icons/Operation.d.ts +1 -1
  106. package/dist/icons/Scale.d.ts +1 -1
  107. package/dist/icons/Schema.d.ts +1 -1
  108. package/dist/icons/Server.d.ts +1 -1
  109. package/dist/icons/ShieldCheck.d.ts +1 -1
  110. package/dist/icons/Tag.d.ts +1 -1
  111. package/dist/icons/Variable.d.ts +1 -1
  112. package/dist/index-1SEMQuYi.js +1704 -0
  113. package/dist/{index-AwzSLIDS.js → index-6q1VqGzf.js} +10357 -10196
  114. package/dist/{index-DsSuZh0k.js → index-BI2__AB3.js} +3637 -3400
  115. package/dist/index-CI3MIo1V.cjs +137 -0
  116. package/dist/index-Ccy_JZ0T.cjs +4 -0
  117. package/dist/index-CfELqow6.cjs +107 -0
  118. package/dist/index-DNsQrlh-.cjs +178 -0
  119. package/dist/{index-D2A8jEpz.js → index-Dbr8eb7Z.js} +4838 -4658
  120. package/dist/index.d.ts +1 -0
  121. package/dist/{java-BicX26Pg.js → java-BoRJOXvw.js} +48 -39
  122. package/dist/java-DFXAwvvK.cjs +1 -0
  123. package/dist/{kotlin-kGuORR5a.cjs → kotlin-B3HlgtFq.cjs} +2 -2
  124. package/dist/{kotlin-BwB8b-YX.js → kotlin-CIEA64JZ.js} +3 -1
  125. package/dist/markdown-assets/protoToJsonSchema-B7uaS_Ic.js +83 -0
  126. package/dist/markdown-assets/{protoToJsonSchema-CBPWaboT.js → protoToJsonSchema-CWtEPUyE.js} +1807 -1788
  127. package/dist/markdown.cjs +37 -37
  128. package/dist/markdown.es.js +927 -900
  129. package/dist/{php-DF4zG2hq.cjs → php-BMUCoWpx.cjs} +2 -2
  130. package/dist/{php-BL35ZHWM.js → php-DJ7KS8rT.js} +39 -33
  131. package/dist/plugins/OperationPluginTabs.d.ts +1 -1
  132. package/dist/plugins/PluginSlot.d.ts +2 -2
  133. package/dist/{protoToJsonSchema-CZm3Y6FF.js → protoToJsonSchema-CbZrqF4-.js} +787 -769
  134. package/dist/protoToJsonSchema-QVW5EW0-.cjs +83 -0
  135. package/dist/{protobufSchemaParser-XBkxg_an.cjs → protobufSchemaParser-BEVutm25.cjs} +1 -1
  136. package/dist/{protobufSchemaParser-BblMCnwh.js → protobufSchemaParser-CtnNrHbS.js} +2 -2
  137. package/dist/public/createSectionRoot.d.ts +1 -1
  138. package/dist/public/openapiSections.d.ts +5 -5
  139. package/dist/public/schemasSection.d.ts +1 -1
  140. package/dist/public/sections.d.ts +5 -5
  141. package/dist/{ruby-nPcbuC2a.cjs → ruby-CGL4kvvH.cjs} +1 -1
  142. package/dist/{ruby-CvOid-1s.js → ruby-t1jbZ0Fv.js} +2 -2
  143. package/dist/{rust-BocnJ3Ns.js → rust-DY-oA2gr.js} +40 -26
  144. package/dist/rust-_vvcEGSJ.cjs +1 -0
  145. package/dist/swift-BAji1QIq.cjs +1 -0
  146. package/dist/{swift-C35Eof-I.js → swift-CdDIFB_j.js} +25 -11
  147. package/dist/utils/theme.d.ts +14 -0
  148. package/package.json +4 -4
  149. package/dist/App.d.ts +0 -2
  150. package/dist/c-C_Sx7N-F.cjs +0 -1
  151. package/dist/csharp-yuAGIuP4.cjs +0 -1
  152. package/dist/index-D0oLUuyJ.cjs +0 -178
  153. package/dist/index-DCDYBZcY.js +0 -1461
  154. package/dist/index-DWjbhYHQ.cjs +0 -107
  155. package/dist/index-QekxGfhl.cjs +0 -139
  156. package/dist/index-d8kJa7YD.cjs +0 -4
  157. package/dist/java-BIk0G-rH.cjs +0 -1
  158. package/dist/main.d.ts +0 -0
  159. package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +0 -83
  160. package/dist/protoToJsonSchema-BLyZqSxO.cjs +0 -83
  161. package/dist/rust-DKnYCg2f.cjs +0 -1
  162. package/dist/swift-CAnH__EC.cjs +0 -1
@@ -1,4 +1,4 @@
1
- const ut = [
1
+ const ct = [
2
2
  "get",
3
3
  "put",
4
4
  "post",
@@ -7,18 +7,18 @@ const ut = [
7
7
  "head",
8
8
  "patch",
9
9
  "trace"
10
- ], vt = (t, n) => `${t} ${n}`;
11
- function it(t) {
10
+ ], Tt = (t, n) => `${t} ${n}`;
11
+ function ft(t) {
12
12
  return Object.keys(t).sort().flatMap((n) => {
13
13
  const r = t[n];
14
- return r ? ut.filter((i) => r[i]).map((i) => ({
15
- key: vt(i, n),
16
- method: i,
14
+ return r ? ct.filter((u) => r[u]).map((u) => ({
15
+ key: Tt(u, n),
16
+ method: u,
17
17
  path: n
18
18
  })) : [];
19
19
  });
20
20
  }
21
- const Z = (t) => typeof t == "object" && t !== null && !Array.isArray(t), V = (t) => Z(t) ? t : null, Ze = "^[\0-ÿ]*$", _t = Math.pow(-2, 31), Et = Math.pow(2, 31) - 1, wt = Math.pow(-2, 63), Tt = Math.pow(2, 63) - 1, At = {
21
+ const V = (t) => typeof t == "object" && t !== null && !Array.isArray(t), X = (t) => V(t) ? t : null, tt = "^[\0-ÿ]*$", wt = Math.pow(-2, 31), At = Math.pow(2, 31) - 1, bt = Math.pow(-2, 63), Rt = Math.pow(2, 63) - 1, $t = {
22
22
  null: "null",
23
23
  boolean: "boolean",
24
24
  int: "integer",
@@ -33,29 +33,29 @@ const Z = (t) => typeof t == "object" && t !== null && !Array.isArray(t), V = (t
33
33
  enum: "string",
34
34
  record: "object",
35
35
  uuid: "string"
36
- }, Ne = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
37
- function he(t) {
38
- const n = Ne(t);
36
+ }, Ue = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
37
+ function ye(t) {
38
+ const n = Ue(t);
39
39
  if (typeof n.name == "string")
40
40
  return typeof n.namespace == "string" ? `${n.namespace}.${n.name}` : n.name;
41
41
  }
42
- function je(t, n, r) {
42
+ function Me(t, n, r) {
43
43
  t.doc && (n.description = t.doc), t.default !== void 0 && (n.default = t.default);
44
- const i = he(t);
45
- i !== void 0 && r[i] && (n["x-parser-schema-id"] = i);
44
+ const u = ye(t);
45
+ u !== void 0 && r[u] && (n["x-parser-schema-id"] = u);
46
46
  }
47
- function Je(t, n, r) {
47
+ function nt(t, n, r) {
48
48
  !(Array.isArray(t.type) && t.type.includes("null")) && !r && (n.required = n.required || [], n.required.push(t.name));
49
49
  }
50
- function bt(t, n) {
51
- let r = t, i = n;
50
+ function St(t, n) {
51
+ let r = t, u = n;
52
52
  if (Array.isArray(t) && t.length > 0) {
53
- const u = t.length > 1 && t[0] === "null";
54
- r = t[+u], i.oneOf !== void 0 && (i = i.oneOf[0]);
53
+ const i = t.length > 1 && t[0] === "null";
54
+ r = t[+i], u.oneOf !== void 0 && (u = u.oneOf[0]);
55
55
  }
56
- return { type: r, jsonSchema: i };
56
+ return { type: r, jsonSchema: u };
57
57
  }
58
- function $t(t, n, r) {
58
+ function kt(t, n, r) {
59
59
  if (!(n === void 0 || r.examples || Array.isArray(t)))
60
60
  switch (t) {
61
61
  case "boolean":
@@ -70,24 +70,24 @@ function $t(t, n, r) {
70
70
  r.examples = [n];
71
71
  }
72
72
  }
73
- function Ce(t) {
73
+ function Ne(t) {
74
74
  return Object.keys(t).some(
75
75
  (n) => n !== "type" && n !== "name" && n !== "namespace"
76
76
  );
77
77
  }
78
- function Me(t, n, r) {
79
- const { type: i, jsonSchema: u } = bt(
78
+ function Le(t, n, r) {
79
+ const { type: u, jsonSchema: i } = St(
80
80
  t,
81
81
  r
82
82
  );
83
- $t(i, n.example, u);
84
- function a(...l) {
85
- l.forEach((m) => {
83
+ kt(u, n.example, i);
84
+ function a(...p) {
85
+ p.forEach((y) => {
86
86
  let h = !0;
87
- m === "minLength" || m === "maxLength" ? h = n[m] > -1 : m === "multipleOf" && (h = n[m] > 0), n[m] !== void 0 && h && (u[m] = n[m]);
87
+ y === "minLength" || y === "maxLength" ? h = n[y] > -1 : y === "multipleOf" && (h = n[y] > 0), n[y] !== void 0 && h && (i[y] = n[y]);
88
88
  });
89
89
  }
90
- switch (i) {
90
+ switch (u) {
91
91
  case "int":
92
92
  // int, long, float, and double must support the attributes below
93
93
  case "long":
@@ -102,106 +102,106 @@ function Me(t, n, r) {
102
102
  );
103
103
  break;
104
104
  case "string":
105
- n.logicalType && (u.format = n.logicalType), a("pattern", "minLength", "maxLength");
105
+ n.logicalType && (i.format = n.logicalType), a("pattern", "minLength", "maxLength");
106
106
  break;
107
107
  case "array":
108
108
  a("minItems", "maxItems", "uniqueItems");
109
109
  break;
110
110
  }
111
111
  }
112
- function Le(t, n, r) {
112
+ function Ye(t, n, r) {
113
113
  n !== void 0 && (t[n] = r);
114
114
  }
115
- function ye(t, n) {
115
+ function he(t, n) {
116
116
  let r = {};
117
117
  if (Array.isArray(t))
118
- return St(r, t, n);
119
- const i = Ne(t), u = typeof t == "string" ? t : i.type;
120
- switch (r.type = At[u], u) {
118
+ return jt(r, t, n);
119
+ const u = Ue(t), i = typeof t == "string" ? t : u.type;
120
+ switch (r.type = $t[i], i) {
121
121
  case "int": {
122
- r.minimum = _t, r.maximum = Et;
122
+ r.minimum = wt, r.maximum = At;
123
123
  break;
124
124
  }
125
125
  case "long": {
126
- r.minimum = wt, r.maximum = Tt;
126
+ r.minimum = bt, r.maximum = Rt;
127
127
  break;
128
128
  }
129
129
  case "bytes": {
130
- r.pattern = Ze;
130
+ r.pattern = tt;
131
131
  break;
132
132
  }
133
133
  case "fixed": {
134
- r.pattern = Ze, r.minLength = i.size, r.maxLength = i.size;
134
+ r.pattern = tt, r.minLength = u.size, r.maxLength = u.size;
135
135
  break;
136
136
  }
137
137
  case "map": {
138
- r.additionalProperties = ye(
139
- i.values,
138
+ r.additionalProperties = he(
139
+ u.values,
140
140
  n
141
141
  );
142
142
  break;
143
143
  }
144
144
  case "array": {
145
- r.items = ye(
146
- i.items,
145
+ r.items = he(
146
+ u.items,
147
147
  n
148
148
  );
149
149
  break;
150
150
  }
151
151
  case "enum": {
152
- r.enum = i.symbols;
152
+ r.enum = u.symbols;
153
153
  break;
154
154
  }
155
155
  case "float":
156
156
  // float and double carry their Avro type as JSON Schema format
157
157
  case "double": {
158
- r.format = u;
158
+ r.format = i;
159
159
  break;
160
160
  }
161
161
  case "record": {
162
- const a = Rt(i, n, r);
163
- Le(
162
+ const a = Ot(u, n, r);
163
+ Ye(
164
164
  n,
165
- he(t),
165
+ ye(t),
166
166
  r
167
167
  ), r.properties = Object.fromEntries(a.entries());
168
168
  break;
169
169
  }
170
170
  default: {
171
- const a = n[he(t)] ?? (typeof u == "string" ? n[u] : void 0);
172
- a && (r = Ce(i) ? { ...a } : a);
171
+ const a = n[ye(t)] ?? (typeof i == "string" ? n[i] : void 0);
172
+ a && (r = Ne(u) ? { ...a } : a);
173
173
  break;
174
174
  }
175
175
  }
176
- return je(i, r, n), Me(u, i, r), r;
176
+ return Me(u, r, n), Le(i, u, r), r;
177
177
  }
178
- function Rt(t, n, r) {
179
- const i = /* @__PURE__ */ new Map();
180
- for (const u of t.fields ?? []) {
181
- const a = typeof u.type == "string" ? n[u.type] : void 0;
178
+ function Ot(t, n, r) {
179
+ const u = /* @__PURE__ */ new Map();
180
+ for (const i of t.fields ?? []) {
181
+ const a = typeof i.type == "string" ? n[i.type] : void 0;
182
182
  if (a) {
183
- const l = Ce(u) ? { ...a } : a;
184
- Je(u, r, u.default !== void 0), Ce(u) && (je(u, l, n), Me(u.type, u, l)), i.set(u.name, l);
183
+ const p = Ne(i) ? { ...a } : a;
184
+ nt(i, r, i.default !== void 0), Ne(i) && (Me(i, p, n), Le(i.type, i, p)), u.set(i.name, p);
185
185
  } else {
186
- const l = ye(u.type, n);
187
- Je(u, r, u.default !== void 0), je(u, l, n), Me(u.type, u, l), i.set(u.name, l), Le(n, he(u.type), l);
186
+ const p = he(i.type, n);
187
+ nt(i, r, i.default !== void 0), Me(i, p, n), Le(i.type, i, p), u.set(i.name, p), Ye(n, ye(i.type), p);
188
188
  }
189
189
  }
190
- return i;
190
+ return u;
191
191
  }
192
- function St(t, n, r) {
193
- const i = [];
194
- let u = null;
192
+ function jt(t, n, r) {
193
+ const u = [];
194
+ let i = null;
195
195
  for (const a of n) {
196
- const l = ye(a, r);
197
- (typeof a == "string" ? a : Ne(a).type) === "null" ? u = l : (i.push(l), Le(r, he(a), l));
196
+ const p = he(a, r);
197
+ (typeof a == "string" ? a : Ue(a).type) === "null" ? i = p : (u.push(p), Ye(r, ye(a), p));
198
198
  }
199
- return u && i.push(u), t.oneOf = i, t;
199
+ return i && u.push(i), t.oneOf = u, t;
200
200
  }
201
- function Ot(t) {
202
- return ye(t, {});
201
+ function Ct(t) {
202
+ return he(t, {});
203
203
  }
204
- const et = /* @__PURE__ */ new Set([
204
+ const rt = /* @__PURE__ */ new Set([
205
205
  "null",
206
206
  "boolean",
207
207
  "int",
@@ -211,64 +211,64 @@ const et = /* @__PURE__ */ new Set([
211
211
  "bytes",
212
212
  "string",
213
213
  "uuid"
214
- ]), kt = /* @__PURE__ */ new Set(["record", "enum", "array", "map", "fixed"]), tt = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
215
- function jt(t) {
214
+ ]), Pt = /* @__PURE__ */ new Set(["record", "enum", "array", "map", "fixed"]), ot = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
215
+ function Mt(t) {
216
216
  const n = [];
217
- return oe(t, "schema", n, /* @__PURE__ */ new Set()), n;
217
+ return se(t, "schema", n, /* @__PURE__ */ new Set()), n;
218
218
  }
219
- function oe(t, n, r, i) {
219
+ function se(t, n, r, u) {
220
220
  if (typeof t == "string") {
221
- !et.has(t) && !tt.test(t) && r.push(`${n}: "${t}" is not a valid Avro type name`);
221
+ !rt.has(t) && !ot.test(t) && r.push(`${n}: "${t}" is not a valid Avro type name`);
222
222
  return;
223
223
  }
224
224
  if (Array.isArray(t)) {
225
225
  t.length === 0 && r.push(`${n}: union must have at least one alternative`), t.forEach(
226
- (a, l) => oe(a, `${n}[${l}]`, r, i)
226
+ (a, p) => se(a, `${n}[${p}]`, r, u)
227
227
  );
228
228
  return;
229
229
  }
230
- if (!Z(t)) {
230
+ if (!V(t)) {
231
231
  r.push(`${n}: expected an Avro type string, object, or union`);
232
232
  return;
233
233
  }
234
- if (i.has(t)) return;
235
- i.add(t);
236
- const u = t.type;
237
- if (typeof u != "string") {
238
- Array.isArray(u) || Z(u) ? oe(u, `${n}.type`, r, i) : r.push(`${n}: missing "type"`);
234
+ if (u.has(t)) return;
235
+ u.add(t);
236
+ const i = t.type;
237
+ if (typeof i != "string") {
238
+ Array.isArray(i) || V(i) ? se(i, `${n}.type`, r, u) : r.push(`${n}: missing "type"`);
239
239
  return;
240
240
  }
241
- if (!et.has(u) && !kt.has(u) && !tt.test(u)) {
242
- r.push(`${n}: unknown Avro type "${u}"`);
241
+ if (!rt.has(i) && !Pt.has(i) && !ot.test(i)) {
242
+ r.push(`${n}: unknown Avro type "${i}"`);
243
243
  return;
244
244
  }
245
- switch (u) {
245
+ switch (i) {
246
246
  case "record": {
247
247
  if (!Array.isArray(t.fields)) {
248
248
  r.push(`${n}: record must have a "fields" array`);
249
249
  return;
250
250
  }
251
- t.fields.forEach((a, l) => {
252
- const m = `${n}.fields[${l}]`;
253
- if (!Z(a) || typeof a.name != "string") {
254
- r.push(`${m}: field must have a string "name"`);
251
+ t.fields.forEach((a, p) => {
252
+ const y = `${n}.fields[${p}]`;
253
+ if (!V(a) || typeof a.name != "string") {
254
+ r.push(`${y}: field must have a string "name"`);
255
255
  return;
256
256
  }
257
- oe(a.type, `${m}.type`, r, i);
257
+ se(a.type, `${y}.type`, r, u);
258
258
  });
259
259
  break;
260
260
  }
261
261
  case "enum": {
262
262
  const a = t.symbols;
263
- (!Array.isArray(a) || a.some((l) => typeof l != "string")) && r.push(`${n}: enum must have a "symbols" array of strings`);
263
+ (!Array.isArray(a) || a.some((p) => typeof p != "string")) && r.push(`${n}: enum must have a "symbols" array of strings`);
264
264
  break;
265
265
  }
266
266
  case "array": {
267
- t.items === void 0 ? r.push(`${n}: array must have "items"`) : oe(t.items, `${n}.items`, r, i);
267
+ t.items === void 0 ? r.push(`${n}: array must have "items"`) : se(t.items, `${n}.items`, r, u);
268
268
  break;
269
269
  }
270
270
  case "map": {
271
- t.values === void 0 ? r.push(`${n}: map must have "values"`) : oe(t.values, `${n}.values`, r, i);
271
+ t.values === void 0 ? r.push(`${n}: map must have "values"`) : se(t.values, `${n}.values`, r, u);
272
272
  break;
273
273
  }
274
274
  case "fixed": {
@@ -277,7 +277,7 @@ function oe(t, n, r, i) {
277
277
  }
278
278
  }
279
279
  }
280
- var Ae = { exports: {} }, E = {};
280
+ var Re = { exports: {} }, T = {};
281
281
  /**
282
282
  * @license React
283
283
  * react.production.js
@@ -287,15 +287,15 @@ var Ae = { exports: {} }, E = {};
287
287
  * This source code is licensed under the MIT license found in the
288
288
  * LICENSE file in the root directory of this source tree.
289
289
  */
290
- var nt;
291
- function Ct() {
292
- if (nt) return E;
293
- nt = 1;
294
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), A = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), S = Symbol.for("react.activity"), w = Symbol.iterator;
295
- function N(o) {
296
- return o === null || typeof o != "object" ? null : (o = w && o[w] || o["@@iterator"], typeof o == "function" ? o : null);
290
+ var st;
291
+ function Nt() {
292
+ if (st) return T;
293
+ st = 1;
294
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), p = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), w = Symbol.for("react.view_transition"), N = Symbol.iterator;
295
+ function U(o) {
296
+ return o === null || typeof o != "object" ? null : (o = N && o[N] || o["@@iterator"], typeof o == "function" ? o : null);
297
297
  }
298
- var U = {
298
+ var Y = {
299
299
  isMounted: function() {
300
300
  return !1;
301
301
  },
@@ -305,70 +305,70 @@ function Ct() {
305
305
  },
306
306
  enqueueSetState: function() {
307
307
  }
308
- }, Y = Object.assign, q = {};
309
- function B(o, f, _) {
310
- this.props = o, this.context = f, this.refs = q, this.updater = _ || U;
308
+ }, D = Object.assign, Z = {};
309
+ function B(o, c, v) {
310
+ this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
311
311
  }
312
- B.prototype.isReactComponent = {}, B.prototype.setState = function(o, f) {
312
+ B.prototype.isReactComponent = {}, B.prototype.setState = function(o, c) {
313
313
  if (typeof o != "object" && typeof o != "function" && o != null)
314
314
  throw Error(
315
315
  "takes an object of state variables to update or a function which returns an object of state variables."
316
316
  );
317
- this.updater.enqueueSetState(this, o, f, "setState");
317
+ this.updater.enqueueSetState(this, o, c, "setState");
318
318
  }, B.prototype.forceUpdate = function(o) {
319
319
  this.updater.enqueueForceUpdate(this, o, "forceUpdate");
320
320
  };
321
- function J() {
321
+ function ge() {
322
322
  }
323
- J.prototype = B.prototype;
324
- function ue(o, f, _) {
325
- this.props = o, this.context = f, this.refs = q, this.updater = _ || U;
323
+ ge.prototype = B.prototype;
324
+ function J(o, c, v) {
325
+ this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
326
326
  }
327
- var ee = ue.prototype = new J();
328
- ee.constructor = ue, Y(ee, B.prototype), ee.isPureReactComponent = !0;
329
- var x = Array.isArray;
330
- function ie() {
327
+ var W = J.prototype = new ge();
328
+ W.constructor = J, D(W, B.prototype), W.isPureReactComponent = !0;
329
+ var ve = Array.isArray;
330
+ function Q() {
331
331
  }
332
- var j = { H: null, A: null, T: null, S: null }, ge = Object.prototype.hasOwnProperty;
333
- function W(o, f, _) {
334
- var v = _.ref;
332
+ var C = { H: null, A: null, T: null, S: null }, x = Object.prototype.hasOwnProperty;
333
+ function F(o, c, v) {
334
+ var _ = v.ref;
335
335
  return {
336
336
  $$typeof: t,
337
337
  type: o,
338
- key: f,
339
- ref: v !== void 0 ? v : null,
340
- props: _
338
+ key: c,
339
+ ref: _ !== void 0 ? _ : null,
340
+ props: v
341
341
  };
342
342
  }
343
- function te(o, f) {
344
- return W(o.type, f, o.props);
343
+ function Oe(o, c) {
344
+ return F(o.type, c, o.props);
345
345
  }
346
- function ae(o) {
346
+ function M(o) {
347
347
  return typeof o == "object" && o !== null && o.$$typeof === t;
348
348
  }
349
- function P(o) {
350
- var f = { "=": "=0", ":": "=2" };
351
- return "$" + o.replace(/[=:]/g, function(_) {
352
- return f[_];
349
+ function _e(o) {
350
+ var c = { "=": "=0", ":": "=2" };
351
+ return "$" + o.replace(/[=:]/g, function(v) {
352
+ return c[v];
353
353
  });
354
354
  }
355
- var ce = /\/+/g;
356
- function G(o, f) {
357
- return typeof o == "object" && o !== null && o.key != null ? P("" + o.key) : f.toString(36);
355
+ var ue = /\/+/g;
356
+ function ee(o, c) {
357
+ return typeof o == "object" && o !== null && o.key != null ? _e("" + o.key) : c.toString(36);
358
358
  }
359
- function Q(o) {
359
+ function te(o) {
360
360
  switch (o.status) {
361
361
  case "fulfilled":
362
362
  return o.value;
363
363
  case "rejected":
364
364
  throw o.reason;
365
365
  default:
366
- switch (typeof o.status == "string" ? o.then(ie, ie) : (o.status = "pending", o.then(
367
- function(f) {
368
- o.status === "pending" && (o.status = "fulfilled", o.value = f);
366
+ switch (typeof o.status == "string" ? o.then(Q, Q) : (o.status = "pending", o.then(
367
+ function(c) {
368
+ o.status === "pending" && (o.status = "fulfilled", o.value = c);
369
369
  },
370
- function(f) {
371
- o.status === "pending" && (o.status = "rejected", o.reason = f);
370
+ function(c) {
371
+ o.status === "pending" && (o.status = "rejected", o.reason = c);
372
372
  }
373
373
  )), o.status) {
374
374
  case "fulfilled":
@@ -379,176 +379,196 @@ function Ct() {
379
379
  }
380
380
  throw o;
381
381
  }
382
- function z(o, f, _, v, O) {
382
+ function q(o, c, v, _, S) {
383
383
  var k = typeof o;
384
384
  (k === "undefined" || k === "boolean") && (o = null);
385
- var C = !1;
386
- if (o === null) C = !0;
385
+ var P = !1;
386
+ if (o === null) P = !0;
387
387
  else
388
388
  switch (k) {
389
389
  case "bigint":
390
390
  case "string":
391
391
  case "number":
392
- C = !0;
392
+ P = !0;
393
393
  break;
394
394
  case "object":
395
395
  switch (o.$$typeof) {
396
396
  case t:
397
397
  case n:
398
- C = !0;
398
+ P = !0;
399
399
  break;
400
- case g:
401
- return C = o._init, z(
402
- C(o._payload),
403
- f,
404
- _,
400
+ case E:
401
+ return P = o._init, q(
402
+ P(o._payload),
403
+ c,
405
404
  v,
406
- O
405
+ _,
406
+ S
407
407
  );
408
408
  }
409
409
  }
410
- if (C)
411
- return O = O(o), C = v === "" ? "." + G(o, 0) : v, x(O) ? (_ = "", C != null && (_ = C.replace(ce, "$&/") + "/"), z(O, f, _, "", function(X) {
412
- return X;
413
- })) : O != null && (ae(O) && (O = te(
414
- O,
415
- _ + (O.key == null || o && o.key === O.key ? "" : ("" + O.key).replace(
416
- ce,
410
+ if (P)
411
+ return S = S(o), P = _ === "" ? "." + ee(o, 0) : _, ve(S) ? (v = "", P != null && (v = P.replace(ue, "$&/") + "/"), q(S, c, v, "", function(Ee) {
412
+ return Ee;
413
+ })) : S != null && (M(S) && (S = Oe(
414
+ S,
415
+ v + (S.key == null || o && o.key === S.key ? "" : ("" + S.key).replace(
416
+ ue,
417
417
  "$&/"
418
- ) + "/") + C
419
- )), f.push(O)), 1;
420
- C = 0;
421
- var H = v === "" ? "." : v + ":";
422
- if (x(o))
418
+ ) + "/") + P
419
+ )), c.push(S)), 1;
420
+ P = 0;
421
+ var H = _ === "" ? "." : _ + ":";
422
+ if (ve(o))
423
423
  for (var I = 0; I < o.length; I++)
424
- v = o[I], k = H + G(v, I), C += z(
425
- v,
426
- f,
424
+ _ = o[I], k = H + ee(_, I), P += q(
427
425
  _,
426
+ c,
427
+ v,
428
428
  k,
429
- O
429
+ S
430
430
  );
431
- else if (I = N(o), typeof I == "function")
432
- for (o = I.call(o), I = 0; !(v = o.next()).done; )
433
- v = v.value, k = H + G(v, I++), C += z(
434
- v,
435
- f,
431
+ else if (I = U(o), typeof I == "function")
432
+ for (o = I.call(o), I = 0; !(_ = o.next()).done; )
433
+ _ = _.value, k = H + ee(_, I++), P += q(
436
434
  _,
435
+ c,
436
+ v,
437
437
  k,
438
- O
438
+ S
439
439
  );
440
440
  else if (k === "object") {
441
441
  if (typeof o.then == "function")
442
- return z(
443
- Q(o),
444
- f,
445
- _,
442
+ return q(
443
+ te(o),
444
+ c,
446
445
  v,
447
- O
446
+ _,
447
+ S
448
448
  );
449
- throw f = String(o), Error(
450
- "Objects are not valid as a React child (found: " + (f === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : f) + "). If you meant to render a collection of children, use an array instead."
449
+ throw c = String(o), Error(
450
+ "Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
451
451
  );
452
452
  }
453
- return C;
453
+ return P;
454
454
  }
455
- function F(o, f, _) {
455
+ function G(o, c, v) {
456
456
  if (o == null) return o;
457
- var v = [], O = 0;
458
- return z(o, v, "", "", function(k) {
459
- return f.call(_, k, O++);
460
- }), v;
457
+ var _ = [], S = 0;
458
+ return q(o, _, "", "", function(k) {
459
+ return c.call(v, k, S++);
460
+ }), _;
461
461
  }
462
- function fe(o) {
462
+ function ae(o) {
463
463
  if (o._status === -1) {
464
- var f = o._result;
465
- f = f(), f.then(
464
+ var c = o._result, v = c();
465
+ v.then(
466
466
  function(_) {
467
- (o._status === 0 || o._status === -1) && (o._status = 1, o._result = _);
467
+ (o._status === 0 || o._status === -1) && (o._status = 1, o._result = _, v.status === void 0 && (v.status = "fulfilled", v.value = _));
468
468
  },
469
469
  function(_) {
470
- (o._status === 0 || o._status === -1) && (o._status = 2, o._result = _);
470
+ (o._status === 0 || o._status === -1) && (o._status = 2, o._result = _, v.status === void 0 && (v.status = "rejected", v.reason = _));
471
471
  }
472
- ), o._status === -1 && (o._status = 0, o._result = f);
472
+ ), o._status === -1 && (o._status = 0, o._result = v);
473
473
  }
474
474
  if (o._status === 1) return o._result.default;
475
475
  throw o._result;
476
476
  }
477
477
  var ne = typeof reportError == "function" ? reportError : function(o) {
478
478
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
479
- var f = new window.ErrorEvent("error", {
479
+ var c = new window.ErrorEvent("error", {
480
480
  bubbles: !0,
481
481
  cancelable: !0,
482
482
  message: typeof o == "object" && o !== null && typeof o.message == "string" ? String(o.message) : String(o),
483
483
  error: o
484
484
  });
485
- if (!window.dispatchEvent(f)) return;
485
+ if (!window.dispatchEvent(c)) return;
486
486
  } else if (typeof process == "object" && typeof process.emit == "function") {
487
487
  process.emit("uncaughtException", o);
488
488
  return;
489
489
  }
490
490
  console.error(o);
491
- }, ve = {
492
- map: F,
493
- forEach: function(o, f, _) {
494
- F(
491
+ };
492
+ function re(o) {
493
+ var c = C.T, v = {};
494
+ v.types = c !== null ? c.types : null, C.T = v;
495
+ try {
496
+ var _ = o(), S = C.S;
497
+ S !== null && S(v, _), typeof _ == "object" && _ !== null && typeof _.then == "function" && _.then(Q, ne);
498
+ } catch (k) {
499
+ ne(k);
500
+ } finally {
501
+ c !== null && v.types !== null && (c.types = v.types), C.T = c;
502
+ }
503
+ }
504
+ function ce(o) {
505
+ var c = C.T;
506
+ if (c !== null) {
507
+ var v = c.types;
508
+ v === null ? c.types = [o] : v.indexOf(o) === -1 && v.push(o);
509
+ } else re(ce.bind(null, o));
510
+ }
511
+ var fe = {
512
+ map: G,
513
+ forEach: function(o, c, v) {
514
+ G(
495
515
  o,
496
516
  function() {
497
- f.apply(this, arguments);
517
+ c.apply(this, arguments);
498
518
  },
499
- _
519
+ v
500
520
  );
501
521
  },
502
522
  count: function(o) {
503
- var f = 0;
504
- return F(o, function() {
505
- f++;
506
- }), f;
523
+ var c = 0;
524
+ return G(o, function() {
525
+ c++;
526
+ }), c;
507
527
  },
508
528
  toArray: function(o) {
509
- return F(o, function(f) {
510
- return f;
529
+ return G(o, function(c) {
530
+ return c;
511
531
  }) || [];
512
532
  },
513
533
  only: function(o) {
514
- if (!ae(o))
534
+ if (!M(o))
515
535
  throw Error(
516
536
  "React.Children.only expected to receive a single React element child."
517
537
  );
518
538
  return o;
519
539
  }
520
540
  };
521
- return E.Activity = S, E.Children = ve, E.Component = B, E.Fragment = r, E.Profiler = u, E.PureComponent = ue, E.StrictMode = i, E.Suspense = h, E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = j, E.__COMPILER_RUNTIME = {
541
+ return T.Activity = $, T.Children = fe, T.Component = B, T.Fragment = r, T.Profiler = i, T.PureComponent = J, T.StrictMode = u, T.Suspense = h, T.ViewTransition = w, T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, T.__COMPILER_RUNTIME = {
522
542
  __proto__: null,
523
543
  c: function(o) {
524
- return j.H.useMemoCache(o);
544
+ return C.H.useMemoCache(o);
525
545
  }
526
- }, E.cache = function(o) {
546
+ }, T.addTransitionType = ce, T.cache = function(o) {
527
547
  return function() {
528
548
  return o.apply(null, arguments);
529
549
  };
530
- }, E.cacheSignal = function() {
550
+ }, T.cacheSignal = function() {
531
551
  return null;
532
- }, E.cloneElement = function(o, f, _) {
552
+ }, T.cloneElement = function(o, c, v) {
533
553
  if (o == null)
534
554
  throw Error(
535
555
  "The argument must be a React element, but you passed " + o + "."
536
556
  );
537
- var v = Y({}, o.props), O = o.key;
538
- if (f != null)
539
- for (k in f.key !== void 0 && (O = "" + f.key), f)
540
- !ge.call(f, k) || k === "key" || k === "__self" || k === "__source" || k === "ref" && f.ref === void 0 || (v[k] = f[k]);
557
+ var _ = D({}, o.props), S = o.key;
558
+ if (c != null)
559
+ for (k in c.key !== void 0 && (S = "" + c.key), c)
560
+ !x.call(c, k) || k === "key" || k === "__self" || k === "__source" || k === "ref" && c.ref === void 0 || (_[k] = c[k]);
541
561
  var k = arguments.length - 2;
542
- if (k === 1) v.children = _;
562
+ if (k === 1) _.children = v;
543
563
  else if (1 < k) {
544
- for (var C = Array(k), H = 0; H < k; H++)
545
- C[H] = arguments[H + 2];
546
- v.children = C;
564
+ for (var P = Array(k), H = 0; H < k; H++)
565
+ P[H] = arguments[H + 2];
566
+ _.children = P;
547
567
  }
548
- return W(o.type, O, v);
549
- }, E.createContext = function(o) {
568
+ return F(o.type, S, _);
569
+ }, T.createContext = function(o) {
550
570
  return o = {
551
- $$typeof: l,
571
+ $$typeof: p,
552
572
  _currentValue: o,
553
573
  _currentValue2: o,
554
574
  _threadCount: 0,
@@ -558,93 +578,82 @@ function Ct() {
558
578
  $$typeof: a,
559
579
  _context: o
560
580
  }, o;
561
- }, E.createElement = function(o, f, _) {
562
- var v, O = {}, k = null;
563
- if (f != null)
564
- for (v in f.key !== void 0 && (k = "" + f.key), f)
565
- ge.call(f, v) && v !== "key" && v !== "__self" && v !== "__source" && (O[v] = f[v]);
566
- var C = arguments.length - 2;
567
- if (C === 1) O.children = _;
568
- else if (1 < C) {
569
- for (var H = Array(C), I = 0; I < C; I++)
581
+ }, T.createElement = function(o, c, v) {
582
+ var _, S = {}, k = null;
583
+ if (c != null)
584
+ for (_ in c.key !== void 0 && (k = "" + c.key), c)
585
+ x.call(c, _) && _ !== "key" && _ !== "__self" && _ !== "__source" && (S[_] = c[_]);
586
+ var P = arguments.length - 2;
587
+ if (P === 1) S.children = v;
588
+ else if (1 < P) {
589
+ for (var H = Array(P), I = 0; I < P; I++)
570
590
  H[I] = arguments[I + 2];
571
- O.children = H;
591
+ S.children = H;
572
592
  }
573
593
  if (o && o.defaultProps)
574
- for (v in C = o.defaultProps, C)
575
- O[v] === void 0 && (O[v] = C[v]);
576
- return W(o, k, O);
577
- }, E.createRef = function() {
594
+ for (_ in P = o.defaultProps, P)
595
+ S[_] === void 0 && (S[_] = P[_]);
596
+ return F(o, k, S);
597
+ }, T.createRef = function() {
578
598
  return { current: null };
579
- }, E.forwardRef = function(o) {
580
- return { $$typeof: m, render: o };
581
- }, E.isValidElement = ae, E.lazy = function(o) {
599
+ }, T.forwardRef = function(o) {
600
+ return { $$typeof: y, render: o };
601
+ }, T.isValidElement = M, T.lazy = function(o) {
582
602
  return {
583
- $$typeof: g,
603
+ $$typeof: E,
584
604
  _payload: { _status: -1, _result: o },
585
- _init: fe
605
+ _init: ae
586
606
  };
587
- }, E.memo = function(o, f) {
607
+ }, T.memo = function(o, c) {
588
608
  return {
589
- $$typeof: A,
609
+ $$typeof: R,
590
610
  type: o,
591
- compare: f === void 0 ? null : f
611
+ compare: c === void 0 ? null : c
592
612
  };
593
- }, E.startTransition = function(o) {
594
- var f = j.T, _ = {};
595
- j.T = _;
596
- try {
597
- var v = o(), O = j.S;
598
- O !== null && O(_, v), typeof v == "object" && v !== null && typeof v.then == "function" && v.then(ie, ne);
599
- } catch (k) {
600
- ne(k);
601
- } finally {
602
- f !== null && _.types !== null && (f.types = _.types), j.T = f;
603
- }
604
- }, E.unstable_useCacheRefresh = function() {
605
- return j.H.useCacheRefresh();
606
- }, E.use = function(o) {
607
- return j.H.use(o);
608
- }, E.useActionState = function(o, f, _) {
609
- return j.H.useActionState(o, f, _);
610
- }, E.useCallback = function(o, f) {
611
- return j.H.useCallback(o, f);
612
- }, E.useContext = function(o) {
613
- return j.H.useContext(o);
614
- }, E.useDebugValue = function() {
615
- }, E.useDeferredValue = function(o, f) {
616
- return j.H.useDeferredValue(o, f);
617
- }, E.useEffect = function(o, f) {
618
- return j.H.useEffect(o, f);
619
- }, E.useEffectEvent = function(o) {
620
- return j.H.useEffectEvent(o);
621
- }, E.useId = function() {
622
- return j.H.useId();
623
- }, E.useImperativeHandle = function(o, f, _) {
624
- return j.H.useImperativeHandle(o, f, _);
625
- }, E.useInsertionEffect = function(o, f) {
626
- return j.H.useInsertionEffect(o, f);
627
- }, E.useLayoutEffect = function(o, f) {
628
- return j.H.useLayoutEffect(o, f);
629
- }, E.useMemo = function(o, f) {
630
- return j.H.useMemo(o, f);
631
- }, E.useOptimistic = function(o, f) {
632
- return j.H.useOptimistic(o, f);
633
- }, E.useReducer = function(o, f, _) {
634
- return j.H.useReducer(o, f, _);
635
- }, E.useRef = function(o) {
636
- return j.H.useRef(o);
637
- }, E.useState = function(o) {
638
- return j.H.useState(o);
639
- }, E.useSyncExternalStore = function(o, f, _) {
640
- return j.H.useSyncExternalStore(
613
+ }, T.startTransition = re, T.unstable_useCacheRefresh = function() {
614
+ return C.H.useCacheRefresh();
615
+ }, T.use = function(o) {
616
+ return C.H.use(o);
617
+ }, T.useActionState = function(o, c, v) {
618
+ return C.H.useActionState(o, c, v);
619
+ }, T.useCallback = function(o, c) {
620
+ return C.H.useCallback(o, c);
621
+ }, T.useContext = function(o) {
622
+ return C.H.useContext(o);
623
+ }, T.useDebugValue = function() {
624
+ }, T.useDeferredValue = function(o, c) {
625
+ return C.H.useDeferredValue(o, c);
626
+ }, T.useEffect = function(o, c) {
627
+ return C.H.useEffect(o, c);
628
+ }, T.useEffectEvent = function(o) {
629
+ return C.H.useEffectEvent(o);
630
+ }, T.useId = function() {
631
+ return C.H.useId();
632
+ }, T.useImperativeHandle = function(o, c, v) {
633
+ return C.H.useImperativeHandle(o, c, v);
634
+ }, T.useInsertionEffect = function(o, c) {
635
+ return C.H.useInsertionEffect(o, c);
636
+ }, T.useLayoutEffect = function(o, c) {
637
+ return C.H.useLayoutEffect(o, c);
638
+ }, T.useMemo = function(o, c) {
639
+ return C.H.useMemo(o, c);
640
+ }, T.useOptimistic = function(o, c) {
641
+ return C.H.useOptimistic(o, c);
642
+ }, T.useReducer = function(o, c, v) {
643
+ return C.H.useReducer(o, c, v);
644
+ }, T.useRef = function(o) {
645
+ return C.H.useRef(o);
646
+ }, T.useState = function(o) {
647
+ return C.H.useState(o);
648
+ }, T.useSyncExternalStore = function(o, c, v) {
649
+ return C.H.useSyncExternalStore(
641
650
  o,
642
- f,
643
- _
651
+ c,
652
+ v
644
653
  );
645
- }, E.useTransition = function() {
646
- return j.H.useTransition();
647
- }, E.version = "19.2.7", E;
654
+ }, T.useTransition = function() {
655
+ return C.H.useTransition();
656
+ }, T.version = "19.3.0", T;
648
657
  }
649
658
  var de = { exports: {} };
650
659
  /**
@@ -657,9 +666,9 @@ var de = { exports: {} };
657
666
  * LICENSE file in the root directory of this source tree.
658
667
  */
659
668
  de.exports;
660
- var rt;
661
- function Mt() {
662
- return rt || (rt = 1, (function(t, n) {
669
+ var it;
670
+ function Lt() {
671
+ return it || (it = 1, (function(t, n) {
663
672
  process.env.NODE_ENV !== "production" && (function() {
664
673
  function r(e, s) {
665
674
  Object.defineProperty(a.prototype, e, {
@@ -672,97 +681,99 @@ function Mt() {
672
681
  }
673
682
  });
674
683
  }
675
- function i(e) {
676
- return e === null || typeof e != "object" ? null : (e = Ye && e[Ye] || e["@@iterator"], typeof e == "function" ? e : null);
684
+ function u(e) {
685
+ return e === null || typeof e != "object" ? null : (e = ze && e[ze] || e["@@iterator"], typeof e == "function" ? e : null);
677
686
  }
678
- function u(e, s) {
687
+ function i(e, s) {
679
688
  e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
680
- var c = e + "." + s;
681
- He[c] || (console.error(
689
+ var f = e + "." + s;
690
+ De[f] || (console.error(
682
691
  "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
683
692
  s,
684
693
  e
685
- ), He[c] = !0);
694
+ ), De[f] = !0);
686
695
  }
687
- function a(e, s, c) {
688
- this.props = e, this.context = s, this.refs = Se, this.updater = c || De;
696
+ function a(e, s, f) {
697
+ this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
689
698
  }
690
- function l() {
699
+ function p() {
691
700
  }
692
- function m(e, s, c) {
693
- this.props = e, this.context = s, this.refs = Se, this.updater = c || De;
701
+ function y(e, s, f) {
702
+ this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
694
703
  }
695
704
  function h() {
696
705
  }
697
- function A(e) {
706
+ function R(e) {
698
707
  return "" + e;
699
708
  }
700
- function g(e) {
709
+ function E(e) {
701
710
  try {
702
- A(e);
711
+ R(e);
703
712
  var s = !1;
704
713
  } catch {
705
714
  s = !0;
706
715
  }
707
716
  if (s) {
708
717
  s = console;
709
- var c = s.error, p = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
710
- return c.call(
718
+ var f = s.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
719
+ return f.call(
711
720
  s,
712
721
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
713
- p
714
- ), A(e);
722
+ l
723
+ ), R(e);
715
724
  }
716
725
  }
717
- function S(e) {
726
+ function $(e) {
718
727
  if (e == null) return null;
719
728
  if (typeof e == "function")
720
- return e.$$typeof === dt ? null : e.displayName || e.name || null;
729
+ return e.$$typeof === ht ? null : e.displayName || e.name || null;
721
730
  if (typeof e == "string") return e;
722
731
  switch (e) {
723
- case o:
732
+ case fe:
724
733
  return "Fragment";
725
- case _:
734
+ case c:
726
735
  return "Profiler";
727
- case f:
736
+ case o:
728
737
  return "StrictMode";
729
- case C:
738
+ case k:
730
739
  return "Suspense";
731
- case H:
740
+ case P:
732
741
  return "SuspenseList";
733
- case Ie:
742
+ case Ee:
734
743
  return "Activity";
744
+ case qe:
745
+ return "ViewTransition";
735
746
  }
736
747
  if (typeof e == "object")
737
748
  switch (typeof e.tag == "number" && console.error(
738
749
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
739
750
  ), e.$$typeof) {
740
- case ve:
751
+ case ce:
741
752
  return "Portal";
742
- case O:
753
+ case _:
743
754
  return e.displayName || "Context";
744
755
  case v:
745
756
  return (e._context.displayName || "Context") + ".Consumer";
746
- case k:
757
+ case S:
747
758
  var s = e.render;
748
759
  return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
760
+ case H:
761
+ return s = e.displayName || null, s !== null ? s : $(e.type) || "Memo";
749
762
  case I:
750
- return s = e.displayName || null, s !== null ? s : S(e.type) || "Memo";
751
- case X:
752
763
  s = e._payload, e = e._init;
753
764
  try {
754
- return S(e(s));
765
+ return $(e(s));
755
766
  } catch {
756
767
  }
757
768
  }
758
769
  return null;
759
770
  }
760
771
  function w(e) {
761
- if (e === o) return "<>";
762
- if (typeof e == "object" && e !== null && e.$$typeof === X)
772
+ if (e === fe) return "<>";
773
+ if (typeof e == "object" && e !== null && e.$$typeof === I)
763
774
  return "<...>";
764
775
  try {
765
- var s = S(e);
776
+ var s = $(e);
766
777
  return s ? "<" + s + ">" : "<...>";
767
778
  } catch {
768
779
  return "<...>";
@@ -776,41 +787,41 @@ function Mt() {
776
787
  return Error("react-stack-top-frame");
777
788
  }
778
789
  function Y(e) {
779
- if (_e.call(e, "key")) {
790
+ if (Te.call(e, "key")) {
780
791
  var s = Object.getOwnPropertyDescriptor(e, "key").get;
781
792
  if (s && s.isReactWarning) return !1;
782
793
  }
783
794
  return e.key !== void 0;
784
795
  }
785
- function q(e, s) {
786
- function c() {
787
- We || (We = !0, console.error(
796
+ function D(e, s) {
797
+ function f() {
798
+ Fe || (Fe = !0, console.error(
788
799
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
789
800
  s
790
801
  ));
791
802
  }
792
- c.isReactWarning = !0, Object.defineProperty(e, "key", {
793
- get: c,
803
+ f.isReactWarning = !0, Object.defineProperty(e, "key", {
804
+ get: f,
794
805
  configurable: !0
795
806
  });
796
807
  }
797
- function B() {
798
- var e = S(this.type);
799
- return Ge[e] || (Ge[e] = !0, console.error(
808
+ function Z() {
809
+ var e = $(this.type);
810
+ return Qe[e] || (Qe[e] = !0, console.error(
800
811
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
801
812
  )), e = this.props.ref, e !== void 0 ? e : null;
802
813
  }
803
- function J(e, s, c, p, y, $) {
804
- var T = c.ref;
814
+ function B(e, s, f, l, m, j) {
815
+ var g = f.ref;
805
816
  return e = {
806
- $$typeof: ne,
817
+ $$typeof: re,
807
818
  type: e,
808
819
  key: s,
809
- props: c,
810
- _owner: p
811
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(e, "ref", {
820
+ props: f,
821
+ _owner: l
822
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(e, "ref", {
812
823
  enumerable: !1,
813
- get: B
824
+ get: Z
814
825
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
815
826
  configurable: !1,
816
827
  enumerable: !1,
@@ -825,16 +836,16 @@ function Mt() {
825
836
  configurable: !1,
826
837
  enumerable: !1,
827
838
  writable: !0,
828
- value: y
839
+ value: m
829
840
  }), Object.defineProperty(e, "_debugTask", {
830
841
  configurable: !1,
831
842
  enumerable: !1,
832
843
  writable: !0,
833
- value: $
844
+ value: j
834
845
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
835
846
  }
836
- function ue(e, s) {
837
- return s = J(
847
+ function ge(e, s) {
848
+ return s = B(
838
849
  e.type,
839
850
  s,
840
851
  e.props,
@@ -843,22 +854,22 @@ function Mt() {
843
854
  e._debugTask
844
855
  ), e._store && (s._store.validated = e._store.validated), s;
845
856
  }
846
- function ee(e) {
847
- x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === X && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
857
+ function J(e) {
858
+ W(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === I && (e._payload.status === "fulfilled" ? W(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
848
859
  }
849
- function x(e) {
850
- return typeof e == "object" && e !== null && e.$$typeof === ne;
860
+ function W(e) {
861
+ return typeof e == "object" && e !== null && e.$$typeof === re;
851
862
  }
852
- function ie(e) {
863
+ function ve(e) {
853
864
  var s = { "=": "=0", ":": "=2" };
854
- return "$" + e.replace(/[=:]/g, function(c) {
855
- return s[c];
865
+ return "$" + e.replace(/[=:]/g, function(f) {
866
+ return s[f];
856
867
  });
857
868
  }
858
- function j(e, s) {
859
- return typeof e == "object" && e !== null && e.key != null ? (g(e.key), ie("" + e.key)) : s.toString(36);
869
+ function Q(e, s) {
870
+ return typeof e == "object" && e !== null && e.key != null ? (E(e.key), ve("" + e.key)) : s.toString(36);
860
871
  }
861
- function ge(e) {
872
+ function C(e) {
862
873
  switch (e.status) {
863
874
  case "fulfilled":
864
875
  return e.value;
@@ -881,135 +892,141 @@ function Mt() {
881
892
  }
882
893
  throw e;
883
894
  }
884
- function W(e, s, c, p, y) {
885
- var $ = typeof e;
886
- ($ === "undefined" || $ === "boolean") && (e = null);
887
- var T = !1;
888
- if (e === null) T = !0;
895
+ function x(e, s, f, l, m) {
896
+ var j = typeof e;
897
+ (j === "undefined" || j === "boolean") && (e = null);
898
+ var g = !1;
899
+ if (e === null) g = !0;
889
900
  else
890
- switch ($) {
901
+ switch (j) {
891
902
  case "bigint":
892
903
  case "string":
893
904
  case "number":
894
- T = !0;
905
+ g = !0;
895
906
  break;
896
907
  case "object":
897
908
  switch (e.$$typeof) {
898
- case ne:
899
- case ve:
900
- T = !0;
909
+ case re:
910
+ case ce:
911
+ g = !0;
901
912
  break;
902
- case X:
903
- return T = e._init, W(
904
- T(e._payload),
913
+ case I:
914
+ return g = e._init, x(
915
+ g(e._payload),
905
916
  s,
906
- c,
907
- p,
908
- y
917
+ f,
918
+ l,
919
+ m
909
920
  );
910
921
  }
911
922
  }
912
- if (T) {
913
- T = e, y = y(T);
914
- var M = p === "" ? "." + j(T, 0) : p;
915
- return ze(y) ? (c = "", M != null && (c = M.replace(Ke, "$&/") + "/"), W(y, s, c, "", function(K) {
923
+ if (g) {
924
+ g = e, m = m(g);
925
+ var A = l === "" ? "." + Q(g, 0) : l;
926
+ return xe(m) ? (f = "", A != null && (f = A.replace(Ve, "$&/") + "/"), x(m, s, f, "", function(K) {
916
927
  return K;
917
- })) : y != null && (x(y) && (y.key != null && (T && T.key === y.key || g(y.key)), c = ue(
918
- y,
919
- c + (y.key == null || T && T.key === y.key ? "" : ("" + y.key).replace(
920
- Ke,
928
+ })) : m != null && (W(m) && (m.key != null && (g && g.key === m.key || E(m.key)), f = ge(
929
+ m,
930
+ f + (m.key == null || g && g.key === m.key ? "" : ("" + m.key).replace(
931
+ Ve,
921
932
  "$&/"
922
- ) + "/") + M
923
- ), p !== "" && T != null && x(T) && T.key == null && T._store && !T._store.validated && (c._store.validated = 2), y = c), s.push(y)), 1;
933
+ ) + "/") + A
934
+ ), l !== "" && g != null && W(g) && g.key == null && g._store && !g._store.validated && (f._store.validated = 2), m = f), s.push(m)), 1;
924
935
  }
925
- if (T = 0, M = p === "" ? "." : p + ":", ze(e))
926
- for (var R = 0; R < e.length; R++)
927
- p = e[R], $ = M + j(p, R), T += W(
928
- p,
936
+ if (g = 0, A = l === "" ? "." : l + ":", xe(e))
937
+ for (var O = 0; O < e.length; O++)
938
+ l = e[O], j = A + Q(l, O), g += x(
939
+ l,
929
940
  s,
930
- c,
931
- $,
932
- y
941
+ f,
942
+ j,
943
+ m
933
944
  );
934
- else if (R = i(e), typeof R == "function")
935
- for (R === e.entries && (Fe || console.warn(
945
+ else if (O = u(e), typeof O == "function")
946
+ for (O === e.entries && (Xe || console.warn(
936
947
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
937
- ), Fe = !0), e = R.call(e), R = 0; !(p = e.next()).done; )
938
- p = p.value, $ = M + j(p, R++), T += W(
939
- p,
948
+ ), Xe = !0), e = O.call(e), O = 0; !(l = e.next()).done; )
949
+ l = l.value, j = A + Q(l, O++), g += x(
950
+ l,
940
951
  s,
941
- c,
942
- $,
943
- y
952
+ f,
953
+ j,
954
+ m
944
955
  );
945
- else if ($ === "object") {
956
+ else if (j === "object") {
946
957
  if (typeof e.then == "function")
947
- return W(
948
- ge(e),
958
+ return x(
959
+ C(e),
949
960
  s,
950
- c,
951
- p,
952
- y
961
+ f,
962
+ l,
963
+ m
953
964
  );
954
965
  throw s = String(e), Error(
955
966
  "Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."
956
967
  );
957
968
  }
958
- return T;
969
+ return g;
959
970
  }
960
- function te(e, s, c) {
971
+ function F(e, s, f) {
961
972
  if (e == null) return e;
962
- var p = [], y = 0;
963
- return W(e, p, "", "", function($) {
964
- return s.call(c, $, y++);
965
- }), p;
973
+ var l = [], m = 0;
974
+ return x(e, l, "", "", function(j) {
975
+ return s.call(f, j, m++);
976
+ }), l;
966
977
  }
967
- function ae(e) {
978
+ function Oe(e) {
968
979
  if (e._status === -1) {
969
- var s = e._ioInfo;
970
- s != null && (s.start = s.end = performance.now()), s = e._result;
971
- var c = s();
972
- if (c.then(
973
- function(y) {
980
+ var s = null, f = null, l = e._ioInfo;
981
+ l != null && (l.start = l.end = performance.now(), l.value = new Promise(function(g, A) {
982
+ s = g, f = A;
983
+ })), l = e._result;
984
+ var m = l();
985
+ if (m.then(
986
+ function(g) {
974
987
  if (e._status === 0 || e._status === -1) {
975
- e._status = 1, e._result = y;
976
- var $ = e._ioInfo;
977
- $ != null && ($.end = performance.now()), c.status === void 0 && (c.status = "fulfilled", c.value = y);
988
+ e._status = 1, e._result = g;
989
+ var A = e._ioInfo;
990
+ if (A != null) {
991
+ A.end = performance.now();
992
+ var O = g == null ? void 0 : g.default;
993
+ s(O), A.value.status = "fulfilled", A.value.value = O;
994
+ }
995
+ m.status === void 0 && (m.status = "fulfilled", m.value = g);
978
996
  }
979
997
  },
980
- function(y) {
998
+ function(g) {
981
999
  if (e._status === 0 || e._status === -1) {
982
- e._status = 2, e._result = y;
983
- var $ = e._ioInfo;
984
- $ != null && ($.end = performance.now()), c.status === void 0 && (c.status = "rejected", c.reason = y);
1000
+ e._status = 2, e._result = g;
1001
+ var A = e._ioInfo;
1002
+ A != null && (A.end = performance.now(), A.value.then(h, h), f(g), A.value.status = "rejected", A.value.reason = g), m.status === void 0 && (m.status = "rejected", m.reason = g);
985
1003
  }
986
1004
  }
987
- ), s = e._ioInfo, s != null) {
988
- s.value = c;
989
- var p = c.displayName;
990
- typeof p == "string" && (s.name = p);
1005
+ ), l = e._ioInfo, l != null) {
1006
+ var j = m.displayName;
1007
+ typeof j == "string" && (l.name = j);
991
1008
  }
992
- e._status === -1 && (e._status = 0, e._result = c);
1009
+ e._status === -1 && (e._status = 0, e._result = m);
993
1010
  }
994
1011
  if (e._status === 1)
995
- return s = e._result, s === void 0 && console.error(
1012
+ return l = e._result, l === void 0 && console.error(
996
1013
  `lazy: Expected the result of a dynamic import() call. Instead received: %s
997
1014
 
998
1015
  Your code should look like:
999
1016
  const MyComponent = lazy(() => import('./MyComponent'))
1000
1017
 
1001
1018
  Did you accidentally put curly braces around the import?`,
1002
- s
1003
- ), "default" in s || console.error(
1019
+ l
1020
+ ), "default" in l || console.error(
1004
1021
  `lazy: Expected the result of a dynamic import() call. Instead received: %s
1005
1022
 
1006
1023
  Your code should look like:
1007
1024
  const MyComponent = lazy(() => import('./MyComponent'))`,
1008
- s
1009
- ), s.default;
1025
+ l
1026
+ ), l.default;
1010
1027
  throw e._result;
1011
1028
  }
1012
- function P() {
1029
+ function M() {
1013
1030
  var e = b.H;
1014
1031
  return e === null && console.error(
1015
1032
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -1019,94 +1036,120 @@ Your code should look like:
1019
1036
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
1020
1037
  ), e;
1021
1038
  }
1022
- function ce() {
1039
+ function _e() {
1023
1040
  b.asyncTransitions--;
1024
1041
  }
1025
- function G(e) {
1026
- if (Ee === null)
1042
+ function ue(e) {
1043
+ var s = b.T, f = {};
1044
+ f.types = s !== null ? s.types : null, f._updatedFibers = /* @__PURE__ */ new Set(), b.T = f;
1045
+ try {
1046
+ var l = e(), m = b.S;
1047
+ m !== null && m(f, l), typeof l == "object" && l !== null && typeof l.then == "function" && (b.asyncTransitions++, l.then(_e, _e), l.then(h, Ze));
1048
+ } catch (j) {
1049
+ Ze(j);
1050
+ } finally {
1051
+ s === null && f._updatedFibers && (e = f._updatedFibers.size, f._updatedFibers.clear(), 10 < e && console.warn(
1052
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1053
+ )), s !== null && f.types !== null && (s.types !== null && s.types !== f.types && console.error(
1054
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1055
+ ), s.types = f.types), b.T = s;
1056
+ }
1057
+ }
1058
+ function ee(e) {
1059
+ var s = b.T;
1060
+ if (s !== null) {
1061
+ var f = s.types;
1062
+ f === null ? s.types = [e] : f.indexOf(e) === -1 && f.push(e);
1063
+ } else
1064
+ b.asyncTransitions === 0 && console.error(
1065
+ "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
1066
+ ), ue(ee.bind(null, e));
1067
+ }
1068
+ function te(e) {
1069
+ if (we === null)
1027
1070
  try {
1028
1071
  var s = ("require" + Math.random()).slice(0, 7);
1029
- Ee = (t && t[s]).call(
1072
+ we = (t && t[s]).call(
1030
1073
  t,
1031
1074
  "timers"
1032
1075
  ).setImmediate;
1033
1076
  } catch {
1034
- Ee = function(p) {
1035
- Xe === !1 && (Xe = !0, typeof MessageChannel > "u" && console.error(
1077
+ we = function(l) {
1078
+ Je === !1 && (Je = !0, typeof MessageChannel > "u" && console.error(
1036
1079
  "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
1037
1080
  ));
1038
- var y = new MessageChannel();
1039
- y.port1.onmessage = p, y.port2.postMessage(void 0);
1081
+ var m = new MessageChannel();
1082
+ m.port1.onmessage = l, m.port2.postMessage(void 0);
1040
1083
  };
1041
1084
  }
1042
- return Ee(e);
1085
+ return we(e);
1043
1086
  }
1044
- function Q(e) {
1087
+ function q(e) {
1045
1088
  return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
1046
1089
  }
1047
- function z(e, s) {
1048
- s !== we - 1 && console.error(
1090
+ function G(e, s) {
1091
+ s !== Ae - 1 && console.error(
1049
1092
  "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1050
- ), we = s;
1093
+ ), Ae = s;
1051
1094
  }
1052
- function F(e, s, c) {
1053
- var p = b.actQueue;
1054
- if (p !== null)
1055
- if (p.length !== 0)
1095
+ function ae(e, s, f) {
1096
+ var l = b.actQueue;
1097
+ if (l !== null)
1098
+ if (l.length !== 0)
1056
1099
  try {
1057
- fe(p), G(function() {
1058
- return F(e, s, c);
1100
+ ne(l), te(function() {
1101
+ return ae(e, s, f);
1059
1102
  });
1060
1103
  return;
1061
- } catch (y) {
1062
- b.thrownErrors.push(y);
1104
+ } catch (m) {
1105
+ b.thrownErrors.push(m);
1063
1106
  }
1064
1107
  else b.actQueue = null;
1065
- 0 < b.thrownErrors.length ? (p = Q(b.thrownErrors), b.thrownErrors.length = 0, c(p)) : s(e);
1108
+ 0 < b.thrownErrors.length ? (l = q(b.thrownErrors), b.thrownErrors.length = 0, f(l)) : s(e);
1066
1109
  }
1067
- function fe(e) {
1068
- if (!Oe) {
1069
- Oe = !0;
1110
+ function ne(e) {
1111
+ if (!Ce) {
1112
+ Ce = !0;
1070
1113
  var s = 0;
1071
1114
  try {
1072
1115
  for (; s < e.length; s++) {
1073
- var c = e[s];
1116
+ var f = e[s];
1074
1117
  do {
1075
1118
  b.didUsePromise = !1;
1076
- var p = c(!1);
1077
- if (p !== null) {
1119
+ var l = f(!1);
1120
+ if (l !== null) {
1078
1121
  if (b.didUsePromise) {
1079
- e[s] = c, e.splice(0, s);
1122
+ e[s] = f, e.splice(0, s);
1080
1123
  return;
1081
1124
  }
1082
- c = p;
1125
+ f = l;
1083
1126
  } else break;
1084
1127
  } while (!0);
1085
1128
  }
1086
1129
  e.length = 0;
1087
- } catch (y) {
1088
- e.splice(0, s + 1), b.thrownErrors.push(y);
1130
+ } catch (m) {
1131
+ e.splice(0, s + 1), b.thrownErrors.push(m);
1089
1132
  } finally {
1090
- Oe = !1;
1133
+ Ce = !1;
1091
1134
  }
1092
1135
  }
1093
1136
  }
1094
1137
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1095
- var ne = Symbol.for("react.transitional.element"), ve = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), O = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), Ie = Symbol.for("react.activity"), Ye = Symbol.iterator, He = {}, De = {
1138
+ var re = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), fe = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), qe = Symbol.for("react.view_transition"), ze = Symbol.iterator, De = {}, Be = {
1096
1139
  isMounted: function() {
1097
1140
  return !1;
1098
1141
  },
1099
1142
  enqueueForceUpdate: function(e) {
1100
- u(e, "forceUpdate");
1143
+ i(e, "forceUpdate");
1101
1144
  },
1102
1145
  enqueueReplaceState: function(e) {
1103
- u(e, "replaceState");
1146
+ i(e, "replaceState");
1104
1147
  },
1105
1148
  enqueueSetState: function(e) {
1106
- u(e, "setState");
1149
+ i(e, "setState");
1107
1150
  }
1108
- }, qe = Object.assign, Se = {};
1109
- Object.freeze(Se), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, s) {
1151
+ }, We = Object.assign, je = {};
1152
+ Object.freeze(je), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, s) {
1110
1153
  if (typeof e != "object" && typeof e != "function" && e != null)
1111
1154
  throw Error(
1112
1155
  "takes an object of state variables to update or a function which returns an object of state variables."
@@ -1115,7 +1158,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1115
1158
  }, a.prototype.forceUpdate = function(e) {
1116
1159
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1117
1160
  };
1118
- var D = {
1161
+ var z = {
1119
1162
  isMounted: [
1120
1163
  "isMounted",
1121
1164
  "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
@@ -1125,10 +1168,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1125
1168
  "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1126
1169
  ]
1127
1170
  };
1128
- for (le in D)
1129
- D.hasOwnProperty(le) && r(le, D[le]);
1130
- l.prototype = a.prototype, D = m.prototype = new l(), D.constructor = m, qe(D, a.prototype), D.isPureReactComponent = !0;
1131
- var ze = Array.isArray, dt = Symbol.for("react.client.reference"), b = {
1171
+ for (le in z)
1172
+ z.hasOwnProperty(le) && r(le, z[le]);
1173
+ p.prototype = a.prototype, z = y.prototype = new p(), z.constructor = y, We(z, a.prototype), z.isPureReactComponent = !0;
1174
+ var xe = Array.isArray, ht = Symbol.for("react.client.reference"), b = {
1132
1175
  H: null,
1133
1176
  A: null,
1134
1177
  T: null,
@@ -1141,18 +1184,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1141
1184
  thrownErrors: [],
1142
1185
  getCurrentStack: null,
1143
1186
  recentlyCreatedOwnerStacks: 0
1144
- }, _e = Object.prototype.hasOwnProperty, Be = console.createTask ? console.createTask : function() {
1187
+ }, Te = Object.prototype.hasOwnProperty, Ge = console.createTask ? console.createTask : function() {
1145
1188
  return null;
1146
1189
  };
1147
- D = {
1190
+ z = {
1148
1191
  react_stack_bottom_frame: function(e) {
1149
1192
  return e();
1150
1193
  }
1151
1194
  };
1152
- var We, xe, Ge = {}, mt = D.react_stack_bottom_frame.bind(
1153
- D,
1195
+ var Fe, Ke, Qe = {}, gt = z.react_stack_bottom_frame.bind(
1196
+ z,
1154
1197
  U
1155
- )(), ht = Be(w(U)), Fe = !1, Ke = /\/+/g, Qe = typeof reportError == "function" ? reportError : function(e) {
1198
+ )(), vt = Ge(w(U)), Xe = !1, Ve = /\/+/g, Ze = typeof reportError == "function" ? reportError : function(e) {
1156
1199
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1157
1200
  var s = new window.ErrorEvent("error", {
1158
1201
  bubbles: !0,
@@ -1166,116 +1209,116 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1166
1209
  return;
1167
1210
  }
1168
1211
  console.error(e);
1169
- }, Xe = !1, Ee = null, we = 0, Te = !1, Oe = !1, Ve = typeof queueMicrotask == "function" ? function(e) {
1212
+ }, Je = !1, we = null, Ae = 0, be = !1, Ce = !1, et = typeof queueMicrotask == "function" ? function(e) {
1170
1213
  queueMicrotask(function() {
1171
1214
  return queueMicrotask(e);
1172
1215
  });
1173
- } : G;
1174
- D = Object.freeze({
1216
+ } : te;
1217
+ z = Object.freeze({
1175
1218
  __proto__: null,
1176
1219
  c: function(e) {
1177
- return P().useMemoCache(e);
1220
+ return M().useMemoCache(e);
1178
1221
  }
1179
1222
  });
1180
1223
  var le = {
1181
- map: te,
1182
- forEach: function(e, s, c) {
1183
- te(
1224
+ map: F,
1225
+ forEach: function(e, s, f) {
1226
+ F(
1184
1227
  e,
1185
1228
  function() {
1186
1229
  s.apply(this, arguments);
1187
1230
  },
1188
- c
1231
+ f
1189
1232
  );
1190
1233
  },
1191
1234
  count: function(e) {
1192
1235
  var s = 0;
1193
- return te(e, function() {
1236
+ return F(e, function() {
1194
1237
  s++;
1195
1238
  }), s;
1196
1239
  },
1197
1240
  toArray: function(e) {
1198
- return te(e, function(s) {
1241
+ return F(e, function(s) {
1199
1242
  return s;
1200
1243
  }) || [];
1201
1244
  },
1202
1245
  only: function(e) {
1203
- if (!x(e))
1246
+ if (!W(e))
1204
1247
  throw Error(
1205
1248
  "React.Children.only expected to receive a single React element child."
1206
1249
  );
1207
1250
  return e;
1208
1251
  }
1209
1252
  };
1210
- n.Activity = Ie, n.Children = le, n.Component = a, n.Fragment = o, n.Profiler = _, n.PureComponent = m, n.StrictMode = f, n.Suspense = C, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, n.__COMPILER_RUNTIME = D, n.act = function(e) {
1211
- var s = b.actQueue, c = we;
1212
- we++;
1213
- var p = b.actQueue = s !== null ? s : [], y = !1;
1253
+ n.Activity = Ee, n.Children = le, n.Component = a, n.Fragment = fe, n.Profiler = c, n.PureComponent = y, n.StrictMode = o, n.Suspense = k, n.ViewTransition = qe, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, n.__COMPILER_RUNTIME = z, n.act = function(e) {
1254
+ var s = b.actQueue, f = Ae;
1255
+ Ae++;
1256
+ var l = b.actQueue = s !== null ? s : [], m = !1;
1214
1257
  try {
1215
- var $ = e();
1216
- } catch (R) {
1217
- b.thrownErrors.push(R);
1258
+ var j = e();
1259
+ } catch (O) {
1260
+ b.thrownErrors.push(O);
1218
1261
  }
1219
1262
  if (0 < b.thrownErrors.length)
1220
- throw z(s, c), e = Q(b.thrownErrors), b.thrownErrors.length = 0, e;
1221
- if ($ !== null && typeof $ == "object" && typeof $.then == "function") {
1222
- var T = $;
1223
- return Ve(function() {
1224
- y || Te || (Te = !0, console.error(
1263
+ throw G(s, f), e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
1264
+ if (j !== null && typeof j == "object" && typeof j.then == "function") {
1265
+ var g = j;
1266
+ return et(function() {
1267
+ m || be || (be = !0, console.error(
1225
1268
  "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1226
1269
  ));
1227
1270
  }), {
1228
- then: function(R, K) {
1229
- y = !0, T.then(
1230
- function(re) {
1231
- if (z(s, c), c === 0) {
1271
+ then: function(O, K) {
1272
+ m = !0, g.then(
1273
+ function(oe) {
1274
+ if (G(s, f), f === 0) {
1232
1275
  try {
1233
- fe(p), G(function() {
1234
- return F(
1235
- re,
1236
- R,
1276
+ ne(l), te(function() {
1277
+ return ae(
1278
+ oe,
1279
+ O,
1237
1280
  K
1238
1281
  );
1239
1282
  });
1240
- } catch (gt) {
1241
- b.thrownErrors.push(gt);
1283
+ } catch (Et) {
1284
+ b.thrownErrors.push(Et);
1242
1285
  }
1243
1286
  if (0 < b.thrownErrors.length) {
1244
- var yt = Q(
1287
+ var _t = q(
1245
1288
  b.thrownErrors
1246
1289
  );
1247
- b.thrownErrors.length = 0, K(yt);
1290
+ b.thrownErrors.length = 0, K(_t);
1248
1291
  }
1249
- } else R(re);
1292
+ } else O(oe);
1250
1293
  },
1251
- function(re) {
1252
- z(s, c), 0 < b.thrownErrors.length && (re = Q(
1294
+ function(oe) {
1295
+ G(s, f), 0 < b.thrownErrors.length && (oe = q(
1253
1296
  b.thrownErrors
1254
- ), b.thrownErrors.length = 0), K(re);
1297
+ ), b.thrownErrors.length = 0), K(oe);
1255
1298
  }
1256
1299
  );
1257
1300
  }
1258
1301
  };
1259
1302
  }
1260
- var M = $;
1261
- if (z(s, c), c === 0 && (fe(p), p.length !== 0 && Ve(function() {
1262
- y || Te || (Te = !0, console.error(
1303
+ var A = j;
1304
+ if (G(s, f), f === 0 && (ne(l), l.length !== 0 && et(function() {
1305
+ m || be || (be = !0, console.error(
1263
1306
  "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1264
1307
  ));
1265
1308
  }), b.actQueue = null), 0 < b.thrownErrors.length)
1266
- throw e = Q(b.thrownErrors), b.thrownErrors.length = 0, e;
1309
+ throw e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
1267
1310
  return {
1268
- then: function(R, K) {
1269
- y = !0, c === 0 ? (b.actQueue = p, G(function() {
1270
- return F(
1271
- M,
1272
- R,
1311
+ then: function(O, K) {
1312
+ m = !0, f === 0 ? (b.actQueue = l, te(function() {
1313
+ return ae(
1314
+ A,
1315
+ O,
1273
1316
  K
1274
1317
  );
1275
- })) : R(M);
1318
+ })) : O(A);
1276
1319
  }
1277
1320
  };
1278
- }, n.cache = function(e) {
1321
+ }, n.addTransitionType = ee, n.cache = function(e) {
1279
1322
  return function() {
1280
1323
  return e.apply(null, arguments);
1281
1324
  };
@@ -1284,49 +1327,49 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1284
1327
  }, n.captureOwnerStack = function() {
1285
1328
  var e = b.getCurrentStack;
1286
1329
  return e === null ? null : e();
1287
- }, n.cloneElement = function(e, s, c) {
1330
+ }, n.cloneElement = function(e, s, f) {
1288
1331
  if (e == null)
1289
1332
  throw Error(
1290
1333
  "The argument must be a React element, but you passed " + e + "."
1291
1334
  );
1292
- var p = qe({}, e.props), y = e.key, $ = e._owner;
1335
+ var l = We({}, e.props), m = e.key, j = e._owner;
1293
1336
  if (s != null) {
1294
- var T;
1337
+ var g;
1295
1338
  e: {
1296
- if (_e.call(s, "ref") && (T = Object.getOwnPropertyDescriptor(
1339
+ if (Te.call(s, "ref") && (g = Object.getOwnPropertyDescriptor(
1297
1340
  s,
1298
1341
  "ref"
1299
- ).get) && T.isReactWarning) {
1300
- T = !1;
1342
+ ).get) && g.isReactWarning) {
1343
+ g = !1;
1301
1344
  break e;
1302
1345
  }
1303
- T = s.ref !== void 0;
1346
+ g = s.ref !== void 0;
1304
1347
  }
1305
- T && ($ = N()), Y(s) && (g(s.key), y = "" + s.key);
1306
- for (M in s)
1307
- !_e.call(s, M) || M === "key" || M === "__self" || M === "__source" || M === "ref" && s.ref === void 0 || (p[M] = s[M]);
1348
+ g && (j = N()), Y(s) && (E(s.key), m = "" + s.key);
1349
+ for (A in s)
1350
+ !Te.call(s, A) || A === "key" || A === "__self" || A === "__source" || A === "ref" && s.ref === void 0 || (l[A] = s[A]);
1308
1351
  }
1309
- var M = arguments.length - 2;
1310
- if (M === 1) p.children = c;
1311
- else if (1 < M) {
1312
- T = Array(M);
1313
- for (var R = 0; R < M; R++)
1314
- T[R] = arguments[R + 2];
1315
- p.children = T;
1352
+ var A = arguments.length - 2;
1353
+ if (A === 1) l.children = f;
1354
+ else if (1 < A) {
1355
+ g = Array(A);
1356
+ for (var O = 0; O < A; O++)
1357
+ g[O] = arguments[O + 2];
1358
+ l.children = g;
1316
1359
  }
1317
- for (p = J(
1360
+ for (l = B(
1318
1361
  e.type,
1319
- y,
1320
- p,
1321
- $,
1362
+ m,
1363
+ l,
1364
+ j,
1322
1365
  e._debugStack,
1323
1366
  e._debugTask
1324
- ), y = 2; y < arguments.length; y++)
1325
- ee(arguments[y]);
1326
- return p;
1367
+ ), m = 2; m < arguments.length; m++)
1368
+ J(arguments[m]);
1369
+ return l;
1327
1370
  }, n.createContext = function(e) {
1328
1371
  return e = {
1329
- $$typeof: O,
1372
+ $$typeof: _,
1330
1373
  _currentValue: e,
1331
1374
  _currentValue2: e,
1332
1375
  _threadCount: 0,
@@ -1336,44 +1379,43 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1336
1379
  $$typeof: v,
1337
1380
  _context: e
1338
1381
  }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1339
- }, n.createElement = function(e, s, c) {
1340
- for (var p = 2; p < arguments.length; p++)
1341
- ee(arguments[p]);
1342
- p = {};
1343
- var y = null;
1382
+ }, n.createElement = function(e, s, f) {
1383
+ for (var l = 2; l < arguments.length; l++)
1384
+ J(arguments[l]);
1385
+ var m;
1386
+ l = {};
1387
+ var j = null;
1344
1388
  if (s != null)
1345
- for (R in xe || !("__self" in s) || "key" in s || (xe = !0, console.warn(
1389
+ for (m in Ke || !("__self" in s) || "key" in s || (Ke = !0, console.warn(
1346
1390
  "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1347
- )), Y(s) && (g(s.key), y = "" + s.key), s)
1348
- _e.call(s, R) && R !== "key" && R !== "__self" && R !== "__source" && (p[R] = s[R]);
1349
- var $ = arguments.length - 2;
1350
- if ($ === 1) p.children = c;
1351
- else if (1 < $) {
1352
- for (var T = Array($), M = 0; M < $; M++)
1353
- T[M] = arguments[M + 2];
1354
- Object.freeze && Object.freeze(T), p.children = T;
1391
+ )), Y(s) && (E(s.key), j = "" + s.key), s)
1392
+ Te.call(s, m) && m !== "key" && m !== "__self" && m !== "__source" && (l[m] = s[m]);
1393
+ var g = arguments.length - 2;
1394
+ if (g === 1) l.children = f;
1395
+ else if (1 < g) {
1396
+ for (var A = Array(g), O = 0; O < g; O++)
1397
+ A[O] = arguments[O + 2];
1398
+ Object.freeze && Object.freeze(A), l.children = A;
1355
1399
  }
1356
1400
  if (e && e.defaultProps)
1357
- for (R in $ = e.defaultProps, $)
1358
- p[R] === void 0 && (p[R] = $[R]);
1359
- y && q(
1360
- p,
1401
+ for (m in g = e.defaultProps, g)
1402
+ l[m] === void 0 && (l[m] = g[m]);
1403
+ return j && D(
1404
+ l,
1361
1405
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
1362
- );
1363
- var R = 1e4 > b.recentlyCreatedOwnerStacks++;
1364
- return J(
1406
+ ), (m = 1e4 > b.recentlyCreatedOwnerStacks++) ? (A = Error.stackTraceLimit, Error.stackTraceLimit = 10, g = Error("react-stack-top-frame"), Error.stackTraceLimit = A) : g = gt, B(
1365
1407
  e,
1366
- y,
1367
- p,
1408
+ j,
1409
+ l,
1368
1410
  N(),
1369
- R ? Error("react-stack-top-frame") : mt,
1370
- R ? Be(w(e)) : ht
1411
+ g,
1412
+ m ? Ge(w(e)) : vt
1371
1413
  );
1372
1414
  }, n.createRef = function() {
1373
1415
  var e = { current: null };
1374
1416
  return Object.seal(e), e;
1375
1417
  }, n.forwardRef = function(e) {
1376
- e != null && e.$$typeof === I ? console.error(
1418
+ e != null && e.$$typeof === H ? console.error(
1377
1419
  "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1378
1420
  ) : typeof e != "function" ? console.error(
1379
1421
  "forwardRef requires a render function but was given %s.",
@@ -1384,24 +1426,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1384
1426
  ), e != null && e.defaultProps != null && console.error(
1385
1427
  "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1386
1428
  );
1387
- var s = { $$typeof: k, render: e }, c;
1429
+ var s = { $$typeof: S, render: e }, f;
1388
1430
  return Object.defineProperty(s, "displayName", {
1389
1431
  enumerable: !1,
1390
1432
  configurable: !0,
1391
1433
  get: function() {
1392
- return c;
1434
+ return f;
1393
1435
  },
1394
- set: function(p) {
1395
- c = p, e.name || e.displayName || (Object.defineProperty(e, "name", { value: p }), e.displayName = p);
1436
+ set: function(l) {
1437
+ f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
1396
1438
  }
1397
1439
  }), s;
1398
- }, n.isValidElement = x, n.lazy = function(e) {
1440
+ }, n.isValidElement = W, n.lazy = function(e) {
1399
1441
  e = { _status: -1, _result: e };
1400
1442
  var s = {
1401
- $$typeof: X,
1443
+ $$typeof: I,
1402
1444
  _payload: e,
1403
- _init: ae
1404
- }, c = {
1445
+ _init: Oe
1446
+ }, f = {
1405
1447
  name: "lazy",
1406
1448
  start: -1,
1407
1449
  end: -1,
@@ -1410,129 +1452,114 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1410
1452
  debugStack: Error("react-stack-top-frame"),
1411
1453
  debugTask: console.createTask ? console.createTask("lazy()") : null
1412
1454
  };
1413
- return e._ioInfo = c, s._debugInfo = [{ awaited: c }], s;
1455
+ return e._ioInfo = f, s._debugInfo = [{ awaited: f }], s;
1414
1456
  }, n.memo = function(e, s) {
1415
1457
  e == null && console.error(
1416
1458
  "memo: The first argument must be a component. Instead received: %s",
1417
1459
  e === null ? "null" : typeof e
1418
1460
  ), s = {
1419
- $$typeof: I,
1461
+ $$typeof: H,
1420
1462
  type: e,
1421
1463
  compare: s === void 0 ? null : s
1422
1464
  };
1423
- var c;
1465
+ var f;
1424
1466
  return Object.defineProperty(s, "displayName", {
1425
1467
  enumerable: !1,
1426
1468
  configurable: !0,
1427
1469
  get: function() {
1428
- return c;
1470
+ return f;
1429
1471
  },
1430
- set: function(p) {
1431
- c = p, e.name || e.displayName || (Object.defineProperty(e, "name", { value: p }), e.displayName = p);
1472
+ set: function(l) {
1473
+ f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
1432
1474
  }
1433
1475
  }), s;
1434
- }, n.startTransition = function(e) {
1435
- var s = b.T, c = {};
1436
- c._updatedFibers = /* @__PURE__ */ new Set(), b.T = c;
1437
- try {
1438
- var p = e(), y = b.S;
1439
- y !== null && y(c, p), typeof p == "object" && p !== null && typeof p.then == "function" && (b.asyncTransitions++, p.then(ce, ce), p.then(h, Qe));
1440
- } catch ($) {
1441
- Qe($);
1442
- } finally {
1443
- s === null && c._updatedFibers && (e = c._updatedFibers.size, c._updatedFibers.clear(), 10 < e && console.warn(
1444
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1445
- )), s !== null && c.types !== null && (s.types !== null && s.types !== c.types && console.error(
1446
- "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1447
- ), s.types = c.types), b.T = s;
1448
- }
1449
- }, n.unstable_useCacheRefresh = function() {
1450
- return P().useCacheRefresh();
1476
+ }, n.startTransition = ue, n.unstable_useCacheRefresh = function() {
1477
+ return M().useCacheRefresh();
1451
1478
  }, n.use = function(e) {
1452
- return P().use(e);
1453
- }, n.useActionState = function(e, s, c) {
1454
- return P().useActionState(
1479
+ return M().use(e);
1480
+ }, n.useActionState = function(e, s, f) {
1481
+ return M().useActionState(
1455
1482
  e,
1456
1483
  s,
1457
- c
1484
+ f
1458
1485
  );
1459
1486
  }, n.useCallback = function(e, s) {
1460
- return P().useCallback(e, s);
1487
+ return M().useCallback(e, s);
1461
1488
  }, n.useContext = function(e) {
1462
- var s = P();
1489
+ var s = M();
1463
1490
  return e.$$typeof === v && console.error(
1464
1491
  "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1465
1492
  ), s.useContext(e);
1466
1493
  }, n.useDebugValue = function(e, s) {
1467
- return P().useDebugValue(e, s);
1494
+ return M().useDebugValue(e, s);
1468
1495
  }, n.useDeferredValue = function(e, s) {
1469
- return P().useDeferredValue(e, s);
1496
+ return M().useDeferredValue(e, s);
1470
1497
  }, n.useEffect = function(e, s) {
1471
1498
  return e == null && console.warn(
1472
1499
  "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1473
- ), P().useEffect(e, s);
1500
+ ), M().useEffect(e, s);
1474
1501
  }, n.useEffectEvent = function(e) {
1475
- return P().useEffectEvent(e);
1502
+ return M().useEffectEvent(e);
1476
1503
  }, n.useId = function() {
1477
- return P().useId();
1478
- }, n.useImperativeHandle = function(e, s, c) {
1479
- return P().useImperativeHandle(e, s, c);
1504
+ return M().useId();
1505
+ }, n.useImperativeHandle = function(e, s, f) {
1506
+ return M().useImperativeHandle(e, s, f);
1480
1507
  }, n.useInsertionEffect = function(e, s) {
1481
1508
  return e == null && console.warn(
1482
1509
  "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1483
- ), P().useInsertionEffect(e, s);
1510
+ ), M().useInsertionEffect(e, s);
1484
1511
  }, n.useLayoutEffect = function(e, s) {
1485
1512
  return e == null && console.warn(
1486
1513
  "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1487
- ), P().useLayoutEffect(e, s);
1514
+ ), M().useLayoutEffect(e, s);
1488
1515
  }, n.useMemo = function(e, s) {
1489
- return P().useMemo(e, s);
1516
+ return M().useMemo(e, s);
1490
1517
  }, n.useOptimistic = function(e, s) {
1491
- return P().useOptimistic(e, s);
1492
- }, n.useReducer = function(e, s, c) {
1493
- return P().useReducer(e, s, c);
1518
+ return M().useOptimistic(e, s);
1519
+ }, n.useReducer = function(e, s, f) {
1520
+ return M().useReducer(e, s, f);
1494
1521
  }, n.useRef = function(e) {
1495
- return P().useRef(e);
1522
+ return M().useRef(e);
1496
1523
  }, n.useState = function(e) {
1497
- return P().useState(e);
1498
- }, n.useSyncExternalStore = function(e, s, c) {
1499
- return P().useSyncExternalStore(
1524
+ return M().useState(e);
1525
+ }, n.useSyncExternalStore = function(e, s, f) {
1526
+ return M().useSyncExternalStore(
1500
1527
  e,
1501
1528
  s,
1502
- c
1529
+ f
1503
1530
  );
1504
1531
  }, n.useTransition = function() {
1505
- return P().useTransition();
1506
- }, n.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1532
+ return M().useTransition();
1533
+ }, n.version = "19.3.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1507
1534
  })();
1508
1535
  })(de, de.exports)), de.exports;
1509
1536
  }
1510
- var ot;
1511
- function Pt() {
1512
- return ot || (ot = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ct() : Ae.exports = Mt()), Ae.exports;
1537
+ var ut;
1538
+ function It() {
1539
+ return ut || (ut = 1, process.env.NODE_ENV === "production" ? Re.exports = Nt() : Re.exports = Lt()), Re.exports;
1513
1540
  }
1514
- Pt();
1515
- let Pe = null, ke = null;
1516
- const Nt = /* @__PURE__ */ new Set();
1517
- function Lt() {
1518
- return ke || (ke = import("./markdown-assets/protoToJsonSchema-CBPWaboT.js").then((t) => {
1519
- Pe = t.protoToJsonSchema, Nt.forEach((n) => n());
1520
- })), ke;
1541
+ It();
1542
+ let Ie = null, Pe = null;
1543
+ const Ut = /* @__PURE__ */ new Set();
1544
+ function Yt() {
1545
+ return Pe || (Pe = import("./markdown-assets/protoToJsonSchema-CWtEPUyE.js").then((t) => {
1546
+ Ie = t.protoToJsonSchema, Ut.forEach((n) => n());
1547
+ })), Pe;
1521
1548
  }
1522
- function Ut() {
1523
- return Pe || Lt(), Pe;
1549
+ function Ht() {
1550
+ return Ie || Yt(), Ie;
1524
1551
  }
1525
- const It = "x-parser-original-payload", Yt = "x-lib-conversion-error", Ht = /^application\/vnd\.apache\.avro(\+(json|yaml))?(\s*;\s*version=.+)?$/i, Dt = /^application\/vnd\.google\.protobuf(\s*;\s*version=.+)?$/i;
1526
- function qt(t) {
1527
- return typeof t == "string" && Ht.test(t);
1528
- }
1529
- function zt(t) {
1552
+ const qt = "x-parser-original-payload", zt = "x-lib-conversion-error", Dt = /^application\/vnd\.apache\.avro(\+(json|yaml))?(\s*;\s*version=.+)?$/i, Bt = /^application\/vnd\.google\.protobuf(\s*;\s*version=.+)?$/i;
1553
+ function Wt(t) {
1530
1554
  return typeof t == "string" && Dt.test(t);
1531
1555
  }
1532
- function at(t) {
1533
- return Z(t) && typeof t.schemaFormat == "string" && "schema" in t;
1556
+ function xt(t) {
1557
+ return typeof t == "string" && Bt.test(t);
1534
1558
  }
1535
- const Bt = [
1559
+ function lt(t) {
1560
+ return V(t) && typeof t.schemaFormat == "string" && "schema" in t;
1561
+ }
1562
+ const Gt = [
1536
1563
  "properties",
1537
1564
  "oneOf",
1538
1565
  "anyOf",
@@ -1542,7 +1569,7 @@ const Bt = [
1542
1569
  "additionalProperties",
1543
1570
  "patternProperties",
1544
1571
  "x-parser-schema-id"
1545
- ], Wt = /* @__PURE__ */ new Set([
1572
+ ], Ft = /* @__PURE__ */ new Set([
1546
1573
  "record",
1547
1574
  "enum",
1548
1575
  "fixed",
@@ -1554,66 +1581,66 @@ const Bt = [
1554
1581
  "bytes",
1555
1582
  "uuid"
1556
1583
  ]);
1557
- function xt(t) {
1558
- return typeof t == "string" || Array.isArray(t) ? !0 : Z(t) ? typeof t.type == "string" && Wt.has(t.type) || Array.isArray(t.fields) || Array.isArray(t.symbols) ? !0 : !Bt.some((n) => n in t) : !1;
1584
+ function Kt(t) {
1585
+ return typeof t == "string" || Array.isArray(t) ? !0 : V(t) ? typeof t.type == "string" && Ft.has(t.type) || Array.isArray(t.fields) || Array.isArray(t.symbols) ? !0 : !Gt.some((n) => n in t) : !1;
1559
1586
  }
1560
- function Gt(t, n) {
1587
+ function Qt(t, n) {
1561
1588
  let r = t;
1562
- if (n && Z(r) && typeof r.$ref == "string") {
1563
- const l = n(r.$ref);
1564
- l !== void 0 && (r = l);
1589
+ if (n && V(r) && typeof r.$ref == "string") {
1590
+ const p = n(r.$ref);
1591
+ p !== void 0 && (r = p);
1565
1592
  }
1566
- const i = Ft(r), u = i.schema.description;
1567
- if (typeof u == "string")
1568
- return { ...i, description: u };
1569
- const a = at(r) ? r.description : void 0;
1570
- return typeof a == "string" ? { ...i, description: a } : i;
1593
+ const u = Xt(r), i = u.schema.description;
1594
+ if (typeof i == "string")
1595
+ return { ...u, description: i };
1596
+ const a = lt(r) ? r.description : void 0;
1597
+ return typeof a == "string" ? { ...u, description: a } : u;
1571
1598
  }
1572
- function Ft(t) {
1573
- var l;
1574
- if (!at(t))
1575
- return { schema: V(t) ?? t };
1576
- const { schemaFormat: n } = t, r = t.schema, i = t[It], u = (l = V(r)) == null ? void 0 : l[Yt];
1577
- if (typeof u == "string")
1599
+ function Xt(t) {
1600
+ var p;
1601
+ if (!lt(t))
1602
+ return { schema: X(t) ?? t };
1603
+ const { schemaFormat: n } = t, r = t.schema, u = t[qt], i = (p = X(r)) == null ? void 0 : p[zt];
1604
+ if (typeof i == "string")
1578
1605
  return {
1579
- schema: V(i) ?? {},
1606
+ schema: X(u) ?? {},
1580
1607
  schemaFormat: n,
1581
- originalSchema: i,
1582
- conversionError: u
1608
+ originalSchema: u,
1609
+ conversionError: i
1583
1610
  };
1584
- if (i !== void 0)
1611
+ if (u !== void 0)
1585
1612
  return {
1586
- schema: V(r) ?? {},
1613
+ schema: X(r) ?? {},
1587
1614
  schemaFormat: n,
1588
- originalSchema: i
1615
+ originalSchema: u
1589
1616
  };
1590
- if (qt(n) && xt(r)) {
1591
- const m = jt(r);
1592
- if (m.length > 0)
1617
+ if (Wt(n) && Kt(r)) {
1618
+ const y = Mt(r);
1619
+ if (y.length > 0)
1593
1620
  return {
1594
- schema: V(r) ?? {},
1621
+ schema: X(r) ?? {},
1595
1622
  schemaFormat: n,
1596
1623
  originalSchema: r,
1597
- conversionError: m[0]
1624
+ conversionError: y[0]
1598
1625
  };
1599
1626
  try {
1600
1627
  return {
1601
- schema: Ot(r),
1628
+ schema: Ct(r),
1602
1629
  schemaFormat: n,
1603
1630
  originalSchema: r
1604
1631
  };
1605
1632
  } catch (h) {
1606
1633
  return {
1607
- schema: V(r) ?? {},
1634
+ schema: X(r) ?? {},
1608
1635
  schemaFormat: n,
1609
1636
  originalSchema: r,
1610
1637
  conversionError: h instanceof Error ? h.message : "Failed to convert Avro schema"
1611
1638
  };
1612
1639
  }
1613
1640
  }
1614
- if (zt(n) && typeof r == "string") {
1615
- const m = Ut();
1616
- if (!m)
1641
+ if (xt(n) && typeof r == "string") {
1642
+ const y = Ht();
1643
+ if (!y)
1617
1644
  return {
1618
1645
  schema: {},
1619
1646
  schemaFormat: n,
@@ -1622,7 +1649,7 @@ function Ft(t) {
1622
1649
  };
1623
1650
  try {
1624
1651
  return {
1625
- schema: m(r),
1652
+ schema: y(r),
1626
1653
  schemaFormat: n,
1627
1654
  originalSchema: r
1628
1655
  };
@@ -1637,80 +1664,80 @@ function Ft(t) {
1637
1664
  };
1638
1665
  }
1639
1666
  }
1640
- const a = V(r);
1667
+ const a = X(r);
1641
1668
  return a ? { schema: a, schemaFormat: n } : { schema: {}, schemaFormat: n, originalSchema: r };
1642
1669
  }
1643
- const Kt = (t) => typeof t == "object" && t !== null;
1644
- function Qt(t) {
1670
+ const Vt = (t) => typeof t == "object" && t !== null;
1671
+ function Zt(t) {
1645
1672
  try {
1646
1673
  return decodeURIComponent(t).replace(/~1/g, "/").replace(/~0/g, "~");
1647
1674
  } catch {
1648
1675
  return;
1649
1676
  }
1650
1677
  }
1651
- function Xt(t, n) {
1678
+ function Jt(t, n) {
1652
1679
  if (n === "#") return t;
1653
1680
  if (!n.startsWith("#/")) return;
1654
1681
  let r = t;
1655
- for (const i of n.slice(2).split("/")) {
1656
- if (!Kt(r)) return;
1657
- const u = Qt(i);
1658
- if (u === void 0 || (r = r[u], r === void 0)) return;
1682
+ for (const u of n.slice(2).split("/")) {
1683
+ if (!Vt(r)) return;
1684
+ const i = Zt(u);
1685
+ if (i === void 0 || (r = r[i], r === void 0)) return;
1659
1686
  }
1660
1687
  return r;
1661
1688
  }
1662
- function Re(t) {
1689
+ function ke(t) {
1663
1690
  const n = /* @__PURE__ */ new Map();
1664
1691
  return (r) => {
1665
1692
  if (n.has(r)) return n.get(r);
1666
- const i = Xt(t, r);
1667
- return n.set(r, i), i;
1693
+ const u = Jt(t, r);
1694
+ return n.set(r, u), u;
1668
1695
  };
1669
1696
  }
1670
- const L = (t, n) => `${"#".repeat(t)} ${n}`, d = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), pe = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Vt = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
1671
- function be(t, n, r = Vt) {
1697
+ const L = (t, n) => `${"#".repeat(t)} ${n}`, d = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), pe = (t) => typeof t == "object" && t !== null && !Array.isArray(t), en = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
1698
+ function $e(t, n, r = en) {
1672
1699
  if (t === null || typeof t != "object") return t;
1673
1700
  if (r.objects.has(t) || pe(t) && typeof t.$ref == "string" && r.refs.has(t.$ref)) {
1674
1701
  const a = pe(t) ? t["x-parser-schema-id"] : void 0;
1675
1702
  return typeof a == "string" ? { $ref: `#/components/schemas/${a} (circular)` } : "[circular reference]";
1676
1703
  }
1677
- const i = {
1704
+ const u = {
1678
1705
  objects: new Set(r.objects).add(t),
1679
1706
  refs: pe(t) && typeof t.$ref == "string" ? new Set(r.refs).add(t.$ref) : r.refs
1680
1707
  };
1681
1708
  if (Array.isArray(t))
1682
- return t.map((a) => be(a, n, i));
1709
+ return t.map((a) => $e(a, n, u));
1683
1710
  if (pe(t) && typeof t.$ref == "string") {
1684
1711
  const a = n == null ? void 0 : n(t.$ref);
1685
- return pe(a) || Array.isArray(a) ? be(a, n, i) : { $ref: t.$ref };
1712
+ return pe(a) || Array.isArray(a) ? $e(a, n, u) : { $ref: t.$ref };
1686
1713
  }
1687
- const u = {};
1688
- for (const [a, l] of Object.entries(t))
1689
- u[a] = be(l, n, i);
1690
- return u;
1714
+ const i = {};
1715
+ for (const [a, p] of Object.entries(t))
1716
+ i[a] = $e(p, n, u);
1717
+ return i;
1691
1718
  }
1692
- function $e(t, n, r) {
1719
+ function Se(t, n, r) {
1693
1720
  if (!n) return "";
1694
- const i = be(n, r);
1721
+ const u = $e(n, r);
1695
1722
  return `${L(4, `\`${d(t)}\``)}
1696
1723
 
1697
1724
  \`\`\`json
1698
- ${JSON.stringify(i, null, 2)}
1725
+ ${JSON.stringify(u, null, 2)}
1699
1726
  \`\`\``;
1700
1727
  }
1701
1728
  function me(t, n, r) {
1702
1729
  if (!n || typeof n == "boolean") return "";
1703
- const { schema: i, description: u, conversionError: a, pendingConversion: l } = Gt(n, r);
1704
- if (l) return `${L(4, `\`${d(t)}\``)}
1730
+ const { schema: u, description: i, conversionError: a, pendingConversion: p } = Qt(n, r);
1731
+ if (p) return `${L(4, `\`${d(t)}\``)}
1705
1732
 
1706
1733
  _(schema conversion still in progress)_`;
1707
1734
  if (a) return `${L(4, `\`${d(t)}\``)}
1708
1735
 
1709
1736
  _(could not convert schema: ${d(a)})_`;
1710
- const m = u && !i.description ? { ...i, description: u } : i;
1711
- return $e(t, m, r);
1737
+ const y = i && !u.description ? { ...u, description: i } : u;
1738
+ return Se(t, y, r);
1712
1739
  }
1713
- function ct(t) {
1740
+ function pt(t) {
1714
1741
  var n;
1715
1742
  switch (t.type) {
1716
1743
  case "apiKey":
@@ -1742,57 +1769,57 @@ function ct(t) {
1742
1769
  return d(t.type);
1743
1770
  }
1744
1771
  }
1745
- function Zt(t) {
1772
+ function tn(t) {
1746
1773
  if (!(t != null && t.length)) return "";
1747
1774
  const n = [];
1748
1775
  for (const r of t)
1749
- if (r != null && r.type && (n.push(`- **${ct(r)}**`), r.description && n.push(` ${d(r.description)}`), r.type === "openIdConnect" && r.openIdConnectUrl && n.push(` - OpenID Connect URL: \`${d(r.openIdConnectUrl)}\``), r.type === "oauth2"))
1750
- for (const [i, u] of Object.entries(r.flows ?? {})) {
1751
- n.push(` - Flow \`${d(i)}\`:`), u.authorizationUrl && n.push(` - Authorization URL: \`${d(u.authorizationUrl)}\``), u.tokenUrl && n.push(` - Token URL: \`${d(u.tokenUrl)}\``), u.refreshUrl && n.push(` - Refresh URL: \`${d(u.refreshUrl)}\``);
1752
- const a = Object.keys(u.availableScopes ?? u.scopes ?? {});
1753
- a.length && n.push(` - Available scopes: ${a.map((l) => `\`${d(l)}\``).join(", ")}`);
1776
+ if (r != null && r.type && (n.push(`- **${pt(r)}**`), r.description && n.push(` ${d(r.description)}`), r.type === "openIdConnect" && r.openIdConnectUrl && n.push(` - OpenID Connect URL: \`${d(r.openIdConnectUrl)}\``), r.type === "oauth2"))
1777
+ for (const [u, i] of Object.entries(r.flows ?? {})) {
1778
+ n.push(` - Flow \`${d(u)}\`:`), i.authorizationUrl && n.push(` - Authorization URL: \`${d(i.authorizationUrl)}\``), i.tokenUrl && n.push(` - Token URL: \`${d(i.tokenUrl)}\``), i.refreshUrl && n.push(` - Refresh URL: \`${d(i.refreshUrl)}\``);
1779
+ const a = Object.keys(i.availableScopes ?? i.scopes ?? {});
1780
+ a.length && n.push(` - Available scopes: ${a.map((p) => `\`${d(p)}\``).join(", ")}`);
1754
1781
  }
1755
1782
  return n.length ? ["**Authorization:**", n.join(`
1756
1783
  `)].join(`
1757
1784
 
1758
1785
  `) : "";
1759
1786
  }
1760
- function ft(t) {
1787
+ function dt(t) {
1761
1788
  const n = [], { info: r } = t;
1762
1789
  n.push(L(1, d(r.title)));
1763
- const i = [`**Version:** ${d(r.version)}`];
1764
- if (r.license && i.push(`**License:** ${d(r.license.name)}${r.license.url ? ` (${d(r.license.url)})` : ""}`), r.contact) {
1765
- const u = [r.contact.name, r.contact.email].filter(Boolean).map(d).join(" ");
1766
- u && i.push(`**Contact:** ${u}`);
1790
+ const u = [`**Version:** ${d(r.version)}`];
1791
+ if (r.license && u.push(`**License:** ${d(r.license.name)}${r.license.url ? ` (${d(r.license.url)})` : ""}`), r.contact) {
1792
+ const i = [r.contact.name, r.contact.email].filter(Boolean).map(d).join(" ");
1793
+ i && u.push(`**Contact:** ${i}`);
1767
1794
  }
1768
- if (n.push(i.join(`
1795
+ if (n.push(u.join(`
1769
1796
  `)), r.description && n.push(d(r.description)), t.servers && Object.keys(t.servers).length) {
1770
- const u = [L(2, "Servers")];
1771
- for (const [a, l] of Object.entries(t.servers)) {
1772
- u.push(L(3, d(a)));
1773
- const m = [`**Host:** \`${d(l.host)}${l.pathname ? d(l.pathname) : ""}\``];
1774
- m.push(`**Protocol:** ${d(l.protocol)}${l.protocolVersion ? ` ${d(l.protocolVersion)}` : ""}`), l.description && m.push(d(l.description)), u.push(m.join(`
1797
+ const i = [L(2, "Servers")];
1798
+ for (const [a, p] of Object.entries(t.servers)) {
1799
+ i.push(L(3, d(a)));
1800
+ const y = [`**Host:** \`${d(p.host)}${p.pathname ? d(p.pathname) : ""}\``];
1801
+ y.push(`**Protocol:** ${d(p.protocol)}${p.protocolVersion ? ` ${d(p.protocolVersion)}` : ""}`), p.description && y.push(d(p.description)), i.push(y.join(`
1775
1802
  `));
1776
- const h = Zt(l.security);
1777
- h && u.push(h);
1803
+ const h = tn(p.security);
1804
+ h && i.push(h);
1778
1805
  }
1779
- n.push(u.join(`
1806
+ n.push(i.join(`
1780
1807
 
1781
1808
  `));
1782
1809
  }
1783
1810
  return n;
1784
1811
  }
1785
- function Jt(t, n = Re(t)) {
1786
- var a, l, m;
1787
- const r = ft(t);
1812
+ function nn(t, n = ke(t)) {
1813
+ var a, p, y;
1814
+ const r = dt(t);
1788
1815
  if (t.operations && Object.keys(t.operations).length) {
1789
1816
  const h = [L(2, "Operations")];
1790
- for (const [A, g] of Object.entries(t.operations)) {
1791
- const S = g.channel;
1792
- h.push(L(3, `${d((a = g.action) == null ? void 0 : a.toUpperCase())} \`${d(A)}\``));
1817
+ for (const [R, E] of Object.entries(t.operations)) {
1818
+ const $ = E.channel;
1819
+ h.push(L(3, `${d((a = E.action) == null ? void 0 : a.toUpperCase())} \`${d(R)}\``));
1793
1820
  const w = [];
1794
- S != null && S.address && w.push(`**Channel:** \`${d(S.address)}\``), g.summary && w.push(d(g.summary)), g.description && w.push(d(g.description));
1795
- const N = g.messages ?? [];
1821
+ $ != null && $.address && w.push(`**Channel:** \`${d($.address)}\``), E.summary && w.push(d(E.summary)), E.description && w.push(d(E.description));
1822
+ const N = E.messages ?? [];
1796
1823
  N.length && w.push(`**Messages:** ${N.map((U) => `\`${d(U.name ?? U.title ?? "message")}\``).join(", ")}`), h.push(w.join(`
1797
1824
 
1798
1825
  `));
@@ -1801,25 +1828,25 @@ function Jt(t, n = Re(t)) {
1801
1828
 
1802
1829
  `));
1803
1830
  }
1804
- const i = (l = t.components) == null ? void 0 : l.messages;
1805
- if (i && Object.keys(i).length) {
1831
+ const u = (p = t.components) == null ? void 0 : p.messages;
1832
+ if (u && Object.keys(u).length) {
1806
1833
  const h = [L(2, "Messages")];
1807
- for (const [A, g] of Object.entries(i)) {
1808
- h.push(L(3, d(g.title ?? g.name ?? A)));
1809
- const S = [];
1810
- g.summary && S.push(d(g.summary)), g.description && S.push(d(g.description)), g.contentType && S.push(`**Content-Type:** \`${d(g.contentType)}\``), h.push(S.join(`
1834
+ for (const [R, E] of Object.entries(u)) {
1835
+ h.push(L(3, d(E.title ?? E.name ?? R)));
1836
+ const $ = [];
1837
+ E.summary && $.push(d(E.summary)), E.description && $.push(d(E.description)), E.contentType && $.push(`**Content-Type:** \`${d(E.contentType)}\``), h.push($.join(`
1811
1838
 
1812
- `)), g.payload && h.push(me("payload", g.payload, n)), g.headers && h.push(me("headers", g.headers, n));
1839
+ `)), E.payload && h.push(me("payload", E.payload, n)), E.headers && h.push(me("headers", E.headers, n));
1813
1840
  }
1814
1841
  r.push(h.join(`
1815
1842
 
1816
1843
  `));
1817
1844
  }
1818
- const u = (m = t.components) == null ? void 0 : m.schemas;
1819
- if (u && Object.keys(u).length) {
1845
+ const i = (y = t.components) == null ? void 0 : y.schemas;
1846
+ if (i && Object.keys(i).length) {
1820
1847
  const h = [L(2, "Schemas")];
1821
- for (const [A, g] of Object.entries(u))
1822
- h.push(me(A, g, n));
1848
+ for (const [R, E] of Object.entries(i))
1849
+ h.push(me(R, E, n));
1823
1850
  r.push(h.join(`
1824
1851
 
1825
1852
  `));
@@ -1828,141 +1855,141 @@ function Jt(t, n = Re(t)) {
1828
1855
 
1829
1856
  `);
1830
1857
  }
1831
- function en(t, n, r) {
1832
- var m;
1833
- const i = n.channel, u = [L(3, `${d((m = n.action) == null ? void 0 : m.toUpperCase())} \`${d(t)}\``)], a = [];
1834
- i != null && i.address && a.push(`**Channel:** \`${d(i.address)}\``), n.summary && a.push(d(n.summary)), n.description && a.push(d(n.description)), u.push(a.join(`
1858
+ function rn(t, n, r) {
1859
+ var y;
1860
+ const u = n.channel, i = [L(3, `${d((y = n.action) == null ? void 0 : y.toUpperCase())} \`${d(t)}\``)], a = [];
1861
+ u != null && u.address && a.push(`**Channel:** \`${d(u.address)}\``), n.summary && a.push(d(n.summary)), n.description && a.push(d(n.description)), i.push(a.join(`
1835
1862
 
1836
1863
  `));
1837
- const l = n.messages ?? [];
1838
- for (const h of l) {
1839
- const A = [L(4, d(h.title ?? h.name ?? "Message"))], g = [];
1840
- h.summary && g.push(d(h.summary)), h.description && g.push(d(h.description)), h.contentType && g.push(`**Content-Type:** \`${d(h.contentType)}\``), g.length && A.push(g.join(`
1864
+ const p = n.messages ?? [];
1865
+ for (const h of p) {
1866
+ const R = [L(4, d(h.title ?? h.name ?? "Message"))], E = [];
1867
+ h.summary && E.push(d(h.summary)), h.description && E.push(d(h.description)), h.contentType && E.push(`**Content-Type:** \`${d(h.contentType)}\``), E.length && R.push(E.join(`
1841
1868
 
1842
- `)), u.push(A.join(`
1869
+ `)), i.push(R.join(`
1843
1870
 
1844
- `)), h.payload && u.push(me("payload", h.payload, r)), h.headers && u.push(me("headers", h.headers, r));
1871
+ `)), h.payload && i.push(me("payload", h.payload, r)), h.headers && i.push(me("headers", h.headers, r));
1845
1872
  }
1846
- return u.filter(Boolean).join(`
1873
+ return i.filter(Boolean).join(`
1847
1874
 
1848
1875
  `);
1849
1876
  }
1850
- function tn(t, n, r = Re(t)) {
1877
+ function on(t, n, r = ke(t)) {
1851
1878
  var a;
1852
- const i = (a = t.operations) == null ? void 0 : a[n];
1853
- if (!i) return "";
1854
- const u = ft(t);
1855
- return u.push(en(n, i, r)), u.filter(Boolean).join(`
1879
+ const u = (a = t.operations) == null ? void 0 : a[n];
1880
+ if (!u) return "";
1881
+ const i = dt(t);
1882
+ return i.push(rn(n, u, r)), i.filter(Boolean).join(`
1856
1883
 
1857
1884
  `);
1858
1885
  }
1859
- function nn(t, n) {
1886
+ function sn(t, n) {
1860
1887
  if (!t.length || !n) return "";
1861
1888
  const r = /* @__PURE__ */ new Map();
1862
1889
  for (const a of t)
1863
- for (const [l, m] of Object.entries(a)) {
1864
- if (!m.length) continue;
1865
- const h = r.get(l) ?? [];
1866
- r.set(l, Array.from(/* @__PURE__ */ new Set([...h, ...m])));
1890
+ for (const [p, y] of Object.entries(a)) {
1891
+ if (!y.length) continue;
1892
+ const h = r.get(p) ?? [];
1893
+ r.set(p, Array.from(/* @__PURE__ */ new Set([...h, ...y])));
1867
1894
  }
1868
- const i = Array.from(new Set(t.flatMap((a) => Object.keys(a)))), u = [];
1869
- for (const a of i) {
1870
- const l = n[a];
1871
- if (!l) continue;
1872
- const m = r.get(a);
1873
- if (u.push(`- **${ct(l)}** (\`${d(a)}\`)`), l.description && u.push(` ${d(l.description)}`), l.type === "openIdConnect" && l.openIdConnectUrl && u.push(` - OpenID Connect URL: \`${d(l.openIdConnectUrl)}\``), l.type === "oauth2")
1874
- for (const [h, A] of Object.entries(l.flows ?? {})) {
1875
- u.push(` - Flow \`${d(h)}\`:`), A.authorizationUrl && u.push(` - Authorization URL: \`${d(A.authorizationUrl)}\``), A.tokenUrl && u.push(` - Token URL: \`${d(A.tokenUrl)}\``), A.refreshUrl && u.push(` - Refresh URL: \`${d(A.refreshUrl)}\``);
1876
- const g = m != null && m.length ? m : Object.keys(A.scopes ?? {});
1877
- g.length && u.push(
1878
- ` - ${m != null && m.length ? "Required scopes" : "Scopes"}: ${g.map((S) => `\`${d(S)}\``).join(", ")}`
1895
+ const u = Array.from(new Set(t.flatMap((a) => Object.keys(a)))), i = [];
1896
+ for (const a of u) {
1897
+ const p = n[a];
1898
+ if (!p) continue;
1899
+ const y = r.get(a);
1900
+ if (i.push(`- **${pt(p)}** (\`${d(a)}\`)`), p.description && i.push(` ${d(p.description)}`), p.type === "openIdConnect" && p.openIdConnectUrl && i.push(` - OpenID Connect URL: \`${d(p.openIdConnectUrl)}\``), p.type === "oauth2")
1901
+ for (const [h, R] of Object.entries(p.flows ?? {})) {
1902
+ i.push(` - Flow \`${d(h)}\`:`), R.authorizationUrl && i.push(` - Authorization URL: \`${d(R.authorizationUrl)}\``), R.tokenUrl && i.push(` - Token URL: \`${d(R.tokenUrl)}\``), R.refreshUrl && i.push(` - Refresh URL: \`${d(R.refreshUrl)}\``);
1903
+ const E = y != null && y.length ? y : Object.keys(R.scopes ?? {});
1904
+ E.length && i.push(
1905
+ ` - ${y != null && y.length ? "Required scopes" : "Scopes"}: ${E.map(($) => `\`${d($)}\``).join(", ")}`
1879
1906
  );
1880
1907
  }
1881
- else m != null && m.length && u.push(` - Required scopes: ${m.map((h) => `\`${d(h)}\``).join(", ")}`);
1908
+ else y != null && y.length && i.push(` - Required scopes: ${y.map((h) => `\`${d(h)}\``).join(", ")}`);
1882
1909
  }
1883
- return u.length ? ["**Authorization:**", u.join(`
1910
+ return i.length ? ["**Authorization:**", i.join(`
1884
1911
  `)].join(`
1885
1912
 
1886
1913
  `) : "";
1887
1914
  }
1888
- function lt(t, n, r, i, u, a) {
1915
+ function mt(t, n, r, u, i, a) {
1889
1916
  var w;
1890
- const l = [L(3, `${t.toUpperCase()} \`${d(n)}\``)], m = [];
1891
- r.summary && m.push(d(r.summary)), r.description && m.push(d(r.description)), r.deprecated && m.push("**Deprecated**");
1892
- const h = r.security ?? a ?? [], A = nn(h, u);
1893
- A && m.push(A);
1917
+ const p = [L(3, `${t.toUpperCase()} \`${d(n)}\``)], y = [];
1918
+ r.summary && y.push(d(r.summary)), r.description && y.push(d(r.description)), r.deprecated && y.push("**Deprecated**");
1919
+ const h = r.security ?? a ?? [], R = sn(h, i);
1920
+ R && y.push(R);
1894
1921
  for (const N of ["path", "query", "header", "cookie"]) {
1895
1922
  const U = (r.parameters ?? []).filter((Y) => Y.in === N);
1896
1923
  if (U.length) {
1897
- m.push(`**${N[0].toUpperCase()}${N.slice(1)} Parameters:**`);
1924
+ y.push(`**${N[0].toUpperCase()}${N.slice(1)} Parameters:**`);
1898
1925
  for (const Y of U) {
1899
- const q = Y.schema;
1900
- m.push(
1901
- `- \`${d(Y.name)}\`${Y.required ? " (required)" : ""}${q != null && q.type ? ` — ${d(q.type)}` : ""}${Y.description ? `: ${d(Y.description)}` : ""}`
1926
+ const D = Y.schema;
1927
+ y.push(
1928
+ `- \`${d(Y.name)}\`${Y.required ? " (required)" : ""}${D != null && D.type ? ` — ${d(D.type)}` : ""}${Y.description ? `: ${d(Y.description)}` : ""}`
1902
1929
  );
1903
1930
  }
1904
1931
  }
1905
1932
  }
1906
- l.push(m.join(`
1933
+ p.push(y.join(`
1907
1934
 
1908
1935
  `));
1909
- const g = ((w = r.requestBody) == null ? void 0 : w.content) ?? {};
1910
- for (const [N, U] of Object.entries(g))
1911
- l.push(
1912
- [`**Request Body** (\`${d(N)}\`)`, $e("body", U.schema, i)].join(
1936
+ const E = ((w = r.requestBody) == null ? void 0 : w.content) ?? {};
1937
+ for (const [N, U] of Object.entries(E))
1938
+ p.push(
1939
+ [`**Request Body** (\`${d(N)}\`)`, Se("body", U.schema, u)].join(
1913
1940
  `
1914
1941
 
1915
1942
  `
1916
1943
  )
1917
1944
  );
1918
- const S = r.responses ?? {};
1919
- for (const [N, U] of Object.entries(S)) {
1945
+ const $ = r.responses ?? {};
1946
+ for (const [N, U] of Object.entries($)) {
1920
1947
  const Y = [L(4, `${N}${U.description ? `: ${d(U.description)}` : ""}`)];
1921
- for (const [q, B] of Object.entries(U.content ?? {}))
1948
+ for (const [D, Z] of Object.entries(U.content ?? {}))
1922
1949
  Y.push(
1923
- [`**Body** (\`${d(q)}\`)`, $e("body", B.schema, i)].join(
1950
+ [`**Body** (\`${d(D)}\`)`, Se("body", Z.schema, u)].join(
1924
1951
  `
1925
1952
 
1926
1953
  `
1927
1954
  )
1928
1955
  );
1929
- l.push(Y.join(`
1956
+ p.push(Y.join(`
1930
1957
 
1931
1958
  `));
1932
1959
  }
1933
- return l.join(`
1960
+ return p.join(`
1934
1961
 
1935
1962
  `);
1936
1963
  }
1937
- function rn(t, n = Re(t)) {
1938
- var l, m, h, A, g;
1939
- const r = [], { info: i } = t;
1940
- if (r.push(L(1, d(i.title))), r.push(`**Version:** ${d(i.version)}`), i.description && r.push(d(i.description)), (l = t.servers) != null && l.length) {
1941
- const S = [L(2, "Servers")];
1964
+ function un(t, n = ke(t)) {
1965
+ var p, y, h, R, E;
1966
+ const r = [], { info: u } = t;
1967
+ if (r.push(L(1, d(u.title))), r.push(`**Version:** ${d(u.version)}`), u.description && r.push(d(u.description)), (p = t.servers) != null && p.length) {
1968
+ const $ = [L(2, "Servers")];
1942
1969
  for (const w of t.servers)
1943
- S.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
1944
- r.push(S.join(`
1970
+ $.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
1971
+ r.push($.join(`
1945
1972
  `));
1946
1973
  }
1947
- const u = t.paths ? it(t.paths) : [];
1948
- if (u.length) {
1949
- const S = [L(2, "Endpoints")];
1950
- for (const { method: w, path: N } of u) {
1951
- const U = (h = (m = t.paths) == null ? void 0 : m[N]) == null ? void 0 : h[w];
1952
- U && S.push(
1953
- lt(w, N, U, n, (A = t.components) == null ? void 0 : A.securitySchemes, t.security)
1974
+ const i = t.paths ? ft(t.paths) : [];
1975
+ if (i.length) {
1976
+ const $ = [L(2, "Endpoints")];
1977
+ for (const { method: w, path: N } of i) {
1978
+ const U = (h = (y = t.paths) == null ? void 0 : y[N]) == null ? void 0 : h[w];
1979
+ U && $.push(
1980
+ mt(w, N, U, n, (R = t.components) == null ? void 0 : R.securitySchemes, t.security)
1954
1981
  );
1955
1982
  }
1956
- r.push(S.join(`
1983
+ r.push($.join(`
1957
1984
 
1958
1985
  `));
1959
1986
  }
1960
- const a = (g = t.components) == null ? void 0 : g.schemas;
1987
+ const a = (E = t.components) == null ? void 0 : E.schemas;
1961
1988
  if (a && Object.keys(a).length) {
1962
- const S = [L(2, "Schemas")];
1989
+ const $ = [L(2, "Schemas")];
1963
1990
  for (const [w, N] of Object.entries(a))
1964
- S.push($e(w, N, n));
1965
- r.push(S.join(`
1991
+ $.push(Se(w, N, n));
1992
+ r.push($.join(`
1966
1993
 
1967
1994
  `));
1968
1995
  }
@@ -1970,23 +1997,23 @@ function rn(t, n = Re(t)) {
1970
1997
 
1971
1998
  `);
1972
1999
  }
1973
- function on(t, n, r, i = Re(t)) {
1974
- var m, h, A, g;
1975
- const u = (h = (m = t.paths) == null ? void 0 : m[r]) == null ? void 0 : h[n];
1976
- if (!u) return "";
1977
- const a = [], { info: l } = t;
1978
- if (a.push(L(1, d(l.title))), a.push(`**Version:** ${d(l.version)}`), l.description && a.push(d(l.description)), (A = t.servers) != null && A.length) {
1979
- const S = [L(2, "Servers")];
2000
+ function an(t, n, r, u = ke(t)) {
2001
+ var y, h, R, E;
2002
+ const i = (h = (y = t.paths) == null ? void 0 : y[r]) == null ? void 0 : h[n];
2003
+ if (!i) return "";
2004
+ const a = [], { info: p } = t;
2005
+ if (a.push(L(1, d(p.title))), a.push(`**Version:** ${d(p.version)}`), p.description && a.push(d(p.description)), (R = t.servers) != null && R.length) {
2006
+ const $ = [L(2, "Servers")];
1980
2007
  for (const w of t.servers)
1981
- S.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
1982
- a.push(S.join(`
2008
+ $.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
2009
+ a.push($.join(`
1983
2010
  `));
1984
2011
  }
1985
- return a.push(lt(n, r, u, i, (g = t.components) == null ? void 0 : g.securitySchemes, t.security)), a.filter(Boolean).join(`
2012
+ return a.push(mt(n, r, i, u, (E = t.components) == null ? void 0 : E.securitySchemes, t.security)), a.filter(Boolean).join(`
1986
2013
 
1987
2014
  `);
1988
2015
  }
1989
- function pt(t) {
2016
+ function yt(t) {
1990
2017
  return {
1991
2018
  ...t,
1992
2019
  title: (n) => t.title(n),
@@ -1995,11 +2022,11 @@ function pt(t) {
1995
2022
  toMarkdown: (n, r) => t.toMarkdown(n, r)
1996
2023
  };
1997
2024
  }
1998
- const se = (t) => {
2025
+ const ie = (t) => {
1999
2026
  var r;
2000
2027
  return typeof t != "string" ? void 0 : ((r = t.trim().split(`
2001
2028
  `)[0]) == null ? void 0 : r.trim()) || void 0;
2002
- }, sn = (t) => ut.some((n) => n === t), un = pt({
2029
+ }, cn = (t) => ct.some((n) => n === t), fn = yt({
2003
2030
  name: "OpenAPI",
2004
2031
  matches: (t) => typeof t.openapi == "string" || typeof t.swagger == "string",
2005
2032
  sectionTitle: "Endpoints",
@@ -2009,25 +2036,25 @@ const se = (t) => {
2009
2036
  },
2010
2037
  summary: (t) => {
2011
2038
  var n;
2012
- return se((n = t.info) == null ? void 0 : n.description);
2039
+ return ie((n = t.info) == null ? void 0 : n.description);
2013
2040
  },
2014
- targets: (t) => it(t.paths ?? {}).map(({ key: n, method: r, path: i }) => {
2015
- var a, l;
2016
- const u = (l = (a = t.paths) == null ? void 0 : a[i]) == null ? void 0 : l[r];
2041
+ targets: (t) => ft(t.paths ?? {}).map(({ key: n, method: r, path: u }) => {
2042
+ var a, p;
2043
+ const i = (p = (a = t.paths) == null ? void 0 : a[u]) == null ? void 0 : p[r];
2017
2044
  return {
2018
2045
  key: n,
2019
- label: `${r.toUpperCase()} ${i}`,
2020
- summary: se(u == null ? void 0 : u.summary) ?? se(u == null ? void 0 : u.description),
2021
- target: { kind: "operation", document: t, method: r, path: i }
2046
+ label: `${r.toUpperCase()} ${u}`,
2047
+ summary: ie(i == null ? void 0 : i.summary) ?? ie(i == null ? void 0 : i.description),
2048
+ target: { kind: "operation", document: t, method: r, path: u }
2022
2049
  };
2023
2050
  }),
2024
2051
  toMarkdown: (t, n) => {
2025
- if (!n || n.kind === "document") return rn(t);
2026
- if (typeof n.path != "string" || !sn(n.method))
2052
+ if (!n || n.kind === "document") return un(t);
2053
+ if (typeof n.path != "string" || !cn(n.method))
2027
2054
  throw new Error("[apiuikit] An OpenAPI operation target requires a valid method and path.");
2028
- return on(t, n.method, n.path);
2055
+ return an(t, n.method, n.path);
2029
2056
  }
2030
- }), an = pt({
2057
+ }), ln = yt({
2031
2058
  name: "AsyncAPI",
2032
2059
  matches: (t) => typeof t.asyncapi == "string",
2033
2060
  sectionTitle: "Operations",
@@ -2037,77 +2064,77 @@ const se = (t) => {
2037
2064
  },
2038
2065
  summary: (t) => {
2039
2066
  var n;
2040
- return se((n = t.info) == null ? void 0 : n.description);
2067
+ return ie((n = t.info) == null ? void 0 : n.description);
2041
2068
  },
2042
2069
  targets: (t) => Object.entries(t.operations ?? {}).map(([n, r]) => ({
2043
2070
  key: n,
2044
2071
  label: r != null && r.action ? `${r.action.toUpperCase()} ${n}` : n,
2045
- summary: se(r == null ? void 0 : r.summary) ?? se(r == null ? void 0 : r.description),
2072
+ summary: ie(r == null ? void 0 : r.summary) ?? ie(r == null ? void 0 : r.description),
2046
2073
  target: { kind: "operation", document: t, id: n }
2047
2074
  })),
2048
2075
  toMarkdown: (t, n) => {
2049
- if (!n || n.kind === "document") return Jt(t);
2076
+ if (!n || n.kind === "document") return nn(t);
2050
2077
  if (typeof n.id != "string" || !n.id)
2051
2078
  throw new Error("[apiuikit] An AsyncAPI operation target requires an operation id.");
2052
- return tn(t, n.id);
2079
+ return on(t, n.id);
2053
2080
  }
2054
- }), st = [un, an];
2055
- function Ue(t) {
2056
- const n = typeof t == "object" && t !== null ? t : {}, r = st.find((i) => i.matches(n));
2081
+ }), at = [fn, ln];
2082
+ function He(t) {
2083
+ const n = typeof t == "object" && t !== null ? t : {}, r = at.find((u) => u.matches(n));
2057
2084
  if (!r)
2058
2085
  throw new Error(
2059
- `[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${st.map((i) => i.name).join(", ")}.`
2086
+ `[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${at.map((u) => u.name).join(", ")}.`
2060
2087
  );
2061
2088
  return r;
2062
2089
  }
2063
- function cn(t) {
2090
+ function pn(t) {
2064
2091
  return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
2065
2092
  }
2066
- function ln(t) {
2067
- return Ue(t).targets(t);
2093
+ function mn(t) {
2094
+ return He(t).targets(t);
2068
2095
  }
2069
- function pn(t, n) {
2070
- const r = Ue(t);
2096
+ function yn(t, n) {
2097
+ const r = He(t);
2071
2098
  if (n && n.document !== t)
2072
2099
  throw new Error("[apiuikit] Markdown target belongs to a different document.");
2073
2100
  return r.toMarkdown(t, n);
2074
2101
  }
2075
- function dn(t, n = {}) {
2076
- const r = Ue(t), { baseUrl: i, url: u, optional: a } = n, l = (i == null ? void 0 : i.replace(/\/+$/, "")) ?? "", h = u ?? ((w) => `${l}/${cn(w.key)}.md`), A = [`# ${n.title ?? r.title(t)}`], g = n.summary ?? r.summary(t);
2077
- g && A.push("", `> ${g}`);
2078
- const S = r.targets(t).map((w) => ({ entry: w, href: h(w) })).filter((w) => !!w.href);
2079
- if (S.length) {
2080
- A.push("", `## ${r.sectionTitle}`, "");
2081
- for (const { entry: w, href: N } of S)
2082
- A.push(`- [${w.label}](${N})${w.summary ? `: ${w.summary}` : ""}`);
2102
+ function hn(t, n = {}) {
2103
+ const r = He(t), { baseUrl: u, url: i, optional: a } = n, p = (u == null ? void 0 : u.replace(/\/+$/, "")) ?? "", h = i ?? ((w) => `${p}/${pn(w.key)}.md`), R = [`# ${n.title ?? r.title(t)}`], E = n.summary ?? r.summary(t);
2104
+ E && R.push("", `> ${E}`);
2105
+ const $ = r.targets(t).map((w) => ({ entry: w, href: h(w) })).filter((w) => !!w.href);
2106
+ if ($.length) {
2107
+ R.push("", `## ${r.sectionTitle}`, "");
2108
+ for (const { entry: w, href: N } of $)
2109
+ R.push(`- [${w.label}](${N})${w.summary ? `: ${w.summary}` : ""}`);
2083
2110
  }
2084
2111
  if (a != null && a.length) {
2085
- A.push("", "## Optional", "");
2112
+ R.push("", "## Optional", "");
2086
2113
  for (const w of a)
2087
- A.push(`- [${w.label}](${w.url})${w.description ? `: ${w.description}` : ""}`);
2114
+ R.push(`- [${w.label}](${w.url})${w.description ? `: ${w.description}` : ""}`);
2088
2115
  }
2089
- return A.push(""), A.join(`
2116
+ return R.push(""), R.join(`
2090
2117
  `);
2091
2118
  }
2092
- const fn = [
2119
+ const dn = [
2093
2120
  "The following is API documentation in Markdown.",
2094
2121
  "Use it to answer questions about this API and help write client code.",
2095
2122
  "Stick to what is documented below - do not invent endpoints, fields, or behavior."
2096
2123
  ];
2097
- function mn(t) {
2098
- return `${["> ## Agent Instructions", ...fn.map((r) => `> ${r}`)].join(`
2124
+ function gn(t) {
2125
+ return `${["> ## Agent Instructions", ...dn.map((r) => `> ${r}`)].join(`
2099
2126
  `)}
2100
2127
 
2101
2128
  ${t.trimStart()}`;
2102
2129
  }
2103
2130
  export {
2104
- tn as asyncApiOperationToMarkdown,
2105
- Jt as asyncApiToMarkdown,
2106
- dn as documentToLlmsTxt,
2107
- pn as documentToMarkdown,
2108
- ln as listDocumentTargets,
2109
- mn as markdownForLlm,
2110
- on as openApiEndpointToMarkdown,
2111
- rn as openApiToMarkdown,
2112
- cn as targetSlug
2131
+ on as asyncApiOperationToMarkdown,
2132
+ nn as asyncApiToMarkdown,
2133
+ hn as documentToLlmsTxt,
2134
+ yn as documentToMarkdown,
2135
+ mn as listDocumentTargets,
2136
+ gn as markdownForLlm,
2137
+ an as openApiEndpointToMarkdown,
2138
+ un as openApiToMarkdown,
2139
+ pn as targetSlug
2113
2140
  };