@epam/ai-dial-attachment-canvas 1.4.0-dev.95 → 1.4.0-rc.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/McpAppCanvasRenderer-DXUdyMtZ.js +159 -0
- package/McpAppCanvasRenderer.css +1 -0
- package/PdfContent-DX6q6wTq.js +277 -0
- package/PdfContent.css +1 -1
- package/PdfLoadingSkeleton-tRSHLlMc.js +166 -0
- package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
- package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -1
- package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
- package/components/PdfContent/PdfContent.d.ts.map +1 -1
- package/components/PdfLoadingSkeleton/PdfLoadingSkeleton.d.ts +3 -0
- package/components/PdfLoadingSkeleton/PdfLoadingSkeleton.d.ts.map +1 -0
- package/constants/pdf-loading-skeleton.d.ts +7 -0
- package/constants/pdf-loading-skeleton.d.ts.map +1 -0
- package/context/AttachmentCanvasContext.d.ts +5 -2
- package/context/AttachmentCanvasContext.d.ts.map +1 -1
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.js +776 -906
- package/mcp-app-renderer.d.ts +3 -0
- package/mcp-app-renderer.d.ts.map +1 -0
- package/mcp-app-renderer.js +1 -0
- package/models/attachment-canvas.d.ts +6 -2
- package/models/attachment-canvas.d.ts.map +1 -1
- package/package.json +12 -7
- package/utils/open-routing.d.ts +5 -0
- package/utils/open-routing.d.ts.map +1 -0
- package/LazyContentBoundary-ES0u-Jn7.js +0 -137
- package/PdfContent-BEWJ_9tn.js +0 -274
- /package/{LazyContentBoundary.css → PdfLoadingSkeleton.css} +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import "./PdfLoadingSkeleton.css";
|
|
2
|
+
import { n as e, r as t, t as n } from "./attachment-canvas-BgwyzrRC.js";
|
|
3
|
+
import { MIMEType as r, ensureDownloadFilename as i, mergeClasses as a, triggerAnchorDownload as o, triggerBlobDownload as s } from "@epam/ai-dial-chat-shared";
|
|
4
|
+
import { Button as c, LiveRegion as l, SKELETON_BAR_CLASS_NAME as u, SKELETON_BAR_HEIGHT as d, Skeleton as f, SkeletonShimmer as p, SkeletonTone as m, SkeletonVariant as h, Spinner as g } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { Component as _, Suspense as v, useState as y } from "react";
|
|
6
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
7
|
+
//#region src/utils/download.ts
|
|
8
|
+
var C = {
|
|
9
|
+
[t.Docx]: r.DOCX,
|
|
10
|
+
[t.Xlsx]: r.XLSX,
|
|
11
|
+
[t.Pptx]: r.PPTX,
|
|
12
|
+
[t.Csv]: r.CSV
|
|
13
|
+
}, w = () => !0, T = () => !1, E = (e) => ({
|
|
14
|
+
isDownloadable: w,
|
|
15
|
+
urlAndMimeType: () => ({
|
|
16
|
+
url: void 0,
|
|
17
|
+
mimeType: e
|
|
18
|
+
}),
|
|
19
|
+
download: (t, n) => {
|
|
20
|
+
t.text !== "" && s(new Blob([t.text], { type: e }), n);
|
|
21
|
+
}
|
|
22
|
+
}), D = (e, t) => ({
|
|
23
|
+
isDownloadable: e,
|
|
24
|
+
urlAndMimeType: (e) => ({
|
|
25
|
+
url: e.url,
|
|
26
|
+
mimeType: t?.(e)
|
|
27
|
+
}),
|
|
28
|
+
download: (t, n) => {
|
|
29
|
+
t.url != null && e(t) && o(t.url, n);
|
|
30
|
+
}
|
|
31
|
+
}), O = {
|
|
32
|
+
isDownloadable: T,
|
|
33
|
+
urlAndMimeType: () => ({
|
|
34
|
+
url: void 0,
|
|
35
|
+
mimeType: void 0
|
|
36
|
+
}),
|
|
37
|
+
download: () => void 0
|
|
38
|
+
}, k = {
|
|
39
|
+
[n.PlainText]: E(r.Plain),
|
|
40
|
+
[n.Markdown]: E(r.Markdown),
|
|
41
|
+
[n.Code]: E(r.Plain),
|
|
42
|
+
[n.Json]: {
|
|
43
|
+
isDownloadable: w,
|
|
44
|
+
urlAndMimeType: () => ({
|
|
45
|
+
url: void 0,
|
|
46
|
+
mimeType: r.JSON
|
|
47
|
+
}),
|
|
48
|
+
download: (e, t) => s(new Blob([JSON.stringify(e.value, null, 2)], { type: r.JSON }), t)
|
|
49
|
+
},
|
|
50
|
+
[n.Image]: D(w),
|
|
51
|
+
[n.Audio]: D(w, (e) => e.mimeType),
|
|
52
|
+
[n.Pdf]: D(w, () => r.PDF),
|
|
53
|
+
[n.Ooxml]: D(w, (e) => C[e.format]),
|
|
54
|
+
[n.Html]: D((e) => e.url != null, () => r.HTML),
|
|
55
|
+
[n.Unsupported]: D((e) => e.url != null),
|
|
56
|
+
[n.Error]: D((t) => t.errorType !== e.Forbidden && t.url != null),
|
|
57
|
+
[n.MarkdownTable]: {
|
|
58
|
+
...O,
|
|
59
|
+
urlAndMimeType: () => ({
|
|
60
|
+
url: void 0,
|
|
61
|
+
mimeType: r.Markdown
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
[n.Visualizer]: O,
|
|
65
|
+
[n.GroupedVisualizer]: O,
|
|
66
|
+
[n.McpApp]: O
|
|
67
|
+
}, A = (e) => k[e.type], j = (e) => A(e).isDownloadable(e), M = async (e) => {
|
|
68
|
+
let t = await fetch(e);
|
|
69
|
+
if (!t.ok) throw Error(`HTTP ${t.status}`);
|
|
70
|
+
return t.blob();
|
|
71
|
+
}, N = (e, t) => {
|
|
72
|
+
let n = A(e), { url: r, mimeType: a } = n.urlAndMimeType(e), o = i(t ?? "attachment", r, a);
|
|
73
|
+
n.download(e, o);
|
|
74
|
+
}, P = { errorLabel: "_errorLabel_3lihu_2" }, F = ({ loadingLabel: e, pendingContent: t }) => /* @__PURE__ */ S("div", {
|
|
75
|
+
role: "status",
|
|
76
|
+
"aria-live": "polite",
|
|
77
|
+
className: "flex h-full items-center justify-center",
|
|
78
|
+
children: [t ?? /* @__PURE__ */ x("span", {
|
|
79
|
+
"aria-hidden": !0,
|
|
80
|
+
children: /* @__PURE__ */ x(g, {})
|
|
81
|
+
}), /* @__PURE__ */ x("span", {
|
|
82
|
+
className: "sr-only",
|
|
83
|
+
children: e
|
|
84
|
+
})]
|
|
85
|
+
}), I = ({ errorLabel: e, retryLabel: t, onRetry: n, errorContent: r, errorLabelClassName: i = "dial-body-text" }) => /* @__PURE__ */ S("div", {
|
|
86
|
+
className: "flex h-full flex-col items-center justify-center gap-3 p-4",
|
|
87
|
+
children: [r, /* @__PURE__ */ S("div", {
|
|
88
|
+
className: "flex flex-col items-center gap-3 text-center",
|
|
89
|
+
children: [/* @__PURE__ */ x("p", {
|
|
90
|
+
"aria-hidden": !0,
|
|
91
|
+
className: a(i, P.errorLabel),
|
|
92
|
+
children: e
|
|
93
|
+
}), /* @__PURE__ */ x(c, {
|
|
94
|
+
label: t,
|
|
95
|
+
"aria-label": t,
|
|
96
|
+
onClick: n
|
|
97
|
+
})]
|
|
98
|
+
})]
|
|
99
|
+
}), L = class extends _ {
|
|
100
|
+
state = { hasError: !1 };
|
|
101
|
+
static getDerivedStateFromError() {
|
|
102
|
+
return { hasError: !0 };
|
|
103
|
+
}
|
|
104
|
+
componentDidCatch() {
|
|
105
|
+
this.props.onError();
|
|
106
|
+
}
|
|
107
|
+
componentDidUpdate(e) {
|
|
108
|
+
e.retryKey !== this.props.retryKey && this.state.hasError && this.setState({ hasError: !1 });
|
|
109
|
+
}
|
|
110
|
+
render() {
|
|
111
|
+
return this.state.hasError ? this.props.errorFallback : this.props.children;
|
|
112
|
+
}
|
|
113
|
+
}, R = ({ children: e, retryKey: t, onRetry: n, pendingContent: r, errorContent: i, errorLabelClassName: a, labels: { loadingLabel: o = "Loading…", errorLabel: s = "Failed to load content", retryLabel: c = "Retry" } = {} }) => {
|
|
114
|
+
let [u, d] = y(null);
|
|
115
|
+
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(l, {
|
|
116
|
+
visuallyHidden: !0,
|
|
117
|
+
children: u === t ? s : ""
|
|
118
|
+
}), /* @__PURE__ */ x(L, {
|
|
119
|
+
retryKey: t,
|
|
120
|
+
onError: () => d(t),
|
|
121
|
+
errorFallback: /* @__PURE__ */ x(I, {
|
|
122
|
+
errorLabel: s,
|
|
123
|
+
retryLabel: c,
|
|
124
|
+
onRetry: n,
|
|
125
|
+
errorContent: i,
|
|
126
|
+
errorLabelClassName: a
|
|
127
|
+
}),
|
|
128
|
+
children: /* @__PURE__ */ x(v, {
|
|
129
|
+
fallback: /* @__PURE__ */ x(F, {
|
|
130
|
+
loadingLabel: o,
|
|
131
|
+
pendingContent: r
|
|
132
|
+
}),
|
|
133
|
+
children: e
|
|
134
|
+
})
|
|
135
|
+
})] });
|
|
136
|
+
}, z = ["45%", "60%"], B = () => /* @__PURE__ */ x("div", {
|
|
137
|
+
"aria-hidden": !0,
|
|
138
|
+
className: "h-full w-full overflow-hidden",
|
|
139
|
+
children: /* @__PURE__ */ S(p, {
|
|
140
|
+
className: "flex w-full flex-col gap-10 px-5 pt-10 desktop:px-15",
|
|
141
|
+
children: [/* @__PURE__ */ x(f, {
|
|
142
|
+
variant: h.Text,
|
|
143
|
+
tone: m.Sunken,
|
|
144
|
+
width: 208,
|
|
145
|
+
height: d,
|
|
146
|
+
className: a("mx-auto max-w-[40%]", u)
|
|
147
|
+
}), z.map((e) => /* @__PURE__ */ S("div", {
|
|
148
|
+
className: "flex flex-col gap-4",
|
|
149
|
+
children: [Array.from({ length: 4 }, (e, t) => /* @__PURE__ */ x(f, {
|
|
150
|
+
variant: h.Text,
|
|
151
|
+
tone: m.Sunken,
|
|
152
|
+
width: "100%",
|
|
153
|
+
height: d,
|
|
154
|
+
className: u
|
|
155
|
+
}, t)), /* @__PURE__ */ x(f, {
|
|
156
|
+
variant: h.Text,
|
|
157
|
+
tone: m.Base,
|
|
158
|
+
width: e,
|
|
159
|
+
height: d,
|
|
160
|
+
className: u
|
|
161
|
+
})]
|
|
162
|
+
}, e))]
|
|
163
|
+
})
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { N as a, F as i, R as n, M as o, I as r, j as s, B as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvas/AttachmentCanvas.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvas/AttachmentCanvas.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAgc5E,wGAAwG;AACxG,eAAO,MAAM,gBAAgB,6DAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentCanvasBody.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasBody/AttachmentCanvasBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttachmentCanvasBody.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasBody/AttachmentCanvasBody.tsx"],"names":[],"mappings":"AAwBA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAkmBhF,uNAAuN;AACvN,eAAO,MAAM,oBAAoB,iEAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentCanvasContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasContainer/AttachmentCanvasContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAqB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAKxC,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6FAA6F;IAC7F,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iNAAiN;IACjN,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,qJAAqJ;IACrJ,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;CACtC;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"AttachmentCanvasContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasContainer/AttachmentCanvasContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE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,CAAC,CAAC;IAChD;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yFAAyF;IACzF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAujB1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfLoadingSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/PdfLoadingSkeleton/PdfLoadingSkeleton.tsx"],"names":[],"mappings":"AAeA,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,mCAoC9B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Width of the skeleton title line in pixels. */
|
|
2
|
+
export declare const PDF_SKELETON_TITLE_WIDTH = 208;
|
|
3
|
+
/** Width of the last line of each skeleton paragraph, one entry per paragraph. */
|
|
4
|
+
export declare const PDF_SKELETON_LAST_LINE_WIDTHS: string[];
|
|
5
|
+
/** Number of full-width lines rendered before the last line of each skeleton paragraph. */
|
|
6
|
+
export declare const PDF_SKELETON_FULL_LINES_PER_PARAGRAPH = 4;
|
|
7
|
+
//# sourceMappingURL=pdf-loading-skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/constants/pdf-loading-skeleton.ts"],"names":[],"mappings":"AAIA,kDAAkD;AAClD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,UAAiB,CAAC;AAE5D,2FAA2F;AAC3F,eAAO,MAAM,qCAAqC,IAAI,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AttachmentCanvasContent } from '../models/attachment-canvas';
|
|
3
|
+
import { AttachmentContentType } from '../types/attachment-canvas';
|
|
3
4
|
/** Value exposed by the attachment canvas context. */
|
|
4
5
|
export interface AttachmentCanvasContextValue {
|
|
5
6
|
/** Whether the canvas panel is currently open. */
|
|
6
7
|
isOpen: boolean;
|
|
7
|
-
/** Whether the panel is open but content is still being resolved
|
|
8
|
+
/** Whether the panel is open but content is still being resolved. */
|
|
8
9
|
isLoading: boolean;
|
|
10
|
+
/** Content type currently being resolved, when known. */
|
|
11
|
+
loadingContentType?: AttachmentContentType | undefined;
|
|
9
12
|
/** Content currently displayed in the canvas. */
|
|
10
13
|
content: AttachmentCanvasContent;
|
|
11
14
|
/** File name shown in the canvas header. */
|
|
@@ -13,7 +16,7 @@ export interface AttachmentCanvasContextValue {
|
|
|
13
16
|
/** ID of the attachment currently displayed in the canvas, if any. */
|
|
14
17
|
attachmentId: string | undefined;
|
|
15
18
|
/** Open the canvas immediately in a loading state before content has resolved. */
|
|
16
|
-
openCanvasLoading: (fileName?: string, attachmentId?: string) => void;
|
|
19
|
+
openCanvasLoading: (fileName?: string, attachmentId?: string, loadingContentType?: AttachmentContentType) => void;
|
|
17
20
|
/** Open the canvas with the given content and optional file name; `onRetry` re-opens it from a load error. */
|
|
18
21
|
openCanvas: (content: AttachmentCanvasContent, fileName?: string, attachmentId?: string, onRetry?: () => void) => void;
|
|
19
22
|
/** Close the canvas. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentCanvasContext.d.ts","sourceRoot":"","sources":["../../src/context/AttachmentCanvasContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentCanvasContext.d.ts","sourceRoot":"","sources":["../../src/context/A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AC,MAAM,MAAM,OAAO,CAAC,GAAG,SACjC,CAAC;AAEnC,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,QAAO,CAAC,MAAM,MAAM,OAAO,CAqB7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOpenAttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAcnC,OAAO,KAAK,EAEV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"useOpenAttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAcnC,OAAO,KAAK,EAEV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;AAYvC;;;;;;GAMG;AACH,MAAM,WAAW,gCAAgC;IAC/C,qFAAqF;IACrF,mBAAmB,CAAC,UAAU,EAAE,iBAAiB,GAAG,kBAAkB,GAAG,IAAI,CAAC;IAC9E,kFAAkF;IAClF,kBAAkB,CAChB,UAAU,EAAE,iBA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KG;IACH,aAAa,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACvD;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,8FAA8F;IAC9F,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iJAAiJ;IACjJ,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC;AAE/C,0FAA0F;AAC1F,MAAM,MAAM,oBAAoB,GAAG,CACjC,UAAU,EAAE,iBAAiB,EAC7B,kBAAkB,CAAC,EAAE,MAAM,EAC3B,YAAY,CAAC,EAAE,kBAAkB,KAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;AAuCtB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,WAAW,gCAAgC,EAC3C,SAAS,8BAA8B,KACtC;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CA4R9C,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
._GzYRV{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;line-height:1.2}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{-webkit-user-select:none;user-select:none;margin-right:5px;font-size:1.2em}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{color:#000;margin-right:5px;font-weight:600}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{color:#fdf6e3;margin-right:5px;font-weight:bolder}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._container_k7ib4_1{background:var(--ac-code-bg,var(--bg-layer-raised,#fcfcfc))}._containerLight_k7ib4_5{background:var(--ac-code-bg,var(--bg-layer-base,#f5f7fa))}._openInNewTabButton_c1arc_1{color:var(--ac-open-in-new-tab-text,var(--text-accent,#1d4ed8))}._viewer_gdafg_2{background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc))}._spreadsheetCanvas_gdafg_6{width:100%;height:100%;display:block}._formulaPanel_gdafg_12{border-color:var(--ac-ooxml-formula-border,var(--stroke-secondary,#d1dbea));background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc));color:var(--ac-ooxml-formula-text,var(--text-primary,#161b2d))}._formulaValue_gdafg_18{border-color:var(--ac-ooxml-formula-border,var(--stroke-secondary,#d1dbea));background:var(--ac-ooxml-formula-bg,var(--bg-layer-base,#f5f7fa));color:var(--ac-ooxml-formula-text,var(--text-primary,#161b2d))}._formulaValue_gdafg_18:focus-visible{outline-color:var(--ac-focus-outline,var(--stroke-focus,#161b2d))}._statusOverlay_gdafg_27{background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc));color:var(--ac-status-text,var(--text-secondary,#57647a))}._errorIcon_gdafg_32{color:var(--ac-error-icon,var(--text-error,#ae2f2f))}._highlight_gdafg_40{border:1px solid var(--ac-ooxml-highlight-border,var(--stroke-accent,#1d4ed8));background:var(--ac-ooxml-highlight-bg,transparent);opacity:.55;border-radius:2px}._highlight_gdafg_40[data-selected=true]{opacity:1;border-width:2px}._highlight_gdafg_40[data-clipped=true]{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}._loadingOverlay_12637_1{background-color:var(--vs-loading-bg,var(--bg-layer-sunken,#eef1f7))}._statusLabel_12637_5{color:var(--vs-status-text,var(--text-primary,#161b2d))}._errorIcon_12637_9{color:var(--vs-error-icon,var(--text-error,#ae2f2f))}._body_fvnln_4{color:var(--ac-text,var(--text-primary,#161b2d));font-family:var(--ac-font-family);font-size:var(--ac-font-size);font-weight:var(--ac-font-weight);line-height:var(--ac-line-height);letter-spacing:var(--ac-letter-spacing)}._statusLabel_fvnln_13{color:var(--ac-status-text,var(--text-secondary,#57647a))}._errorIcon_fvnln_17{color:var(--ac-error-icon,var(--text-error,#ae2f2f))}._jsonWrapper_fvnln_21{border-color:var(--ac-json-border,var(--stroke-secondary,#d1dbea));background-color:var(--ac-json-bg,var(--bg-layer-base,#f5f7fa))}._jsonLabel_fvnln_26{color:var(--ac-json-label,var(--text-primary,#161b2d))}._jsonClickableLabel_fvnln_30{color:var(--ac-json-clickable-label,var(--text-primary,#161b2d))}._jsonPunctuation_fvnln_34{color:var(--ac-json-punctuation,var(--text-secondary,#57647a))}._jsonStringValue_fvnln_38{color:var(--ac-json-string,var(--text-success,#007274))}._jsonNumberValue_fvnln_42{color:var(--ac-json-number,var(--text-accent,#1d4ed8))}._jsonBooleanValue_fvnln_46{color:var(--ac-json-boolean,var(--text-warning,#7f6300))}._jsonNullValue_fvnln_50{color:var(--ac-json-null,var(--text-secondary,#57647a))}._jsonExpandIcon_fvnln_54{color:var(--ac-json-toggle-icon,var(--text-secondary,#57647a))}._jsonExpandIcon_fvnln_54:hover{color:var(--ac-json-toggle-icon-hover,var(--text-primary,#161b2d))}._jsonExpandIcon_fvnln_54:after{content:"▶";vertical-align:middle;font-size:.6em}._jsonCollapseIcon_fvnln_67{color:var(--ac-json-toggle-icon,var(--text-secondary,#57647a))}._jsonCollapseIcon_fvnln_67:hover{color:var(--ac-json-toggle-icon-hover,var(--text-primary,#161b2d))}._jsonCollapseIcon_fvnln_67:after{content:"▼";vertical-align:middle;font-size:.6em}.pdf-container:has(+.pdf-container){padding:0}._jsonCollapsedContent_fvnln_84{color:var(--ac-json-collapsed-text,var(--text-secondary,#57647a));background-color:var(--ac-json-collapsed-bg,var(--bg-layer-raised,#fcfcfc))}._jsonCollapsedContent_fvnln_84:after{content:"…"}._mcpAppDivider_1gxed_1{border-color:var(--ac-mcp-app-divider,var(--text-secondary,#57647a))}._mcpAppVersion_1gxed_5{color:var(--ac-mcp-app-version,var(--text-secondary,#57647a))}._panelHeader_1gxed_9{border-color:var(--ac-header-border,var(--stroke-tertiary,#e0e6f0))}._frame_1ys0b_1{background-color:var(--igv-bg,var(--bg-layer-2,#f3f4f6));border-color:var(--igv-border,var(--stroke-tertiary,#e0e6f0))}._header_1ys0b_6{border-block-end-color:var(--igv-border,var(--stroke-tertiary,#e0e6f0))}._title_1ys0b_10{color:var(--igv-title-text,var(--text-primary,#161b2d))}
|
|
1
|
+
._GzYRV{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;line-height:1.2}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{-webkit-user-select:none;user-select:none;margin-right:5px;font-size:1.2em}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{color:#000;margin-right:5px;font-weight:600}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{color:#fdf6e3;margin-right:5px;font-weight:bolder}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._container_k7ib4_1{background:var(--ac-code-bg,var(--bg-layer-raised,#fcfcfc))}._containerLight_k7ib4_5{background:var(--ac-code-bg,var(--bg-layer-base,#f5f7fa))}._openInNewTabButton_c1arc_1{color:var(--ac-open-in-new-tab-text,var(--text-accent,#1d4ed8))}._viewer_gdafg_2{background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc))}._spreadsheetCanvas_gdafg_6{width:100%;height:100%;display:block}._formulaPanel_gdafg_12{border-color:var(--ac-ooxml-formula-border,var(--stroke-secondary,#d1dbea));background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc));color:var(--ac-ooxml-formula-text,var(--text-primary,#161b2d))}._formulaValue_gdafg_18{border-color:var(--ac-ooxml-formula-border,var(--stroke-secondary,#d1dbea));background:var(--ac-ooxml-formula-bg,var(--bg-layer-base,#f5f7fa));color:var(--ac-ooxml-formula-text,var(--text-primary,#161b2d))}._formulaValue_gdafg_18:focus-visible{outline-color:var(--ac-focus-outline,var(--stroke-focus,#161b2d))}._statusOverlay_gdafg_27{background:var(--ac-ooxml-bg,var(--bg-layer-raised,#fcfcfc));color:var(--ac-status-text,var(--text-secondary,#57647a))}._errorIcon_gdafg_32{color:var(--ac-error-icon,var(--text-error,#ae2f2f))}._highlight_gdafg_40{border:1px solid var(--ac-ooxml-highlight-border,var(--stroke-accent,#1d4ed8));background:var(--ac-ooxml-highlight-bg,transparent);opacity:.55;border-radius:2px}._highlight_gdafg_40[data-selected=true]{opacity:1;border-width:2px}._highlight_gdafg_40[data-clipped=true]{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}._loadingOverlay_12637_1{background-color:var(--vs-loading-bg,var(--bg-layer-sunken,#eef1f7))}._statusLabel_12637_5{color:var(--vs-status-text,var(--text-primary,#161b2d))}._errorIcon_12637_9{color:var(--vs-error-icon,var(--text-error,#ae2f2f))}._body_fvnln_4{color:var(--ac-text,var(--text-primary,#161b2d));font-family:var(--ac-font-family);font-size:var(--ac-font-size);font-weight:var(--ac-font-weight);line-height:var(--ac-line-height);letter-spacing:var(--ac-letter-spacing)}._statusLabel_fvnln_13{color:var(--ac-status-text,var(--text-secondary,#57647a))}._errorIcon_fvnln_17{color:var(--ac-error-icon,var(--text-error,#ae2f2f))}._jsonWrapper_fvnln_21{border-color:var(--ac-json-border,var(--stroke-secondary,#d1dbea));background-color:var(--ac-json-bg,var(--bg-layer-base,#f5f7fa))}._jsonLabel_fvnln_26{color:var(--ac-json-label,var(--text-primary,#161b2d))}._jsonClickableLabel_fvnln_30{color:var(--ac-json-clickable-label,var(--text-primary,#161b2d))}._jsonPunctuation_fvnln_34{color:var(--ac-json-punctuation,var(--text-secondary,#57647a))}._jsonStringValue_fvnln_38{color:var(--ac-json-string,var(--text-success,#007274))}._jsonNumberValue_fvnln_42{color:var(--ac-json-number,var(--text-accent,#1d4ed8))}._jsonBooleanValue_fvnln_46{color:var(--ac-json-boolean,var(--text-warning,#7f6300))}._jsonNullValue_fvnln_50{color:var(--ac-json-null,var(--text-secondary,#57647a))}._jsonExpandIcon_fvnln_54{color:var(--ac-json-toggle-icon,var(--text-secondary,#57647a))}._jsonExpandIcon_fvnln_54:hover{color:var(--ac-json-toggle-icon-hover,var(--text-primary,#161b2d))}._jsonExpandIcon_fvnln_54:after{content:"▶";vertical-align:middle;font-size:.6em}._jsonCollapseIcon_fvnln_67{color:var(--ac-json-toggle-icon,var(--text-secondary,#57647a))}._jsonCollapseIcon_fvnln_67:hover{color:var(--ac-json-toggle-icon-hover,var(--text-primary,#161b2d))}._jsonCollapseIcon_fvnln_67:after{content:"▼";vertical-align:middle;font-size:.6em}.pdf-container:has(+.pdf-container){padding:0}._jsonCollapsedContent_fvnln_84{color:var(--ac-json-collapsed-text,var(--text-secondary,#57647a));background-color:var(--ac-json-collapsed-bg,var(--bg-layer-raised,#fcfcfc))}._jsonCollapsedContent_fvnln_84:after{content:"…"}._mcpAppDivider_1gxed_1{border-color:var(--ac-mcp-app-divider,var(--text-secondary,#57647a))}._mcpAppVersion_1gxed_5{color:var(--ac-mcp-app-version,var(--text-secondary,#57647a))}._panelHeader_1gxed_9{border-color:var(--ac-header-border,var(--stroke-tertiary,#e0e6f0))}._frame_1ys0b_1{background-color:var(--igv-bg,var(--bg-layer-2,#f3f4f6));border-color:var(--igv-border,var(--stroke-tertiary,#e0e6f0))}._header_1ys0b_6{border-block-end-color:var(--igv-border,var(--stroke-tertiary,#e0e6f0))}._title_1ys0b_10{color:var(--igv-title-text,var(--text-primary,#161b2d))}
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
-
@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,::backdrop{--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-outline-style:solid}}}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-s-3{inset-inline-start:.75rem}.top-3{top:.75rem}.z-10{z-index:10}.m-0{margin:0}.m-3{margin:.75rem}.mx-1\.5{margin-inline:.375rem}.my-0{margin-block:0}.ms-2{margin-inline-start:.5rem}.me-1{margin-inline-end:.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.table-row{display:table-row}.h-3{height:.75rem}.h-8{height:2rem}.h-full{height:100%}.max-h-\[70vh\]{max-height:70vh}.max-h-\[min\(70vh\,calc\(var\(--fui-available-height\,70vh\)-2\.5rem\)\)\]{max-height:min(70vh, calc(var(--fui-available-height,70vh) - 2.5rem))}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.min-h-\[100px\]{min-height:100px}.min-h-\[160px\]{min-height:160px}.w-0{width:0}.w-36{width:9rem}.w-\[88px\]{width:88px}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.min-w-0{min-width:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.scale-1{--tw-scale-x:1%;--tw-scale-y:1%;--tw-scale-z:1%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.scrollbar-gutter-both{scrollbar-gutter:stable both-edges}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:4px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.object-contain{object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.py-1{padding-block:.25rem}.py-2{padding-block:.5rem}.ps-3{padding-inline-start:.75rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.italic{font-style:italic}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}@media (max-width:1279px){.mobile\:w-full{width:100%}.mobile\:max-w-full{max-width:100%}}.\[\&\>div\:first-child\]\:hidden>div:first-child{display:none}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
3
|
+
@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,::backdrop{--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-outline-style:solid}}}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-s-3{inset-inline-start:.75rem}.top-3{top:.75rem}.z-10{z-index:10}.m-0{margin:0}.m-3{margin:.75rem}.mx-1\.5{margin-inline:.375rem}.mx-auto{margin-inline:auto}.my-0{margin-block:0}.ms-2{margin-inline-start:.5rem}.me-1{margin-inline-end:.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.table-row{display:table-row}.h-3{height:.75rem}.h-8{height:2rem}.h-full{height:100%}.max-h-\[70vh\]{max-height:70vh}.max-h-\[min\(70vh\,calc\(var\(--fui-available-height\,70vh\)-2\.5rem\)\)\]{max-height:min(70vh, calc(var(--fui-available-height,70vh) - 2.5rem))}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.min-h-\[100px\]{min-height:100px}.min-h-\[160px\]{min-height:160px}.w-0{width:0}.w-36{width:9rem}.w-\[88px\]{width:88px}.w-full{width:100%}.max-w-\[40\%\]{max-width:40%}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.min-w-0{min-width:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.scale-1{--tw-scale-x:1%;--tw-scale-y:1%;--tw-scale-z:1%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.scrollbar-gutter-both{scrollbar-gutter:stable both-edges}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:4px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.object-contain{object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-5{padding-inline:1.25rem}.py-1{padding-block:.25rem}.py-2{padding-block:.5rem}.ps-3{padding-inline-start:.75rem}.pt-10{padding-top:2.5rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.italic{font-style:italic}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}@media (max-width:1279px){.mobile\:w-full{width:100%}.mobile\:max-w-full{max-width:100%}}@media (min-width:1280px){.desktop\:px-15{padding-inline:3.75rem}}.\[\&\>div\:first-child\]\:hidden>div:first-child{display:none}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}
|