@transcend-io/mcp-server-consent 0.8.4 → 0.9.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.
- package/dist/cli.mjs +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/scopes-DYOovdFV.mjs +1311 -0
- package/dist/scopes-DYOovdFV.mjs.map +1 -0
- package/package.json +15 -3
- package/dist/scopes-UQvBqSH8.mjs +0 -1287
- package/dist/scopes-UQvBqSH8.mjs.map +0 -1
|
@@ -0,0 +1,1311 @@
|
|
|
1
|
+
import { EmptySchema, McpClientCapability, OffsetPaginationSchema, createListResult, createToolResult, defineTool, defineToolWithCapabilities, defineUiResource, viewHtml, z } from "@transcend-io/mcp-server-base";
|
|
2
|
+
import { AirgapBundleAnalyticsBinInterval, AirgapBundleAnalyticsDimension, AirgapBundleAnalyticsMetric, ConsentManagerAnalyticsDataSource, ConsentManagerMetricBin, ConsentTrackerStatus, ConsentTrackerType, CookieOrderField, DataFlowOrderField, DataFlowScope, OrderDirection, ScopeName, TriageAction } from "@transcend-io/privacy-types";
|
|
3
|
+
import { AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, CONSENT_MANAGER_ANALYTICS_DATA, COOKIES, COOKIE_STATS, DATA_FLOWS, EXPERIENCES, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, PURPOSES, UPDATE_DATA_FLOWS, UPDATE_OR_CREATE_COOKIES } from "@transcend-io/sdk";
|
|
4
|
+
//#region src/resolveAirgapBundleId.ts
|
|
5
|
+
const bundleIdCache = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
/**
|
|
7
|
+
* Lazily resolve the airgap bundle ID from the API key.
|
|
8
|
+
* Caches the result per GraphQL client instance so subsequent
|
|
9
|
+
* calls return instantly without an extra network request.
|
|
10
|
+
*/
|
|
11
|
+
async function resolveAirgapBundleId(graphql) {
|
|
12
|
+
const cached = bundleIdCache.get(graphql);
|
|
13
|
+
if (cached) return cached;
|
|
14
|
+
const id = (await graphql.makeRequest(FETCH_CONSENT_MANAGER_ID, {})).consentManager.consentManager.id;
|
|
15
|
+
bundleIdCache.set(graphql, id);
|
|
16
|
+
return id;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/tools/consent_bulk_triage.ts
|
|
20
|
+
const BulkTriageItemSchema = z.object({
|
|
21
|
+
type: z.nativeEnum(ConsentTrackerType).describe("Item type"),
|
|
22
|
+
id: z.string().describe("Item ID (for data flows) or cookie name (for cookies)"),
|
|
23
|
+
action: z.nativeEnum(TriageAction).describe("Action to take: APPROVE or JUNK"),
|
|
24
|
+
trackingPurposes: z.array(z.string()).optional().describe("Tracking purposes to assign (required when approving)"),
|
|
25
|
+
service: z.string().optional().describe("Service name to assign")
|
|
26
|
+
});
|
|
27
|
+
const BulkTriageSchema = z.object({ items: z.array(BulkTriageItemSchema).min(1).describe("Items to triage") });
|
|
28
|
+
function createConsentBulkTriageTool(clients) {
|
|
29
|
+
return defineTool({
|
|
30
|
+
name: "consent_bulk_triage",
|
|
31
|
+
description: "Bulk triage action: approve or junk multiple cookies and data flows in a single call. For cookies, APPROVE sets status=LIVE; JUNK sets isJunk=true. For data flows, same behavior. Optionally assign tracking purposes and service when approving.",
|
|
32
|
+
category: "Consent Management",
|
|
33
|
+
readOnly: false,
|
|
34
|
+
annotations: {
|
|
35
|
+
readOnlyHint: false,
|
|
36
|
+
destructiveHint: true,
|
|
37
|
+
idempotentHint: false
|
|
38
|
+
},
|
|
39
|
+
zodSchema: BulkTriageSchema,
|
|
40
|
+
handler: async ({ items }) => {
|
|
41
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
42
|
+
const cookieItems = items.filter((i) => i.type === "cookie");
|
|
43
|
+
const dfItems = items.filter((i) => i.type === "data_flow");
|
|
44
|
+
const results = {
|
|
45
|
+
cookies: [],
|
|
46
|
+
dataFlows: []
|
|
47
|
+
};
|
|
48
|
+
if (cookieItems.length > 0) {
|
|
49
|
+
const cookieInputs = cookieItems.map((item) => ({
|
|
50
|
+
name: item.id,
|
|
51
|
+
...item.action === "APPROVE" ? {
|
|
52
|
+
status: ConsentTrackerStatus.Live,
|
|
53
|
+
isJunk: false
|
|
54
|
+
} : {
|
|
55
|
+
status: ConsentTrackerStatus.Live,
|
|
56
|
+
isJunk: true
|
|
57
|
+
},
|
|
58
|
+
...item.trackingPurposes ? { trackingPurposes: item.trackingPurposes } : {},
|
|
59
|
+
...item.service ? { service: item.service } : {}
|
|
60
|
+
}));
|
|
61
|
+
await clients.graphql.makeRequest(UPDATE_OR_CREATE_COOKIES, {
|
|
62
|
+
airgapBundleId,
|
|
63
|
+
cookies: cookieInputs
|
|
64
|
+
});
|
|
65
|
+
results.cookies = cookieInputs.map((c) => ({
|
|
66
|
+
name: c.name,
|
|
67
|
+
action: c.isJunk ? "JUNKED" : "APPROVED",
|
|
68
|
+
status: c.status || "LIVE"
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
if (dfItems.length > 0) {
|
|
72
|
+
const dfInputs = dfItems.map((item) => ({
|
|
73
|
+
id: item.id,
|
|
74
|
+
...item.action === "APPROVE" ? {
|
|
75
|
+
status: ConsentTrackerStatus.Live,
|
|
76
|
+
isJunk: false
|
|
77
|
+
} : {
|
|
78
|
+
status: ConsentTrackerStatus.Live,
|
|
79
|
+
isJunk: true
|
|
80
|
+
},
|
|
81
|
+
...item.trackingPurposes ? { purposeIds: item.trackingPurposes } : {},
|
|
82
|
+
...item.service ? { service: item.service } : {}
|
|
83
|
+
}));
|
|
84
|
+
results.dataFlows = (await clients.graphql.makeRequest(UPDATE_DATA_FLOWS, {
|
|
85
|
+
airgapBundleId,
|
|
86
|
+
dataFlows: dfInputs
|
|
87
|
+
})).updateDataFlows.dataFlows.map((df) => ({
|
|
88
|
+
id: df.id,
|
|
89
|
+
action: df.isJunk ? "JUNKED" : "APPROVED",
|
|
90
|
+
status: df.status
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
return createToolResult(true, {
|
|
94
|
+
totalProcessed: cookieItems.length + dfItems.length,
|
|
95
|
+
...results
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/analyticsDateRange.ts
|
|
102
|
+
/**
|
|
103
|
+
* Resolve a date range from explicit ISO timestamps or a lookback window.
|
|
104
|
+
*/
|
|
105
|
+
function resolveAnalyticsDateRange(args) {
|
|
106
|
+
const endDate = args.end ? new Date(args.end) : /* @__PURE__ */ new Date();
|
|
107
|
+
const lookbackDays = args.days ?? 7;
|
|
108
|
+
const startDate = args.start ? new Date(args.start) : /* @__PURE__ */ new Date(endDate.getTime() - lookbackDays * 24 * 60 * 60 * 1e3);
|
|
109
|
+
if (Number.isNaN(startDate.getTime()) || Number.isNaN(endDate.getTime())) throw new Error("Invalid start or end date");
|
|
110
|
+
if (startDate > endDate) throw new Error("Start date must be before end date");
|
|
111
|
+
return {
|
|
112
|
+
startEpoch: Math.floor(startDate.getTime() / 1e3),
|
|
113
|
+
endEpoch: Math.floor(endDate.getTime() / 1e3),
|
|
114
|
+
startIso: startDate.toISOString(),
|
|
115
|
+
endIso: endDate.toISOString()
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/normalizeAnalyticsMetric.ts
|
|
120
|
+
const VALID_METRICS = new Set(Object.values(AirgapBundleAnalyticsMetric));
|
|
121
|
+
/** Common agent/API guesses mapped to GraphQL AnalyticsEvent values */
|
|
122
|
+
const ANALYTICS_METRIC_ALIASES = {
|
|
123
|
+
PAGE_VIEW: AirgapBundleAnalyticsMetric.PageViews,
|
|
124
|
+
CONSENT_SESSION: AirgapBundleAnalyticsMetric.SiteSessions,
|
|
125
|
+
CONSENT_SESSIONS: AirgapBundleAnalyticsMetric.SiteSessions
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Normalize metric input, accepting common aliases (e.g. PAGE_VIEW → PAGE_VIEWS).
|
|
129
|
+
*/
|
|
130
|
+
function normalizeAnalyticsMetric(metric) {
|
|
131
|
+
const upper = metric.toUpperCase();
|
|
132
|
+
if (VALID_METRICS.has(upper)) return upper;
|
|
133
|
+
return ANALYTICS_METRIC_ALIASES[upper] ?? upper;
|
|
134
|
+
}
|
|
135
|
+
const airgapBundleAnalyticsMetricSchema = z.preprocess((value) => typeof value === "string" ? normalizeAnalyticsMetric(value) : value, z.nativeEnum(AirgapBundleAnalyticsMetric));
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/tools/consent_get_aggregate_analytics.ts
|
|
138
|
+
const GetAggregateAnalyticsSchema = z.object({
|
|
139
|
+
metric: airgapBundleAnalyticsMetricSchema.describe("Analytics metric to query. CONSENT_CHANGED for opt-in/out counts; SITE_SESSIONS or PAGE_VIEWS for traffic totals."),
|
|
140
|
+
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
141
|
+
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
142
|
+
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
143
|
+
include_dimensions: z.array(z.nativeEnum(AirgapBundleAnalyticsDimension)).optional().describe("Dimension breakdowns (e.g. NEW_VALUE, REGIME, PURPOSE). Recommended for CONSENT_CHANGED.")
|
|
144
|
+
});
|
|
145
|
+
function createConsentGetAggregateAnalyticsTool(clients) {
|
|
146
|
+
return defineTool({
|
|
147
|
+
name: "consent_get_aggregate_analytics",
|
|
148
|
+
description: "Query aggregate consent analytics via airgapBundleAggregateAnalytics. Use CONSENT_CHANGED with NEW_VALUE/REGIME/PURPOSE for opt-in/out counts; SITE_SESSIONS or PAGE_VIEWS for total traffic. Requires ViewConsentManager API key scope.",
|
|
149
|
+
category: "Consent Management",
|
|
150
|
+
readOnly: true,
|
|
151
|
+
annotations: {
|
|
152
|
+
readOnlyHint: true,
|
|
153
|
+
destructiveHint: false,
|
|
154
|
+
idempotentHint: true
|
|
155
|
+
},
|
|
156
|
+
zodSchema: GetAggregateAnalyticsSchema,
|
|
157
|
+
handler: async ({ metric, start, end, days, include_dimensions }) => {
|
|
158
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
159
|
+
const range = resolveAnalyticsDateRange({
|
|
160
|
+
start,
|
|
161
|
+
end,
|
|
162
|
+
days
|
|
163
|
+
});
|
|
164
|
+
const items = (await clients.graphql.makeRequest(AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, {
|
|
165
|
+
id: airgapBundleId,
|
|
166
|
+
input: {
|
|
167
|
+
metric,
|
|
168
|
+
start: range.startEpoch,
|
|
169
|
+
end: range.endEpoch,
|
|
170
|
+
...include_dimensions?.length ? { includeDimensions: include_dimensions } : {}
|
|
171
|
+
}
|
|
172
|
+
})).airgapBundleAggregateAnalytics.items;
|
|
173
|
+
return createToolResult(true, {
|
|
174
|
+
airgapBundleId,
|
|
175
|
+
metric,
|
|
176
|
+
period: {
|
|
177
|
+
start: range.startIso,
|
|
178
|
+
end: range.endIso,
|
|
179
|
+
startEpoch: range.startEpoch,
|
|
180
|
+
endEpoch: range.endEpoch
|
|
181
|
+
},
|
|
182
|
+
items,
|
|
183
|
+
totalRows: items.length
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/tools/consent_get_analytics_data.ts
|
|
190
|
+
const GetAnalyticsDataSchema = z.object({
|
|
191
|
+
data_source: z.nativeEnum(ConsentManagerAnalyticsDataSource).describe("analyticsData source: PRIVACY_SIGNAL_TIMESERIES (DNT/GPC), CONSENT_CHANGES_TIMESERIES (opt-in/out), or CONSENT_SESSIONS_BY_REGIME."),
|
|
192
|
+
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
193
|
+
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
194
|
+
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
195
|
+
bin: z.nativeEnum(ConsentManagerMetricBin).optional().default(ConsentManagerMetricBin.Daily).describe("Time bin size for analyticsData (1h or 1d, default: 1d).")
|
|
196
|
+
});
|
|
197
|
+
function createConsentGetAnalyticsDataTool(clients) {
|
|
198
|
+
return defineTool({
|
|
199
|
+
name: "consent_get_analytics_data",
|
|
200
|
+
description: "Query consent metrics via the analyticsData GraphQL query. Returns timeseries for privacy signals (DNT/GPC), consent changes (opt-in/out), or sessions by regime. Requires ViewConsentManager API key scope.",
|
|
201
|
+
category: "Consent Management",
|
|
202
|
+
readOnly: true,
|
|
203
|
+
annotations: {
|
|
204
|
+
readOnlyHint: true,
|
|
205
|
+
destructiveHint: false,
|
|
206
|
+
idempotentHint: true
|
|
207
|
+
},
|
|
208
|
+
zodSchema: GetAnalyticsDataSchema,
|
|
209
|
+
handler: async ({ data_source, start, end, days, bin }) => {
|
|
210
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
211
|
+
const range = resolveAnalyticsDateRange({
|
|
212
|
+
start,
|
|
213
|
+
end,
|
|
214
|
+
days
|
|
215
|
+
});
|
|
216
|
+
const series = (await clients.graphql.makeRequest(CONSENT_MANAGER_ANALYTICS_DATA, { input: {
|
|
217
|
+
dataSource: data_source,
|
|
218
|
+
startDate: range.startIso,
|
|
219
|
+
endDate: range.endIso,
|
|
220
|
+
forceRefetch: true,
|
|
221
|
+
airgapBundleId,
|
|
222
|
+
binInterval: bin,
|
|
223
|
+
smoothTimeseries: false
|
|
224
|
+
} })).analyticsData.series;
|
|
225
|
+
return createToolResult(true, {
|
|
226
|
+
airgapBundleId,
|
|
227
|
+
dataSource: data_source,
|
|
228
|
+
binInterval: bin,
|
|
229
|
+
period: {
|
|
230
|
+
start: range.startIso,
|
|
231
|
+
end: range.endIso
|
|
232
|
+
},
|
|
233
|
+
series
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/** Cookie and data-flow triage dashboard for `consent_get_inventory_stats`. */
|
|
239
|
+
const INVENTORY_STATS_APP_RESOURCE = defineUiResource({
|
|
240
|
+
uri: "ui://transcend-consent/inventory-stats",
|
|
241
|
+
name: "Consent inventory triage stats",
|
|
242
|
+
description: "Interactive dashboard of cookie and data-flow live, needs-review, and junk counts.",
|
|
243
|
+
html: viewHtml({
|
|
244
|
+
bundled: "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>Transcend MCP App</title>\n <style>\n.transcend-logo-spinner-trim{stroke-dasharray:1 999;stroke-dashoffset:1px;animation:transcend-logo-spinner-trim var(--transcend-logo-spinner-trim-duration) var(--transcend-logo-spinner-trim-ease) infinite}.transcend-logo-spinner-inner{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0;animation:transcend-logo-spinner-fill var(--transcend-logo-spinner-fill-duration) ease-out forwards, transcend-logo-spinner-spin var(--transcend-logo-spinner-inner-duration) linear var(--transcend-logo-spinner-fill-duration) infinite}@keyframes transcend-logo-spinner-trim{0%,4%{stroke-dashoffset:1px;opacity:0}8%{stroke-dashoffset:1px;opacity:1}22%,72%{stroke-dashoffset:0;opacity:1}86%{stroke-dashoffset:-1px;opacity:1}90%,to{stroke-dashoffset:-1px;opacity:0}}@keyframes transcend-logo-spinner-fill{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}}@keyframes transcend-logo-spinner-spin{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:-1px}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme;@layer tokens{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background-accent-blue-bold:var(--palette-blue-500);--background-accent-blue-subtle:var(--palette-blue-100);--background-accent-blue-subtlest:var(--palette-blue-50);--background-accent-gray-bold:var(--palette-gray-500);--background-accent-gray-subtle:var(--palette-gray-300);--background-accent-gray-subtlest:var(--palette-gray-200);--background-accent-lime-bold:var(--palette-lime-500);--background-accent-lime-subtle:var(--palette-lime-100);--background-accent-lime-subtlest:var(--palette-lime-50);--background-accent-orange-bold:var(--palette-orange-500);--background-accent-orange-subtle:var(--palette-orange-100);--background-accent-orange-subtlest:var(--palette-orange-50);--background-accent-pink-bold:var(--palette-pink-500);--background-accent-pink-subtle:var(--palette-pink-100);--background-accent-pink-subtlest:var(--palette-pink-50);--background-accent-purple-bold:var(--palette-purple-500);--background-accent-purple-subtle:var(--palette-purple-100);--background-accent-purple-subtlest:var(--palette-purple-50);--background-accent-teal-bold:var(--palette-teal-500);--background-accent-teal-subtle:var(--palette-teal-100);--background-accent-teal-subtlest:var(--palette-teal-50);--background-accent-yellow-bold:var(--palette-yellow-500);--background-accent-yellow-subtle:var(--palette-yellow-100);--background-accent-yellow-subtlest:var(--palette-yellow-50);--background-brand-bold-default:var(--palette-indigo-500);--background-brand-bold:var(--background-brand-bold-default);--background-brand-bold-hovered:var(--palette-indigo-600);--background-brand-bold-pressed:var(--palette-indigo-700);--background-brand-subtle:var(--palette-indigo-100);--background-brand-subtlest:var(--palette-indigo-50);--background-danger-bold-default:var(--palette-red-500);--background-danger-bold:var(--background-danger-bold-default);--background-danger-bold-hovered:var(--palette-red-600);--background-danger-bold-pressed:var(--palette-red-700);--background-danger-subtle:var(--palette-red-100);--background-danger-subtlest:var(--palette-red-50);--background-default-default:var(--palette-white);--background-default:var(--background-default-default);--background-default-hover:var(--palette-gray-100);--background-default-pressed:var(--palette-gray-200);--background-disabled:var(--palette-gray-200);--background-neutral-default:var(--palette-gray-100);--background-neutral:var(--background-neutral-default);--background-neutral-hovered:var(--palette-gray-200);--background-neutral-pressed:var(--palette-gray-300);--background-overlay-bold:var(--palette-opacity-lg);--background-overlay-default:var(--palette-opacity-md);--background-overlay:var(--background-overlay-default);--background-overlay-subtle:var(--palette-opacity-sm);--background-success-bold-default:var(--palette-green-500);--background-success-bold:var(--background-success-bold-default);--background-success-bold-hovered:var(--palette-green-600);--background-success-bold-pressed:var(--palette-green-700);--background-success-subtle:var(--palette-green-100);--background-success-subtlest:var(--palette-green-50);--background-warning-bold-default:var(--palette-gold-500);--background-warning-bold:var(--background-warning-bold-default);--background-warning-bold-hovered:var(--palette-gold-600);--background-warning-bold-pressed:var(--palette-gold-700);--background-warning-subtle:var(--palette-gold-100);--background-warning-subtlest:var(--palette-gold-50);--body-md-font-family:\"Figtree\", system-ui, sans-serif;--body-md-font-size:14px;--body-md-font-weight:400;--body-md-letter-spacing:0px;--body-md-line-height:1.42857;--body-md:var(--body-md-font-weight) var(--body-md-font-size)/var(--body-md-line-height) var(--body-md-font-family);--body-sm-font-family:\"Figtree\", system-ui, sans-serif;--body-sm-font-size:12px;--body-sm-font-weight:400;--body-sm-letter-spacing:0px;--body-sm-line-height:1.33333;--body-sm:var(--body-sm-font-weight) var(--body-sm-font-size)/var(--body-sm-line-height) var(--body-sm-font-family);--border-accent-blue:var(--palette-blue-300);--border-accent-gray:var(--palette-gray-500);--border-accent-lime:var(--palette-lime-300);--border-accent-orange:var(--palette-orange-300);--border-accent-pink:var(--palette-pink-300);--border-accent-purple:var(--palette-purple-300);--border-accent-teal:var(--palette-teal-300);--border-accent-yellow:var(--palette-yellow-500);--border-bold:var(--palette-gray-500);--border-brand:var(--palette-indigo-500);--border-danger:var(--palette-red-400);--border-default:var(--palette-gray-300);--border:var(--border-default);--border-disabled:var(--palette-gray-200);--border-focused:var(--palette-indigo-700);--border-subtle:var(--palette-gray-200);--border-success:var(--palette-green-300);--border-warning:var(--palette-gold-400);--chart-blue:var(--palette-blue-400);--chart-gray:var(--palette-gray-400);--chart-lime:var(--palette-lime-600);--chart-orange:var(--palette-orange-400);--chart-pink:var(--palette-pink-400);--chart-purple:var(--palette-purple-400);--chart-teal:var(--palette-teal-400);--chart-yellow:var(--palette-yellow-600);--code-md-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-md-font-size:12px;--code-md-font-weight:400;--code-md-letter-spacing:0px;--code-md-line-height:1.33333;--code-md:var(--code-md-font-weight) var(--code-md-font-size)/var(--code-md-line-height) var(--code-md-font-family);--code-sm-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-sm-font-size:11px;--code-sm-font-weight:400;--code-sm-letter-spacing:0px;--code-sm-line-height:1.45455;--code-sm:var(--code-sm-font-weight) var(--code-sm-font-size)/var(--code-sm-line-height) var(--code-sm-font-family);--display-lg-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-lg-font-size:32px;--display-lg-font-weight:500;--display-lg-letter-spacing:0px;--display-lg-line-height:1.125;--display-lg:var(--display-lg-font-weight) var(--display-lg-font-size)/var(--display-lg-line-height) var(--display-lg-font-family);--display-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-md-font-size:28px;--display-md-font-weight:500;--display-md-letter-spacing:0px;--display-md-line-height:1.14286;--display-md:var(--display-md-font-weight) var(--display-md-font-size)/var(--display-md-line-height) var(--display-md-font-family);--display-sm-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-sm-font-size:24px;--display-sm-font-weight:500;--display-sm-letter-spacing:0px;--display-sm-line-height:1.16667;--display-sm:var(--display-sm-font-weight) var(--display-sm-font-size)/var(--display-sm-line-height) var(--display-sm-font-family);--heading-lg-font-family:\"Figtree\", system-ui, sans-serif;--heading-lg-font-size:20px;--heading-lg-font-weight:600;--heading-lg-letter-spacing:0em;--heading-lg-line-height:1.2;--heading-lg:var(--heading-lg-font-weight) var(--heading-lg-font-size)/var(--heading-lg-line-height) var(--heading-lg-font-family);--heading-md-font-family:\"Figtree\", system-ui, sans-serif;--heading-md-font-size:16px;--heading-md-font-weight:600;--heading-md-letter-spacing:0em;--heading-md-line-height:1.25;--heading-md:var(--heading-md-font-weight) var(--heading-md-font-size)/var(--heading-md-line-height) var(--heading-md-font-family);--heading-sm-font-family:\"Figtree\", system-ui, sans-serif;--heading-sm-font-size:14px;--heading-sm-font-weight:600;--heading-sm-letter-spacing:0em;--heading-sm-line-height:1.42857;--heading-sm:var(--heading-sm-font-weight) var(--heading-sm-font-size)/var(--heading-sm-line-height) var(--heading-sm-font-family);--icon-brand:var(--palette-indigo-500);--icon-danger:var(--palette-red-500);--icon-default:var(--palette-gray-700);--icon:var(--icon-default);--icon-disabled:var(--palette-gray-300);--icon-inverse:var(--palette-white);--icon-subtle:var(--palette-gray-600);--icon-subtlest:var(--palette-gray-500);--icon-success:var(--palette-green-500);--icon-warning:var(--palette-gold-500);--label-lg-font-family:\"Figtree\", system-ui, sans-serif;--label-lg-font-size:14px;--label-lg-font-weight:500;--label-lg-letter-spacing:0px;--label-lg-line-height:1.28571;--label-lg:var(--label-lg-font-weight) var(--label-lg-font-size)/var(--label-lg-line-height) var(--label-lg-font-family);--label-md-font-family:\"Figtree\", system-ui, sans-serif;--label-md-font-size:12px;--label-md-font-weight:500;--label-md-letter-spacing:0px;--label-md-line-height:1.33333;--label-md:var(--label-md-font-weight) var(--label-md-font-size)/var(--label-md-line-height) var(--label-md-font-family);--label-overline-font-family:\"Figtree\", system-ui, sans-serif;--label-overline-font-size:10px;--label-overline-font-weight:700;--label-overline-letter-spacing:.04em;--label-overline-line-height:1.2;--label-overline:var(--label-overline-font-weight) var(--label-overline-font-size)/var(--label-overline-line-height) var(--label-overline-font-family);--label-sm-font-family:\"Figtree\", system-ui, sans-serif;--label-sm-font-size:10px;--label-sm-font-weight:500;--label-sm-letter-spacing:0px;--label-sm-line-height:1.4;--label-sm:var(--label-sm-font-weight) var(--label-sm-font-size)/var(--label-sm-line-height) var(--label-sm-font-family);--link-default:var(--palette-indigo-500);--link:var(--link-default);--link-pressed:var(--palette-indigo-600);--link-visited-default:var(--palette-gray-700);--link-visited:var(--link-visited-default);--link-visited-pressed:var(--palette-gray-800);--metric-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--metric-md-font-size:28px;--metric-md-font-weight:400;--metric-md-letter-spacing:0px;--metric-md-line-height:1.14286;--metric-md:var(--metric-md-font-weight) var(--metric-md-font-size)/var(--metric-md-line-height) var(--metric-md-font-family);--palette-blue-50:#e8f1fb;--palette-blue-100:#d4e7fa;--palette-blue-200:#aad2f9;--palette-blue-300:#7fbdf7;--palette-blue-400:#4da7f7;--palette-blue-500:#0592f0;--palette-blue-600:#007bcc;--palette-blue-700:#0067ac;--palette-blue-800:#00528b;--palette-blue-900:#003f6c;--text-accent-blue-bold:var(--palette-blue-900);--palette-blue-950:#003359;--palette-gold-50:#fff1d6;--palette-gold-100:#ffebc2;--palette-gold-200:#fd9;--palette-gold-300:#ffcf70;--palette-gold-400:#fb3;--palette-gold-500:#ec9e00;--palette-gold-600:#c98300;--text-warning-subtle:var(--palette-gold-600);--palette-gold-700:#a16900;--palette-gold-800:#7c5100;--palette-gold-900:#5c3d00;--text-warning-bold:var(--palette-gold-900);--palette-gold-950:#462f00;--palette-gray-50:#fbfcfd;--palette-gray-100:#f8f8fa;--palette-gray-200:#f2f2f6;--palette-gray-300:#e7e7ed;--palette-gray-400:#d5d5de;--palette-gray-500:#b4b4c2;--text-subtlest:var(--palette-gray-500);--palette-gray-600:#85859c;--text-disabled:var(--palette-gray-600);--palette-gray-700:#5b5b74;--text-subtle:var(--palette-gray-700);--palette-gray-800:#383849;--palette-gray-900:#1e1d28;--text-accent-gray-bold:var(--palette-gray-900);--text-default:var(--palette-gray-900);--text:var(--text-default);--palette-gray-950:#0f0f16;--palette-green-50:#e8f4e7;--palette-green-100:#d2ead0;--palette-green-200:#a3d49f;--palette-green-300:#71bf6d;--palette-green-400:#3fb43e;--palette-green-500:#009b00;--palette-green-600:#008200;--text-success-subtle:var(--palette-green-600);--palette-green-700:#006e00;--palette-green-800:#050;--palette-green-900:#003d00;--text-success-bold:var(--palette-green-900);--palette-green-950:#002e00;--palette-indigo-50:#ecefff;--palette-indigo-100:#dae0ff;--palette-indigo-200:#b7c0ff;--palette-indigo-300:#959fff;--palette-indigo-400:#787dff;--palette-indigo-500:#5f5bf7;--palette-indigo-600:#4e45d4;--text-brand-subtle:var(--palette-indigo-600);--palette-indigo-700:#3e2ebc;--palette-indigo-800:#2f2292;--palette-indigo-900:#20156b;--text-brand-bold:var(--palette-indigo-900);--palette-indigo-950:#170e54;--palette-lime-50:#f2f8e9;--palette-lime-100:#e1eecc;--palette-lime-200:#cce1a7;--palette-lime-300:#b8d480;--palette-lime-400:#a4c754;--palette-lime-500:#90b900;--palette-lime-600:#7ea200;--palette-lime-700:#6b8b00;--palette-lime-800:#577100;--palette-lime-900:#445900;--text-accent-lime-bold:var(--palette-lime-900);--palette-lime-950:#364700;--palette-opacity-lg:#0009;--palette-opacity-md:#0006;--palette-opacity-sm:#0000001a;--palette-orange-50:#fbede6;--palette-orange-100:#faded2;--palette-orange-200:#f7c0a6;--palette-orange-300:#f4a179;--palette-orange-400:#ef8148;--palette-orange-500:#e56200;--palette-orange-600:#c65400;--palette-orange-700:#af4900;--palette-orange-800:#8e3a00;--palette-orange-900:#6f2b00;--text-accent-orange-bold:var(--palette-orange-900);--palette-orange-950:#5b2200;--palette-pink-50:#fbebf4;--palette-pink-100:#fadaec;--palette-pink-200:#f7b8dc;--palette-pink-300:#f494cd;--palette-pink-400:#ee6ebf;--palette-pink-500:#e448b0;--palette-pink-600:#c43e97;--palette-pink-700:#ad3785;--palette-pink-800:#8b2d6b;--palette-pink-900:#6b2352;--text-accent-pink-bold:var(--palette-pink-900);--palette-pink-950:#571e43;--palette-purple-50:#f3ecff;--palette-purple-100:#e8daff;--palette-purple-200:#d3b4ff;--palette-purple-300:#bf8cff;--palette-purple-400:#ad5fff;--palette-purple-500:#9d11ff;--palette-purple-600:#8200d5;--palette-purple-700:#6a00af;--palette-purple-800:#510088;--palette-purple-900:#3a0063;--text-accent-purple-bold:var(--palette-purple-900);--palette-purple-950:#2c004d;--palette-red-50:#ffebeb;--palette-red-100:#fdd7d8;--palette-red-200:#faadb1;--palette-red-300:#f4828b;--palette-red-400:#eb5167;--palette-red-500:#dc0547;--palette-red-600:#bb0036;--text-danger-subtle:var(--palette-red-600);--palette-red-700:#a20024;--palette-red-800:#7e001a;--palette-red-900:#5c000f;--text-danger-bold:var(--palette-red-900);--palette-red-950:#47000a;--palette-teal-50:#e8f3f2;--palette-teal-100:#d3e9e7;--palette-teal-200:#a7d5d2;--palette-teal-300:#78c1be;--palette-teal-400:#48b7b2;--palette-teal-500:#15a19d;--palette-teal-600:#008986;--palette-teal-700:#007774;--palette-teal-800:#005e5b;--palette-teal-900:#004644;--text-accent-teal-bold:var(--palette-teal-900);--palette-teal-950:#003836;--palette-white:#fff;--text-inverse:var(--palette-white);--palette-yellow-50:#fdf8d8;--palette-yellow-100:#fff6bf;--palette-yellow-200:#fff29d;--palette-yellow-300:#f6e57b;--palette-yellow-400:#f0db55;--palette-yellow-500:#ebcd0d;--palette-yellow-600:#c2ab15;--palette-yellow-700:#907d04;--palette-yellow-800:#6e6000;--palette-yellow-900:#564b06;--text-accent-yellow-bold:var(--palette-yellow-900);--palette-yellow-950:#3a3303}}@layer base{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*,:before,:after{box-sizing:border-box;border:0 solid}body{color:var(--color-content);font-family:var(--font-sans);font-size:var(--text-md);line-height:var(--text-md--line-height);-webkit-font-smoothing:antialiased;background:0 0;margin:0}html,body{overflow:visible}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,dl,dd,figure,blockquote{margin:0}ol,ul,menu{margin:0;padding:0;list-style:none}img,svg,video,canvas{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.visible{visibility:visible}.fixed{position:fixed}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mb-1{margin-bottom:var(--spacing)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.w-full{width:100%}.max-w-view{max-width:var(--container-view)}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-y-1{row-gap:var(--spacing)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-card-line{border-color:var(--color-card-line)}.border-l-danger{border-left-color:var(--color-danger)}.bg-card{background-color:var(--color-card)}.bg-card-sunken{background-color:var(--color-card-sunken)}.bg-fill-brand{background-color:var(--color-fill-brand)}.bg-fill-danger{background-color:var(--color-fill-danger)}.bg-fill-neutral{background-color:var(--color-fill-neutral)}.bg-fill-success{background-color:var(--color-fill-success)}.bg-fill-warning{background-color:var(--color-fill-warning)}.bg-surface-raised{background-color:var(--color-surface-raised)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-heading-md{font-size:var(--text-heading-md);line-height:var(--tw-leading,var(--text-heading-md--line-height))}.text-heading-sm{font-size:var(--text-heading-sm);line-height:var(--tw-leading,var(--text-heading-sm--line-height))}.text-metric{font-size:var(--text-metric);line-height:var(--tw-leading,var(--text-metric--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-content{color:var(--color-content)}.text-content-muted{color:var(--color-content-muted)}.text-danger{color:var(--color-danger)}.text-on-card{color:var(--color-on-card)}.text-on-card-muted{color:var(--color-on-card-muted)}.text-success{color:var(--color-success)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@container (width>=24rem){.\\@min-\\[24rem\\]\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width>=36rem){.\\@min-\\[36rem\\]\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=48rem){.\\@min-\\[48rem\\]\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}:root,:host{--color-surface-raised:var(--color-background-secondary,var(--background-default-hover,#f4f4f6));--color-content:var(--color-text-primary,var(--text,#1e1d28));--color-content-muted:var(--color-text-secondary,var(--text-subtle,#55535f));--color-focus:var(--color-ring-primary,var(--border-focused,#3e2ebc));--color-card:var(--background-default,#fff);--color-card-sunken:var(--background-neutral,#ebebef);--color-on-card:var(--text,#1e1d28);--color-on-card-muted:var(--text-subtle,#55535f);--color-on-card-subtle:var(--text-subtlest,#85838f);--color-card-line:var(--border-default,#d6d5db);--color-fill-brand:var(--background-brand-bold,#5f5bf7);--color-fill-success:var(--background-success-bold,#008200);--color-fill-warning:var(--background-warning-bold,#c98300);--color-fill-danger:var(--background-danger-bold,#bb0036);--color-fill-neutral:var(--background-neutral,#ebebef);--color-success:var(--text-success-bold,var(--color-text-success,#1a7f4b));--color-danger:var(--text-danger-bold,var(--color-text-danger,#b42318));--font-sans:ui-sans-serif, system-ui, -apple-system, sans-serif;--font-weight-medium:500;--font-weight-semibold:600;--text-sm:var(--font-text-sm-size,.8125rem);--text-sm--line-height:var(--font-text-sm-line-height,1.25rem);--text-md:var(--font-text-md-size,.875rem);--text-md--line-height:var(--font-text-md-line-height,1.375rem);--text-heading-sm:var(--font-heading-sm-size,1rem);--text-heading-sm--line-height:var(--font-heading-sm-line-height,1.5rem);--text-heading-md:var(--font-heading-md-size,1.125rem);--text-heading-md--line-height:var(--font-heading-md-line-height,1.625rem);--text-metric:1.75rem;--text-metric--line-height:2.125rem;--radius-lg:var(--border-radius-lg,12px);--radius-full:var(--border-radius-full,9999px);--spacing:.25rem;--container-view:64rem}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}\n/*$vite$:1*/\n </style>\n </head>\n <body>\n <div id=\"root\"></div>\n <script>\n(function(){var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),r=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var ee=b.prototype=new y;ee.constructor=b,g(ee,v.prototype),ee.isPureReactComponent=!0;var te=Array.isArray;function ne(){}var x={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function ie(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ae(e,t){return ie(e.type,t,e.props)}function S(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function oe(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var se=/\\/+/g;function ce(e,t){return typeof e==`object`&&e&&e.key!=null?oe(``+e.key):t.toString(36)}function le(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ne,ne):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ue(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ue(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ce(e,0):a,te(o)?(i=``,c!=null&&(i=c.replace(se,`$&/`)+`/`),ue(o,r,i,``,function(e){return e})):o!=null&&(S(o)&&(o=ae(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(se,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(te(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ce(a,u),c+=ue(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ce(a,u++),c+=ue(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ue(le(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function C(e,t,n){if(e==null)return e;var r=[],i=0;return ue(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function de(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var w=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},T={map:C,forEach:function(e,t,n){C(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=T,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!re.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ie(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)re.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ie(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=S,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:de}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ne,w)}catch(e){w(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),x.T=t}},e.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},e.use=function(e){return x.H.use(e)},e.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},e.useCallback=function(e,t){return x.H.useCallback(e,t)},e.useContext=function(e){return x.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return x.H.useEffect(e,t)},e.useEffectEvent=function(e){return x.H.useEffectEvent(e)},e.useId=function(){return x.H.useId()},e.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return x.H.useMemo(e,t)},e.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},e.useRef=function(e){return x.H.useRef(e)},e.useState=function(e){return x.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return x.H.useTransition()},e.version=`19.2.8`})),a=n(((e,t)=>{t.exports=i()})),o=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,te||(te=!0,S());else{var t=n(l);t!==null&&ce(ee,t.startTime-e)}}var te=!1,ne=-1,x=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<x)}function ae(){if(g=!1,te){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?S():te=!1}}}var S;if(typeof y==`function`)S=function(){y(ae)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ae,S=function(){se.postMessage(null)}}else S=function(){_(ae,0)};function ce(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):x=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,ce(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,S()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),s=n(((e,t)=>{t.exports=o()})),c=n((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),l=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=c()})),u=n((e=>{var t=s(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),te=Symbol.for(`react.consumer`),ne=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),S=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case ee:return`Profiler`;case b:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case oe:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case ne:return e.displayName||`Context`;case te:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case S:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}var de=Array.isArray,w=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function ge(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function _e(e,t){me++,pe[me]=e.current,e.current=t}var ve=he(null),ye=he(null),be=he(null),xe=he(null);function Se(e,t){switch(_e(be,t),_e(ye,e),_e(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ef(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ef(t),e=tf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ge(ve),_e(ve,e)}function Ce(){ge(ve),ge(ye),ge(be)}function E(e){e.memoizedState!==null&&_e(xe,e);var t=ve.current,n=tf(t,e.type);t!==n&&(_e(ye,e),_e(ve,n))}function we(e){ye.current===e&&(ge(ve),ge(ye)),xe.current===e&&(ge(xe),rp._currentValue=fe)}var D,Te;function Ee(e){if(D===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);D=t&&t[1]||``,Te=-1<e.stack.indexOf(`\n at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`\n`+D+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`\n`),l=s.split(`\n`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,O=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function k(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=T.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function pt(e,t){var n=T.p;try{return T.p=e,t()}finally{T.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,xt=`__reactResources$`+mt,St=`__reactMarker$`+mt;function Ct(e){delete e[ht],delete e[gt],delete e[vt],delete e[yt],delete e[bt]}function wt(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cf(e);e!==null;){if(n=e[ht])return n;e=Cf(e)}return t}e=n,n=e.parentNode}return null}function Tt(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Dt(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[St]=!0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=RegExp(`^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$`),Pt={},Ft={};function It(e){return je.call(Ft,e)?!0:je.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}function Lt(e,t,n){if(It(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Rt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function zt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ht(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ut(e){if(!e._valueTracker){var t=Vt(e)?`checked`:`value`;e._valueTracker=Ht(e,t,``+e[t])}}function Wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Vt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Gt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Kt=/[\\n\"\\\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Bt(t)):e.value!==``+Bt(t)&&(e.value=``+Bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,o,Bt(n)):Xt(e,o,Bt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Bt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ut(e);return}n=n==null?``:``+Bt(n),t=t==null?n:``+Bt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ut(e)}function Xt(e,t,n){t===`number`&&Gt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){if(t!=null&&(t=``+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Bt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(de(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ut(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&nn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var on=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),sn=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=\"`+qt(``+t)+`\"][type=\"radio\"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Wt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(Nu(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var vn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,\"passive\",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=h({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=h({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(h({},In,{dataTransfer:0})),zn=On(h({},jn,{relatedTarget:0})),Bn=On(h({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(h({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(h({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(h({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(h({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(h({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(h({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(h({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),$n=On(h({},kn,{newState:0,oldState:0})),er=[9,13,27,32],tr=vn&&`CompositionEvent`in window,nr=null;vn&&`documentMode`in document&&(nr=document.documentMode);var rr=vn&&`TextEvent`in window&&!nr,ir=vn&&(!tr||nr&&8<nr&&11>=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ir&&t.locale!==`ko`?null:t.data;default:return null}}var fr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!fr[e.type]:t===`textarea`}function mr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=zd(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var hr=null,gr=null;function _r(e){Md(e,0)}function vr(e){if(Wt(Et(e)))return e}function yr(e,t){if(e===`change`)return t}var br=!1;if(vn){var xr;if(vn){var Sr=`oninput`in document;if(!Sr){var Cr=document.createElement(`div`);Cr.setAttribute(`oninput`,`return;`),Sr=typeof Cr.oninput==`function`}xr=Sr}else xr=!1;br=xr&&(!document.documentMode||9<document.documentMode)}function wr(){hr&&(hr.detachEvent(`onpropertychange`,Tr),gr=hr=null)}function Tr(e){if(e.propertyName===`value`&&vr(gr)){var t=[];mr(t,gr,e,dn(e)),gn(_r,t)}}function Er(e,t,n){e===`focusin`?(wr(),hr=t,gr=n,hr.attachEvent(`onpropertychange`,Tr)):e===`focusout`&&wr()}function Dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return vr(gr)}function Or(e,t){if(e===`click`)return vr(t)}function kr(e,t){if(e===`input`||e===`change`)return vr(t)}function Ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var jr=typeof Object.is==`function`?Object.is:Ar;function Mr(e,t){if(jr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!je.call(t,i)||!jr(e[i],t[i]))return!1}return!0}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pr(e,t){var n=Nr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=zd(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionrun:Wr(`Transition`,`TransitionRun`),transitionstart:Wr(`Transition`,`TransitionStart`),transitioncancel:Wr(`Transition`,`TransitionCancel`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};vn&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var A=Jr(`animationend`),Yr=Jr(`animationiteration`),Xr=Jr(`animationstart`),Zr=Jr(`transitionrun`),Qr=Jr(`transitionstart`),$r=Jr(`transitioncancel`),ei=Jr(`transitionend`),ti=new Map,ni=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ni.push(`scrollEnd`);function ri(e,t){ti.set(e,t),jt(t,[e])}var ii=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ai=[],oi=0,si=0;function ci(){for(var e=oi,t=si=oi=0;t<e;){var n=ai[t];ai[t++]=null;var r=ai[t];ai[t++]=null;var i=ai[t];ai[t++]=null;var a=ai[t];if(ai[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&fi(n,i,a)}}function li(e,t,n,r){ai[oi++]=e,ai[oi++]=t,ai[oi++]=n,ai[oi++]=r,si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ui(e,t,n,r){return li(e,t,n,r),pi(e)}function di(e,t){return li(e,null,null,t),pi(e)}function fi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function pi(e){if(50<Tu)throw Tu=0,L=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mi={};function hi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,n,r){return new hi(e,t,n,r)}function _i(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vi(e,t){var n=e.alternate;return n===null?(n=gi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)_i(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case oe:return e=gi(31,n,t,a),e.elementType=oe,e.lanes=o,e;case y:return xi(n.children,a,o,t);case b:s=8,a|=24;break;case ee:return e=gi(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case re:return e=gi(13,n,t,a),e.elementType=re,e.lanes=o,e;case ie:return e=gi(19,n,t,a),e.elementType=ie,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case ne:s=10;break a;case te:s=9;break a;case x:s=11;break a;case ae:s=14;break a;case S:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=gi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function xi(e,t,n,r){return e=gi(7,e,r,t),e.lanes=n,e}function Si(e,t,n){return e=gi(6,e,null,t),e.lanes=n,e}function Ci(e){var t=gi(18,null,null,0);return t.stateNode=e,t}function wi(e,t,n){return t=gi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ti=new WeakMap;function Ei(e,t){if(typeof e==`object`&&e){var n=Ti.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},Ti.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}var Di=[],Oi=0,ki=null,Ai=0,ji=[],Mi=0,Ni=null,Pi=1,Fi=``;function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ki,ki=e,Ai=t}function Li(e,t,n){ji[Mi++]=Pi,ji[Mi++]=Fi,ji[Mi++]=Ni,Ni=e;var r=Pi;e=Fi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Pi=1<<32-qe(t)+i|n<<i|r,Fi=a+e}else Pi=1<<a|n<<i|r,Fi=e}function Ri(e){e.return!==null&&(Ii(e,1),Li(e,1,0))}function zi(e){for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null;for(;e===Ni;)Ni=ji[--Mi],ji[Mi]=null,Fi=ji[--Mi],ji[Mi]=null,Pi=ji[--Mi],ji[Mi]=null}function Bi(e,t){ji[Mi++]=Pi,ji[Mi++]=Fi,ji[Mi++]=Ni,Pi=t.id,Fi=t.overflow,Ni=e}var Vi=null,Hi=null,j=!1,Ui=null,Wi=!1,Gi=Error(i(519));function Ki(e){throw Qi(Ei(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Gi}function qi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:z(`cancel`,t),z(`close`,t);break;case`iframe`:case`object`:case`embed`:z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ad.length;n++)z(Ad[n],t);break;case`source`:z(`error`,t);break;case`img`:case`image`:case`link`:z(`error`,t),z(`load`,t);break;case`details`:z(`toggle`,t);break;case`input`:z(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:z(`invalid`,t);break;case`textarea`:z(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Gd(t.textContent,n)?(r.popover!=null&&(z(`beforetoggle`,t),z(`toggle`,t)),r.onScroll!=null&&z(`scroll`,t),r.onScrollEnd!=null&&z(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Ki(e,!0)}function Ji(e){for(Vi=e.return;Vi;)switch(Vi.tag){case 5:case 31:case 13:Wi=!1;return;case 27:case 3:Wi=!0;return;default:Vi=Vi.return}}function Yi(e){if(e!==Vi)return!1;if(!j)return Ji(e),j=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||nf(e.type,e.memoizedProps)),n=!n),n&&Hi&&Ki(e),Ji(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Hi=Sf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Hi=Sf(e)}else t===27?(t=Hi,uf(e.type)?(e=xf,xf=null,Hi=e):Hi=t):Hi=Vi?bf(e.stateNode.nextSibling):null;return!0}function Xi(){Hi=Vi=null,j=!1}function Zi(){var e=Ui;return e!==null&&(du===null?du=e:du.push.apply(du,e),Ui=null),e}function Qi(e){Ui===null?Ui=[e]:Ui.push(e)}var $i=he(null),ea=null,ta=null;function na(e,t,n){_e($i,t._currentValue),t._currentValue=n}function ra(e){e._currentValue=$i.current,ge($i)}function ia(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function aa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ia(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ia(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function oa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;jr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===xe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[rp]:e.push(rp))}a=a.return}e!==null&&aa(t,e,n,r),t.flags|=262144}function sa(e){for(e=e.firstContext;e!==null;){if(!jr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ca(e){ea=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function la(e){return da(ea,e)}function ua(e,t){return ea===null&&ca(e),da(e,t)}function da(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ta===null){if(e===null)throw Error(i(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return n}var fa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},pa=t.unstable_scheduleCallback,ma=t.unstable_NormalPriority,ha={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ga(){return{controller:new fa,data:new Map,refCount:0}}function _a(e){e.refCount--,e.refCount===0&&pa(ma,function(){e.controller.abort()})}var va=null,ya=0,ba=0,xa=null;function Sa(e,t){if(va===null){var n=va=[];ya=0,ba=wd(),xa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ya++,t.then(Ca,Ca),t}function Ca(){if(--ya===0&&va!==null){xa!==null&&(xa.status=`fulfilled`);var e=va;va=null,ba=0,xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ta=w.S;w.S=function(e,t){mu=Ie(),typeof t==`object`&&t&&typeof t.then==`function`&&Sa(e,t),Ta!==null&&Ta(e,t)};var Ea=he(null);function Da(){var e=Ea.current;return e===null?Zl.pooledCache:e}function Oa(e,t){t===null?_e(Ea,Ea.current):_e(Ea,t.pool)}function ka(){var e=Da();return e===null?null:{parent:ha._currentValue,pool:e}}var Aa=Error(i(460)),ja=Error(i(474)),Ma=Error(i(542)),Na={then:function(){}};function Pa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Fa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,za(e),e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=Zl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,za(e),e}throw La=t,Aa}}function Ia(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(La=e,Aa):e}}var La=null;function Ra(){if(La===null)throw Error(i(459));var e=La;return La=null,e}function za(e){if(e===Aa||e===Ma)throw Error(i(483))}var Ba=null,Va=0;function Ha(e){var t=Va;return Va+=1,Ba===null&&(Ba=[]),Fa(Ba,e,t)}function Ua(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Wa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ga(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=vi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Si(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===S&&Ia(i)===t.type)?(t=a(t,n.props),Ua(t,n),t.return=e,t):(t=bi(n.type,n.key,n.props,null,e.mode,r),Ua(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=wi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=xi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Si(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=bi(t.type,t.key,t.props,null,e.mode,n),Ua(n,t),n.return=e,n;case v:return t=wi(t,e.mode,n),t.return=e,t;case S:return t=Ia(t),f(e,t,n)}if(de(t)||le(t))return t=xi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ha(t),n);if(t.$$typeof===ne)return f(e,ua(e,t),n);Wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case S:return n=Ia(n),p(e,t,n,r)}if(de(n)||le(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ha(n),r);if(n.$$typeof===ne)return p(e,t,ua(e,n),r);Wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case S:return r=Ia(r),m(e,t,n,r,i)}if(de(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ha(r),i);if(r.$$typeof===ne)return m(e,t,n,ua(t,r),i);Wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Ii(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return j&&Ii(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),j&&Ii(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),j&&Ii(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return j&&Ii(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),j&&Ii(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===S&&Ia(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ua(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=xi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=bi(o.type,o.key,o.props,null,e.mode,c),Ua(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=wi(o,e.mode,c),c.return=e,e=c}return s(e);case S:return o=Ia(o),b(e,r,o,c)}if(de(o))return h(e,r,o,c);if(le(o)){if(l=le(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ha(o),c);if(o.$$typeof===ne)return b(e,r,ua(e,o),c);Wa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Va=0;var i=b(e,t,n,r);return Ba=null,i}catch(t){if(t===Aa||t===Ma)throw t;var a=gi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ka=Ga(!0),qa=Ga(!1),Ja=!1;function Ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,P&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=pi(e),fi(e,null,n),t}return li(e,r,t,n),pi(e)}function $a(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function eo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var to=!1;function no(){if(to){var e=xa;if(e!==null)throw e}}function ro(e,t,n,r){to=!1;var i=e.updateQueue;Ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(I&f)===f:(r&f)===f){f!==0&&f===ba&&(to=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),au|=o,e.lanes=o,e.memoizedState=d}}function io(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function ao(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)io(n[e],t)}var oo=he(null),so=he(0);function co(e,t){e=ru,_e(so,e),_e(oo,t),ru=e|t.baseLanes}function lo(){_e(so,ru),_e(oo,oo.current)}function uo(){ru=so.current,ge(oo),ge(so)}var fo=he(null),po=null;function mo(e){var t=e.alternate;_e(yo,yo.current&1),_e(fo,e),po===null&&(t===null||oo.current!==null||t.memoizedState!==null)&&(po=e)}function ho(e){_e(yo,yo.current),_e(fo,e),po===null&&(po=e)}function go(e){e.tag===22?(_e(yo,yo.current),_e(fo,e),po===null&&(po=e)):_o(e)}function _o(){_e(yo,yo.current),_e(fo,fo.current)}function vo(e){ge(fo),po===e&&(po=null),ge(yo)}var yo=he(0);function bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_f(n)||vf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xo=0,M=null,So=null,Co=null,wo=!1,To=!1,Eo=!1,Do=0,Oo=0,ko=null,Ao=0;function jo(){throw Error(i(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function No(e,t,n,r,i,a){return xo=a,M=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Xs:Zs,Eo=!1,a=n(r,i),Eo=!1,To&&(a=Fo(t,n,r,i)),Po(e),a}function Po(e){w.H=Ys;var t=So!==null&&So.next!==null;if(xo=0,Co=So=M=null,wo=!1,Oo=0,ko=null,t)throw Error(i(300));e===null||mc||(e=e.dependencies,e!==null&&sa(e)&&(mc=!0))}function Fo(e,t,n,r){M=e;var a=0;do{if(To&&(ko=null),Oo=0,To=!1,25<=a)throw Error(i(301));if(a+=1,Co=So=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}w.H=Qs,o=t(n,r)}while(To);return o}function Io(){var e=w.H,t=e.useState()[0];return t=typeof t.then==`function`?Uo(t):t,e=e.useState()[0],(So===null?null:So.memoizedState)!==e&&(M.flags|=1024),t}function Lo(){var e=Do!==0;return Do=0,e}function Ro(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function zo(e){if(wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wo=!1}xo=0,Co=So=M=null,To=!1,Oo=Do=0,ko=null}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Co===null?M.memoizedState=Co=e:Co=Co.next=e,Co}function Vo(){if(So===null){var e=M.alternate;e=e===null?null:e.memoizedState}else e=So.next;var t=Co===null?M.memoizedState:Co.next;if(t!==null)Co=t,So=e;else{if(e===null)throw M.alternate===null?Error(i(467)):Error(i(310));So=e,e={memoizedState:So.memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},Co===null?M.memoizedState=Co=e:Co=Co.next=e}return Co}function Ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uo(e){var t=Oo;return Oo+=1,ko===null&&(ko=[]),e=Fa(ko,e,t),t=M,(Co===null?t.memoizedState:Co.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Xs:Zs),e}function Wo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Uo(e);if(e.$$typeof===ne)return la(e)}throw Error(i(438,String(e)))}function Go(e){var t=null,n=M.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=M.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ho(),M.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=se;return t.index++,n}function Ko(e,t){return typeof t==`function`?t(e):t}function qo(e){return Jo(Vo(),So,e)}function Jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(xo&f)===f:(I&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ba&&(d=!0);else if((xo&p)===p){u=u.next,p===ba&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,M.lanes|=p,au|=p;f=u.action,Eo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,M.lanes|=f,au|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!jr(o,e.memoizedState)&&(mc=!0,d&&(n=xa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Yo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);jr(o,t.memoizedState)||(mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Xo(e,t,n){var r=M,a=Vo(),o=j;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!jr((So||a).memoizedState,n);if(s&&(a.memoizedState=n,mc=!0),a=a.queue,xs($o.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Co!==null&&Co.memoizedState.tag&1){if(r.flags|=2048,gs(9,{destroy:void 0},Qo.bind(null,r,a,n,t),null),Zl===null)throw Error(i(349));o||xo&127||Zo(r,t,n)}return n}function Zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=M.updateQueue,t===null?(t=Ho(),M.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qo(e,t,n,r){t.value=n,t.getSnapshot=r,es(t)&&ts(e)}function $o(e,t,n){return n(function(){es(t)&&ts(e)})}function es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch{return!0}}function ts(e){var t=di(e,2);t!==null&&Ou(t,e,2)}function ns(e){var t=Bo();if(typeof e==`function`){var n=e;if(e=n(),Eo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},t}function rs(e,t,n,r){return e.baseState=n,Jo(e,So,typeof r==`function`?r:Ko)}function is(e,t,n,r,a){if(Ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};w.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,as(t,o)):(o.next=n.next,t.pending=n.next=o)}}function as(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=w.T,o={};w.T=o;try{var s=n(i,r),c=w.S;c!==null&&c(o,s),os(e,t,s)}catch(n){cs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),w.T=a}}else try{a=n(i,r),os(e,t,a)}catch(n){cs(e,t,n)}}function os(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ss(e,t,n)},function(n){return cs(e,t,n)}):ss(e,t,n)}function ss(e,t,n){t.status=`fulfilled`,t.value=n,ls(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,as(e,n)))}function cs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ls(t),t=t.next;while(t!==r)}e.action=null}function ls(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function us(e,t){return t}function ds(e,t){if(j){var n=Zl.formState;if(n!==null){a:{var r=M;if(j){if(Hi){b:{for(var i=Hi,a=Wi;i.nodeType!==8;){if(!a){i=null;break b}if(i=bf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Hi=bf(i.nextSibling),r=i.data===`F!`;break a}}Ki(r)}r=!1}r&&(t=n[0])}}return n=Bo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:t},n.queue=r,n=Us.bind(null,M,r),r.dispatch=n,r=ns(!1),a=Gs.bind(null,M,!1,r.queue),r=Bo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=is.bind(null,M,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function fs(e){return ps(Vo(),So,e)}function ps(e,t,n){if(t=Jo(e,t,us)[0],e=qo(Ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Uo(t)}catch(e){throw e===Aa?Ma:e}else r=t;t=Vo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(M.flags|=2048,gs(9,{destroy:void 0},ms.bind(null,i,n),null)),[r,a,e]}function ms(e,t){e.action=t}function hs(e){var t=Vo(),n=So;if(n!==null)return ps(t,n,e);Vo(),t=t.memoizedState,n=Vo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=M.updateQueue,t===null&&(t=Ho(),M.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _s(){return Vo().memoizedState}function vs(e,t,n,r){var i=Bo();M.flags|=e,i.memoizedState=gs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ys(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=i.memoizedState.inst;So!==null&&r!==null&&Mo(r,So.memoizedState.deps)?i.memoizedState=gs(t,a,n,r):(M.flags|=e,i.memoizedState=gs(1|t,a,n,r))}function bs(e,t){vs(8390656,8,e,t)}function xs(e,t){ys(2048,8,e,t)}function Ss(e){M.flags|=4;var t=M.updateQueue;if(t===null)t=Ho(),M.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Cs(e){var t=Vo().memoizedState;return Ss({ref:t,nextImpl:e}),function(){if(P&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ws(e,t){return ys(4,2,e,t)}function Ts(e,t){return ys(4,4,e,t)}function Es(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ds(e,t,n){n=n==null?null:n.concat([e]),ys(4,4,Es.bind(null,t,e),n)}function Os(){}function ks(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function As(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Mo(t,r[1]))return r[0];if(r=e(),Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function js(e,t,n){return n===void 0||xo&1073741824&&!(I&261930)?e.memoizedState=t:(e.memoizedState=n,e=Du(),M.lanes|=e,au|=e,n)}function Ms(e,t,n,r){return jr(n,t)?n:oo.current===null?!(xo&42)||xo&1073741824&&!(I&261930)?(mc=!0,e.memoizedState=n):(e=Du(),M.lanes|=e,au|=e,t):(e=js(e,n,r),jr(e,t)||(mc=!0),e)}function Ns(e,t,n,r,i){var a=T.p;T.p=a!==0&&8>a?a:8;var o=w.T,s={};w.T=s,Gs(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ws(e,t,wa(c,r),Eu(e)):Ws(e,t,r,Eu(e))}catch(n){Ws(e,t,{then:function(){},status:`rejected`,reason:n},Eu())}finally{T.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function Ps(){}function Fs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Is(e).queue;Ns(e,a,t,fe,n===null?Ps:function(){return Ls(e),n(r)})}function Is(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ls(e){var t=Is(e);t.next===null&&(t=e.alternate.memoizedState),Ws(e,t.next.queue,{},Eu())}function Rs(){return la(rp)}function zs(){return Vo().memoizedState}function Bs(){return Vo().memoizedState}function Vs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Eu();e=Za(n);var r=Qa(t,e,n);r!==null&&(Ou(r,t,n),$a(r,t,n)),t={cache:ga()},e.payload=t;return}t=t.return}}function Hs(e,t,n){var r=Eu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ks(e)?qs(t,n):(n=ui(e,t,n,r),n!==null&&(Ou(n,e,r),Js(n,t,r)))}function Us(e,t,n){Ws(e,t,n,Eu())}function Ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ks(e))qs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return li(e,t,i,0),Zl===null&&ci(),!1}catch{}if(n=ui(e,t,i,r),n!==null)return Ou(n,e,r),Js(n,t,r),!0}return!1}function Gs(e,t,n,r){if(r={lane:2,revertLane:wd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ks(e)){if(t)throw Error(i(479))}else t=ui(e,n,r,2),t!==null&&Ou(t,e,2)}function Ks(e){var t=e.alternate;return e===M||t!==null&&t===M}function qs(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Ys={readContext:la,use:Wo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo};Ys.useEffectEvent=jo;var Xs={readContext:la,use:Wo,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),vs(4194308,4,Es.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){vs(4,2,e,t)},useMemo:function(e,t){var n=Bo();t=t===void 0?null:t;var r=e();if(Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Bo();if(n!==void 0){var i=n(t);if(Eo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Hs.bind(null,M,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:function(e){e=ns(e);var t=e.queue,n=Us.bind(null,M,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Os,useDeferredValue:function(e,t){return js(Bo(),e,t)},useTransition:function(){var e=ns(!1);return e=Ns.bind(null,M,e.queue,!0,!1),Bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=M,a=Bo();if(j){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zl===null)throw Error(i(349));I&127||Zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,bs($o.bind(null,r,o,e),[e]),r.flags|=2048,gs(9,{destroy:void 0},Qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Bo(),t=Zl.identifierPrefix;if(j){var n=Fi,r=Pi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Do++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ao++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:ds,useActionState:ds,useOptimistic:function(e){var t=Bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gs.bind(null,M,!0,n),n.dispatch=t,[e,t]},useMemoCache:Go,useCacheRefresh:function(){return Bo().memoizedState=Vs.bind(null,M)},useEffectEvent:function(e){var t=Bo(),n={impl:e};return t.memoizedState=n,function(){if(P&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Zs={readContext:la,use:Wo,useCallback:ks,useContext:la,useEffect:xs,useImperativeHandle:Ds,useInsertionEffect:ws,useLayoutEffect:Ts,useMemo:As,useReducer:qo,useRef:_s,useState:function(){return qo(Ko)},useDebugValue:Os,useDeferredValue:function(e,t){return Ms(Vo(),So.memoizedState,e,t)},useTransition:function(){var e=qo(Ko)[0],t=Vo().memoizedState;return[typeof e==`boolean`?e:Uo(e),t]},useSyncExternalStore:Xo,useId:zs,useHostTransitionStatus:Rs,useFormState:fs,useActionState:fs,useOptimistic:function(e,t){return rs(Vo(),So,e,t)},useMemoCache:Go,useCacheRefresh:Bs};Zs.useEffectEvent=Cs;var Qs={readContext:la,use:Wo,useCallback:ks,useContext:la,useEffect:xs,useImperativeHandle:Ds,useInsertionEffect:ws,useLayoutEffect:Ts,useMemo:As,useReducer:Yo,useRef:_s,useState:function(){return Yo(Ko)},useDebugValue:Os,useDeferredValue:function(e,t){var n=Vo();return So===null?js(n,e,t):Ms(n,So.memoizedState,e,t)},useTransition:function(){var e=Yo(Ko)[0],t=Vo().memoizedState;return[typeof e==`boolean`?e:Uo(e),t]},useSyncExternalStore:Xo,useId:zs,useHostTransitionStatus:Rs,useFormState:hs,useActionState:hs,useOptimistic:function(e,t){var n=Vo();return So===null?(n.baseState=e,[e,n.queue.dispatch]):rs(n,So,e,t)},useMemoCache:Go,useCacheRefresh:Bs};Qs.useEffectEvent=Cs;function $s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Za(r);i.payload=t,n!=null&&(i.callback=n),t=Qa(e,i,r),t!==null&&(Ou(t,e,r),$a(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Qa(e,i,r),t!==null&&(Ou(t,e,r),$a(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Eu(),r=Za(n);r.tag=2,t!=null&&(r.callback=t),t=Qa(e,r,n),t!==null&&(Ou(t,e,n),$a(t,e,n))}};function tc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Mr(n,r)||!Mr(i,a):!0}function nc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function rc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ic(e){ii(e)}function ac(e){console.error(e)}function oc(e){ii(e)}function sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function cc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function lc(e,t,n){return n=Za(n),n.tag=3,n.payload={element:null},n.callback=function(){sc(e,t)},n}function uc(e){return e=Za(e),e.tag=3,e}function dc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){cc(t,n,r),typeof i!=`function`&&(_u===null?_u=new Set([this]):_u.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function fc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&oa(t,n,a,!0),n=fo.current,n!==null){switch(n.tag){case 31:case 13:return po===null?Bu():n.alternate===null&&iu===0&&(iu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Na?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),id(e,r,a)),!1;case 22:return n.flags|=65536,r===Na?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),id(e,r,a)),!1}throw Error(i(435,n.tag))}return id(e,r,a),Bu(),!1}if(j)return t=fo.current,t===null?(r!==Gi&&(t=Error(i(423),{cause:r}),Qi(Ei(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ei(r,n),a=lc(e.stateNode,r,a),eo(e,a),iu!==4&&(iu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Gi&&(e=Error(i(422),{cause:r}),Qi(Ei(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ei(o,n),uu===null?uu=[o]:uu.push(o),iu!==4&&(iu=2),t===null)return!0;r=Ei(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=lc(n.stateNode,r,e),eo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(_u===null||!_u.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=uc(a),dc(a,e,n,r),eo(n,a),!1}n=n.return}while(n!==null);return!1}var pc=Error(i(461)),mc=!1;function hc(e,t,n,r){t.child=e===null?qa(t,null,n,r):Ka(t,e.child,n,r)}function gc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ca(t),r=No(e,t,n,o,a,i),s=Lo(),e!==null&&!mc?(Ro(e,t,i),Bc(e,t,i)):(j&&s&&Ri(t),t.flags|=1,hc(e,t,r,i),t.child)}function _c(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!_i(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,vc(e,t,a,r,i)):(e=bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Vc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Mr:n,n(o,r)&&e.ref===t.ref)return Bc(e,t,i)}return t.flags|=1,e=vi(a,r),e.ref=t.ref,e.return=t,t.child=e}function vc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Mr(a,r)&&e.ref===t.ref)if(mc=!1,t.pendingProps=r=a,Vc(e,i))e.flags&131072&&(mc=!0);else return t.lanes=e.lanes,Bc(e,t,i)}return Ec(e,t,n,r,i)}function yc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return xc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Oa(t,a===null?null:a.cachePool),a===null?lo():co(t,a),go(t);else return r=t.lanes=536870912,xc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Oa(t,null),lo(),_o(t)):(Oa(t,a.cachePool),co(t,a),_o(t),t.memoizedState=null);return hc(e,t,i,n),t.child}function bc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xc(e,t,n,r,i){var a=Da();return a=a===null?null:{parent:ha._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Oa(t,null),lo(),go(t),e!==null&&oa(e,t,r,!0),t.childLanes=i,null}function Sc(e,t){return t=Fc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cc(e,t,n){return Ka(t,e.child,null,n),e=Sc(t,t.pendingProps),e.flags|=2,vo(t),t.memoizedState=null,e}function wc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(j){if(r.mode===`hidden`)return e=Sc(t,r),t.lanes=536870912,bc(null,e);if(ho(t),(e=Hi)?(e=gf(e,Wi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni===null?null:{id:Pi,overflow:Fi},retryLane:536870912,hydrationErrors:null},n=Ci(e),n.return=t,t.child=n,Vi=t,Hi=null)):e=null,e===null)throw Ki(t);return t.lanes=536870912,null}return Sc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ho(t),a)if(t.flags&256)t.flags&=-257,t=Cc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(mc||oa(e,t,n,!1),a=(n&e.childLanes)!==0,mc||a){if(r=Zl,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,di(e,s),Ou(r,e,s),pc;Bu(),t=Cc(e,t,n)}else e=o.treeContext,Hi=bf(s.nextSibling),Vi=t,j=!0,Ui=null,Wi=!1,e!==null&&Bi(t,e),t=Sc(t,r),t.flags|=4096;return t}return e=vi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ec(e,t,n,r,i){return ca(t),n=No(e,t,n,r,void 0,i),r=Lo(),e!==null&&!mc?(Ro(e,t,i),Bc(e,t,i)):(j&&r&&Ri(t),t.flags|=1,hc(e,t,n,i),t.child)}function Dc(e,t,n,r,i,a){return ca(t),t.updateQueue=null,n=Fo(t,r,n,i),Po(e),r=Lo(),e!==null&&!mc?(Ro(e,t,a),Bc(e,t,a)):(j&&r&&Ri(t),t.flags|=1,hc(e,t,n,a),t.child)}function Oc(e,t,n,r,i){if(ca(t),t.stateNode===null){var a=mi,o=n.contextType;typeof o==`object`&&o&&(a=la(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ec,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ya(t),o=n.contextType,a.context=typeof o==`object`&&o?la(o):mi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&($s(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&ec.enqueueReplaceState(a,a.state,null),ro(t,r,a,i),no(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=rc(n,s);a.props=c;var l=a.context,u=n.contextType;o=mi,typeof u==`object`&&u&&(o=la(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&nc(t,a,r,o),Ja=!1;var f=t.memoizedState;a.state=f,ro(t,r,a,i),no(),l=t.memoizedState,s||f!==l||Ja?(typeof d==`function`&&($s(t,n,d,r),l=t.memoizedState),(c=Ja||tc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Xa(e,t),o=t.memoizedProps,u=rc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=mi,typeof l==`object`&&l&&(c=la(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&nc(t,a,r,c),Ja=!1,f=t.memoizedState,a.state=f,ro(t,r,a,i),no();var p=t.memoizedState;o!==d||f!==p||Ja||e!==null&&e.dependencies!==null&&sa(e.dependencies)?(typeof s==`function`&&($s(t,n,s,r),p=t.memoizedState),(u=Ja||tc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&sa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Tc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ka(t,e.child,null,i),t.child=Ka(t,null,n,i)):hc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Bc(e,t,i),e}function kc(e,t,n,r){return Xi(),t.flags|=256,hc(e,t,n,r),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(e){return{baseLanes:e,cachePool:ka()}}function Mc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cu),e}function Nc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(yo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(j){if(a?mo(t):_o(t),(e=Hi)?(e=gf(e,Wi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni===null?null:{id:Pi,overflow:Fi},retryLane:536870912,hydrationErrors:null},n=Ci(e),n.return=t,t.child=n,Vi=t,Hi=null)):e=null,e===null)throw Ki(t);return vf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(_o(t),a=t.mode,c=Fc({mode:`hidden`,children:c},a),r=xi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=jc(n),r.childLanes=Mc(e,s,n),t.memoizedState=Ac,bc(null,r)):(mo(t),Pc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(mo(t),t.flags&=-257,t=Ic(e,t,n)):t.memoizedState===null?(_o(t),c=r.fallback,a=t.mode,r=Fc({mode:`visible`,children:r.children},a),c=xi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ka(t,e.child,null,n),r=t.child,r.memoizedState=jc(n),r.childLanes=Mc(e,s,n),t.memoizedState=Ac,t=bc(null,r)):(_o(t),t.child=e.child,t.flags|=128,t=null);else if(mo(t),vf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Qi({value:r,source:null,stack:null}),t=Ic(e,t,n)}else if(mc||oa(e,t,n,!1),s=(n&e.childLanes)!==0,mc||s){if(s=Zl,s!==null&&(r=lt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,di(e,r),Ou(s,e,r),pc;_f(c)||Bu(),t=Ic(e,t,n)}else _f(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Hi=bf(c.nextSibling),Vi=t,j=!0,Ui=null,Wi=!1,e!==null&&Bi(t,e),t=Pc(t,r.children),t.flags|=4096);return t}return a?(_o(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=vi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=xi(c,a,n,null),c.flags|=2):c=vi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,bc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=jc(n):(a=c.cachePool,a===null?a=ka():(l=ha._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Mc(e,s,n),t.memoizedState=Ac,bc(e.child,r)):(mo(t),n=e.child,e=n.sibling,n=vi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Pc(e,t){return t=Fc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Fc(e,t){return e=gi(22,e,null,t),e.lanes=0,e}function Ic(e,t,n){return Ka(t,e.child,null,n),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ia(e.return,t,n)}function Rc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function zc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=yo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,_e(yo,o),hc(e,t,r,n),r=j?Ai:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lc(e,n,t);else if(e.tag===19)Lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rc(t,!0,n,null,a,r);break;case`together`:Rc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Bc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),au|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(oa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=vi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&sa(e))):!0}function Hc(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),na(t,ha,e.memoizedState.cache),Xi();break;case 27:case 5:E(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ho(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(mo(t),e=Bc(e,t,n),e===null?null:e.sibling):Nc(e,t,n):(mo(t),t.flags|=128,null);mo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(oa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return zc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(yo,yo.current),r)break;return null;case 22:return t.lanes=0,yc(e,t,n,t.pendingProps);case 24:na(t,ha,e.memoizedState.cache)}return Bc(e,t,n)}function Uc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)mc=!0;else{if(!Vc(e,n)&&!(t.flags&128))return mc=!1,Hc(e,t,n);mc=!!(e.flags&131072)}else mc=!1,j&&t.flags&1048576&&Li(t,Ai,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ia(t.elementType),t.type=e,typeof e==`function`)_i(e)?(r=rc(e,r),t.tag=1,t=Oc(null,t,e,r,n)):(t.tag=0,t=Ec(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=gc(null,t,e,r,n);break a}else if(a===ae){t.tag=14,t=_c(null,t,e,r,n);break a}}throw t=C(e)||e,Error(i(306,t,``))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=rc(r,t.pendingProps),Oc(e,t,r,a,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Xa(e,t),ro(t,r,null,n);var s=t.memoizedState;if(r=s.cache,na(t,ha,r),r!==o.cache&&aa(t,[ha],n,!0),no(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=kc(e,t,r,n);break a}else if(r!==a){a=Ei(Error(i(424)),t),Qi(a),t=kc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Hi=bf(e.firstChild),Vi=t,j=!0,Ui=null,Wi=!0,n=qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xi(),r===a){t=Bc(e,t,n);break a}hc(e,t,r,n)}t=t.child}return t;case 26:return Tc(e,t),e===null?(n=zf(t.type,null,t.pendingProps,null))?t.memoizedState=n:j||(n=t.type,e=t.pendingProps,r=$d(be.current).createElement(n),r[ht]=t,r[gt]=e,qd(r,n,e),Ot(r),t.stateNode=r):t.memoizedState=zf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return E(t),e===null&&j&&(r=t.stateNode=wf(t.type,t.pendingProps,be.current),Vi=t,Wi=!0,a=Hi,uf(t.type)?(xf=a,Hi=bf(r.firstChild)):Hi=a),hc(e,t,t.pendingProps.children,n),Tc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&j&&((a=r=Hi)&&(r=mf(r,t.type,t.pendingProps,Wi),r===null?a=!1:(t.stateNode=r,Vi=t,Hi=bf(r.firstChild),Wi=!1,a=!0)),a||Ki(t)),E(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,nf(a,o)?r=null:s!==null&&nf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=No(e,t,Io,null,null,n),rp._currentValue=a),Tc(e,t),hc(e,t,r,n),t.child;case 6:return e===null&&j&&((e=n=Hi)&&(n=hf(n,t.pendingProps,Wi),n===null?e=!1:(t.stateNode=n,Vi=t,Hi=null,e=!0)),e||Ki(t)),null;case 13:return Nc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ka(t,null,r,n):hc(e,t,r,n),t.child;case 11:return gc(e,t,t.type,t.pendingProps,n);case 7:return hc(e,t,t.pendingProps,n),t.child;case 8:return hc(e,t,t.pendingProps.children,n),t.child;case 12:return hc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,na(t,t.type,r.value),hc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ca(t),a=la(a),r=r(a),t.flags|=1,hc(e,t,r,n),t.child;case 14:return _c(e,t,t.type,t.pendingProps,n);case 15:return vc(e,t,t.type,t.pendingProps,n);case 19:return zc(e,t,n);case 31:return wc(e,t,n);case 22:return yc(e,t,n,t.pendingProps);case 24:return ca(t),r=la(ha),e===null?(a=Da(),a===null&&(a=Zl,o=ga(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ya(t),na(t,ha,a)):((e.lanes&n)!==0&&(Xa(e,t),ro(t,null,null,n),no()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,na(t,ha,r),r!==a.cache&&aa(t,[ha],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),na(t,ha,r))),hc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Wc(e){e.flags|=4}function Gc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Lu())e.flags|=8192;else throw La=Na,ja}else e.flags&=-16777217}function Kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(Lu())e.flags|=8192;else throw La=Na,ja}function qc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,lu|=t)}function Jc(e,t){if(!j)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xc(e,t,n){var r=t.pendingProps;switch(zi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yc(t),null;case 1:return Yc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ra(ha),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?Wc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zi())),Yc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Wc(t),o===null?(Yc(t),Gc(t,a,null,r,n)):(Yc(t),Kc(t,o))):o?o===e.memoizedState?(Yc(t),t.flags&=-16777217):(Wc(t),Yc(t),Kc(t,o)):(e=e.memoizedProps,e!==r&&Wc(t),Yc(t),Gc(t,a,e,r,n)),null;case 27:if(we(t),n=be.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Yc(t),null}e=ve.current,Yi(t)?qi(t,e):(e=wf(a,r,n),t.stateNode=e,Wc(t))}return Yc(t),null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Yc(t),null}if(o=ve.current,Yi(t))qi(t,o);else{var s=$d(be.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Wc(t)}}return Yc(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=be.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Vi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Gd(e.nodeValue,n)),e||Ki(t,!0)}else e=$d(e).createTextNode(r),e[ht]=t,t.stateNode=e}return Yc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yc(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vo(t),t):(vo(t),null);if(t.flags&128)throw Error(i(558))}return Yc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yc(t),a=!1}else a=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(vo(t),t):(vo(t),null)}return vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),qc(t,t.updateQueue),Yc(t),null);case 4:return Ce(),e===null&&Fd(t.stateNode.containerInfo),Yc(t),null;case 10:return ra(t.type),Yc(t),null;case 19:if(ge(yo),r=t.memoizedState,r===null)return Yc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Jc(r,!1);else{if(iu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,Jc(r,!1),e=o.updateQueue,t.updateQueue=e,qc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yi(n,e),n=n.sibling;return _e(yo,yo.current&1|2),j&&Ii(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>hu&&(t.flags|=128,a=!0,Jc(r,!1),t.lanes=4194304)}else{if(!a)if(e=bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,qc(t,e),Jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!j)return Yc(t),null}else 2*Ie()-r.renderingStartTime>hu&&n!==536870912&&(t.flags|=128,a=!0,Jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Yc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ie(),e.sibling=null,n=yo.current,_e(yo,a?n&1|2:n&1),j&&Ii(t,r.treeForkCount),e);case 22:case 23:return vo(t),uo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Yc(t),t.subtreeFlags&6&&(t.flags|=8192)):Yc(t),n=t.updateQueue,n!==null&&qc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ge(Ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(ha),Yc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Zc(e,t){switch(zi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(ha),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(vo(t),t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(yo),null;case 4:return Ce(),null;case 10:return ra(t.type),null;case 22:case 23:return vo(t),uo(),e!==null&&ge(Ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(ha),null;case 25:return null;default:return null}}function Qc(e,t){switch(zi(t),t.tag){case 3:ra(ha),Ce();break;case 26:case 27:case 5:we(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&vo(t);break;case 13:vo(t);break;case 19:ge(yo);break;case 10:ra(t.type);break;case 22:case 23:vo(t),uo(),e!==null&&ge(Ea);break;case 24:ra(ha)}}function $c(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){R(t,t.return,e)}}function el(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){R(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){R(t,t.return,e)}}function tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ao(t,n)}catch(t){R(e,e.return,t)}}}function nl(e,t,n){n.props=rc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){R(e,t,n)}}function rl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){R(e,t,n)}}function il(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){R(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){R(e,t,n)}else n.current=null}function al(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){R(e,e.return,t)}}function ol(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[gt]=t}catch(t){R(e,e.return,t)}}function sl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&uf(e.type)||e.tag===4}function cl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&uf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function dl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[ht]=e,t[gt]=n}catch(t){R(e,e.return,t)}}var fl=!1,pl=!1,ml=!1,hl=typeof WeakSet==`function`?WeakSet:Set,gl=null;function _l(e,t){if(e=e.containerInfo,Zd=dp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Qd={focusedElem:e,selectionRange:n},dp=!1,gl=t;gl!==null;)if(t=gl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,gl=e;else for(;gl!==null;){switch(t=gl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=rc(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){R(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)pf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:pf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,gl=e;break}gl=t.return}}function vl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ml(e,n),r&4&&$c(5,n);break;case 1:if(Ml(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){R(n,n.return,e)}else{var i=rc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){R(n,n.return,e)}}r&64&&tl(n),r&512&&rl(n,n.return);break;case 3:if(Ml(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ao(e,t)}catch(e){R(n,n.return,e)}}break;case 27:t===null&&r&4&&dl(n);case 26:case 5:Ml(e,n),t===null&&r&4&&al(n),r&512&&rl(n,n.return);break;case 12:Ml(e,n);break;case 31:Ml(e,n),r&4&&Cl(e,n);break;case 13:Ml(e,n),r&4&&wl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sd.bind(null,n),yf(e,n))));break;case 22:if(r=n.memoizedState!==null||fl,!r){t=t!==null&&t.memoizedState!==null||pl,i=fl;var a=pl;fl=r,(pl=t)&&!a?Pl(e,n,(n.subtreeFlags&8772)!=0):Ml(e,n),fl=i,pl=a}break;case 30:break;default:Ml(e,n)}}function yl(e){var t=e.alternate;t!==null&&(e.alternate=null,yl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var N=null,bl=!1;function xl(e,t,n){for(n=n.child;n!==null;)Sl(e,t,n),n=n.sibling}function Sl(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:pl||il(n,t),xl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pl||il(n,t);var r=N,i=bl;uf(n.type)&&(N=n.stateNode,bl=!1),xl(e,t,n),Tf(n.stateNode),N=r,bl=i;break;case 5:pl||il(n,t);case 6:if(r=N,i=bl,N=null,xl(e,t,n),N=r,bl=i,N!==null)if(bl)try{(N.nodeType===9?N.body:N.nodeName===`HTML`?N.ownerDocument.body:N).removeChild(n.stateNode)}catch(e){R(n,t,e)}else try{N.removeChild(n.stateNode)}catch(e){R(n,t,e)}break;case 18:N!==null&&(bl?(e=N,df(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Ip(e)):df(N,n.stateNode));break;case 4:r=N,i=bl,N=n.stateNode.containerInfo,bl=!0,xl(e,t,n),N=r,bl=i;break;case 0:case 11:case 14:case 15:el(2,n,t),pl||el(4,n,t),xl(e,t,n);break;case 1:pl||(il(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&nl(n,t,r)),xl(e,t,n);break;case 21:xl(e,t,n);break;case 22:pl=(r=pl)||n.memoizedState!==null,xl(e,t,n),pl=r;break;default:xl(e,t,n)}}function Cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ip(e)}catch(e){R(t,t.return,e)}}}function wl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ip(e)}catch(e){R(t,t.return,e)}}function Tl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hl),t;default:throw Error(i(435,e.tag))}}function El(e,t){var n=Tl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=cd.bind(null,e,t);t.then(r,r)}})}function Dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(uf(c.type)){N=c.stateNode,bl=!1;break a}break;case 5:N=c.stateNode,bl=!1;break a;case 3:case 4:N=c.stateNode.containerInfo,bl=!0;break a}c=c.return}if(N===null)throw Error(i(160));Sl(o,s,a),N=null,bl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kl(t,e),t=t.sibling}var Ol=null;function kl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dl(t,e),Al(e),r&4&&(el(3,e,e.return),$c(3,e),el(5,e,e.return));break;case 1:Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),r&64&&fl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Ol;if(Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[St]||o[ht]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),qd(o,r,n),o[ht]=e,Ot(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ht]=e,Ot(o),r=o}e.stateNode=r}else K(a,e.type,e.stateNode);else e.stateNode=W(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&ol(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?K(a,e.type,e.stateNode):W(a,r,e.memoizedProps))}break;case 27:Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),n!==null&&r&4&&ol(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),e.flags&32){a=e.stateNode;try{en(a,``)}catch(t){R(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,ol(e,a,n===null?a:n.memoizedProps)),r&1024&&(ml=!0);break;case 6:if(Dl(t,e),Al(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){R(e,e.return,t)}}break;case 3:if(G=null,a=Ol,Ol=Of(t.containerInfo),Dl(t,e),Ol=a,Al(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ip(t.containerInfo)}catch(t){R(e,e.return,t)}ml&&(ml=!1,jl(e));break;case 4:r=Ol,Ol=Of(e.stateNode.containerInfo),Dl(t,e),Al(e),Ol=r;break;case 12:Dl(t,e),Al(e);break;case 31:Dl(t,e),Al(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 13:Dl(t,e),Al(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(pu=Ie()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=fl,d=pl;if(fl=u||a,pl=d||l,Dl(t,e),pl=d,fl=u,Al(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||fl||pl||Nl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){R(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){R(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ff(m,!0):ff(l.stateNode,!1)}catch(e){R(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,El(e,n))));break;case 19:Dl(t,e),Al(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 30:break;case 21:break;default:Dl(t,e),Al(e)}}function Al(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(sl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;ul(e,cl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(en(o,``),n.flags&=-33),ul(e,cl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;ll(e,cl(e),s);break;default:throw Error(i(161))}}catch(t){R(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vl(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Nl(t);break;case 1:il(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&nl(t,t.return,n),Nl(t);break;case 27:Tf(t.stateNode);case 26:case 5:il(t,t.return),Nl(t);break;case 22:t.memoizedState===null&&Nl(t);break;case 30:Nl(t);break;default:Nl(t)}e=e.sibling}}function Pl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Pl(i,a,n),$c(4,a);break;case 1:if(Pl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){R(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)io(c[i],s)}catch(e){R(r,r.return,e)}}n&&o&64&&tl(a),rl(a,a.return);break;case 27:dl(a);case 26:case 5:Pl(i,a,n),n&&r===null&&o&4&&al(a),rl(a,a.return);break;case 12:Pl(i,a,n);break;case 31:Pl(i,a,n),n&&o&4&&Cl(i,a);break;case 13:Pl(i,a,n),n&&o&4&&wl(i,a);break;case 22:a.memoizedState===null&&Pl(i,a,n),rl(a,a.return);break;case 30:break;default:Pl(i,a,n)}t=t.sibling}}function Fl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&_a(n))}function Il(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e))}function Ll(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rl(e,t,n,r),t=t.sibling}function Rl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ll(e,t,n,r),i&2048&&$c(9,t);break;case 1:Ll(e,t,n,r);break;case 3:Ll(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e)));break;case 12:if(i&2048){Ll(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){R(t,t.return,e)}}else Ll(e,t,n,r);break;case 31:Ll(e,t,n,r);break;case 13:Ll(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ll(e,t,n,r):(a._visibility|=2,zl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ll(e,t,n,r):Bl(e,t),i&2048&&Fl(o,t);break;case 24:Ll(e,t,n,r),i&2048&&Il(t.alternate,t);break;default:Ll(e,t,n,r)}}function zl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zl(a,o,s,c,i),$c(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zl(a,o,s,c,i)):u._visibility&2?zl(a,o,s,c,i):Bl(a,o),i&&l&2048&&Fl(o.alternate,o);break;case 24:zl(a,o,s,c,i),i&&l&2048&&Il(o.alternate,o);break;default:zl(a,o,s,c,i)}t=t.sibling}}function Bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bl(n,r),i&2048&&Fl(r.alternate,r);break;case 24:Bl(n,r),i&2048&&Il(r.alternate,r);break;default:Bl(n,r)}t=t.sibling}}var Vl=8192;function Hl(e,t,n){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)Ul(e,t,n),e=e.sibling}function Ul(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Vl&&e.memoizedState!==null&&q(n,Ol,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,n);break;case 3:case 4:var r=Ol;Ol=Of(e.stateNode.containerInfo),Hl(e,t,n),Ol=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vl,Vl=16777216,Hl(e,t,n),Vl=r):Hl(e,t,n));break;default:Hl(e,t,n)}}function Wl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];gl=r,Jl(r,e)}Wl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&el(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ql(e)):Gl(e);break;default:Gl(e)}}function ql(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];gl=r,Jl(r,e)}Wl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),ql(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ql(t));break;default:ql(t)}e=e.sibling}}function Jl(e,t){for(;gl!==null;){var n=gl;switch(n.tag){case 0:case 11:case 15:el(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:_a(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,gl=r;else a:for(n=e;gl!==null;){r=gl;var i=r.sibling,a=r.return;if(yl(r),r===n){gl=null;break a}if(i!==null){i.return=a,gl=i;break a}gl=a}}}var Yl={getCacheForType:function(e){var t=la(ha),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return la(ha).controller.signal}},Xl=typeof WeakMap==`function`?WeakMap:Map,P=0,Zl=null,F=null,I=0,Ql=0,$l=null,eu=!1,tu=!1,nu=!1,ru=0,iu=0,au=0,ou=0,su=0,cu=0,lu=0,uu=null,du=null,fu=!1,pu=0,mu=0,hu=1/0,gu=null,_u=null,vu=0,yu=null,bu=null,xu=0,Su=0,Cu=null,wu=null,Tu=0,L=null;function Eu(){return P&2&&I!==0?I&-I:w.T===null?ft():wd()}function Du(){if(cu===0)if(!(I&536870912)||j){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),cu=e}else cu=536870912;return e=fo.current,e!==null&&(e.flags|=32),cu}function Ou(e,t,n){(e===Zl&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)&&(Fu(e,0),Mu(e,I,cu,!1)),at(e,n),(!(P&2)||e!==Zl)&&(e===Zl&&(!(P&2)&&(ou|=n),iu===4&&Mu(e,I,cu,!1)),gd(e))}function ku(e,t,n){if(P&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||nt(e,t),a=r?Uu(e,t):Vu(e,t,!0),o=r;do{if(a===0){tu&&!r&&Mu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ju(n)){a=Vu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=uu;var l=c.current.memoizedState.isDehydrated;if(l&&(Fu(c,s).flags|=256),s=Vu(c,s,!1),s!==2){if(nu&&!l){c.errorRecoveryDisabledLanes|=o,ou|=o,a=4;break a}o=du,du=a,o!==null&&(du===null?du=o:du.push.apply(du,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Fu(e,0),Mu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Mu(r,t,cu,!eu);break a;case 2:du=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=pu+300-Ie(),10<a)){if(Mu(r,t,cu,!eu),tt(r,0,!0)!==0)break a;xu=t,r.timeoutHandle=V(Au.bind(null,r,n,du,gu,fu,t,cu,ou,lu,eu,o,`Throttled`,-0,0),a);break a}Au(r,n,du,gu,fu,t,cu,ou,lu,eu,o,null,-0,0)}}break}while(1);gd(e)}function Au(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Ul(t,a,d);var m=(a&62914560)===a?pu-Ie():(a&4194048)===a?mu-Ie():0;if(m=$f(d,m),m!==null){xu=a,e.cancelPendingCommit=m(Xu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Mu(e,a,o,!l);return}}Xu(e,t,a,n,r,i,o,s,c)}function ju(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!jr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mu(e,t,n,r){t&=~su,t&=~ou,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function Nu(){return P&6?!0:(_d(0,!1),!1)}function Pu(){if(F!==null){if(Ql===0)var e=F.return;else e=F,ta=ea=null,zo(e),Ba=null,Va=0,e=F;for(;e!==null;)Qc(e.alternate,e),e=e.return;F=null}}function Fu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,of(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xu=0,Pu(),Zl=e,F=n=vi(e.current,null),I=t,Ql=0,$l=null,eu=!1,tu=nt(e,t),nu=!1,lu=cu=su=ou=au=iu=0,du=uu=null,fu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return ru=t,ci(),n}function Iu(e,t){M=null,w.H=Ys,t===Aa||t===Ma?(t=Ra(),Ql=3):t===ja?(t=Ra(),Ql=4):Ql=t===pc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$l=t,F===null&&(iu=1,sc(e,Ei(t,e.current)))}function Lu(){var e=fo.current;return e===null?!0:(I&4194048)===I?po===null:(I&62914560)===I||I&536870912?e===po:!1}function Ru(){var e=w.H;return w.H=Ys,e===null?Ys:e}function zu(){var e=w.A;return w.A=Yl,e}function Bu(){iu=4,eu||(I&4194048)!==I&&fo.current!==null||(tu=!0),!(au&134217727)&&!(ou&134217727)||Zl===null||Mu(Zl,I,cu,!1)}function Vu(e,t,n){var r=P;P|=2;var i=Ru(),a=zu();(Zl!==e||I!==t)&&(gu=null,Fu(e,t)),t=!1;var o=iu;a:do try{if(Ql!==0&&F!==null){var s=F,c=$l;switch(Ql){case 8:Pu(),o=6;break a;case 3:case 2:case 9:case 6:fo.current===null&&(t=!0);var l=Ql;if(Ql=0,$l=null,qu(e,s,c,l),n&&tu){o=0;break a}break;default:l=Ql,Ql=0,$l=null,qu(e,s,c,l)}}Hu(),o=iu;break}catch(t){Iu(e,t)}while(1);return t&&e.shellSuspendCounter++,ta=ea=null,P=r,w.H=i,w.A=a,F===null&&(Zl=null,I=0,ci()),o}function Hu(){for(;F!==null;)Gu(F)}function Uu(e,t){var n=P;P|=2;var r=Ru(),a=zu();Zl!==e||I!==t?(gu=null,hu=Ie()+500,Fu(e,t)):tu=nt(e,t);a:do try{if(Ql!==0&&F!==null){t=F;var o=$l;b:switch(Ql){case 1:Ql=0,$l=null,qu(e,t,o,1);break;case 2:case 9:if(Pa(o)){Ql=0,$l=null,Ku(t);break}t=function(){Ql!==2&&Ql!==9||Zl!==e||(Ql=7),gd(e)},o.then(t,t);break a;case 3:Ql=7;break a;case 4:Ql=5;break a;case 7:Pa(o)?(Ql=0,$l=null,Ku(t)):(Ql=0,$l=null,qu(e,t,o,7));break;case 5:var s=null;switch(F.tag){case 26:s=F.memoizedState;case 5:case 27:var c=F;if(s?Zf(s):c.stateNode.complete){Ql=0,$l=null;var l=c.sibling;if(l!==null)F=l;else{var u=c.return;u===null?F=null:(F=u,Ju(u))}break b}}Ql=0,$l=null,qu(e,t,o,5);break;case 6:Ql=0,$l=null,qu(e,t,o,6);break;case 8:Pu(),iu=6;break a;default:throw Error(i(462))}}Wu();break}catch(t){Iu(e,t)}while(1);return ta=ea=null,w.H=r,w.A=a,P=n,F===null?(Zl=null,I=0,ci(),iu):0}function Wu(){for(;F!==null&&!Pe();)Gu(F)}function Gu(e){var t=Uc(e.alternate,e,ru);e.memoizedProps=e.pendingProps,t===null?Ju(e):F=t}function Ku(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dc(n,t,t.pendingProps,t.type,void 0,I);break;case 11:t=Dc(n,t,t.pendingProps,t.type.render,t.ref,I);break;case 5:zo(t);default:Qc(n,t),t=F=yi(t,ru),t=Uc(n,t,ru)}e.memoizedProps=e.pendingProps,t===null?Ju(e):F=t}function qu(e,t,n,r){ta=ea=null,zo(t),Ba=null,Va=0;var i=t.return;try{if(fc(e,i,t,n,I)){iu=1,sc(e,Ei(n,e.current)),F=null;return}}catch(t){if(i!==null)throw F=i,t;iu=1,sc(e,Ei(n,e.current)),F=null;return}t.flags&32768?(j||r===1?e=!0:tu||I&536870912?e=!1:(eu=e=!0,(r===2||r===9||r===3||r===6)&&(r=fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Yu(t,e)):Ju(t)}function Ju(e){var t=e;do{if(t.flags&32768){Yu(t,eu);return}e=t.return;var n=Xc(t.alternate,t,ru);if(n!==null){F=n;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);iu===0&&(iu=5)}function Yu(e,t){do{var n=Zc(e.alternate,e);if(n!==null){n.flags&=32767,F=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=n}while(e!==null);iu=6,F=null}function Xu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do td();while(vu!==0);if(P&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=si,ot(e,n,o,s,c,l),e===Zl&&(F=Zl=null,I=0),bu=t,yu=e,xu=n,Su=o,Cu=a,wu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ld(O,function(){return nd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=w.T,w.T=null,a=T.p,T.p=2,s=P,P|=4;try{_l(e,t,n)}finally{P=s,T.p=a,w.T=r}}vu=1,Zu(),Qu(),$u()}}function Zu(){if(vu===1){vu=0;var e=yu,t=bu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=P;P|=4;try{kl(t,e);var a=Qd,o=Ir(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Fr(s.ownerDocument.documentElement,s)){if(c!==null&&Lr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Zd,Qd=Zd=null}finally{P=i,T.p=r,w.T=n}}e.current=t,vu=2}}function Qu(){if(vu===2){vu=0;var e=yu,t=bu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=P;P|=4;try{vl(e,t.alternate,t)}finally{P=i,T.p=r,w.T=n}}vu=3}}function $u(){if(vu===4||vu===3){vu=0,Fe();var e=yu,t=bu,n=xu,r=wu;t.subtreeFlags&10256||t.flags&10256?vu=5:(vu=0,bu=yu=null,ed(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(_u=null),dt(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=w.T,i=T.p,T.p=2,w.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{w.T=t,T.p=i}}xu&3&&td(),gd(e),i=e.pendingLanes,n&261930&&i&42?e===L?Tu++:(Tu=0,L=e):Tu=0,_d(0,!1)}}function ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_a(t)))}function td(){return Zu(),Qu(),$u(),nd()}function nd(){if(vu!==5)return!1;var e=yu,t=Su;Su=0;var n=dt(xu),r=w.T,a=T.p;try{T.p=32>n?32:n,w.T=null,n=Cu,Cu=null;var o=yu,s=xu;if(vu=0,bu=yu=null,xu=0,P&6)throw Error(i(331));var c=P;if(P|=4,Kl(o.current),Rl(o,o.current,s,n),P=c,_d(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{T.p=a,w.T=r,ed(e,t)}}function rd(e,t,n){t=Ei(n,t),t=lc(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(at(e,2),gd(e))}function R(e,t,n){if(e.tag===3)rd(e,e,n);else for(;t!==null;){if(t.tag===3){rd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_u===null||!_u.has(r))){e=Ei(n,e),n=uc(2),r=Qa(t,n,2),r!==null&&(dc(n,r,t,e),at(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zl===e&&(I&n)===n&&(iu===4||iu===3&&(I&62914560)===I&&300>Ie()-pu?!(P&2)&&Fu(e,0):su|=n,lu===I&&(lu=0)),gd(e)}function od(e,t){t===0&&(t=rt()),e=di(e,t),e!==null&&(at(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),od(e,n)}function ld(e,t){return Me(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Cd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Sd(r,a))}else a=I,a=tt(r,r===Zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,Sd(r,a));r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&af()&&(e=hd);for(var t=Ie(),n=null,r=ud;r!==null;){var i=r.next,a=bd(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}vu!==0&&vu!==5||_d(e,!1),hd!==0&&(hd=0)}function bd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=k(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zl,n=I,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ne(r),dt(n)){case 2:case 8:n=ze;break;case 32:n=O;break;case 268435456:n=Ve;break;default:n=O}return r=xd.bind(null,e),n=Me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ne(r),e.callbackPriority=2,e.callbackNode=null,2}function xd(e,t){if(vu!==0&&vu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var r=I;return r=tt(e,e===Zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(ku(e,r,t),bd(e,Ie()),e.callbackNode!=null&&e.callbackNode===n?xd.bind(null,e):null)}function Sd(e,t){if(td())return null;ku(e,t,!0)}function Cd(){cf(function(){P&6?Me(Re,vd):yd()})}function wd(){if(hd===0){var e=ba;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),hd=e}return hd}function Td(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(``+e)}function Ed(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Td((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?Td(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(hd!==0){var e=o?Ed(i,o):new FormData(i);Fs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Ed(i,o):new FormData(i),Fs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Od=0;Od<ni.length;Od++){var kd=ni[Od];ri(kd.toLowerCase(),`on`+(kd[0].toUpperCase()+kd.slice(1)))}ri(A,`onAnimationEnd`),ri(Yr,`onAnimationIteration`),ri(Xr,`onAnimationStart`),ri(`dblclick`,`onDoubleClick`),ri(`focusin`,`onFocus`),ri(`focusout`,`onBlur`),ri(Zr,`onTransitionRun`),ri(Qr,`onTransitionStart`),ri($r,`onTransitionCancel`),ri(ei,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ad=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),jd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ad));function Md(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ii(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ii(e)}i.currentTarget=null,a=c}}}}function z(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(Id(t,e,2,!1),n.add(r))}function Nd(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Pd=`_reactListening`+Math.random().toString(36).slice(2);function Fd(e){if(!e[Pd]){e[Pd]=!0,kt.forEach(function(t){t!==`selectionchange`&&(jd.has(t)||Nd(t,!1,e),Nd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,Nd(`selectionchange`,!1,t))}}function Id(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ld(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=wt(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),o=[];a:{var s=ti.get(e);if(s!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Xn;break;case A:case Yr:case Xr:l=Bn;break;case ei:l=Zn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=Qn;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`toggle`:case`beforetoggle`:l=$n}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Rd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?wt(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Et(l),h=u==null?s:Et(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,wt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Bd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Vd(o,s,l,d,!1),u!==null&&f!==null&&Vd(o,f,u,d,!0)}}a:{if(s=r?Et(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=yr;else if(pr(s))if(br)v=kr;else{v=Dr;var y=Er}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&an(r.elementType)&&(v=yr):v=Or;if(v&&=v(e,r)){mr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Xt(s,`number`,s.value)}switch(y=r?Et(r):window,e){case`focusin`:(pr(y)||y.contentEditable===`true`)&&(zr=y,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var b;if(tr)b:{switch(e){case`compositionstart`:var ee=`onCompositionStart`;break b;case`compositionend`:ee=`onCompositionEnd`;break b;case`compositionupdate`:ee=`onCompositionUpdate`;break b}ee=void 0}else lr?sr(e,n)&&(ee=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(ee=`onCompositionStart`);ee&&(ir&&n.locale!==`ko`&&(lr||ee!==`onCompositionStart`?ee===`onCompositionEnd`&&lr&&(b=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,lr=!0)),y=zd(r,ee),0<y.length&&(ee=new Hn(ee,e,null,n,i),o.push({event:ee,listeners:y}),b?ee.data=b:(b=cr(n),b!==null&&(ee.data=b)))),(b=rr?ur(e,n):dr(e,n))&&(ee=zd(r,`onBeforeInput`),0<ee.length&&(y=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:ee}),y.data=b)),Dd(o,e,r,n,i)}Md(o,t)})}function Rd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Rd(e,i,a)),i=_n(e,t),i!=null&&r.push(Rd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Bd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Rd(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Rd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Hd=/\\r\\n?/g,Ud=/\\u0000|\\uFFFD/g;function Wd(e){return(typeof e==`string`?e:``+e).replace(Hd,`\n`).replace(Ud,``)}function Gd(e,t){return t=Wd(t),Wd(e)===t}function B(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||en(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&en(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:rn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&B(e,t,`name`,a.name,a,null),B(e,t,`formEncType`,a.formEncType,a,null),B(e,t,`formMethod`,a.formMethod,a,null),B(e,t,`formTarget`,a.formTarget,a,null)):(B(e,t,`encType`,a.encType,a,null),B(e,t,`method`,a.method,a,null),B(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:z(`beforetoggle`,e),z(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=on.get(n)||n,Lt(e,n,r))}}function Kd(e,t,n,r,a,o){switch(n){case`style`:rn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?en(e,r):(typeof r==`number`||typeof r==`bigint`)&&en(e,``+r);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[gt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Lt(e,n,r)}}}function qd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:z(`error`,e),z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:B(e,t,o,s,n,null)}}a&&B(e,t,`srcSet`,n.srcSet,n,null),r&&B(e,t,`src`,n.src,n,null);return;case`input`:z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:B(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:B(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:B(e,t,s,c,n,null)}$t(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:B(e,t,l,r,n,null)}return;case`dialog`:z(`beforetoggle`,e),z(`toggle`,e),z(`cancel`,e),z(`close`,e);break;case`iframe`:case`object`:z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ad.length;r++)z(Ad[r],e);break;case`image`:z(`error`,e),z(`load`,e);break;case`details`:z(`toggle`,e);break;case`embed`:case`source`:case`link`:z(`error`,e),z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:B(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Kd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&B(e,t,c,r,n,null))}function Jd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||B(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&B(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||B(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&B(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:B(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&B(e,t,s,a,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:B(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:B(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&B(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:B(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Kd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Kd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&B(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||B(e,t,f,p,r,m)}function Yd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Xd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Yd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Zd=null,Qd=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function ef(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function tf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function nf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rf=null;function af(){var e=window.event;return e&&e.type===`popstate`?e===rf?!1:(rf=e,!0):(rf=null,!1)}var V=typeof setTimeout==`function`?setTimeout:void 0,of=typeof clearTimeout==`function`?clearTimeout:void 0,sf=typeof Promise==`function`?Promise:void 0,cf=typeof queueMicrotask==`function`?queueMicrotask:sf===void 0?V:function(e){return sf.resolve(null).then(e).catch(lf)};function lf(e){setTimeout(function(){throw e})}function uf(e){return e===`head`}function df(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tf(e.ownerDocument.body);n=i}while(n);Ip(t)}function ff(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:pf(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function mf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=bf(e.nextSibling),e===null)break}return null}function hf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=bf(e.nextSibling),e===null))return null;return e}function gf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=bf(e.nextSibling),e===null))return null;return e}function _f(e){return e.data===`$?`||e.data===`$~`}function vf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function yf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function bf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var xf=null;function Sf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return bf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function wf(e,t,n){switch(t=$d(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Tf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var Ef=new Map,Df=new Set;function Of(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kf=T.d;T.d={f:Af,r:jf,D:H,C:Pf,L:Ff,m:If,X:Rf,S:Lf,M:U};function Af(){var e=kf.f(),t=Nu();return e||t}function jf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?Ls(t):kf.r(e)}var Mf=typeof document>`u`?null:document;function Nf(e,t,n){var r=Mf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel=\"`+e+`\"][href=\"`+i+`\"]`,typeof n==`string`&&(i+=`[crossorigin=\"`+n+`\"]`),Df.has(i)||(Df.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function H(e){kf.D(e),Nf(`dns-prefetch`,e,null)}function Pf(e,t){kf.C(e,t),Nf(`preconnect`,e,t)}function Ff(e,t,n){kf.L(e,t,n);var r=Mf;if(r&&e&&t){var i=`link[rel=\"preload\"][as=\"`+qt(t)+`\"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset=\"`+qt(n.imageSrcSet)+`\"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes=\"`+qt(n.imageSizes)+`\"]`)):i+=`[href=\"`+qt(e)+`\"]`;var a=i;switch(t){case`style`:a=Bf(e);break;case`script`:a=Wf(e)}Ef.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Ef.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vf(a))||t===`script`&&r.querySelector(Gf(a))||(t=r.createElement(`link`),qd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function If(e,t){kf.m(e,t);var n=Mf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel=\"modulepreload\"][as=\"`+qt(r)+`\"][href=\"`+qt(e)+`\"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wf(e)}if(!Ef.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Ef.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Lf(e,t,n){kf.S(e,t,n);var r=Mf;if(r&&e){var i=Dt(r).hoistableStyles,a=Bf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,\"data-precedence\":t},n),(n=Ef.get(a))&&qf(e,n);var c=o=r.createElement(`link`);Ot(c),qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rf(e,t){kf.X(e,t);var n=Mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0},t),(t=Ef.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function U(e,t){kf.M(e,t);var n=Mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Ef.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t,n,r){var a=(a=be.current)?Of(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Bf(n.href),n=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bf(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Ef.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ef.set(e,n),o||Uf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Wf(n),n=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bf(e){return`href=\"`+qt(e)+`\"`}function Vf(e){return`link[rel=\"stylesheet\"][`+e+`]`}function Hf(e){return h({},e,{\"data-precedence\":e.precedence,precedence:null})}function Uf(e,t,n,r){e.querySelector(`link[rel=\"preload\"][as=\"style\"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),qd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Wf(e){return`[src=\"`+qt(e)+`\"]`}function Gf(e){return`script[async]`+e}function W(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~=\"`+qt(n.href)+`\"]`);if(r)return t.instance=r,Ot(r),r;var a=h({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),qd(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bf(n.href);var o=e.querySelector(Vf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Hf(n),(a=Ef.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Wf(n.src),(a=e.querySelector(Gf(o)))?(t.instance=a,Ot(a),a):(r=n,(a=Ef.get(o))&&(r=h({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel=\"stylesheet\"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var G=null;function Yf(e,t,n){if(G===null){var r=new Map,i=G=new Map;i.set(n,r)}else i=G,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function K(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function q(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bf(r.href),a=t.querySelector(Vf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Hf(r),(i=Ef.get(i))&&qf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&J(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&J(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Xd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&J(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)J(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function J(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(np,e),tp=null,ep.call(e))}function np(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ep.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var rp={$$typeof:ne,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function ip(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ap(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ip(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=gi(3,null,null,t),e.current=a,a.stateNode=e,t=ga(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ya(a),e}function op(e){return e?(e=mi,e):mi}function sp(e,t,n,r,i,a){i=op(i),r.context===null?r.context=i:r.pendingContext=i,r=Za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Qa(e,r,t),n!==null&&(Ou(n,e,t),$a(n,e,t))}function Y(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){Y(e,t),(e=e.alternate)&&Y(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=di(e,67108864);t!==null&&Ou(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=Eu();t=ut(t);var n=di(e,t);n!==null&&Ou(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=2,mp(e,t,n,r)}finally{T.p=a,w.T=i}}function pp(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=8,mp(e,t,n,r)}finally{T.p=a,w.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Ld(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}gd(a),!(P&6)&&(hu=Ie()+500,_d(0,!1))}}break;case 31:case 13:s=di(a,2),s!==null&&Ou(s,a,2),Nu(),cp(a,2)}if(a=hp(r),a===null&&Ld(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}function hp(e){return e=dn(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=wt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Le()){case Re:return 2;case ze:return 8;case O:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=wt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,pt(e.priority,function(){up(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,pt(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Tt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function X(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,Fs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||X(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),X(n)}}}function Lp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Z(e){this._internalRoot=e}Rp.prototype.render=Z.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;sp(n,Eu(),e,t,null,null)},Rp.prototype.unmount=Z.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),Nu(),t[_t]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var zp=n.version;if(zp!==`19.2.8`)throw Error(i(527,zp,`19.2.8`));T.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:w,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{We=Vp.inject(Bp),Ge=Vp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r=``,a=ic,s=ac,c=oc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ap(e,1,!1,null,null,n,r,null,a,s,c,Lp),e[_t]=t.current,Fd(e),new Z(t)}})),d=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()}));function f(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,\"_zod\",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,\"name\",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,\"init\",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,\"name\",{value:e}),o}function p(e){return e&&Object.assign(y,e),y}var m,h,g,_,v,y,b=t((()=>{h=Object.freeze({status:`aborted`}),g=Symbol(`zod_brand`),_=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},v=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={}),y=globalThis.__zod_globalConfig})),ee=r({BIGINT_FORMAT_RANGES:()=>tt,Class:()=>nt,NUMBER_FORMAT_RANGES:()=>et,aborted:()=>Ne,allowsEval:()=>Xe,assert:()=>ie,assertEqual:()=>te,assertIs:()=>x,assertNever:()=>re,assertNotEqual:()=>ne,assignProp:()=>w,base64ToUint8Array:()=>He,base64urlToUint8Array:()=>We,cached:()=>se,captureStackTrace:()=>Ye,cleanEnum:()=>Ve,cleanRegex:()=>le,clone:()=>Ce,cloneDef:()=>fe,createTransparentProxy:()=>we,defineLazy:()=>C,esc:()=>ge,escapeRegex:()=>Se,explicitlyAborted:()=>Pe,extend:()=>Oe,finalizeIssue:()=>Le,floatSafeRemainder:()=>ue,getElementAtPath:()=>pe,getEnumValues:()=>ae,getLengthableOrigin:()=>ze,getParsedType:()=>Ze,getSizableOrigin:()=>Re,hexToUint8Array:()=>Ke,isObject:()=>ve,isPlainObject:()=>ye,issue:()=>Be,joinValues:()=>S,jsonStringifyReplacer:()=>oe,merge:()=>Ae,mergeDefs:()=>T,normalizeParams:()=>E,nullish:()=>ce,numKeys:()=>xe,objectClone:()=>de,omit:()=>De,optionalKeys:()=>Te,parsedType:()=>O,partial:()=>je,pick:()=>Ee,prefixIssues:()=>Fe,primitiveTypes:()=>$e,promiseAllObject:()=>me,propertyKeyTypes:()=>Qe,randomString:()=>he,required:()=>Me,safeExtend:()=>ke,shallowClone:()=>be,slugify:()=>_e,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>Ue,uint8ArrayToBase64url:()=>Ge,uint8ArrayToHex:()=>qe,unwrapMessage:()=>Ie});function te(e){return e}function ne(e){return e}function x(e){}function re(e){throw Error(`Unexpected value in exhaustive check`)}function ie(e){}function ae(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function S(e,t=`|`){return e.map(e=>D(e)).join(t)}function oe(e,t){return typeof t==`bigint`?t.toString():t}function se(e){return{get value(){{let t=e();return Object.defineProperty(this,\"value\",{value:t}),t}throw Error(`cached value already set`)}}}function ce(e){return e==null}function le(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ue(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function C(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Je)return r===void 0&&(r=Je,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function de(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function w(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function T(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function fe(e){return T(e._zod.def)}function pe(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function me(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function he(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ge(e){return JSON.stringify(e)}function _e(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,``).replace(/[\\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ve(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ye(e){if(ve(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ve(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function be(e){return ye(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function xe(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Se(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`)}function Ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error(\"Cannot specify both `message` and `error` params\");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function we(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function D(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`\"${e}\"`:`${e}`}function Te(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ce(e,T(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: \"${r}\"`);t[r]&&(e[r]=n.shape[r])}return w(this,`shape`,e),e},checks:[]}))}function De(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ce(e,T(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: \"${e}\"`);t[e]&&delete r[e]}return w(this,`shape`,r),r},checks:[]}))}function Oe(e,t){if(!ye(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n}}))}function ke(e,t){if(!ye(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n}}))}function Ae(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return w(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function je(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ce(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return w(this,`shape`,i),i},checks:[]}))}function Me(e,t,n){return Ce(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return w(this,`shape`,i),i}}))}function Ne(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Fe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ie(e){return typeof e==`string`?e:e?.message}function Le(e,t,n){let r=e.message?e.message:Ie(e.inst?._zod.def?.error?.(e))??Ie(t?.error?.(e))??Ie(n.customError?.(e))??Ie(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Re(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function ze(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function O(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Be(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ve(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function He(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Ue(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function We(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return He(t+`=`.repeat((4-t.length%4)%4))}function Ge(e){return Ue(e).replace(/\\+/g,`-`).replace(/\\//g,`_`).replace(/=/g,``)}function Ke(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function qe(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,k=t((()=>{b(),Je=Symbol(`evaluating`),Ye=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Xe=se(()=>{if(y.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ze=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Qe=new Set([`string`,`number`,`symbol`]),$e=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),et={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tt={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},nt=class{constructor(...e){}}}));function rt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function it(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function at(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function ot(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function st(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ot(e.path)}`);return t.join(`\n`)}var ct,lt,ut,dt=t((()=>{b(),k(),ct=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,oe,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},lt=f(`$ZodError`,ct),ut=f(`$ZodError`,ct,{Parent:Error})})),ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It=t((()=>{b(),dt(),k(),ft=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},pt=ft(ut),mt=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},ht=mt(ut),gt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _;return a.issues.length?{success:!1,error:new(e??lt)(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},_t=gt(ut),vt=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},yt=vt(ut),bt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ft(e)(t,n,i)},xt=bt(ut),St=e=>(t,n,r)=>ft(e)(t,n,r),Ct=St(ut),wt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return mt(e)(t,n,i)},Tt=wt(ut),Et=e=>async(t,n,r)=>mt(e)(t,n,r),Dt=Et(ut),Ot=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return gt(e)(t,n,i)},kt=Ot(ut),At=e=>(t,n,r)=>gt(e)(t,n,r),jt=At(ut),Mt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return vt(e)(t,n,i)},Nt=Mt(ut),Pt=e=>async(t,n,r)=>vt(e)(t,n,r),Ft=Pt(ut)})),Lt=r({base64:()=>gn,base64url:()=>_n,bigint:()=>Tn,boolean:()=>On,browserEmail:()=>ln,cidrv4:()=>mn,cidrv6:()=>hn,cuid:()=>Wt,cuid2:()=>Gt,date:()=>Cn,datetime:()=>Vt,domain:()=>yn,duration:()=>Xt,e164:()=>xn,email:()=>rn,emoji:()=>Rt,extendedDuration:()=>Zt,guid:()=>Qt,hex:()=>Nn,hostname:()=>vn,html5Email:()=>an,httpProtocol:()=>bn,idnEmail:()=>cn,integer:()=>En,ipv4:()=>dn,ipv6:()=>fn,ksuid:()=>Jt,lowercase:()=>jn,mac:()=>pn,md5_base64:()=>Fn,md5_base64url:()=>In,md5_hex:()=>Pn,nanoid:()=>Yt,null:()=>kn,number:()=>Dn,rfc5322Email:()=>on,sha1_base64:()=>Rn,sha1_base64url:()=>zn,sha1_hex:()=>Ln,sha256_base64:()=>Vn,sha256_base64url:()=>Hn,sha256_hex:()=>Bn,sha384_base64:()=>Wn,sha384_base64url:()=>Gn,sha384_hex:()=>Un,sha512_base64:()=>qn,sha512_base64url:()=>Jn,sha512_hex:()=>Kn,string:()=>wn,time:()=>Bt,ulid:()=>Kt,undefined:()=>An,unicodeEmail:()=>sn,uppercase:()=>Mn,uuid:()=>$t,uuid4:()=>en,uuid6:()=>tn,uuid7:()=>nn,xid:()=>qt});function Rt(){return new RegExp(un,`u`)}function zt(e){let t=`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function Bt(e){return RegExp(`^${zt(e)}$`)}function Vt(e){let t=zt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Sn}T(?:${r})$`)}function Ht(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ut(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn=t((()=>{k(),Wt=/^[cC][0-9a-z]{6,}$/,Gt=/^[0-9a-z]+$/,Kt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qt=/^[0-9a-vA-V]{20}$/,Jt=/^[A-Za-z0-9]{27}$/,Yt=/^[a-zA-Z0-9_-]{21}$/,Xt=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Zt=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,Qt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$t=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,en=$t(4),tn=$t(6),nn=$t(7),rn=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,an=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,on=/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,sn=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,cn=sn,ln=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,un=`^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`,dn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pn=e=>{let t=Se(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},mn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,hn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_n=/^[A-Za-z0-9_-]*$/,vn=/^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/,yn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,bn=/^https?$/,xn=/^\\+[1-9]\\d{6,14}$/,Sn=`(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`,Cn=RegExp(`^${Sn}$`),wn=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\\\s\\\\S]*`;return RegExp(`^${t}$`)},Tn=/^-?\\d+n?$/,En=/^-?\\d+$/,Dn=/^-?\\d+(?:\\.\\d+)?$/,On=/^(?:true|false)$/i,kn=/^null$/i,An=/^undefined$/i,jn=/^[^A-Z]*$/,Mn=/^[^a-z]*$/,Nn=/^[0-9a-fA-F]*$/,Pn=/^[0-9a-fA-F]{32}$/,Fn=Ht(22,`==`),In=Ut(22),Ln=/^[0-9a-fA-F]{40}$/,Rn=Ht(27,`=`),zn=Ut(27),Bn=/^[0-9a-fA-F]{64}$/,Vn=Ht(43,`=`),Hn=Ut(43),Un=/^[0-9a-fA-F]{96}$/,Wn=Ht(64,``),Gn=Ut(64),Kn=/^[0-9a-fA-F]{128}$/,qn=Ht(86,`==`),Jn=Ut(86)}));function Xn(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues))}var Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br=t((()=>{b(),Yn(),k(),Zn=f(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qn={number:`number`,bigint:`bigint`,object:`date`},$n=f(`$ZodCheckLessThan`,(e,t)=>{Zn.init(e,t);let n=Qn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),er=f(`$ZodCheckGreaterThan`,(e,t)=>{Zn.init(e,t);let n=Qn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tr=f(`$ZodCheckMultipleOf`,(e,t)=>{Zn.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):ue(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nr=f(`$ZodCheckNumberFormat`,(e,t)=>{Zn.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=et[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=En)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rr=f(`$ZodCheckBigIntFormat`,(e,t)=>{Zn.init(e,t);let[n,r]=tt[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),ir=f(`$ZodCheckMaxSize`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Re(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ar=f(`$ZodCheckMinSize`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Re(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),or=f(`$ZodCheckSizeEquals`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Re(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),sr=f(`$ZodCheckMaxLength`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ze(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cr=f(`$ZodCheckMinLength`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ze(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lr=f(`$ZodCheckLengthEquals`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ze(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ur=f(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Zn.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),dr=f(`$ZodCheckRegex`,(e,t)=>{ur.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fr=f(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=jn,ur.init(e,t)}),pr=f(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Mn,ur.init(e,t)}),mr=f(`$ZodCheckIncludes`,(e,t)=>{Zn.init(e,t);let n=Se(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hr=f(`$ZodCheckStartsWith`,(e,t)=>{Zn.init(e,t);let n=RegExp(`^${Se(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gr=f(`$ZodCheckEndsWith`,(e,t)=>{Zn.init(e,t);let n=RegExp(`.*${Se(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),_r=f(`$ZodCheckProperty`,(e,t)=>{Zn.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Xn(n,e,t.property));Xn(n,e,t.property)}}),vr=f(`$ZodCheckMimeType`,(e,t)=>{Zn.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),yr=f(`$ZodCheckOverwrite`,(e,t)=>{Zn.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),xr,Sr=t((()=>{xr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`\n`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`\n`))}}})),Cr,wr=t((()=>{Cr={major:4,minor:4,patch:3}}));function Tr(e){if(e===``)return!0;if(/\\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function Er(e){if(!_n.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Tr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Dr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Or(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function kr(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Fe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Ar(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key \"${n}\": expected a Zod schema`);let n=Te(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function jr(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>kr(e,n,i,t,u,d))):kr(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function Mr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ne(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}),t)}function Nr(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Pr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ye(e)&&ye(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Pr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Pr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ne(e))return e;let o=Pr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Ir(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Lr(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function Rr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...Fe(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function zr(e,t,n,r,i,a,o){e.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Le(e,o,p()))})),t.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Le(e,o,p()))})),n.value.set(e.value,t.value)}function Br(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Vr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Hr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Ur(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Wr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Gr(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Kr(e,r,t.out,n)):Kr(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Kr(e,r,t.in,n)):Kr(e,r,t.in,n)}}function Kr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function qr(e){return e.value=Object.freeze(e.value),e}function Jr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Be(e))}}var A,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,j,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa=t((()=>{br(),b(),Sr(),It(),Yn(),k(),wr(),A=f(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Cr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ne(e),i;for(let a of t){if(a._zod.def.when){if(Pe(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ne(e,t))});else{if(e.issues.length===t)continue;r||=Ne(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ne(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(e=>t(e,r,a))}return t(o,r,a)}}C(e,`~standard`,()=>({validate:t=>{try{let n=_t(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return yt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Yr=f(`$ZodString`,(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wn(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Xr=f(`$ZodStringFormat`,(e,t)=>{ur.init(e,t),Yr.init(e,t)}),Zr=f(`$ZodGUID`,(e,t)=>{t.pattern??=Qt,Xr.init(e,t)}),Qr=f(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: \"${t.version}\"`);t.pattern??=$t(e)}else t.pattern??=$t();Xr.init(e,t)}),$r=f(`$ZodEmail`,(e,t)=>{t.pattern??=rn,Xr.init(e,t)}),ei=f(`$ZodURL`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===bn.source&&!/^https?:\\/\\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ti=f(`$ZodEmoji`,(e,t)=>{t.pattern??=Rt(),Xr.init(e,t)}),ni=f(`$ZodNanoID`,(e,t)=>{t.pattern??=Yt,Xr.init(e,t)}),ri=f(`$ZodCUID`,(e,t)=>{t.pattern??=Wt,Xr.init(e,t)}),ii=f(`$ZodCUID2`,(e,t)=>{t.pattern??=Gt,Xr.init(e,t)}),ai=f(`$ZodULID`,(e,t)=>{t.pattern??=Kt,Xr.init(e,t)}),oi=f(`$ZodXID`,(e,t)=>{t.pattern??=qt,Xr.init(e,t)}),si=f(`$ZodKSUID`,(e,t)=>{t.pattern??=Jt,Xr.init(e,t)}),ci=f(`$ZodISODateTime`,(e,t)=>{t.pattern??=Vt(t),Xr.init(e,t)}),li=f(`$ZodISODate`,(e,t)=>{t.pattern??=Cn,Xr.init(e,t)}),ui=f(`$ZodISOTime`,(e,t)=>{t.pattern??=Bt(t),Xr.init(e,t)}),di=f(`$ZodISODuration`,(e,t)=>{t.pattern??=Xt,Xr.init(e,t)}),fi=f(`$ZodIPv4`,(e,t)=>{t.pattern??=dn,Xr.init(e,t),e._zod.bag.format=`ipv4`}),pi=f(`$ZodIPv6`,(e,t)=>{t.pattern??=fn,Xr.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),mi=f(`$ZodMAC`,(e,t)=>{t.pattern??=pn(t.delimiter),Xr.init(e,t),e._zod.bag.format=`mac`}),hi=f(`$ZodCIDRv4`,(e,t)=>{t.pattern??=mn,Xr.init(e,t)}),gi=f(`$ZodCIDRv6`,(e,t)=>{t.pattern??=hn,Xr.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),_i=f(`$ZodBase64`,(e,t)=>{t.pattern??=gn,Xr.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Tr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),vi=f(`$ZodBase64URL`,(e,t)=>{t.pattern??=_n,Xr.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Er(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),yi=f(`$ZodE164`,(e,t)=>{t.pattern??=xn,Xr.init(e,t)}),bi=f(`$ZodJWT`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{Dr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),xi=f(`$ZodCustomStringFormat`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Si=f(`$ZodNumber`,(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??Dn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ci=f(`$ZodNumberFormat`,(e,t)=>{nr.init(e,t),Si.init(e,t)}),wi=f(`$ZodBoolean`,(e,t)=>{A.init(e,t),e._zod.pattern=On,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ti=f(`$ZodBigInt`,(e,t)=>{A.init(e,t),e._zod.pattern=Tn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ei=f(`$ZodBigIntFormat`,(e,t)=>{rr.init(e,t),Ti.init(e,t)}),Di=f(`$ZodSymbol`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Oi=f(`$ZodUndefined`,(e,t)=>{A.init(e,t),e._zod.pattern=An,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),ki=f(`$ZodNull`,(e,t)=>{A.init(e,t),e._zod.pattern=kn,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ai=f(`$ZodAny`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),ji=f(`$ZodUnknown`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),Mi=f(`$ZodNever`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Ni=f(`$ZodVoid`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Pi=f(`$ZodDate`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Fi=f(`$ZodArray`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Or(t,n,e))):Or(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Ii=f(`$ZodObject`,(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,\"shape\",{get:()=>{let n={...e};return Object.defineProperty(t,\"shape\",{value:n}),n}})}let n=se(()=>Ar(t));C(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ve,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>kr(n,t,e,s,r,i))):kr(a,t,e,s,r,i)}return i?jr(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Li=f(`$ZodObjectJIT`,(e,t)=>{Ii.init(e,t);let n=e._zod.parse,r=se(()=>Ar(t)),i=e=>{let t=new xr([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ge(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ge(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`\n if (${n}.issues.length) {\n if (${o} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):c?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${o} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${o}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n }\n\n `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ve,s=!y.jitless,c=s&&Xe.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?jr([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Ri=f(`$ZodUnion`,(e,t)=>{A.init(e,t),C(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),C(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),C(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),C(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>le(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Mr(t,r,e,i)):Mr(o,r,e,i)}}),zi=f(`$ZodXor`,(e,t)=>{Ri.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Nr(t,r,e,i)):Nr(o,r,e,i)}}),Bi=f(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ri.init(e,t);let n=e._zod.parse;C(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(n)}\"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=se(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(r)}\"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value \"${String(t)}\"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ve(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Vi=f(`$ZodIntersection`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Fr(e,t,n)):Fr(e,i,a)}}),Hi=f(`$ZodTuple`,(e,t)=>{A.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Ir(n,`optin`),c=Ir(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Lr(t,r,e))):Lr(a,r,e)}}return o.length?Promise.all(o).then(()=>Rr(l,r,n,a,c)):Rr(l,r,n,a,c)}}),j=f(`$ZodRecord`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ye(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Le(e,r,p())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Fe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Fe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Dn.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Le(e,r,p())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Fe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Fe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Ui=f(`$ZodMap`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{zr(t,a,n,o,i,e,r)})):zr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Wi=f(`$ZodSet`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>Br(e,n))):Br(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Gi=f(`$ZodEnum`,(e,t)=>{A.init(e,t);let n=ae(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Qe.has(typeof e)).map(e=>typeof e==`string`?Se(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ki=f(`$ZodLiteral`,(e,t)=>{if(A.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Se(e):e?Se(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),qi=f(`$ZodFile`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Ji=f(`$ZodTransform`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _;return n.value=i,n.fallback=!0,n}}),Yi=f(`$ZodOptional`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${le(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Vr(e,r)):Vr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Xi=f(`$ZodExactOptional`,(e,t)=>{Yi.init(e,t),C(e._zod,`values`,()=>t.innerType._zod.values),C(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Zi=f(`$ZodNullable`,(e,t)=>{A.init(e,t),C(e._zod,`optin`,()=>t.innerType._zod.optin),C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${le(e.source)}|null)$`):void 0}),C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Qi=f(`$ZodDefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Hr(e,t)):Hr(r,t)}}),$i=f(`$ZodPrefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ea=f(`$ZodNonOptional`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ur(t,e)):Ur(i,e)}}),ta=f(`$ZodSuccess`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new v(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),na=f(`$ZodCatch`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ra=f(`$ZodNaN`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),ia=f(`$ZodPipe`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>t.in._zod.values),C(e._zod,`optin`,()=>t.in._zod.optin),C(e._zod,`optout`,()=>t.out._zod.optout),C(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.in,n)):Wr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.out,n)):Wr(r,t.out,n)}}),aa=f(`$ZodCodec`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>t.in._zod.values),C(e._zod,`optin`,()=>t.in._zod.optin),C(e._zod,`optout`,()=>t.out._zod.optout),C(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}}}),oa=f(`$ZodPreprocess`,(e,t)=>{ia.init(e,t)}),sa=f(`$ZodReadonly`,(e,t)=>{A.init(e,t),C(e._zod,`propValues`,()=>t.innerType._zod.propValues),C(e._zod,`values`,()=>t.innerType._zod.values),C(e._zod,`optin`,()=>t.innerType?._zod?.optin),C(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(qr):qr(r)}}),ca=f(`$ZodTemplateLiteral`,(e,t)=>{A.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||$e.has(typeof e))n.push(Se(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),la=f(`$ZodFunction`,(e,t)=>(A.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?pt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?pt(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await ht(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ht(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Hi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),ua=f(`$ZodPromise`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),da=f(`$ZodLazy`,(e,t)=>{A.init(e,t),C(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),C(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),C(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),C(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),C(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),fa=f(`$ZodCustom`,(e,t)=>{Zn.init(e,t),A.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Jr(t,n,r,e));Jr(i,n,r,e)}})}));function ma(){return{localeError:ha()}}var ha,ga=t((()=>{k(),ha=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${D(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ \"${e.prefix}\"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ \"${t.suffix}\"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن \"${t.includes}\"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function _a(){return{localeError:va()}}var va,ya=t((()=>{k(),va=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${D(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: \"${t.prefix}\" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: \"${t.suffix}\" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: \"${t.includes}\" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function ba(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function xa(){return{localeError:Sa()}}var Sa,Ca=t((()=>{k(),Sa=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${D(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ba(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ba(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з \"${t.prefix}\"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на \"${t.suffix}\"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць \"${t.includes}\"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function wa(){return{localeError:Ta()}}var Ta,Ea=t((()=>{k(),Ta=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${D(e.values[0])}`:`Невалидна опция: очаквано едно от ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с \"${t.prefix}\"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с \"${t.suffix}\"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва \"${t.includes}\"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function Da(){return{localeError:Oa()}}var Oa,ka=t((()=>{k(),Oa=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${D(e.values[0])}`:`Opció invàlida: s'esperava una de ${S(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb \"${t.prefix}\"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb \"${t.suffix}\"`:t.format===`includes`?`Format invàlid: ha d'incloure \"${t.includes}\"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function Aa(){return{localeError:ja()}}var ja,Ma=t((()=>{k(),ja=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${D(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na \"${t.prefix}\"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na \"${t.suffix}\"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat \"${t.includes}\"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function Na(){return{localeError:Pa()}}var Pa,Fa=t((()=>{k(),Pa=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${D(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: skal ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: skal indeholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function Ia(){return{localeError:La()}}var La,Ra=t((()=>{k(),La=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${D(e.values[0])}`:`Ungültige Option: erwartet eine von ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit \"${t.suffix}\" enden`:t.format===`includes`?`Ungültiger String: muss \"${t.includes}\" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function za(){return{localeError:Ba()}}var Ba,Va=t((()=>{k(),Ba=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${D(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${t.prefix}\"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${t.suffix}\"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${t.includes}\"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Ha(){return{localeError:Ua()}}var Ua,Wa=t((()=>{k(),Ua=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Invalid option: expected one of ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with \"${t.prefix}\"`:t.format===`ends_with`?`Invalid string: must end with \"${t.suffix}\"`:t.format===`includes`?`Invalid string: must include \"${t.includes}\"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Ga(){return{localeError:Ka()}}var Ka,qa=t((()=>{k(),Ka=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${D(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per \"${t.prefix}\"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per \"${t.suffix}\"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi \"${t.includes}\"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function Ja(){return{localeError:Ya()}}var Ya,Xa=t((()=>{k(),Ya=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${D(e.values[0])}`:`Opción inválida: se esperaba una de ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con \"${t.prefix}\"`:t.format===`ends_with`?`Cadena inválida: debe terminar en \"${t.suffix}\"`:t.format===`includes`?`Cadena inválida: debe incluir \"${t.includes}\"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Za(){return{localeError:Qa()}}var Qa,$a=t((()=>{k(),Qa=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${D(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${S(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با \"${t.prefix}\" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با \"${t.suffix}\" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل \"${t.includes}\" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${S(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function eo(){return{localeError:to()}}var to,no=t((()=>{k(),to=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${D(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa \"${t.prefix}\"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua \"${t.suffix}\"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää \"${t.includes}\"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function ro(){return{localeError:io()}}var io,ao=t((()=>{k(),io=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${D(e.values[0])} attendu`:`Option invalide : une valeur parmi ${S(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function oo(){return{localeError:so()}}var so,co=t((()=>{k(),so=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${D(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function lo(){return{localeError:uo()}}var uo,fo=t((()=>{k(),uo=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=O(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${D(t.values[0])}`;let e=t.values.map(e=>D(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב \"${e.prefix}\"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב \"${e.suffix}\"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול \"${e.includes}\"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${S(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function po(){return{localeError:mo()}}var mo,ho=t((()=>{k(),mo=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${D(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s \"${t.prefix}\"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s \"${t.suffix}\"`:t.format===`includes`?`Neispravan tekst: mora sadržavati \"${t.includes}\"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function go(){return{localeError:_o()}}var _o,vo=t((()=>{k(),_o=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${D(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: \"${t.prefix}\" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: \"${t.suffix}\" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: \"${t.includes}\" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function yo(e,t,n){return Math.abs(e)===1?t:n}function bo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function xo(){return{localeError:M()}}var M,So=t((()=>{k(),M=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${D(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=yo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${bo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${bo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=yo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${bo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${bo(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի \"${t.prefix}\"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի \"${t.suffix}\"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի \"${t.includes}\"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${S(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${bo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${bo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function Co(){return{localeError:wo()}}var wo,To=t((()=>{k(),wo=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${D(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak valid: harus menyertakan \"${t.includes}\"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function Eo(){return{localeError:Do()}}var Do,Oo=t((()=>{k(),Do=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${D(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á \"${t.prefix}\"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á \"${t.suffix}\"`:t.format===`includes`?`Ógildur strengur: verður að innihalda \"${t.includes}\"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function ko(){return{localeError:Ao()}}var Ao,jo=t((()=>{k(),Ao=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${D(e.values[0])}`:`Opzione non valida: atteso uno tra ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con \"${t.prefix}\"`:t.format===`ends_with`?`Stringa non valida: deve terminare con \"${t.suffix}\"`:t.format===`includes`?`Stringa non valida: deve includere \"${t.includes}\"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function Mo(){return{localeError:No()}}var No,Po=t((()=>{k(),No=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${D(e.values[0])}が期待されました`:`無効な選択: ${S(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: \"${t.prefix}\"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: \"${t.suffix}\"で終わる必要があります`:t.format===`includes`?`無効な文字列: \"${t.includes}\"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Fo(){return{localeError:Io()}}var Io,Lo=t((()=>{k(),Io=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${D(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${S(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს \"${t.prefix}\"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს \"${t.suffix}\"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს \"${t.includes}\"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function Ro(){return{localeError:zo()}}var zo,Bo=t((()=>{k(),zo=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${D(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${t.prefix}\"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${t.suffix}\"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${t.includes}\"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${S(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Vo(){return Ro()}var Ho=t((()=>{Bo()}));function Uo(){return{localeError:Wo()}}var Wo,Go=t((()=>{k(),Wo=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${D(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${S(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: \"${t.prefix}\"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: \"${t.suffix}\"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: \"${t.includes}\"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${S(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Ko(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function qo(){return{localeError:Yo()}}var Jo,Yo,Xo=t((()=>{k(),Jo=e=>e.charAt(0).toUpperCase()+e.slice(1),Yo=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${D(e.values[0])}`:`Privalo būti vienas iš ${S(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti \"${t.prefix}\"`:t.format===`ends_with`?`Eilutė privalo pasibaigti \"${t.suffix}\"`:t.format===`includes`?`Eilutė privalo įtraukti \"${t.includes}\"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Jo(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Zo(){return{localeError:Qo()}}var Qo,$o=t((()=>{k(),Qo=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Грешана опција: се очекува една ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со \"${t.prefix}\"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со \"${t.suffix}\"`:t.format===`includes`?`Неважечка низа: мора да вклучува \"${t.includes}\"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function es(){return{localeError:ts()}}var ts,ns=t((()=>{k(),ts=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${D(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak sah: mesti mengandungi \"${t.includes}\"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function rs(){return{localeError:is()}}var is,as=t((()=>{k(),is=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${D(e.values[0])}`:`Ongeldige optie: verwacht één van ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op \"${t.suffix}\" eindigen`:t.format===`includes`?`Ongeldige tekst: moet \"${t.includes}\" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function os(){return{localeError:ss()}}var ss,cs=t((()=>{k(),ss=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${D(e.values[0])}`:`Ugyldig valg: forventet en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: må ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: må inneholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function ls(){return{localeError:us()}}var us,ds=t((()=>{k(),us=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${D(e.values[0])}`:`Fâsit tercih: mûteberler ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: \"${t.prefix}\" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: \"${t.suffix}\" ile bitmeli.`:t.format===`includes`?`Fâsit metin: \"${t.includes}\" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function fs(){return{localeError:ps()}}var ps,ms=t((()=>{k(),ps=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${D(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${S(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د \"${t.prefix}\" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د \"${t.suffix}\" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید \"${t.includes}\" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function hs(){return{localeError:gs()}}var gs,_s=t((()=>{k(),gs=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${D(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od \"${t.prefix}\"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na \"${t.suffix}\"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać \"${t.includes}\"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function vs(){return{localeError:ys()}}var ys,bs=t((()=>{k(),ys=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${D(e.values[0])}`:`Opção inválida: esperada uma das ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com \"${t.prefix}\"`:t.format===`ends_with`?`Texto inválido: deve terminar com \"${t.suffix}\"`:t.format===`includes`?`Texto inválido: deve incluir \"${t.includes}\"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function xs(){return{localeError:Ss()}}var Ss,Cs=t((()=>{k(),Ss=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${D(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu \"${t.prefix}\"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu \"${t.suffix}\"`:t.format===`includes`?`Șir invalid: trebuie să includă \"${t.includes}\"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${S(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function ws(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function Ts(){return{localeError:Es()}}var Es,Ds=t((()=>{k(),Es=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${D(e.values[0])}`:`Неверный вариант: ожидалось одно из ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ws(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ws(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с \"${t.prefix}\"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на \"${t.suffix}\"`:t.format===`includes`?`Неверная строка: должна содержать \"${t.includes}\"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function Os(){return{localeError:ks()}}var ks,As=t((()=>{k(),ks=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${D(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z \"${t.prefix}\"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z \"${t.suffix}\"`:t.format===`includes`?`Neveljaven niz: mora vsebovati \"${t.includes}\"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function js(){return{localeError:Ms()}}var Ms,Ns=t((()=>{k(),Ms=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${D(e.values[0])}`:`Ogiltigt val: förväntade en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med \"${t.prefix}\"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med \"${t.suffix}\"`:t.format===`includes`?`Ogiltig sträng: måste innehålla \"${t.includes}\"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret \"${t.pattern}\"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Ps(){return{localeError:Fs()}}var Fs,Is=t((()=>{k(),Fs=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${D(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${S(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: \"${t.prefix}\" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: \"${t.suffix}\" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: \"${t.includes}\" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function Ls(){return{localeError:Rs()}}var Rs,zs=t((()=>{k(),Rs=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${D(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${t.prefix}\"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${t.suffix}\"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${t.includes}\" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${S(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Bs(){return{localeError:Vs()}}var Vs,Hs=t((()=>{k(),Vs=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${D(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: \"${t.prefix}\" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: \"${t.suffix}\" ile bitmeli`:t.format===`includes`?`Geçersiz metin: \"${t.includes}\" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Us(){return{localeError:Ws()}}var Ws,Gs=t((()=>{k(),Ws=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${D(e.values[0])}`:`Неправильна опція: очікується одне з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з \"${t.prefix}\"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на \"${t.suffix}\"`:t.format===`includes`?`Неправильний рядок: повинен містити \"${t.includes}\"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Ks(){return Us()}var qs=t((()=>{Gs()}));function Js(){return{localeError:Ys()}}var Ys,Xs=t((()=>{k(),Ys=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${D(e.values[0])} متوقع تھا`:`غلط آپشن: ${S(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: \"${t.prefix}\" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: \"${t.suffix}\" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: \"${t.includes}\" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Zs(){return{localeError:Qs()}}var Qs,$s=t((()=>{k(),Qs=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${D(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: \"${t.prefix}\" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: \"${t.suffix}\" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: \"${t.includes}\" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function ec(){return{localeError:tc()}}var tc,nc=t((()=>{k(),tc=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${D(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng \"${t.prefix}\"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng \"${t.suffix}\"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm \"${t.includes}\"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${S(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function rc(){return{localeError:ic()}}var ic,ac=t((()=>{k(),ic=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${D(e.values[0])}`:`无效选项:期望以下之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 \"${t.prefix}\" 开头`:t.format===`ends_with`?`无效字符串:必须以 \"${t.suffix}\" 结尾`:t.format===`includes`?`无效字符串:必须包含 \"${t.includes}\"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function oc(){return{localeError:sc()}}var sc,cc=t((()=>{k(),sc=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${D(e.values[0])}`:`無效的選項:預期為以下其中之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 \"${t.prefix}\" 開頭`:t.format===`ends_with`?`無效的字串:必須以 \"${t.suffix}\" 結尾`:t.format===`includes`?`無效的字串:必須包含 \"${t.includes}\"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function lc(){return{localeError:uc()}}var uc,dc=t((()=>{k(),uc=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${D(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${t.prefix}\"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${t.suffix}\"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${t.includes}\"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${S(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),fc=r({ar:()=>ma,az:()=>_a,be:()=>xa,bg:()=>wa,ca:()=>Da,cs:()=>Aa,da:()=>Na,de:()=>Ia,el:()=>za,en:()=>Ha,eo:()=>Ga,es:()=>Ja,fa:()=>Za,fi:()=>eo,fr:()=>ro,frCA:()=>oo,he:()=>lo,hr:()=>po,hu:()=>go,hy:()=>xo,id:()=>Co,is:()=>Eo,it:()=>ko,ja:()=>Mo,ka:()=>Fo,kh:()=>Vo,km:()=>Ro,ko:()=>Uo,lt:()=>qo,mk:()=>Zo,ms:()=>es,nl:()=>rs,no:()=>os,ota:()=>ls,pl:()=>hs,ps:()=>fs,pt:()=>vs,ro:()=>xs,ru:()=>Ts,sl:()=>Os,sv:()=>js,ta:()=>Ps,th:()=>Ls,tr:()=>Bs,ua:()=>Ks,uk:()=>Us,ur:()=>Js,uz:()=>Zs,vi:()=>ec,yo:()=>lc,zhCN:()=>rc,zhTW:()=>oc}),pc=t((()=>{ga(),ya(),Ca(),Ea(),ka(),Ma(),Fa(),Ra(),Va(),Wa(),qa(),Xa(),$a(),no(),ao(),co(),fo(),ho(),vo(),So(),To(),Oo(),jo(),Po(),Lo(),Ho(),Bo(),Go(),Xo(),$o(),ns(),as(),cs(),ds(),ms(),_s(),bs(),Cs(),Ds(),As(),Ns(),Is(),zs(),Hs(),qs(),Gs(),Xs(),$s(),nc(),ac(),cc(),dc()}));function mc(){return new vc}var hc,gc,_c,vc,yc,bc=t((()=>{gc=Symbol(`ZodOutput`),_c=Symbol(`ZodInput`),vc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(hc=globalThis).__zod_globalRegistry??(hc.__zod_globalRegistry=mc()),yc=globalThis.__zod_globalRegistry}));function xc(e,t){return new e({type:`string`,...E(t)})}function Sc(e,t){return new e({type:`string`,coerce:!0,...E(t)})}function Cc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function wc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Tc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function Ec(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function Dc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function Oc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function kc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Ac(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function jc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Mc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Nc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function Pc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Fc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Ic(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Lc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function Rc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function zc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...E(t)})}function Bc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function Vc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function Hc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function Uc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function Wc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function Gc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function Kc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function qc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Jc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function Yc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Xc(e,t){return new e({type:`number`,checks:[],...E(t)})}function Zc(e,t){return new e({type:`number`,coerce:!0,checks:[],...E(t)})}function Qc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...E(t)})}function $c(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...E(t)})}function el(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...E(t)})}function tl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...E(t)})}function nl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...E(t)})}function rl(e,t){return new e({type:`boolean`,...E(t)})}function il(e,t){return new e({type:`boolean`,coerce:!0,...E(t)})}function al(e,t){return new e({type:`bigint`,...E(t)})}function ol(e,t){return new e({type:`bigint`,coerce:!0,...E(t)})}function sl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...E(t)})}function cl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...E(t)})}function ll(e,t){return new e({type:`symbol`,...E(t)})}function ul(e,t){return new e({type:`undefined`,...E(t)})}function dl(e,t){return new e({type:`null`,...E(t)})}function fl(e){return new e({type:`any`})}function pl(e){return new e({type:`unknown`})}function ml(e,t){return new e({type:`never`,...E(t)})}function hl(e,t){return new e({type:`void`,...E(t)})}function gl(e,t){return new e({type:`date`,...E(t)})}function _l(e,t){return new e({type:`date`,coerce:!0,...E(t)})}function vl(e,t){return new e({type:`nan`,...E(t)})}function yl(e,t){return new $n({check:`less_than`,...E(t),value:e,inclusive:!1})}function N(e,t){return new $n({check:`less_than`,...E(t),value:e,inclusive:!0})}function bl(e,t){return new er({check:`greater_than`,...E(t),value:e,inclusive:!1})}function xl(e,t){return new er({check:`greater_than`,...E(t),value:e,inclusive:!0})}function Sl(e){return bl(0,e)}function Cl(e){return yl(0,e)}function wl(e){return N(0,e)}function Tl(e){return xl(0,e)}function El(e,t){return new tr({check:`multiple_of`,...E(t),value:e})}function Dl(e,t){return new ir({check:`max_size`,...E(t),maximum:e})}function Ol(e,t){return new ar({check:`min_size`,...E(t),minimum:e})}function kl(e,t){return new or({check:`size_equals`,...E(t),size:e})}function Al(e,t){return new sr({check:`max_length`,...E(t),maximum:e})}function jl(e,t){return new cr({check:`min_length`,...E(t),minimum:e})}function Ml(e,t){return new lr({check:`length_equals`,...E(t),length:e})}function Nl(e,t){return new dr({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Pl(e){return new fr({check:`string_format`,format:`lowercase`,...E(e)})}function Fl(e){return new pr({check:`string_format`,format:`uppercase`,...E(e)})}function Il(e,t){return new mr({check:`string_format`,format:`includes`,...E(t),includes:e})}function Ll(e,t){return new hr({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function Rl(e,t){return new gr({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function zl(e,t,n){return new _r({check:`property`,property:e,schema:t,...E(n)})}function Bl(e,t){return new vr({check:`mime_type`,mime:e,...E(t)})}function Vl(e){return new yr({check:`overwrite`,tx:e})}function Hl(e){return Vl(t=>t.normalize(e))}function Ul(){return Vl(e=>e.trim())}function Wl(){return Vl(e=>e.toLowerCase())}function Gl(){return Vl(e=>e.toUpperCase())}function Kl(){return Vl(e=>_e(e))}function ql(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Jl(e,t,n){return new e({type:`union`,options:t,...E(n)})}function Yl(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...E(n)})}function Xl(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...E(r)})}function P(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Zl(e,t,n,r){let i=n instanceof A;return new e({type:`tuple`,items:t,rest:i?n:null,...E(i?r:n)})}function F(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...E(r)})}function I(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...E(r)})}function Ql(e,t,n){return new e({type:`set`,valueType:t,...E(n)})}function $l(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...E(n)})}function eu(e,t,n){return new e({type:`enum`,entries:t,...E(n)})}function tu(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...E(n)})}function nu(e,t){return new e({type:`file`,...E(t)})}function ru(e,t){return new e({type:`transform`,transform:t})}function iu(e,t){return new e({type:`optional`,innerType:t})}function au(e,t){return new e({type:`nullable`,innerType:t})}function ou(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():be(n)}})}function su(e,t,n){return new e({type:`nonoptional`,innerType:t,...E(n)})}function cu(e,t){return new e({type:`success`,innerType:t})}function lu(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function uu(e,t,n){return new e({type:`pipe`,in:t,out:n})}function du(e,t){return new e({type:`readonly`,innerType:t})}function fu(e,t,n){return new e({type:`template_literal`,parts:t,...E(n)})}function pu(e,t){return new e({type:`lazy`,getter:t})}function mu(e,t){return new e({type:`promise`,innerType:t})}function hu(e,t,n){let r=E(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function gu(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function _u(e,t){let n=vu(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Be(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Be(r))}},e(t.value,t)),t);return n}function vu(e,t){let n=new Zn({check:`custom`,...E(t)});return n._zod.check=e,n}function yu(e){let t=new Zn({check:`describe`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function bu(e){let t=new Zn({check:`meta`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function xu(e,t){let n=E(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??aa,c=e.Boolean??wi,l=new s({type:`pipe`,in:new(e.String??Yr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function Su(e,t,n,r={}){let i=E(r),a={...E(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var Cu,wu=t((()=>{br(),bc(),pa(),k(),Cu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function Tu(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??yc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function L(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,L(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ou(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Eu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id \"${n}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>\n\nSet the \\`cycles\\` parameter to \\`\"ref\"\\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Du(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error(\"Schema is missing an `id` property\");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,\"~standard\",{value:{...t[`~standard`],jsonSchema:{input:Au(t,`input`,e.processors),output:Au(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ou(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ou(r.element,n);if(r.type===`set`)return Ou(r.valueType,n);if(r.type===`lazy`)return Ou(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===\"default\"||r.type===`prefault`)return Ou(r.innerType,n);if(r.type===`intersection`)return Ou(r.left,n)||Ou(r.right,n);if(r.type===`record`||r.type===`map`)return Ou(r.keyType,n)||Ou(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Ou(r.in,n)||Ou(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ou(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ou(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ou(e,n))return!0;return!!(r.rest&&Ou(r.rest,n))}return!1}var ku,Au,ju=t((()=>{bc(),ku=(e,t={})=>n=>{let r=Tu({...n,processors:t});return L(e,r),Eu(r,e),Du(r,e)},Au=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Tu({...i??{},target:a,io:t,processors:n});return L(e,o),Eu(o,e),Du(o,e)}}));function Mu(e,t){if(`_idmap`in e){let n=e,r=Tu({...t,processors:vd}),i={};for(let e of n._idmap.entries()){let[t,n]=e;L(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Eu(r,n),a[t]=Du(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=Tu({...t,processors:vd});return L(e,n),Eu(n,e),Du(n,e)}var Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,R,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd=t((()=>{ju(),k(),Nu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Pu=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Nu[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Fu=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Iu=(e,t,n,r)=>{n.type=`boolean`},Lu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Ru=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},zu=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Bu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Vu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Hu=(e,t,n,r)=>{n.not={}},Uu=(e,t,n,r)=>{},Wu=(e,t,n,r)=>{},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{let i=e._zod.def,a=ae(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},qu=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error(\"Literal `undefined` cannot be represented in JSON Schema\")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Ju=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Yu=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Xu=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Zu=(e,t,n,r)=>{n.type=`boolean`},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},ed=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},td=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},nd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},rd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=L(a.element,t,{...r,path:[...r.path,`items`]})},R=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=L(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=L(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},id=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>L(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},ad=(e,t,n,r)=>{let i=e._zod.def,a=L(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=L(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},od=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>L(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?L(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},sd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=L(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=L(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=L(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},cd=(e,t,n,r)=>{let i=e._zod.def,a=L(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ld=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ud=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},dd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},fd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},pd=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;L(o,t,r);let s=t.seen.get(e);s.ref=o},md=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},hd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_d=(e,t,n,r)=>{let i=e._zod.innerType;L(i,t,r);let a=t.seen.get(e);a.ref=i},vd={string:Pu,number:Fu,boolean:Iu,bigint:Lu,symbol:Ru,null:zu,undefined:Bu,void:Vu,never:Hu,any:Uu,unknown:Wu,date:Gu,enum:Ku,literal:qu,nan:Ju,template_literal:Yu,file:Xu,success:Zu,custom:Qu,function:$u,transform:ed,map:td,set:nd,array:rd,object:R,union:id,intersection:ad,tuple:od,record:sd,nullable:cd,nonoptional:ld,default:ud,prefault:dd,catch:fd,pipe:pd,readonly:md,promise:hd,optional:gd,lazy:_d}})),bd,xd=t((()=>{yd(),ju(),bd=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=Tu({processors:vd,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return L(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Eu(this.ctx,e);let{\"~standard\":n,...r}=Du(this.ctx,e);return r}}})),Sd=r({}),Cd=t((()=>{})),wd=r({$ZodAny:()=>Ai,$ZodArray:()=>Fi,$ZodAsyncError:()=>_,$ZodBase64:()=>_i,$ZodBase64URL:()=>vi,$ZodBigInt:()=>Ti,$ZodBigIntFormat:()=>Ei,$ZodBoolean:()=>wi,$ZodCIDRv4:()=>hi,$ZodCIDRv6:()=>gi,$ZodCUID:()=>ri,$ZodCUID2:()=>ii,$ZodCatch:()=>na,$ZodCheck:()=>Zn,$ZodCheckBigIntFormat:()=>rr,$ZodCheckEndsWith:()=>gr,$ZodCheckGreaterThan:()=>er,$ZodCheckIncludes:()=>mr,$ZodCheckLengthEquals:()=>lr,$ZodCheckLessThan:()=>$n,$ZodCheckLowerCase:()=>fr,$ZodCheckMaxLength:()=>sr,$ZodCheckMaxSize:()=>ir,$ZodCheckMimeType:()=>vr,$ZodCheckMinLength:()=>cr,$ZodCheckMinSize:()=>ar,$ZodCheckMultipleOf:()=>tr,$ZodCheckNumberFormat:()=>nr,$ZodCheckOverwrite:()=>yr,$ZodCheckProperty:()=>_r,$ZodCheckRegex:()=>dr,$ZodCheckSizeEquals:()=>or,$ZodCheckStartsWith:()=>hr,$ZodCheckStringFormat:()=>ur,$ZodCheckUpperCase:()=>pr,$ZodCodec:()=>aa,$ZodCustom:()=>fa,$ZodCustomStringFormat:()=>xi,$ZodDate:()=>Pi,$ZodDefault:()=>Qi,$ZodDiscriminatedUnion:()=>Bi,$ZodE164:()=>yi,$ZodEmail:()=>$r,$ZodEmoji:()=>ti,$ZodEncodeError:()=>v,$ZodEnum:()=>Gi,$ZodError:()=>lt,$ZodExactOptional:()=>Xi,$ZodFile:()=>qi,$ZodFunction:()=>la,$ZodGUID:()=>Zr,$ZodIPv4:()=>fi,$ZodIPv6:()=>pi,$ZodISODate:()=>li,$ZodISODateTime:()=>ci,$ZodISODuration:()=>di,$ZodISOTime:()=>ui,$ZodIntersection:()=>Vi,$ZodJWT:()=>bi,$ZodKSUID:()=>si,$ZodLazy:()=>da,$ZodLiteral:()=>Ki,$ZodMAC:()=>mi,$ZodMap:()=>Ui,$ZodNaN:()=>ra,$ZodNanoID:()=>ni,$ZodNever:()=>Mi,$ZodNonOptional:()=>ea,$ZodNull:()=>ki,$ZodNullable:()=>Zi,$ZodNumber:()=>Si,$ZodNumberFormat:()=>Ci,$ZodObject:()=>Ii,$ZodObjectJIT:()=>Li,$ZodOptional:()=>Yi,$ZodPipe:()=>ia,$ZodPrefault:()=>$i,$ZodPreprocess:()=>oa,$ZodPromise:()=>ua,$ZodReadonly:()=>sa,$ZodRealError:()=>ut,$ZodRecord:()=>j,$ZodRegistry:()=>vc,$ZodSet:()=>Wi,$ZodString:()=>Yr,$ZodStringFormat:()=>Xr,$ZodSuccess:()=>ta,$ZodSymbol:()=>Di,$ZodTemplateLiteral:()=>ca,$ZodTransform:()=>Ji,$ZodTuple:()=>Hi,$ZodType:()=>A,$ZodULID:()=>ai,$ZodURL:()=>ei,$ZodUUID:()=>Qr,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ri,$ZodUnknown:()=>ji,$ZodVoid:()=>Ni,$ZodXID:()=>oi,$ZodXor:()=>zi,$brand:()=>g,$constructor:()=>f,$input:()=>_c,$output:()=>gc,Doc:()=>xr,JSONSchema:()=>Sd,JSONSchemaGenerator:()=>bd,NEVER:()=>h,TimePrecision:()=>Cu,_any:()=>fl,_array:()=>ql,_base64:()=>Hc,_base64url:()=>Uc,_bigint:()=>al,_boolean:()=>rl,_catch:()=>lu,_check:()=>vu,_cidrv4:()=>Bc,_cidrv6:()=>Vc,_coercedBigint:()=>ol,_coercedBoolean:()=>il,_coercedDate:()=>_l,_coercedNumber:()=>Zc,_coercedString:()=>Sc,_cuid:()=>Mc,_cuid2:()=>Nc,_custom:()=>hu,_date:()=>gl,_decode:()=>St,_decodeAsync:()=>Et,_default:()=>ou,_discriminatedUnion:()=>Xl,_e164:()=>Wc,_email:()=>Cc,_emoji:()=>Ac,_encode:()=>bt,_encodeAsync:()=>wt,_endsWith:()=>Rl,_enum:()=>$l,_file:()=>nu,_float32:()=>$c,_float64:()=>el,_gt:()=>bl,_gte:()=>xl,_guid:()=>wc,_includes:()=>Il,_int:()=>Qc,_int32:()=>tl,_int64:()=>sl,_intersection:()=>P,_ipv4:()=>Lc,_ipv6:()=>Rc,_isoDate:()=>qc,_isoDateTime:()=>Kc,_isoDuration:()=>Yc,_isoTime:()=>Jc,_jwt:()=>Gc,_ksuid:()=>Ic,_lazy:()=>pu,_length:()=>Ml,_literal:()=>tu,_lowercase:()=>Pl,_lt:()=>yl,_lte:()=>N,_mac:()=>zc,_map:()=>I,_max:()=>N,_maxLength:()=>Al,_maxSize:()=>Dl,_mime:()=>Bl,_min:()=>xl,_minLength:()=>jl,_minSize:()=>Ol,_multipleOf:()=>El,_nan:()=>vl,_nanoid:()=>jc,_nativeEnum:()=>eu,_negative:()=>Cl,_never:()=>ml,_nonnegative:()=>Tl,_nonoptional:()=>su,_nonpositive:()=>wl,_normalize:()=>Hl,_null:()=>dl,_nullable:()=>au,_number:()=>Xc,_optional:()=>iu,_overwrite:()=>Vl,_parse:()=>ft,_parseAsync:()=>mt,_pipe:()=>uu,_positive:()=>Sl,_promise:()=>mu,_property:()=>zl,_readonly:()=>du,_record:()=>F,_refine:()=>gu,_regex:()=>Nl,_safeDecode:()=>At,_safeDecodeAsync:()=>Pt,_safeEncode:()=>Ot,_safeEncodeAsync:()=>Mt,_safeParse:()=>gt,_safeParseAsync:()=>vt,_set:()=>Ql,_size:()=>kl,_slugify:()=>Kl,_startsWith:()=>Ll,_string:()=>xc,_stringFormat:()=>Su,_stringbool:()=>xu,_success:()=>cu,_superRefine:()=>_u,_symbol:()=>ll,_templateLiteral:()=>fu,_toLowerCase:()=>Wl,_toUpperCase:()=>Gl,_transform:()=>ru,_trim:()=>Ul,_tuple:()=>Zl,_uint32:()=>nl,_uint64:()=>cl,_ulid:()=>Pc,_undefined:()=>ul,_union:()=>Jl,_unknown:()=>pl,_uppercase:()=>Fl,_url:()=>kc,_uuid:()=>Tc,_uuidv4:()=>Ec,_uuidv6:()=>Dc,_uuidv7:()=>Oc,_void:()=>hl,_xid:()=>Fc,_xor:()=>Yl,clone:()=>Ce,config:()=>p,createStandardJSONSchemaMethod:()=>Au,createToJSONSchemaMethod:()=>ku,decode:()=>Ct,decodeAsync:()=>Dt,describe:()=>yu,encode:()=>xt,encodeAsync:()=>Tt,extractDefs:()=>Eu,finalize:()=>Du,flattenError:()=>rt,formatError:()=>it,globalConfig:()=>y,globalRegistry:()=>yc,initializeContext:()=>Tu,isValidBase64:()=>Tr,isValidBase64URL:()=>Er,isValidJWT:()=>Dr,locales:()=>fc,meta:()=>bu,parse:()=>pt,parseAsync:()=>ht,prettifyError:()=>st,process:()=>L,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>jt,safeDecodeAsync:()=>Ft,safeEncode:()=>kt,safeEncodeAsync:()=>Nt,safeParse:()=>_t,safeParseAsync:()=>yt,toDotPath:()=>ot,toJSONSchema:()=>Mu,treeifyError:()=>at,util:()=>ee,version:()=>Cr}),Td=t((()=>{b(),It(),dt(),pa(),br(),wr(),k(),Yn(),pc(),bc(),Sr(),wu(),ju(),yd(),xd(),Cd()}));wu(),k(),Yn(),b(),It(),yd(),dt(),pc(),Td(),bc();function Ed(e){return!!e._zod}function Dd(e,t){return Ed(e)?_t(e,t):e.safeParse(t)}function Od(e){if(!e)return;let t;if(t=Ed(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function kd(e){if(Ed(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Ad=r({endsWith:()=>Rl,gt:()=>bl,gte:()=>xl,includes:()=>Il,length:()=>Ml,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,maxLength:()=>Al,maxSize:()=>Dl,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,negative:()=>Cl,nonnegative:()=>Tl,nonpositive:()=>wl,normalize:()=>Hl,overwrite:()=>Vl,positive:()=>Sl,property:()=>zl,regex:()=>Nl,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,toLowerCase:()=>Wl,toUpperCase:()=>Gl,trim:()=>Ul,uppercase:()=>Fl}),jd=t((()=>{Td()})),Md=r({ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,date:()=>Nd,datetime:()=>z,duration:()=>Fd,time:()=>Pd});function z(e){return Kc(Id,e)}function Nd(e){return qc(Ld,e)}function Pd(e){return Jc(Rd,e)}function Fd(e){return Yc(zd,e)}var Id,Ld,Rd,zd,Bd=t((()=>{Td(),$m(),Id=f(`ZodISODateTime`,(e,t)=>{ci.init(e,t),Z.init(e,t)}),Ld=f(`ZodISODate`,(e,t)=>{li.init(e,t),Z.init(e,t)}),Rd=f(`ZodISOTime`,(e,t)=>{ui.init(e,t),Z.init(e,t)}),zd=f(`ZodISODuration`,(e,t)=>{di.init(e,t),Z.init(e,t)})})),Vd,Hd,Ud,Wd=t((()=>{Td(),k(),Vd=(e,t)=>{lt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>it(e,t)},flatten:{value:t=>rt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,oe,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,oe,2)}},isEmpty:{get(){return e.issues.length===0}}})},Hd=f(`ZodError`,Vd),Ud=f(`ZodError`,Vd,{Parent:Error})})),Gd,B,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf=t((()=>{Td(),Wd(),Gd=ft(Ud),B=mt(Ud),Kd=gt(Ud),qd=vt(Ud),Jd=bt(Ud),Yd=St(Ud),Xd=wt(Ud),Zd=Et(Ud),Qd=Ot(Ud),$d=At(Ud),ef=Mt(Ud),tf=Pt(Ud)})),rf=r({ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodIntersection:()=>Cm,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,codec:()=>xp,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,enum:()=>op,exactOptional:()=>dp,file:()=>cp,float32:()=>Ff,float64:()=>If,function:()=>Dp,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,literal:()=>Y,looseObject:()=>Zf,looseRecord:()=>rp,mac:()=>Sf,map:()=>ip,meta:()=>Zm,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,never:()=>Kf,nonoptional:()=>gp,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,partialRecord:()=>np,pipe:()=>bp,prefault:()=>hp,preprocess:()=>Pp,promise:()=>Ep,readonly:()=>Cp,record:()=>J,refine:()=>Ap,set:()=>ap,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,transform:()=>lp,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,url:()=>ff,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf});function af(e,t,n){let r=Object.getPrototypeOf(e),i=Fp.get(r);if(i||(i=new Set,Fp.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function V(e){return xc(Lp,e)}function of(e){return Cc(Rp,e)}function sf(e){return wc(zp,e)}function cf(e){return Tc(Bp,e)}function lf(e){return Ec(Bp,e)}function uf(e){return Dc(Bp,e)}function df(e){return Oc(Bp,e)}function ff(e){return kc(Vp,e)}function pf(e){return kc(Vp,{protocol:bn,hostname:yn,...E(e)})}function mf(e){return Ac(Hp,e)}function hf(e){return jc(Up,e)}function gf(e){return Mc(Wp,e)}function _f(e){return Nc(Gp,e)}function vf(e){return Pc(Kp,e)}function yf(e){return Fc(qp,e)}function bf(e){return Ic(Jp,e)}function xf(e){return Lc(Yp,e)}function Sf(e){return zc(Xp,e)}function Cf(e){return Rc(Zp,e)}function wf(e){return Bc(Qp,e)}function Tf(e){return Vc($p,e)}function Ef(e){return Hc(em,e)}function Df(e){return Uc(tm,e)}function Of(e){return Wc(nm,e)}function kf(e){return Gc(rm,e)}function Af(e,t,n={}){return Su(im,e,t,n)}function jf(e){return Su(im,`hostname`,vn,e)}function Mf(e){return Su(im,`hex`,Nn,e)}function Nf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Lt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Su(im,n,r,t)}function H(e){return Xc(am,e)}function Pf(e){return Qc(om,e)}function Ff(e){return $c(om,e)}function If(e){return el(om,e)}function Lf(e){return tl(om,e)}function Rf(e){return nl(om,e)}function U(e){return rl(sm,e)}function zf(e){return al(cm,e)}function Bf(e){return sl(lm,e)}function Vf(e){return cl(lm,e)}function Hf(e){return ll(um,e)}function Uf(e){return ul(dm,e)}function Wf(e){return dl(fm,e)}function Gf(){return fl(pm)}function W(){return pl(mm)}function Kf(e){return ml(hm,e)}function qf(e){return hl(gm,e)}function Jf(e){return gl(_m,e)}function G(e,t){return ql(vm,e,t)}function Yf(e){let t=e._zod.def.shape;return op(Object.keys(t))}function K(e,t){return new ym({type:`object`,shape:e??{},...E(t)})}function Xf(e,t){return new ym({type:`object`,shape:e,catchall:Kf(),...E(t)})}function Zf(e,t){return new ym({type:`object`,shape:e,catchall:W(),...E(t)})}function q(e,t){return new bm({type:`union`,options:e,...E(t)})}function Qf(e,t){return new xm({type:`union`,options:e,inclusive:!1,...E(t)})}function $f(e,t,n){return new Sm({type:`union`,options:t,discriminator:e,...E(n)})}function ep(e,t){return new Cm({type:`intersection`,left:e,right:t})}function tp(e,t,n){let r=t instanceof A;return new wm({type:`tuple`,items:e,rest:r?t:null,...E(r?n:t)})}function J(e,t,n){return!t||!t._zod?new Tm({type:`record`,keyType:V(),valueType:e,...E(t)}):new Tm({type:`record`,keyType:e,valueType:t,...E(n)})}function np(e,t,n){let r=Ce(e);return r._zod.values=void 0,new Tm({type:`record`,keyType:r,valueType:t,...E(n)})}function rp(e,t,n){return new Tm({type:`record`,keyType:e,valueType:t,mode:`loose`,...E(n)})}function ip(e,t,n){return new Em({type:`map`,keyType:e,valueType:t,...E(n)})}function ap(e,t){return new Dm({type:`set`,valueType:e,...E(t)})}function op(e,t){return new Om({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}function sp(e,t){return new Om({type:`enum`,entries:e,...E(t)})}function Y(e,t){return new km({type:`literal`,values:Array.isArray(e)?e:[e],...E(t)})}function cp(e){return nu(Am,e)}function lp(e){return new jm({type:`transform`,transform:e})}function up(e){return new Mm({type:`optional`,innerType:e})}function dp(e){return new Nm({type:`optional`,innerType:e})}function fp(e){return new Pm({type:`nullable`,innerType:e})}function pp(e){return up(fp(e))}function mp(e,t){return new Fm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function hp(e,t){return new Im({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function gp(e,t){return new Lm({type:`nonoptional`,innerType:e,...E(t)})}function _p(e){return new Rm({type:`success`,innerType:e})}function vp(e,t){return new zm({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function yp(e){return vl(Bm,e)}function bp(e,t){return new Vm({type:`pipe`,in:e,out:t})}function xp(e,t,n){return new Hm({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Sp(e){let t=e._zod.def;return new Hm({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Cp(e){return new Wm({type:`readonly`,innerType:e})}function wp(e,t){return new Gm({type:`template_literal`,parts:e,...E(t)})}function Tp(e){return new Km({type:`lazy`,getter:e})}function Ep(e){return new qm({type:`promise`,innerType:e})}function Dp(e){return new Jm({type:`function`,input:Array.isArray(e?.input)?tp(e?.input):e?.input??G(W()),output:e?.output??W()})}function Op(e){let t=new Zn({check:`custom`});return t._zod.check=e,t}function kp(e,t){return hu(Ym,e??(()=>!0),t)}function Ap(e,t={}){return gu(Ym,e,t)}function jp(e,t){return _u(e,t)}function Mp(e,t={}){let n=new Ym({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...E(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Np(e){let t=Tp(()=>q([V(e),H(),U(),Wf(),G(t),J(V(),t)]));return t}function Pp(e,t){return new Um({type:`pipe`,in:lp(e),out:t})}var Fp,X,Ip,Lp,Z,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m=t((()=>{Td(),yd(),ju(),jd(),Bd(),nf(),Fp=new WeakMap,X=f(`ZodType`,(e,t)=>(A.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Au(e,`input`),output:Au(e,`output`)}}),e.toJSONSchema=ku(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,\"_def\",{value:t}),e.parse=(t,n)=>Gd(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Kd(e,t,n),e.parseAsync=async(t,n)=>B(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>qd(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Jd(e,t,n),e.decode=(t,n)=>Yd(e,t,n),e.encodeAsync=async(t,n)=>Xd(e,t,n),e.decodeAsync=async(t,n)=>Zd(e,t,n),e.safeEncode=(t,n)=>Qd(e,t,n),e.safeDecode=(t,n)=>$d(e,t,n),e.safeEncodeAsync=async(t,n)=>ef(e,t,n),e.safeDecodeAsync=async(t,n)=>tf(e,t,n),af(e,`ZodType`,{check(...e){let t=this.def;return this.clone(T(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ap(e,t))},superRefine(e,t){return this.check(jp(e,t))},overwrite(e){return this.check(Vl(e))},optional(){return up(this)},exactOptional(){return dp(this)},nullable(){return fp(this)},nullish(){return up(fp(this))},nonoptional(e){return gp(this,e)},array(){return G(this)},or(e){return q([this,e])},and(e){return ep(this,e)},transform(e){return bp(this,lp(e))},default(e){return mp(this,e)},prefault(e){return hp(this,e)},catch(e){return vp(this,e)},pipe(e){return bp(this,e)},readonly(){return Cp(this)},describe(e){let t=this.clone();return yc.add(t,{description:e}),t},meta(...e){if(e.length===0)return yc.get(this);let t=this.clone();return yc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,\"description\",{get(){return yc.get(e)?.description},configurable:!0}),e)),Ip=f(`_ZodString`,(e,t)=>{Yr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pu(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,af(e,`_ZodString`,{regex(...e){return this.check(Nl(...e))},includes(...e){return this.check(Il(...e))},startsWith(...e){return this.check(Ll(...e))},endsWith(...e){return this.check(Rl(...e))},min(...e){return this.check(jl(...e))},max(...e){return this.check(Al(...e))},length(...e){return this.check(Ml(...e))},nonempty(...e){return this.check(jl(1,...e))},lowercase(e){return this.check(Pl(e))},uppercase(e){return this.check(Fl(e))},trim(){return this.check(Ul())},normalize(...e){return this.check(Hl(...e))},toLowerCase(){return this.check(Wl())},toUpperCase(){return this.check(Gl())},slugify(){return this.check(Kl())}})}),Lp=f(`ZodString`,(e,t)=>{Yr.init(e,t),Ip.init(e,t),e.email=t=>e.check(Cc(Rp,t)),e.url=t=>e.check(kc(Vp,t)),e.jwt=t=>e.check(Gc(rm,t)),e.emoji=t=>e.check(Ac(Hp,t)),e.guid=t=>e.check(wc(zp,t)),e.uuid=t=>e.check(Tc(Bp,t)),e.uuidv4=t=>e.check(Ec(Bp,t)),e.uuidv6=t=>e.check(Dc(Bp,t)),e.uuidv7=t=>e.check(Oc(Bp,t)),e.nanoid=t=>e.check(jc(Up,t)),e.guid=t=>e.check(wc(zp,t)),e.cuid=t=>e.check(Mc(Wp,t)),e.cuid2=t=>e.check(Nc(Gp,t)),e.ulid=t=>e.check(Pc(Kp,t)),e.base64=t=>e.check(Hc(em,t)),e.base64url=t=>e.check(Uc(tm,t)),e.xid=t=>e.check(Fc(qp,t)),e.ksuid=t=>e.check(Ic(Jp,t)),e.ipv4=t=>e.check(Lc(Yp,t)),e.ipv6=t=>e.check(Rc(Zp,t)),e.cidrv4=t=>e.check(Bc(Qp,t)),e.cidrv6=t=>e.check(Vc($p,t)),e.e164=t=>e.check(Wc(nm,t)),e.datetime=t=>e.check(z(t)),e.date=t=>e.check(Nd(t)),e.time=t=>e.check(Pd(t)),e.duration=t=>e.check(Fd(t))}),Z=f(`ZodStringFormat`,(e,t)=>{Xr.init(e,t),Ip.init(e,t)}),Rp=f(`ZodEmail`,(e,t)=>{$r.init(e,t),Z.init(e,t)}),zp=f(`ZodGUID`,(e,t)=>{Zr.init(e,t),Z.init(e,t)}),Bp=f(`ZodUUID`,(e,t)=>{Qr.init(e,t),Z.init(e,t)}),Vp=f(`ZodURL`,(e,t)=>{ei.init(e,t),Z.init(e,t)}),Hp=f(`ZodEmoji`,(e,t)=>{ti.init(e,t),Z.init(e,t)}),Up=f(`ZodNanoID`,(e,t)=>{ni.init(e,t),Z.init(e,t)}),Wp=f(`ZodCUID`,(e,t)=>{ri.init(e,t),Z.init(e,t)}),Gp=f(`ZodCUID2`,(e,t)=>{ii.init(e,t),Z.init(e,t)}),Kp=f(`ZodULID`,(e,t)=>{ai.init(e,t),Z.init(e,t)}),qp=f(`ZodXID`,(e,t)=>{oi.init(e,t),Z.init(e,t)}),Jp=f(`ZodKSUID`,(e,t)=>{si.init(e,t),Z.init(e,t)}),Yp=f(`ZodIPv4`,(e,t)=>{fi.init(e,t),Z.init(e,t)}),Xp=f(`ZodMAC`,(e,t)=>{mi.init(e,t),Z.init(e,t)}),Zp=f(`ZodIPv6`,(e,t)=>{pi.init(e,t),Z.init(e,t)}),Qp=f(`ZodCIDRv4`,(e,t)=>{hi.init(e,t),Z.init(e,t)}),$p=f(`ZodCIDRv6`,(e,t)=>{gi.init(e,t),Z.init(e,t)}),em=f(`ZodBase64`,(e,t)=>{_i.init(e,t),Z.init(e,t)}),tm=f(`ZodBase64URL`,(e,t)=>{vi.init(e,t),Z.init(e,t)}),nm=f(`ZodE164`,(e,t)=>{yi.init(e,t),Z.init(e,t)}),rm=f(`ZodJWT`,(e,t)=>{bi.init(e,t),Z.init(e,t)}),im=f(`ZodCustomStringFormat`,(e,t)=>{xi.init(e,t),Z.init(e,t)}),am=f(`ZodNumber`,(e,t)=>{Si.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fu(e,t,n,r),af(e,`ZodNumber`,{gt(e,t){return this.check(bl(e,t))},gte(e,t){return this.check(xl(e,t))},min(e,t){return this.check(xl(e,t))},lt(e,t){return this.check(yl(e,t))},lte(e,t){return this.check(N(e,t))},max(e,t){return this.check(N(e,t))},int(e){return this.check(Pf(e))},safe(e){return this.check(Pf(e))},positive(e){return this.check(bl(0,e))},nonnegative(e){return this.check(xl(0,e))},negative(e){return this.check(yl(0,e))},nonpositive(e){return this.check(N(0,e))},multipleOf(e,t){return this.check(El(e,t))},step(e,t){return this.check(El(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),om=f(`ZodNumberFormat`,(e,t)=>{Ci.init(e,t),am.init(e,t)}),sm=f(`ZodBoolean`,(e,t)=>{wi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iu(e,t,n,r)}),cm=f(`ZodBigInt`,(e,t)=>{Ti.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lu(e,t,n,r),e.gte=(t,n)=>e.check(xl(t,n)),e.min=(t,n)=>e.check(xl(t,n)),e.gt=(t,n)=>e.check(bl(t,n)),e.gte=(t,n)=>e.check(xl(t,n)),e.min=(t,n)=>e.check(xl(t,n)),e.lt=(t,n)=>e.check(yl(t,n)),e.lte=(t,n)=>e.check(N(t,n)),e.max=(t,n)=>e.check(N(t,n)),e.positive=t=>e.check(bl(BigInt(0),t)),e.negative=t=>e.check(yl(BigInt(0),t)),e.nonpositive=t=>e.check(N(BigInt(0),t)),e.nonnegative=t=>e.check(xl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(El(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),lm=f(`ZodBigIntFormat`,(e,t)=>{Ei.init(e,t),cm.init(e,t)}),um=f(`ZodSymbol`,(e,t)=>{Di.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ru(e,t,n,r)}),dm=f(`ZodUndefined`,(e,t)=>{Oi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bu(e,t,n,r)}),fm=f(`ZodNull`,(e,t)=>{ki.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zu(e,t,n,r)}),pm=f(`ZodAny`,(e,t)=>{Ai.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),mm=f(`ZodUnknown`,(e,t)=>{ji.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r)}),hm=f(`ZodNever`,(e,t)=>{Mi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r)}),gm=f(`ZodVoid`,(e,t)=>{Ni.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r)}),_m=f(`ZodDate`,(e,t)=>{Pi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r),e.min=(t,n)=>e.check(xl(t,n)),e.max=(t,n)=>e.check(N(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),vm=f(`ZodArray`,(e,t)=>{Fi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r),e.element=t.element,af(e,`ZodArray`,{min(e,t){return this.check(jl(e,t))},nonempty(e){return this.check(jl(1,e))},max(e,t){return this.check(Al(e,t))},length(e,t){return this.check(Ml(e,t))},unwrap(){return this.element}})}),ym=f(`ZodObject`,(e,t)=>{Li.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R(e,t,n,r),C(e,`shape`,()=>t.shape),af(e,`ZodObject`,{keyof(){return op(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:W()})},loose(){return this.clone({...this._zod.def,catchall:W()})},strict(){return this.clone({...this._zod.def,catchall:Kf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Oe(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return Ee(this,e)},omit(e){return De(this,e)},partial(...e){return je(Mm,this,e[0])},required(...e){return Me(Lm,this,e[0])}})}),bm=f(`ZodUnion`,(e,t)=>{Ri.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.options=t.options}),xm=f(`ZodXor`,(e,t)=>{bm.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.options=t.options}),Sm=f(`ZodDiscriminatedUnion`,(e,t)=>{bm.init(e,t),Bi.init(e,t)}),Cm=f(`ZodIntersection`,(e,t)=>{Vi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r)}),wm=f(`ZodTuple`,(e,t)=>{Hi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Tm=f(`ZodRecord`,(e,t)=>{j.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Em=f(`ZodMap`,(e,t)=>{Ui.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ol(...t)),e.nonempty=t=>e.check(Ol(1,t)),e.max=(...t)=>e.check(Dl(...t)),e.size=(...t)=>e.check(kl(...t))}),Dm=f(`ZodSet`,(e,t)=>{Wi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r),e.min=(...t)=>e.check(Ol(...t)),e.nonempty=t=>e.check(Ol(1,t)),e.max=(...t)=>e.check(Dl(...t)),e.size=(...t)=>e.check(kl(...t))}),Om=f(`ZodEnum`,(e,t)=>{Gi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Om({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Om({...t,checks:[],...E(r),entries:i})}}),km=f(`ZodLiteral`,(e,t)=>{Ki.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,\"value\",{get(){if(t.values.length>1)throw Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return t.values[0]}})}),Am=f(`ZodFile`,(e,t)=>{qi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r),e.min=(t,n)=>e.check(Ol(t,n)),e.max=(t,n)=>e.check(Dl(t,n)),e.mime=(t,n)=>e.check(Bl(Array.isArray(t)?t:[t],n))}),jm=f(`ZodTransform`,(e,t)=>{Ji.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Mm=f(`ZodOptional`,(e,t)=>{Yi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Nm=f(`ZodExactOptional`,(e,t)=>{Xi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Pm=f(`ZodNullable`,(e,t)=>{Zi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Fm=f(`ZodDefault`,(e,t)=>{Qi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Im=f(`ZodPrefault`,(e,t)=>{$i.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Lm=f(`ZodNonOptional`,(e,t)=>{ea.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rm=f(`ZodSuccess`,(e,t)=>{ta.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zm=f(`ZodCatch`,(e,t)=>{na.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Bm=f(`ZodNaN`,(e,t)=>{ra.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),Vm=f(`ZodPipe`,(e,t)=>{ia.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r),e.in=t.in,e.out=t.out}),Hm=f(`ZodCodec`,(e,t)=>{Vm.init(e,t),aa.init(e,t)}),Um=f(`ZodPreprocess`,(e,t)=>{Vm.init(e,t),oa.init(e,t)}),Wm=f(`ZodReadonly`,(e,t)=>{sa.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Gm=f(`ZodTemplateLiteral`,(e,t)=>{ca.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),Km=f(`ZodLazy`,(e,t)=>{da.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),qm=f(`ZodPromise`,(e,t)=>{ua.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Jm=f(`ZodFunction`,(e,t)=>{la.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r)}),Ym=f(`ZodCustom`,(e,t)=>{fa.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r)}),Xm=yu,Zm=bu,Qm=(...e)=>xu({Codec:Hm,Boolean:sm,String:Lp},...e)}));function eh(e){p({customError:e})}function th(){return p().customError}var nh,rh,ih=t((()=>{Td(),nh={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},rh||={}}));function ah(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function oh(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function sh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return Q.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return Q.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=ch(oh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return Q.null();if(n.length===0)return Q.never();if(n.length===1)return Q.literal(n[0]);if(n.every(e=>typeof e==`string`))return Q.enum(n);let r=n.map(e=>Q.literal(e));return r.length<2?r[0]:Q.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return Q.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>sh({...e,type:n},t));return r.length===0?Q.never():r.length===1?r[0]:Q.union(r)}if(!n)return Q.any();let r;switch(n){case`string`:{let t=Q.string();if(e.format){let n=e.format;n===`email`?t=t.check(Q.email()):n===`uri`||n===`uri-reference`?t=t.check(Q.url()):n===`uuid`||n===`guid`?t=t.check(Q.uuid()):n===`date-time`?t=t.check(Q.iso.datetime()):n===`date`?t=t.check(Q.iso.date()):n===`time`?t=t.check(Q.iso.time()):n===`duration`?t=t.check(Q.iso.duration()):n===`ipv4`?t=t.check(Q.ipv4()):n===`ipv6`?t=t.check(Q.ipv6()):n===`mac`?t=t.check(Q.mac()):n===`cidr`?t=t.check(Q.cidrv4()):n===`cidr-v6`?t=t.check(Q.cidrv6()):n===`base64`?t=t.check(Q.base64()):n===`base64url`?t=t.check(Q.base64url()):n===`e164`?t=t.check(Q.e164()):n===`jwt`?t=t.check(Q.jwt()):n===`emoji`?t=t.check(Q.emoji()):n===`nanoid`?t=t.check(Q.nanoid()):n===`cuid`?t=t.check(Q.cuid()):n===`cuid2`?t=t.check(Q.cuid2()):n===`ulid`?t=t.check(Q.ulid()):n===`xid`?t=t.check(Q.xid()):n===`ksuid`&&(t=t.check(Q.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?Q.number().int():Q.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=Q.boolean();break;case`null`:r=Q.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=ch(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=ch(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?ch(e.additionalProperties,t):Q.any();if(Object.keys(n).length===0){r=Q.record(i,a);break}let o=Q.object(n).passthrough(),s=Q.looseRecord(i,a);r=Q.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=ch(i[e],t),r=Q.string().regex(new RegExp(e));o.push(Q.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(Q.object(n).passthrough()),s.push(...o),s.length===0)r=Q.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=Q.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=Q.intersection(e,s[t]);r=e}break}let o=Q.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(ch(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>ch(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?ch(i,t):void 0;r=o?Q.tuple(a).rest(o):Q.tuple(a),typeof e.minItems==`number`&&(r=r.check(Q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Q.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>ch(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?ch(e.additionalItems,t):void 0;r=a?Q.tuple(n).rest(a):Q.tuple(n),typeof e.minItems==`number`&&(r=r.check(Q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Q.maxLength(e.maxItems)))}else if(i!==void 0){let n=ch(i,t),a=Q.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=Q.array(Q.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function ch(e,t){if(typeof e==`boolean`)return e?Q.any():Q.never();let n=sh(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>ch(e,t)),a=Q.union(i);n=r?Q.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>ch(e,t)),a=Q.xor(i);n=r?Q.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:Q.any();else{let i=r?n:ch(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=Q.intersection(i,ch(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=Q.nullable(n)),e.readOnly===!0&&(n=Q.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))uh.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function lh(e,t){if(typeof e==`boolean`)return e?Q.any():Q.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:ah(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??yc};return ch(n,r)}var Q,uh,dh=t((()=>{bc(),jd(),Bd(),$m(),Q={...rf,...Ad,iso:Md},uh=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),fh=r({bigint:()=>gh,boolean:()=>hh,date:()=>_h,number:()=>mh,string:()=>ph});function ph(e){return Sc(Lp,e)}function mh(e){return Zc(am,e)}function hh(e){return il(sm,e)}function gh(e){return ol(cm,e)}function _h(e){return _l(_m,e)}var vh=t((()=>{Td(),$m()})),yh=r({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Cu,ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodError:()=>Hd,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFirstPartyTypeKind:()=>rh,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,ZodIntersection:()=>Cm,ZodIssueCode:()=>nh,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRealError:()=>Ud,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>Ce,codec:()=>xp,coerce:()=>fh,config:()=>p,core:()=>wd,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Rl,enum:()=>op,exactOptional:()=>dp,file:()=>cp,flattenError:()=>rt,float32:()=>Ff,float64:()=>If,formatError:()=>it,fromJSONSchema:()=>lh,function:()=>Dp,getErrorMap:()=>th,globalRegistry:()=>yc,gt:()=>bl,gte:()=>xl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Il,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Md,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,length:()=>Ml,literal:()=>Y,locales:()=>fc,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,mac:()=>Sf,map:()=>ip,maxLength:()=>Al,maxSize:()=>Dl,meta:()=>Zm,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,negative:()=>Cl,never:()=>Kf,nonnegative:()=>Tl,nonoptional:()=>gp,nonpositive:()=>wl,normalize:()=>Hl,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,overwrite:()=>Vl,parse:()=>Gd,parseAsync:()=>B,partialRecord:()=>np,pipe:()=>bp,positive:()=>Sl,prefault:()=>hp,preprocess:()=>Pp,prettifyError:()=>st,promise:()=>Ep,property:()=>zl,readonly:()=>Cp,record:()=>J,refine:()=>Ap,regex:()=>Nl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>eh,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,toJSONSchema:()=>Mu,toLowerCase:()=>Wl,toUpperCase:()=>Gl,transform:()=>lp,treeifyError:()=>at,trim:()=>Ul,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,uppercase:()=>Fl,url:()=>ff,util:()=>ee,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf}),bh=t((()=>{Td(),$m(),jd(),Wd(),nf(),ih(),Wa(),yd(),dh(),pc(),Bd(),vh(),p(Ha())})),xh,Sh=t((()=>{bh(),bh(),xh=yh})),Ch=r({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Cu,ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodError:()=>Hd,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFirstPartyTypeKind:()=>rh,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,ZodIntersection:()=>Cm,ZodIssueCode:()=>nh,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRealError:()=>Ud,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>Ce,codec:()=>xp,coerce:()=>fh,config:()=>p,core:()=>wd,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,default:()=>wh,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Rl,enum:()=>op,exactOptional:()=>dp,file:()=>cp,flattenError:()=>rt,float32:()=>Ff,float64:()=>If,formatError:()=>it,fromJSONSchema:()=>lh,function:()=>Dp,getErrorMap:()=>th,globalRegistry:()=>yc,gt:()=>bl,gte:()=>xl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Il,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Md,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,length:()=>Ml,literal:()=>Y,locales:()=>fc,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,mac:()=>Sf,map:()=>ip,maxLength:()=>Al,maxSize:()=>Dl,meta:()=>Zm,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,negative:()=>Cl,never:()=>Kf,nonnegative:()=>Tl,nonoptional:()=>gp,nonpositive:()=>wl,normalize:()=>Hl,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,overwrite:()=>Vl,parse:()=>Gd,parseAsync:()=>B,partialRecord:()=>np,pipe:()=>bp,positive:()=>Sl,prefault:()=>hp,preprocess:()=>Pp,prettifyError:()=>st,promise:()=>Ep,property:()=>zl,readonly:()=>Cp,record:()=>J,refine:()=>Ap,regex:()=>Nl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>eh,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,toJSONSchema:()=>Mu,toLowerCase:()=>Wl,toUpperCase:()=>Gl,transform:()=>lp,treeifyError:()=>at,trim:()=>Ul,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,uppercase:()=>Fl,url:()=>ff,util:()=>ee,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf,z:()=>yh}),wh,Th=t((()=>{Sh(),Sh(),wh=xh}));Th();var Eh=`io.modelcontextprotocol/related-task`,Dh=kp(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Oh=q([V(),H().int()]),kh=V();Zf({ttl:H().optional(),pollInterval:H().optional()});var Ah=K({ttl:H().optional()}),jh=K({taskId:V()}),Mh=Zf({progressToken:Oh.optional(),[Eh]:jh.optional()}),Nh=K({_meta:Mh.optional()}),Ph=Nh.extend({task:Ah.optional()}),Fh=e=>Ph.safeParse(e).success,Ih=K({method:V(),params:Nh.loose().optional()}),Lh=K({_meta:Mh.optional()}),Rh=K({method:V(),params:Lh.loose().optional()}),zh=Zf({_meta:Mh.optional()}),Bh=q([V(),H().int()]),Vh=K({jsonrpc:Y(`2.0`),id:Bh,...Ih.shape}).strict(),Hh=e=>Vh.safeParse(e).success,Uh=K({jsonrpc:Y(`2.0`),...Rh.shape}).strict(),Wh=e=>Uh.safeParse(e).success,Gh=K({jsonrpc:Y(`2.0`),id:Bh,result:zh}).strict(),Kh=e=>Gh.safeParse(e).success,qh;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(qh||={});var Jh=K({jsonrpc:Y(`2.0`),id:Bh.optional(),error:K({code:H().int(),message:V(),data:W().optional()})}).strict(),Yh=e=>Jh.safeParse(e).success,Xh=q([Vh,Uh,Gh,Jh]);q([Gh,Jh]);var Zh=zh.strict(),Qh=Lh.extend({requestId:Bh.optional(),reason:V().optional()}),$h=Rh.extend({method:Y(`notifications/cancelled`),params:Qh}),eg=K({icons:G(K({src:V(),mimeType:V().optional(),sizes:G(V()).optional(),theme:op([`light`,`dark`]).optional()})).optional()}),tg=K({name:V(),title:V().optional()}),ng=tg.extend({...tg.shape,...eg.shape,version:V(),websiteUrl:V().optional(),description:V().optional()}),rg=Pp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ep(K({form:ep(K({applyDefaults:U().optional()}),J(V(),W())).optional(),url:Dh.optional()}),J(V(),W()).optional())),ig=Zf({list:Dh.optional(),cancel:Dh.optional(),requests:Zf({sampling:Zf({createMessage:Dh.optional()}).optional(),elicitation:Zf({create:Dh.optional()}).optional()}).optional()}),ag=Zf({list:Dh.optional(),cancel:Dh.optional(),requests:Zf({tools:Zf({call:Dh.optional()}).optional()}).optional()}),og=K({experimental:J(V(),Dh).optional(),sampling:K({context:Dh.optional(),tools:Dh.optional()}).optional(),elicitation:rg.optional(),roots:K({listChanged:U().optional()}).optional(),tasks:ig.optional(),extensions:J(V(),Dh).optional()}),sg=Nh.extend({protocolVersion:V(),capabilities:og,clientInfo:ng}),cg=Ih.extend({method:Y(`initialize`),params:sg}),lg=K({experimental:J(V(),Dh).optional(),logging:Dh.optional(),completions:Dh.optional(),prompts:K({listChanged:U().optional()}).optional(),resources:K({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:K({listChanged:U().optional()}).optional(),tasks:ag.optional(),extensions:J(V(),Dh).optional()}),ug=zh.extend({protocolVersion:V(),capabilities:lg,serverInfo:ng,instructions:V().optional()}),dg=Rh.extend({method:Y(`notifications/initialized`),params:Lh.optional()}),fg=Ih.extend({method:Y(`ping`),params:Nh.optional()}),pg=K({progress:H(),total:up(H()),message:up(V())}),mg=K({...Lh.shape,...pg.shape,progressToken:Oh}),hg=Rh.extend({method:Y(`notifications/progress`),params:mg}),gg=Nh.extend({cursor:kh.optional()}),_g=Ih.extend({params:gg.optional()}),vg=zh.extend({nextCursor:kh.optional()}),yg=op([`working`,`input_required`,`completed`,`failed`,`cancelled`]),bg=K({taskId:V(),status:yg,ttl:q([H(),Wf()]),createdAt:V(),lastUpdatedAt:V(),pollInterval:up(H()),statusMessage:up(V())}),xg=zh.extend({task:bg}),Sg=Lh.merge(bg),Cg=Rh.extend({method:Y(`notifications/tasks/status`),params:Sg}),wg=Ih.extend({method:Y(`tasks/get`),params:Nh.extend({taskId:V()})}),Tg=zh.merge(bg),Eg=Ih.extend({method:Y(`tasks/result`),params:Nh.extend({taskId:V()})});zh.loose();var Dg=_g.extend({method:Y(`tasks/list`)}),Og=vg.extend({tasks:G(bg)}),kg=Ih.extend({method:Y(`tasks/cancel`),params:Nh.extend({taskId:V()})}),Ag=zh.merge(bg),jg=K({uri:V(),mimeType:up(V()),_meta:J(V(),W()).optional()}),Mg=jg.extend({text:V()}),Ng=V().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Pg=jg.extend({blob:Ng}),Fg=op([`user`,`assistant`]),Ig=K({audience:G(Fg).optional(),priority:H().min(0).max(1).optional(),lastModified:z({offset:!0}).optional()}),Lg=K({...tg.shape,...eg.shape,uri:V(),description:up(V()),mimeType:up(V()),size:up(H()),annotations:Ig.optional(),_meta:up(Zf({}))}),Rg=K({...tg.shape,...eg.shape,uriTemplate:V(),description:up(V()),mimeType:up(V()),annotations:Ig.optional(),_meta:up(Zf({}))}),zg=_g.extend({method:Y(`resources/list`)}),Bg=vg.extend({resources:G(Lg)}),Vg=_g.extend({method:Y(`resources/templates/list`)}),Hg=vg.extend({resourceTemplates:G(Rg)}),Ug=Nh.extend({uri:V()}),Wg=Ug,Gg=Ih.extend({method:Y(`resources/read`),params:Wg}),Kg=zh.extend({contents:G(q([Mg,Pg]))}),qg=Rh.extend({method:Y(`notifications/resources/list_changed`),params:Lh.optional()}),Jg=Ug,Yg=Ih.extend({method:Y(`resources/subscribe`),params:Jg}),Xg=Ug,Zg=Ih.extend({method:Y(`resources/unsubscribe`),params:Xg}),Qg=Lh.extend({uri:V()}),$g=Rh.extend({method:Y(`notifications/resources/updated`),params:Qg}),e_=K({name:V(),description:up(V()),required:up(U())}),t_=K({...tg.shape,...eg.shape,description:up(V()),arguments:up(G(e_)),_meta:up(Zf({}))}),n_=_g.extend({method:Y(`prompts/list`)}),r_=vg.extend({prompts:G(t_)}),i_=Nh.extend({name:V(),arguments:J(V(),V()).optional()}),a_=Ih.extend({method:Y(`prompts/get`),params:i_}),o_=K({type:Y(`text`),text:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),s_=K({type:Y(`image`),data:Ng,mimeType:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),c_=K({type:Y(`audio`),data:Ng,mimeType:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),l_=K({type:Y(`tool_use`),name:V(),id:V(),input:J(V(),W()),_meta:J(V(),W()).optional()}),u_=K({type:Y(`resource`),resource:q([Mg,Pg]),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),d_=Lg.extend({type:Y(`resource_link`)}),f_=q([o_,s_,c_,d_,u_]),p_=K({role:Fg,content:f_}),m_=zh.extend({description:V().optional(),messages:G(p_)}),h_=Rh.extend({method:Y(`notifications/prompts/list_changed`),params:Lh.optional()}),g_=K({title:V().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),__=K({taskSupport:op([`required`,`optional`,`forbidden`]).optional()}),v_=K({...tg.shape,...eg.shape,description:V().optional(),inputSchema:K({type:Y(`object`),properties:J(V(),Dh).optional(),required:G(V()).optional()}).catchall(W()),outputSchema:K({type:Y(`object`),properties:J(V(),Dh).optional(),required:G(V()).optional()}).catchall(W()).optional(),annotations:g_.optional(),execution:__.optional(),_meta:J(V(),W()).optional()}),y_=_g.extend({method:Y(`tools/list`)}),b_=vg.extend({tools:G(v_)}),x_=zh.extend({content:G(f_).default([]),structuredContent:J(V(),W()).optional(),isError:U().optional()});x_.or(zh.extend({toolResult:W()}));var S_=Ph.extend({name:V(),arguments:J(V(),W()).optional()}),C_=Ih.extend({method:Y(`tools/call`),params:S_}),w_=Rh.extend({method:Y(`notifications/tools/list_changed`),params:Lh.optional()});K({autoRefresh:U().default(!0),debounceMs:H().int().nonnegative().default(300)});var T_=op([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),E_=Nh.extend({level:T_}),D_=Ih.extend({method:Y(`logging/setLevel`),params:E_}),O_=Lh.extend({level:T_,logger:V().optional(),data:W()}),k_=Rh.extend({method:Y(`notifications/message`),params:O_}),A_=K({hints:G(K({name:V().optional()})).optional(),costPriority:H().min(0).max(1).optional(),speedPriority:H().min(0).max(1).optional(),intelligencePriority:H().min(0).max(1).optional()}),j_=K({mode:op([`auto`,`required`,`none`]).optional()}),M_=K({type:Y(`tool_result`),toolUseId:V().describe(`The unique identifier for the corresponding tool call.`),content:G(f_).default([]),structuredContent:K({}).loose().optional(),isError:U().optional(),_meta:J(V(),W()).optional()}),N_=$f(`type`,[o_,s_,c_]),P_=$f(`type`,[o_,s_,c_,l_,M_]),F_=K({role:Fg,content:q([P_,G(P_)]),_meta:J(V(),W()).optional()}),I_=Ph.extend({messages:G(F_),modelPreferences:A_.optional(),systemPrompt:V().optional(),includeContext:op([`none`,`thisServer`,`allServers`]).optional(),temperature:H().optional(),maxTokens:H().int(),stopSequences:G(V()).optional(),metadata:Dh.optional(),tools:G(v_).optional(),toolChoice:j_.optional()}),L_=Ih.extend({method:Y(`sampling/createMessage`),params:I_}),R_=zh.extend({model:V(),stopReason:up(op([`endTurn`,`stopSequence`,`maxTokens`]).or(V())),role:Fg,content:N_}),z_=zh.extend({model:V(),stopReason:up(op([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(V())),role:Fg,content:q([P_,G(P_)])}),B_=K({type:Y(`boolean`),title:V().optional(),description:V().optional(),default:U().optional()}),V_=K({type:Y(`string`),title:V().optional(),description:V().optional(),minLength:H().optional(),maxLength:H().optional(),format:op([`email`,`uri`,`date`,`date-time`]).optional(),default:V().optional()}),H_=K({type:op([`number`,`integer`]),title:V().optional(),description:V().optional(),minimum:H().optional(),maximum:H().optional(),default:H().optional()}),U_=K({type:Y(`string`),title:V().optional(),description:V().optional(),enum:G(V()),default:V().optional()}),W_=K({type:Y(`string`),title:V().optional(),description:V().optional(),oneOf:G(K({const:V(),title:V()})),default:V().optional()}),G_=q([q([K({type:Y(`string`),title:V().optional(),description:V().optional(),enum:G(V()),enumNames:G(V()).optional(),default:V().optional()}),q([U_,W_]),q([K({type:Y(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:K({type:Y(`string`),enum:G(V())}),default:G(V()).optional()}),K({type:Y(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:K({anyOf:G(K({const:V(),title:V()}))}),default:G(V()).optional()})])]),B_,V_,H_]),K_=q([Ph.extend({mode:Y(`form`).optional(),message:V(),requestedSchema:K({type:Y(`object`),properties:J(V(),G_),required:G(V()).optional()})}),Ph.extend({mode:Y(`url`),message:V(),elicitationId:V(),url:V().url()})]),q_=Ih.extend({method:Y(`elicitation/create`),params:K_}),J_=Lh.extend({elicitationId:V()}),Y_=Rh.extend({method:Y(`notifications/elicitation/complete`),params:J_}),X_=zh.extend({action:op([`accept`,`decline`,`cancel`]),content:Pp(e=>e===null?void 0:e,J(V(),q([V(),H(),U(),G(V())])).optional())}),Z_=K({type:Y(`ref/resource`),uri:V()}),Q_=K({type:Y(`ref/prompt`),name:V()}),$_=Nh.extend({ref:q([Q_,Z_]),argument:K({name:V(),value:V()}),context:K({arguments:J(V(),V()).optional()}).optional()}),ev=Ih.extend({method:Y(`completion/complete`),params:$_}),tv=zh.extend({completion:Zf({values:G(V()).max(100),total:up(H().int()),hasMore:up(U())})}),nv=K({uri:V().startsWith(`file://`),name:V().optional(),_meta:J(V(),W()).optional()}),rv=Ih.extend({method:Y(`roots/list`),params:Nh.optional()}),iv=zh.extend({roots:G(nv)}),av=Rh.extend({method:Y(`notifications/roots/list_changed`),params:Lh.optional()});q([fg,cg,ev,D_,a_,n_,zg,Vg,Gg,Yg,Zg,C_,y_,wg,Eg,Dg,kg]),q([$h,hg,dg,av,Cg]),q([Zh,R_,z_,X_,iv,Tg,Og,xg]),q([fg,L_,q_,rv,wg,Eg,Dg,kg]),q([$h,hg,k_,$g,qg,w_,h_,Cg,Y_]),q([Zh,ug,tv,m_,r_,Bg,Hg,Kg,x_,b_,Tg,Og,xg]);var ov=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===qh.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new sv(e.elicitations,n)}return new e(t,n,r)}},sv=class extends ov{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(qh.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function cv(e){return e===`completed`||e===`failed`||e===`cancelled`}function lv(e){let t=Od(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=kd(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function uv(e,t){let n=Dd(e,t);if(!n.success)throw n.error;return n.data}var dv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler($h,e=>{this._oncancel(e)}),this.setNotificationHandler(hg,e=>{this._onprogress(e)}),this.setRequestHandler(fg,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(wg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new ov(qh.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Eg,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new ov(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new ov(qh.InvalidParams,`Task not found: ${r}`);if(!cv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(cv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Eh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Dg,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new ov(qh.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(kg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new ov(qh.InvalidParams,`Task not found: ${e.params.taskId}`);if(cv(n.status))throw new ov(qh.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new ov(qh.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof ov?e:new ov(qh.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),ov.fromError(qh.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Kh(e)||Yh(e)?this._onresponse(e):Hh(e)?this._onrequest(e,t):Wh(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=ov.fromError(qh.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Eh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:qh.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Fh(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new ov(qh.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:qh.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),Kh(e)?n(e):n(new ov(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(Kh(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),Kh(e)?r(e):r(ov.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof ov?e:new ov(qh.InternalError,String(e))}}return}let i;try{let r=await this.request(e,xg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new ov(qh.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},cv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new ov(qh.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new ov(qh.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof ov?e:new ov(qh.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Eh]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof ov?e:new ov(qh.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Dd(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(ov.fromError(qh.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Tg,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Og,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Ag,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Eh]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Eh]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Eh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=lv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=uv(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=lv(e);this._notificationHandlers.set(n,n=>{let r=uv(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&Hh(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new ov(qh.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new ov(qh.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new ov(qh.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new ov(qh.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Cg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),cv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new ov(qh.InvalidParams,`Task \"${e}\" not found - it may have been cleaned up`);if(cv(a.status))throw new ov(qh.InvalidParams,`Cannot update task \"${e}\" from terminal status \"${a.status}\" to \"${r}\". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Cg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),cv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function fv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function pv(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];fv(a)&&fv(i)?n[r]={...a,...i}:n[r]=i}return n}var mv=a();Th(),(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error(`Dynamic require of \"`+e+`\" is not supported`)});var hv=class extends dv{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener(\"${String(e)}\", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for \"${n}\" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},gv=`2026-01-26`,_v=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=Xh.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},vv=q([Y(`light`),Y(`dark`)]).describe(`Color theme preference for the host environment.`),yv=q([Y(`inline`),Y(`fullscreen`),Y(`pip`)]).describe(`Display mode for UI presentation.`),bv=J(q([Y(`--color-background-primary`),Y(`--color-background-secondary`),Y(`--color-background-tertiary`),Y(`--color-background-inverse`),Y(`--color-background-ghost`),Y(`--color-background-info`),Y(`--color-background-danger`),Y(`--color-background-success`),Y(`--color-background-warning`),Y(`--color-background-disabled`),Y(`--color-text-primary`),Y(`--color-text-secondary`),Y(`--color-text-tertiary`),Y(`--color-text-inverse`),Y(`--color-text-ghost`),Y(`--color-text-info`),Y(`--color-text-danger`),Y(`--color-text-success`),Y(`--color-text-warning`),Y(`--color-text-disabled`),Y(`--color-border-primary`),Y(`--color-border-secondary`),Y(`--color-border-tertiary`),Y(`--color-border-inverse`),Y(`--color-border-ghost`),Y(`--color-border-info`),Y(`--color-border-danger`),Y(`--color-border-success`),Y(`--color-border-warning`),Y(`--color-border-disabled`),Y(`--color-ring-primary`),Y(`--color-ring-secondary`),Y(`--color-ring-inverse`),Y(`--color-ring-info`),Y(`--color-ring-danger`),Y(`--color-ring-success`),Y(`--color-ring-warning`),Y(`--font-sans`),Y(`--font-mono`),Y(`--font-weight-normal`),Y(`--font-weight-medium`),Y(`--font-weight-semibold`),Y(`--font-weight-bold`),Y(`--font-text-xs-size`),Y(`--font-text-sm-size`),Y(`--font-text-md-size`),Y(`--font-text-lg-size`),Y(`--font-heading-xs-size`),Y(`--font-heading-sm-size`),Y(`--font-heading-md-size`),Y(`--font-heading-lg-size`),Y(`--font-heading-xl-size`),Y(`--font-heading-2xl-size`),Y(`--font-heading-3xl-size`),Y(`--font-text-xs-line-height`),Y(`--font-text-sm-line-height`),Y(`--font-text-md-line-height`),Y(`--font-text-lg-line-height`),Y(`--font-heading-xs-line-height`),Y(`--font-heading-sm-line-height`),Y(`--font-heading-md-line-height`),Y(`--font-heading-lg-line-height`),Y(`--font-heading-xl-line-height`),Y(`--font-heading-2xl-line-height`),Y(`--font-heading-3xl-line-height`),Y(`--border-radius-xs`),Y(`--border-radius-sm`),Y(`--border-radius-md`),Y(`--border-radius-lg`),Y(`--border-radius-xl`),Y(`--border-radius-full`),Y(`--border-width-regular`),Y(`--shadow-hairline`),Y(`--shadow-sm`),Y(`--shadow-md`),Y(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),q([V(),Uf()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`);K({method:Y(`ui/open-link`),params:K({url:V().describe(`URL to open in the host's browser`)})});var xv=K({isError:U().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Sv=K({isError:U().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Cv=K({isError:U().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();K({method:Y(`ui/notifications/sandbox-proxy-ready`),params:K({})});var wv=K({connectDomains:G(V()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:G(V()).optional().describe(\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\n\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\n- Wildcard subdomains supported: `https://*.example.com`\\n- Empty or omitted → no network resources (secure default)\"),frameDomains:G(V()).optional().describe(\"Origins for nested iframes.\\n\\n- Maps to CSP `frame-src` directive\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\"),baseUriDomains:G(V()).optional().describe(\"Allowed base URIs for the document.\\n\\n- Maps to CSP `base-uri` directive\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\")}),Tv=K({camera:K({}).optional().describe(`Request camera access.\n\nMaps to Permission Policy \\`camera\\` feature.`),microphone:K({}).optional().describe(`Request microphone access.\n\nMaps to Permission Policy \\`microphone\\` feature.`),geolocation:K({}).optional().describe(`Request geolocation access.\n\nMaps to Permission Policy \\`geolocation\\` feature.`),clipboardWrite:K({}).optional().describe(`Request clipboard write access.\n\nMaps to Permission Policy \\`clipboard-write\\` feature.`)});K({method:Y(`ui/notifications/size-changed`),params:K({width:H().optional().describe(`New width in pixels.`),height:H().optional().describe(`New height in pixels.`)})});var Ev=K({method:Y(`ui/notifications/tool-input`),params:K({arguments:J(V(),W().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Dv=K({method:Y(`ui/notifications/tool-input-partial`),params:K({arguments:J(V(),W().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Ov=K({method:Y(`ui/notifications/tool-cancelled`),params:K({reason:V().optional().describe(`Optional reason for the cancellation (e.g., \"user action\", \"timeout\").`)})}),kv=K({fonts:V().optional()}),Av=K({variables:bv.optional().describe(`CSS variables for theming the app.`),css:kv.optional().describe(`CSS blocks that apps can inject.`)}),jv=K({method:Y(`ui/resource-teardown`),params:K({})});J(V(),W());var Mv=K({text:K({}).optional().describe(`Host supports text content blocks.`),image:K({}).optional().describe(`Host supports image content blocks.`),audio:K({}).optional().describe(`Host supports audio content blocks.`),resource:K({}).optional().describe(`Host supports resource content blocks.`),resourceLink:K({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:K({}).optional().describe(`Host supports structured content.`)});K({method:Y(`ui/notifications/request-teardown`),params:K({}).optional()});var Nv=K({experimental:J(V(),J(V(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:K({}).optional().describe(`Host supports opening external URLs.`),downloadFile:K({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:K({listChanged:U().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:K({listChanged:U().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:K({}).optional().describe(`Host accepts log messages.`),sandbox:K({permissions:Tv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:wv.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Mv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Mv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:K({tools:K({}).optional().describe(\"Host supports tool use via `tools` and `toolChoice` parameters.\")}).optional().describe(\"Host supports LLM sampling (sampling/createMessage) from the view.\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\")}),Pv=K({experimental:J(V(),J(V(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:K({listChanged:U().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:G(yv).optional().describe(`Display modes the app supports.`)});K({method:Y(`ui/notifications/initialized`),params:K({}).optional()}),K({csp:wv.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Tv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:V().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:U().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),K({method:Y(`ui/request-display-mode`),params:K({mode:yv.describe(`The display mode being requested.`)})});var Fv=K({mode:yv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Iv=q([Y(`model`),Y(`app`)]).describe(`Tool visibility scope - who can access the tool.`);K({resourceUri:V().optional(),visibility:G(Iv).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`),csp:Kf().optional(),permissions:Kf().optional()}),K({mimeTypes:G(V()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),K({method:Y(`ui/download-file`),params:K({contents:G(q([u_,d_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),K({method:Y(`ui/message`),params:K({role:Y(`user`).describe(`Message role, currently only \"user\" is supported.`),content:G(f_).describe(`Message content blocks (text, image, etc.).`)})}),K({method:Y(`ui/notifications/sandbox-resource-ready`),params:K({html:V().describe(`HTML content to load into the inner iframe.`),sandbox:V().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:wv.optional().describe(`CSP configuration from resource metadata.`),permissions:Tv.optional().describe(`Sandbox permissions from resource metadata.`)})});var Lv=K({method:Y(`ui/notifications/tool-result`),params:x_.describe(`Standard MCP tool execution result.`)}),Rv=K({toolInfo:K({id:Bh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:v_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:vv.optional().describe(`Current color theme preference.`),styles:Av.optional().describe(`Style configuration for theming the app.`),displayMode:yv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:G(yv).optional().describe(`Display modes the host supports.`),containerDimensions:q([K({height:H().describe(`Fixed container height in pixels.`)}),K({maxHeight:q([H(),Uf()]).optional().describe(`Maximum container height in pixels.`)})]).and(q([K({width:H().describe(`Fixed container width in pixels.`)}),K({maxWidth:q([H(),Uf()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:q([Y(`web`),Y(`desktop`),Y(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:K({touch:U().optional().describe(`Whether the device supports touch input.`),hover:U().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:K({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),zv=K({method:Y(`ui/notifications/host-context-changed`),params:Rv.describe(`Partial context update containing only changed fields.`)});K({method:Y(`ui/update-model-context`),params:K({content:G(f_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:J(V(),W().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),K({method:Y(`ui/initialize`),params:K({appInfo:ng.describe(`App identification (name and version).`),appCapabilities:Pv.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var Bv=K({protocolVersion:V().describe(`Negotiated protocol version string (e.g., \"2025-11-21\").`),hostInfo:ng.describe(`Host application identification and version.`),hostCapabilities:Nv.describe(`Features and capabilities provided by the host.`),hostContext:Rv.describe(`Rich context about the host environment.`)}).passthrough(),Vv={target:`draft-2020-12`};async function Hv(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Vv);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Th(),Ch));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Uv(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function Wv(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function Gv(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function Kv(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function qv(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var Jv=class e extends hv{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ev,toolinputpartial:Dv,toolresult:Lv,toolcancelled:Ov,hostcontextchanged:zv};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] \"${String(t)}\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||p({jitless:!0}),this.setRequestHandler(fg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=pv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await Uv(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await Uv(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Hv(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Hv(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(jv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(C_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(y_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${e}\"). Did you mean: callServerTool({ name: \"${e}\", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},x_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Kg,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},Bg,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?z_:R_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Cv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Zh,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},xv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Sv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Fv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new _v(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:gv}},Bv,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Yv({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,mv.useState)(null),[s,c]=(0,mv.useState)(!1),[l,u]=(0,mv.useState)(null);return(0,mv.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new _v(window.parent,window.parent);if(s=new Jv(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Xv(){let[e,t]=(0,mv.useState)(Wv);return(0,mv.useEffect)(()=>{let e=new MutationObserver(()=>{t(Wv())});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`],characterData:!1,childList:!1,subtree:!1}),()=>e.disconnect()},[]),e}function Zv(e,t){let n=(0,mv.useRef)(!1);(0,mv.useEffect)(()=>{n.current||(t?.theme&&Gv(t.theme),t?.styles?.variables&&Kv(t.styles.variables),(t?.theme||t?.styles?.variables)&&(n.current=!0))},[t]),(0,mv.useEffect)(()=>{if(!e)return;let t=e=>{e.theme&&Gv(e.theme),e.styles?.variables&&Kv(e.styles.variables)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function Qv(e,t){let n=(0,mv.useRef)(!1);(0,mv.useEffect)(()=>{n.current||t?.styles?.css?.fonts&&(qv(t.styles.css.fonts),n.current=!0)},[t]),(0,mv.useEffect)(()=>{if(!e)return;let t=e=>{e.styles?.css?.fonts&&qv(e.styles.css.fonts)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function $v(e,t){Zv(e,t),Qv(e,t)}var ey=`Tool call failed`;function ty(e){if(e.structuredContent!==void 0)return e.structuredContent;let t=e.content?.find(e=>e.type===`text`);if(t?.type===`text`)try{return JSON.parse(t.text)}catch{return{success:!e.isError,data:t.text}}}function ny(e){let t=ty(e);if(typeof t!=`object`||!t)return{data:void 0,error:e.isError?ey:void 0};let n=t;if(typeof n.success!=`boolean`)return{data:e.isError?void 0:t,error:e.isError?ey:void 0};let r=e.isError===!0||n.success===!1;return{data:r?void 0:n.data,error:r?n.error??ey:void 0}}function ry({appInfo:e,capabilities:t={}}){let[n,r]=(0,mv.useState)(void 0),[i,a]=(0,mv.useState)(void 0),[o,s]=(0,mv.useState)(!1),c=(0,mv.useRef)(0),l=(0,mv.useRef)(0),{app:u,isConnected:d,error:f}=Yv({appInfo:e,capabilities:t,autoResize:!0,onAppCreated:e=>{e.addEventListener(`toolresult`,e=>{let t=ny(e);r(t.data),a(t.error)}),e.addEventListener(`toolcancelled`,e=>{a(e.reason??`Tool call cancelled`),l.current+=1,c.current=0,s(!1)})}});return $v(u,u?.getHostContext()),{app:u,isConnected:d,connectionError:f,theme:Xv(),data:n,toolError:i,isCallingTool:o,callTool:(0,mv.useCallback)(async(e,t)=>{if(!u)throw Error(`Cannot call \"${e}\" before the app is connected to its host`);l.current+=1;let n=l.current;c.current+=1,s(!0);try{let i=ny(await u.callServerTool({name:e,arguments:t??{}}));return n===l.current&&(r(i.data),a(i.error)),i.error===void 0?i.data:void 0}finally{c.current=Math.max(0,c.current-1),c.current===0&&s(!1)}},[u])}}var iy=n((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),$=n(((e,t)=>{t.exports=iy()}))(),ay={1:`grid-cols-1`,2:`grid-cols-1 @min-[24rem]:grid-cols-2`,3:`grid-cols-1 @min-[24rem]:grid-cols-2 @min-[36rem]:grid-cols-3`,4:`grid-cols-1 @min-[24rem]:grid-cols-2 @min-[48rem]:grid-cols-4`};function oy({columns:e,children:t}){return(0,$.jsx)(`div`,{className:`@container`,children:(0,$.jsx)(`div`,{className:`grid gap-3 ${ay[e]}`,children:t})})}function sy(e){return e}var cy=sy({Eyebrow:`eyebrow`,Title:`title`,Section:`section`}),ly={[cy.Eyebrow]:`text-sm font-semibold tracking-wide text-on-card-muted uppercase`,[cy.Title]:`text-heading-md font-semibold text-on-card`,[cy.Section]:`text-heading-sm font-semibold text-on-card`};function uy({text:e,variant:t=cy.Title}){return(0,$.jsx)(`h2`,{className:ly[t],children:e})}var dy=sy({Compact:`compact`,Number:`number`,Percent:`percent`}),fy=sy({Positive:`positive`,Negative:`negative`,Neutral:`neutral`}),py={[fy.Positive]:`text-success`,[fy.Negative]:`text-danger`,[fy.Neutral]:`text-on-card-muted`};function my(e,t){let n=t??dy.Compact;return n===dy.Percent?new Intl.NumberFormat(`en`,{style:`percent`,maximumFractionDigits:1}).format(e):n===dy.Number?new Intl.NumberFormat(`en`,{maximumFractionDigits:2}).format(e):new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:2}).format(e)}function hy({label:e,value:t,format:n,note:r}){let i=my(t,n);return(0,$.jsxs)(`article`,{className:`flex flex-col gap-1 rounded-lg border border-card-line bg-card px-4 py-4 shadow-sm`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-on-card-muted`,children:e}),(0,$.jsx)(`p`,{className:`text-metric font-semibold text-on-card tabular-nums`,children:i}),r?(0,$.jsx)(`p`,{className:`mt-1 text-sm ${py[r.tone]}`,children:r.text}):null]})}var gy=sy({Brand:`brand`,Success:`success`,Warning:`warning`,Danger:`danger`,Neutral:`neutral`}),_y={[gy.Brand]:`bg-fill-brand`,[gy.Success]:`bg-fill-success`,[gy.Warning]:`bg-fill-warning`,[gy.Danger]:`bg-fill-danger`,[gy.Neutral]:`bg-fill-neutral`};function vy({label:e,segments:t,caption:n}){let r=t.reduce((e,t)=>e+Math.max(0,t.value),0),i=r>0?r:1;return(0,$.jsxs)(`section`,{className:`flex flex-col gap-3 rounded-lg border border-card-line bg-card px-4 py-4 shadow-sm`,children:[(0,$.jsx)(`h3`,{className:`text-heading-sm font-semibold text-on-card`,children:e}),(0,$.jsx)(`div`,{className:`flex h-2.5 overflow-hidden rounded-full bg-card-sunken`,role:`img`,\"aria-label\":e,children:t.map(e=>{let t=Math.max(0,e.value)/i*100;return t<=0?null:(0,$.jsx)(`div`,{className:_y[e.tone],style:{width:`${t}%`},title:`${e.label}: ${e.value}`},`${e.label}-${e.tone}`)})}),(0,$.jsx)(`ul`,{className:`flex flex-wrap gap-x-5 gap-y-1 text-sm text-on-card-muted`,children:t.map(e=>(0,$.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(`span`,{className:`inline-block size-2.5 rounded-full ${_y[e.tone]}`,\"aria-hidden\":`true`}),(0,$.jsxs)(`span`,{children:[e.label,` `,(0,$.jsx)(`span`,{className:`font-semibold tabular-nums text-on-card`,children:e.value})]})]},`${e.label}-legend`))}),n?(0,$.jsx)(`p`,{className:`text-sm text-on-card-muted`,children:n}):null]})}var yy=1.4,by=2.55/yy,xy=4.4/yy,Sy=.48/yy,Cy=`cubic-bezier(0.11, 0.41, 0.97, 0.55)`,wy=2.4/yy,Ty=1.5/yy,Ey=.7/yy,Dy=.35/yy,Oy=.38,ky=.02,Ay=18.5,jy=18.5,My=7.3,Ny=12.2,Py=17.1,Fy=2.5,Iy=`0 0 37 37`,Ly=10.3,Ry=`${Ay-Ly} ${jy-Ly} ${Ly*2} ${Ly*2}`;function zy(e,t){let n=(t-90)*Math.PI/180;return{x:Ay+e*Math.cos(n),y:jy+e*Math.sin(n)}}function By(e,t,n){let r=zy(e,t),i=zy(e,n),a=+(((n-t)%360+360)%360>180);return`M ${r.x} ${r.y} A ${e} ${e} 0 ${a} 1 ${i.x} ${i.y}`}function Vy(e,t,n){let r=360/t;return Array.from({length:t},(t,i)=>By(e,i*r,i*r+n))}var Hy=Vy(Ny,5,52),Uy=Vy(Py,10,22);function Wy(e){let t=Math.sin(e*12.9898)*43758.5453;return t-Math.floor(t)}function Gy(e,t){let n=Wy(e*17.13+t*91.7)*Sy,r=by+Wy(e*23.71+t*53.9)*(xy-by);return{animationDelay:`${n}s`,animationDuration:`${r}s`}}function Ky(e,t){return{width:`${t}px`,height:`${t}px`,\"--transcend-logo-spinner-trim-duration\":`${4.964285714285714/2}s`,\"--transcend-logo-spinner-trim-ease\":Cy,\"--transcend-logo-spinner-inner-duration\":`${e?Ty:wy}s`,\"--transcend-logo-spinner-fill-duration\":`${e?Dy:Ey}s`,\"--transcend-logo-spinner-inner-tip\":`${ky} ${1-ky}`,\"--transcend-logo-spinner-inner-rest\":`${1-Oy} ${Oy}`}}var qy=sy({Default:`default`,Small:`small`});function Jy({variant:e=qy.Default,size:t,color:n=`var(--color-on-card-subtle)`,trackColor:r=`var(--color-card-line)`,label:i=`Loading`}){let a=e===qy.Small,o=(0,$.jsx)(`svg`,{className:`block overflow-visible`,style:Ky(a,t??(a?20:55)),viewBox:a?Ry:Iy,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,\"aria-hidden\":`true`,children:(0,$.jsxs)(`g`,{strokeWidth:a?4:Fy,strokeLinecap:`round`,fill:`none`,children:[(0,$.jsxs)(`g`,{transform:`rotate(-90 ${Ay} ${jy})`,children:[(0,$.jsx)(`circle`,{cx:Ay,cy:jy,r:My,stroke:r}),(0,$.jsx)(`circle`,{className:`transcend-logo-spinner-inner`,cx:Ay,cy:jy,r:My,stroke:n,pathLength:1})]}),a?null:[{segments:Hy,seed:2,name:`middle`},{segments:Uy,seed:3,name:`outer`}].map(({segments:e,seed:t,name:i})=>e.map((e,a)=>(0,$.jsxs)(`g`,{children:[(0,$.jsx)(`path`,{d:e,stroke:r}),(0,$.jsx)(`path`,{className:`transcend-logo-spinner-trim`,d:e,stroke:n,pathLength:1,style:Gy(t,a)})]},`${i}-${a}`)))]})});return a?(0,$.jsx)(`span`,{className:`inline-flex items-center justify-center leading-none`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:o}):(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-8`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:[o,i?(0,$.jsx)(`p`,{className:`text-sm text-on-card-muted`,\"aria-hidden\":`true`,children:i}):null]})}var Yy=d(),Xy=`mx-auto flex w-full max-w-view flex-col gap-4 rounded-lg bg-card-sunken px-4 py-4`,Zy=`mx-auto w-full max-w-view rounded-lg bg-surface-raised px-6 py-5 shadow-sm`,Qy=`mb-1 text-heading-md font-semibold text-content`,$y=`text-sm text-content-muted`;function eb(e){return e?(e.liveCount??0)+(e.needReviewCount??0)+(e.junkCount??0):0}function tb(e){return[{label:`Live`,value:e?.liveCount??0,tone:gy.Success},{label:`Needs review`,value:e?.needReviewCount??0,tone:gy.Warning},{label:`Junk`,value:e?.junkCount??0,tone:gy.Danger}]}function nb(e,t){return`${Math.round(e/t*100)}%`}function rb(e){let t=eb(e);return t===0?{text:`Nothing scanned yet`,tone:fy.Neutral}:(e?.needReviewCount??0)===0?{text:`Fully triaged`,tone:fy.Positive}:{text:`${nb(e?.liveCount??0,t)} live`,tone:fy.Neutral}}function ib(e,t){if(t!==0)return e===0?{text:`Nothing waiting`,tone:fy.Positive}:{text:`${nb(e,t)} of inventory`,tone:fy.Neutral}}function ab(){let{data:e,isConnected:t,connectionError:n,toolError:r}=ry({appInfo:{name:`transcend-consent-inventory-stats`,version:`1.0.0`}});if(n)return(0,$.jsxs)(`section`,{className:`${Zy} border-l-4 border-l-danger`,role:`alert`,children:[(0,$.jsx)(`h1`,{className:Qy,children:`Could not reach the host`}),(0,$.jsx)(`p`,{className:$y,children:n.message})]});if(r!==void 0&&e===void 0)return(0,$.jsxs)(`div`,{className:Xy,children:[(0,$.jsx)(uy,{text:`Consent Inventory triage`,variant:cy.Title}),(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:r})]});if(!t||e===void 0)return(0,$.jsxs)(`div`,{className:Xy,children:[(0,$.jsx)(uy,{text:`Consent Inventory triage`,variant:cy.Title}),(0,$.jsx)(Jy,{label:t?`Loading inventory…`:`Connecting to the host…`})]});let i=eb(e.cookies),a=eb(e.dataFlows),o=(e.cookies?.needReviewCount??0)+(e.dataFlows?.needReviewCount??0);return(0,$.jsxs)(`div`,{className:Xy,children:[(0,$.jsx)(uy,{text:`Consent Inventory triage`,variant:cy.Title}),r?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:r}):null,(0,$.jsxs)(oy,{columns:3,children:[(0,$.jsx)(hy,{label:`Cookies`,value:i,format:dy.Number,note:rb(e.cookies)}),(0,$.jsx)(hy,{label:`Data flows`,value:a,format:dy.Number,note:rb(e.dataFlows)}),(0,$.jsx)(hy,{label:`Needs review`,value:o,format:dy.Number,note:ib(o,i+a)})]}),(0,$.jsxs)(oy,{columns:1,children:[(0,$.jsx)(vy,{label:`Cookie triage`,segments:tb(e.cookies)}),(0,$.jsx)(vy,{label:`Data flow triage`,segments:tb(e.dataFlows)})]})]})}var ob=document.getElementById(`root`);if(!ob)throw Error(`MCP App view \"inventory-stats\" could not start: the document has no #root container`);(0,Yy.createRoot)(ob).render((0,$.jsx)(mv.StrictMode,{children:(0,$.jsx)(ab,{})}))})();\n <\/script>\n </body>\n</html>\n",
|
|
245
|
+
moduleUrl: import.meta.url,
|
|
246
|
+
view: "inventory-stats"
|
|
247
|
+
}),
|
|
248
|
+
prefersBorder: false
|
|
249
|
+
});
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/getDataFlowCount.ts
|
|
252
|
+
/**
|
|
253
|
+
* Fetch `dataFlows.totalCount` without paging nodes.
|
|
254
|
+
*
|
|
255
|
+
* Uses `first: 1` so the payload stays small. The list API hides CSP rows
|
|
256
|
+
* (same as the Consent Manager table), so these counts match what users see.
|
|
257
|
+
*/
|
|
258
|
+
async function getDataFlowCount(graphql, airgapBundleId, filterBy) {
|
|
259
|
+
return (await graphql.makeRequest(DATA_FLOWS, {
|
|
260
|
+
input: { airgapBundleId },
|
|
261
|
+
first: 1,
|
|
262
|
+
offset: 0,
|
|
263
|
+
filterBy
|
|
264
|
+
})).dataFlows.totalCount;
|
|
265
|
+
}
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/tools/consent_get_inventory_stats.ts
|
|
268
|
+
const GetInventoryStatsSchema = z.object({});
|
|
269
|
+
/** Shared by the baseline tool and the MCP App variant. */
|
|
270
|
+
async function inventoryStatsPayload(clients) {
|
|
271
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
272
|
+
const [cookieData, needReviewCount, liveCount, junkCount] = await Promise.all([
|
|
273
|
+
clients.graphql.makeRequest(COOKIE_STATS, { input: { airgapBundleId } }),
|
|
274
|
+
getDataFlowCount(clients.graphql, airgapBundleId, { status: ConsentTrackerStatus.NeedsReview }),
|
|
275
|
+
getDataFlowCount(clients.graphql, airgapBundleId, {
|
|
276
|
+
status: ConsentTrackerStatus.Live,
|
|
277
|
+
isJunk: false
|
|
278
|
+
}),
|
|
279
|
+
getDataFlowCount(clients.graphql, airgapBundleId, {
|
|
280
|
+
status: ConsentTrackerStatus.Live,
|
|
281
|
+
isJunk: true
|
|
282
|
+
})
|
|
283
|
+
]);
|
|
284
|
+
return createToolResult(true, {
|
|
285
|
+
cookies: cookieData.cookieStats,
|
|
286
|
+
dataFlows: {
|
|
287
|
+
liveCount,
|
|
288
|
+
needReviewCount,
|
|
289
|
+
junkCount
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Cookie and data-flow inventory triage counts.
|
|
295
|
+
*
|
|
296
|
+
* Renders as an interactive dashboard on hosts that support MCP Apps, and
|
|
297
|
+
* returns plain JSON everywhere else.
|
|
298
|
+
*/
|
|
299
|
+
function createConsentGetInventoryStatsTool(clients) {
|
|
300
|
+
return defineToolWithCapabilities({
|
|
301
|
+
name: "consent_get_inventory_stats",
|
|
302
|
+
description: "Get cookie and data-flow inventory triage counts: live (approved), needs review, and junk. Counts match the Consent Manager tables and the default consent_list_cookies / consent_list_data_flows filters (CSP data flows are omitted, same as the UI). This is inventory status, not consent analytics — use consent_get_aggregate_analytics or consent_get_timeseries_analytics for opt-in/out and signal metrics.",
|
|
303
|
+
category: "Consent Management",
|
|
304
|
+
readOnly: true,
|
|
305
|
+
annotations: {
|
|
306
|
+
readOnlyHint: true,
|
|
307
|
+
destructiveHint: false,
|
|
308
|
+
idempotentHint: true
|
|
309
|
+
},
|
|
310
|
+
zodSchema: GetInventoryStatsSchema,
|
|
311
|
+
handler: async () => inventoryStatsPayload(clients),
|
|
312
|
+
variants: { [McpClientCapability.McpApp]: {
|
|
313
|
+
resource: INVENTORY_STATS_APP_RESOURCE,
|
|
314
|
+
handler: async () => inventoryStatsPayload(clients)
|
|
315
|
+
} }
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region src/tools/consent_get_preferences.ts
|
|
320
|
+
const GetPreferencesSchema = z.object({
|
|
321
|
+
identifier: z.string().describe("User identifier (e.g., email, user ID)"),
|
|
322
|
+
partition: z.string().optional().describe("Partition/organization context (optional)")
|
|
323
|
+
});
|
|
324
|
+
function createConsentGetPreferencesTool(clients) {
|
|
325
|
+
const { rest } = clients;
|
|
326
|
+
return defineTool({
|
|
327
|
+
name: "consent_get_preferences",
|
|
328
|
+
description: "Get consent preferences for a specific user/identifier",
|
|
329
|
+
category: "Consent Management",
|
|
330
|
+
readOnly: true,
|
|
331
|
+
annotations: {
|
|
332
|
+
readOnlyHint: true,
|
|
333
|
+
destructiveHint: false,
|
|
334
|
+
idempotentHint: true
|
|
335
|
+
},
|
|
336
|
+
requireSombra: true,
|
|
337
|
+
zodSchema: GetPreferencesSchema,
|
|
338
|
+
handler: async ({ identifier, partition }) => {
|
|
339
|
+
const result = await rest.getConsentPreferences(identifier, partition);
|
|
340
|
+
if (!result) return createToolResult(true, {
|
|
341
|
+
found: false,
|
|
342
|
+
message: "No consent preferences found for this identifier"
|
|
343
|
+
});
|
|
344
|
+
return createToolResult(true, {
|
|
345
|
+
found: true,
|
|
346
|
+
preferences: result
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/tools/consent_get_timeseries_analytics.ts
|
|
353
|
+
const GetTimeseriesAnalyticsSchema = z.object({
|
|
354
|
+
metric: airgapBundleAnalyticsMetricSchema.describe("Analytics metric to query. PAGE_VIEWS for daily page-view volume; SITE_SESSIONS for sessions; SIGNAL_DETECTED for GPC/DNT signal counts over time."),
|
|
355
|
+
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
356
|
+
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
357
|
+
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
358
|
+
bin_interval: z.nativeEnum(AirgapBundleAnalyticsBinInterval).optional().default(AirgapBundleAnalyticsBinInterval.Hourly).describe("Time bin size: 1m, 1h, or 1d (default: 1h).")
|
|
359
|
+
});
|
|
360
|
+
function createConsentGetTimeseriesAnalyticsTool(clients) {
|
|
361
|
+
return defineTool({
|
|
362
|
+
name: "consent_get_timeseries_analytics",
|
|
363
|
+
description: "Query timeseries consent analytics via airgapBundleTimeseriesAnalytics. Use PAGE_VIEWS or SITE_SESSIONS for traffic volume; SIGNAL_DETECTED for privacy signal counts. Requires ViewConsentManager API key scope.",
|
|
364
|
+
category: "Consent Management",
|
|
365
|
+
readOnly: true,
|
|
366
|
+
annotations: {
|
|
367
|
+
readOnlyHint: true,
|
|
368
|
+
destructiveHint: false,
|
|
369
|
+
idempotentHint: true
|
|
370
|
+
},
|
|
371
|
+
zodSchema: GetTimeseriesAnalyticsSchema,
|
|
372
|
+
handler: async ({ metric, start, end, days, bin_interval }) => {
|
|
373
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
374
|
+
const range = resolveAnalyticsDateRange({
|
|
375
|
+
start,
|
|
376
|
+
end,
|
|
377
|
+
days
|
|
378
|
+
});
|
|
379
|
+
const items = (await clients.graphql.makeRequest(AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, {
|
|
380
|
+
id: airgapBundleId,
|
|
381
|
+
input: {
|
|
382
|
+
metric,
|
|
383
|
+
start: range.startEpoch,
|
|
384
|
+
end: range.endEpoch,
|
|
385
|
+
binInterval: bin_interval
|
|
386
|
+
}
|
|
387
|
+
})).airgapBundleTimeseriesAnalytics.items;
|
|
388
|
+
return createToolResult(true, {
|
|
389
|
+
airgapBundleId,
|
|
390
|
+
metric,
|
|
391
|
+
binInterval: bin_interval,
|
|
392
|
+
period: {
|
|
393
|
+
start: range.startIso,
|
|
394
|
+
end: range.endIso,
|
|
395
|
+
startEpoch: range.startEpoch,
|
|
396
|
+
endEpoch: range.endEpoch
|
|
397
|
+
},
|
|
398
|
+
items,
|
|
399
|
+
totalRows: items.length
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region src/tools/consent_list_airgap_bundles.ts
|
|
406
|
+
const ListAirgapBundlesSchema = EmptySchema;
|
|
407
|
+
function createConsentListAirgapBundlesTool(clients) {
|
|
408
|
+
return defineTool({
|
|
409
|
+
name: "consent_list_airgap_bundles",
|
|
410
|
+
description: "Get the consent manager (airgap bundle) configured for your organization. Returns the bundle ID, URLs, configuration, and domains.",
|
|
411
|
+
category: "Consent Management",
|
|
412
|
+
readOnly: true,
|
|
413
|
+
annotations: {
|
|
414
|
+
readOnlyHint: true,
|
|
415
|
+
destructiveHint: false,
|
|
416
|
+
idempotentHint: true
|
|
417
|
+
},
|
|
418
|
+
zodSchema: ListAirgapBundlesSchema,
|
|
419
|
+
handler: async (_args) => {
|
|
420
|
+
return createToolResult(true, (await clients.graphql.makeRequest(FETCH_CONSENT_MANAGER, {})).consentManager.consentManager);
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/tools/consent_list_cookies.ts
|
|
426
|
+
const ListCookiesSchema = OffsetPaginationSchema.extend({
|
|
427
|
+
status: z.nativeEnum(ConsentTrackerStatus).describe("Filter by status: NEEDS_REVIEW (triage) or LIVE (approved)"),
|
|
428
|
+
isJunk: z.boolean().optional().describe("Filter by junk status"),
|
|
429
|
+
showZeroActivity: z.boolean().optional().describe("Include items with zero activity. Omit (default) so the NEEDS_REVIEW total matches consent_get_inventory_stats cookies.needReviewCount; set true for the full triage backlog including never-active cookies."),
|
|
430
|
+
text: z.string().optional().describe("Search text filter"),
|
|
431
|
+
service: z.string().optional().describe("Filter by service name"),
|
|
432
|
+
minOccurrences: z.number().min(0).optional().describe("Only return cookies with at least this many occurrences (traffic)"),
|
|
433
|
+
orderField: z.nativeEnum(CookieOrderField).optional().describe("Field to sort by (e.g. occurrences to rank by traffic)"),
|
|
434
|
+
orderDirection: z.nativeEnum(OrderDirection).optional().describe("Sort direction: ASC or DESC")
|
|
435
|
+
});
|
|
436
|
+
function createConsentListCookiesTool(clients) {
|
|
437
|
+
return defineTool({
|
|
438
|
+
name: "consent_list_cookies",
|
|
439
|
+
description: "List cookies in your consent manager. Requires a status filter: NEEDS_REVIEW for triage backlog, LIVE for approved cookies. Returns name, service, tracking purposes, activity (occurrences), junk status, and more. Sort by occurrences (orderField=occurrences, orderDirection=DESC) to surface top-traffic cookies, and use minOccurrences to filter low-traffic noise.",
|
|
440
|
+
category: "Consent Management",
|
|
441
|
+
readOnly: true,
|
|
442
|
+
annotations: {
|
|
443
|
+
readOnlyHint: true,
|
|
444
|
+
destructiveHint: false,
|
|
445
|
+
idempotentHint: true
|
|
446
|
+
},
|
|
447
|
+
zodSchema: ListCookiesSchema,
|
|
448
|
+
handler: async ({ first, offset, status, isJunk, showZeroActivity, text, service, minOccurrences, orderField, orderDirection }) => {
|
|
449
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
450
|
+
const { nodes, totalCount } = (await clients.graphql.makeRequest(COOKIES, {
|
|
451
|
+
input: { airgapBundleId },
|
|
452
|
+
first,
|
|
453
|
+
offset,
|
|
454
|
+
filterBy: {
|
|
455
|
+
status,
|
|
456
|
+
...isJunk !== void 0 ? { isJunk } : {},
|
|
457
|
+
...showZeroActivity !== void 0 ? { showZeroActivity } : {},
|
|
458
|
+
...text ? { text } : {},
|
|
459
|
+
...service ? { service } : {},
|
|
460
|
+
...minOccurrences !== void 0 ? { minOccurrences } : {}
|
|
461
|
+
},
|
|
462
|
+
...orderField && orderDirection ? { orderBy: [{
|
|
463
|
+
field: orderField,
|
|
464
|
+
direction: orderDirection
|
|
465
|
+
}] } : {}
|
|
466
|
+
})).cookies;
|
|
467
|
+
return createListResult(nodes, {
|
|
468
|
+
totalCount,
|
|
469
|
+
hasNextPage: offset + nodes.length < totalCount
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region src/tools/consent_list_data_flows.ts
|
|
476
|
+
const ListDataFlowsSchema = OffsetPaginationSchema.extend({
|
|
477
|
+
status: z.nativeEnum(ConsentTrackerStatus).describe("Filter by status: NEEDS_REVIEW (triage) or LIVE (approved)"),
|
|
478
|
+
isJunk: z.boolean().optional().describe("Filter by junk status"),
|
|
479
|
+
showZeroActivity: z.boolean().optional().describe("Include items with zero activity. Omit (default) so the NEEDS_REVIEW total matches consent_get_inventory_stats dataFlows.needReviewCount (the Consent Manager table). Set true for the full triage backlog including never-active flows."),
|
|
480
|
+
text: z.string().optional().describe("Search text filter"),
|
|
481
|
+
service: z.string().optional().describe("Filter by service name"),
|
|
482
|
+
unmappedOnly: z.boolean().optional().describe("Return only unmapped/orphaned flows with no associated service (catalog integration). Useful with status=LIVE to find approved flows that are not mapped to a service."),
|
|
483
|
+
type: z.nativeEnum(DataFlowScope).optional().describe("Filter by data flow scope type (e.g. HOST, PATH, REGEX, CSP)"),
|
|
484
|
+
minOccurrences: z.number().min(0).optional().describe("Only return flows with at least this many occurrences (traffic)"),
|
|
485
|
+
orderField: z.nativeEnum(DataFlowOrderField).optional().describe("Field to sort by"),
|
|
486
|
+
orderDirection: z.nativeEnum(OrderDirection).optional().describe("Sort direction: ASC or DESC")
|
|
487
|
+
});
|
|
488
|
+
function createConsentListDataFlowsTool(clients) {
|
|
489
|
+
return defineTool({
|
|
490
|
+
name: "consent_list_data_flows",
|
|
491
|
+
description: "List data flows (network requests) in your consent manager. Requires a status filter: NEEDS_REVIEW for triage backlog, LIVE for approved flows. Returns value (URL/host), service, tracking purposes, activity (occurrences), and more. Use unmappedOnly to find approved flows with no service, type to filter by scope (e.g. CSP), and minOccurrences to focus on high-traffic flows.",
|
|
492
|
+
category: "Consent Management",
|
|
493
|
+
readOnly: true,
|
|
494
|
+
annotations: {
|
|
495
|
+
readOnlyHint: true,
|
|
496
|
+
destructiveHint: false,
|
|
497
|
+
idempotentHint: true
|
|
498
|
+
},
|
|
499
|
+
zodSchema: ListDataFlowsSchema,
|
|
500
|
+
handler: async ({ first, offset, status, isJunk, showZeroActivity, text, service, unmappedOnly, type, minOccurrences, orderField, orderDirection }) => {
|
|
501
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
502
|
+
const { nodes, totalCount } = (await clients.graphql.makeRequest(DATA_FLOWS, {
|
|
503
|
+
input: { airgapBundleId },
|
|
504
|
+
first,
|
|
505
|
+
offset,
|
|
506
|
+
filterBy: {
|
|
507
|
+
status,
|
|
508
|
+
...isJunk !== void 0 ? { isJunk } : {},
|
|
509
|
+
...showZeroActivity !== void 0 ? { showZeroActivity } : {},
|
|
510
|
+
...text ? { text } : {},
|
|
511
|
+
...unmappedOnly ? { service: "" } : service ? { service } : {},
|
|
512
|
+
...type ? { type } : {},
|
|
513
|
+
...minOccurrences !== void 0 ? { minOccurrences } : {}
|
|
514
|
+
},
|
|
515
|
+
...orderField && orderDirection ? { orderBy: [{
|
|
516
|
+
field: orderField,
|
|
517
|
+
direction: orderDirection
|
|
518
|
+
}] } : {}
|
|
519
|
+
})).dataFlows;
|
|
520
|
+
return createListResult(nodes, {
|
|
521
|
+
totalCount,
|
|
522
|
+
hasNextPage: offset + nodes.length < totalCount
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region src/tools/consent_list_purposes.ts
|
|
529
|
+
const ListPurposesSchema = z.object({ limit: z.coerce.number().min(1).max(100).optional().default(50).describe("Maximum number of purposes to return (1-100, default 50).") });
|
|
530
|
+
function createConsentListPurposesTool(clients) {
|
|
531
|
+
return defineTool({
|
|
532
|
+
name: "consent_list_purposes",
|
|
533
|
+
description: "List all tracking purposes configured for consent management (max ~100 results).",
|
|
534
|
+
category: "Consent Management",
|
|
535
|
+
readOnly: true,
|
|
536
|
+
annotations: {
|
|
537
|
+
readOnlyHint: true,
|
|
538
|
+
destructiveHint: false,
|
|
539
|
+
idempotentHint: true
|
|
540
|
+
},
|
|
541
|
+
zodSchema: ListPurposesSchema,
|
|
542
|
+
handler: async ({ limit }) => {
|
|
543
|
+
const { nodes, totalCount } = (await clients.graphql.makeRequest(PURPOSES, { first: Math.min(limit, 100) })).purposes;
|
|
544
|
+
return createListResult(nodes, {
|
|
545
|
+
totalCount,
|
|
546
|
+
hasNextPage: nodes.length < totalCount
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region src/tools/consent_list_regimes.ts
|
|
553
|
+
const ListRegimesSchema = z.object({
|
|
554
|
+
limit: z.coerce.number().min(1).max(100).optional().default(50).describe("Maximum number of regimes to return per page (1-100, default 50)."),
|
|
555
|
+
offset: z.coerce.number().min(0).optional().default(0).describe("Number of results to skip for pagination (default 0).")
|
|
556
|
+
});
|
|
557
|
+
function createConsentListRegimesTool(clients) {
|
|
558
|
+
return defineTool({
|
|
559
|
+
name: "consent_list_regimes",
|
|
560
|
+
description: "List all consent experiences (regional regimes) configured for your organization. Returns experience name, regions, purposes, opted-out purposes, and view state.",
|
|
561
|
+
category: "Consent Management",
|
|
562
|
+
readOnly: true,
|
|
563
|
+
annotations: {
|
|
564
|
+
readOnlyHint: true,
|
|
565
|
+
destructiveHint: false,
|
|
566
|
+
idempotentHint: true
|
|
567
|
+
},
|
|
568
|
+
zodSchema: ListRegimesSchema,
|
|
569
|
+
handler: async ({ limit, offset }) => {
|
|
570
|
+
const { totalCount, nodes } = (await clients.graphql.makeRequest(EXPERIENCES, {
|
|
571
|
+
first: limit,
|
|
572
|
+
offset
|
|
573
|
+
})).experiences;
|
|
574
|
+
return createListResult(nodes, {
|
|
575
|
+
totalCount,
|
|
576
|
+
hasNextPage: offset + nodes.length < totalCount
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/tools/consent_set_preferences.ts
|
|
583
|
+
const PurposeConsentSchema = z.object({
|
|
584
|
+
purpose: z.string().describe("Purpose slug"),
|
|
585
|
+
enabled: z.boolean().describe("Whether consent is granted")
|
|
586
|
+
});
|
|
587
|
+
const SetPreferencesSchema = z.object({
|
|
588
|
+
identifier: z.string().optional().describe("User identifier"),
|
|
589
|
+
partition: z.string().describe("Partition/organization context"),
|
|
590
|
+
purposes: z.array(PurposeConsentSchema).describe("Array of purpose consent settings"),
|
|
591
|
+
confirmed: z.boolean().optional().describe("Whether consent was explicitly confirmed")
|
|
592
|
+
});
|
|
593
|
+
function createConsentSetPreferencesTool(clients) {
|
|
594
|
+
const { rest } = clients;
|
|
595
|
+
return defineTool({
|
|
596
|
+
name: "consent_set_preferences",
|
|
597
|
+
description: "Set consent preferences for a user (client-side sync)",
|
|
598
|
+
category: "Consent Management",
|
|
599
|
+
readOnly: false,
|
|
600
|
+
annotations: {
|
|
601
|
+
readOnlyHint: false,
|
|
602
|
+
destructiveHint: false,
|
|
603
|
+
idempotentHint: true
|
|
604
|
+
},
|
|
605
|
+
requireSombra: true,
|
|
606
|
+
zodSchema: SetPreferencesSchema,
|
|
607
|
+
handler: async ({ partition, identifier, purposes, confirmed }) => {
|
|
608
|
+
return createToolResult(true, {
|
|
609
|
+
...await rest.syncConsent({
|
|
610
|
+
partition,
|
|
611
|
+
identifier,
|
|
612
|
+
purposes: purposes.map((p) => ({
|
|
613
|
+
purpose: p.purpose,
|
|
614
|
+
enabled: p.enabled
|
|
615
|
+
})),
|
|
616
|
+
confirmed
|
|
617
|
+
}),
|
|
618
|
+
message: "Consent preferences synced successfully"
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
//#endregion
|
|
624
|
+
//#region src/tools/consent_update_cookies.ts
|
|
625
|
+
const UpdateCookieItemSchema = z.object({
|
|
626
|
+
name: z.string().describe("Cookie name (used as the identifier for upsert)"),
|
|
627
|
+
trackingPurposes: z.array(z.string()).optional().describe("Tracking purpose slugs (e.g., \"Advertising\", \"Analytics\")"),
|
|
628
|
+
description: z.string().optional().describe("Cookie description"),
|
|
629
|
+
service: z.string().optional().describe("Service/integration name"),
|
|
630
|
+
isJunk: z.boolean().optional().describe("Mark as junk"),
|
|
631
|
+
status: z.nativeEnum(ConsentTrackerStatus).optional().describe("Set status to LIVE (approve) or NEEDS_REVIEW")
|
|
632
|
+
});
|
|
633
|
+
const UpdateCookiesSchema = z.object({ cookies: z.array(UpdateCookieItemSchema).min(1).describe("Cookies to update") });
|
|
634
|
+
function createConsentUpdateCookiesTool(clients) {
|
|
635
|
+
return defineTool({
|
|
636
|
+
name: "consent_update_cookies",
|
|
637
|
+
description: "Update one or more cookies. Use to approve (status=LIVE), junk (isJunk=true), assign tracking purposes, or set a service. The cookie \"name\" field is the identifier for upsert — existing cookies with matching names will be updated.",
|
|
638
|
+
category: "Consent Management",
|
|
639
|
+
readOnly: false,
|
|
640
|
+
annotations: {
|
|
641
|
+
readOnlyHint: false,
|
|
642
|
+
destructiveHint: true,
|
|
643
|
+
idempotentHint: true
|
|
644
|
+
},
|
|
645
|
+
zodSchema: UpdateCookiesSchema,
|
|
646
|
+
handler: async ({ cookies }) => {
|
|
647
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
648
|
+
const cookieInputs = cookies.map((c) => ({
|
|
649
|
+
name: c.name,
|
|
650
|
+
...c.trackingPurposes ? { trackingPurposes: c.trackingPurposes } : {},
|
|
651
|
+
...c.description !== void 0 ? { description: c.description } : {},
|
|
652
|
+
...c.service !== void 0 ? { service: c.service } : {},
|
|
653
|
+
...c.isJunk !== void 0 ? { isJunk: c.isJunk } : {},
|
|
654
|
+
...c.status !== void 0 ? { status: c.status } : {}
|
|
655
|
+
}));
|
|
656
|
+
await clients.graphql.makeRequest(UPDATE_OR_CREATE_COOKIES, {
|
|
657
|
+
airgapBundleId,
|
|
658
|
+
cookies: cookieInputs
|
|
659
|
+
});
|
|
660
|
+
return createToolResult(true, {
|
|
661
|
+
updated: cookieInputs.length,
|
|
662
|
+
cookies: cookieInputs.map((c) => ({
|
|
663
|
+
name: c.name,
|
|
664
|
+
status: c.status,
|
|
665
|
+
isJunk: c.isJunk,
|
|
666
|
+
trackingPurposes: c.trackingPurposes,
|
|
667
|
+
service: c.service
|
|
668
|
+
}))
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region src/tools/consent_update_data_flows.ts
|
|
675
|
+
const UpdateDataFlowItemSchema = z.object({
|
|
676
|
+
id: z.string().describe("Data flow ID"),
|
|
677
|
+
trackingPurposes: z.array(z.string()).optional().describe("Tracking purpose slugs"),
|
|
678
|
+
description: z.string().optional().describe("Data flow description"),
|
|
679
|
+
service: z.string().optional().describe("Service/integration name"),
|
|
680
|
+
isJunk: z.boolean().optional().describe("Mark as junk"),
|
|
681
|
+
status: z.nativeEnum(ConsentTrackerStatus).optional().describe("Set status to LIVE (approve) or NEEDS_REVIEW")
|
|
682
|
+
});
|
|
683
|
+
const UpdateDataFlowsSchema = z.object({ dataFlows: z.array(UpdateDataFlowItemSchema).min(1).describe("Data flows to update") });
|
|
684
|
+
function createConsentUpdateDataFlowsTool(clients) {
|
|
685
|
+
return defineTool({
|
|
686
|
+
name: "consent_update_data_flows",
|
|
687
|
+
description: "Update one or more data flows. Use to approve (status=LIVE), junk (isJunk=true), assign tracking purposes, or set a service.",
|
|
688
|
+
category: "Consent Management",
|
|
689
|
+
readOnly: false,
|
|
690
|
+
annotations: {
|
|
691
|
+
readOnlyHint: false,
|
|
692
|
+
destructiveHint: true,
|
|
693
|
+
idempotentHint: true
|
|
694
|
+
},
|
|
695
|
+
zodSchema: UpdateDataFlowsSchema,
|
|
696
|
+
handler: async ({ dataFlows }) => {
|
|
697
|
+
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
698
|
+
const dfInputs = dataFlows.map((df) => ({
|
|
699
|
+
id: df.id,
|
|
700
|
+
...df.trackingPurposes ? { purposeIds: df.trackingPurposes } : {},
|
|
701
|
+
...df.description !== void 0 ? { description: df.description } : {},
|
|
702
|
+
...df.service !== void 0 ? { service: df.service } : {},
|
|
703
|
+
...df.isJunk !== void 0 ? { isJunk: df.isJunk } : {},
|
|
704
|
+
...df.status !== void 0 ? { status: df.status } : {}
|
|
705
|
+
}));
|
|
706
|
+
const data = await clients.graphql.makeRequest(UPDATE_DATA_FLOWS, {
|
|
707
|
+
airgapBundleId,
|
|
708
|
+
dataFlows: dfInputs
|
|
709
|
+
});
|
|
710
|
+
return createToolResult(true, {
|
|
711
|
+
updated: data.updateDataFlows.dataFlows.length,
|
|
712
|
+
dataFlows: data.updateDataFlows.dataFlows.map((df) => ({
|
|
713
|
+
id: df.id,
|
|
714
|
+
value: df.value,
|
|
715
|
+
status: df.status,
|
|
716
|
+
isJunk: df.isJunk,
|
|
717
|
+
purposes: df.purposes.map((p) => p.name),
|
|
718
|
+
service: df.service?.title
|
|
719
|
+
}))
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
//#endregion
|
|
725
|
+
//#region src/tools/index.ts
|
|
726
|
+
function getConsentTools(clients) {
|
|
727
|
+
return [
|
|
728
|
+
createConsentGetPreferencesTool(clients),
|
|
729
|
+
createConsentSetPreferencesTool(clients),
|
|
730
|
+
createConsentListPurposesTool(clients),
|
|
731
|
+
createConsentListDataFlowsTool(clients),
|
|
732
|
+
createConsentListCookiesTool(clients),
|
|
733
|
+
createConsentListAirgapBundlesTool(clients),
|
|
734
|
+
createConsentListRegimesTool(clients),
|
|
735
|
+
createConsentGetInventoryStatsTool(clients),
|
|
736
|
+
createConsentGetAggregateAnalyticsTool(clients),
|
|
737
|
+
createConsentGetTimeseriesAnalyticsTool(clients),
|
|
738
|
+
createConsentGetAnalyticsDataTool(clients),
|
|
739
|
+
createConsentUpdateCookiesTool(clients),
|
|
740
|
+
createConsentUpdateDataFlowsTool(clients),
|
|
741
|
+
createConsentBulkTriageTool(clients)
|
|
742
|
+
];
|
|
743
|
+
}
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region src/prompts/consent_inspect_site.ts
|
|
746
|
+
const consentInspectSitePrompt = {
|
|
747
|
+
name: "consent-inspect-site",
|
|
748
|
+
description: "Live site investigation methodology for consent triage using browser DevTools. Covers regime overrides, consent verification, performance entries, HTML search, ad infrastructure checks, and airgap classification queries.",
|
|
749
|
+
arguments: [
|
|
750
|
+
{
|
|
751
|
+
name: "site_url",
|
|
752
|
+
description: "The site to investigate (e.g. \"https://example.com\")",
|
|
753
|
+
required: true
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
name: "tracker_domains",
|
|
757
|
+
description: "Comma-separated tracker domains to look for (e.g. \"doubleclick.net,google-analytics.com\")",
|
|
758
|
+
required: true
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
name: "regime",
|
|
762
|
+
description: "The most permissive regime name for URL override (e.g. \"us\"). Choose the regime with fewest opted-out purposes so trackers fire.",
|
|
763
|
+
required: false
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
handler: (args) => {
|
|
767
|
+
const siteUrl = args.site_url || "(not specified)";
|
|
768
|
+
const trackerDomains = args.tracker_domains || "(not specified)";
|
|
769
|
+
const regime = args.regime || "us";
|
|
770
|
+
const domainList = trackerDomains.split(",").map((d) => d.trim()).filter(Boolean);
|
|
771
|
+
const domainArrayLiteral = JSON.stringify(domainList);
|
|
772
|
+
return [{
|
|
773
|
+
role: "user",
|
|
774
|
+
content: {
|
|
775
|
+
type: "text",
|
|
776
|
+
text: `Investigate how these trackers load on ${siteUrl}: ${trackerDomains}. Use regime "${regime}" for debug overrides.`
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
role: "assistant",
|
|
780
|
+
content: {
|
|
781
|
+
type: "text",
|
|
782
|
+
text: `## Live Site Investigation
|
|
783
|
+
|
|
784
|
+
### Important: Platform vs Client Sites
|
|
785
|
+
|
|
786
|
+
The bundle name (e.g. "acme-platform") may be a platform provider, not the actual
|
|
787
|
+
site with trackers. If the main domain is a corporate page without ad trackers, find a
|
|
788
|
+
real client site from links on the homepage and use that instead.
|
|
789
|
+
|
|
790
|
+
### Step 1: Navigate with Debug Overrides
|
|
791
|
+
|
|
792
|
+
Load the page with hash parameters to control consent behavior:
|
|
793
|
+
|
|
794
|
+
\`\`\`
|
|
795
|
+
${siteUrl}/#tcm-regime=${regime}&tcm-prompt=Hidden&log=*
|
|
796
|
+
\`\`\`
|
|
797
|
+
|
|
798
|
+
| Parameter | Purpose |
|
|
799
|
+
|-----------|---------|
|
|
800
|
+
| \`tcm-regime=${regime}\` | Force the most permissive privacy regime |
|
|
801
|
+
| \`tcm-prompt=Hidden\` | Suppress the consent banner |
|
|
802
|
+
| \`log=*\` | Enable verbose airgap debug logging |
|
|
803
|
+
|
|
804
|
+
When \`docs_list\` / \`docs_fetch\` are available, fetch the debugging article for full detail; otherwise open:
|
|
805
|
+
https://docs.transcend.io/docs/articles/consent-management/reference/debugging-and-testing
|
|
806
|
+
|
|
807
|
+
### Step 2: Verify Consent State
|
|
808
|
+
|
|
809
|
+
\`\`\`javascript
|
|
810
|
+
(() => {
|
|
811
|
+
if (!window.airgap) return 'airgap not loaded';
|
|
812
|
+
return JSON.stringify({
|
|
813
|
+
regimes: airgap.getRegimes(),
|
|
814
|
+
purposes: airgap.getConsent().purposes,
|
|
815
|
+
regimePurposes: airgap.getRegimePurposes(),
|
|
816
|
+
}, null, 2);
|
|
817
|
+
})()
|
|
818
|
+
\`\`\`
|
|
819
|
+
|
|
820
|
+
All purposes should be \`true\` or \`"Auto"\`. If not, opt in manually:
|
|
821
|
+
|
|
822
|
+
\`\`\`javascript
|
|
823
|
+
(() => {
|
|
824
|
+
airgap.optIn(Object.fromEntries(
|
|
825
|
+
airgap.getRegimePurposes().map(p => [p, true])
|
|
826
|
+
));
|
|
827
|
+
return JSON.stringify(airgap.getConsent().purposes);
|
|
828
|
+
})()
|
|
829
|
+
\`\`\`
|
|
830
|
+
|
|
831
|
+
### Step 3: Check Performance Entries for Tracker Domains
|
|
832
|
+
|
|
833
|
+
\`\`\`javascript
|
|
834
|
+
(() => {
|
|
835
|
+
const domains = ${domainArrayLiteral};
|
|
836
|
+
const entries = performance.getEntriesByType('resource');
|
|
837
|
+
const results = {};
|
|
838
|
+
for (const d of domains) {
|
|
839
|
+
results[d] = entries.filter(e => e.name.includes(d)).map(e => ({
|
|
840
|
+
url: e.name,
|
|
841
|
+
initiator: e.initiatorType,
|
|
842
|
+
duration: Math.round(e.duration),
|
|
843
|
+
size: e.transferSize,
|
|
844
|
+
}));
|
|
845
|
+
}
|
|
846
|
+
return JSON.stringify(results, null, 2);
|
|
847
|
+
})()
|
|
848
|
+
\`\`\`
|
|
849
|
+
|
|
850
|
+
### Step 4: Search Page HTML
|
|
851
|
+
|
|
852
|
+
\`\`\`javascript
|
|
853
|
+
(() => {
|
|
854
|
+
const terms = ${domainArrayLiteral};
|
|
855
|
+
const html = document.documentElement.outerHTML;
|
|
856
|
+
const results = {};
|
|
857
|
+
for (const term of terms) {
|
|
858
|
+
const matches = [];
|
|
859
|
+
let i = 0;
|
|
860
|
+
while ((i = html.indexOf(term, i)) !== -1) {
|
|
861
|
+
matches.push(html.substring(Math.max(0, i - 100), Math.min(html.length, i + 100)));
|
|
862
|
+
i += term.length;
|
|
863
|
+
if (matches.length > 3) break;
|
|
864
|
+
}
|
|
865
|
+
results[term] = { count: matches.length, samples: matches };
|
|
866
|
+
}
|
|
867
|
+
return JSON.stringify(results, null, 2);
|
|
868
|
+
})()
|
|
869
|
+
\`\`\`
|
|
870
|
+
|
|
871
|
+
### Step 5: Identify Ad Infrastructure
|
|
872
|
+
|
|
873
|
+
\`\`\`javascript
|
|
874
|
+
(() => {
|
|
875
|
+
const scripts = Array.from(document.querySelectorAll('script[src]')).map(s => s.src);
|
|
876
|
+
// Non-exhaustive list of common ad tech scripts; look for any third-party ad scripts beyond these
|
|
877
|
+
const adScripts = scripts.filter(s =>
|
|
878
|
+
s.includes('prebid') || s.includes('gpt.js') || s.includes('googletag') ||
|
|
879
|
+
s.includes('taboola') || s.includes('criteo') || s.includes('amazon-adsystem') ||
|
|
880
|
+
s.includes('adsbygoogle') || s.includes('doubleclick')
|
|
881
|
+
);
|
|
882
|
+
const adDivs = Array.from(document.querySelectorAll(
|
|
883
|
+
'[data-prebid], [data-ad], [data-ad-slot], [data-ad-unit], [id*="ad-slot"], [id*="ad-unit"], [class*="ad-container"]'
|
|
884
|
+
));
|
|
885
|
+
const adSlots = adDivs.map(d => ({
|
|
886
|
+
tag: d.tagName, id: d.id, class: d.className?.substring(0, 60),
|
|
887
|
+
dataSizes: d.getAttribute('data-sizes'),
|
|
888
|
+
dataPrebid: d.getAttribute('data-prebid'),
|
|
889
|
+
dataTargeting: d.getAttribute('data-targeting'),
|
|
890
|
+
}));
|
|
891
|
+
const iframes = Array.from(document.querySelectorAll('iframe'));
|
|
892
|
+
const adIframes = iframes.filter(f => f.title?.includes('ad') || f.id?.includes('ad'));
|
|
893
|
+
return JSON.stringify({
|
|
894
|
+
adScripts,
|
|
895
|
+
adSlotCount: adSlots.length,
|
|
896
|
+
adSlotSamples: adSlots.slice(0, 5),
|
|
897
|
+
adIframes: adIframes.map(f => ({
|
|
898
|
+
id: f.id, src: f.src?.substring(0, 150), title: f.title,
|
|
899
|
+
})),
|
|
900
|
+
}, null, 2);
|
|
901
|
+
})()
|
|
902
|
+
\`\`\`
|
|
903
|
+
|
|
904
|
+
### Step 6: Check Inline Initialization Scripts
|
|
905
|
+
|
|
906
|
+
\`\`\`javascript
|
|
907
|
+
(() => {
|
|
908
|
+
const scripts = Array.from(document.querySelectorAll('script:not([src])'));
|
|
909
|
+
const adInline = scripts.filter(s =>
|
|
910
|
+
s.textContent.includes('prebid') || s.textContent.includes('googletag') ||
|
|
911
|
+
s.textContent.includes('adsbygoogle') || s.textContent.includes('criteo') ||
|
|
912
|
+
s.textContent.includes('taboola')
|
|
913
|
+
);
|
|
914
|
+
return JSON.stringify(adInline.map(s => ({
|
|
915
|
+
parent: s.parentElement?.tagName,
|
|
916
|
+
preview: s.textContent.substring(0, 500),
|
|
917
|
+
})), null, 2);
|
|
918
|
+
})()
|
|
919
|
+
\`\`\`
|
|
920
|
+
|
|
921
|
+
### Step 7: Check Window Globals and Ad Config
|
|
922
|
+
|
|
923
|
+
\`\`\`javascript
|
|
924
|
+
(() => {
|
|
925
|
+
const knownAdGlobals = ['pbjs', 'googletag', '__tcfapi', '__gpp', '__cmp',
|
|
926
|
+
'adsbygoogle', '_taboola', 'criteo_q', 'apstag'];
|
|
927
|
+
const adGlobals = Object.keys(window).filter(k =>
|
|
928
|
+
knownAdGlobals.some(g => k.toLowerCase().includes(g.toLowerCase()))
|
|
929
|
+
);
|
|
930
|
+
const configs = {};
|
|
931
|
+
for (const g of adGlobals) {
|
|
932
|
+
try {
|
|
933
|
+
const val = window[g];
|
|
934
|
+
if (val && typeof val === 'object') {
|
|
935
|
+
configs[g] = JSON.stringify(val).substring(0, 500);
|
|
936
|
+
}
|
|
937
|
+
} catch {}
|
|
938
|
+
}
|
|
939
|
+
return JSON.stringify({ adGlobals, configs }, null, 2);
|
|
940
|
+
})()
|
|
941
|
+
\`\`\`
|
|
942
|
+
|
|
943
|
+
### Step 8: Check Airgap Classification Per Tracker
|
|
944
|
+
|
|
945
|
+
\`\`\`javascript
|
|
946
|
+
(async () => {
|
|
947
|
+
if (!window.airgap) return 'airgap not loaded';
|
|
948
|
+
const domains = ${domainArrayLiteral};
|
|
949
|
+
const results = {};
|
|
950
|
+
for (const d of domains) {
|
|
951
|
+
try {
|
|
952
|
+
const purposes = await airgap.getPurposes('https://' + d + '/');
|
|
953
|
+
const allowed = await airgap.isAllowed('https://' + d + '/');
|
|
954
|
+
results[d] = { purposes, allowed };
|
|
955
|
+
} catch (e) { results[d] = { error: e.message }; }
|
|
956
|
+
}
|
|
957
|
+
return JSON.stringify(results, null, 2);
|
|
958
|
+
})()
|
|
959
|
+
\`\`\`
|
|
960
|
+
|
|
961
|
+
### Step 9: Read Console Logs
|
|
962
|
+
|
|
963
|
+
Read the browser console output. The \`log=*\` override makes airgap emit detailed
|
|
964
|
+
allow/block decisions for every request, including purpose lookups. Search these logs
|
|
965
|
+
for each tracker domain to see how airgap classifies and handles it.
|
|
966
|
+
|
|
967
|
+
## Useful Console Commands Reference
|
|
968
|
+
|
|
969
|
+
| Command | Purpose |
|
|
970
|
+
|---------|---------|
|
|
971
|
+
| \`airgap.getConsent().purposes\` | Current consent state per purpose |
|
|
972
|
+
| \`airgap.getRegimes()\` | Active regime(s) for this session |
|
|
973
|
+
| \`airgap.getRegimePurposes()\` | Purposes regulated under current regime |
|
|
974
|
+
| \`await airgap.getPurposes('{url}')\` | What purposes a URL is classified under |
|
|
975
|
+
| \`await airgap.isAllowed('{url}')\` | Whether a URL is currently allowed |
|
|
976
|
+
| \`await airgap.isCookieAllowed({name:'{name}'})\` | Whether a cookie is allowed |
|
|
977
|
+
| \`await airgap.getCookiePurposes({name:'{name}'})\` | Cookie's assigned purposes |
|
|
978
|
+
| \`airgap.export().requests\` | Quarantined requests |
|
|
979
|
+
| \`airgap.export().cookies\` | Quarantined cookies |
|
|
980
|
+
| \`airgap.version\` | Current airgap version |
|
|
981
|
+
|
|
982
|
+
## Output Format
|
|
983
|
+
|
|
984
|
+
For each tracker return:
|
|
985
|
+
|
|
986
|
+
\`\`\`json
|
|
987
|
+
{
|
|
988
|
+
"domain": "<domain>",
|
|
989
|
+
"found_on_page": true,
|
|
990
|
+
"loading_method": "direct_script|tag_manager|iframe|dynamic|not_found",
|
|
991
|
+
"loaded_by": "<what script or mechanism loads it>",
|
|
992
|
+
"in_main_document": true,
|
|
993
|
+
"airgap_purposes": ["Advertising"],
|
|
994
|
+
"airgap_allowed": true,
|
|
995
|
+
"ad_infrastructure": "<detected ad chain, e.g. Prebid -> GPT>",
|
|
996
|
+
"related_config": "<relevant config values>",
|
|
997
|
+
"notes": "<additional observations>"
|
|
998
|
+
}
|
|
999
|
+
\`\`\`
|
|
1000
|
+
|
|
1001
|
+
Also return a site summary:
|
|
1002
|
+
|
|
1003
|
+
\`\`\`json
|
|
1004
|
+
{
|
|
1005
|
+
"site_investigated": "<actual URL used>",
|
|
1006
|
+
"ad_stack": "<detected stack, e.g. Prebid -> Google Publisher Tags>",
|
|
1007
|
+
"consent_manager": "Transcend CMP",
|
|
1008
|
+
"total_ad_slots": "<count>",
|
|
1009
|
+
"total_scripts": "<count>",
|
|
1010
|
+
"total_iframes": "<count>"
|
|
1011
|
+
}
|
|
1012
|
+
\`\`\``
|
|
1013
|
+
}
|
|
1014
|
+
}];
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
//#endregion
|
|
1018
|
+
//#region src/prompts/consent_research_tracker.ts
|
|
1019
|
+
const consentResearchTrackerPrompt = {
|
|
1020
|
+
name: "consent-research-tracker",
|
|
1021
|
+
description: "Research methodology for classifying cookies and data flows. Covers company identification, privacy policy lookup, CMP database checks, and structured evidence gathering for consent purpose assignment.",
|
|
1022
|
+
arguments: [
|
|
1023
|
+
{
|
|
1024
|
+
name: "domain",
|
|
1025
|
+
description: "The tracker domain or cookie name to research (e.g. \"doubleclick.net\", \"_ga\")",
|
|
1026
|
+
required: true
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
name: "type",
|
|
1030
|
+
description: "Whether this is a \"cookie\" or \"data_flow\" (default: \"data_flow\")",
|
|
1031
|
+
required: false
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
name: "available_purposes",
|
|
1035
|
+
description: "Comma-separated list of the customer's configured purposes (e.g. \"Essential,Functional,Analytics,Advertising,SaleOfInfo\"). Only recommend purposes from this list.",
|
|
1036
|
+
required: false
|
|
1037
|
+
}
|
|
1038
|
+
],
|
|
1039
|
+
handler: (args) => {
|
|
1040
|
+
const domain = args.domain || "(not specified)";
|
|
1041
|
+
return [{
|
|
1042
|
+
role: "user",
|
|
1043
|
+
content: {
|
|
1044
|
+
type: "text",
|
|
1045
|
+
text: `Research the ${args.type || "data_flow"} "${domain}" to determine its consent classification. Available purposes: ${args.available_purposes || "(fetch from consent_list_purposes)"}`
|
|
1046
|
+
}
|
|
1047
|
+
}, {
|
|
1048
|
+
role: "assistant",
|
|
1049
|
+
content: {
|
|
1050
|
+
type: "text",
|
|
1051
|
+
text: `## Research Methodology
|
|
1052
|
+
|
|
1053
|
+
For each tracker or cookie, follow these steps in order:
|
|
1054
|
+
|
|
1055
|
+
### Step 1: Company Identification
|
|
1056
|
+
|
|
1057
|
+
Search the root domain (strip subdomains for broader matches) to find the operating company.
|
|
1058
|
+
Check for recent acquisitions or rebrands — ad tech companies frequently change ownership.
|
|
1059
|
+
|
|
1060
|
+
### Step 2: First-Party Privacy Docs
|
|
1061
|
+
|
|
1062
|
+
Find and read the company's privacy policy and/or cookie policy. Look for:
|
|
1063
|
+
- How they classify their own tracking
|
|
1064
|
+
- What data they collect
|
|
1065
|
+
- Stated purposes for data processing
|
|
1066
|
+
- Data retention periods
|
|
1067
|
+
|
|
1068
|
+
### Step 3: Service Description
|
|
1069
|
+
|
|
1070
|
+
Understand the business model:
|
|
1071
|
+
- Ad tech (DSP, SSP, ad exchange, header bidding)?
|
|
1072
|
+
- Analytics (pageview counters, session recording, A/B testing)?
|
|
1073
|
+
- CMP (consent management platform)?
|
|
1074
|
+
- CDN / performance (content delivery, image optimization)?
|
|
1075
|
+
- Functional (chat, support, preferences, authentication)?
|
|
1076
|
+
- Data broker (selling/sharing data with third parties)?
|
|
1077
|
+
|
|
1078
|
+
### Step 4: CMP Database Lookups
|
|
1079
|
+
|
|
1080
|
+
Search these databases for existing classifications:
|
|
1081
|
+
|
|
1082
|
+
| Database | URL | Use For |
|
|
1083
|
+
|----------|-----|---------|
|
|
1084
|
+
| CookieDatabase.org | https://cookiedatabase.org/ | Cookie name lookup |
|
|
1085
|
+
| better.fyi trackers | https://better.fyi/trackers/ | Domain-to-company lookup |
|
|
1086
|
+
| Ghostery TrackerDB | https://www.ghostery.com/trackerdb | Tracker classification |
|
|
1087
|
+
| Cookiepedia | https://cookiepedia.co.uk/ | Cookie purpose database |
|
|
1088
|
+
| BuiltWith | https://builtwith.com/ | Site technology stack |
|
|
1089
|
+
| urlscan.io | https://urlscan.io/ | Domain/infrastructure analysis |
|
|
1090
|
+
|
|
1091
|
+
### Step 5: Third-Party Cookie Policies
|
|
1092
|
+
|
|
1093
|
+
Find other companies' published cookie policies that classify this same tracker/service.
|
|
1094
|
+
Multiple independent classifications strengthen confidence.
|
|
1095
|
+
|
|
1096
|
+
### Step 6: Essential vs Non-Essential Determination
|
|
1097
|
+
|
|
1098
|
+
Based on all evidence:
|
|
1099
|
+
- Would the site break without this tracker? (Essential)
|
|
1100
|
+
- Is it required for core functionality like auth, security, or the CMP itself? (Essential)
|
|
1101
|
+
- Does it enhance features without being required? (Functional)
|
|
1102
|
+
- Does it measure usage or behavior? (Analytics)
|
|
1103
|
+
- Does it serve, target, or retarget ads? (Advertising)
|
|
1104
|
+
- Is data sold or shared with third parties for their own use? (SaleOfInfo)
|
|
1105
|
+
|
|
1106
|
+
Items can have multiple purposes (e.g. ["Advertising", "Analytics"] for an ad platform
|
|
1107
|
+
that also tracks impressions).
|
|
1108
|
+
|
|
1109
|
+
IMPORTANT: Only recommend purposes from the customer's configured list. If research
|
|
1110
|
+
suggests a purpose that doesn't exist for this customer, flag it and suggest the closest
|
|
1111
|
+
available match.
|
|
1112
|
+
|
|
1113
|
+
## Junk Indicators
|
|
1114
|
+
|
|
1115
|
+
Mark as JUNK (not a real tracker to classify) if:
|
|
1116
|
+
- From a browser extension (Grammarly, LastPass, ad blockers injecting scripts)
|
|
1117
|
+
- Malware or unwanted injection not placed by the site operator
|
|
1118
|
+
- A development/testing artifact (localhost, staging URLs)
|
|
1119
|
+
- A subdomain variant of an already-approved regex rule
|
|
1120
|
+
|
|
1121
|
+
## Confidence Levels
|
|
1122
|
+
|
|
1123
|
+
- **High**: First-party docs confirm, OR multiple CMPs agree, OR well-known tracker
|
|
1124
|
+
- **Medium**: Some evidence but no definitive first-party documentation
|
|
1125
|
+
- **Low**: No docs found, best-guess only — flag for manual review
|
|
1126
|
+
|
|
1127
|
+
## Output Format
|
|
1128
|
+
|
|
1129
|
+
Return a structured finding for each item:
|
|
1130
|
+
|
|
1131
|
+
\`\`\`json
|
|
1132
|
+
{
|
|
1133
|
+
"domain": "<domain or cookie name>",
|
|
1134
|
+
"company_name": "<identified company>",
|
|
1135
|
+
"company_description": "<what the company does, 1-2 sentences>",
|
|
1136
|
+
"service_url": "<company homepage>",
|
|
1137
|
+
"specific_product": "<what product/feature this domain serves>",
|
|
1138
|
+
"recommended_purposes": ["Advertising"],
|
|
1139
|
+
"confidence": "High",
|
|
1140
|
+
"is_junk": false,
|
|
1141
|
+
"evidence_summary": "<2-3 sentence summary with key facts>",
|
|
1142
|
+
"sources": ["<url1>", "<url2>"],
|
|
1143
|
+
"suggested_description": "<one-line description to save as Transcend note>",
|
|
1144
|
+
"first_party_privacy_url": "<URL of their privacy/cookie policy if found>",
|
|
1145
|
+
"other_cmps_classify_as": "<what other CMPs say>"
|
|
1146
|
+
}
|
|
1147
|
+
\`\`\``
|
|
1148
|
+
}
|
|
1149
|
+
}];
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
//#endregion
|
|
1153
|
+
//#region src/prompts/consent_triage.ts
|
|
1154
|
+
const consentTriagePrompt = {
|
|
1155
|
+
name: "consent-triage",
|
|
1156
|
+
description: "Systematically triage cookies and data flows discovered by Transcend consent telemetry. Walks through setup, batch fetching, research, review, and classification push.",
|
|
1157
|
+
arguments: [{
|
|
1158
|
+
name: "triage_type",
|
|
1159
|
+
description: "What to triage: \"cookies\", \"data_flows\", or \"both\" (default: \"both\")",
|
|
1160
|
+
required: false
|
|
1161
|
+
}, {
|
|
1162
|
+
name: "batch_size",
|
|
1163
|
+
description: "Number of items per batch (default: 10)",
|
|
1164
|
+
required: false
|
|
1165
|
+
}],
|
|
1166
|
+
handler: (args) => {
|
|
1167
|
+
const triageType = args.triage_type || "both";
|
|
1168
|
+
const batchSize = args.batch_size || "10";
|
|
1169
|
+
return [{
|
|
1170
|
+
role: "user",
|
|
1171
|
+
content: {
|
|
1172
|
+
type: "text",
|
|
1173
|
+
text: `Triage ${triageType === "both" ? "cookies and data flows" : triageType} in batches of ${batchSize}, sorted by highest traffic first.`
|
|
1174
|
+
}
|
|
1175
|
+
}, {
|
|
1176
|
+
role: "assistant",
|
|
1177
|
+
content: {
|
|
1178
|
+
type: "text",
|
|
1179
|
+
text: `I'll walk through the consent triage workflow. Here's how it works:
|
|
1180
|
+
|
|
1181
|
+
## Phase 1: Setup
|
|
1182
|
+
|
|
1183
|
+
Gather the customer's consent configuration by calling these tools in parallel:
|
|
1184
|
+
|
|
1185
|
+
1. \`consent_list_airgap_bundles\` — get the consent manager info (bundle ID is auto-resolved)
|
|
1186
|
+
2. \`consent_get_inventory_stats\` — backlog overview
|
|
1187
|
+
3. \`consent_list_purposes\` — the customer's configured tracking purposes
|
|
1188
|
+
4. \`consent_list_regimes\` — consent experiences with regions, purposes, and opt-out defaults
|
|
1189
|
+
|
|
1190
|
+
CRITICAL: Each customer configures their own purposes. Do NOT assume defaults exist. Only use purposes returned by \`consent_list_purposes\` for classification.
|
|
1191
|
+
|
|
1192
|
+
From the regimes data, determine:
|
|
1193
|
+
- Which purposes can be opted out of per experience
|
|
1194
|
+
- Which purposes default to opted-out
|
|
1195
|
+
- The most permissive regime (fewest opted-out purposes) — needed for live site investigation
|
|
1196
|
+
|
|
1197
|
+
Present the customer's setup:
|
|
1198
|
+
|
|
1199
|
+
| Purpose | Slug | Used in Regimes |
|
|
1200
|
+
|---------|------|-----------------|
|
|
1201
|
+
| (from API) | (from API) | (cross-ref with regimes) |
|
|
1202
|
+
|
|
1203
|
+
Present triage stats from \`consent_get_inventory_stats\` (cookie and data-flow counts match the Consent Manager tables; CSP data flows are omitted like the UI):
|
|
1204
|
+
|
|
1205
|
+
| Metric | Cookies | Data Flows |
|
|
1206
|
+
|--------|---------|------------|
|
|
1207
|
+
| Needs Review | cookies.needReviewCount | dataFlows.needReviewCount |
|
|
1208
|
+
| Live (Approved) | cookies.liveCount | dataFlows.liveCount |
|
|
1209
|
+
| Junk | cookies.junkCount | dataFlows.junkCount |
|
|
1210
|
+
|
|
1211
|
+
## Phase 2: Fetch Batch
|
|
1212
|
+
|
|
1213
|
+
Fetch the next batch of items needing review, sorted by highest traffic:
|
|
1214
|
+
|
|
1215
|
+
${[triageType === "cookies" || triageType === "both" ? "- `consent_list_cookies { status: \"NEEDS_REVIEW\", first: " + batchSize + ", order_field: \"occurrences\", order_direction: \"DESC\" }`" : "", triageType === "data_flows" || triageType === "both" ? "- `consent_list_data_flows { status: \"NEEDS_REVIEW\", first: " + batchSize + ", order_field: \"occurrences\", order_direction: \"DESC\" }`" : ""].filter(Boolean).join("\n")}
|
|
1216
|
+
|
|
1217
|
+
Present in this table format:
|
|
1218
|
+
|
|
1219
|
+
| # | Name/Domain | Type | Service | Auto-Purposes | Occurrences | Sites | First Seen |
|
|
1220
|
+
|---|-------------|------|---------|---------------|-------------|-------|------------|
|
|
1221
|
+
|
|
1222
|
+
## Phase 3: Research
|
|
1223
|
+
|
|
1224
|
+
For each item in the batch, research its purpose using web search and CMP databases.
|
|
1225
|
+
Use the \`consent-research-tracker\` prompt for detailed research methodology.
|
|
1226
|
+
If browser/DevTools access is available, use the \`consent-inspect-site\` prompt for live site investigation.
|
|
1227
|
+
|
|
1228
|
+
Split items into parallel research groups of 3–5 items each for efficiency.
|
|
1229
|
+
|
|
1230
|
+
## Phase 4: Present Findings
|
|
1231
|
+
|
|
1232
|
+
For each researched item, present:
|
|
1233
|
+
|
|
1234
|
+
### {name/domain}
|
|
1235
|
+
| Field | Value |
|
|
1236
|
+
|-------|-------|
|
|
1237
|
+
| Type | Cookie / Data Flow (HOST/REGEX) |
|
|
1238
|
+
| Domain | \`example.com\` |
|
|
1239
|
+
| Service | Service Name (or "Unknown") |
|
|
1240
|
+
| Current Purposes | What Transcend auto-classified (if any) |
|
|
1241
|
+
| Recommended Purpose | Research-based recommendation |
|
|
1242
|
+
| Confidence | High / Medium / Low |
|
|
1243
|
+
| How Loaded | Direct script / Tag manager / iframe / Dynamic |
|
|
1244
|
+
| Occurrences | N |
|
|
1245
|
+
| Evidence | Brief summary + source URLs |
|
|
1246
|
+
| Recommended Action | APPROVE with purposes / JUNK / NEEDS MANUAL REVIEW |
|
|
1247
|
+
| Suggested Note | Description to save to Transcend |
|
|
1248
|
+
|
|
1249
|
+
Then show a summary action table:
|
|
1250
|
+
|
|
1251
|
+
| # | Name/Domain | Action | Purposes | Service | Note |
|
|
1252
|
+
|---|-------------|--------|----------|---------|------|
|
|
1253
|
+
|
|
1254
|
+
Ask the user to confirm, modify, or reject each recommendation before proceeding.
|
|
1255
|
+
|
|
1256
|
+
## Phase 5: Push Classifications
|
|
1257
|
+
|
|
1258
|
+
For confirmed items, update Transcend:
|
|
1259
|
+
|
|
1260
|
+
- Individual updates with notes: \`consent_update_data_flows\` / \`consent_update_cookies\` with id, tracking_purposes, description, service, status: "LIVE"
|
|
1261
|
+
- Bulk approve/junk: \`consent_bulk_triage\` with items array containing type, id, action, tracking_purposes
|
|
1262
|
+
- Mark junk items with action "JUNK" (no purposes needed)
|
|
1263
|
+
|
|
1264
|
+
After pushing, report what was updated and show the remaining triage count.
|
|
1265
|
+
|
|
1266
|
+
## Phase 6: Loop
|
|
1267
|
+
|
|
1268
|
+
Ask the user if they want to continue with the next batch. Repeat from Phase 2.
|
|
1269
|
+
|
|
1270
|
+
## Key References
|
|
1271
|
+
|
|
1272
|
+
When \`docs_list\` / \`docs_fetch\` are available (e.g. the unified \`@transcend-io/mcp\` server), prefer those for full markdown. Otherwise open the docs URLs directly:
|
|
1273
|
+
|
|
1274
|
+
- Triage guide: https://docs.transcend.io/docs/articles/consent-management/configuration/triage-cookies-and-dataflows-guide
|
|
1275
|
+
- Data flows & cookies: https://docs.transcend.io/docs/articles/consent-management/concepts/data-flows-and-cookies
|
|
1276
|
+
- Tracking purposes: https://docs.transcend.io/docs/articles/consent-management/concepts/tracking-purposes
|
|
1277
|
+
- Regional experiences: https://docs.transcend.io/docs/articles/consent-management/configuration/regional-experiences
|
|
1278
|
+
- Telemetry overview: https://docs.transcend.io/docs/articles/consent-management/configuration/telemetry-overview`
|
|
1279
|
+
}
|
|
1280
|
+
}];
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region src/prompts/index.ts
|
|
1285
|
+
/**
|
|
1286
|
+
* Returns consent workflow prompt templates for MCP prompts/list and prompts/get.
|
|
1287
|
+
*
|
|
1288
|
+
* @param _clients - Unused; accepted so createMCPServer can pass the same factory shape as getTools
|
|
1289
|
+
*/
|
|
1290
|
+
function getConsentPrompts(_clients) {
|
|
1291
|
+
return [
|
|
1292
|
+
consentTriagePrompt,
|
|
1293
|
+
consentResearchTrackerPrompt,
|
|
1294
|
+
consentInspectSitePrompt
|
|
1295
|
+
];
|
|
1296
|
+
}
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region src/scopes.ts
|
|
1299
|
+
/** OAuth scopes required for Consent MCP tools (offline_access added by base). */
|
|
1300
|
+
const CONSENT_OAUTH_SCOPES = [
|
|
1301
|
+
ScopeName.ViewConsentManager,
|
|
1302
|
+
ScopeName.ViewAssignedConsentManager,
|
|
1303
|
+
ScopeName.ManageConsentManager,
|
|
1304
|
+
ScopeName.ManageAssignedConsentManager,
|
|
1305
|
+
ScopeName.ViewDataFlow,
|
|
1306
|
+
ScopeName.ManageDataFlow
|
|
1307
|
+
];
|
|
1308
|
+
//#endregion
|
|
1309
|
+
export { resolveAirgapBundleId as C, BulkTriageSchema as S, GetInventoryStatsSchema as _, UpdateDataFlowsSchema as a, resolveAnalyticsDateRange as b, PurposeConsentSchema as c, ListPurposesSchema as d, ListDataFlowsSchema as f, GetPreferencesSchema as g, GetTimeseriesAnalyticsSchema as h, UpdateDataFlowItemSchema as i, SetPreferencesSchema as l, ListAirgapBundlesSchema as m, getConsentPrompts as n, UpdateCookieItemSchema as o, ListCookiesSchema as p, getConsentTools as r, UpdateCookiesSchema as s, CONSENT_OAUTH_SCOPES as t, ListRegimesSchema as u, GetAnalyticsDataSchema as v, BulkTriageItemSchema as x, GetAggregateAnalyticsSchema as y };
|
|
1310
|
+
|
|
1311
|
+
//# sourceMappingURL=scopes-DYOovdFV.mjs.map
|