@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
2,011 lines (2,010 loc) • 3.26 MB
JavaScript
import { ref as ge, computed as A, capitalize as mj, readonly as RI, inject as Vv, getCurrentInstance as AI, resolveComponent as P, createElementBlock as z, openBlock as k, createTextVNode as G, createVNode as _, withCtx as b, toValue as Qe, reactive as lt, toRef as xe, watch as Pt, isReactive as yj, toRefs as Nn, onScopeDispose as EI, watchEffect as hx, onUnmounted as Dm, isRef as Xe, unref as v, onMounted as wi, defineComponent as B, mergeModels as Ur, useModel as zn, useSlots as MI, createBlock as O, createCommentVNode as q, renderSlot as Ve, Fragment as ve, createElementVNode as re, resolveDynamicComponent as Pr, normalizeProps as sn, guardReactiveProps as kn, toDisplayString as ie, mergeProps as yt, renderList as ln, createSlots as Xt, markRaw as gj, normalizeClass as Ut, normalizeStyle as T0, KeepAlive as fx, withAsyncContext as mx, onActivated as vj, provide as DI, onBeforeMount as PI, h as Pm, getCurrentScope as _j, withKeys as CI, withModifiers as tk, useAttrs as Mh, onBeforeUnmount as OI, Transition as yx, createStaticVNode as Cm } from "vue";
import { DivergingBarChart as wj, LineChart as nk, ScatterPlot as bj, useChartCursor as II, useChartSelection as FI, ChartCursor as kj, ChartSelection as Tj, ChartZoom as xj } from "@prefecthq/vue-charts";
import { asArray as Sa, isDefined as Ht, toPluralString as Ks, showToast as He, isDateBefore as Sj, isDateBeforeOrEqual as Rj, isDateAfter as Aj, isDateAfterOrEqual as Ej, isNotNullish as ri, isArray as eu, mapDateRangeSelectValueToDateRange as Mj, isDateRangeSelectPeriod as LE, isDateRangeSelectAroundUnit as BE, isDateRangeSelectType as UE, scrollToValidationError as Dj, useThemeTokens as Pj, PCombobox as ns, PToggle as Dh, PNumberInput as Ca, PTextarea as rk, PDateInput as XE, randomId as Om, PLabel as nr, PTextInput as Cj, PIcon as vo, PEmptyResults as el, useAttrsStylesAndClasses as Oj, PCodeInput as Ij, sortStringArray as Ph, kebabCase as NI, PEmptyState as na, PKeyValue as Bt, PTags as am, POverflowMenuItem as ok, useAttrsStylesClassesAndListeners as Fj, PButton as Jo, PContent as LI, PIconButtonMenu as Nj, PTagWrapper as Lj, PSelect as Im, PListItemInput as Bj, PListItem as Uj, media as _s, PForm as Hv, positions as Gr, usePopOverGroup as Xj, toPixels as $j, PPopOver as jv, useColorTheme as Wj, PTag as BI, PCode as Vj, PTagsInput as Hj, PButtonGroup as jj, PTable as UI, PBreadCrumbs as zj, useWizardStep as gx, isSelectOptionNormalized as $E, ToastPlugin as qj } from "@prefecthq/prefect-design";
import { createActions as Fn, SubscriptionManager as Gj, RouteParam as Ba, InvalidRouteParamValue as Zr, getLocationQueryForSchema as Yj, NumberRouteParam as _o, StringRouteParam as $t, BooleanRouteParam as Qo, DateRouteParam as mo, useRouteQueryParams as Qj, NullableBooleanRouteParam as Kj, useSubscriptionWithDependencies as xt, useRouteQueryParam as dn, useSubscription as mt, useLocalStorage as hl, watchableArgs as Zj, unrefArgs as Jj, useNow as vx, useElementRect as XI, useSessionStorage as ez, useDebouncedRef as rs, useIntersectionObserver as $I, useValidation as vn, useValidationObserver as Ds, useRouteParam as tz, useKeyDown as WI, usePatchRef as mr, refreshChannel as VI } from "@prefecthq/vue-compositions";
import { useForm as nz, useField as Rs } from "vee-validate";
import { useRouter as os, useRoute as kc } from "vue-router";
const rz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
get ActivityChart() {
return c4;
},
get ArtifactCard() {
return hh;
},
get ArtifactCollections() {
return Sde;
},
get ArtifactCollectionsEmptyState() {
return p4;
},
get ArtifactDataMarkdown() {
return d4;
},
get ArtifactDataRaw() {
return Ade;
},
get ArtifactDataResult() {
return h4;
},
get ArtifactDataRich() {
return f4;
},
get ArtifactDataUnknown() {
return m4;
},
get ArtifactDataView() {
return L2;
},
get ArtifactDescription() {
return y4;
},
get ArtifactDetails() {
return jde;
},
get ArtifactKeyIconText() {
return B2;
},
get ArtifactMenu() {
return zde;
},
get ArtifactTimeline() {
return she;
},
get ArtifactTypeSelect() {
return g4;
},
get AutomationIconText() {
return v4;
},
get AutomationMenu() {
return lhe;
},
get BetaBadge() {
return _4;
},
get BlockCapabilityBlockDocumentInput() {
return w4;
},
get BlockDocumentCard() {
return bhe;
},
get BlockDocumentCombobox() {
return KN;
},
get BlockDocumentInput() {
return S_;
},
get BlockDocumentKeyValue() {
return khe;
},
get BlockDocumentMenu() {
return The;
},
get BlockDocumentsTable() {
return Ehe;
},
get BlockIconText() {
return hm;
},
get BlockSchemaCapabilities() {
return Mhe;
},
get BlockSchemaCapabilitySelect() {
return Dhe;
},
get BlockSchemaCreateForm() {
return GN;
},
get BlockSchemaEditForm() {
return Phe;
},
get BlockTypeCard() {
return Ihe;
},
get BlockTypeCardLayout() {
return b4;
},
get BlockTypeCardPreview() {
return O2;
},
get BlockTypeList() {
return YN;
},
get BlockTypeSelect() {
return T4;
},
get BlockTypeSnippet() {
return X2;
},
get BlocksPageEmptyState() {
return Che;
},
get CodeBanner() {
return Uhe;
},
get CollectionCardPreview() {
return x4;
},
get CollectionItemCard() {
return jhe;
},
get CollectionsList() {
return Yhe;
},
get ColorModeSelect() {
return Zhe;
},
get ColorModeSelectOption() {
return Lk;
},
get ConcurrencyLimitActiveRuns() {
return yfe;
},
get ConcurrencyLimitDetails() {
return vfe;
},
get ConcurrencyLimitMenu() {
return j2;
},
get ConcurrencyLimitResetModal() {
return R4;
},
get ConcurrencyLimitV2Menu() {
return C4;
},
get ConcurrencyLimitV2ResetModal() {
return O4;
},
get ConcurrencyLimitV2Toggle() {
return I4;
},
get ConcurrencyLimitsCreateModal() {
return z2;
},
get ConcurrencyLimitsPageEmptyState() {
return A4;
},
get ConcurrencyLimitsTable() {
return _fe;
},
get ConcurrencyLimitsV2CreateModal() {
return M4;
},
get ConcurrencyLimitsV2EmptyState() {
return D4;
},
get ConcurrencyLimitsV2Table() {
return wfe;
},
get ConcurrencyLimitsV2UpdateModal() {
return P4;
},
get ConcurrencyTableActiveSlots() {
return F4;
},
get ConfirmDeleteModal() {
return _r;
},
get ConfirmStateChangeModal() {
return q2;
},
get CopyOverflowMenuItem() {
return uo;
},
get CopyableWrapper() {
return fh;
},
get CronScheduleForm() {
return B4;
},
get CumulativeTaskRunsCard() {
return Pfe;
},
get DashboardWorkPoolsCard() {
return pve;
},
get DateInput() {
return V0;
},
get DateRangeInput() {
return dve;
},
get DateRangeSelect() {
return mL;
},
get DayOrDescriptionModal() {
return L4;
},
get DeploymentCombobox() {
return sS;
},
get DeploymentComboboxOption() {
return qk;
},
get DeploymentConfiguration() {
return yve;
},
get DeploymentCustomRunOverflowMenuItem() {
return aS;
},
get DeploymentDeprecatedMessage() {
return vve;
},
get DeploymentDescription() {
return _ve;
},
get DeploymentDescriptionEmptyState() {
return wve;
},
get DeploymentDetails() {
return xve;
},
get DeploymentDisableToggle() {
return iS;
},
get DeploymentForm() {
return Eve;
},
get DeploymentIconText() {
return $h;
},
get DeploymentList() {
return Ive;
},
get DeploymentMenu() {
return Nve;
},
get DeploymentQuickRunOverflowMenuItem() {
return cS;
},
get DeploymentRelationships() {
return hS;
},
get DeploymentScheduleCard() {
return _L;
},
get DeploymentScheduleMenu() {
return wL;
},
get DeploymentScheduleTags() {
return kL;
},
get DeploymentScheduleToggle() {
return TL;
},
get DeploymentSchedulesFieldset() {
return bL;
},
get DeploymentStatusBadge() {
return fS;
},
get DeploymentStatusIcon() {
return RL;
},
get DeploymentStatusSelect() {
return AL;
},
get DeploymentTagsInput() {
return mS;
},
get DeploymentToggle() {
return vL;
},
get DeploymentsCount() {
return xL;
},
get DeploymentsDeleteButton() {
return SL;
},
get DeploymentsPageEmptyState() {
return Qve;
},
get DocumentationButton() {
return Os;
},
get DurationIconText() {
return Cc;
},
get DurationInput() {
return EL;
},
get EventCard() {
return yS;
},
get EventRelatedKeyValue() {
return N_;
},
get EventResourceCombobox() {
return o_e;
},
get EventResourceIconText() {
return R_e;
},
get EventResourceKeyValue() {
return L_;
},
get EventsCombobox() {
return Gk;
},
get ExploreEventsButton() {
return DL;
},
get ExtraInfoModal() {
return D_;
},
get ExtraInfoTooltip() {
return gS;
},
get FlowActivityChart() {
return A_e;
},
get FlowCombobox() {
return vS;
},
get FlowDetails() {
return D_e;
},
get FlowIconText() {
return pS;
},
get FlowList() {
return I_e;
},
get FlowMenu() {
return F_e;
},
get FlowPopover() {
return CL;
},
get FlowRouterLink() {
return nv;
},
get FlowRunArtifacts() {
return V_e;
},
get FlowRunAutomation() {
return OL;
},
get FlowRunBreadCrumbs() {
return rS;
},
get FlowRunCancelButton() {
return IL;
},
get FlowRunCancelModal() {
return _S;
},
get FlowRunCreateForm() {
return J_e;
},
get FlowRunDeployment() {
return A_;
},
get FlowRunDetails() {
return twe;
},
get FlowRunFilteredList() {
return nwe;
},
get FlowRunFlow() {
return dS;
},
get FlowRunGraph() {
return vOe;
},
get FlowRunGraphArtifactCard() {
return WU;
},
get FlowRunGraphArtifactDrawer() {
return bOe;
},
get FlowRunGraphArtifactsPopover() {
return TOe;
},
get FlowRunGraphConfirmation() {
return FL;
},
get FlowRunGraphEventPopover() {
return SOe;
},
get FlowRunGraphEventsPopover() {
return EOe;
},
get FlowRunGraphPopover() {
return _y;
},
get FlowRunGraphSelectionPanel() {
return POe;
},
get FlowRunGraphStatePopover() {
return OOe;
},
get FlowRunHistoryCard() {
return FOe;
},
get FlowRunIconText() {
return ry;
},
get FlowRunJobVariableOverridesLabeledInput() {
return B_;
},
get FlowRunList() {
return aw;
},
get FlowRunListItem() {
return $Oe;
},
get FlowRunLogs() {
return qOe;
},
get FlowRunLogsDownloadButton() {
return VU;
},
get FlowRunMenu() {
return YOe;
},
get FlowRunName() {
return _R;
},
get FlowRunParentFlowRun() {
return HU;
},
get FlowRunPopOver() {
return jU;
},
get FlowRunPopOverContent() {
return oS;
},
get FlowRunResumeButton() {
return zU;
},
get FlowRunResumeModal() {
return vR;
},
get FlowRunRetryButton() {
return qU;
},
get FlowRunRetryModal() {
return wR;
},
get FlowRunStartTime() {
return uy;
},
get FlowRunStateTypeTab() {
return QU;
},
get FlowRunSuspendButton() {
return KU;
},
get FlowRunSuspendModal() {
return kR;
},
get FlowRunTagsInput() {
return bR;
},
get FlowRunTaskRuns() {
return UIe;
},
get FlowRunTimelineSubFlowRunDetails() {
return ZU;
},
get FlowRunTimelineTaskDetails() {
return JU;
},
get FlowRunWorkPool() {
return oy;
},
get FlowRunWorkQueue() {
return sy;
},
get FlowRunsBarChart() {
return Vh;
},
get FlowRunsDeleteButton() {
return GU;
},
get FlowRunsFilterGroup() {
return tIe;
},
get FlowRunsPageEmptyState() {
return nIe;
},
get FlowRunsScatterPlot() {
return oIe;
},
get FlowRunsSort() {
return YU;
},
get FlowsDeleteButton() {
return eX;
},
get FlowsFilterGroup() {
return qIe;
},
get FlowsPageEmptyState() {
return GIe;
},
get FormattedDate() {
return hn;
},
get FourZeroFour() {
return QIe;
},
get IconTextCount() {
return tX;
},
get IntervalScheduleForm() {
return nX;
},
get JobVariableOverridesInput() {
return bS;
},
get JsonInput() {
return Rr;
},
get LastFlowRun() {
return TR;
},
get LogLevelLabel() {
return rX;
},
get LogLevelSelect() {
return xR;
},
get LogRow() {
return oX;
},
get LogoImage() {
return fu;
},
get LogsContainer() {
return SR;
},
get LogsSort() {
return RR;
},
get MarketingBanner() {
return l8e;
},
get MiniDeploymentHistory() {
return sX;
},
get MiniFlowHistory() {
return aX;
},
get NextFlowRun() {
return AR;
},
get NotificationDetails() {
return ER;
},
get NotificationForm() {
return w8e;
},
get NotificationMenu() {
return iX;
},
get NotificationStatusSelect() {
return uX;
},
get NotificationToggle() {
return lX;
},
get NotificationsPageEmptyState() {
return b8e;
},
get NotificationsTable() {
return A8e;
},
get PageHeading() {
return nn;
},
get PageHeadingAccountSettings() {
return C8e;
},
get PageHeadingApiKeys() {
return O8e;
},
get PageHeadingArtifact() {
return I8e;
},
get PageHeadingArtifactKey() {
return F8e;
},
get PageHeadingArtifacts() {
return N8e;
},
get PageHeadingAutomation() {
return B8e;
},
get PageHeadingBlock() {
return U8e;
},
get PageHeadingBlockEdit() {
return X8e;
},
get PageHeadingBlocks() {
return $8e;
},
get PageHeadingBlocksCatalog() {
return W8e;
},
get PageHeadingBlocksCatalogCreate() {
return V8e;
},
get PageHeadingBlocksCatalogView() {
return H8e;
},
get PageHeadingConcurrencyLimit() {
return j8e;
},
get PageHeadingConcurrencyLimits() {
return z8e;
},
get PageHeadingDeployment() {
return q8e;
},
get PageHeadingDeploymentDuplicate() {
return G8e;
},
get PageHeadingDeploymentEdit() {
return Y8e;
},
get PageHeadingDeployments() {
return Q8e;
},
get PageHeadingFlow() {
return K8e;
},
get PageHeadingFlowCollection() {
return Z8e;
},
get PageHeadingFlowCollections() {
return J8e;
},
get PageHeadingFlowRun() {
return o3e;
},
get PageHeadingFlowRunCreate() {
return s3e;
},
get PageHeadingFlowRuns() {
return u3e;
},
get PageHeadingFlows() {
return l3e;
},
get PageHeadingNotificationCreate() {
return c3e;
},
get PageHeadingNotificationEdit() {
return p3e;
},
get PageHeadingNotifications() {
return d3e;
},
get PageHeadingRuns() {
return h3e;
},
get PageHeadingTaskRun() {
return f3e;
},
get PageHeadingVariables() {
return m3e;
},
get PageHeadingWorkPool() {
return y3e;
},
get PageHeadingWorkPoolCreate() {
return g3e;
},
get PageHeadingWorkPoolEdit() {
return v3e;
},
get PageHeadingWorkPoolQueue() {
return _3e;
},
get PageHeadingWorkPoolQueueCreate() {
return w3e;
},
get PageHeadingWorkPoolQueueEdit() {
return b3e;
},
get PageHeadingWorkPools() {
return k3e;
},
get PageHeadingWorkspaceSettings() {
return T3e;
},
get ParametersTable() {
return R3e;
},
get ProcessTypeBadge() {
return fX;
},
get QuickRunParametersModal() {
return uS;
},
get ResourceLink() {
return A3e;
},
get ResultsCount() {
return Uo;
},
get RunMenu() {
return mX;
},
get SaveFilterModal() {
return dX;
},
get SavedFilters() {
return DR;
},
get SavedFiltersDeleteModal() {
return pX;
},
get SavedFiltersMenu() {
return hX;
},
get ScheduleFieldset() {
return O3e;
},
get ScheduleFormModal() {
return uw;
},
get SchemaForm() {
return I3e;
},
get SchemaFormFields() {
return ed;
},
get SchemaFormFieldsWithValues() {
return yX;
},
get SchemaFormInput() {
return Ck;
},
get SchemaFormProperties() {
return BN;
},
get SchemaFormProperty() {
return bp;
},
get SchemaFormPropertyAllOf() {
return UN;
},
get SchemaFormPropertyAnyOf() {
return qN;
},
get SchemaInput() {
return N3e;
},
get SchemaPropertiesKeyValues() {
return $2;
},
get SchemaPropertyKeyValue() {
return k4;
},
get SearchInput() {
return Vo;
},
get SelectedCount() {
return td;
},
get SeparatedList() {
return dx;
},
get StateBadge() {
return Mr;
},
get StateIcon() {
return W2;
},
get StateListItem() {
return V2;
},
get StateNameSelect() {
return qh;
},
get StateSelect() {
return N4;
},
get StatisticKeyValue() {
return Jl;
},
get SubmitButton() {
return Pc;
},
get TaskRunArtifacts() {
return U3e;
},
get TaskRunDetails() {
return $3e;
},
get TaskRunIconText() {
return U2;
},
get TaskRunList() {
return H2;
},
get TaskRunListItem() {
return S4;
},
get TaskRunLogs() {
return G3e;
},
get TaskRunMenu() {
return gX;
},
get TaskRunsDeleteButton() {
return Y3e;
},
get TaskRunsSort() {
return vX;
},
get TimeSpanFilter() {
return Q3e;
},
get TimezoneSelect() {
return P_;
},
get ToastFlowRunCreate() {
return lS;
},
get UseDeploymentSlot() {
return yL;
},
get UseFlowSlot() {
return PL;
},
get VariableCreateModal() {
return PR;
},
get VariableDuplicateModal() {
return _X;
},
get VariableEditModal() {
return CR;
},
get VariableMenu() {
return wX;
},
get VariableTagsInput() {
return kX;
},
get VariablesDeleteButton() {
return bX;
},
get VariablesPageEmptyState() {
return K3e;
},
get VariablesTable() {
return tFe;
},
get ViewModeButtonGroup() {
return R_;
},
get WorkPoolBaseJobTemplateFormSection() {
return OR;
},
get WorkPoolCard() {
return SX;
},
get WorkPoolCombobox() {
return iw;
},
get WorkPoolCreateWizard() {
return fFe;
},
get WorkPoolCreateWizardStepInformation() {
return RX;
},
get WorkPoolCreateWizardStepInfrastructureConfiguration() {
return AX;
},
get WorkPoolCreateWizardStepInfrastructureType() {
return EX;
},
get WorkPoolDetails() {
return wFe;
},
get WorkPoolEditForm() {
return bFe;
},
get WorkPoolIconText() {
return Wh;
},
get WorkPoolLateIndicator() {
return kFe;
},
get WorkPoolList() {
return MX;
},
get WorkPoolMenu() {
return TFe;
},
get WorkPoolQueueCombobox() {
return wS;
},
get WorkPoolQueueCreateForm() {
return xFe;
},
get WorkPoolQueueDetails() {
return AFe;
},
get WorkPoolQueueEditForm() {
return EFe;
},
get WorkPoolQueueMenu() {
return MFe;
},
get WorkPoolQueuePriorityLabel() {
return lw;
},
get WorkPoolQueueStatusBadge() {
return IR;
},
get WorkPoolQueueStatusIcon() {
return M_;
},
get WorkPoolQueueToggle() {
return FR;
},
get WorkPoolQueueUpcomingFlowRunsList() {
return OFe;
},
get WorkPoolQueuesDeleteButton() {
return DX;
},
get WorkPoolQueuesTable() {
return PFe;
},
get WorkPoolStatusBadge() {
return PX;
},
get WorkPoolStatusIcon() {
return F_;
},
get WorkPoolStatusSelect() {
return CX;
},
get WorkPoolToggle() {
return NR;
},
get WorkPoolTypeSelect() {
return OX;
},
get WorkPools() {
return LFe;
},
get WorkPoolsPageEmptyState() {
return BFe;
},
get WorkQueueCombobox() {
return IX;
},
get WorkQueueIconText() {
return cw;
},
get WorkQueueStatusSelect() {
return FX;
},
get WorkerMenu() {
return TX;
},
get WorkerStatusBadge() {
return xX;
},
get WorkersLateIndicator() {
return Wv;
},
get WorkersTable() {
return oFe;
},
get WorkspaceDashboardFlowRunsCard() {
return XFe;
},
get WorkspaceEventDetails() {
return $Fe;
},
get WorkspaceEventMenu() {
return WFe;
},
get WorkspaceEventsLineChart() {
return jFe;
},
get WorkspaceEventsTimeline() {
return tNe;
},
get WorkspaceVariableCombobox() {
return e4;
}
}, Symbol.toStringTag, { value: "Module" }));
function HI(t, e) {
return function() {
return t.apply(e, arguments);
};
}
const { toString: oz } = Object.prototype, { getPrototypeOf: _x } = Object, { iterator: zv, toStringTag: jI } = Symbol, qv = /* @__PURE__ */ ((t) => (e) => {
const n = oz.call(e);
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), bi = (t) => (t = t.toLowerCase(), (e) => qv(e) === t), Gv = (t) => (e) => typeof e === t, { isArray: Ch } = Array, rh = Gv("undefined");
function Fm(t) {
return t !== null && !rh(t) && t.constructor !== null && !rh(t.constructor) && ws(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}
const zI = bi("ArrayBuffer");
function sz(t) {
let e;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && zI(t.buffer), e;
}
const az = Gv("string"), ws = Gv("function"), qI = Gv("number"), Nm = (t) => t !== null && typeof t == "object", iz = (t) => t === !0 || t === !1, Wg = (t) => {
if (qv(t) !== "object")
return !1;
const e = _x(t);
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(jI in t) && !(zv in t);
}, uz = (t) => {
if (!Nm(t) || Fm(t))
return !1;
try {
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
} catch {
return !1;
}
}, lz = bi("Date"), cz = bi("File"), pz = bi("Blob"), dz = bi("FileList"), hz = (t) => Nm(t) && ws(t.pipe), fz = (t) => {
let e;
return t && (typeof FormData == "function" && t instanceof FormData || ws(t.append) && ((e = qv(t)) === "formdata" || // detect form-data instance
e === "object" && ws(t.toString) && t.toString() === "[object FormData]"));
}, mz = bi("URLSearchParams"), [yz, gz, vz, _z] = ["ReadableStream", "Request", "Response", "Headers"].map(bi), wz = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Lm(t, e, { allOwnKeys: n = !1 } = {}) {
if (t === null || typeof t > "u")
return;
let r, o;
if (typeof t != "object" && (t = [t]), Ch(t))
for (r = 0, o = t.length; r < o; r++)
e.call(null, t[r], r, t);
else {
if (Fm(t))
return;
const s = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = s.length;
let u;
for (r = 0; r < i; r++)
u = s[r], e.call(null, t[u], u, t);
}
}
function GI(t, e) {
if (Fm(t))
return null;
e = e.toLowerCase();
const n = Object.keys(t);
let r = n.length, o;
for (; r-- > 0; )
if (o = n[r], e === o.toLowerCase())
return o;
return null;
}
const pp = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, YI = (t) => !rh(t) && t !== pp;
function sk() {
const { caseless: t, skipUndefined: e } = YI(this) && this || {}, n = {}, r = (o, s) => {
const i = t && GI(n, s) || s;
Wg(n[i]) && Wg(o) ? n[i] = sk(n[i], o) : Wg(o) ? n[i] = sk({}, o) : Ch(o) ? n[i] = o.slice() : (!e || !rh(o)) && (n[i] = o);
};
for (let o = 0, s = arguments.length; o < s; o++)
arguments[o] && Lm(arguments[o], r);
return n;
}
const bz = (t, e, n, { allOwnKeys: r } = {}) => (Lm(e, (o, s) => {
n && ws(o) ? t[s] = HI(o, n) : t[s] = o;
}, { allOwnKeys: r }), t), kz = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Tz = (t, e, n, r) => {
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
value: e.prototype
}), n && Object.assign(t.prototype, n);
}, xz = (t, e, n, r) => {
let o, s, i;
const u = {};
if (e = e || {}, t == null) return e;
do {
for (o = Object.getOwnPropertyNames(t), s = o.length; s-- > 0; )
i = o[s], (!r || r(i, t, e)) && !u[i] && (e[i] = t[i], u[i] = !0);
t = n !== !1 && _x(t);
} while (t && (!n || n(t, e)) && t !== Object.prototype);
return e;
}, Sz = (t, e, n) => {
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
const r = t.indexOf(e, n);
return r !== -1 && r === n;
}, Rz = (t) => {
if (!t) return null;
if (Ch(t)) return t;
let e = t.length;
if (!qI(e)) return null;
const n = new Array(e);
for (; e-- > 0; )
n[e] = t[e];
return n;
}, Az = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && _x(Uint8Array)), Ez = (t, e) => {
const r = (t && t[zv]).call(t);
let o;
for (; (o = r.next()) && !o.done; ) {
const s = o.value;
e.call(t, s[0], s[1]);
}
}, Mz = (t, e) => {
let n;
const r = [];
for (; (n = t.exec(e)) !== null; )
r.push(n);
return r;
}, Dz = bi("HTMLFormElement"), Pz = (t) => t.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(n, r, o) {
return r.toUpperCase() + o;
}
), WE = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Cz = bi("RegExp"), QI = (t, e) => {
const n = Object.getOwnPropertyDescriptors(t), r = {};
Lm(n, (o, s) => {
let i;
(i = e(o, s, t)) !== !1 && (r[s] = i || o);
}), Object.defineProperties(t, r);
}, Oz = (t) => {
QI(t, (e, n) => {
if (ws(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
return !1;
const r = t[n];
if (ws(r)) {
if (e.enumerable = !1, "writable" in e) {
e.writable = !1;
return;
}
e.set || (e.set = () => {
throw Error("Can not rewrite read-only method '" + n + "'");
});
}
});
}, Iz = (t, e) => {
const n = {}, r = (o) => {
o.forEach((s) => {
n[s] = !0;
});
};
return Ch(t) ? r(t) : r(String(t).split(e)), n;
}, Fz = () => {
}, Nz = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
function Lz(t) {
return !!(t && ws(t.append) && t[jI] === "FormData" && t[zv]);
}
const Bz = (t) => {
const e = new Array(10), n = (r, o) => {
if (Nm(r)) {
if (e.indexOf(r) >= 0)
return;
if (Fm(r))
return r;
if (!("toJSON" in r)) {
e[o] = r;
const s = Ch(r) ? [] : {};
return Lm(r, (i, u) => {
const l = n(i, o + 1);
!rh(l) && (s[u] = l);
}), e[o] = void 0, s;
}
}
return r;
};
return n(t, 0);
}, Uz = bi("AsyncFunction"), Xz = (t) => t && (Nm(t) || ws(t)) && ws(t.then) && ws(t.catch), KI = ((t, e) => t ? setImmediate : e ? ((n, r) => (pp.addEventListener("message", ({ source: o, data: s }) => {
o === pp && s === n && r.length && r.shift()();
}, !1), (o) => {
r.push(o), pp.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
typeof setImmediate == "function",
ws(pp.postMessage)
), $z = typeof queueMicrotask < "u" ? queueMicrotask.bind(pp) : typeof process < "u" && process.nextTick || KI, Wz = (t) => t != null && ws(t[zv]), Ee = {
isArray: Ch,
isArrayBuffer: zI,
isBuffer: Fm,
isFormData: fz,
isArrayBufferView: sz,
isString: az,
isNumber: qI,
isBoolean: iz,
isObject: Nm,
isPlainObject: Wg,
isEmptyObject: uz,
isReadableStream: yz,
isRequest: gz,
isResponse: vz,
isHeaders: _z,
isUndefined: rh,
isDate: lz,
isFile: cz,
isBlob: pz,
isRegExp: Cz,
isFunction: ws,
isStream: hz,
isURLSearchParams: mz,
isTypedArray: Az,
isFileList: dz,
forEach: Lm,
merge: sk,
extend: bz,
trim: wz,
stripBOM: kz,
inherits: Tz,
toFlatObject: xz,
kindOf: qv,
kindOfTest: bi,
endsWith: Sz,
toArray: Rz,
forEachEntry: Ez,
matchAll: Mz,
isHTMLForm: Dz,
hasOwnProperty: WE,
hasOwnProp: WE,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: QI,
freezeMethods: Oz,
toObjectSet: Iz,
toCamelCase: Pz,
noop: Fz,
toFiniteNumber: Nz,
findKey: GI,
global: pp,
isContextDefined: YI,
isSpecCompliantForm: Lz,
toJSONObject: Bz,
isAsyncFn: Uz,
isThenable: Xz,
setImmediate: KI,
asap: $z,
isIterable: Wz
};
function Zt(t, e, n, r, o) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
}
Ee.inherits(Zt, Error, {
toJSON: function() {
return {
// Standard
message: this.message,
name: this.name,
// Microsoft
description: this.description,
number: this.number,
// Mozilla
fileName: this.fileName,
lineNumber: this.lineNumber,
columnNumber: this.columnNumber,
stack: this.stack,
// Axios
config: Ee.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const ZI = Zt.prototype, JI = {};
[
"ERR_BAD_OPTION_VALUE",
"ERR_BAD_OPTION",
"ECONNABORTED",
"ETIMEDOUT",
"ERR_NETWORK",
"ERR_FR_TOO_MANY_REDIRECTS",
"ERR_DEPRECATED",
"ERR_BAD_RESPONSE",
"ERR_BAD_REQUEST",
"ERR_CANCELED",
"ERR_NOT_SUPPORT",
"ERR_INVALID_URL"
// eslint-disable-next-line func-names
].forEach((t) => {
JI[t] = { value: t };
});
Object.defineProperties(Zt, JI);
Object.defineProperty(ZI, "isAxiosError", { value: !0 });
Zt.from = (t, e, n, r, o, s) => {
const i = Object.create(ZI);
Ee.toFlatObject(t, i, function(c) {
return c !== Error.prototype;
}, (a) => a !== "isAxiosError");
const u = t && t.message ? t.message : "Error", l = e == null && t ? t.code : e;
return Zt.call(i, u, l, n, r, o), t && i.cause == null && Object.defineProperty(i, "cause", { value: t, configurable: !0 }), i.name = t && t.name || "Error", s && Object.assign(i, s), i;
};
const Vz = null;
function ak(t) {
return Ee.isPlainObject(t) || Ee.isArray(t);
}
function e8(t) {
return Ee.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function VE(t, e, n) {
return t ? t.concat(e).map(function(o, s) {
return o = e8(o), !n && s ? "[" + o + "]" : o;
}).join(n ? "." : "") : e;
}
function Hz(t) {
return Ee.isArray(t) && !t.some(ak);
}
const jz = Ee.toFlatObject(Ee, {}, null, function(e) {
return /^is[A-Z]/.test(e);
});
function Yv(t, e, n) {
if (!Ee.isObject(t))
throw new TypeError("target must be an object");
e = e || new FormData(), n = Ee.toFlatObject(n, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(g, w) {
return !Ee.isUndefined(w[g]);
});
const r = n.metaTokens, o = n.visitor || c, s = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && Ee.isSpecCompliantForm(e);
if (!Ee.isFunction(o))
throw new TypeError("visitor must be a function");
function a(m) {
if (m === null) return "";
if (Ee.isDate(m))
return m.toISOString();
if (Ee.isBoolean(m))
return m.toString();
if (!l && Ee.isBlob(m))
throw new Zt("Blob is not supported. Use a Buffer instead.");
return Ee.isArrayBuffer(m) || Ee.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
}
function c(m, g, w) {
let T = m;
if (m && !w && typeof m == "object") {
if (Ee.endsWith(g, "{}"))
g = r ? g : g.slice(0, -2), m = JSON.stringify(m);
else if (Ee.isArray(m) && Hz(m) || (Ee.isFileList(m) || Ee.endsWith(g, "[]")) && (T = Ee.toArray(m)))
return g = e8(g), T.forEach(function(R, M) {
!(Ee.isUndefined(R) || R === null) && e.append(
// eslint-disable-next-line no-nested-ternary
i === !0 ? VE([g], M, s) : i === null ? g : g + "[]",
a(R)
);
}), !1;
}
return ak(m) ? !0 : (e.append(VE(w, g, s), a(m)), !1);
}
const p = [], h = Object.assign(jz, {
defaultVisitor: c,
convertValue: a,
isVisitable: ak
});
function d(m, g) {
if (!Ee.isUndefined(m)) {
if (p.indexOf(m) !== -1)
throw Error("Circular reference detected in " + g.join("."));
p.push(m), Ee.forEach(m, function(T, S) {
(!(Ee.isUndefined(T) || T === null) && o.call(
e,
T,
Ee.isString(S) ? S.trim() : S,
g,
h
)) === !0 && d(T, g ? g.concat(S) : [S]);
}), p.pop();
}
}
if (!Ee.isObject(t))
throw new TypeError("data must be an object");
return d(t), e;
}
function HE(t) {
const e = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
return e[r];
});
}
function wx(t, e) {
this._pairs = [], t && Yv(t, this, e);
}
const t8 = wx.prototype;
t8.append = function(e, n) {
this._pairs.push([e, n]);
};
t8.toString = function(e) {
const n = e ? function(r) {
return e.call(this, r, HE);
} : HE;
return this._pairs.map(function(o) {
return n(o[0]) + "=" + n(o[1]);
}, "").join("&");
};
function zz(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
}
function n8(t, e, n) {
if (!e)
return t;
const r = n && n.encode || zz;
Ee.isFunction(n) && (n = {
serialize: n
});
const o = n && n.serialize;
let s;
if (o ? s = o(e, n) : s = Ee.isURLSearchParams(e) ? e.toString() : new wx(e, n).toString(r), s) {
const i = t.indexOf("#");
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
}
return t;
}
class jE {
constructor() {
this.handlers = [];
}
/**
* Add a new interceptor to the stack
*
* @param {Function} fulfilled The function to handle `then` for a `Promise`
* @param {Function} rejected The function to handle `reject` for a `Promise`
*
* @return {Number} An ID used to remove interceptor later
*/
use(e, n, r) {
return this.handlers.push({
fulfilled: e,
rejected: n,
synchronous: r ? r.synchronous : !1,
runWhen: r ? r.runWhen : null
}), this.handlers.length - 1;
}
/**
* Remove an interceptor from the stack
*
* @param {Number} id The ID that was returned by `use`
*
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
*/
eject(e) {
this.handlers[e] && (this.handlers[e] = null);
}
/**
* Clear all interceptors from the stack
*
* @returns {void}
*/
clear() {
this.handlers && (this.handlers = []);
}
/**
* Iterate over all the registered interceptors
*
* This method is particularly useful for skipping over any
* interceptors that may have become `null` calling `eject`.
*
* @param {Function} fn The function to call for each interceptor
*
* @returns {void}
*/
forEach(e) {
Ee.forEach(this.handlers, function(r) {
r !== null && e(r);
});
}
}
const r8 = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, qz = typeof URLSearchParams < "u" ? URLSearchParams : wx, Gz = typeof FormData < "u" ? FormData : null, Yz = typeof Blob < "u" ? Blob : null, Qz = {
isBrowser: !0,
classes: {
URLSearchParams: qz,
FormData: Gz,
Blob: Yz
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, bx = typeof window < "u" && typeof document < "u", ik = typeof navigator == "object" && navigator || void 0, Kz = bx && (!ik || ["ReactNative", "NativeScript", "NS"].indexOf(ik.product) < 0), Zz = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jz = bx && window.location.href || "http://localhost", eq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: bx,
hasStandardBrowserEnv: Kz,
hasStandardBrowserWebWorkerEnv: Zz,
navigator: ik,
origin: Jz
}, Symbol.toStringTag, { value: "Module" })), Fo = {
...eq,
...Qz
};
function tq(t, e) {
return Yv(t, new Fo.classes.URLSearchParams(), {
visitor: function(n, r, o, s) {
return Fo.isNode && Ee.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
},
...e
});
}
function nq(t) {
return Ee.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
}
function rq(t) {
const e = {}, n = Object.keys(t);
let r;
const o = n.length;
let s;
for (r = 0; r < o; r++)
s = n[r], e[s] = t[s];
return e;
}
function o8(t) {
function e(n, r, o, s) {
let i = n[s++];
if (i === "__proto__") return !0;
const u = Number.isFinite(+i), l = s >= n.length;
return i = !i && Ee.isArray(o) ? o.length : i, l ? (Ee.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !u) : ((!o[i] || !Ee.isObject(o[i])) && (o[i] = []), e(n, r, o[i], s) && Ee.isArray(o[i]) && (o[i] = rq(o[i])), !u);
}
if (Ee.isFormData(t) && Ee.isFunction(t.entries)) {
const n = {};
return Ee.forEachEntry(t, (r, o) => {
e(nq(r), o, n, 0);
}), n;
}
return null;
}
function oq(t, e, n) {
if (Ee.isString(t))
try {
return (e || JSON.parse)(t), Ee.trim(t);
} catch (r) {
if (r.name !== "SyntaxError")
throw r;
}
return (n || JSON.stringify)(t);
}
const Bm = {
transitional: r8,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(e, n) {
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = Ee.isObject(e);
if (s && Ee.isHTMLForm(e) && (e = new FormData(e)), Ee.isFormData(e))
return o ? JSON.stringify(o8(e)) : e;
if (Ee.isArrayBuffer(e) || Ee.isBuffer(e) || Ee.isStream(e) || Ee.isFile(e) || Ee.isBlob(e) || Ee.isReadableStream(e))
return e;
if (Ee.isArrayBufferView(e))
return e.buffer;
if (Ee.isURLSearchParams(e))
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
let u;
if (s) {
if (r.indexOf("application/x-www-form-urlencoded") > -1)
return tq(e, this.formSerializer).toString();
if ((u = Ee.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
const l = this.env && this.env.FormData;
return Yv(
u ? { "files[]": e } : e,
l && new l(),
this.formSerializer
);
}
}
return s || o ? (n.setContentType("application/json", !1), oq(e)) : e;
}],
transformResponse: [function(e) {
const n = this.transitional || Bm.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
if (Ee.isResponse(e) || Ee.isReadableStream(e))
return e;
if (e && Ee.isString(e) && (r && !this.responseType || o)) {
const i = !(n && n.silentJSONParsing) && o;
try {
return JSON.parse(e, this.parseReviver);
} catch (u) {
if (i)
throw u.name === "SyntaxError" ? Zt.from(u, Zt.ERR_BAD_RESPONSE, this, null, this.response) : u;
}
}
return e;
}],
/**
* A timeout in milliseconds to abort a request. If set to 0 (default) a
* timeout is not created.
*/
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: Fo.classes.FormData,
Blob: Fo.classes.Blob
},
validateStatus: function(e) {
return e >= 200 && e < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
Ee.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
Bm.headers[t] = {};
});
const sq = Ee.toObjectSet([
"age",
"authorization",
"content-length",
"content-type",
"etag",
"expires",
"from",
"host",
"if-modified-since",
"if-unmodified-since",
"last-modified",
"location",
"max-forwards",
"proxy-authorization",
"referer",
"retry-after",
"user-agent"
]), aq = (t) => {
const e = {};
let n, r, o;
return t && t.split(`
`).forEach(function(i) {
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && sq[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
}), e;
}, zE = /* @__PURE__ */ Symbol("internals");
function cf(t) {
return t && String(t).trim().toLowerCase();
}
function Vg(t) {
return t === !1 || t == null ? t : Ee.isArray(t) ? t.map(Vg) : String(t);
}
function iq(t) {
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let r;
for (; r = n.exec(t); )
e[r[1]] = r[2];
return e;
}
const uq = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
function g1(t, e, n, r, o) {
if (Ee.isFunction(r))
return r.call(this, e, n);
if (o && (e = n), !!Ee.isString(e)) {
if (Ee.isString(r))
return e.indexOf(r) !== -1;
if (Ee.isRegExp(r))
return r.test(e);
}
}
function lq(t) {
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
}
function cq(t, e) {
const n = Ee.toCamelCase(" " + e);
["get", "set", "has"].forEach((r) => {
Object.defineProperty(t, r + n, {
value: function(o, s, i) {
return this[r].call(this, e, o, s, i);
},
configurable: !0
});
});
}
let bs = class {
constructor(e) {
e && this.set(e);
}
set(e, n, r) {
const o = this;
function s(u, l, a) {
const c = cf(l);
if (!c)
throw new Error("header name must be a non-empty string");
const p = Ee.findKey(o, c);
(!p || o[p] === void 0 || a === !0 || a === void 0 && o[p] !== !1) && (o[p || l] = Vg(u));
}
const i = (u, l) => Ee.forEach(u, (a, c) => s(a, c, l));
if (Ee.isPlainObject(e) || e instanceof this.constructor)
i(e, n);
else if (Ee.isString(e) && (e = e.trim()) && !uq(e))
i(aq(e), n);
else if (Ee.isObject(e) && Ee.isIterable(e)) {
let u = {}, l, a;
for (const c of e) {
if (!Ee.isArray(c))
throw TypeError("Object iterator must return a key-value pair");
u[a = c[0]] = (l = u[a]) ? Ee.isArray(l) ? [...l, c[1]] : [l, c[1]] : c[1];
}
i(u, n);
} else
e != null && s(n, e, r);
return this;
}
get(e, n) {
if (e = cf(e), e) {
const r = Ee.findKey(this, e);
if (r) {
const o = this[r];
if (!n)
return o;
if (n === !0)
return iq(o);
if (Ee.isFunction(n))
return n.call(this, o, r);
if (Ee.isRegExp(n))
return n.exec(o);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(e, n) {
if (e = cf(e), e) {
const r = Ee.findKey(this, e);
return !!(r && this[r] !== void 0 && (!n || g1(this, this[r], r, n)));
}
return !1;
}
delete(e, n) {
const r = this;
let o = !1;
function s(i) {
if (i = cf(i), i) {
const u = Ee.findKey(r, i);
u && (!n || g1(r, r[u], u, n)) && (delete r[u], o = !0);
}
}
return Ee.isArray(e) ? e.forEach(s) : s(e), o;
}
clear(e) {
const n = Object.keys(this);
let r = n.length, o = !1;
for (; r--; ) {
const s = n[r];
(!e || g1(this, this[s], s, e, !0)) && (delete this[s], o = !0);
}
return o;
}
normalize(e) {
const n = this, r = {};
return Ee.forEach(this, (o, s) => {
const i = Ee.findKey(r, s);
if (i) {
n[i] = Vg(o), delete n[s];
return;
}
const u = e ? lq(s) : String(s).trim();
u !== s && delete n[s], n[u] = Vg(o), r[u] = !0;
}), this;
}
concat(...e) {
return this.constructor.concat(this, ...e);
}
toJSON(e) {
const n = /* @__PURE__ */ Object.create(null);
return Ee.forEach(this, (r, o) => {
r != null && r !== !1 && (n[o] = e && Ee.isArray(r) ? r.join(", ") : r);
}), n;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
`);
}
getSetCookie() {
return this.get("set-cookie") || [];
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(e) {
return e instanceof this ? e : new this(e);
}
static concat(e, ...n) {
const r = new this(e);
return n.forEach((o) => r.set(o)), r;
}
static accessor(e) {
const r = (this[zE] = this[zE] = {
accessors: {}
}).accessors, o = this.prototype;
function s(i) {
const u = cf(i);
r[u] || (cq(o, i), r[u] = !0);
}
return Ee.isArray(e) ? e.forEach(s) : s(e), this;
}
};
bs.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
Ee.reduceDescriptors(bs.prototype, ({ value: t }, e) => {
let n = e[0].toUpperCase() + e.slice(1);
return {
get: () => t,
set(r) {
this[n] = r;
}
};
});
Ee.freezeMethods(bs);
function v1(t, e) {
const n = this || Bm, r = e || n, o = bs.from(r.headers);
let s = r.data;
return Ee.forEach(t, function(u) {
s = u.call(n, s, o.normalize(), e ? e.status : void 0);
}), o.normalize(), s;
}
function s8(t) {
return !!(t && t.__CANCEL__);
}
function Oh(t, e, n) {
Zt.call(this, t ?? "canceled", Zt.ERR_CANCELED, e, n), this.name = "CanceledError";
}
Ee.inherits(Oh, Zt, {
__CANCEL__: !0
});
function a8(t, e, n) {
const r = n.config.validateStatus;
!n.status || !r || r(n.status) ? t(n) : e(new Zt(
"Request failed with status code " + n.status,
[Zt.ERR_BAD_REQUEST, Zt.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
n.config,
n.request,
n
));
}
function pq(t) {
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
return e && e[1] || "";
}
function dq(t, e) {
t = t || 10;
const n = new Array(t), r = new Array(t);
let o = 0, s = 0, i;
return e = e !== void 0 ? e : 1e3, function(l) {
const a = Date.now(), c = r[s];
i || (i = a), n[o] = l, r[o] = a;
let p = s, h = 0;
for (; p !== o; )
h += n[p++], p = p % t;
if (o = (o + 1) % t, o === s && (s = (s + 1) % t), a - i < e)
return;
const d = c && a - c;
return d ? Math.round(h * 1e3 / d) : void 0;
};
}
function hq(t, e) {
let n = 0, r = 1e3 / e, o, s;
const i = (a, c = Date.now()) => {
n = c, o = null, s && (clearTimeout(s), s = null), t(...a);
};
return [(...a) => {
const c = Date.now(), p = c - n;
p >= r ? i(a, c) : (o = a, s || (s = setTimeout(() => {
s = null, i(o);
}, r - p)));
}, () => o && i(o)];
}
const x0 = (t, e, n = 3) => {
let r = 0;
const o = dq(50, 250);
return hq((s) => {
const i = s.loaded, u = s.lengthComputable ? s.total : void 0, l = i - r, a = o(l), c = i <= u;
r = i;
const p = {
loaded: i,
total: u,
progress: u ? i / u : void 0,
bytes: l,
rate: a || void 0,
estimated: a && u && c ? (u - i) / a : void 0,
event: s,
lengthComputable: u != null,
[e ? "download" : "upload"]: !0
};
t(p);
}, n);
}, qE = (t, e) => {
const n = t != null;
return [(r) => e[0]({
lengthComputable: n,
total: t,
loaded: r
}), e[1]];
}, GE = (t) => (...e) => Ee.asap(() => t(...e)), fq = Fo.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Fo.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
new URL(Fo.origin),
Fo.navigator && /(msie|trident)/i.test(Fo.navigator.userAgent)
) : () => !0, mq = Fo.hasStandardBrowserEnv ? (
// Standard browser envs support document.cookie
{
write(t, e, n, r, o, s) {
const i = [t + "=" + encodeURIComponent(e)];
Ee.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), Ee.isString(r) && i.push("path=" + r), Ee.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
},
read(t) {
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
return e ? decodeURIComponent(e[3]) : null;
},
remove(t) {
this.write(t, "", Date.now() - 864e5);
}
}
) : (
// Non-standard browser env (web workers, react-native) lack needed support.
{
write() {
},
read() {
return null;
},
remove() {
}
}
);
function yq(t) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
}
function gq(t, e) {
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
}
function i8(t, e, n) {
let r = !yq(e);
return t && (r || n == !1) ? gq(t, e) : e;
}
const YE = (t) => t instanceof bs ? { ...t } : t;
function Cp(t, e) {
e = e || {};
const n = {};
function r(a, c, p, h) {
return Ee.isPlainObject(a) && Ee.isPlainObject(c) ? Ee.merge.call({ caseless: h }, a, c) : Ee.isPlainObject(c) ? Ee.merge({}, c) : Ee.isArray(c) ? c.slice() : c;
}
function o(a, c, p, h) {
if (Ee.isUndefined(c)) {
if (!Ee.isUndefined(a))
return r(void 0, a, p, h);
} else return r(a, c, p, h);
}
function s(a, c) {
if (!Ee.isUndefined(c))
return r(void 0, c);
}
function i(a, c) {
if (Ee.isUndefined(c)) {
if (!Ee.isUndefined(a))
return r(void 0, a);
} else return r(void 0, c);
}
function u(a, c, p) {
if (p in e)
return r(a, c);
if (p in t)
return r(void 0, a);
}
const l = {
url: s,
method: s,
data: s,
baseURL: i,
transformRequest: i,
transformResponse: i,
paramsSerializer: i,
timeout: i,
timeoutMessage: i,
withCredentials: i,
withXSRFToken: i,
adapter: i,
responseType: i,
xsrfCookieName: i,
xsrfHeaderName: i,
onUploadProgress: i,
onDownloadProgress: i,
decompress: i,
maxContentLength: i,
maxBodyLength: i,
beforeRedirect: i,
transport: i,