zudoku 0.3.0-dev.30 → 0.3.0-dev.32
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/app/App.d.ts +1 -0
- package/dist/app/App.js +2 -0
- package/dist/app/App.js.map +1 -0
- package/dist/app/demo.js +15 -11
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +5 -0
- package/dist/app/entry.client.js +28 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +10 -0
- package/dist/app/entry.server.js +107 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +26 -2
- package/dist/app/main.js +39 -15
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +14 -10
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/app/zudoku-manifest.d.ts +1 -0
- package/dist/app/zudoku-manifest.js +20 -0
- package/dist/app/zudoku-manifest.js.map +1 -0
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +5 -0
- package/dist/lib/authentication/providers/clerk.js +2 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +5 -2
- package/dist/lib/components/DevPortal.js +11 -10
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +2 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
- package/dist/lib/components/SyntaxHighlight.js +20 -22
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +38 -14
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +3 -8
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.js +3 -7
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +11 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +2 -1
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +9 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/redirect/index.js +2 -3
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +2 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/groupBy.d.ts +1 -6
- package/dist/lib/util/groupBy.js +10 -8
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/vite/build.js +23 -10
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -2
- package/dist/vite/config.js +36 -8
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +1 -1
- package/dist/vite/dev-server.js +15 -9
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +5 -4
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +55 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +14 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-openapi-worker.js +4 -1
- package/dist/vite/plugin-openapi-worker.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +1 -0
- package/dist/vite/prerender.js +57 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/{DevPortalProvider--xZTs0RJ.js → DevPortalProvider-BlxLX6GG.js} +230 -250
- package/lib/DevPortalProvider-BlxLX6GG.js.map +1 -0
- package/lib/{Markdown-oJFqm0uk.js → Markdown-CL8KPvJN.js} +8 -9
- package/lib/{Markdown-oJFqm0uk.js.map → Markdown-CL8KPvJN.js.map} +1 -1
- package/lib/MdxComponents-Ev_hBHb2.js +5885 -0
- package/lib/MdxComponents-Ev_hBHb2.js.map +1 -0
- package/lib/{MdxPage-BV_9ncEk.js → MdxPage-Z3HKNTrj.js} +92 -89
- package/lib/MdxPage-Z3HKNTrj.js.map +1 -0
- package/lib/{OperationList-DfG_E0Xa.js → OperationList-KoITgfDT.js} +1967 -1785
- package/lib/OperationList-KoITgfDT.js.map +1 -0
- package/lib/Route-Bf1_D_vC.js +13 -0
- package/lib/{Route-CHqr53jb.js.map → Route-Bf1_D_vC.js.map} +1 -1
- package/lib/Select-DSa3bN4t.js +4770 -0
- package/lib/Select-DSa3bN4t.js.map +1 -0
- package/lib/assets/{worker-BXS8hiSM.js → worker-BjPv-hjP.js} +3100 -2720
- package/lib/assets/worker-BjPv-hjP.js.map +1 -0
- package/lib/hook-CTmJ6CWq.js +35 -0
- package/lib/hook-CTmJ6CWq.js.map +1 -0
- package/lib/index-BdWBDosx.js +74 -0
- package/lib/index-BdWBDosx.js.map +1 -0
- package/lib/{index-B2qLeglF.js → index-BoWzKb_9.js} +57 -41
- package/lib/index-BoWzKb_9.js.map +1 -0
- package/lib/{AnchorLink-BtVKbEwm.js → index.esm-CPEExBJE.js} +156 -168
- package/lib/index.esm-CPEExBJE.js.map +1 -0
- package/lib/jsx-runtime-CM0TzjGp.js +866 -0
- package/lib/jsx-runtime-CM0TzjGp.js.map +1 -0
- package/lib/mutation-91kw0lHb.js +208 -0
- package/lib/mutation-91kw0lHb.js.map +1 -0
- package/lib/router-CcYTwKjf.js +183 -0
- package/lib/router-CcYTwKjf.js.map +1 -0
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +588 -441
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +330 -543
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +18 -18
- package/lib/zudoku.plugin-api-keys.js +143 -98
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +2 -49
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -3
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +6 -7
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +3 -1
- package/src/app/App.tsx +0 -0
- package/src/app/demo.tsx +18 -13
- package/src/app/entry.client.tsx +51 -0
- package/src/app/entry.server.tsx +158 -0
- package/src/app/main.tsx +65 -41
- package/src/app/standalone.tsx +15 -11
- package/src/app/tailwind.ts +2 -6
- package/src/app/zudoku-manifest.ts +22 -0
- package/src/lib/authentication/providers/clerk.tsx +1 -0
- package/src/lib/components/DevPortal.tsx +34 -33
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +7 -4
- package/src/lib/components/NotFoundPage.tsx +39 -0
- package/src/lib/components/SyntaxHighlight.tsx +26 -22
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/parser/index.ts +41 -22
- package/src/lib/plugins/api-keys/index.tsx +4 -16
- package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
- package/src/lib/plugins/markdown/index.tsx +3 -7
- package/src/lib/plugins/openapi/OperationList.tsx +30 -0
- package/src/lib/plugins/openapi/OperationListItem.tsx +3 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +8 -10
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -1
- package/src/lib/plugins/openapi/index.tsx +18 -1
- package/src/lib/plugins/redirect/index.tsx +2 -2
- package/src/lib/ui/Callout.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +2 -11
- package/src/lib/util/groupBy.ts +7 -12
- package/dist/lib/components/Error.d.ts +0 -1
- package/dist/lib/components/Error.js +0 -10
- package/dist/lib/components/Error.js.map +0 -1
- package/dist/lib/components/Router.d.ts +0 -4
- package/dist/lib/components/Router.js +0 -21
- package/dist/lib/components/Router.js.map +0 -1
- package/lib/AnchorLink-BtVKbEwm.js.map +0 -1
- package/lib/DevPortalProvider--xZTs0RJ.js.map +0 -1
- package/lib/MdxComponents-CsU8yR42.js +0 -3019
- package/lib/MdxComponents-CsU8yR42.js.map +0 -1
- package/lib/MdxPage-BV_9ncEk.js.map +0 -1
- package/lib/OperationList-DfG_E0Xa.js.map +0 -1
- package/lib/Route-CHqr53jb.js +0 -14
- package/lib/Select-CNmXi4JU.js +0 -4572
- package/lib/Select-CNmXi4JU.js.map +0 -1
- package/lib/Spinner-By5opWs5.js +0 -182
- package/lib/Spinner-By5opWs5.js.map +0 -1
- package/lib/assets/worker-BXS8hiSM.js.map +0 -1
- package/lib/cn-DpqTslo9.js +0 -2342
- package/lib/cn-DpqTslo9.js.map +0 -1
- package/lib/hook-kVJ4gpk5.js +0 -25
- package/lib/hook-kVJ4gpk5.js.map +0 -1
- package/lib/index-B2qLeglF.js.map +0 -1
- package/lib/index-CUIxJAeE.js +0 -713
- package/lib/index-CUIxJAeE.js.map +0 -1
- package/lib/index-Cr3hgaqt.js +0 -412
- package/lib/index-Cr3hgaqt.js.map +0 -1
- package/lib/index-fXFJf9Ua.js +0 -464
- package/lib/index-fXFJf9Ua.js.map +0 -1
- package/lib/jsx-runtime-D7DwziLW.js +0 -3009
- package/lib/jsx-runtime-D7DwziLW.js.map +0 -1
- package/lib/loglevel-CA34MiFn.js +0 -153
- package/lib/loglevel-CA34MiFn.js.map +0 -1
- package/lib/util-DnDPBx_j.js +0 -41
- package/lib/util-DnDPBx_j.js.map +0 -1
- package/src/lib/components/Error.tsx +0 -15
- package/src/lib/components/Router.tsx +0 -23
package/lib/index-CUIxJAeE.js
DELETED
|
@@ -1,713 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { forwardRef as te, createElement as W } from "react";
|
|
3
|
-
import * as de from "react-dom";
|
|
4
|
-
import { c as I, d as me, e as M, u as j, D as ne, b as re, m as he, f as ae, R as pe, g as ve, h as we, i as ye } from "./index-fXFJf9Ua.js";
|
|
5
|
-
import { s as P, w as H, c as z, i as k, m as G, a as be, b as ge, E as Se, d as Ee } from "./jsx-runtime-D7DwziLW.js";
|
|
6
|
-
/**
|
|
7
|
-
* React Router DOM v6.24.1
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Remix Software Inc.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
13
|
-
*
|
|
14
|
-
* @license MIT
|
|
15
|
-
*/
|
|
16
|
-
function T() {
|
|
17
|
-
return T = Object.assign ? Object.assign.bind() : function(e) {
|
|
18
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
19
|
-
var t = arguments[n];
|
|
20
|
-
for (var a in t)
|
|
21
|
-
Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
|
|
22
|
-
}
|
|
23
|
-
return e;
|
|
24
|
-
}, T.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
function Y(e, n) {
|
|
27
|
-
if (e == null) return {};
|
|
28
|
-
var t = {}, a = Object.keys(e), r, i;
|
|
29
|
-
for (i = 0; i < a.length; i++)
|
|
30
|
-
r = a[i], !(n.indexOf(r) >= 0) && (t[r] = e[r]);
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
const V = "get", F = "application/x-www-form-urlencoded";
|
|
34
|
-
function B(e) {
|
|
35
|
-
return e != null && typeof e.tagName == "string";
|
|
36
|
-
}
|
|
37
|
-
function Re(e) {
|
|
38
|
-
return B(e) && e.tagName.toLowerCase() === "button";
|
|
39
|
-
}
|
|
40
|
-
function Ce(e) {
|
|
41
|
-
return B(e) && e.tagName.toLowerCase() === "form";
|
|
42
|
-
}
|
|
43
|
-
function _e(e) {
|
|
44
|
-
return B(e) && e.tagName.toLowerCase() === "input";
|
|
45
|
-
}
|
|
46
|
-
function Le(e) {
|
|
47
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
48
|
-
}
|
|
49
|
-
function Te(e, n) {
|
|
50
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
51
|
-
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
52
|
-
!Le(e);
|
|
53
|
-
}
|
|
54
|
-
function $(e) {
|
|
55
|
-
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((n, t) => {
|
|
56
|
-
let a = e[t];
|
|
57
|
-
return n.concat(Array.isArray(a) ? a.map((r) => [t, r]) : [[t, a]]);
|
|
58
|
-
}, []));
|
|
59
|
-
}
|
|
60
|
-
function Ne(e, n) {
|
|
61
|
-
let t = $(e);
|
|
62
|
-
return n && n.forEach((a, r) => {
|
|
63
|
-
t.has(r) || n.getAll(r).forEach((i) => {
|
|
64
|
-
t.append(r, i);
|
|
65
|
-
});
|
|
66
|
-
}), t;
|
|
67
|
-
}
|
|
68
|
-
let A = null;
|
|
69
|
-
function xe() {
|
|
70
|
-
if (A === null)
|
|
71
|
-
try {
|
|
72
|
-
new FormData(
|
|
73
|
-
document.createElement("form"),
|
|
74
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
75
|
-
0
|
|
76
|
-
), A = !1;
|
|
77
|
-
} catch {
|
|
78
|
-
A = !0;
|
|
79
|
-
}
|
|
80
|
-
return A;
|
|
81
|
-
}
|
|
82
|
-
const Pe = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
83
|
-
function K(e) {
|
|
84
|
-
return e != null && !Pe.has(e) ? (process.env.NODE_ENV !== "production" && H(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + F + '"')), null) : e;
|
|
85
|
-
}
|
|
86
|
-
function ke(e, n) {
|
|
87
|
-
let t, a, r, i, l;
|
|
88
|
-
if (Ce(e)) {
|
|
89
|
-
let u = e.getAttribute("action");
|
|
90
|
-
a = u ? P(u, n) : null, t = e.getAttribute("method") || V, r = K(e.getAttribute("enctype")) || F, i = new FormData(e);
|
|
91
|
-
} else if (Re(e) || _e(e) && (e.type === "submit" || e.type === "image")) {
|
|
92
|
-
let u = e.form;
|
|
93
|
-
if (u == null)
|
|
94
|
-
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
95
|
-
let f = e.getAttribute("formaction") || u.getAttribute("action");
|
|
96
|
-
if (a = f ? P(f, n) : null, t = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = K(e.getAttribute("formenctype")) || K(u.getAttribute("enctype")) || F, i = new FormData(u, e), !xe()) {
|
|
97
|
-
let {
|
|
98
|
-
name: o,
|
|
99
|
-
type: c,
|
|
100
|
-
value: p
|
|
101
|
-
} = e;
|
|
102
|
-
if (c === "image") {
|
|
103
|
-
let d = o ? o + "." : "";
|
|
104
|
-
i.append(d + "x", "0"), i.append(d + "y", "0");
|
|
105
|
-
} else o && i.append(o, p);
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
if (B(e))
|
|
109
|
-
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
110
|
-
t = V, a = null, r = F, l = e;
|
|
111
|
-
}
|
|
112
|
-
return i && r === "text/plain" && (l = i, i = void 0), {
|
|
113
|
-
action: a,
|
|
114
|
-
method: t.toLowerCase(),
|
|
115
|
-
encType: r,
|
|
116
|
-
formData: i,
|
|
117
|
-
body: l
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
const De = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Oe = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], Ae = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Ve = "6";
|
|
121
|
-
try {
|
|
122
|
-
window.__reactRouterVersion = Ve;
|
|
123
|
-
} catch {
|
|
124
|
-
}
|
|
125
|
-
function ut(e, n) {
|
|
126
|
-
return be({
|
|
127
|
-
basename: void 0,
|
|
128
|
-
future: T({}, void 0, {
|
|
129
|
-
v7_prependBasename: !0
|
|
130
|
-
}),
|
|
131
|
-
history: ge({
|
|
132
|
-
window: void 0
|
|
133
|
-
}),
|
|
134
|
-
hydrationData: Fe(),
|
|
135
|
-
routes: e,
|
|
136
|
-
mapRouteProperties: he,
|
|
137
|
-
unstable_dataStrategy: void 0,
|
|
138
|
-
unstable_patchRoutesOnMiss: void 0,
|
|
139
|
-
window: void 0
|
|
140
|
-
}).initialize();
|
|
141
|
-
}
|
|
142
|
-
function Fe() {
|
|
143
|
-
var e;
|
|
144
|
-
let n = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
145
|
-
return n && n.errors && (n = T({}, n, {
|
|
146
|
-
errors: Ue(n.errors)
|
|
147
|
-
})), n;
|
|
148
|
-
}
|
|
149
|
-
function Ue(e) {
|
|
150
|
-
if (!e) return null;
|
|
151
|
-
let n = Object.entries(e), t = {};
|
|
152
|
-
for (let [a, r] of n)
|
|
153
|
-
if (r && r.__type === "RouteErrorResponse")
|
|
154
|
-
t[a] = new Se(r.status, r.statusText, r.data, r.internal === !0);
|
|
155
|
-
else if (r && r.__type === "Error") {
|
|
156
|
-
if (r.__subType) {
|
|
157
|
-
let i = window[r.__subType];
|
|
158
|
-
if (typeof i == "function")
|
|
159
|
-
try {
|
|
160
|
-
let l = new i(r.message);
|
|
161
|
-
l.stack = "", t[a] = l;
|
|
162
|
-
} catch {
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (t[a] == null) {
|
|
166
|
-
let i = new Error(r.message);
|
|
167
|
-
i.stack = "", t[a] = i;
|
|
168
|
-
}
|
|
169
|
-
} else
|
|
170
|
-
t[a] = r;
|
|
171
|
-
return t;
|
|
172
|
-
}
|
|
173
|
-
const q = /* @__PURE__ */ s.createContext({
|
|
174
|
-
isTransitioning: !1
|
|
175
|
-
});
|
|
176
|
-
process.env.NODE_ENV !== "production" && (q.displayName = "ViewTransition");
|
|
177
|
-
const ie = /* @__PURE__ */ s.createContext(/* @__PURE__ */ new Map());
|
|
178
|
-
process.env.NODE_ENV !== "production" && (ie.displayName = "Fetchers");
|
|
179
|
-
const Ie = "startTransition", X = s[Ie], Me = "flushSync", Z = de[Me];
|
|
180
|
-
function je(e) {
|
|
181
|
-
X ? X(e) : e();
|
|
182
|
-
}
|
|
183
|
-
function O(e) {
|
|
184
|
-
Z ? Z(e) : e();
|
|
185
|
-
}
|
|
186
|
-
class He {
|
|
187
|
-
constructor() {
|
|
188
|
-
this.status = "pending", this.promise = new Promise((n, t) => {
|
|
189
|
-
this.resolve = (a) => {
|
|
190
|
-
this.status === "pending" && (this.status = "resolved", n(a));
|
|
191
|
-
}, this.reject = (a) => {
|
|
192
|
-
this.status === "pending" && (this.status = "rejected", t(a));
|
|
193
|
-
};
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function ct(e) {
|
|
198
|
-
let {
|
|
199
|
-
fallbackElement: n,
|
|
200
|
-
router: t,
|
|
201
|
-
future: a
|
|
202
|
-
} = e, [r, i] = s.useState(t.state), [l, u] = s.useState(), [f, o] = s.useState({
|
|
203
|
-
isTransitioning: !1
|
|
204
|
-
}), [c, p] = s.useState(), [d, S] = s.useState(), [y, g] = s.useState(), b = s.useRef(/* @__PURE__ */ new Map()), {
|
|
205
|
-
v7_startTransition: C
|
|
206
|
-
} = a || {}, m = s.useCallback((w) => {
|
|
207
|
-
C ? je(w) : w();
|
|
208
|
-
}, [C]), v = s.useCallback((w, R) => {
|
|
209
|
-
let {
|
|
210
|
-
deletedFetchers: E,
|
|
211
|
-
unstable_flushSync: x,
|
|
212
|
-
unstable_viewTransitionOpts: _
|
|
213
|
-
} = R;
|
|
214
|
-
E.forEach((N) => b.current.delete(N)), w.fetchers.forEach((N, fe) => {
|
|
215
|
-
N.data !== void 0 && b.current.set(fe, N.data);
|
|
216
|
-
});
|
|
217
|
-
let ce = t.window == null || t.window.document == null || typeof t.window.document.startViewTransition != "function";
|
|
218
|
-
if (!_ || ce) {
|
|
219
|
-
x ? O(() => i(w)) : m(() => i(w));
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
if (x) {
|
|
223
|
-
O(() => {
|
|
224
|
-
d && (c && c.resolve(), d.skipTransition()), o({
|
|
225
|
-
isTransitioning: !0,
|
|
226
|
-
flushSync: !0,
|
|
227
|
-
currentLocation: _.currentLocation,
|
|
228
|
-
nextLocation: _.nextLocation
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
let N = t.window.document.startViewTransition(() => {
|
|
232
|
-
O(() => i(w));
|
|
233
|
-
});
|
|
234
|
-
N.finished.finally(() => {
|
|
235
|
-
O(() => {
|
|
236
|
-
p(void 0), S(void 0), u(void 0), o({
|
|
237
|
-
isTransitioning: !1
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
}), O(() => S(N));
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
d ? (c && c.resolve(), d.skipTransition(), g({
|
|
244
|
-
state: w,
|
|
245
|
-
currentLocation: _.currentLocation,
|
|
246
|
-
nextLocation: _.nextLocation
|
|
247
|
-
})) : (u(w), o({
|
|
248
|
-
isTransitioning: !0,
|
|
249
|
-
flushSync: !1,
|
|
250
|
-
currentLocation: _.currentLocation,
|
|
251
|
-
nextLocation: _.nextLocation
|
|
252
|
-
}));
|
|
253
|
-
}, [t.window, d, c, b, m]);
|
|
254
|
-
s.useLayoutEffect(() => t.subscribe(v), [t, v]), s.useEffect(() => {
|
|
255
|
-
f.isTransitioning && !f.flushSync && p(new He());
|
|
256
|
-
}, [f]), s.useEffect(() => {
|
|
257
|
-
if (c && l && t.window) {
|
|
258
|
-
let w = l, R = c.promise, E = t.window.document.startViewTransition(async () => {
|
|
259
|
-
m(() => i(w)), await R;
|
|
260
|
-
});
|
|
261
|
-
E.finished.finally(() => {
|
|
262
|
-
p(void 0), S(void 0), u(void 0), o({
|
|
263
|
-
isTransitioning: !1
|
|
264
|
-
});
|
|
265
|
-
}), S(E);
|
|
266
|
-
}
|
|
267
|
-
}, [m, l, c, t.window]), s.useEffect(() => {
|
|
268
|
-
c && l && r.location.key === l.location.key && c.resolve();
|
|
269
|
-
}, [c, d, r.location, l]), s.useEffect(() => {
|
|
270
|
-
!f.isTransitioning && y && (u(y.state), o({
|
|
271
|
-
isTransitioning: !0,
|
|
272
|
-
flushSync: !1,
|
|
273
|
-
currentLocation: y.currentLocation,
|
|
274
|
-
nextLocation: y.nextLocation
|
|
275
|
-
}), g(void 0));
|
|
276
|
-
}, [f.isTransitioning, y]), s.useEffect(() => {
|
|
277
|
-
process.env.NODE_ENV !== "production" && H(n == null || !t.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
278
|
-
}, []);
|
|
279
|
-
let h = s.useMemo(() => ({
|
|
280
|
-
createHref: t.createHref,
|
|
281
|
-
encodeLocation: t.encodeLocation,
|
|
282
|
-
go: (w) => t.navigate(w),
|
|
283
|
-
push: (w, R, E) => t.navigate(w, {
|
|
284
|
-
state: R,
|
|
285
|
-
preventScrollReset: E == null ? void 0 : E.preventScrollReset
|
|
286
|
-
}),
|
|
287
|
-
replace: (w, R, E) => t.navigate(w, {
|
|
288
|
-
replace: !0,
|
|
289
|
-
state: R,
|
|
290
|
-
preventScrollReset: E == null ? void 0 : E.preventScrollReset
|
|
291
|
-
})
|
|
292
|
-
}), [t]), L = t.basename || "/", D = s.useMemo(() => ({
|
|
293
|
-
router: t,
|
|
294
|
-
navigator: h,
|
|
295
|
-
static: !1,
|
|
296
|
-
basename: L
|
|
297
|
-
}), [t, h, L]);
|
|
298
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ae.Provider, {
|
|
299
|
-
value: D
|
|
300
|
-
}, /* @__PURE__ */ s.createElement(ne.Provider, {
|
|
301
|
-
value: r
|
|
302
|
-
}, /* @__PURE__ */ s.createElement(ie.Provider, {
|
|
303
|
-
value: b.current
|
|
304
|
-
}, /* @__PURE__ */ s.createElement(q.Provider, {
|
|
305
|
-
value: f
|
|
306
|
-
}, /* @__PURE__ */ s.createElement(pe, {
|
|
307
|
-
basename: L,
|
|
308
|
-
location: r.location,
|
|
309
|
-
navigationType: r.historyAction,
|
|
310
|
-
navigator: h,
|
|
311
|
-
future: {
|
|
312
|
-
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
313
|
-
}
|
|
314
|
-
}, r.initialized || t.future.v7_partialHydration ? /* @__PURE__ */ s.createElement(Be, {
|
|
315
|
-
routes: t.routes,
|
|
316
|
-
future: t.future,
|
|
317
|
-
state: r
|
|
318
|
-
}) : n))))), null);
|
|
319
|
-
}
|
|
320
|
-
function Be(e) {
|
|
321
|
-
let {
|
|
322
|
-
routes: n,
|
|
323
|
-
future: t,
|
|
324
|
-
state: a
|
|
325
|
-
} = e;
|
|
326
|
-
return ve(n, void 0, a, t);
|
|
327
|
-
}
|
|
328
|
-
process.env.NODE_ENV;
|
|
329
|
-
const Ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", We = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, oe = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
330
|
-
let {
|
|
331
|
-
onClick: a,
|
|
332
|
-
relative: r,
|
|
333
|
-
reloadDocument: i,
|
|
334
|
-
replace: l,
|
|
335
|
-
state: u,
|
|
336
|
-
target: f,
|
|
337
|
-
to: o,
|
|
338
|
-
preventScrollReset: c,
|
|
339
|
-
unstable_viewTransition: p
|
|
340
|
-
} = n, d = Y(n, De), {
|
|
341
|
-
basename: S
|
|
342
|
-
} = s.useContext(I), y, g = !1;
|
|
343
|
-
if (typeof o == "string" && We.test(o) && (y = o, Ke))
|
|
344
|
-
try {
|
|
345
|
-
let v = new URL(window.location.href), h = o.startsWith("//") ? new URL(v.protocol + o) : new URL(o), L = P(h.pathname, S);
|
|
346
|
-
h.origin === v.origin && L != null ? o = L + h.search + h.hash : g = !0;
|
|
347
|
-
} catch {
|
|
348
|
-
process.env.NODE_ENV !== "production" && H(!1, '<Link to="' + o + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
349
|
-
}
|
|
350
|
-
let b = me(o, {
|
|
351
|
-
relative: r
|
|
352
|
-
}), C = qe(o, {
|
|
353
|
-
replace: l,
|
|
354
|
-
state: u,
|
|
355
|
-
target: f,
|
|
356
|
-
preventScrollReset: c,
|
|
357
|
-
relative: r,
|
|
358
|
-
unstable_viewTransition: p
|
|
359
|
-
});
|
|
360
|
-
function m(v) {
|
|
361
|
-
a && a(v), v.defaultPrevented || C(v);
|
|
362
|
-
}
|
|
363
|
-
return (
|
|
364
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
365
|
-
/* @__PURE__ */ s.createElement("a", T({}, d, {
|
|
366
|
-
href: y || b,
|
|
367
|
-
onClick: g || i ? a : m,
|
|
368
|
-
ref: t,
|
|
369
|
-
target: f
|
|
370
|
-
}))
|
|
371
|
-
);
|
|
372
|
-
});
|
|
373
|
-
process.env.NODE_ENV !== "production" && (oe.displayName = "Link");
|
|
374
|
-
const ze = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
375
|
-
let {
|
|
376
|
-
"aria-current": a = "page",
|
|
377
|
-
caseSensitive: r = !1,
|
|
378
|
-
className: i = "",
|
|
379
|
-
end: l = !1,
|
|
380
|
-
style: u,
|
|
381
|
-
to: f,
|
|
382
|
-
unstable_viewTransition: o,
|
|
383
|
-
children: c
|
|
384
|
-
} = n, p = Y(n, Oe), d = M(f, {
|
|
385
|
-
relative: p.relative
|
|
386
|
-
}), S = j(), y = s.useContext(ne), {
|
|
387
|
-
navigator: g,
|
|
388
|
-
basename: b
|
|
389
|
-
} = s.useContext(I), C = y != null && // Conditional usage is OK here because the usage of a data router is static
|
|
390
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
391
|
-
et(d) && o === !0, m = g.encodeLocation ? g.encodeLocation(d).pathname : d.pathname, v = S.pathname, h = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
|
|
392
|
-
r || (v = v.toLowerCase(), h = h ? h.toLowerCase() : null, m = m.toLowerCase()), h && b && (h = P(h, b) || h);
|
|
393
|
-
const L = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
|
|
394
|
-
let D = v === m || !l && v.startsWith(m) && v.charAt(L) === "/", w = h != null && (h === m || !l && h.startsWith(m) && h.charAt(m.length) === "/"), R = {
|
|
395
|
-
isActive: D,
|
|
396
|
-
isPending: w,
|
|
397
|
-
isTransitioning: C
|
|
398
|
-
}, E = D ? a : void 0, x;
|
|
399
|
-
typeof i == "function" ? x = i(R) : x = [i, D ? "active" : null, w ? "pending" : null, C ? "transitioning" : null].filter(Boolean).join(" ");
|
|
400
|
-
let _ = typeof u == "function" ? u(R) : u;
|
|
401
|
-
return /* @__PURE__ */ s.createElement(oe, T({}, p, {
|
|
402
|
-
"aria-current": E,
|
|
403
|
-
className: x,
|
|
404
|
-
ref: t,
|
|
405
|
-
style: _,
|
|
406
|
-
to: f,
|
|
407
|
-
unstable_viewTransition: o
|
|
408
|
-
}), typeof c == "function" ? c(R) : c);
|
|
409
|
-
});
|
|
410
|
-
process.env.NODE_ENV !== "production" && (ze.displayName = "NavLink");
|
|
411
|
-
const $e = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
412
|
-
let {
|
|
413
|
-
fetcherKey: t,
|
|
414
|
-
navigate: a,
|
|
415
|
-
reloadDocument: r,
|
|
416
|
-
replace: i,
|
|
417
|
-
state: l,
|
|
418
|
-
method: u = V,
|
|
419
|
-
action: f,
|
|
420
|
-
onSubmit: o,
|
|
421
|
-
relative: c,
|
|
422
|
-
preventScrollReset: p,
|
|
423
|
-
unstable_viewTransition: d
|
|
424
|
-
} = e, S = Y(e, Ae), y = Je(), g = Qe(f, {
|
|
425
|
-
relative: c
|
|
426
|
-
}), b = u.toLowerCase() === "get" ? "get" : "post", C = (m) => {
|
|
427
|
-
if (o && o(m), m.defaultPrevented) return;
|
|
428
|
-
m.preventDefault();
|
|
429
|
-
let v = m.nativeEvent.submitter, h = (v == null ? void 0 : v.getAttribute("formmethod")) || u;
|
|
430
|
-
y(v || m.currentTarget, {
|
|
431
|
-
fetcherKey: t,
|
|
432
|
-
method: h,
|
|
433
|
-
navigate: a,
|
|
434
|
-
replace: i,
|
|
435
|
-
state: l,
|
|
436
|
-
relative: c,
|
|
437
|
-
preventScrollReset: p,
|
|
438
|
-
unstable_viewTransition: d
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
return /* @__PURE__ */ s.createElement("form", T({
|
|
442
|
-
ref: n,
|
|
443
|
-
method: b,
|
|
444
|
-
action: g,
|
|
445
|
-
onSubmit: r ? o : C
|
|
446
|
-
}, S));
|
|
447
|
-
});
|
|
448
|
-
process.env.NODE_ENV !== "production" && ($e.displayName = "Form");
|
|
449
|
-
process.env.NODE_ENV;
|
|
450
|
-
var U;
|
|
451
|
-
(function(e) {
|
|
452
|
-
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
453
|
-
})(U || (U = {}));
|
|
454
|
-
var J;
|
|
455
|
-
(function(e) {
|
|
456
|
-
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
457
|
-
})(J || (J = {}));
|
|
458
|
-
function Ye(e) {
|
|
459
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
460
|
-
}
|
|
461
|
-
function se(e) {
|
|
462
|
-
let n = s.useContext(ae);
|
|
463
|
-
return n || (process.env.NODE_ENV !== "production" ? k(!1, Ye(e)) : k(!1)), n;
|
|
464
|
-
}
|
|
465
|
-
function qe(e, n) {
|
|
466
|
-
let {
|
|
467
|
-
target: t,
|
|
468
|
-
replace: a,
|
|
469
|
-
state: r,
|
|
470
|
-
preventScrollReset: i,
|
|
471
|
-
relative: l,
|
|
472
|
-
unstable_viewTransition: u
|
|
473
|
-
} = n === void 0 ? {} : n, f = re(), o = j(), c = M(e, {
|
|
474
|
-
relative: l
|
|
475
|
-
});
|
|
476
|
-
return s.useCallback((p) => {
|
|
477
|
-
if (Te(p, t)) {
|
|
478
|
-
p.preventDefault();
|
|
479
|
-
let d = a !== void 0 ? a : z(o) === z(c);
|
|
480
|
-
f(e, {
|
|
481
|
-
replace: d,
|
|
482
|
-
state: r,
|
|
483
|
-
preventScrollReset: i,
|
|
484
|
-
relative: l,
|
|
485
|
-
unstable_viewTransition: u
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
}, [o, f, c, a, r, t, e, i, l, u]);
|
|
489
|
-
}
|
|
490
|
-
function ft(e) {
|
|
491
|
-
process.env.NODE_ENV !== "production" && H(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
492
|
-
let n = s.useRef($(e)), t = s.useRef(!1), a = j(), r = s.useMemo(() => (
|
|
493
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
494
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
495
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
496
|
-
Ne(a.search, t.current ? null : n.current)
|
|
497
|
-
), [a.search]), i = re(), l = s.useCallback((u, f) => {
|
|
498
|
-
const o = $(typeof u == "function" ? u(r) : u);
|
|
499
|
-
t.current = !0, i("?" + o, f);
|
|
500
|
-
}, [i, r]);
|
|
501
|
-
return [r, l];
|
|
502
|
-
}
|
|
503
|
-
function Ge() {
|
|
504
|
-
if (typeof document > "u")
|
|
505
|
-
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
506
|
-
}
|
|
507
|
-
let Xe = 0, Ze = () => "__" + String(++Xe) + "__";
|
|
508
|
-
function Je() {
|
|
509
|
-
let {
|
|
510
|
-
router: e
|
|
511
|
-
} = se(U.UseSubmit), {
|
|
512
|
-
basename: n
|
|
513
|
-
} = s.useContext(I), t = we();
|
|
514
|
-
return s.useCallback(function(a, r) {
|
|
515
|
-
r === void 0 && (r = {}), Ge();
|
|
516
|
-
let {
|
|
517
|
-
action: i,
|
|
518
|
-
method: l,
|
|
519
|
-
encType: u,
|
|
520
|
-
formData: f,
|
|
521
|
-
body: o
|
|
522
|
-
} = ke(a, n);
|
|
523
|
-
if (r.navigate === !1) {
|
|
524
|
-
let c = r.fetcherKey || Ze();
|
|
525
|
-
e.fetch(c, t, r.action || i, {
|
|
526
|
-
preventScrollReset: r.preventScrollReset,
|
|
527
|
-
formData: f,
|
|
528
|
-
body: o,
|
|
529
|
-
formMethod: r.method || l,
|
|
530
|
-
formEncType: r.encType || u,
|
|
531
|
-
unstable_flushSync: r.unstable_flushSync
|
|
532
|
-
});
|
|
533
|
-
} else
|
|
534
|
-
e.navigate(r.action || i, {
|
|
535
|
-
preventScrollReset: r.preventScrollReset,
|
|
536
|
-
formData: f,
|
|
537
|
-
body: o,
|
|
538
|
-
formMethod: r.method || l,
|
|
539
|
-
formEncType: r.encType || u,
|
|
540
|
-
replace: r.replace,
|
|
541
|
-
state: r.state,
|
|
542
|
-
fromRouteId: t,
|
|
543
|
-
unstable_flushSync: r.unstable_flushSync,
|
|
544
|
-
unstable_viewTransition: r.unstable_viewTransition
|
|
545
|
-
});
|
|
546
|
-
}, [e, n, t]);
|
|
547
|
-
}
|
|
548
|
-
function Qe(e, n) {
|
|
549
|
-
let {
|
|
550
|
-
relative: t
|
|
551
|
-
} = n === void 0 ? {} : n, {
|
|
552
|
-
basename: a
|
|
553
|
-
} = s.useContext(I), r = s.useContext(ye);
|
|
554
|
-
r || (process.env.NODE_ENV !== "production" ? k(!1, "useFormAction must be used inside a RouteContext") : k(!1));
|
|
555
|
-
let [i] = r.matches.slice(-1), l = T({}, M(e || ".", {
|
|
556
|
-
relative: t
|
|
557
|
-
})), u = j();
|
|
558
|
-
if (e == null) {
|
|
559
|
-
l.search = u.search;
|
|
560
|
-
let f = new URLSearchParams(l.search);
|
|
561
|
-
f.has("index") && f.get("index") === "" && (f.delete("index"), l.search = f.toString() ? "?" + f.toString() : "");
|
|
562
|
-
}
|
|
563
|
-
return (!e || e === ".") && i.route.index && (l.search = l.search ? l.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (l.pathname = l.pathname === "/" ? a : Ee([a, l.pathname])), z(l);
|
|
564
|
-
}
|
|
565
|
-
function et(e, n) {
|
|
566
|
-
n === void 0 && (n = {});
|
|
567
|
-
let t = s.useContext(q);
|
|
568
|
-
t == null && (process.env.NODE_ENV !== "production" ? k(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : k(!1));
|
|
569
|
-
let {
|
|
570
|
-
basename: a
|
|
571
|
-
} = se(U.useViewTransitionState), r = M(e, {
|
|
572
|
-
relative: n.relative
|
|
573
|
-
});
|
|
574
|
-
if (!t.isTransitioning)
|
|
575
|
-
return !1;
|
|
576
|
-
let i = P(t.currentLocation.pathname, a) || t.currentLocation.pathname, l = P(t.nextLocation.pathname, a) || t.nextLocation.pathname;
|
|
577
|
-
return G(r.pathname, l) != null || G(r.pathname, i) != null;
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* @license lucide-react v0.378.0 - ISC
|
|
581
|
-
*
|
|
582
|
-
* This source code is licensed under the ISC license.
|
|
583
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
584
|
-
*/
|
|
585
|
-
const tt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), le = (...e) => e.filter((n, t, a) => !!n && a.indexOf(n) === t).join(" ");
|
|
586
|
-
/**
|
|
587
|
-
* @license lucide-react v0.378.0 - ISC
|
|
588
|
-
*
|
|
589
|
-
* This source code is licensed under the ISC license.
|
|
590
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
-
*/
|
|
592
|
-
var nt = {
|
|
593
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
594
|
-
width: 24,
|
|
595
|
-
height: 24,
|
|
596
|
-
viewBox: "0 0 24 24",
|
|
597
|
-
fill: "none",
|
|
598
|
-
stroke: "currentColor",
|
|
599
|
-
strokeWidth: 2,
|
|
600
|
-
strokeLinecap: "round",
|
|
601
|
-
strokeLinejoin: "round"
|
|
602
|
-
};
|
|
603
|
-
/**
|
|
604
|
-
* @license lucide-react v0.378.0 - ISC
|
|
605
|
-
*
|
|
606
|
-
* This source code is licensed under the ISC license.
|
|
607
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
608
|
-
*/
|
|
609
|
-
const rt = te(
|
|
610
|
-
({
|
|
611
|
-
color: e = "currentColor",
|
|
612
|
-
size: n = 24,
|
|
613
|
-
strokeWidth: t = 2,
|
|
614
|
-
absoluteStrokeWidth: a,
|
|
615
|
-
className: r = "",
|
|
616
|
-
children: i,
|
|
617
|
-
iconNode: l,
|
|
618
|
-
...u
|
|
619
|
-
}, f) => W(
|
|
620
|
-
"svg",
|
|
621
|
-
{
|
|
622
|
-
ref: f,
|
|
623
|
-
...nt,
|
|
624
|
-
width: n,
|
|
625
|
-
height: n,
|
|
626
|
-
stroke: e,
|
|
627
|
-
strokeWidth: a ? Number(t) * 24 / Number(n) : t,
|
|
628
|
-
className: le("lucide", r),
|
|
629
|
-
...u
|
|
630
|
-
},
|
|
631
|
-
[
|
|
632
|
-
...l.map(([o, c]) => W(o, c)),
|
|
633
|
-
...Array.isArray(i) ? i : [i]
|
|
634
|
-
]
|
|
635
|
-
)
|
|
636
|
-
);
|
|
637
|
-
/**
|
|
638
|
-
* @license lucide-react v0.378.0 - ISC
|
|
639
|
-
*
|
|
640
|
-
* This source code is licensed under the ISC license.
|
|
641
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
642
|
-
*/
|
|
643
|
-
const at = (e, n) => {
|
|
644
|
-
const t = te(
|
|
645
|
-
({ className: a, ...r }, i) => W(rt, {
|
|
646
|
-
ref: i,
|
|
647
|
-
iconNode: n,
|
|
648
|
-
className: le(`lucide-${tt(e)}`, a),
|
|
649
|
-
...r
|
|
650
|
-
})
|
|
651
|
-
);
|
|
652
|
-
return t.displayName = `${e}`, t;
|
|
653
|
-
};
|
|
654
|
-
/**
|
|
655
|
-
* @license lucide-react v0.378.0 - ISC
|
|
656
|
-
*
|
|
657
|
-
* This source code is licensed under the ISC license.
|
|
658
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
659
|
-
*/
|
|
660
|
-
const dt = at("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
661
|
-
function ue(e) {
|
|
662
|
-
var n, t, a = "";
|
|
663
|
-
if (typeof e == "string" || typeof e == "number") a += e;
|
|
664
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (n = 0; n < e.length; n++) e[n] && (t = ue(e[n])) && (a && (a += " "), a += t);
|
|
665
|
-
else for (n in e) e[n] && (a && (a += " "), a += n);
|
|
666
|
-
return a;
|
|
667
|
-
}
|
|
668
|
-
function it() {
|
|
669
|
-
for (var e, n, t = 0, a = ""; t < arguments.length; ) (e = arguments[t++]) && (n = ue(e)) && (a && (a += " "), a += n);
|
|
670
|
-
return a;
|
|
671
|
-
}
|
|
672
|
-
const Q = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ee = it, mt = (e, n) => (t) => {
|
|
673
|
-
var a;
|
|
674
|
-
if ((n == null ? void 0 : n.variants) == null) return ee(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
675
|
-
const { variants: r, defaultVariants: i } = n, l = Object.keys(r).map((o) => {
|
|
676
|
-
const c = t == null ? void 0 : t[o], p = i == null ? void 0 : i[o];
|
|
677
|
-
if (c === null) return null;
|
|
678
|
-
const d = Q(c) || Q(p);
|
|
679
|
-
return r[o][d];
|
|
680
|
-
}), u = t && Object.entries(t).reduce((o, c) => {
|
|
681
|
-
let [p, d] = c;
|
|
682
|
-
return d === void 0 || (o[p] = d), o;
|
|
683
|
-
}, {}), f = n == null || (a = n.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((o, c) => {
|
|
684
|
-
let { class: p, className: d, ...S } = c;
|
|
685
|
-
return Object.entries(S).every((y) => {
|
|
686
|
-
let [g, b] = y;
|
|
687
|
-
return Array.isArray(b) ? b.includes({
|
|
688
|
-
...i,
|
|
689
|
-
...u
|
|
690
|
-
}[g]) : {
|
|
691
|
-
...i,
|
|
692
|
-
...u
|
|
693
|
-
}[g] === b;
|
|
694
|
-
}) ? [
|
|
695
|
-
...o,
|
|
696
|
-
p,
|
|
697
|
-
d
|
|
698
|
-
] : o;
|
|
699
|
-
}, []);
|
|
700
|
-
return ee(e, l, f, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
701
|
-
};
|
|
702
|
-
export {
|
|
703
|
-
dt as C,
|
|
704
|
-
oe as L,
|
|
705
|
-
ze as N,
|
|
706
|
-
ct as R,
|
|
707
|
-
ee as a,
|
|
708
|
-
mt as b,
|
|
709
|
-
at as c,
|
|
710
|
-
ut as d,
|
|
711
|
-
ft as u
|
|
712
|
-
};
|
|
713
|
-
//# sourceMappingURL=index-CUIxJAeE.js.map
|