@zjlab-fe/data-hub-ui 0.5.16 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/floating-label-input/demo/index.d.ts +1 -0
- package/dist/types/components/floating-label-input/index.d.ts +10 -0
- package/dist/types/components/popover-select/demo/index.d.ts +1 -0
- package/dist/types/components/popover-select/index.d.ts +16 -0
- package/dist/types/index.d.ts +2 -0
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -1
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as t from"antd";import*as n from"react";import*as o from"@ant-design/icons";import*as r from"axios";import*as a from"jotai";import*as i from"jotai-scope";import*as s from"@zjlab-fe/util";import*as l from"i18next";import*as d from"react-markdown";import*as c from"rehype-raw";import*as p from"remark-gfm";import*as u from"remark-math";import*as h from"rehype-mathjax";import*as m from"react-json-view";import*as f from"react-error-boundary";import*as b from"arrow-js-ffi";import*as w from"parquet-wasm";import*as g from"copy-to-clipboard";import*as y from"classnames";import*as x from"@tiptap/react";import*as v from"@tiptap/extension-color";import*as k from"@tiptap/extension-table-cell";import*as j from"@tiptap/extension-table-header";import*as N from"@tiptap/extension-table-row";import*as A from"@tiptap/extension-text-align";import*as z from"@tiptap/starter-kit";import*as E from"@tiptap/extension-table";import*as C from"@tiptap/extension-highlight";import*as S from"@tiptap/extension-image";import*as M from"@tiptap/extension-text-style";import*as B from"@tiptap/extension-list-item";import*as W from"@tiptap/pm/state";import*as K from"@tiptap/extension-link";import*as O from"marked";import*as Z from"prosemirror-state";import*as J from"lowlight";import*as P from"@tiptap/extension-code-block-lowlight";import*as F from"@tiptap/extension-underline";var L={868:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-default-drag-area {margin-bottom: 1.25rem;display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 1rem;border-radius: 10px;border-width: 1px;border-style: dashed;border-color: rgb(23 117 254 / 0.4);padding-top: 1rem;padding-bottom: 1rem\n}.zjlab-fe-data-hub-ui-default-drag-area:hover {--tw-border-opacity: 1;border-color: rgb(23 117 254 / var(--tw-border-opacity))\n}",""]);const s=i},884:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.zjlab-fe-data-hub-ui-file-uploader .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.zjlab-fe-data-hub-ui-file-uploader .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .absolute{\nposition: absolute;}.zjlab-fe-data-hub-ui-file-uploader .relative{\nposition: relative;}.zjlab-fe-data-hub-ui-file-uploader .sticky{\nposition: sticky;}.zjlab-fe-data-hub-ui-file-uploader .right-0{\nright: 0px;}.zjlab-fe-data-hub-ui-file-uploader .z-10{\nz-index: 10;}.zjlab-fe-data-hub-ui-file-uploader .m-0{\nmargin: 0px;}.zjlab-fe-data-hub-ui-file-uploader .m-1{\nmargin: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.zjlab-fe-data-hub-ui-file-uploader .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-0{\nmargin-bottom: 0px;}.zjlab-fe-data-hub-ui-file-uploader .mb-2{\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-4{\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-5{\nmargin-bottom: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mr-1{\nmargin-right: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-20{\nmargin-top: 5rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-4{\nmargin-top: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .block{\ndisplay: block;}.zjlab-fe-data-hub-ui-file-uploader .\\!inline{\ndisplay: inline !important;}.zjlab-fe-data-hub-ui-file-uploader .inline{\ndisplay: inline;}.zjlab-fe-data-hub-ui-file-uploader .flex{\ndisplay: flex;}.zjlab-fe-data-hub-ui-file-uploader .table{\ndisplay: table;}.zjlab-fe-data-hub-ui-file-uploader .flow-root{\ndisplay: flow-root;}.zjlab-fe-data-hub-ui-file-uploader .hidden{\ndisplay: none;}.zjlab-fe-data-hub-ui-file-uploader .h-4{\nheight: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .h-5{\nheight: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .h-6{\nheight: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .h-8{\nheight: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .h-auto{\nheight: auto;}.zjlab-fe-data-hub-ui-file-uploader .max-h-72{\nmax-height: 18rem;}.zjlab-fe-data-hub-ui-file-uploader .min-h-\\[20rem\\]{\nmin-height: 20rem;}.zjlab-fe-data-hub-ui-file-uploader .w-4{\nwidth: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .w-40{\nwidth: 10rem;}.zjlab-fe-data-hub-ui-file-uploader .w-5{\nwidth: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .w-6{\nwidth: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-96{\nmax-width: 24rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-none{\nmax-width: none;}.zjlab-fe-data-hub-ui-file-uploader .flex-shrink-0{\nflex-shrink: 0;}.zjlab-fe-data-hub-ui-file-uploader .cursor-pointer{\ncursor: pointer;}.zjlab-fe-data-hub-ui-file-uploader .items-center{\nalign-items: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-center{\njustify-content: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-between{\njustify-content: space-between;}.zjlab-fe-data-hub-ui-file-uploader .gap-1{\ngap: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .gap-4{\ngap: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .overflow-y-auto{\noverflow-y: auto;}.zjlab-fe-data-hub-ui-file-uploader .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.zjlab-fe-data-hub-ui-file-uploader .rounded{\nborder-radius: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .rounded-md{\nborder-radius: 0.375rem;}.zjlab-fe-data-hub-ui-file-uploader .border{\nborder-width: 1px;}.zjlab-fe-data-hub-ui-file-uploader .border-solid{\nborder-style: solid;}.zjlab-fe-data-hub-ui-file-uploader .border-dashed{\nborder-style: dashed;}.zjlab-fe-data-hub-ui-file-uploader .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .p-1{\npadding: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .p-2{\npadding: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .p-4{\npadding: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.zjlab-fe-data-hub-ui-file-uploader .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .pr-2{\npadding-right: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-center{\ntext-align: center;}.zjlab-fe-data-hub-ui-file-uploader .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.zjlab-fe-data-hub-ui-file-uploader .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.zjlab-fe-data-hub-ui-file-uploader .italic{\nfont-style: italic;}.zjlab-fe-data-hub-ui-file-uploader .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .underline{\ntext-decoration-line: underline;}.zjlab-fe-data-hub-ui-file-uploader .opacity-0{\nopacity: 0;}.zjlab-fe-data-hub-ui-file-uploader .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.zjlab-fe-data-hub-ui-file-uploader .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.zjlab-fe-data-hub-ui-file-uploader .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.zjlab-fe-data-hub-ui-file-uploader .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.zjlab-fe-data-hub-ui-file-uploader *, .zjlab-fe-data-hub-ui-file-uploader ::before, .zjlab-fe-data-hub-ui-file-uploader ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.zjlab-fe-data-hub-ui-file-uploader ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader *,\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader html,\n.zjlab-fe-data-hub-ui-file-uploader :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader b,\n.zjlab-fe-data-hub-ui-file-uploader strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader code,\n.zjlab-fe-data-hub-ui-file-uploader kbd,\n.zjlab-fe-data-hub-ui-file-uploader samp,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader sub,\n.zjlab-fe-data-hub-ui-file-uploader sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sub {\n bottom: -0.25em;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input,\n.zjlab-fe-data-hub-ui-file-uploader optgroup,\n.zjlab-fe-data-hub-ui-file-uploader select,\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'button\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'reset\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-inner-spin-button,\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader blockquote,\n.zjlab-fe-data-hub-ui-file-uploader dl,\n.zjlab-fe-data-hub-ui-file-uploader dd,\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6,\n.zjlab-fe-data-hub-ui-file-uploader hr,\n.zjlab-fe-data-hub-ui-file-uploader figure,\n.zjlab-fe-data-hub-ui-file-uploader p,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n margin: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader fieldset {\n margin: 0;\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader legend {\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ol,\n.zjlab-fe-data-hub-ui-file-uploader ul,\n.zjlab-fe-data-hub-ui-file-uploader menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.zjlab-fe-data-hub-ui-file-uploader dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader input::-moz-placeholder, .zjlab-fe-data-hub-ui-file-uploader textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader input::placeholder,\n.zjlab-fe-data-hub-ui-file-uploader textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.zjlab-fe-data-hub-ui-file-uploader :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader svg,\n.zjlab-fe-data-hub-ui-file-uploader video,\n.zjlab-fe-data-hub-ui-file-uploader canvas,\n.zjlab-fe-data-hub-ui-file-uploader audio,\n.zjlab-fe-data-hub-ui-file-uploader iframe,\n.zjlab-fe-data-hub-ui-file-uploader embed,\n.zjlab-fe-data-hub-ui-file-uploader object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.zjlab-fe-data-hub-ui-file-uploader [hidden] {\n display: none;\n}}@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-65-Medium";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-65-Medium.ttf") format("truetype")}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},915:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-modal .ant-modal-title,.zjlab-fe-data-hub-ui-modal .ant-modal-confirm-title {\n font-family: AlibabaPuHuiTi-3-65-Medium;\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem\n}",""]);const s=i},150:(e,t,n)=>{n.d(t,{Ay:()=>p,Og:()=>d,Rp:()=>c,_b:()=>l,cQ:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".QmFviLMZ5ad2m0mLbKkP{width:349px;height:280px;border-radius:10px 10px 10px 10px}.ZJu8EO9kRspWAqZAD0d_{background:linear-gradient(to top, #ffffff 0%, #f6f9fe 100%);border:1px solid #edf2fc;-o-border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1;border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1}.ZJu8EO9kRspWAqZAD0d_:hover{background:linear-gradient(to top, #ffffff 0%, #ecf4ff 100%);box-shadow:0px 8px 16px 0px rgba(7,35,76,.1);border:1px solid #afcfff;-o-border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1}.KS7Y4rDVUCfP7qjdPZap{background:linear-gradient(to top, #ffffff 0%, #f7f5ff 100%);border:1px solid #ebe6ff;-o-border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1;border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1}.KS7Y4rDVUCfP7qjdPZap:hover{background:linear-gradient(to top, #ffffff 0%, #e3dcff 100%);box-shadow:0px 8px 16px 0px rgba(40,23,92,.1);border:1px solid #c5b4ff;-o-border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1}.mZ5nSrfxkgv2ivcg_v21{width:472px;height:148px;border-radius:10px 10px 10px 10px;position:relative}",""]);var s="QmFviLMZ5ad2m0mLbKkP",l="ZJu8EO9kRspWAqZAD0d_",d="KS7Y4rDVUCfP7qjdPZap",c="mZ5nSrfxkgv2ivcg_v21";const p=i},100:(e,t,n)=>{n.d(t,{Ay:()=>d,DE:()=>l,wm:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-45-Light";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-45-Light.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-75-SemiBold";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-75-SemiBold.ttf") format("truetype")}.EybT8LL35ZAAECD9qKQX .ant-modal-content{padding:0 24px}.EybT8LL35ZAAECD9qKQX .ant-modal-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-body{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-footer{text-align:center;padding:16px 0}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-content{padding:0 24px}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-body{text-align:center}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-content{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-btns{text-align:center;padding:16px 0}',""]);var s="EybT8LL35ZAAECD9qKQX",l="F2kZbP7G9NKG9lg8O_b1";const d=i},860:(e,t,n)=>{n.d(t,{A:()=>l,K:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.aTTl5tM6IlquA6EPUX_w{font-family:"hub-iconfont";color:#545b64;font-size:12px;cursor:pointer}.aTTl5tM6IlquA6EPUX_w:hover{color:#1775fe}',""]);var s="aTTl5tM6IlquA6EPUX_w";const l=i},328:(e,t,n)=>{n.d(t,{Ay:()=>u,Hn:()=>l,P_:()=>d,UA:()=>p,X$:()=>c,tp:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".eKExJAv72oIPXwTqwpgU td{border-top:none !important;border-left:none !important;border-right:none !important}.eKExJAv72oIPXwTqwpgU th.ant-table-cell{height:55px;padding:5px 16px !important}.eKExJAv72oIPXwTqwpgU td.ant-table-cell{padding:5px 16px !important;font-size:14px;line-height:22px;letter-spacing:0}.eKExJAv72oIPXwTqwpgU div{scrollbar-width:thin;scrollbar-color:#eaeaea rgba(0,0,0,0);box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV{display:flex;flex-direction:column;justify-content:center}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH:hover{display:block;overflow:auto}.b2mlkkE1gDbFwo4_42Kc{position:relative}.Vh5uhm2m3HksYuSIjwQj{position:absolute;left:16px;color:#89909d;font-size:14px}",""]);var s="eKExJAv72oIPXwTqwpgU",l="SJWFZYuxuri8ceYzxmsV",d="CDb4Loro5cBpX56QzatH",c="b2mlkkE1gDbFwo4_42Kc",p="Vh5uhm2m3HksYuSIjwQj";const u=i},685:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".cJmcPSn5LN2GH9HqTvEQ{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="cJmcPSn5LN2GH9HqTvEQ";const l=i},913:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,_8:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zuabV0gpCkaY8pSYtOSL{display:flex;align-items:center;justify-content:center;height:100%}.i2GFC308F3s1lGENOI5l{max-width:100%;max-height:100%}",""]);var s="zuabV0gpCkaY8pSYtOSL",l="i2GFC308F3s1lGENOI5l";const d=i},690:(e,t,n)=>{n.d(t,{Ay:()=>c,D5:()=>l,LV:()=>s,qf:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".EVmfUlSj2zzl7igeqp6N{display:flex;align-items:center;justify-content:center;height:100%;overflow:auto;padding-top:16px;padding-bottom:16px}.Z65yBBsFLSWF70wfWwgA{display:flex;align-items:center;justify-content:center;padding-top:16px;padding-bottom:16px}.QSsGpXvLzOYpHSNncjpj .ant-modal-body{height:calc(100vh - 200px);overflow-y:auto}.QSsGpXvLzOYpHSNncjpj .ant-modal-content{padding-top:44px}",""]);var s="EVmfUlSj2zzl7igeqp6N",l="Z65yBBsFLSWF70wfWwgA",d="QSsGpXvLzOYpHSNncjpj";const c=i},555:(e,t,n)=>{n.d(t,{A:()=>h,L:()=>u});var o=n(245),r=n.n(o),a=n(526),i=n.n(a),s=n(405),l=n.n(s),d=new URL(n(840),n.b),c=i()(r()),p=l()(d);c.push([e.id,`.axAZtM5WKNopJEBNra2i .markdown-body{--base-size-4: 0.25rem;--base-size-8: 0.5rem;--base-size-16: 1rem;--base-size-24: 1.5rem;--base-size-40: 2.5rem;--base-text-weight-normal: 400;--base-text-weight-medium: 500;--base-text-weight-semibold: 600;--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent: Highlight}@media(prefers-color-scheme: dark){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=dark]{color-scheme:dark;--focus-outlineColor: #1f6feb;--fgColor-default: #f0f6fc;--fgColor-muted: #9198a1;--fgColor-accent: #4493f8;--fgColor-success: #3fb950;--fgColor-attention: #d29922;--fgColor-danger: #f85149;--fgColor-done: #ab7df8;--bgColor-default: #0d1117;--bgColor-muted: #151b23;--bgColor-neutral-muted: #656c7633;--bgColor-attention-muted: #bb800926;--borderColor-default: #3d444d;--borderColor-muted: #3d444db3;--borderColor-neutral-muted: #3d444db3;--borderColor-accent-emphasis: #1f6feb;--borderColor-success-emphasis: #238636;--borderColor-attention-emphasis: #9e6a03;--borderColor-danger-emphasis: #da3633;--borderColor-done-emphasis: #8957e5;--color-prettylights-syntax-comment: #9198a1;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #f0f6fc;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-brackethighlighter-angle: #9198a1;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #f0f6fc;--color-prettylights-syntax-markup-bold: #f0f6fc;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #f0f6fc;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d}}@media(prefers-color-scheme: light){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=light]{color-scheme:light;--focus-outlineColor: #0969da;--fgColor-default: #1f2328;--fgColor-muted: #59636e;--fgColor-accent: #0969da;--fgColor-success: #1a7f37;--fgColor-attention: #9a6700;--fgColor-danger: #d1242f;--fgColor-done: #8250df;--bgColor-default: #ffffff;--bgColor-muted: #f6f8fa;--bgColor-neutral-muted: #818b981f;--bgColor-attention-muted: #fff8c5;--borderColor-default: #d1d9e0;--borderColor-muted: #d1d9e0b3;--borderColor-neutral-muted: #d1d9e0b3;--borderColor-accent-emphasis: #0969da;--borderColor-success-emphasis: #1a7f37;--borderColor-attention-emphasis: #9a6700;--borderColor-danger-emphasis: #cf222e;--borderColor-done-emphasis: #8250df;--color-prettylights-syntax-comment: #59636e;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #1f2328;--color-prettylights-syntax-entity-tag: #0550ae;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-brackethighlighter-angle: #59636e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #1f2328;--color-prettylights-syntax-markup-bold: #1f2328;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #d1d9e0;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-sublimelinter-gutter-mark: #818b98}}.axAZtM5WKNopJEBNra2i .markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--fgColor-default);background-color:var(--bgColor-default);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url(${p});mask-image:url(${p})}.axAZtM5WKNopJEBNra2i .markdown-body details,.axAZtM5WKNopJEBNra2i .markdown-body figcaption,.axAZtM5WKNopJEBNra2i .markdown-body figure{display:block}.axAZtM5WKNopJEBNra2i .markdown-body summary{display:list-item}.axAZtM5WKNopJEBNra2i .markdown-body [hidden]{display:none !important}.axAZtM5WKNopJEBNra2i .markdown-body a{background-color:rgba(0,0,0,0);color:var(--fgColor-accent);text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.axAZtM5WKNopJEBNra2i .markdown-body b,.axAZtM5WKNopJEBNra2i .markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dfn{font-style:italic}.axAZtM5WKNopJEBNra2i .markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body small{font-size:90%}.axAZtM5WKNopJEBNra2i .markdown-body sub,.axAZtM5WKNopJEBNra2i .markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.axAZtM5WKNopJEBNra2i .markdown-body sub{bottom:-0.25em}.axAZtM5WKNopJEBNra2i .markdown-body sup{top:-0.5em}.axAZtM5WKNopJEBNra2i .markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body kbd,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:monospace;font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body figure{margin:1em var(--base-size-40)}.axAZtM5WKNopJEBNra2i .markdown-body hr{box-sizing:content-box;overflow:hidden;background:rgba(0,0,0,0);border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.axAZtM5WKNopJEBNra2i .markdown-body [type=button],.axAZtM5WKNopJEBNra2i .markdown-body [type=reset],.axAZtM5WKNopJEBNra2i .markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.axAZtM5WKNopJEBNra2i .markdown-body [type=checkbox],.axAZtM5WKNopJEBNra2i .markdown-body [type=radio]{box-sizing:border-box;padding:0}.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-inner-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-cancel-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.axAZtM5WKNopJEBNra2i .markdown-body a:hover{text-decoration:underline}.axAZtM5WKNopJEBNra2i .markdown-body ::-moz-placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body hr::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body hr::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.axAZtM5WKNopJEBNra2i .markdown-body td,.axAZtM5WKNopJEBNra2i .markdown-body th{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body details summary{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body a:focus,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body a:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus,.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.axAZtM5WKNopJEBNra2i .markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h1,.axAZtM5WKNopJEBNra2i .markdown-body h2,.axAZtM5WKNopJEBNra2i .markdown-body h3,.axAZtM5WKNopJEBNra2i .markdown-body h4,.axAZtM5WKNopJEBNra2i .markdown-body h5,.axAZtM5WKNopJEBNra2i .markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.axAZtM5WKNopJEBNra2i .markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.axAZtM5WKNopJEBNra2i .markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.axAZtM5WKNopJEBNra2i .markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--fgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body p{margin-top:0;margin-bottom:10px}.axAZtM5WKNopJEBNra2i .markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ul ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol ol{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body dd{margin-left:0}.axAZtM5WKNopJEBNra2i .markdown-body tt,.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.axAZtM5WKNopJEBNra2i .markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-outer-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.axAZtM5WKNopJEBNra2i .markdown-body::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body>*:last-child{margin-bottom:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body a:not([href]){color:inherit;text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body .absent{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .anchor:focus{outline:none}.axAZtM5WKNopJEBNra2i .markdown-body p,.axAZtM5WKNopJEBNra2i .markdown-body blockquote,.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol,.axAZtM5WKNopJEBNra2i .markdown-body dl,.axAZtM5WKNopJEBNra2i .markdown-body table,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body details{margin-top:0;margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body h1 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor{text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link{visibility:visible}.axAZtM5WKNopJEBNra2i .markdown-body h1 tt,.axAZtM5WKNopJEBNra2i .markdown-body h1 code,.axAZtM5WKNopJEBNra2i .markdown-body h2 tt,.axAZtM5WKNopJEBNra2i .markdown-body h2 code,.axAZtM5WKNopJEBNra2i .markdown-body h3 tt,.axAZtM5WKNopJEBNra2i .markdown-body h3 code,.axAZtM5WKNopJEBNra2i .markdown-body h4 tt,.axAZtM5WKNopJEBNra2i .markdown-body h4 code,.axAZtM5WKNopJEBNra2i .markdown-body h5 tt,.axAZtM5WKNopJEBNra2i .markdown-body h5 code,.axAZtM5WKNopJEBNra2i .markdown-body h6 tt,.axAZtM5WKNopJEBNra2i .markdown-body h6 code{padding:0 .2em;font-size:inherit}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2,.axAZtM5WKNopJEBNra2i .markdown-body summary h3,.axAZtM5WKNopJEBNra2i .markdown-body summary h4,.axAZtM5WKNopJEBNra2i .markdown-body summary h5,.axAZtM5WKNopJEBNra2i .markdown-body summary h6{display:inline-block}.axAZtM5WKNopJEBNra2i .markdown-body summary h1 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h2 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h3 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h4 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h5 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h6 .anchor{margin-left:-40px}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2{padding-bottom:0;border-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body ul.no-list,.axAZtM5WKNopJEBNra2i .markdown-body ol.no-list{padding:0;list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="a s"]{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="A s"]{list-style-type:upper-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="i s"]{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="I s"]{list-style-type:upper-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="1"]{list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body div>ol:not([type]){list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body ul ul,.axAZtM5WKNopJEBNra2i .markdown-body ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul{margin-top:0;margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body li>p{margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body li+li{margin-top:.25em}.axAZtM5WKNopJEBNra2i .markdown-body dl{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body table th,.axAZtM5WKNopJEBNra2i .markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body table td>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table img{background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body img[align=right]{padding-left:20px}.axAZtM5WKNopJEBNra2i .markdown-body img[align=left]{padding-right:20px}.axAZtM5WKNopJEBNra2i .markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame{display:block;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span img{display:block;float:left}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center span img{margin:0 auto;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right span img{margin:0;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left span{margin:13px 0 0}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body code br,.axAZtM5WKNopJEBNra2i .markdown-body tt br{display:none}.axAZtM5WKNopJEBNra2i .markdown-body del code{text-decoration:inherit}.axAZtM5WKNopJEBNra2i .markdown-body samp{font-size:85%}.axAZtM5WKNopJEBNra2i .markdown-body pre code{font-size:100%}.axAZtM5WKNopJEBNra2i .markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .highlight{margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre{margin-bottom:0;word-break:normal}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre,.axAZtM5WKNopJEBNra2i .markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body pre code,.axAZtM5WKNopJEBNra2i .markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data td,.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data tr{border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::before{content:"["}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::after{content:"]"}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol{padding-left:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li{position:relative}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:"";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target{color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.axAZtM5WKNopJEBNra2i .markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-e,.axAZtM5WKNopJEBNra2i .markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-smi,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-s,.axAZtM5WKNopJEBNra2i .markdown-body .pl-pds,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-pse .pl-s1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sre,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-v,.axAZtM5WKNopJEBNra2i .markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh,.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh .pl-en,.axAZtM5WKNopJEBNra2i .markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body button:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body summary:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body [tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body details-dialog:focus:not(:focus-visible){outline:none}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji img{width:1em;height:1em}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item{list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item.enabled label{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item .handle{display:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.axAZtM5WKNopJEBNra2i .markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:hover .task-list-item-convert-container,.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}`,""]);var u="axAZtM5WKNopJEBNra2i";const h=c},482:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".GmPZonLTI3KWU6TQWQSo{display:flex;flex-direction:column;align-items:center;height:100%;overflow:auto}.GmPZonLTI3KWU6TQWQSo canvas{max-width:100%}",""]);var s="GmPZonLTI3KWU6TQWQSo";const l=i},708:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".w5U1Ig2Vx60xYRW90g33{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="w5U1Ig2Vx60xYRW90g33";const l=i},989:(e,t,n)=>{n.d(t,{Ay:()=>c,Kk:()=>l,LV:()=>s,NI:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".s1DE3bXbSR3WMxOHGhL4{width:244px;min-height:89px;background:#fff;box-shadow:0px 12px 30px 0px rgba(32,60,48,.2);border-radius:10px 10px 10px 10px;border:1px solid #d9e0ed;z-index:100;position:fixed;bottom:180px;left:calc(50% - 122px)}.ickkjG9C47RxHTbOAWXw{width:16px;height:16px;z-index:101;display:inline-block;border-radius:50%;position:absolute;top:17px;right:17px;cursor:pointer}.dWjTN1AD2WJesHevGU09{padding:17px 10px}",""]);var s="s1DE3bXbSR3WMxOHGhL4",l="ickkjG9C47RxHTbOAWXw",d="dWjTN1AD2WJesHevGU09";const c=i},280:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,wm:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".wkk6Lnco5rQ5DK_Bojaj{display:flex;justify-content:space-between;align-items:center;padding:0 16px;background-color:#000}.wkk6Lnco5rQ5DK_Bojaj .H3Num6yF3Ox32Pb6Occg{width:200px}",""]);var s="wkk6Lnco5rQ5DK_Bojaj",l="H3Num6yF3Ox32Pb6Occg";const d=i},512:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tiptap pre{margin-top:1.5rem;margin-bottom:1.5rem;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tiptap pre code{background-image:none;padding:0px;font-size:0.875rem;line-height:1.25rem}.tiptap pre .hljs-comment,.tiptap pre .hljs-quote{color:#6a9955}.tiptap pre .hljs-variable,.tiptap pre .hljs-template-variable,.tiptap pre .hljs-attribute,.tiptap pre .hljs-tag,.tiptap pre .hljs-name,.tiptap pre .hljs-regexp,.tiptap pre .hljs-link,.tiptap pre .hljs-selector-id,.tiptap pre .hljs-selector-class{color:#4fc1ff}.tiptap pre .hljs-number,.tiptap pre .hljs-meta,.tiptap pre .hljs-built_in,.tiptap pre .hljs-builtin-name,.tiptap pre .hljs-literal,.tiptap pre .hljs-type,.tiptap pre .hljs-params{color:#dcdcaa}.tiptap pre .hljs-string,.tiptap pre .hljs-symbol,.tiptap pre .hljs-bullet{color:#ce9178}.tiptap pre .hljs-title,.tiptap pre .hljs-section{color:#dcdcaa}.tiptap pre .hljs-keyword,.tiptap pre .hljs-selector-tag{color:#c586c0}.tiptap pre .hljs-emphasis{font-style:italic}.tiptap pre .hljs-strong{font-weight:700}",""]);const s=i},383:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.tiptap-container .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.tiptap-container .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.tiptap-container .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.tiptap-container .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.tiptap-container .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.tiptap-container .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.tiptap-container .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.tiptap-container .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.tiptap-container .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.tiptap-container .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.tiptap-container .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.tiptap-container .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.tiptap-container .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.tiptap-container .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.tiptap-container .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.tiptap-container .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.tiptap-container .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.tiptap-container .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.tiptap-container .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.tiptap-container .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.tiptap-container .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.tiptap-container .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.tiptap-container .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.tiptap-container .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.tiptap-container .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.tiptap-container .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.tiptap-container .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.tiptap-container .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.tiptap-container .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.tiptap-container .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.tiptap-container .absolute{\nposition: absolute;}.tiptap-container .relative{\nposition: relative;}.tiptap-container .sticky{\nposition: sticky;}.tiptap-container .right-0{\nright: 0px;}.tiptap-container .z-10{\nz-index: 10;}.tiptap-container .m-0{\nmargin: 0px;}.tiptap-container .m-1{\nmargin: 0.25rem;}.tiptap-container .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.tiptap-container .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.tiptap-container .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.tiptap-container .mb-0{\nmargin-bottom: 0px;}.tiptap-container .mb-2{\nmargin-bottom: 0.5rem;}.tiptap-container .mb-4{\nmargin-bottom: 1rem;}.tiptap-container .mb-5{\nmargin-bottom: 1.25rem;}.tiptap-container .mr-1{\nmargin-right: 0.25rem;}.tiptap-container .mt-20{\nmargin-top: 5rem;}.tiptap-container .mt-4{\nmargin-top: 1rem;}.tiptap-container .block{\ndisplay: block;}.tiptap-container .\\!inline{\ndisplay: inline !important;}.tiptap-container .inline{\ndisplay: inline;}.tiptap-container .flex{\ndisplay: flex;}.tiptap-container .table{\ndisplay: table;}.tiptap-container .flow-root{\ndisplay: flow-root;}.tiptap-container .hidden{\ndisplay: none;}.tiptap-container .h-4{\nheight: 1rem;}.tiptap-container .h-5{\nheight: 1.25rem;}.tiptap-container .h-6{\nheight: 1.5rem;}.tiptap-container .h-8{\nheight: 2rem;}.tiptap-container .h-auto{\nheight: auto;}.tiptap-container .max-h-72{\nmax-height: 18rem;}.tiptap-container .min-h-\\[20rem\\]{\nmin-height: 20rem;}.tiptap-container .w-4{\nwidth: 1rem;}.tiptap-container .w-40{\nwidth: 10rem;}.tiptap-container .w-5{\nwidth: 1.25rem;}.tiptap-container .w-6{\nwidth: 1.5rem;}.tiptap-container .max-w-96{\nmax-width: 24rem;}.tiptap-container .max-w-none{\nmax-width: none;}.tiptap-container .flex-shrink-0{\nflex-shrink: 0;}.tiptap-container .cursor-pointer{\ncursor: pointer;}.tiptap-container .items-center{\nalign-items: center;}.tiptap-container .justify-center{\njustify-content: center;}.tiptap-container .justify-between{\njustify-content: space-between;}.tiptap-container .gap-1{\ngap: 0.25rem;}.tiptap-container .gap-4{\ngap: 1rem;}.tiptap-container .overflow-y-auto{\noverflow-y: auto;}.tiptap-container .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.tiptap-container .rounded{\nborder-radius: 0.25rem;}.tiptap-container .rounded-md{\nborder-radius: 0.375rem;}.tiptap-container .border{\nborder-width: 1px;}.tiptap-container .border-solid{\nborder-style: solid;}.tiptap-container .border-dashed{\nborder-style: dashed;}.tiptap-container .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.tiptap-container .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.tiptap-container .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.tiptap-container .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.tiptap-container .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.tiptap-container .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.tiptap-container .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.tiptap-container .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.tiptap-container .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.tiptap-container .p-1{\npadding: 0.25rem;}.tiptap-container .p-2{\npadding: 0.5rem;}.tiptap-container .p-4{\npadding: 1rem;}.tiptap-container .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.tiptap-container .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.tiptap-container .pr-2{\npadding-right: 0.5rem;}.tiptap-container .text-center{\ntext-align: center;}.tiptap-container .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.tiptap-container .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.tiptap-container .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.tiptap-container .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.tiptap-container .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.tiptap-container .italic{\nfont-style: italic;}.tiptap-container .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.tiptap-container .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.tiptap-container .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.tiptap-container .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.tiptap-container .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.tiptap-container .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.tiptap-container .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.tiptap-container .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.tiptap-container .underline{\ntext-decoration-line: underline;}.tiptap-container .opacity-0{\nopacity: 0;}.tiptap-container .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.tiptap-container .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.tiptap-container .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.tiptap-container .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.tiptap-container *, .tiptap-container ::before, .tiptap-container ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.tiptap-container ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.tiptap-container *,\n.tiptap-container ::before,\n.tiptap-container ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.tiptap-container ::before,\n.tiptap-container ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.tiptap-container html,\n.tiptap-container :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.tiptap-container body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.tiptap-container hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.tiptap-container abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.tiptap-container a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.tiptap-container b,\n.tiptap-container strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.tiptap-container code,\n.tiptap-container kbd,\n.tiptap-container samp,\n.tiptap-container pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.tiptap-container small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.tiptap-container sub,\n.tiptap-container sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.tiptap-container sub {\n bottom: -0.25em;\n}\n\n.tiptap-container sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.tiptap-container table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.tiptap-container button,\n.tiptap-container input,\n.tiptap-container optgroup,\n.tiptap-container select,\n.tiptap-container textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.tiptap-container button,\n.tiptap-container select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.tiptap-container button,\n.tiptap-container input:where([type=\'button\']),\n.tiptap-container input:where([type=\'reset\']),\n.tiptap-container input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.tiptap-container :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.tiptap-container :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.tiptap-container progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.tiptap-container ::-webkit-inner-spin-button,\n.tiptap-container ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.tiptap-container [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.tiptap-container ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.tiptap-container ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.tiptap-container summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.tiptap-container blockquote,\n.tiptap-container dl,\n.tiptap-container dd,\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6,\n.tiptap-container hr,\n.tiptap-container figure,\n.tiptap-container p,\n.tiptap-container pre {\n margin: 0;\n}\n\n.tiptap-container fieldset {\n margin: 0;\n padding: 0;\n}\n\n.tiptap-container legend {\n padding: 0;\n}\n\n.tiptap-container ol,\n.tiptap-container ul,\n.tiptap-container menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.tiptap-container dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.tiptap-container textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.tiptap-container input::-moz-placeholder, .tiptap-container textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.tiptap-container input::placeholder,\n.tiptap-container textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.tiptap-container button,\n.tiptap-container [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.tiptap-container :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.tiptap-container img,\n.tiptap-container svg,\n.tiptap-container video,\n.tiptap-container canvas,\n.tiptap-container audio,\n.tiptap-container iframe,\n.tiptap-container embed,\n.tiptap-container object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.tiptap-container img,\n.tiptap-container video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.tiptap-container [hidden] {\n display: none;\n}}.tiptap>*:first-child{\nmargin-top: 0px;}.tiptap[contenteditable=true]{\noutline-width: 0px;}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},444:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tippy-box{max-width:100% !important}",""]);const s=i},311:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.tiptap table{margin:0px;width:100%;table-layout:fixed;border-collapse:collapse;overflow:hidden}.tiptap table td,.tiptap table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding:0.5rem;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-block:0px}.tiptap table th{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));text-align:left;font-weight:700}.tiptap table .selectedCell:after{pointer-events:none;position:absolute;inset:0px;z-index:10;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity:0.25;--tw-content:"";content:var(--tw-content)}.tiptap table .column-resize-handle{pointer-events:none;position:absolute;bottom:-0.25rem;top:0px;right:0px;width:0.25rem;--tw-bg-opacity:1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.tiptap .tableWrapper{margin-top:1.5rem;margin-bottom:1.5rem;overflow-x:auto}.tiptap.resize-cursor{cursor:col-resize}.tiptap code{margin:0.25rem}',""]);const s=i},588:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.mylib-upload-drawer *, .mylib-upload-drawer ::before, .mylib-upload-drawer ::after{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}.mylib-upload-drawer ::backdrop{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/.mylib-upload-drawer *,\n.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n --tw-content: \'\';\n}/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/.mylib-upload-drawer html,\n.mylib-upload-drawer :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/.mylib-upload-drawer body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/.mylib-upload-drawer hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/.mylib-upload-drawer abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}/*\nRemove the default font size and weight for headings.\n*/.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6 {\n font-size: inherit;\n font-weight: inherit;\n}/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/.mylib-upload-drawer a {\n color: inherit;\n text-decoration: inherit;\n}/*\nAdd the correct font weight in Edge and Safari.\n*/.mylib-upload-drawer b,\n.mylib-upload-drawer strong {\n font-weight: bolder;\n}/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/.mylib-upload-drawer code,\n.mylib-upload-drawer kbd,\n.mylib-upload-drawer samp,\n.mylib-upload-drawer pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}/*\nAdd the correct font size in all browsers.\n*/.mylib-upload-drawer small {\n font-size: 80%;\n}/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/.mylib-upload-drawer sub,\n.mylib-upload-drawer sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}.mylib-upload-drawer sub {\n bottom: -0.25em;\n}.mylib-upload-drawer sup {\n top: -0.5em;\n}/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/.mylib-upload-drawer table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input,\n.mylib-upload-drawer optgroup,\n.mylib-upload-drawer select,\n.mylib-upload-drawer textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer select {\n text-transform: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input:where([type=\'button\']),\n.mylib-upload-drawer input:where([type=\'reset\']),\n.mylib-upload-drawer input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}/*\nUse the modern Firefox focus style for all focusable elements.\n*/.mylib-upload-drawer :-moz-focusring {\n outline: auto;\n}/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/.mylib-upload-drawer :-moz-ui-invalid {\n box-shadow: none;\n}/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/.mylib-upload-drawer progress {\n vertical-align: baseline;\n}/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/.mylib-upload-drawer ::-webkit-inner-spin-button,\n.mylib-upload-drawer ::-webkit-outer-spin-button {\n height: auto;\n}/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/.mylib-upload-drawer [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/.mylib-upload-drawer ::-webkit-search-decoration {\n -webkit-appearance: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/.mylib-upload-drawer ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}/*\nAdd the correct display in Chrome and Safari.\n*/.mylib-upload-drawer summary {\n display: list-item;\n}/*\nRemoves the default spacing and border for appropriate elements.\n*/.mylib-upload-drawer blockquote,\n.mylib-upload-drawer dl,\n.mylib-upload-drawer dd,\n.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6,\n.mylib-upload-drawer hr,\n.mylib-upload-drawer figure,\n.mylib-upload-drawer p,\n.mylib-upload-drawer pre {\n margin: 0;\n}.mylib-upload-drawer fieldset {\n margin: 0;\n padding: 0;\n}.mylib-upload-drawer legend {\n padding: 0;\n}.mylib-upload-drawer ol,\n.mylib-upload-drawer ul,\n.mylib-upload-drawer menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}/*\nReset default styling for dialogs.\n*/.mylib-upload-drawer dialog {\n padding: 0;\n}/*\nPrevent resizing textareas horizontally by default.\n*/.mylib-upload-drawer textarea {\n resize: vertical;\n}/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/.mylib-upload-drawer input::-moz-placeholder, .mylib-upload-drawer textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}.mylib-upload-drawer input::placeholder,\n.mylib-upload-drawer textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}/*\nSet the default cursor for buttons.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer [role="button"] {\n cursor: pointer;\n}/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/.mylib-upload-drawer :disabled {\n cursor: default;\n}/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer svg,\n.mylib-upload-drawer video,\n.mylib-upload-drawer canvas,\n.mylib-upload-drawer audio,\n.mylib-upload-drawer iframe,\n.mylib-upload-drawer embed,\n.mylib-upload-drawer object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer video {\n max-width: 100%;\n height: auto;\n}/* Make elements with the HTML hidden attribute stay hidden by default */.mylib-upload-drawer [hidden] {\n display: none;\n}.mylib-upload-drawer .prose{\n color: var(--tw-prose-body);\n max-width: 65ch;\n}.mylib-upload-drawer .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}.mylib-upload-drawer .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}.mylib-upload-drawer .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-bold);\n font-weight: 600;\n}.mylib-upload-drawer .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n}.mylib-upload-drawer .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n font-weight: 400;\n color: var(--tw-prose-counters);\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n color: var(--tw-prose-bullets);\n}.mylib-upload-drawer .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}.mylib-upload-drawer .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}.mylib-upload-drawer .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: open-quote;\n}.mylib-upload-drawer .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: close-quote;\n}.mylib-upload-drawer .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}.mylib-upload-drawer .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 900;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}.mylib-upload-drawer .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 800;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}.mylib-upload-drawer .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}.mylib-upload-drawer .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: "`";\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: "`";\n}.mylib-upload-drawer .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.9em;\n}.mylib-upload-drawer .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: none;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: none;\n}.mylib-upload-drawer .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}.mylib-upload-drawer .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}.mylib-upload-drawer .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 0;\n}.mylib-upload-drawer .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: baseline;\n}.mylib-upload-drawer .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: top;\n}.mylib-upload-drawer .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n text-align: start;\n}.mylib-upload-drawer .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}.mylib-upload-drawer .prose{\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}.mylib-upload-drawer .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 0;\n}.mylib-upload-drawer .absolute{\n position: absolute;\n}.mylib-upload-drawer .relative{\n position: relative;\n}.mylib-upload-drawer .sticky{\n position: sticky;\n}.mylib-upload-drawer .right-0{\n right: 0px;\n}.mylib-upload-drawer .z-10{\n z-index: 10;\n}.mylib-upload-drawer .m-0{\n margin: 0px;\n}.mylib-upload-drawer .m-1{\n margin: 0.25rem;\n}.mylib-upload-drawer .my-2{\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .my-2\\.5{\n margin-top: 0.625rem;\n margin-bottom: 0.625rem;\n}.mylib-upload-drawer .my-4{\n margin-top: 1rem;\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-0{\n margin-bottom: 0px;\n}.mylib-upload-drawer .mb-2{\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .mb-4{\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-5{\n margin-bottom: 1.25rem;\n}.mylib-upload-drawer .mr-1{\n margin-right: 0.25rem;\n}.mylib-upload-drawer .mt-20{\n margin-top: 5rem;\n}.mylib-upload-drawer .mt-4{\n margin-top: 1rem;\n}.mylib-upload-drawer .block{\n display: block;\n}.mylib-upload-drawer .\\!inline{\n display: inline !important;\n}.mylib-upload-drawer .inline{\n display: inline;\n}.mylib-upload-drawer .flex{\n display: flex;\n}.mylib-upload-drawer .table{\n display: table;\n}.mylib-upload-drawer .flow-root{\n display: flow-root;\n}.mylib-upload-drawer .hidden{\n display: none;\n}.mylib-upload-drawer .h-4{\n height: 1rem;\n}.mylib-upload-drawer .h-5{\n height: 1.25rem;\n}.mylib-upload-drawer .h-6{\n height: 1.5rem;\n}.mylib-upload-drawer .h-8{\n height: 2rem;\n}.mylib-upload-drawer .h-auto{\n height: auto;\n}.mylib-upload-drawer .max-h-72{\n max-height: 18rem;\n}.mylib-upload-drawer .min-h-\\[20rem\\]{\n min-height: 20rem;\n}.mylib-upload-drawer .w-4{\n width: 1rem;\n}.mylib-upload-drawer .w-40{\n width: 10rem;\n}.mylib-upload-drawer .w-5{\n width: 1.25rem;\n}.mylib-upload-drawer .w-6{\n width: 1.5rem;\n}.mylib-upload-drawer .max-w-96{\n max-width: 24rem;\n}.mylib-upload-drawer .max-w-none{\n max-width: none;\n}.mylib-upload-drawer .flex-shrink-0{\n flex-shrink: 0;\n}.mylib-upload-drawer .cursor-pointer{\n cursor: pointer;\n}.mylib-upload-drawer .items-center{\n align-items: center;\n}.mylib-upload-drawer .justify-center{\n justify-content: center;\n}.mylib-upload-drawer .justify-between{\n justify-content: space-between;\n}.mylib-upload-drawer .gap-1{\n gap: 0.25rem;\n}.mylib-upload-drawer .gap-4{\n gap: 1rem;\n}.mylib-upload-drawer .overflow-y-auto{\n overflow-y: auto;\n}.mylib-upload-drawer .truncate{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}.mylib-upload-drawer .rounded{\n border-radius: 0.25rem;\n}.mylib-upload-drawer .rounded-md{\n border-radius: 0.375rem;\n}.mylib-upload-drawer .border{\n border-width: 1px;\n}.mylib-upload-drawer .border-solid{\n border-style: solid;\n}.mylib-upload-drawer .border-dashed{\n border-style: dashed;\n}.mylib-upload-drawer .border-\\[\\#1775FE\\]{\n --tw-border-opacity: 1;\n border-color: rgb(23 117 254 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-200{\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-3{\n --tw-border-opacity: 1;\n border-color: rgb(217 224 237 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-300{\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-green-600{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.mylib-upload-drawer .bg-\\[\\#F5F7FA\\]{\n --tw-bg-opacity: 1;\n background-color: rgb(245 247 250 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-blue-5{\n --tw-bg-opacity: 1;\n background-color: rgb(23 117 254 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-gray-50{\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-white{\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .p-1{\n padding: 0.25rem;\n}.mylib-upload-drawer .p-2{\n padding: 0.5rem;\n}.mylib-upload-drawer .p-4{\n padding: 1rem;\n}.mylib-upload-drawer .px-3{\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}.mylib-upload-drawer .px-4{\n padding-left: 1rem;\n padding-right: 1rem;\n}.mylib-upload-drawer .pr-2{\n padding-right: 0.5rem;\n}.mylib-upload-drawer .text-center{\n text-align: center;\n}.mylib-upload-drawer .text-2xl{\n font-size: 1.5rem;\n line-height: 2rem;\n}.mylib-upload-drawer .text-5xl{\n font-size: 3rem;\n line-height: 1;\n}.mylib-upload-drawer .text-base{\n font-size: 1rem;\n line-height: 1.5rem;\n}.mylib-upload-drawer .text-sm{\n font-size: 0.875rem;\n line-height: 1.25rem;\n}.mylib-upload-drawer .text-xl{\n font-size: 1.25rem;\n line-height: 1.75rem;\n}.mylib-upload-drawer .italic{\n font-style: italic;\n}.mylib-upload-drawer .text-gray-5{\n --tw-text-opacity: 1;\n color: rgb(135 144 158 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-gray-7{\n --tw-text-opacity: 1;\n color: rgb(84 91 100 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-600{\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-green{\n --tw-text-opacity: 1;\n color: rgb(83 195 27 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-600{\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-red{\n --tw-text-opacity: 1;\n color: rgb(254 77 79 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-white{\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-yellow-500{\n --tw-text-opacity: 1;\n color: rgb(234 179 8 / var(--tw-text-opacity));\n}.mylib-upload-drawer .underline{\n text-decoration-line: underline;\n}.mylib-upload-drawer .opacity-0{\n opacity: 0;\n}.mylib-upload-drawer .shadow-sm{\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}.mylib-upload-drawer .filter{\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}.mylib-upload-drawer .transition-opacity{\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.mylib-upload-drawer .transition-transform{\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.last\\:mb-0:last-child{\n margin-bottom: 0px;\n}.hover\\:border-green-600:hover{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.hover\\:bg-assist-bg-blue:hover{\n --tw-bg-opacity: 1;\n background-color: rgb(244 246 250 / var(--tw-bg-opacity));\n}.group:hover .group-hover\\:-translate-x-10{\n --tw-translate-x: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:-translate-x-6{\n --tw-translate-x: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:opacity-100{\n opacity: 1;\n}',""]);const s=i},526:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);o&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},405:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},245:e=>{e.exports=function(e){return e[1]}},438:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],d=o.base?l[0]+o.base:l[0],c=a[d]||0,p="".concat(d," ").concat(c);a[d]=c+1;var u=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var m=r(h,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var a=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=o(e,r),d=0;d<a.length;d++){var c=n(a[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},413:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},50:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},598:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},119:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},615:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},840:e=>{e.exports="data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 version=%271.1%27 aria-hidden=%27true%27><path fill-rule=%27evenodd%27 d=%27M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z%27></path></svg>"}},T={};function I(e){var t=T[e];if(void 0!==t)return t.exports;var n=T[e]={id:e,exports:{}};return L[e](n,n.exports,I),n.exports}I.m=L,I.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return I.d(t,{a:t}),t},I.d=(e,t)=>{for(var n in t)I.o(t,n)&&!I.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},I.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),I.b=document.baseURI||self.location.href,I.nc=void 0;var D={};I.d(D,{vh:()=>jr,NF:()=>vr,LZ:()=>ur,QR:()=>lr,dA:()=>nr,Lq:()=>wt,Bx:()=>ao,l0:()=>io,Ow:()=>br,Y9:()=>se,ly:()=>de,hC:()=>Ar,Wg:()=>Qa,LM:()=>Xa,_2:()=>Je,WI:()=>Xt,C:()=>dr});const U=(q={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},H={},I.d(H,q),H);var q,H;const R=(e=>{var t={};return I.d(t,e),t})({Alert:()=>t.Alert,App:()=>t.App,Button:()=>t.Button,ColorPicker:()=>t.ColorPicker,Divider:()=>t.Divider,Drawer:()=>t.Drawer,Empty:()=>t.Empty,Flex:()=>t.Flex,Input:()=>t.Input,InputNumber:()=>t.InputNumber,Modal:()=>t.Modal,Popover:()=>t.Popover,Progress:()=>t.Progress,Select:()=>t.Select,Space:()=>t.Space,Spin:()=>t.Spin,Table:()=>t.Table,Tag:()=>t.Tag,Upload:()=>t.Upload,message:()=>t.message});var _=I(438),V=I.n(_),$=I(119),G=I.n($),X=I(413),Q=I.n(X),Y=I(598),ee=I.n(Y),te=I(50),ne=I.n(te),oe=I(615),re=I.n(oe),ae=I(280),ie={};function se(e){const{showLogin:t}=e;return(0,U.jsxs)("div",{className:ae.LV,children:[(0,U.jsx)("img",{src:"https://www.unpkg.com/@zjlab-fe/fe-assets/logo-white.png",className:ae.wm}),t&&(0,U.jsx)(R.Button,{ghost:!0,children:"登录"})]})}ie.styleTagTransform=re(),ie.setAttributes=ee(),ie.insert=Q().bind(null,"head"),ie.domAPI=G(),ie.insertStyleElement=ne(),V()(ae.Ay,ie),ae.Ay&&ae.Ay.locals&&ae.Ay.locals;const le=(e=>{var t={};return I.d(t,e),t})({createContext:()=>n.createContext,forwardRef:()=>n.forwardRef,memo:()=>n.memo,useCallback:()=>n.useCallback,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useImperativeHandle:()=>n.useImperativeHandle,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState});function de(e){const{value:t,onChange:n,placeholder:o="请输入关键字",valueType:r,deduplicated:a=!0,size:i,maxLength:s,disabled:l}=e,[d,c]=(0,le.useState)([]),[p,u]=(0,le.useState)(1),h=(0,le.useRef)(null);(0,le.useEffect)((()=>{if(Array.isArray(t))c(t);else if("string"==typeof t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e));c(e)}}),[t]),(0,le.useEffect)((()=>{1!==p&&(null==h?void 0:h.current)&&h.current.focus()}),[p]);const m=e=>{if(a&&(e=Array.from(new Set(e))),c(e),"array"===r)null==n||n(e.length>0?e:void 0);else{const t=e.join(";");null==n||n(t||void 0)}};let f;return(null==d?void 0:d.length)>0&&(f=d.map(((e,t)=>(0,U.jsx)(R.Tag,{closeIcon:!l,onClose:()=>(e=>{const t=d.filter(((t,n)=>n!==e));m(t),u(p+1)})(t),children:e},t)))),(0,U.jsx)(R.Input,{disabled:l,size:i,ref:h,placeholder:o,prefix:f,onPressEnter:e=>{const t=e.target.value.trim();if(""!==t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e)),n=[...d,...e];m(n),u(p+1)}},maxLength:s},p)}const ce=1024,pe=1048576,ue=1073741824;var he,me;(me=he||(he={}))[me.INIT=1]="INIT",me[me.UPLOADING=2]="UPLOADING",me[me.FINISHED=3]="FINISHED",me[me.FAILED=4]="FAILED",me[me.PAUSED=5]="PAUSED",me[me.CANCELED=6]="CANCELED";const fe=1,be=2;var we=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ge(e,t,n){return we(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=Object.assign(Object.assign({},{fileStatus:he.INIT,percentage:0,uploadId:"",expiryTime:"",uploadUrls:[],completeSeq:[],failSeq:[],cancelControllers:{},uploadStatus:[],chunkSize:0,displaySize:"",fileName:"",partCount:0,raw:void 0}),{fileName:a,raw:new File([e],a,{type:e.type}),partCount:xe(r),chunkSize:ye(r),displaySize:Ce(r)}),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:he.FAILED})}))}function ye(e){return e<10*pe?10*pe:Math.ceil(e/10)}function xe(e){const t=ye(e);return Math.floor(e/t)+1}function ve(e,t,n,o){Ee(e);try{e.createObjectStore(t,{}),e.onversionchange=t=>{null===t.newVersion&&e.close()},n([])}catch(e){o(Error(`升级数据库异常: ${e.message}`))}}function ke(e,t,n){const o=ze.version+1;ze.close();const r=window.indexedDB.open(Ae,o);r.onupgradeneeded=()=>ve(r.result,e,t,n)}function je(e,t,n){(function(e){return new Promise((function(t,n){let o;try{o=ze.transaction(e,"readonly");try{const n=o.objectStore(e),r=[],a=n.openCursor();a.onsuccess=()=>{const e=a.result;e?(r.push(e.value),e.continue()):t(r)},a.onerror=()=>{console.warn(`在handleFileRetrieve()中游标操作失败 - 错误代码: ${a.error}`,a.error)}}catch(e){n(Error(`在handleFileRetrieve()中执行事务或打开游标时发生异常 - ${e.message}`))}}catch(e){n(Error(`在handleFileRetrieve()中创建数据库事务时发生异常 - ${e.message}`))}}))})(e).then(t).catch(n)}var Ne=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Ae="uploadStore";let ze;function Ee(e){ze=e}function Ce(e){const t=[{value:ue,label:"GB"},{value:pe,label:"MB"},{value:ce,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}var Se=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Me(e,t,n){return Se(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Se(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Me(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Se(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[Be(o,n)]:[]}))}(e,n,o):[]}))}function Be(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}function We(e){return e.map((({completeSeq:e,uploadId:t,uploadStatus:n,uploadUrls:o,percentage:r,fileName:a,failSeq:i})=>({fileName:a,uploadId:t,completeSeq:e,uploadStatus:n,percentage:r,uploadUrls:[...o,...i]})))}const Ke={},Oe=(0,le.createContext)(Ke),Ze=(0,le.createContext)((()=>null));function Je({children:e}){const[t,n]=(0,le.useReducer)(Pe,{});return function(e){(0,le.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){const t=[];for(const[n,o]of Object.entries(e)){const e=o.filter((e=>e.fileStatus!==he.FINISHED));e.length?localStorage.setItem(n,JSON.stringify(We(e))):t.push(n)}t.length&&function(e){Ne(this,void 0,void 0,(function*(){const t=ze.version+1;return ze.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(Ae,t);r.onupgradeneeded=()=>{const t=r.result;e.forEach((e=>{t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)}))},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(t)}}),[e])}(t),(0,U.jsx)(Oe.Provider,{value:t,children:(0,U.jsx)(Ze.Provider,{value:n,children:e})})}function Pe(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==he.FINISHED))})}default:throw Error("Unknown action")}}const Fe=(e=>{var t={};return I.d(t,e),t})({CheckOutlined:()=>o.CheckOutlined,CloseOutlined:()=>o.CloseOutlined,DeleteOutlined:()=>o.DeleteOutlined,FileTextOutlined:()=>o.FileTextOutlined,InboxOutlined:()=>o.InboxOutlined,InfoCircleOutlined:()=>o.InfoCircleOutlined,LoadingOutlined:()=>o.LoadingOutlined,PauseOutlined:()=>o.PauseOutlined,PlayCircleFilled:()=>o.PlayCircleFilled});var Le=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Te="border-dashed rounded border bg-gray-50 p-4 hover:border-green-600 border-gray-300";function Ie({accept:e="",directory:t=!0,dragAreaDescription:n,onFileReceived:o}){const r=(0,le.useMemo)((()=>new Set(e?e.split(","):[])),[e]),a=(0,le.useRef)(null),[i,s]=(0,le.useState)(!1),l={onDragLeave:()=>s(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),s(!0)},onDrop:function(e){return Le(this,void 0,void 0,(function*(){e.preventDefault(),s(!1);const n=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Me(e,t,r))),a=(yield Promise.allSettled(n)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value));a.length&&o(a)}))}};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(R.Flex,Object.assign({vertical:!0,gap:"1rem",align:"center",className:`${i?"border-green-600":""} ${Te}`},l,{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.click()},children:[(0,U.jsx)("p",{className:"text-5xl text-green-600 m-0",children:(0,U.jsx)(Fe.InboxOutlined,{})}),(0,U.jsx)("div",{className:"text-base text-center",children:n?Array.isArray(n)?n.map(((e,t)=>(0,U.jsx)("p",{className:"text-base m-0",children:e},t))):(0,U.jsx)("p",{className:"text-base m-0",children:n}):(0,U.jsx)("p",{className:"text-base m-0",children:"点击或拖拽上传文件"})})]})),(0,U.jsx)("input",{ref:a,type:"file",accept:e,hidden:!0,multiple:!0,onChange:function(){var e;const t=null===(e=a.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&o(Array.from(t))},onClick:()=>{a.current&&(a.current.value="")}})]})}const De={size:32,strokeWidth:12,type:"circle",strokeLinecap:"butt"};function Ue({percent:e,status:t,onClick:n}){const{progressButtonRef:o,buttonInHover:r}=function(){const e=(0,le.useRef)(null),[t,n]=(0,le.useState)(!1);return(0,le.useEffect)((()=>{const t=e.current;if(!t)return;const o=()=>n(!0),r=()=>n(!1);return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",r),()=>{t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",r)}}),[]),{progressButtonRef:e,buttonInHover:t}}(),[a,i]=(0,le.useState)(!1);return t===he.FINISHED?(0,U.jsx)(Fe.CheckOutlined,{className:"text-green-600 text-2xl h-8"}):t===he.FAILED?(0,U.jsx)(U.Fragment,{children:a?(0,U.jsx)(Fe.LoadingOutlined,{className:"text-red-600 text-2xl h-8"}):(0,U.jsx)(Fe.CloseOutlined,{className:"text-red-600 text-2xl h-8",onClick:()=>{n(),i(!0)}})}):(0,U.jsx)(R.Button,{type:"text",shape:"circle",disabled:a,ref:o,title:t===he.PAUSED?"继续下载":"取消下载",onClick:()=>{n(),t===he.UPLOADING&&i(!0)},children:(0,U.jsx)(R.Progress,Object.assign({percent:e},De,{strokeColor:a?"#f0a020":"#19a1fe",format:function(){return t===he.PAUSED?(0,U.jsx)(Fe.PauseOutlined,{}):a?(0,U.jsx)(Fe.LoadingOutlined,{className:"text-yellow-500"}):r?(0,U.jsx)(Fe.CloseOutlined,{}):void 0}}))})}var qe=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function He(){const{identifier:e,root:t,getUploadUrls:n}=(0,le.useContext)(bt),o=(0,le.useContext)(Ze);return(0,le.useCallback)((r=>qe(this,void 0,void 0,(function*(){const a=function(e){if(!e.expiryTime)return fe;const t=new Date;return new Date(e.expiryTime)<t?fe:be}(r)===fe;if(a){const a=yield ge(r.raw,t,n);o({type:"edit_file",identifier:e,file:a})}else{const t=Object.assign(Object.assign({},r),{fileStatus:he.INIT,uploadUrls:[...r.failSeq,...r.uploadUrls],failSeq:[],cancelControllers:{}});o({type:"edit_file",identifier:e,file:t})}}))),[e,t,n,o])}var Re=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function _e(){const{message:e}=R.App.useApp(),{identifier:t,onCancelUpload:n}=(0,le.useContext)(bt),o=(0,le.useContext)(Ze);return function(t){return Re(this,void 0,void 0,(function*(){const{fileName:o,uploadId:a}=t;if(!a)return void r(t);const i=yield n(o,a);i.status?r(t):e.error(i.reason||"取消失败")}))};function r(e){e.fileStatus=he.CANCELED,function(e,t){let n;try{n=ze.transaction(e,"readwrite")}catch(e){return void console.warn("db.transaction() exception in deleteFileInStore() - "+e.message)}try{const o=n.objectStore(e).delete(t);o.onsuccess=()=>!0,o.onerror=e=>{console.warn("deleteReq.onerror fired in deleteFileInStore() - error code: "+o.error)}}catch(e){return void console.warn("Transaction and/or put() exception in deleteFileInStore() - "+e.message)}}(String(t),e.fileName),Object.values(e.cancelControllers).forEach((e=>e.abort())),o({type:"remove_file",identifier:t,file:e})}}var Ve=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function $e({identifier:e,showFinished:t}){const n=(0,le.useContext)(Oe),o=_e(),r=He(),[a,i]=(0,le.useState)([]);return(0,le.useEffect)((()=>{const o=n[e].filter((e=>e.fileStatus!==he.CANCELED&&(!1!==t||e.fileStatus!==he.FINISHED)));i(o)}),[e,t,n]),(0,U.jsx)("div",{className:"my-4",children:a.map((n=>(0,U.jsx)(Ge,{identifier:e,file:n,showFinished:t,onButtonClick:s},n.fileName)))});function s(e){e.fileStatus===he.PAUSED?r(e):o(e)}}function Ge({identifier:e,file:t,showFinished:n,onButtonClick:o}){const r=(0,le.useContext)(Ze),a="object"==typeof n&&n.withDelete;return(0,U.jsx)("div",{className:"mb-2 last:mb-0",children:(0,U.jsxs)("div",{className:"px-4 my-2 relative flex justify-between items-center",children:[(0,U.jsxs)(R.Flex,{align:"center",gap:".5rem",title:t.fileName,children:[(0,U.jsx)(Fe.FileTextOutlined,{}),(0,U.jsx)("span",{className:"truncate w-40",children:t.fileName})]}),(0,U.jsxs)(R.Flex,{align:"center",gap:".5rem",children:[(0,U.jsx)(Ue,{status:t.fileStatus,percent:Number(t.percentage.toFixed(0)),onClick:()=>o(t)}),t.fileStatus===he.FINISHED&&a&&(0,U.jsx)(R.Button,{type:"text",size:"large",className:"px-3",disabled:a.disabled,title:a.disabled?"删除-已禁用":"删除",onClick:()=>function(t,n){return Ve(this,void 0,void 0,(function*(){(yield n(t.fileName))&&r({type:"remove_file",identifier:e,file:t})}))}(t,a.onDelete),children:(0,U.jsx)(Fe.DeleteOutlined,{})})]})]})})}var Xe=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Qe(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function Ye(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var et=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function tt(){const{message:e}=R.App.useApp(),{identifier:t,root:n,getUploadUrls:o}=(0,le.useContext)(bt),r=(0,le.useContext)(Ze),a=function(){const{message:e,modal:t}=R.App.useApp(),n=(0,le.useContext)(Oe),{identifier:o,maxSizePerFile:r=10*ue,uploadHistory:a=[],root:i}=(0,le.useContext)(bt);return function(s){return Xe(this,void 0,void 0,(function*(){const l=function(t){const n=t.filter((e=>e.size>r)).map((e=>e.name));if(n.length){const t=Ce(r);e.warning(`以下文件大小超过${t}:${n.join(", ")}`)}return n}(s),[d,c]=yield function(e){return Xe(this,void 0,void 0,(function*(){const r=[...Qe(e,n[o],i),...Ye(e,a)];return r.length?[yield t.confirm({title:"发现同名文件,是否覆盖?",okText:"覆盖",cancelText:"取消"}),r]:[!0,[]]}))}(s);return d?[new Set(l),new Set(c)]:[new Set([...l,...c]),new Set]}))}}(),i=function(){const e=(0,le.useContext)(Oe),{identifier:t}=(0,le.useContext)(bt),n=_e();return function(o){const r=e[t];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return function(s){return et(this,void 0,void 0,(function*(){const l=yield function(e){return et(this,void 0,void 0,(function*(){const t=new Map(e.map((e=>[e.name,e]))),[n,o]=yield a(e);return n.forEach((e=>t.delete(e))),i(o),Array.from(t.values())}))}(s),d=yield function(e){return et(this,void 0,void 0,(function*(){const t=e.map((e=>ge(e,n,o)));return(yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}))}(l);d.forEach((e=>{r({type:"add_file",identifier:t,file:e})})),function(e,t){try{const n=function(e){const t=ze.transaction(e,"readwrite");return t.onerror=()=>console.warn(`添加文件事务错误: ${t.error}`),t.onabort=()=>console.warn("添加文件事务已中止"),t.oncomplete=()=>console.warn("添加文件事务已完成"),t}(e);!function(e,t){t.map((t=>function(e,t){try{e.put(t,t.fileName),console.warn(`文件 "${t.fileName}" 添加成功`)}catch(e){console.warn(`添加文件 "${t.fileName}" 时出错: ${e.message}`)}}(e,t)))}(n.objectStore(e),t)}catch(e){console.warn(`批量添加文件时出错: ${e.message}`)}}(t,d),d.length<l.length&&e.info("部分文件获取上传地址失败")}))}}const nt=(e=>{var t={};return I.d(t,e),t})({default:()=>r.default});var ot=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function rt(e,t=1e3){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}function at(e,t,n){const o=e.uploadUrls.findIndex((e=>e===t));e.uploadUrls.splice(o,1),e["complete"===n?"completeSeq":"failSeq"].push(t)}var it=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},st=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function lt(){const e=function(){const{identifier:e,onOnePartDone:t}=(0,le.useContext)(bt),n=(0,le.useContext)(Ze),o=(0,le.useCallback)(((t,o,r)=>{o.fileStatus===he.UPLOADING&&(o.uploadStatus[r]=Number(t.progress),o.percentage=o.uploadStatus.reduce(((e,t)=>e+t))*(100/o.partCount),n({type:"edit_file",identifier:e,file:o}))}),[e,n]),r=(0,le.useCallback)(((e,t,n)=>ot(this,void 0,void 0,(function*(){const r=nt.default.create({});yield r.put(e.uploadUrl,t,{signal:n.cancelControllers[e.partNum].signal,withCredentials:!1,timeout:18e5,headers:{"Content-Type":"application/octet-stream"},onUploadProgress:rt((t=>o(t,n,e.partNum)))})}))),[o]),a=(0,le.useCallback)(((e,n)=>ot(this,void 0,void 0,(function*(){const{fileName:o,uploadId:r}=e,a=yield t(o,r,n.partNum);if(!a.status)throw new Error(a.reason);at(e,n,"complete")}))),[t]),i=(0,le.useCallback)(((e,t,n)=>ot(this,void 0,void 0,(function*(){try{return yield r(e,t,n),yield a(n,e),n.fileStatus}catch(t){return at(n,e,"fail"),n.fileStatus}}))),[r,a]);return(0,le.useCallback)((t=>ot(this,void 0,void 0,(function*(){t.fileStatus=he.UPLOADING,n({type:"edit_file",identifier:e,file:t});const o=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(t);for(const{url:r,chunk:a}of o){if(t.cancelControllers[r.partNum]=new AbortController,(yield i(r,a,t))===he.CANCELED)return!1;n({type:"edit_file",identifier:e,file:t})}}))),[e,n,i])}(),t=function(){const{identifier:e,onAllPartDone:t}=(0,le.useContext)(bt),n=(0,le.useContext)(Ze);return(0,le.useCallback)((o=>it(this,void 0,void 0,(function*(){try{const{fileName:e,uploadId:n}=o;if(0!==o.failSeq.length)throw new Error("partial failed");{const r=yield t(e,n);if(!r.status)throw new Error(r.reason);o.fileStatus=he.FINISHED}}catch(e){o.fileStatus=he.FAILED}finally{n({type:"edit_file",identifier:e,file:o})}}))),[e,t,n])}();return(0,le.useCallback)(((n,o)=>st(this,void 0,void 0,(function*(){yield e(n),n.fileStatus!==he.CANCELED&&(yield t(n),n.fileStatus===he.FINISHED&&o&&o(n))}))),[e,t])}var dt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ct(e){const{message:t,modal:n}=R.App.useApp(),o=(0,le.useContext)(Ze),r=He();return(0,le.useCallback)((()=>dt(this,void 0,void 0,(function*(){const a=yield function(e){return dt(this,void 0,void 0,(function*(){const t=yield(o=e,new Promise(((e,t)=>{ze?function(e,t,n){ze.objectStoreNames.contains(e)?je(e,t,n):ke(e,t,n)}(o,e,t):function(e,t,n){try{const o=window.indexedDB.open(Ae);o.onupgradeneeded=()=>ve(o.result,e,t,n),o.onsuccess=()=>function(e,t,n,o){Ee(e),e.objectStoreNames.contains(t)?je(t,n,o):ke(t,n,o)}(o.result,e,t,n),o.onerror=()=>n(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>n(Error(`数据库被阻塞: ${o.error}`))}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),n(e)}}(o,e,t)}))),n=JSON.parse(localStorage.getItem(e)||"[]").map((e=>{const n=t.find((t=>t.fileName===e.fileName));return Object.assign(Object.assign(Object.assign({},n),e),{fileStatus:he.PAUSED})}));var o;return localStorage.removeItem(e),n}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm({title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach(r)},onCancel(){t.info("点击上传按钮手动继续")}})}))),[e,o,r,n,t])}var pt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ut({open:e,identifier:t,accept:n,dragAreaDescription:o,footer:r,title:a="数据上传",showFinished:i=!1,directory:s=!1,onClose:l}){var d,c;const p=(0,le.useContext)(Oe),u=(0,le.useContext)(Ze),{onSuccess:h}=(0,le.useContext)(bt),m=tt(),f=lt(),b=ct(t),[w,g]=(0,le.useState)([]),y=(0,le.useRef)("");return(0,le.useEffect)((()=>{y.current!==t&&(p&&u?(y.current=t,p[t]||u({type:"add",identifier:t}),b()):console.warn("FileUploadDrawer 必须在 UploadStoreProvider 内使用"))}),[t,b,p,u]),(0,le.useEffect)((()=>{const e=p[t];if(!e)return;const n=!e.some((e=>e.fileStatus===he.UPLOADING)),o=e.find((e=>e.fileStatus===he.INIT));n&&o&&f(o,h)}),[t,h,f,p]),(0,U.jsxs)(R.Drawer,{className:"mylib-upload-drawer",open:e,title:a,width:480,onClose:l,footer:r,children:[(0,U.jsx)(Ie,{directory:s,accept:n,dragAreaDescription:o,onFileReceived:function(e){return pt(this,void 0,void 0,(function*(){g((t=>[...t,...e])),yield m(e),g((t=>{const n=new Set(t);for(const t of e)n.delete(t);return[...n]}))}))}}),0===w.length&&0===(null===(d=p[t])||void 0===d?void 0:d.length)&&(0,U.jsx)(R.Empty,{className:"mt-20",description:"暂无上传内容"}),w.length>0&&(0,U.jsxs)("div",{className:"flex justify-center gap-4 mt-4",children:[(0,U.jsx)(Fe.LoadingOutlined,{}),"预检上传文件中(",w.length,")"]}),(null===(c=p[t])||void 0===c?void 0:c.length)>0&&(0,U.jsx)($e,{showFinished:i,identifier:t})]})}var ht=I(588),mt={};mt.styleTagTransform=re(),mt.setAttributes=ee(),mt.insert=Q().bind(null,"head"),mt.domAPI=G(),mt.insertStyleElement=ne(),V()(ht.A,mt),ht.A&&ht.A.locals&&ht.A.locals;var ft=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const bt=(0,le.createContext)({identifier:"",getUploadUrls:()=>ft(void 0,void 0,void 0,(function*(){return{status:!1}})),onCancelUpload:()=>ft(void 0,void 0,void 0,(function*(){return{status:!1}})),onOnePartDone:()=>ft(void 0,void 0,void 0,(function*(){return{status:!1}})),onAllPartDone:()=>ft(void 0,void 0,void 0,(function*(){return{status:!1}}))});function wt(e){if((0,le.useContext)(Oe)===Ke)return(0,U.jsx)(R.Drawer,{open:e.open,onClose:e.onClose,title:"数据上传",children:(0,U.jsx)(R.Alert,{message:"FileUploadDrawer 必须在 UploadStoreProvider 内使用",type:"warning"})});const{identifier:t,maxSizePerFile:n=10*ue,directory:o=!1,root:r="",uploadHistory:a=[],onSuccess:i,getUploadUrls:s,onCancelUpload:l,onOnePartDone:d,onAllPartDone:c,onClose:p,dragAreaDescription:u,accept:h,open:m,footer:f,title:b,showFinished:w}=e,g={identifier:t,maxSizePerFile:n,directory:o,root:r,uploadHistory:a,onSuccess:i,getUploadUrls:s,onCancelUpload:l,onOnePartDone:d,onAllPartDone:c};return(0,U.jsx)(bt.Provider,{value:g,children:(0,U.jsx)(ut,{open:m,accept:h,footer:f,title:b,showFinished:w,directory:o,identifier:t,dragAreaDescription:u,onClose:p})})}var gt,yt=I(884),xt={};xt.styleTagTransform=re(),xt.setAttributes=ee(),xt.insert=Q().bind(null,"head"),xt.domAPI=G(),xt.insertStyleElement=ne(),V()(yt.A,xt),yt.A&&yt.A.locals&&yt.A.locals,function(e){e[e.SHOULD_CREATE_NEW_FILE=0]="SHOULD_CREATE_NEW_FILE",e[e.SHOULD_USE_OLD_INFO=1]="SHOULD_USE_OLD_INFO"}(gt||(gt={}));const vt=1024,kt=1048576,jt=1073741824;var Nt;!function(e){e[e.INIT=1]="INIT",e[e.UPLOADING=2]="UPLOADING",e[e.ALL_UPLOADED=3]="ALL_UPLOADED",e[e.MERGING=4]="MERGING",e[e.FINISHED=5]="FINISHED",e[e.FAILED=6]="FAILED",e[e.PAUSED=7]="PAUSED",e[e.CANCELED=8]="CANCELED"}(Nt||(Nt={}));var At=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function zt(e,t,n){return At(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=function(e,t,n){return{fileName:e,uploadId:"",percentage:0,expiryTime:"",failSeq:[],uploadUrls:[],completeSeq:[],uploadStatus:[],cancelControllers:[],fileStatus:Nt.INIT,partCount:Ct(t),chunkSize:Et(t),raw:new File([n],e,{type:n.type})}}(a,r,e),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:Nt.FAILED})}))}function Et(e){return e<10*kt?10*kt:Math.ceil(e/10)}function Ct(e){const t=Et(e);return Math.floor(e/t)+1}function St(e,t){try{const n=Wt.transaction(e,"readwrite").objectStore(e).delete(t);n.onsuccess=()=>console.info("在 deleteFileInStore 中 deleteReq.onsuccess 触发"),n.onerror=()=>console.warn("在 deleteFileInStore 中 deleteReq.onerror 触发 - 错误代码: "+n.error)}catch(e){return void console.warn("在 deleteFileInStore 中, db.transaction/transaction.objectStore/objectStore.delete 异常 - "+e.message)}}var Mt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Bt="uploadStore";let Wt;function Kt(e){Wt=e}var Ot=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Zt(e,t,n){return Ot(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Ot(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Zt(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Ot(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[Jt(o,n)]:[]}))}(e,n,o):[]}))}function Jt(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}var Pt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ft(e){const t=e.map((e=>{var{raw:t}=e,n=Pt(e,["raw"]);const{uploadUrls:o,failSeq:r}=n;return Object.assign(Object.assign({},n),{failSeq:[],cancelControllers:{},uploadUrls:[...o,...r]})}));return JSON.stringify(t)}const Lt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader must be used within UploadStoreProvider","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal must be used within UploadStoreProvider",文件上传:"File Upload",确定:"Confirm",等待上传:"Waiting for upload",已取消:"Cancelled",上传中:"Uploading",上传失败:"Upload failed",已上传:"Uploaded",分块合并中:"Merging parts",以下文件大小超过:"The following files exceed the size",已删除:"Deleted",点击或拖拽上传文件:"Click or drag to upload files","发现同名文件,是否覆盖?":"Duplicate file found, overwrite?",覆盖:"Overwrite",取消:"Cancel",正在上传:"Uploading",取消失败:"Cancel failed",当前上传:"Current Upload",已暂停:"Paused",上传成功:"Upload successful",校验中:"Calibrating",合并中:"Merging"},Tt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader 必须在 UploadStoreProvider 内使用","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal 必须在 UploadStoreProvider 内使用",文件上传:"文件上传",确定:"确定",等待上传:"等待上传",已取消:"已取消",上传中:"上传中",上传失败:"上传失败",已上传:"已上传",分块合并中:"分块合并中",以下文件大小超过:"以下文件大小超过",已删除:"已删除",点击或拖拽上传文件:"点击或拖拽上传文件","发现同名文件,是否覆盖?":"发现同名文件,是否覆盖?",覆盖:"覆盖",取消:"取消",正在上传:"正在上传",取消失败:"取消失败",当前上传:"当前上传",已暂停:"已暂停",上传成功:"上传成功",校验中:"校验中",合并中:"合并中"};var It=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Dt(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==Nt.FINISHED))})}case"edit_files":return Object.entries(t.files).reduce(((t,[n,o])=>{const r=e[n];return o.forEach((e=>{const t=r.findIndex((t=>t.fileName===e.fileName));-1!==t?r[t]=e:r.push(e)})),t}),Object.assign({},e));default:throw Error("Unknown action")}}const Ut=(0,le.createContext)(Tt),qt=(0,le.createContext)({}),Ht=(0,le.createContext)((()=>null)),Rt=(0,le.createContext)({}),_t=(0,le.createContext)((()=>null)),Vt={},$t=(0,le.createContext)(Vt),Gt=(0,le.createContext)((()=>null));function Xt({locale:e="zh",children:t}){const n="zh"===e?Tt:Lt,[o,r]=(0,le.useReducer)(Dt,{}),[a,i]=(0,le.useState)({}),[s,l]=(0,le.useState)({});return function(e){(0,le.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){Object.entries(e).forEach((([e,t])=>{const n=t.filter((e=>e.fileStatus!==Nt.FINISHED));n.length?localStorage.setItem(e,Ft(n)):function(e){Mt(this,void 0,void 0,(function*(){const t=Wt.version+1;return Wt.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(Bt,t);r.onupgradeneeded=()=>{const t=r.result;t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(e)}))}}),[e])}(o),function(e,t){(0,le.useEffect)((()=>{const n=Object.keys(e).reduce(((t,n)=>{const o=e[n],r=o.filter((e=>e.fileStatus===Nt.ALL_UPLOADED)),a=r.filter((e=>0===e.failSeq.length)),i=r.filter((e=>e.failSeq.length>0)),s=o.find((e=>e.fileStatus===Nt.UPLOADING)),l=o.find((e=>e.fileStatus===Nt.INIT)),d=s?void 0:l,c=[...i.map((e=>Object.assign(Object.assign({},e),{fileStatus:Nt.FAILED}))),...a.map((e=>Object.assign(Object.assign({},e),{fileStatus:Nt.MERGING}))),d?Object.assign(Object.assign({},d),{fileStatus:Nt.UPLOADING}):void 0].filter((e=>!!e));return c.length?Object.assign(Object.assign({},t),{[n]:c}):t}),{});Object.keys(n).length&&t({type:"edit_files",files:n})}),[t,e])}(o,r),function(e,t,n,o){const r=(0,le.useRef)({}),a=(0,le.useCallback)((function(e,a){return It(this,void 0,void 0,(function*(){const{onAllPartDone:i}=t[e],s=n[e],l=yield Promise.all(a.map((t=>It(this,void 0,void 0,(function*(){return(yield i(t.fileName,t.uploadId)).status?(null==s||s(t),r.current[e].delete(t.uploadId),Object.assign(Object.assign({},t),{percentage:100,fileStatus:Nt.FINISHED})):Object.assign(Object.assign({},t),{fileStatus:Nt.FAILED})})))));o({type:"edit_files",files:{[e]:l}})}))}),[t,n,o]);(0,le.useEffect)((()=>{Object.keys(e).forEach((t=>{const n=e[t].filter((e=>e.fileStatus===Nt.MERGING));if(n.length>0){const e=r.current[t]||new Set,o=n.filter((t=>!e.has(t.uploadId)));o.forEach((t=>e.add(t.uploadId))),r.current[t]=e,a(t,o)}}))}),[e,a])}(o,a,s,r),(0,U.jsx)(Ut.Provider,{value:n,children:(0,U.jsx)(qt.Provider,{value:a,children:(0,U.jsx)(Ht.Provider,{value:i,children:(0,U.jsx)(Rt.Provider,{value:s,children:(0,U.jsx)(_t.Provider,{value:l,children:(0,U.jsx)($t.Provider,{value:o,children:(0,U.jsx)(Gt.Provider,{value:r,children:t})})})})})})})}var Qt=I(868),Yt={};function en(){const e=(0,le.useContext)(Ut);return(0,le.useCallback)((t=>e[t]||(console.warn(`Translation key not found: ${t}`),t)),[e])}function tn(e){return(0,U.jsx)("svg",Object.assign({width:"34",height:"31",viewBox:"0 0 34 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,U.jsxs)("g",{id:"ä¸ä¼ æå¾",children:[(0,U.jsx)("path",{id:"Vector",d:"M26 8.66665V29.7043C26.0013 29.867 25.9705 30.0284 25.9094 30.1792C25.8483 30.33 25.7581 30.4672 25.6439 30.5831C25.5297 30.699 25.3938 30.7913 25.244 30.8547C25.0941 30.918 24.9332 30.9512 24.7705 30.9523H1.22943C0.903577 30.9523 0.591055 30.823 0.360528 30.5927C0.130002 30.3624 0.000328142 30.05 0 29.7241V1.22819C0 0.563332 0.553428 0 1.23562 0H17.3333V7.42856C17.3333 7.75692 17.4638 8.07184 17.6959 8.30402C17.9281 8.53621 18.243 8.66665 18.5714 8.66665H26ZM26 6.19047H19.8095V0.00371423L26 6.19047Z",fill:"#B9D6FF"}),(0,U.jsxs)("g",{id:"Group 1000006993",children:[(0,U.jsx)("circle",{id:"Ellipse 87",cx:"26",cy:"23",r:"8",fill:"#1775FE"}),(0,U.jsx)("path",{id:"Vector_2",d:"M26.4545 24.315V27.5714H25.5455V24.315L24.3034 25.2023L23.775 24.4625L26 22.8732L28.225 24.4625L27.6966 25.2023L26.4545 24.315ZM31 24.4545C31 25.7098 29.9825 26.7273 28.7273 26.7273H27.3636V25.8182H28.7273C29.0749 25.8184 29.4094 25.6858 29.6625 25.4476C29.9156 25.2094 30.0682 24.8835 30.0891 24.5365C30.11 24.1896 29.9976 23.8477 29.7749 23.5808C29.5522 23.314 29.236 23.1422 28.8909 23.1007L28.4568 23.0489L28.4918 22.6127C28.4973 22.5455 28.5 22.4775 28.5 22.4091C28.5 21.0284 27.3807 19.9091 26 19.9091C25.4245 19.9091 24.8666 20.1077 24.4205 20.4712C23.9744 20.8347 23.6672 21.3409 23.5509 21.9045L23.4955 22.175L23.2295 22.2507C22.8492 22.3591 22.5146 22.5885 22.2763 22.9042C22.038 23.2198 21.9091 23.6045 21.9091 24C21.9091 24.4822 22.1006 24.9447 22.4416 25.2856C22.7826 25.6266 23.2451 25.8182 23.7273 25.8182H24.6364V26.7273H23.7273C22.2211 26.7273 21 25.5061 21 24C21 22.8655 21.6989 21.8682 22.7239 21.4632C22.9292 20.753 23.3598 20.1288 23.9506 19.6846C24.5415 19.2403 25.2607 19.0001 26 19C27.8414 19 29.3416 20.4598 29.4068 22.2852C29.8687 22.4302 30.2723 22.7187 30.5588 23.1089C30.8453 23.499 30.9999 23.9705 31 24.4545Z",fill:"white"})]})]})}))}function nn({description:e}){const t=en();return(0,U.jsx)("div",{className:"text-gray-5 text-center",children:e?Array.isArray(e)?e.map(((e,t)=>(0,U.jsx)("p",{className:"m-0",children:e},t))):(0,U.jsx)("div",{className:"m-0",children:e}):(0,U.jsx)("p",{className:"m-0",children:t("点击或拖拽上传文件")})})}function on({className:e,description:t,onClick:n,handleDrop:o}){const[r,a]=(0,le.useState)(!1),i={onDrop:e=>{e.preventDefault(),a(!1),o(e)},onDragLeave:()=>a(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),a(!0)}};return(0,U.jsxs)("div",Object.assign({},i,{className:`zjlab-fe-data-hub-ui-default-drag-area ${r?"border-[#1775FE]":""} ${e}`,onClick:n,children:[(0,U.jsx)(tn,{}),(0,U.jsx)(nn,{description:t})]}))}Yt.styleTagTransform=re(),Yt.setAttributes=ee(),Yt.insert=Q().bind(null,"head"),Yt.domAPI=G(),Yt.insertStyleElement=ne(),V()(Qt.A,Yt),Qt.A&&Qt.A.locals&&Qt.A.locals;var rn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function an({accept:e="",className:t="",directory:n=!0,dragAreaDescription:o,maxSizePerFile:r=10*jt,onFileReceived:a}){const i=en(),{message:s}=R.App.useApp(),l=(0,le.useRef)(null),d=(0,le.useMemo)((()=>new Set(e?e.split(","):[])),[e]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(on,{className:t,description:o,handleDrop:function(e){return rn(this,void 0,void 0,(function*(){const t=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Zt(e,n,d)));c((yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value)))}))},onClick:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.click()}}),(0,U.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:e,ref:l,onChange:function(){var e;const t=null===(e=l.current)||void 0===e?void 0:e.files;c(Array.from(null!=t?t:[]))},onClick:()=>{l.current&&(l.current.value="")}})]});function c(e){const t=e.filter((e=>e.size<=r));if(t.length<e.length){const e=function(e){const t=[{value:jt,label:"GB"},{value:kt,label:"MB"},{value:vt,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}(r);s.warning(i("以下文件大小超过")+e+","+i("已删除"))}t.length&&a(t)}}function sn(e){return(0,U.jsx)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,U.jsx)("g",{id:"icon/å
³éæé®",children:(0,U.jsx)("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8.49967C14.6668 12.1816 11.6821 15.1663 8.00016 15.1663C4.31826 15.1663 1.3335 12.1816 1.3335 8.49967C1.3335 4.81777 4.31826 1.83301 8.00016 1.83301C11.6821 1.83301 14.6668 4.81777 14.6668 8.49967ZM10.239 6.26052C10.4343 6.45578 10.4343 6.77237 10.239 6.96763L8.70698 8.49969L10.239 10.0318C10.4343 10.227 10.4343 10.5436 10.239 10.7389C10.0438 10.9341 9.7272 10.9341 9.53194 10.7389L7.99987 9.2068L6.46781 10.7389C6.27255 10.9341 5.95597 10.9341 5.7607 10.7389C5.56544 10.5436 5.56544 10.227 5.7607 10.0318L7.29277 8.49969L5.7607 6.96763C5.56544 6.77237 5.56544 6.45578 5.7607 6.26052C5.95597 6.06526 6.27255 6.06526 6.46781 6.26052L7.99987 7.79258L9.53194 6.26052C9.7272 6.06526 10.0438 6.06526 10.239 6.26052Z",fill:"currentColor"})})}))}const ln=(e=>{var t={};return I.d(t,e),t})({atom:()=>a.atom,useAtom:()=>a.useAtom,useAtomValue:()=>a.useAtomValue,useSetAtom:()=>a.useSetAtom});var dn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const cn=nt.default.create();function pn(e,t=500){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}var un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},hn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const mn=(0,ln.atom)(null),fn=(0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.fileName})),bn=((0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.expiryTime})),(0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.uploadId}))),wn=((0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.raw})),(0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.percentage}))),gn=(0,ln.atom)((e=>{var t;return null===(t=e(mn))||void 0===t?void 0:t.cancelControllers}));function yn(){const e=(0,le.useRef)(!1),t=(0,le.useRef)([]),n=(0,le.useContext)(kn),[o,r]=(0,ln.useAtom)(mn),a=(0,le.useContext)(Gt);!function(){const e=(0,le.useContext)(kn),t=(0,le.useContext)($t),n=(0,ln.useAtomValue)(mn),o=(0,ln.useSetAtom)(mn);(0,le.useEffect)((()=>{const n=t[e];if(!n||0===n.length)return;const r=n.find((e=>e.fileStatus===Nt.UPLOADING));r&&o(Object.assign(Object.assign({},r),{fileStatus:Nt.INIT}))}),[e,o,t]),(0,le.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){n&&n.fileStatus===Nt.UPLOADING&&localStorage.setItem(e+"_uploading",Ft([n]))}}),[n,e])}();const i=function(){const e=(0,le.useContext)(kn),t=(0,ln.useSetAtom)(mn),n=(0,le.useContext)(Gt),o=function(){const e=(0,le.useContext)(zn),t=(0,ln.useAtomValue)(gn),n=(0,ln.useSetAtom)(mn),o=(0,le.useCallback)(((e,t)=>{n((n=>{if(!n||n.fileStatus!==Nt.UPLOADING)return n;const o=1!==n.uploadStatus[t]?n.uploadStatus.toSpliced(t,1,Number(e.progress)):n.uploadStatus,r=n.uploadStatus.reduce(((e,t)=>e+(t||0)),0)*(100/n.partCount);return Object.assign(Object.assign({},n),{percentage:r,uploadStatus:o})}))}),[n]);return(0,le.useCallback)(((n,r)=>dn(this,void 0,void 0,(function*(){t&&(yield cn.put(n.uploadUrl,r,Object.assign(Object.assign({},e),{withCredentials:(null==e?void 0:e.withCredentials)||!1,timeout:(null==e?void 0:e.timeout)||18e5,headers:Object.assign({"Content-Type":"application/octet-stream"},null==e?void 0:e.headers),signal:t[n.partNum].signal,onUploadProgress:pn((e=>o(e,n.partNum)))})))}))),[t,e,o])}(),r=function(e){const t=(0,ln.useAtomValue)(fn),n=(0,ln.useAtomValue)(bn),o=(0,le.useContext)(qt),r=(0,ln.useSetAtom)(mn),a=o[e],{onOnePartDone:i}=a;return(0,le.useCallback)((e=>un(this,void 0,void 0,(function*(){if(!t||!n)return;const o=yield i(t,n,e.partNum);if(!o.status)throw new Error(o.reason);r((t=>{if(!t)return t;const n=[...t.uploadStatus];return n[e.partNum]=1,Object.assign(Object.assign({},t),{uploadStatus:n,uploadUrls:t.uploadUrls.filter((t=>t.partNum!==e.partNum)),completeSeq:[...t.completeSeq,e]})}))}))),[t,n,i,r])}(e),a=(0,le.useCallback)(((e,n)=>hn(this,void 0,void 0,(function*(){try{yield o(e,n),yield r(e)}catch(n){if(n instanceof Error&&"canceled"===n.message)return;t((t=>t?Object.assign(Object.assign({},t),{failSeq:[...t.failSeq,e],uploadUrls:t.uploadUrls.filter((t=>t!==e))}):t))}}))),[o,r,t]);return(0,le.useCallback)((function(o){return hn(this,void 0,void 0,(function*(){for(const{url:e,chunk:t}of o)yield a(e,t);t((t=>t?(n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},t),{fileStatus:Nt.ALL_UPLOADED})}),null):t))}))}),[e,a,t,n])}();(0,le.useEffect)((()=>{o?(o.fileStatus===Nt.INIT&&(t.current=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(o),r((e=>e?Object.assign(Object.assign({},e),{fileStatus:Nt.UPLOADING,cancelControllers:new Array(t.current.length).fill(new AbortController)}):e))),o.fileStatus!==Nt.UPLOADING||e.current||(e.current=!0,i(t.current)),o.fileStatus===Nt.CANCELED&&(Object.values(o.cancelControllers).forEach((e=>e.abort())),a({type:"remove_file",identifier:n,fileName:o.fileName}),r(null)),o.fileStatus===Nt.FAILED&&(a({type:"edit_file",identifier:n,file:o}),r(null))):e.current=!1}),[o,n,i,r,a])}const xn=(e=>{var t={};return I.d(t,e),t})({ScopeProvider:()=>i.ScopeProvider}),vn=(0,le.createContext)(void 0),kn=(0,le.createContext)(""),jn=(0,le.createContext)(void 0),Nn=(0,le.createContext)(void 0),An=(0,le.createContext)(!1),zn=(0,le.createContext)(void 0);function En({children:e,root:t,identifier:n,showFinished:o,uploadRequestConfig:r,externalUploadContext:a,externalUploadContextOnly:i=!1,onUploadSuccess:s,getUploadUrls:l,onCancelUpload:d,onOnePartDone:c,onAllPartDone:p,onDeleteFile:u}){const h=(0,le.useContext)(qt),m=(0,le.useContext)(Ht),f=(0,le.useContext)(_t);return(0,le.useEffect)((()=>{m((e=>Object.assign(Object.assign({},e),{[n]:{getUploadUrls:l,onCancelUpload:d,onOnePartDone:c,onAllPartDone:p,onDeleteFile:u}})))}),[l,d,c,p,u,m,n]),(0,le.useEffect)((()=>{f((e=>Object.assign(Object.assign({},e),{[n]:s})))}),[n,s,f]),h[n]?(0,U.jsx)(xn.ScopeProvider,{atoms:[mn],children:(0,U.jsx)(vn.Provider,{value:t,children:(0,U.jsx)(kn.Provider,{value:n,children:(0,U.jsx)(jn.Provider,{value:o,children:(0,U.jsx)(Nn.Provider,{value:a,children:(0,U.jsx)(An.Provider,{value:i,children:(0,U.jsx)(zn.Provider,{value:r,children:e})})})})})})}):(0,U.jsx)(U.Fragment,{})}var Cn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Sn(){const e=en(),{message:t}=R.App.useApp(),n=(0,le.useContext)(kn),o=(0,le.useContext)(qt),r=(0,le.useContext)(Gt);return function(r){return Cn(this,void 0,void 0,(function*(){const{onCancelUpload:i}=o[n];if(!r.uploadId)return void a(r.fileName);const s=yield i(r.fileName,r.uploadId);s.status?a(r.fileName):t.error(s.reason||e("取消失败"))}))};function a(e){St(String(n),e),r({type:"remove_file",identifier:n,fileName:e})}}function Mn(e){return(0,U.jsx)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,U.jsxs)("g",{id:"Component 56",children:[(0,U.jsx)("path",{id:"Subtract",d:"M10.1988 5.9923V1.50071L5.00029 1.5C4.44796 1.49992 4.00016 1.94765 4.00015 2.49999L4 13.4998C3.99999 14.0521 4.44771 14.4999 5 14.4999H13.5068C14.0591 14.4999 14.5068 14.0522 14.5068 13.4999L14.507 5.9923H10.1988Z",fill:"currentColor"}),(0,U.jsx)("path",{id:"Subtract_2",d:"M14.507 4.82148H11.3911V1.5L14.507 4.82148Z",fill:"currentColor",fillOpacity:"0.4"})]})}))}const Bn={size:12,type:"circle",strokeWidth:16,showInfo:!1,strokeLinecap:"butt"},Wn={[Nt.INIT]:"等待上传",[Nt.MERGING]:"合并中",[Nt.CANCELED]:"已取消",[Nt.ALL_UPLOADED]:"校验中",[Nt.PAUSED]:"已暂停",[Nt.FAILED]:"上传失败",[Nt.UPLOADING]:"上传中",[Nt.FINISHED]:"上传成功"},Kn=(0,le.memo)((function({file:e}){const t=en(),n=Sn();return(0,U.jsx)("div",{className:"my-2.5",children:(0,U.jsxs)(On,{children:[(0,U.jsx)(Zn,{fileName:e.fileName}),(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,U.jsx)(Jn,{fileStatus:t(Wn[e.fileStatus]),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,U.jsx)(Pn,{onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function On({children:e,className:t}){return(0,U.jsx)("div",{className:`p-2 relative flex justify-between items-center rounded group ${t}`,children:e})}function Zn({fileName:e,className:t}){return(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",children:[(0,U.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-[#F5F7FA]",children:(0,U.jsx)(Mn,{className:`text-gray-5 h-5 w-5 ${t}`})}),(0,U.jsx)("span",{className:`truncate w-40 text-gray-5 ${t}`,children:e})]})}function Jn({className:e="",fileStatus:t,percentage:n,strokeColor:o="#1775FE"}){return(0,U.jsxs)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-gray-5 ${e}`,children:[t,(0,U.jsx)(R.Progress,Object.assign({percent:n},Bn,{strokeColor:o}))]})}function Pn({onDelete:e,extraActions:t,className:n=""}){return(0,U.jsxs)("div",{className:`flex items-center justify-center h-6 gap-1 text-gray-5 ${n}`,children:[t,(0,U.jsx)(sn,{onClick:e,className:"h-4 w-4 cursor-pointer"})]})}const Fn=(0,le.memo)((function(){const e=en(),t=(0,le.useContext)(kn),n=(0,ln.useAtomValue)(fn),o=(0,ln.useAtomValue)(wn),r=(0,ln.useAtomValue)(bn),a=(0,le.useContext)(qt),{onCancelUpload:i}=a[t],s=(0,ln.useSetAtom)(mn);return(0,U.jsx)("div",{className:"my-2.5",children:(0,U.jsxs)(On,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,U.jsx)(Zn,{fileName:n}),(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,U.jsx)(Jn,{fileStatus:e("正在上传"),percentage:Number(o.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,U.jsx)(Pn,{onDelete:function(){return o=this,a=void 0,d=function*(){const o=yield i(n,r);o.status?(St(String(t),n),s((e=>e?Object.assign(Object.assign({},e),{fileStatus:Nt.CANCELED}):e))):R.message.error(o.reason||e("取消失败"))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}i((d=d.apply(o,a||[])).next())}));var o,a,l,d},className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));const Ln=(0,le.memo)((function({file:e}){const t=en(),n=(0,le.useContext)(Gt),o=(0,le.useContext)(kn),r=(0,le.useContext)(qt),{onDeleteFile:a}=r[o],i=Sn();return(0,U.jsx)("div",{className:"my-2.5",children:(0,U.jsxs)(On,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,U.jsx)(Zn,{fileName:e.fileName,className:"text-green-green"}),(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,U.jsx)(Jn,{percentage:100,fileStatus:t("上传成功"),strokeColor:"#53C31B",className:"text-green-green group-hover:-translate-x-6 transition-transform"}),(0,U.jsx)(Pn,{onDelete:()=>function(e){return t=this,r=void 0,l=function*(){if(!a)return i(e);(yield a(e.fileName))&&n({type:"remove_file",identifier:o,fileName:e.fileName})},new((s=void 0)||(s=Promise))((function(e,n){function o(e){try{i(l.next(e))}catch(e){n(e)}}function a(e){try{i(l.throw(e))}catch(e){n(e)}}function i(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(o,a)}i((l=l.apply(t,r||[])).next())}));var t,r,s,l}(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})})),Tn=(0,le.memo)((function({file:e}){const t=Sn();return(0,U.jsx)("div",{className:"my-2.5",children:(0,U.jsxs)(On,{className:"bg-red/10",children:[(0,U.jsx)((function(){return(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",children:[(0,U.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-red/10",children:(0,U.jsx)(Mn,{className:"text-red-red h-5 w-5"})}),(0,U.jsx)("span",{className:"truncate w-40 text-red-red",children:e.fileName})]})}),{}),(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,U.jsx)((function({className:e=""}){const t=en();return(0,U.jsx)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-red-red ${e}`,children:t("上传失败")})}),{className:"group-hover:-translate-x-6 transition-transform"}),(0,U.jsx)(Pn,{onDelete:()=>t(e),className:"text-red-red absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));var In=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Dn(){const e=(0,le.useContext)(kn),t=(0,le.useContext)(qt),n=(0,le.useContext)(Gt);return(0,le.useCallback)((o=>In(this,void 0,void 0,(function*(){const r=t[e];if(function(e){if(!e)return gt.SHOULD_CREATE_NEW_FILE;const t=new Date;return new Date(e)<t?gt.SHOULD_CREATE_NEW_FILE:gt.SHOULD_USE_OLD_INFO}(o.expiryTime)===gt.SHOULD_CREATE_NEW_FILE){const t=yield zt(o.raw,void 0,r.getUploadUrls);n({type:"edit_file",identifier:e,file:t})}else{const t=[...o.failSeq,...o.uploadUrls];n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},o),{uploadUrls:t,failSeq:[],cancelControllers:[],fileStatus:Nt.INIT})})}}))),[e,t,n])}const Un=(0,le.memo)((function({file:e}){const t=en(),n=Sn();return(0,U.jsx)("div",{className:"my-2.5",children:(0,U.jsxs)(On,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,U.jsx)(Zn,{fileName:e.fileName}),(0,U.jsxs)(R.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,U.jsx)(Jn,{fileStatus:t("已暂停"),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-10 transition-transform"}),(0,U.jsx)(Pn,{extraActions:(0,U.jsx)((function(){const t=Dn();return(0,U.jsx)(Fe.PlayCircleFilled,{className:"text-gray-5 h-4 w-4 cursor-pointer",onClick:()=>t(e)})}),{}),onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function qn(){const e=en(),t=(0,le.useContext)(kn),n=(0,le.useContext)($t),o=(0,le.useContext)(jn),r=(0,ln.useAtomValue)(fn),a=(0,le.useMemo)((()=>{var e;return null===(e=n[t])||void 0===e?void 0:e.filter((e=>!(!o&&e.fileStatus===Nt.FINISHED)))}),[t,o,n]);return yn(),a&&0!==a.length?(0,U.jsxs)("div",{className:"mb-5",children:[(0,U.jsx)("div",{className:"text-sm text-gray-7",children:e("当前上传")}),(0,U.jsx)("div",{className:"max-h-72 overflow-y-auto",children:a.map((e=>{if(e.fileName===r)return(0,U.jsx)(Fn,{},e.fileName);switch(e.fileStatus){case Nt.FINISHED:return(0,U.jsx)(Ln,{file:e},e.fileName);case Nt.FAILED:return(0,U.jsx)(Tn,{file:e},e.fileName);case Nt.PAUSED:return(0,U.jsx)(Un,{file:e},e.fileName);default:return(0,U.jsx)(Kn,{file:e},e.fileName)}}))})]}):(0,U.jsx)(U.Fragment,{})}const Hn={icon:null,centered:!0,closable:!0,styles:{mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},body:{marginTop:"24px",textAlign:"center"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},footer:e=>(0,U.jsx)(R.Flex,{justify:"center",align:"center",children:e}),className:"zjlab-fe-data-hub-ui-modal"},Rn={width:600,centered:!0,closable:!0,styles:{body:{display:"flow-root"},footer:{textAlign:"center"},header:{marginBlockEnd:"16px"},mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},className:"zjlab-fe-data-hub-ui-file-uploader zjlab-fe-data-hub-ui-modal"};var _n=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Vn(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function $n(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var Gn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};var Xn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Qn(e){const{message:t,modal:n}=R.App.useApp(),o=(0,le.useContext)(Gt),r=Dn();return(0,le.useCallback)((()=>Xn(this,void 0,void 0,(function*(){const a=yield function(e){return Xn(this,void 0,void 0,(function*(){const t=yield(i=e,new Promise(((e,t)=>{function n(n){Wt.objectStoreNames.contains(n)?function(e){return new Promise((function(t,n){try{const n=Wt.transaction(e,"readonly").objectStore(e),o=[],r=n.openCursor();r.onsuccess=()=>{const e=r.result;e?(o.push(e.value),e.continue()):t(o)},r.onerror=()=>console.warn(`retrieveExistingData 中游标操作失败 - 错误代码: ${r.error}`)}catch(e){n(Error(`retrieveExistingData 中执行事务或打开游标时发生异常 - ${e.message}`))}}))}(n).then(e).catch(t):function(n){const o=Wt.version+1;Wt.close();const r=window.indexedDB.open(Bt,o);r.onerror=()=>t(Error(`打开数据库失败: ${r.error}`)),r.onblocked=()=>t(Error(`数据库被阻塞: ${r.error}`)),r.onsuccess=()=>console.info("openRequest.onsuccess 在 triggerDatabaseUpgrade 中被触发"),r.onupgradeneeded=()=>{Kt(r.result);try{r.result.createObjectStore(n,{}),r.result.onversionchange=e=>{null===e.newVersion&&r.result.close()},e([])}catch(e){t(Error(`升级数据库异常: ${e.message}`))}}}(n)}Wt?n(i):function(e){try{const o=window.indexedDB.open(Bt);o.onsuccess=()=>{Kt(o.result),n(e)},o.onerror=()=>t(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>t(Error(`数据库被阻塞: ${o.error}`)),o.onupgradeneeded=()=>console.info("openRequest.onupgradeneeded(SHOULD NOT BE CALLED)")}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),t(e)}}(i)}))),n=JSON.parse(localStorage.getItem(e)||"[]"),o=JSON.parse(localStorage.getItem(e+"_uploading")||"[]"),r=function(){if(o.length){const e=n.findIndex((e=>e.fileName===o[0].fileName));-1!==e&&n.splice(e,1,o[0])}return n}(),a=t.map((e=>{const t=r.find((t=>t.fileName===e.name));return t?Object.assign(Object.assign({},t),{raw:e,fileStatus:Nt.PAUSED}):null})).filter((e=>null!==e));var i;return localStorage.removeItem(e),localStorage.removeItem(e+"_uploading"),a}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm(Object.assign(Object.assign({},Hn),{title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach((e=>r(e)))},onCancel(){t.info("点击上传按钮手动继续")}}))}))),[e,o,r,n,t])}var Yn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function eo(e){var{extra:t,dragAreaConfig:n}=e,o=Yn(e,["extra","dragAreaConfig"]);return(0,U.jsx)(En,Object.assign({},o,{children:(0,U.jsx)(to,{extra:t,dragAreaConfig:n})}))}function to({extra:e,dragAreaConfig:t}){const n=(0,le.useContext)(kn),o=(0,le.useContext)($t),r=(0,le.useContext)(Gt),a=(0,le.useContext)(An);!function(){const e=(0,le.useContext)(kn),t=(0,le.useContext)($t),n=(0,le.useContext)(Gt),o=(0,le.useRef)(""),r=Qn(e);(0,le.useEffect)((()=>{o.current!==e&&(o.current=e,t[e]||n({type:"add",identifier:e}),r())}),[e,r,t,n])}();const{isFormatingFiles:i,formatFiles:s}=function(){const e=en(),{message:t}=R.App.useApp(),n=(0,le.useContext)(vn),o=(0,le.useContext)(kn),r=(0,le.useContext)(qt),a=(0,le.useContext)(Gt),{getUploadUrls:i}=r[o],[s,l]=(0,le.useState)(!1),d=function(){const{modal:e}=R.App.useApp(),t=en(),n=(0,le.useContext)(vn),o=(0,le.useContext)(kn),r=(0,le.useContext)($t),a=(0,le.useContext)(Nn),i=(0,le.useContext)(An);return function(s){return _n(this,void 0,void 0,(function*(){const l=i?$n(s,null!=a?a:[]):[...Vn(s,r[o],n),...$n(s,null!=a?a:[])];return l.length?[yield e.confirm(Object.assign(Object.assign({},Hn),{okText:t("覆盖"),cancelText:t("取消"),title:t("发现同名文件,是否覆盖?")})),new Set(l)]:[!0,new Set]}))}}(),c=function(){const e=(0,le.useContext)(kn),t=(0,le.useContext)($t),n=Sn();return function(o){const r=t[e];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return{isFormatingFiles:s,formatFiles:function(r){return Gn(this,void 0,void 0,(function*(){l(!0);const s=yield function(e){return Gn(this,void 0,void 0,(function*(){const[t,n]=yield d(e);return t?(c(n),e):e.filter((e=>!n.has(e.name)))}))}(r),p=yield function(o){return Gn(this,void 0,void 0,(function*(){const r=o.map((e=>zt(e,n,i))),a=(yield Promise.allSettled(r)).filter((e=>"fulfilled"===e.status)).map((e=>e.value));return(a.some((e=>e.fileStatus===Nt.FAILED))||a.length<o.length)&&t.info(e("部分文件获取上传地址失败")),a}))}(s);a({type:"add_files",identifier:o,files:p}),function(e,t){try{const n=Wt.transaction(e,"readwrite").objectStore(e);t.forEach((e=>n.put(e,e.name)))}catch(e){console.warn(`在 addFilesToIndexdb 中, db.transaction/transaction.objectStore/objectStore.put 异常 - ${e.message}`)}}(o,p.map((e=>e.raw))),l(!1)}))}}}();return(0,le.useEffect)((()=>{var e;const t=null===(e=o[n])||void 0===e?void 0:e.find((e=>e.fileStatus===Nt.FINISHED));a&&t&&r({type:"clear_finished",identifier:n})}),[a,n,r,o]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.Spin,{spinning:i,children:(0,U.jsx)(an,Object.assign({},t,{onFileReceived:s}))}),e&&(0,U.jsx)("div",{className:"mb-4",children:e}),(0,U.jsx)(qn,{})]})}var no=I(915),oo={};oo.styleTagTransform=re(),oo.setAttributes=ee(),oo.insert=Q().bind(null,"head"),oo.domAPI=G(),oo.insertStyleElement=ne(),V()(no.A,oo),no.A&&no.A.locals&&no.A.locals;var ro=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function ao(e){var{config:{modal:t,dragArea:n,uploadRequest:o}}=e,r=ro(e,["config"]);const a=en();return(0,le.useContext)($t)===Vt?(0,U.jsx)(R.Modal,Object.assign({},Rn,{title:a("文件上传")},t,{children:(0,U.jsx)(R.Alert,{message:a("FileUploadModal 必须在 UploadStoreProvider 内使用"),type:"warning"})})):(0,U.jsx)(R.Modal,Object.assign({},Rn,{forceRender:!0,title:a("文件上传"),footer:(0,U.jsx)(R.Button,{type:"primary",onClick:t.onCancel,children:a("确定")})},t,{children:(0,U.jsx)(eo,Object.assign({},r,{dragAreaConfig:n,uploadRequestConfig:o}))}))}const io=function(e){const t=en();return(0,le.useContext)($t)===Vt?(0,U.jsx)(R.Alert,{message:t("FileUploader 必须在 UploadStoreProvider 内使用"),type:"warning"}):(0,U.jsx)("div",{className:"zjlab-fe-data-hub-ui-file-uploader",children:(0,U.jsx)(eo,Object.assign({},e))})},so=(e=>{var t={};return I.d(t,e),t})({getFileExt:()=>s.getFileExt});function lo(e){return new Promise((t=>{if(e&&e.length>0){const n=[...e];function o(){n.length>0?setTimeout(r):setTimeout((()=>{t(null)}))}function r(){const e=n.shift(),t=(0,so.getFileExt)(e);if("js"===t||"mjs"===t){if(!document.querySelector(`script[src="${e}"]`)){const n=document.createElement("script");return n.src=e,"mjs"===t&&(n.type="module"),document.head.appendChild(n),n.onload=o,void(n.onerror=o)}}else if("css"===t&&!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,document.head.appendChild(t),t.onload=o,void(t.onerror=o)}o()}r()}else t(null)}))}var co=I(482),po={};po.styleTagTransform=re(),po.setAttributes=ee(),po.insert=Q().bind(null,"head"),po.domAPI=G(),po.insertStyleElement=ne(),V()(co.A,po),co.A&&co.A.locals&&co.A.locals;class uo{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}}function ho(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let o,r=0,a=1,i=1,s=1;for(;;){const e=r+i,t=a+s;if(t>8)break;n<=e/t?(i=e,s=t):(r=e,a=t)}return o=n-r/a<i/s-n?n===e?[r,a]:[a,r]:n===e?[i,s]:[s,i],o}function mo(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)}function fo(e){const{filePath:t}=e,n=(0,le.useRef)(null),o=(0,le.useRef)(0),r=(0,le.useRef)(null),a=(0,le.useRef)(0),i=(0,le.useRef)(0),s=(0,le.useRef)(0),l=(0,le.useRef)(!1),d=()=>{if(l.current)return Promise.resolve();l.current=!0;const e=s.current+3>a.current?a.current:s.current+3;return new Promise((t=>{if(r.current){const o=n.current;let l=e-s.current;for(let c=s.current+1;c<=e;c++)r.current.getPage(c).then((e=>{const t=e.getViewport({scale:window.devicePixelRatio||1}),n=document.createElement("canvas");n.setAttribute("id","the-canvas"+c);const r=n.getContext("2d"),a=new uo,{width:s,height:l}=t;{const e=s*l,t=Math.sqrt(16777216/e);(a.sx>t||a.sy>t)&&(a.sx=t,a.sy=t)}const d=ho(a.sx),p=ho(a.sy);n.width=mo(s*a.sx,d[0]),n.height=mo(l*a.sy,p[0]);const{style:u}=n;u.width=mo(s,d[1])+"px",u.height=mo(l,p[1])+"px";const h={canvasContext:r,transform:a.scaled?[a.sx,0,0,a.sy,0,0]:null,viewport:t};return o.appendChild(n),e.render(h).promise.then((()=>new Promise((e=>{setTimeout((()=>{i.current=i.current+n.clientHeight,e(1)}))}))))})).catch((e=>{})).finally((()=>{l--,0===l&&(i.current<n.current.clientHeight&&e<a.current&&setTimeout(d),t(1))}))}else t(0)})).then((()=>{l.current=!1,s.current=e}))};return(0,le.useEffect)((()=>{lo(["https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.min.mjs","https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.worker.min.mjs"]).then((()=>{window.pdfjsLib.getDocument({url:t,cMapUrl:"https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/cmaps/",cMapPacked:!0}).promise.then((t=>{var n;r.current=t,a.current=t.numPages,d(),null===(n=null==e?void 0:e.onSuccess)||void 0===n||n.call(e)})).catch((t=>{var n;null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))}),[t]),(0,U.jsx)("div",{ref:n,className:co.L,onScroll:e=>{const t=e.target.scrollTop;t>o.current&&s.current<a.current&&t>i.current-200-n.current.clientHeight&&d(),o.current=t}})}const bo=(e=>{var t={};return I.d(t,e),t})({default:()=>l.default});var wo=I(328),go={};function yo(e){return e?e-55-64-16:550}function xo(e,t=2){if(e){const n=yo(e);return Math.floor(n/(10+22*t))}return 10}go.styleTagTransform=re(),go.setAttributes=ee(),go.insert=Q().bind(null,"head"),go.domAPI=G(),go.insertStyleElement=ne(),V()(wo.Ay,go),wo.Ay&&wo.Ay.locals&&wo.Ay.locals;const vo={fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:"14px",lineHeight:"22px",letterSpacing:0};function ko(e){const{maxLines:t=2}=e,n=(0,le.useRef)([]),o=bo.default.resolvedLanguage||localStorage.getItem("i18nextLng")||"zh";0===n.current.length&&e.head.forEach((e=>{n.current.push(function(e,t={}){const n=document.createElement("span");n.textContent=e,Object.assign(n.style,Object.assign({position:"absolute",visibility:"hidden",whiteSpace:"nowrap"},t)),document.body.appendChild(n);const o=n.offsetWidth;return document.body.removeChild(n),o}(e))}));const r=e.head.map(((e,o)=>({title:(0,U.jsx)("div",{title:e,style:vo,children:e}),dataIndex:e,key:o,render:e=>{const r="object"==typeof e?JSON.stringify(e):e;return(0,U.jsx)("div",{className:wo.Hn,style:{height:22*t,maxWidth:400,minWidth:n.current[o]},children:(0,U.jsx)("div",{className:wo.P_,style:{WebkitLineClamp:t},onMouseLeave:e=>{e.currentTarget.scrollTop=0},children:r})})}}))),a={className:wo.X$,pageSize:xo(e.containerHeight,t),showSizeChanger:!1,onChange:e.onPageChange,showTotal:()=>e.total&&e.total>e.data.length?(0,U.jsxs)("div",{className:wo.UA,children:[(0,U.jsx)(Fe.InfoCircleOutlined,{})," ","zh"===o?"请下载查看完整内容":"Please download to view the full content"]}):null};return(0,U.jsx)(R.Table,{tableLayout:"auto",className:wo.tp,columns:r,dataSource:e.data,scroll:{x:"max-content",y:yo(e.containerHeight)},pagination:a})}var jo=I(685),No={};No.styleTagTransform=re(),No.setAttributes=ee(),No.insert=Q().bind(null,"head"),No.domAPI=G(),No.insertStyleElement=ne(),V()(jo.A,No),jo.A&&jo.A.locals&&jo.A.locals;var Ao=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function zo(e){var t;const n=(0,le.useRef)(null),o=(0,so.getFileExt)(e.filePath),[r,a]=(0,le.useState)(),[i,s]=(0,le.useState)();return(0,le.useEffect)((()=>{lo(["https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.js","https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.css","https://fastly.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js","https://fastly.jsdelivr.net/npm/papaparse@5.5.2/papaparse.min.js"]).then((()=>Ao(this,void 0,void 0,(function*(){fetch(e.filePath).then((t=>Ao(this,void 0,void 0,(function*(){if("csv"===o){const o=yield t.blob(),r=new File([o],"test.csv",{type:o.type});window.Papa.parse(r,{complete:t=>{var o,r,i;const l=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o[0],d=[];null===(r=null==t?void 0:t.data)||void 0===r||r.forEach(((e,t)=>{if(0!==t){const n={key:t.toString()};l.forEach(((t,o)=>{n[t]=e[o]})),d.push(n)}})),a({head:l,data:d}),s(n.current.clientHeight),null===(i=null==e?void 0:e.onSuccess)||void 0===i||i.call(e)},error:t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}})}else t.arrayBuffer().then((function(t){var o;const r=function(e){const t=[];return e.SheetNames.forEach((function(n){const o={name:n,rows:{}},r=e.Sheets[n];if(!r||!r["!ref"])return;const a=XLSX.utils.decode_range(r["!ref"]);a.s={r:0,c:0};const i=XLSX.utils.sheet_to_json(r,{raw:!1,header:1,range:a});i.forEach((function(e,t){const n={};e.forEach((function(e,o){n[o]={text:e||String(e)};const a=XLSX.utils.encode_cell({r:t,c:o});null!=r[a]&&null!=r[a].f&&(n[o].text="="+r[a].f)})),o.rows[t]={cells:n}})),o.rows.len=i.length,o.merges=[],(r["!merges"]||[]).forEach((function(e,t){null==o.rows[e.s.r]&&(o.rows[e.s.r]={cells:{}}),null==o.rows[e.s.r].cells[e.s.c]&&(o.rows[e.s.r].cells[e.s.c]={}),o.rows[e.s.r].cells[e.s.c].merge=[e.e.r-e.s.r,e.e.c-e.s.c],o.merges[t]=XLSX.utils.encode_range(e)})),t.push(o)})),t}(window.XLSX.read(t));window.x_spreadsheet(n.current,{mode:"read",showToolbar:!1,showContextmenu:!1,view:{height:()=>n.current.clientHeight,width:()=>n.current.clientWidth}}).loadData(r),null===(o=null==e?void 0:e.onSuccess)||void 0===o||o.call(e)})).catch((e=>{throw e}))})))).catch((t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))))}),[]),(0,U.jsx)("div",{ref:n,className:jo.L,children:"csv"===o&&r?(0,U.jsx)(ko,{head:r.head,data:r.data,containerHeight:i,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines}):null})}var Eo=I(913),Co={};function So(e){return(0,U.jsx)("div",{className:Eo.LV,children:(0,U.jsx)("img",{src:e.filePath,onError:t=>{var n;console.log("+++ img error"),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},onLoad:()=>{var t;null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)},className:Eo._8})})}Co.styleTagTransform=re(),Co.setAttributes=ee(),Co.insert=Q().bind(null,"head"),Co.domAPI=G(),Co.insertStyleElement=ne(),V()(Eo.Ay,Co),Eo.Ay&&Eo.Ay.locals&&Eo.Ay.locals;const Mo=(e=>{var t={};return I.d(t,e),t})({default:()=>d.default}),Bo=(e=>{var t={};return I.d(t,e),t})({default:()=>c.default}),Wo=(e=>{var t={};return I.d(t,e),t})({default:()=>p.default}),Ko=(e=>{var t={};return I.d(t,e),t})({default:()=>u.default}),Oo=(e=>{var t={};return I.d(t,e),t})({default:()=>h.default});var Zo=I(555),Jo={};Jo.styleTagTransform=re(),Jo.setAttributes=ee(),Jo.insert=Q().bind(null,"head"),Jo.domAPI=G(),Jo.insertStyleElement=ne(),V()(Zo.A,Jo),Zo.A&&Zo.A.locals&&Zo.A.locals;var Po=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Fo(e){const t=(0,le.useRef)(null),[n,o]=(0,le.useState)("");return(0,le.useEffect)((()=>{(()=>{Po(this,void 0,void 0,(function*(){var t,n;try{let n=yield fetch(e.filePath).then((e=>e.text()));n=n.replace(/!\[(.*?)\]\((.*?)\)/g,((e,t,n)=>n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?e:"")),o(n),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}}))})()}),[]),(0,U.jsx)("div",{ref:t,style:{height:"100%",overflow:"auto"},className:Zo.L,children:n?(0,U.jsx)(Mo.default,{className:"markdown-body",remarkPlugins:[Ko.default,Wo.default],rehypePlugins:[Bo.default,Oo.default],children:n}):null})}var Lo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function To(e){const[t,n]=(0,le.useState)("");return(0,le.useEffect)((()=>{(()=>{Lo(this,void 0,void 0,(function*(){var t,o;try{const o=yield fetch(e.filePath).then((e=>e.text()));n(o),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(o=null==e?void 0:e.onError)||void 0===o||o.call(e,t)}}))})()}),[]),(0,U.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})}const Io=(e=>{var t={};return I.d(t,e),t})({default:()=>m.default}),Do=(e=>{var t={};return I.d(t,e),t})({ErrorBoundary:()=>f.ErrorBoundary});var Uo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function qo(e){const t=(0,le.useRef)(null),[n,o]=(0,le.useState)(),[r,a]=(0,le.useState)(),[i,s]=(0,le.useState)();return(0,le.useEffect)((()=>{(()=>{Uo(this,void 0,void 0,(function*(){var n,r,i,l;try{let l;l=e.jsonConfig?e.jsonConfig.data:yield fetch(e.filePath).then((e=>e.text()));try{const e="string"==typeof l?JSON.parse(l):l;o(e)}catch(e){const o=function(e,t){const{trim:n=!0,skipEmpty:o=!0}={};if(!e)return[];const r=[];let a="",i=!1,s=!1;for(let t=0;t<e.length;t++){const l=e[t];if(s)a+=l,s=!1;else if("\\"!==l)if('"'!==l)if("\n"!==l&&"\r"!==l||i)a+=l;else{if("\r"===l&&t+1<e.length&&"\n"===e[t+1])continue;const i=n?a.trim():a;(!o||i.length>0)&&r.push(i),a=""}else i=!i,a+=l;else a+=l,s=!0}if(a){const e=n?a.trim():a;(!o||e.length>0)&&r.push(e)}return r}(l);if(o.length>0){const e=[];let i=0;if(o.forEach((t=>{try{const n=JSON.parse(t);"object"==typeof n?Array.isArray(n)?n.forEach((t=>{e.push(Object.assign(Object.assign({},t),{key:i.toString()})),i++})):(e.push(Object.assign(Object.assign({},n),{key:i.toString()})),i++):(e.push({content:t,key:i.toString()}),i++)}catch(e){console.log("+++ e",e)}})),e.length>0){const o=Object.keys(e[0]).filter((e=>"key"!==e));a({head:o,data:e}),s(null===(n=t.current)||void 0===n?void 0:n.clientHeight)}else{e.push({content:l,key:"0"});const n=Object.keys(e[0]).filter((e=>"key"!==e));a({head:n,data:e}),s(null===(r=t.current)||void 0===r?void 0:r.clientHeight)}}}null===(i=null==e?void 0:e.onSuccess)||void 0===i||i.call(e)}catch(t){null===(l=null==e?void 0:e.onError)||void 0===l||l.call(e,t)}}))})()}),[]),(0,U.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:t,children:n?(0,U.jsx)(Do.ErrorBoundary,{fallback:JSON.stringify(n),children:(0,U.jsx)(Io.default,{name:!1,src:n,iconStyle:"triangle",collapsed:2,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,collapseStringsAfterLength:140,style:{fontFamily:"Monaco, Menlo, Consolas, monospace",backgroundColor:"rgba(0, 0, 0, 0)",color:"rgb(155, 12, 121)"}})}):r?(0,U.jsx)(ko,{head:r.head,data:r.data,containerHeight:i,maxLines:null===(l=e.tableConfig)||void 0===l?void 0:l.maxLines}):null});var l}const Ho=(e=>{var t={};return I.d(t,e),t})({parseTable:()=>b.parseTable}),Ro=(e=>{var t={};return I.d(t,e),t})({default:()=>w.default,readParquet:()=>w.readParquet,wasmMemory:()=>w.wasmMemory});var _o=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};let Vo;function $o(e){var t;const n=(0,le.useRef)(null),[o,r]=(0,le.useState)(),[a,i]=(0,le.useState)();return(0,le.useEffect)((()=>{let t;Vo||(Vo=(0,Ro.wasmMemory)()),(()=>{_o(this,void 0,void 0,(function*(){var o,a,s;try{const s=yield fetch(e.filePath),l=new Uint8Array(yield s.arrayBuffer());t=(0,Ro.readParquet)(l).intoFFI();const d=(0,Ho.parseTable)(Vo.buffer,t.arrayAddrs(),t.schemaAddr()),c=d.schema.fields.map((e=>e.name)),p=[];console.log("+++ arrowTable.numRows",d.numRows);for(let e=0;e<d.numRows;e++)p.push(Object.assign(Object.assign({},d.get(e).toJSON()),{key:e.toString()}));r({head:c,data:p}),i(null===(o=n.current)||void 0===o?void 0:o.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e),t.drop()}catch(t){null===(s=null==e?void 0:e.onError)||void 0===s||s.call(e,t)}}))})()}),[]),(0,U.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:n,children:o&&(0,U.jsx)(ko,{head:o.head,data:o.data,containerHeight:a,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines})})}(0,Ro.default)();var Go=I(708),Xo={};function Qo(e){var t,n;const o=(0,le.useRef)(null),[r,a]=(0,le.useState)(),[i,s]=(0,le.useState)();return(0,le.useEffect)((()=>{var t,n;const{tableConfig:r}=e,{header:i,rows:l=[]}=r||{};if(i){const n=i,r=[];l.forEach(((e,t)=>{const o={key:t.toString()};n.forEach(((t,n)=>{o[t]=e[n]})),r.push(o)})),a({head:n,data:r}),s(o.current.clientHeight),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}else null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,new Error("tableConfig.header is required"))}),[]),(0,U.jsx)("div",{ref:o,className:Go.L,children:r?(0,U.jsx)(ko,{head:r.head,data:r.data,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines,total:null===(n=e.tableConfig)||void 0===n?void 0:n.rowCount,containerHeight:i}):null})}Xo.styleTagTransform=re(),Xo.setAttributes=ee(),Xo.insert=Q().bind(null,"head"),Xo.domAPI=G(),Xo.insertStyleElement=ne(),V()(Go.A,Xo),Go.A&&Go.A.locals&&Go.A.locals;var Yo=I(690),er={};function tr(e){var t,n,o;const r=bo.default.resolvedLanguage||localStorage.getItem("i18nextLng")||"zh",{filePath:a,tableConfig:i,jsonConfig:s}=e,[l,d]=(0,le.useState)(!1),[c,p]=(0,le.useState)(!0),u=t=>{var n;p(!1),d(!0),console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},h=()=>{var t;p(!1),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)};let m=null;if(l)m=(0,U.jsx)("div",{className:Yo.LV,children:"zh"===r?"获取文件失败":"Failed to get file"});else if(i)m=(0,U.jsx)(Qo,Object.assign({},e,{onSuccess:h}));else if(s)m=(0,U.jsx)(qo,Object.assign({},e,{onError:u,onSuccess:h}));else if(a){const t=(0,so.getFileExt)(a),n=(0,U.jsx)("div",{className:Yo.D5,children:(0,U.jsx)(R.Spin,{})});let o=null,i=!0;switch(t){case"pdf":o=(0,U.jsx)(fo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"xlsx":case"csv":o=(0,U.jsx)(zo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"png":case"jpg":case"jpeg":o=(0,U.jsx)(So,Object.assign({},e,{onError:u,onSuccess:h}));break;case"mmd":case"md":o=(0,U.jsx)(Fo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"txt":o=(0,U.jsx)(To,Object.assign({},e,{onError:u,onSuccess:h}));break;case"parquet":o=(0,U.jsx)($o,Object.assign({},e,{onError:u,onSuccess:h}));break;case"jsonl":case"json":o=(0,U.jsx)(qo,Object.assign({},e,{onError:u,onSuccess:h}));break;default:i=!1}m=i?(0,U.jsxs)(U.Fragment,{children:[c&&n,o]}):(0,U.jsxs)("div",{className:Yo.LV,children:["zh"===r?"暂不支持":"Not supported"," ",t," ","zh"===r?"文件预览":"file preview"]})}return e.openInModal?(null===(t=null==e?void 0:e.modalProps)||void 0===t?void 0:t.show)?(0,U.jsx)(R.Modal,{open:!0,title:null===(n=null==e?void 0:e.modalProps)||void 0===n?void 0:n.title,className:Yo.qf,centered:!0,width:"100%",onCancel:null===(o=null==e?void 0:e.modalProps)||void 0===o?void 0:o.onCancel,footer:null,children:m}):null:m}function nr(e){const[t,n]=(0,le.useState)(0),[o,r]=(0,le.useState)(e.filePath),[a,i]=(0,le.useState)(e.tableConfig);return(0,le.useEffect)((()=>{o===e.filePath&&a===e.tableConfig||(r(e.filePath),i(e.tableConfig),n(t+1))}),[e.filePath,e.tableConfig]),o!==e.filePath||a!==e.tableConfig?null:(0,U.jsx)(tr,Object.assign({},e),t)}er.styleTagTransform=re(),er.setAttributes=ee(),er.insert=Q().bind(null,"head"),er.domAPI=G(),er.insertStyleElement=ne(),V()(Yo.Ay,er),Yo.Ay&&Yo.Ay.locals&&Yo.Ay.locals;const or=(e=>{var t={};return I.d(t,e),t})({default:()=>g.default});var rr=I(860),ar={};ar.styleTagTransform=re(),ar.setAttributes=ee(),ar.insert=Q().bind(null,"head"),ar.domAPI=G(),ar.insertStyleElement=ne(),V()(rr.A,ar),rr.A&&rr.A.locals&&rr.A.locals;const ir=(e=>{var t={};return I.d(t,e),t})({default:()=>y.default}),sr={zh:"已复制",en:"Copied"};function lr(e){const{showFeedback:t=!0,text:n,locale:o="zh"}=e;return(0,U.jsx)("span",{className:(0,ir.default)(rr.K,"data-hub-ui-copy-icon"),onClick:()=>{n&&((0,or.default)(n),t&&R.message.success(sr[o])),(null==e?void 0:e.onClick)&&e.onClick()},children:""})}function dr(e,t={showFeedback:!0,locale:"zh"}){const{showFeedback:n="true",locale:o="zh"}=t;e&&((0,or.default)(e),n&&R.message.success(sr[o]))}var cr=I(100),pr={};function ur(e){return(0,U.jsx)(R.Modal,Object.assign({},e,{wrapClassName:cr.wm,width:400}))}pr.styleTagTransform=re(),pr.setAttributes=ee(),pr.insert=Q().bind(null,"head"),pr.domAPI=G(),pr.insertStyleElement=ne(),V()(cr.Ay,pr),cr.Ay&&cr.Ay.locals&&cr.Ay.locals,ur.confirm=e=>{R.Modal.confirm(Object.assign({},e)).update({icon:null,closable:!0,width:400,wrapClassName:`${cr.DE}`})};var hr=I(989),mr={};mr.styleTagTransform=re(),mr.setAttributes=ee(),mr.insert=Q().bind(null,"head"),mr.domAPI=G(),mr.insertStyleElement=ne(),V()(hr.Ay,mr),hr.Ay&&hr.Ay.locals&&hr.Ay.locals;const fr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAAAXNSR0IArs4c6QAAAf1JREFUOE+lkz9oE3EUx7/vd0nbOPing5RSKJ0q+GdVUCkOLh2qQ4lLtfVsESlpTEsql2bIUNI2htSLONleKjqUc1BxE3QQCuJSKAg6aKfqIqiQao7mfq/cNXckscGAv+l+777v897v/b4/wn8uapQfyedbj1Kos2xL+3jnka1wOGzvp/0LMJtd6hYBoRFwFcCBStJvBh4TI6PF1C/VoBpAWi/0E/MzAC0NOttmlkOJ2Ohz778PSOceniehvG1mJEIop+9MDL93tC7ANE3l89fiBwC9zQBA+Gj96DmZSl0ou4D0ojFIhKd+MvMaE70mIFmJ3QVwFsA5T2NLOZCcHH3pAuYXjQUmTFdV/yVh9wpWVEBCEhsCyicAh3wNQdei6m0XMHfPWAVwpW66P1uZepyYRbzJwOGa4zFeaDH18h5AN1bAGK4REObaJGWcWEnwNBhaHeCRFlNHKh0sTwGU9QTMMEOgmyXiDSfWxnSqBF4B4ZKvIZpKRK/nXEDmQaHD3uFvVRUc45QIaK9c1XfeM5VnLNjS6kpO3tryfTCvF/LMHGnmGpn4fiJ6Y8L3gfORy5khSxTfADjzD8g7K/jnYmp8vFgDcDap/JODLbwzS406YeiBcmAmHr+27RXZ9zWms4VjCHAfQZwgyKAE1oOK/SoeGdus767hc25mFo5mF83NrRLVZKusAAAAAElFTkSuQmCC";function br({visiable:e,children:t,onClose:n}){const[o,r]=(0,le.useState)(!1);return(0,le.useEffect)((()=>{r(e)}),[e]),o?(0,U.jsxs)("div",{className:hr.LV,children:[(0,U.jsx)("div",{style:{backgroundImage:"url("+fr+")"},className:hr.Kk,onClick:()=>n()}),(0,U.jsx)("div",{className:hr.NI,children:t})]}):null}var wr=I(150),gr={};function yr(e){return(0,U.jsx)("div",{className:`${wr.cQ} ${"workflow"===e.type?wr._b:wr.Og}`,children:e.children})}function xr(e){return(0,U.jsx)("div",{className:`${wr.Rp} ${"workflow"===e.type?wr._b:wr.Og}`,children:e.children})}function vr(e){return(0,U.jsxs)("div",{children:["small"===(null==e?void 0:e.size)&&(0,U.jsx)(xr,Object.assign({},e)),(!(null==e?void 0:e.size)||"middle"===(null==e?void 0:e.size))&&(0,U.jsx)(yr,Object.assign({},e))]})}gr.styleTagTransform=re(),gr.setAttributes=ee(),gr.insert=Q().bind(null,"head"),gr.domAPI=G(),gr.insertStyleElement=ne(),V()(wr.Ay,gr),wr.Ay&&wr.Ay.locals&&wr.Ay.locals;const kr={confidential:"#FAAD14",public:"#53C31B",private:"#FE4D4F"};function jr(e){const{type:t="public",children:n}=e,o=kr[t];return(0,U.jsx)(R.Tag,{style:{backgroundColor:"#fff",border:`1px solid ${o}`,borderRadius:"4px",fontSize:"12px",color:`${o}`,padding:"0 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}const Nr={running:"#0061FF",failed:"#FE4D4F",success:"#53C31B",stopped:"#545B64",pending:"#FAAD14"};function Ar(e){const{type:t="running",children:n}=e,o=Nr[t];return(0,U.jsx)(R.Tag,{bordered:!1,style:{backgroundColor:`rgba(${(e=>{const t=parseInt(e.replace("#",""),16);return`${t>>16&255},${t>>8&255},${255&t}`})(o)},0.1)`,borderRadius:"4px",fontSize:"14px",color:`${o}`,padding:"3px 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}const zr=(e=>{var t={};return I.d(t,e),t})({BubbleMenu:()=>x.BubbleMenu,EditorProvider:()=>x.EditorProvider,Extension:()=>x.Extension,FloatingMenu:()=>x.FloatingMenu,generateJSON:()=>x.generateJSON,useCurrentEditor:()=>x.useCurrentEditor}),Er=(e=>{var t={};return I.d(t,e),t})({default:()=>v.default}),Cr=(e=>{var t={};return I.d(t,e),t})({default:()=>k.default}),Sr=(e=>{var t={};return I.d(t,e),t})({default:()=>j.default}),Mr=(e=>{var t={};return I.d(t,e),t})({default:()=>N.default}),Br=(e=>{var t={};return I.d(t,e),t})({default:()=>A.default}),Wr=(e=>{var t={};return I.d(t,e),t})({default:()=>z.default}),Kr=(e=>{var t={};return I.d(t,e),t})({Table:()=>E.Table}),Or=(e=>{var t={};return I.d(t,e),t})({default:()=>C.default}),Zr=(e=>{var t={};return I.d(t,e),t})({default:()=>S.default}),Jr=(e=>{var t={};return I.d(t,e),t})({TextStyle:()=>M.TextStyle}),Pr=(e=>{var t={};return I.d(t,e),t})({default:()=>B.default}),Fr=zr.Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"],defaultFontSize:"14px"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:this.options.defaultFontSize,parseHTML:e=>e.style.fontSize||this.options.defaultFontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),Lr=(e=>{var t={};return I.d(t,e),t})({Plugin:()=>W.Plugin,PluginKey:()=>W.PluginKey}),Tr=(e=>{var t={};return I.d(t,e),t})({Link:()=>K.Link});function Ir(e,t,n){if(!t.type.startsWith("image/"))return!1;const o=new FileReader;return o.onload=o=>{var r;const a=null===(r=o.target)||void 0===r?void 0:r.result;e.commands.insertContent(`<p><img class="inline" src="${a}" alt="${t.name}" title="${t.name}"/></p>`),null==n||n()},o.readAsDataURL(t),!1}const Dr=(e=>{var t={};return I.d(t,e),t})({marked:()=>O.marked}),Ur="\x3c!--- this is file is already parsed --\x3e",qr=new class{constructor(){this.patterns={headers:/^#{1,6}\s+.+$/gm,emphasis:/(\*{1,2}|_{1,2}).+?\1/g,code:/(```[\s\S]*?```|`[^`]+`)/g,links:/\[([^\]]+)\]\(([^)]+)\)/g,blockquotes:/^>\s+.+$/gm,lists:/^(\s*[-*+]\s+|\s*\d+\.\s+).+$/gm,tables:/^\|.+\|$/gm,horizontalRules:/^(-{3,}|\*{3,}|_{3,})$/gm,images:/!\[([^\]]*)\]\(([^)]+)\)/g}}isNotMarkdown(e,t=10){return!e||0===e.trim().length||this.calculateMarkdownScore(e)<t}calculateMarkdownScore(e){const t=e.split("\n").filter((e=>e.trim().length>0));let n=0,o=0;Object.entries(this.patterns).forEach((([t,o])=>{const r=e.match(o)||[];n+=r.length})),o=t.length;const r=/```[\s\S]*?```/g.test(e),a=/`[^`]+`/g.test(e),i=/\[([^\]]+)\]\(([^)]+)\)/g.test(e),s=/^#{1,6}\s+/gm.test(e);r&&(n+=2),a&&(n+=1),i&&(n+=2),s&&(n+=2);const l=o>0?Math.min(100,n/o*100):0;return Math.round(l)}analyzeMarkdownPatterns(e){const t={};return Object.entries(this.patterns).forEach((([n,o])=>{const r=e.match(o)||[];t[n]=r.length})),t}isPlainText(e){return!/[#*_`>[\](){}|~-]/.test(e)||![/^#{1,6}\s/gm,/\*\*.*\*\*/g,/\*[^*]+\*/g,/_[^_]+_/g,/`[^`]+`/g,/```[\s\S]*?```/g,/\[.*\]\(.*\)/g,/^>\s/gm,/^[-*+]\s/gm,/^\d+\.\s/gm].some((t=>t.test(e)))}},Hr=zr.Extension.create({name:"pasteHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Lr.Plugin({key:new Lr.PluginKey("pasteHandler"),props:{handlePaste(t,n){var o,r;const a=null===(o=n.clipboardData)||void 0===o?void 0:o.files;return a&&a.length>0?Rr(e,a):function(e,t){if(function(e,t=10){return qr.isNotMarkdown(e,t)}(t))return void e.commands.insertContent(t);const n=function(e){if(e.startsWith(Ur))return e.slice(40);const t=function(e){return e.replace(/\n<\/code><\/pre>/g,"</code></pre>")}(function(e){return e.replace(/align="center"/g,'style="text-align: center;"')}(Dr.marked.parse(e,{async:!1})));return Ur+function(e){return e.replace(/<div style="([^"]+)">(.*?)<\/div>/g,((e,t,n)=>n.replace(/(<[^>]+>)/g,(e=>e.includes('style="')?e.replace('style="',`style="${t}; `):e.replace(">",` style="${t}">`)))))}(t)}(t),o=(0,zr.generateJSON)(n,[Hr,Wr.default,Tr.Link.configure({openOnClick:!1})]);e.commands.insertContent(o,{parseOptions:{preserveWhitespace:!1}})}(e,(null===(r=n.clipboardData)||void 0===r?void 0:r.getData("text"))||""),!0}}})]}});function Rr(e,t){for(let n=0;n<t.length;n++)Ir(e,t[n])}const _r=(e=>{var t={};return I.d(t,e),t})({Plugin:()=>Z.Plugin,PluginKey:()=>Z.PluginKey}),Vr=zr.Extension.create({name:"dropHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new _r.Plugin({key:new _r.PluginKey("dropHandler"),props:{handleDrop(t,n){var o;const r=null===(o=n.dataTransfer)||void 0===o?void 0:o.files;return r&&r.length>0&&Rr(e,r),!0}}})]}}),$r=(e=>{var t={};return I.d(t,e),t})({all:()=>J.all,createLowlight:()=>J.createLowlight}),Gr=(e=>{var t={};return I.d(t,e),t})({default:()=>P.default}),Xr=(e=>{var t={};return I.d(t,e),t})({default:()=>F.default}),Qr=(0,$r.createLowlight)($r.all),Yr=[Vr,Hr,Fr,Mr.default,Jr.TextStyle,Cr.default,Xr.default,Sr.default,Kr.Table.configure({resizable:!0}),Wr.default.configure({codeBlock:!1}),Gr.default.configure({lowlight:Qr}),Or.default.configure({multicolor:!0}),Zr.default.configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"max-w-96 h-auto inline mb-0"}}),Er.default.configure({types:[Jr.TextStyle.name,Pr.default.name]}),Br.default.configure({types:["heading","paragraph",Sr.default.name,Cr.default.name]})],ea=[...Yr,Tr.Link.configure({openOnClick:!1}).extend({inclusive:!1})],ta=[...Yr,Tr.Link.configure({openOnClick:!0})];var na=I(444),oa={};oa.styleTagTransform=re(),oa.setAttributes=ee(),oa.insert=Q().bind(null,"head"),oa.domAPI=G(),oa.insertStyleElement=ne(),V()(na.A,oa),na.A&&na.A.locals&&na.A.locals;const ra={bold:{command:"toggleBold",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42"})}))}),{className:"text-xl"})},italic:{command:"toggleItalic",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})}))}),{className:"text-xl"})},strike:{command:"toggleStrike",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M7.2 9.8c-1.2-2.3.5-5 2.9-5.5c3.1-1 7.6.4 7.5 4.2h-3c0-.3-.1-.6-.1-.8c-.2-.6-.6-.9-1.2-1.1c-.8-.3-2.1-.2-2.8.3C9 8.2 10.4 9.5 12 10H7.4c-.1-.1-.1-.2-.2-.2M21 13v-2H3v2h9.6c.2.1.4.1.6.2c.6.3 1.1.5 1.3 1.1c.1.4.2.9 0 1.3c-.2.5-.6.7-1.1.9c-1.8.5-4-.2-3.9-2.4h-3c-.1 2.6 2.1 4.4 4.5 4.7c3.8.8 8.3-1.6 6.3-5.9z"})}))}),{className:"text-xl"})},underline:{command:"toggleUnderline",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5 21h14v-2H5zm7-4a6 6 0 0 0 6-6V3h-2.5v8a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 11V3H6v8a6 6 0 0 0 6 6"})}))}),{className:"text-xl"})}};function aa({editor:e}){return(0,U.jsx)(U.Fragment,{children:Object.keys(ra).map((n=>function(n){return(0,U.jsx)(R.Button,{size:"small",type:"text",icon:ra[n].icon,onClick:(o=ra[n].command,()=>e.chain().focus()[o]().run()),disabled:t(ra[n].command),className:e.isActive(n)?"bg-blue-5 text-white":""},n);var o}(n)))});function t(t){return!e.can().chain().focus()[t]().run()}}const ia=function(e){return(0,U.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,U.jsx)("path",{d:"M96 768h832v160H96z",fill:"currentColor"}),(0,U.jsx)("path",{d:"M443.862627 224.692457m45.254834 45.254834l135.764502 135.764502q45.254834 45.254834 0 90.509668l-135.764502 135.764502q-45.254834 45.254834-90.509668 0l-135.764502-135.764502q-45.254834-45.254834 0-90.509668l135.764502-135.764502q45.254834-45.254834 90.509668 0Z",fill:"#FFFFFF"}),(0,U.jsx)("path",{d:"M398.176 225.088L318.976 145.92 364.224 100.64l118.304 118.272c2.272 1.76 4.48 3.68 6.592 5.76l181.024 181.024a64 64 0 0 1 0 90.496l-181.024 181.024a64 64 0 0 1-90.528 0L217.6 496.192a64 64 0 0 1 0-90.496l180.576-180.608z m170.144 169.28l-0.448 0.416-124.416-124.416-175.136 175.104h351.104L568.32 394.368zM752 704a80 80 0 0 1-80-80c0-44.16 67.68-124.672 80-124.672 12.32 0 80 80.48 80 124.672a80 80 0 0 1-80 80z",fill:"#2c2c2c"})]}))},sa=function(e){return(0,U.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,U.jsx)("path",{d:"M128 768h768v128H128z",fill:"currentColor"}),(0,U.jsx)("path",{d:"M513.728 64.256l1.28 0.128h1.152l1.28 0.192a43.584 43.584 0 0 1 32.32 20.096l3.2 6.08 235.712 550.656a44.8 44.8 0 0 1-16.768 55.232l-7.616 3.968a43.52 43.52 0 0 1-54.208-17.152l-2.944-5.76-63.104-147.328H380.224l-62.976 147.2a43.52 43.52 0 0 1-51.072 24.96l-6.592-2.304-1.28-0.64a44.8 44.8 0 0 1-22.592-58.304l235.712-550.656a43.584 43.584 0 0 1 42.304-26.368z m91.904 376.512l-93.44-218.496L418.56 440.768h187.008z",fill:"#2c2c2c"})]}))},la=["#24A36F","#1677FF","#722ED1","#F5222D","#FA8C16","#FADB14","#A0D911"],da=[{label:"预设颜色",defaultOpen:!0,colors:["#00000000",...la]}],ca=[{label:"预设颜色",defaultOpen:!0,colors:["#000000","#FFFFFF",...la]}],pa=[{label:"12px",value:"12px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"}];function ua({editor:e}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.ColorPicker,{size:"small",className:"flex-shrink-0",presets:da,value:e.getAttributes("highlight").color||"#00000000",onChange:function(t){const n=t.toHexString();"#00000000"===n?e.chain().focus().toggleHighlight().run():e.chain().focus().toggleHighlight({color:n}).run()},showText:()=>(0,U.jsx)(ia,{color:e.getAttributes("highlight").color,className:"text-base w-4 h-4"})}),(0,U.jsx)(R.ColorPicker,{size:"small",disabledAlpha:!0,className:"flex-shrink-0",presets:ca,value:e.getAttributes("textStyle").color||"#000000",onChange:function(t){const n=t.toHexString();e.chain().focus().setColor(n).run()},showText:()=>(0,U.jsx)(sa,{color:e.getAttributes("textStyle").color,className:"text-base w-4 h-4"})}),(0,U.jsx)(R.Select,{size:"small",options:pa,value:e.getAttributes("textStyle").fontSize||"14px",popupMatchSelectWidth:!1,onChange:function(t){var n;null===(n=e.chain().focus().setFontSize(t))||void 0===n||n.run()}})]})}const ha=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M17 20v-3h-3v-2h3v-3h2v3h3v2h-3v3zm-6-3H7q-2.075 0-3.537-1.463T2 12t1.463-3.537T7 7h4v2H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h8v2zm14-1h-2q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12"})}))},ma=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"m19.25 16.45l-1.5-1.55q1-.275 1.625-1.063T20 12q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12q0 1.425-.737 2.625T19.25 16.45M15.85 13l-2-2H16v2zm3.95 9.6L1.4 4.2l1.4-1.4l18.4 18.4zM11 17H7q-2.075 0-3.537-1.463T2 12q0-1.725 1.05-3.075t2.7-1.775L7.6 9H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h1.625l1.975 2z"})}))};function fa({editor:e,inline:t=!1}){const[n,o]=(0,le.useState)(""),[r,a]=(0,le.useState)(""),[i,s]=(0,le.useState)(!1);return(0,U.jsx)(U.Fragment,{children:e.isActive("link")?(0,U.jsx)(R.Button,{size:"small",type:"text",title:"取消链接",className:"bg-blue-5 text-white",icon:(0,U.jsx)(ma,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()}):(0,U.jsx)(R.Popover,{open:i,trigger:"click",placement:"bottom",content:(0,U.jsxs)(R.Space,{children:[t?null:(0,U.jsxs)(U.Fragment,{children:["描述: ",(0,U.jsx)(R.Input,{value:n,onChange:e=>o(e.target.value)})]}),"链接: ",(0,U.jsx)(R.Input,{value:r,onChange:e=>a(e.target.value)}),(0,U.jsx)(R.Button,{type:"primary",onClick:function(){const o=e.chain().focus().setLink({href:"https://"+r});t?o.run():o.command((({tr:e})=>(e.insertText(n||r),!0))).run(),s(!1)},disabled:!r,children:"确认"})]}),onOpenChange:function(e){s(e),e||a("")},children:(0,U.jsx)(R.Button,{size:"small",type:"text",title:"添加链接",icon:(0,U.jsx)(ha,{className:"text-xl"})})})})}const ba={left:{type:"left",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h13M4 14h16M4 18h5.5"})}))}),{className:"text-xl"})},center:{type:"center",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h10M4 14h16M9 18h6"})}))}),{className:"text-xl"})},right:{type:"right",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h13M4 14h16m-6 4h6"})}))}),{className:"text-xl"})},justify:{type:"justify",icon:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"})}))}),{className:"text-xl"})}};function wa({editor:e}){return(0,U.jsx)(U.Fragment,{children:Object.values(ba).map((({type:t,icon:n})=>(0,U.jsx)(R.Button,{size:"small",type:"text",icon:n,onClick:()=>e.chain().focus().setTextAlign(t).run(),className:e.isActive({textAlign:t})?"bg-blue-5 text-white":""},t)))})}const ga=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z"})}))};function ya({editor:e}){return(0,U.jsxs)(U.Fragment,{children:[e.isActive("link")&&(0,U.jsx)(xa,{editor:e}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,U.jsx)(R.Button,{size:"small",type:"text",title:"取消链接",icon:(0,U.jsx)(ma,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()})]})}function xa({editor:e}){const[t,n]=(0,le.useState)(e.getAttributes("link").href);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.Input,{value:t,size:"small",onChange:e=>n(e.target.value)}),(0,U.jsx)(R.Button,{size:"small",type:"text",title:"修改链接",icon:(0,U.jsx)(ga,{className:"text-xl"}),onClick:function(){e.chain().extendMarkRange("link").setLink({href:"https://"+t}).run()}})]})}function va({className:e}){const{editor:t}=(0,zr.useCurrentEditor)();return t?(0,U.jsx)(zr.BubbleMenu,{editor:t,tippyOptions:{placement:"bottom-start"},children:(0,U.jsxs)(R.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[(0,U.jsx)(aa,{editor:t}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,U.jsx)(ua,{editor:t}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,U.jsx)(wa,{editor:t}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),t.isActive("link")?(0,U.jsx)(ya,{editor:t}):(0,U.jsx)(fa,{editor:t,inline:!0})]})}):null}function ka({className:e}){const{editor:t}=(0,zr.useCurrentEditor)();return t?(0,U.jsx)(zr.FloatingMenu,{editor:t,tippyOptions:{placement:"bottom-start"},shouldShow:()=>t.isActive("link"),children:(0,U.jsx)(R.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:(0,U.jsx)(ya,{editor:t})})}):null}function ja(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2zM5 20q-.825 0-1.412-.587T3 18t.588-1.412T5 16t1.413.588T7 18t-.587 1.413T5 20m0-6q-.825 0-1.412-.587T3 12t.588-1.412T5 10t1.413.588T7 12t-.587 1.413T5 14m0-6q-.825 0-1.412-.587T3 6t.588-1.412T5 4t1.413.588T7 6t-.587 1.413T5 8"})}))}const Na=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 22v-1.5h2.5v-.75H4v-1.5h1.5v-.75H3V16h3q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7v-2.75q0-.425.288-.712T4 11.25h1.5v-.75H3V9h3q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75H7V15zm1.5-7V3.5H3V2h3v6zM9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2z"})}))};function Aa({editor:e}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(ja,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?"bg-blue-5 text-white":""}),(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(Na,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedList")?"bg-blue-5 text-white":""})]})}const za=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5q-.825 0-1.412-.587T3 19M5 9h14V5H5zm5.325 5h3.35v-3h-3.35zm0 5h3.35v-3h-3.35zM5 14h3.325v-3H5zm10.675 0H19v-3h-3.325zM5 19h3.325v-3H5zm10.675 0H19v-3h-3.325z"})}))};function Ea({editor:e}){const[t,n]=(0,le.useState)(3),[o,r]=(0,le.useState)(3);return(0,U.jsx)(R.Popover,{trigger:"click",title:"插入表格",content:(0,U.jsxs)(R.Flex,{gap:8,align:"center",children:[(0,U.jsxs)("div",{children:["行数: ",(0,U.jsx)(R.InputNumber,{min:1,value:t,onChange:e=>n(e||1)})]}),(0,U.jsxs)("div",{children:["列数: ",(0,U.jsx)(R.InputNumber,{min:1,value:o,onChange:e=>r(e||1)})]}),(0,U.jsx)(R.Button,{type:"primary",onClick:()=>e.chain().focus().insertTable({rows:t,cols:o,withHeaderRow:!0}).run(),children:"确认"})]}),children:(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(za,{className:"text-xl "})})})}function Ca(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h9v2H5v14h14v-9h2v9q0 .825-.587 1.413T19 21zM17 9V7h-2V5h2V3h2v2h2v2h-2v2zM6 17h12l-3.75-5l-3 4L9 13zM5 5v14z"})}))}function Sa({editor:e}){const[t,n]=(0,le.useState)(!1),[o,r]=(0,le.useState)(""),[a,i]=(0,le.useState)(""),s={accept:"image/*",showUploadList:!1,beforeUpload:t=>Ir(e,t,(()=>n(!1)))};return(0,U.jsx)(R.Popover,{open:t,trigger:"click",placement:"bottom",content:(0,U.jsxs)(R.Space,{direction:"vertical",style:{width:"100%"},children:[(0,U.jsxs)("div",{children:["图片链接: ",(0,U.jsx)(R.Input,{value:o,onChange:e=>r(e.target.value)})]}),(0,U.jsxs)("div",{children:["图片描述: ",(0,U.jsx)(R.Input,{value:a,onChange:e=>i(e.target.value)})]}),(0,U.jsxs)(R.Flex,{justify:"space-between",children:[(0,U.jsx)(R.Upload,Object.assign({},s,{children:(0,U.jsx)(R.Button,{children:"上传本地图片"})})),(0,U.jsx)(R.Button,{type:"primary",onClick:function(){o&&(e.chain().focus().setImage({src:o,alt:a,title:a}).run(),n(!1))},children:"确认"})]})]}),onOpenChange:function(e){n(e),e||r("")},children:(0,U.jsx)(R.Button,{size:"small",type:"text",className:"",icon:(0,U.jsx)(Ca,{className:"text-xl"})})})}const Ma=[{label:"正文",value:"paragraph"},{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}],Ba={paragraph:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M9 20v-6q-2.075 0-3.537-1.463T4 9t1.463-3.537T9 4h9v2h-2v14h-2V6h-3v14z"})}))}),{className:"text-xl "}),1:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z"})}))}),{className:"text-xl"}),2:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z"})}))}),{className:"text-xl"}),3:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),4:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z"})}))}),{className:"text-xl"}),5:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-6V7h8v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),6:(0,U.jsx)((function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm12 0q-.825 0-1.412-.587T13 15V9q0-.825.588-1.412T15 7h6v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17zm0-4v2h4v-2z"})}))}),{className:"text-xl"})};function Wa({editor:e}){return(0,U.jsx)(R.Select,{size:"small",options:Ma,defaultValue:"paragraph",labelRender:function(){const t=function(){if(e.isActive("paragraph"))return"paragraph";const t=[1,2,3,4,5,6];for(const n of t)if(e.isActive("heading",{level:n}))return n;return"paragraph"}();return(0,U.jsx)(U.Fragment,{children:Ba[t]})},optionRender:e=>function({label:e,value:t}){return(0,U.jsxs)(R.Flex,{align:"center",gap:4,children:[Ba[t],e]})}(e.data),popupMatchSelectWidth:!1,onChange:function(t){"paragraph"===t?e.chain().focus().setParagraph().run():e.chain().focus().toggleHeading({level:Number(t)}).run()}})}const Ka=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"m8 18l-6-6l6-6l1.425 1.425l-4.6 4.6L9.4 16.6zm8 0l-1.425-1.425l4.6-4.6L14.6 7.4L16 6l6 6z"})}))},Oa=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8zm5.82 0L16 8l-4.59 4.6L10 11.18L13.18 8L10 4.82zM22 6v12c0 1.11-.89 2-2 2H4a2 2 0 0 1-2-2v-4h2v4h16V6h-2.97V4H20c1.11 0 2 .89 2 2"})}))},Za=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M5.7 18L8 14q-1.65 0-2.825-1.175T4 10t1.175-2.825T8 6t2.825 1.175T12 10q0 .575-.137 1.063T11.45 12L8 18zm9 0l2.3-4q-1.65 0-2.825-1.175T13 10t1.175-2.825T17 6t2.825 1.175T21 10q0 .575-.137 1.063T20.45 12L17 18z"})}))},Ja=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M4 13v-2h16v2z"})}))};function Pa({editor:e}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(Ka,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCode().run(),disabled:!e.can().chain().focus().toggleCode().run(),className:e.isActive("code")?"bg-blue-5 text-white":""}),(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(Oa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCodeBlock().run(),className:e.isActive("codeBlock")?"bg-blue-5 text-white":""}),(0,U.jsx)(R.Button,{type:"text",size:"small",icon:(0,U.jsx)(Za,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBlockquote().run(),className:e.isActive("blockquote")?"bg-blue-5 text-white":""}),(0,U.jsx)(R.Button,{type:"text",size:"small",className:"",icon:(0,U.jsx)(Ja,{className:"text-xl"}),onClick:()=>e.chain().focus().setHorizontalRule().run()})]})}const Fa=[{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}];function La({className:e}){const{editor:t}=(0,zr.useCurrentEditor)();return t?(0,U.jsx)(zr.FloatingMenu,{editor:t,tippyOptions:{placement:"top-start"},children:(0,U.jsxs)(R.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[Fa.map((({value:e})=>(0,U.jsx)(R.Button,{type:"text",size:"small",icon:Ba[e],onClick:()=>t.chain().focus().toggleHeading({level:Number(e)}).run(),className:t.isActive("heading",{level:Number(e)})?"bg-blue-5 text-white":""},e))),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(Pa,{editor:t}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(Aa,{editor:t}),(0,U.jsx)(Ea,{editor:t}),(0,U.jsx)(Sa,{editor:t})]})}):null}const Ta=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z"})}))},Ia=function(e){return(0,U.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,U.jsx)("path",{fill:"currentColor",d:"M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z"})}))};function Da({editor:e}){const t=!e.can().chain().focus().undo().run(),n=!e.can().chain().focus().redo().run();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R.Button,{type:"text",size:"small",disabled:t,icon:(0,U.jsx)(Ia,{className:"text-xl "}),onClick:()=>e.chain().focus().undo().run()}),(0,U.jsx)(R.Button,{size:"small",type:"text",disabled:n,icon:(0,U.jsx)(Ta,{className:"text-xl "}),onClick:()=>e.chain().focus().redo().run()})]})}const Ua=(0,le.forwardRef)((function(e,t){const{editor:n}=(0,zr.useCurrentEditor)();return(0,le.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),n?(0,U.jsxs)(R.Flex,{gap:8,wrap:!0,align:"center",className:`p-2 border border-gray-300 mb-4 sticky z-10 bg-white ${e.className}`,children:[(0,U.jsx)(Da,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(aa,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(Wa,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(ua,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(wa,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(Pa,{editor:n}),(0,U.jsx)(fa,{editor:n}),(0,U.jsx)(R.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,U.jsx)(Aa,{editor:n}),(0,U.jsx)(Ea,{editor:n}),(0,U.jsx)(Sa,{editor:n})]}):null})),qa=(0,le.forwardRef)((function(e,t){const{editor:n}=(0,zr.useCurrentEditor)();return(0,le.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),(0,U.jsx)(U.Fragment,{})}));var Ha=I(383),Ra={};Ra.styleTagTransform=re(),Ra.setAttributes=ee(),Ra.insert=Q().bind(null,"head"),Ra.domAPI=G(),Ra.insertStyleElement=ne(),V()(Ha.A,Ra),Ha.A&&Ha.A.locals&&Ha.A.locals;var _a=I(311),Va={};Va.styleTagTransform=re(),Va.setAttributes=ee(),Va.insert=Q().bind(null,"head"),Va.domAPI=G(),Va.insertStyleElement=ne(),V()(_a.A,Va),_a.A&&_a.A.locals&&_a.A.locals;var $a=I(512),Ga={};Ga.styleTagTransform=re(),Ga.setAttributes=ee(),Ga.insert=Q().bind(null,"head"),Ga.domAPI=G(),Ga.insertStyleElement=ne(),V()($a.A,Ga),$a.A&&$a.A.locals&&$a.A.locals;const Xa=(0,le.forwardRef)((function({content:e,classNames:t},n){const o=(0,le.useRef)(null);return(0,le.useImperativeHandle)(n,(()=>({getContent:()=>o.current?o.current.getContent():""}))),(0,U.jsx)("div",{className:"tiptap-container",children:(0,U.jsxs)(zr.EditorProvider,{immediatelyRender:!1,content:e,extensions:ea,slotBefore:(0,U.jsx)(Ua,{className:null==t?void 0:t.fixedMenu}),editorContainerProps:{className:`prose max-w-none p-4 border border-gray-300 min-h-[20rem] ${null==t?void 0:t.editorContainer}`},children:[(0,U.jsx)(qa,{ref:o}),(0,U.jsx)(va,{className:null==t?void 0:t.bubbleMenu}),(0,U.jsx)(ka,{className:null==t?void 0:t.linkFloatingMenu}),(0,U.jsx)(La,{className:null==t?void 0:t.paragraphFloatingMenu})]})})}));function Qa({content:e}){return(0,U.jsx)("div",{className:"tiptap-container",children:(0,U.jsx)(zr.EditorProvider,{immediatelyRender:!1,editable:!1,content:e,extensions:ta,parseOptions:{preserveWhitespace:"full"},editorContainerProps:{className:"prose max-w-none"}})})}var Ya=D.vh,ei=D.NF,ti=D.LZ,ni=D.QR,oi=D.dA,ri=D.Lq,ai=D.Bx,ii=D.l0,si=D.Ow,li=D.Y9,di=D.ly,ci=D.hC,pi=D.Wg,ui=D.LM,hi=D._2,mi=D.WI,fi=D.C;export{Ya as AuthTag,ei as BenchCard,ti as ConfirmAgain,ni as Copy,oi as FilePreview,ri as FileUploadDrawer,ai as FileUploadModal,ii as FileUploader,si as FloatingLayer,li as Header,di as InputTag,ci as StatusTag,pi as TipTapReader,ui as Tiptap,hi as UploadDrawerUploadStoreProvider,mi as UploadStoreProvider,fi as copy};
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"antd";import*as n from"react";import*as o from"@ant-design/icons";import*as r from"axios";import*as a from"jotai";import*as i from"jotai-scope";import*as s from"@zjlab-fe/util";import*as l from"i18next";import*as d from"chardet";import*as c from"react-markdown";import*as p from"rehype-raw";import*as u from"remark-gfm";import*as h from"remark-math";import*as m from"rehype-mathjax";import*as f from"react-json-view";import*as b from"react-error-boundary";import*as w from"arrow-js-ffi";import*as g from"parquet-wasm";import*as y from"copy-to-clipboard";import*as x from"classnames";import*as v from"@tiptap/react";import*as j from"@tiptap/extension-color";import*as k from"@tiptap/extension-table-cell";import*as N from"@tiptap/extension-table-header";import*as A from"@tiptap/extension-table-row";import*as z from"@tiptap/extension-text-align";import*as E from"@tiptap/starter-kit";import*as C from"@tiptap/extension-table";import*as S from"@tiptap/extension-highlight";import*as M from"@tiptap/extension-image";import*as B from"@tiptap/extension-text-style";import*as O from"@tiptap/extension-list-item";import*as W from"@tiptap/pm/state";import*as Z from"@tiptap/extension-link";import*as K from"marked";import*as J from"prosemirror-state";import*as P from"lowlight";import*as F from"@tiptap/extension-code-block-lowlight";import*as L from"@tiptap/extension-underline";var T={868:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-default-drag-area {margin-bottom: 1.25rem;display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 1rem;border-radius: 10px;border-width: 1px;border-style: dashed;border-color: rgb(23 117 254 / 0.4);padding-top: 1rem;padding-bottom: 1rem\n}.zjlab-fe-data-hub-ui-default-drag-area:hover {--tw-border-opacity: 1;border-color: rgb(23 117 254 / var(--tw-border-opacity))\n}",""]);const s=i},884:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.zjlab-fe-data-hub-ui-file-uploader .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.zjlab-fe-data-hub-ui-file-uploader .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .absolute{\nposition: absolute;}.zjlab-fe-data-hub-ui-file-uploader .relative{\nposition: relative;}.zjlab-fe-data-hub-ui-file-uploader .sticky{\nposition: sticky;}.zjlab-fe-data-hub-ui-file-uploader .right-0{\nright: 0px;}.zjlab-fe-data-hub-ui-file-uploader .z-10{\nz-index: 10;}.zjlab-fe-data-hub-ui-file-uploader .m-0{\nmargin: 0px;}.zjlab-fe-data-hub-ui-file-uploader .m-1{\nmargin: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.zjlab-fe-data-hub-ui-file-uploader .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-0{\nmargin-bottom: 0px;}.zjlab-fe-data-hub-ui-file-uploader .mb-2{\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-4{\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-5{\nmargin-bottom: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mr-1{\nmargin-right: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-20{\nmargin-top: 5rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-4{\nmargin-top: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .block{\ndisplay: block;}.zjlab-fe-data-hub-ui-file-uploader .\\!inline{\ndisplay: inline !important;}.zjlab-fe-data-hub-ui-file-uploader .inline{\ndisplay: inline;}.zjlab-fe-data-hub-ui-file-uploader .flex{\ndisplay: flex;}.zjlab-fe-data-hub-ui-file-uploader .table{\ndisplay: table;}.zjlab-fe-data-hub-ui-file-uploader .flow-root{\ndisplay: flow-root;}.zjlab-fe-data-hub-ui-file-uploader .hidden{\ndisplay: none;}.zjlab-fe-data-hub-ui-file-uploader .h-4{\nheight: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .h-5{\nheight: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .h-6{\nheight: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .h-8{\nheight: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .h-auto{\nheight: auto;}.zjlab-fe-data-hub-ui-file-uploader .max-h-72{\nmax-height: 18rem;}.zjlab-fe-data-hub-ui-file-uploader .min-h-\\[20rem\\]{\nmin-height: 20rem;}.zjlab-fe-data-hub-ui-file-uploader .w-4{\nwidth: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .w-40{\nwidth: 10rem;}.zjlab-fe-data-hub-ui-file-uploader .w-5{\nwidth: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .w-6{\nwidth: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-96{\nmax-width: 24rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-none{\nmax-width: none;}.zjlab-fe-data-hub-ui-file-uploader .flex-shrink-0{\nflex-shrink: 0;}.zjlab-fe-data-hub-ui-file-uploader .cursor-pointer{\ncursor: pointer;}.zjlab-fe-data-hub-ui-file-uploader .items-center{\nalign-items: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-center{\njustify-content: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-between{\njustify-content: space-between;}.zjlab-fe-data-hub-ui-file-uploader .gap-1{\ngap: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .gap-4{\ngap: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .overflow-y-auto{\noverflow-y: auto;}.zjlab-fe-data-hub-ui-file-uploader .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.zjlab-fe-data-hub-ui-file-uploader .rounded{\nborder-radius: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .rounded-md{\nborder-radius: 0.375rem;}.zjlab-fe-data-hub-ui-file-uploader .border{\nborder-width: 1px;}.zjlab-fe-data-hub-ui-file-uploader .border-solid{\nborder-style: solid;}.zjlab-fe-data-hub-ui-file-uploader .border-dashed{\nborder-style: dashed;}.zjlab-fe-data-hub-ui-file-uploader .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .p-1{\npadding: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .p-2{\npadding: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .p-4{\npadding: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.zjlab-fe-data-hub-ui-file-uploader .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .pr-2{\npadding-right: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-center{\ntext-align: center;}.zjlab-fe-data-hub-ui-file-uploader .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.zjlab-fe-data-hub-ui-file-uploader .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.zjlab-fe-data-hub-ui-file-uploader .italic{\nfont-style: italic;}.zjlab-fe-data-hub-ui-file-uploader .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .underline{\ntext-decoration-line: underline;}.zjlab-fe-data-hub-ui-file-uploader .opacity-0{\nopacity: 0;}.zjlab-fe-data-hub-ui-file-uploader .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.zjlab-fe-data-hub-ui-file-uploader .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.zjlab-fe-data-hub-ui-file-uploader .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.zjlab-fe-data-hub-ui-file-uploader .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.zjlab-fe-data-hub-ui-file-uploader *, .zjlab-fe-data-hub-ui-file-uploader ::before, .zjlab-fe-data-hub-ui-file-uploader ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.zjlab-fe-data-hub-ui-file-uploader ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader *,\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader html,\n.zjlab-fe-data-hub-ui-file-uploader :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader b,\n.zjlab-fe-data-hub-ui-file-uploader strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader code,\n.zjlab-fe-data-hub-ui-file-uploader kbd,\n.zjlab-fe-data-hub-ui-file-uploader samp,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader sub,\n.zjlab-fe-data-hub-ui-file-uploader sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sub {\n bottom: -0.25em;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input,\n.zjlab-fe-data-hub-ui-file-uploader optgroup,\n.zjlab-fe-data-hub-ui-file-uploader select,\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'button\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'reset\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-inner-spin-button,\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader blockquote,\n.zjlab-fe-data-hub-ui-file-uploader dl,\n.zjlab-fe-data-hub-ui-file-uploader dd,\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6,\n.zjlab-fe-data-hub-ui-file-uploader hr,\n.zjlab-fe-data-hub-ui-file-uploader figure,\n.zjlab-fe-data-hub-ui-file-uploader p,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n margin: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader fieldset {\n margin: 0;\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader legend {\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ol,\n.zjlab-fe-data-hub-ui-file-uploader ul,\n.zjlab-fe-data-hub-ui-file-uploader menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.zjlab-fe-data-hub-ui-file-uploader dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader input::-moz-placeholder, .zjlab-fe-data-hub-ui-file-uploader textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader input::placeholder,\n.zjlab-fe-data-hub-ui-file-uploader textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.zjlab-fe-data-hub-ui-file-uploader :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader svg,\n.zjlab-fe-data-hub-ui-file-uploader video,\n.zjlab-fe-data-hub-ui-file-uploader canvas,\n.zjlab-fe-data-hub-ui-file-uploader audio,\n.zjlab-fe-data-hub-ui-file-uploader iframe,\n.zjlab-fe-data-hub-ui-file-uploader embed,\n.zjlab-fe-data-hub-ui-file-uploader object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.zjlab-fe-data-hub-ui-file-uploader [hidden] {\n display: none;\n}}@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-65-Medium";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-65-Medium.ttf") format("truetype")}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},915:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-modal .ant-modal-title,.zjlab-fe-data-hub-ui-modal .ant-modal-confirm-title {\n font-family: AlibabaPuHuiTi-3-65-Medium;\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem\n}",""]);const s=i},150:(e,t,n)=>{n.d(t,{Ay:()=>p,Og:()=>d,Rp:()=>c,_b:()=>l,cQ:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".QmFviLMZ5ad2m0mLbKkP{width:349px;height:280px;border-radius:10px 10px 10px 10px}.ZJu8EO9kRspWAqZAD0d_{background:linear-gradient(to top, #ffffff 0%, #f6f9fe 100%);border:1px solid #edf2fc;-o-border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1;border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1}.ZJu8EO9kRspWAqZAD0d_:hover{background:linear-gradient(to top, #ffffff 0%, #ecf4ff 100%);box-shadow:0px 8px 16px 0px rgba(7,35,76,.1);border:1px solid #afcfff;-o-border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1}.KS7Y4rDVUCfP7qjdPZap{background:linear-gradient(to top, #ffffff 0%, #f7f5ff 100%);border:1px solid #ebe6ff;-o-border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1;border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1}.KS7Y4rDVUCfP7qjdPZap:hover{background:linear-gradient(to top, #ffffff 0%, #e3dcff 100%);box-shadow:0px 8px 16px 0px rgba(40,23,92,.1);border:1px solid #c5b4ff;-o-border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1}.mZ5nSrfxkgv2ivcg_v21{width:472px;height:148px;border-radius:10px 10px 10px 10px;position:relative}",""]);var s="QmFviLMZ5ad2m0mLbKkP",l="ZJu8EO9kRspWAqZAD0d_",d="KS7Y4rDVUCfP7qjdPZap",c="mZ5nSrfxkgv2ivcg_v21";const p=i},100:(e,t,n)=>{n.d(t,{Ay:()=>d,DE:()=>l,wm:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-45-Light";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-45-Light.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-75-SemiBold";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-75-SemiBold.ttf") format("truetype")}.EybT8LL35ZAAECD9qKQX .ant-modal-content{padding:0 24px}.EybT8LL35ZAAECD9qKQX .ant-modal-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-body{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-footer{text-align:center;padding:16px 0}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-content{padding:0 24px}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-body{text-align:center}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-content{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-btns{text-align:center;padding:16px 0}',""]);var s="EybT8LL35ZAAECD9qKQX",l="F2kZbP7G9NKG9lg8O_b1";const d=i},860:(e,t,n)=>{n.d(t,{A:()=>l,K:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.aTTl5tM6IlquA6EPUX_w{font-family:"hub-iconfont";color:#545b64;font-size:12px;cursor:pointer}.aTTl5tM6IlquA6EPUX_w:hover{color:#1775fe}',""]);var s="aTTl5tM6IlquA6EPUX_w";const l=i},328:(e,t,n)=>{n.d(t,{Ay:()=>u,Hn:()=>l,P_:()=>d,UA:()=>p,X$:()=>c,tp:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".eKExJAv72oIPXwTqwpgU td{border-top:none !important;border-left:none !important;border-right:none !important}.eKExJAv72oIPXwTqwpgU th.ant-table-cell{height:55px;padding:5px 16px !important}.eKExJAv72oIPXwTqwpgU td.ant-table-cell{padding:5px 16px !important;font-size:14px;line-height:22px;letter-spacing:0}.eKExJAv72oIPXwTqwpgU div{scrollbar-width:thin;scrollbar-color:#eaeaea rgba(0,0,0,0);box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV{display:flex;flex-direction:column;justify-content:center}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH:hover{display:block;overflow:auto}.b2mlkkE1gDbFwo4_42Kc{position:relative}.Vh5uhm2m3HksYuSIjwQj{position:absolute;left:16px;color:#89909d;font-size:14px}",""]);var s="eKExJAv72oIPXwTqwpgU",l="SJWFZYuxuri8ceYzxmsV",d="CDb4Loro5cBpX56QzatH",c="b2mlkkE1gDbFwo4_42Kc",p="Vh5uhm2m3HksYuSIjwQj";const u=i},685:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".cJmcPSn5LN2GH9HqTvEQ{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="cJmcPSn5LN2GH9HqTvEQ";const l=i},913:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,_8:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zuabV0gpCkaY8pSYtOSL{display:flex;align-items:center;justify-content:center;height:100%}.i2GFC308F3s1lGENOI5l{max-width:100%;max-height:100%}",""]);var s="zuabV0gpCkaY8pSYtOSL",l="i2GFC308F3s1lGENOI5l";const d=i},690:(e,t,n)=>{n.d(t,{Ay:()=>c,D5:()=>l,LV:()=>s,qf:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".EVmfUlSj2zzl7igeqp6N{display:flex;align-items:center;justify-content:center;height:100%;overflow:auto;padding-top:16px;padding-bottom:16px}.Z65yBBsFLSWF70wfWwgA{display:flex;align-items:center;justify-content:center;padding-top:16px;padding-bottom:16px}.QSsGpXvLzOYpHSNncjpj .ant-modal-body{height:calc(100vh - 200px);overflow-y:auto}.QSsGpXvLzOYpHSNncjpj .ant-modal-content{padding-top:44px}",""]);var s="EVmfUlSj2zzl7igeqp6N",l="Z65yBBsFLSWF70wfWwgA",d="QSsGpXvLzOYpHSNncjpj";const c=i},555:(e,t,n)=>{n.d(t,{A:()=>h,L:()=>u});var o=n(245),r=n.n(o),a=n(526),i=n.n(a),s=n(405),l=n.n(s),d=new URL(n(840),n.b),c=i()(r()),p=l()(d);c.push([e.id,`.axAZtM5WKNopJEBNra2i .markdown-body{--base-size-4: 0.25rem;--base-size-8: 0.5rem;--base-size-16: 1rem;--base-size-24: 1.5rem;--base-size-40: 2.5rem;--base-text-weight-normal: 400;--base-text-weight-medium: 500;--base-text-weight-semibold: 600;--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent: Highlight}@media(prefers-color-scheme: dark){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=dark]{color-scheme:dark;--focus-outlineColor: #1f6feb;--fgColor-default: #f0f6fc;--fgColor-muted: #9198a1;--fgColor-accent: #4493f8;--fgColor-success: #3fb950;--fgColor-attention: #d29922;--fgColor-danger: #f85149;--fgColor-done: #ab7df8;--bgColor-default: #0d1117;--bgColor-muted: #151b23;--bgColor-neutral-muted: #656c7633;--bgColor-attention-muted: #bb800926;--borderColor-default: #3d444d;--borderColor-muted: #3d444db3;--borderColor-neutral-muted: #3d444db3;--borderColor-accent-emphasis: #1f6feb;--borderColor-success-emphasis: #238636;--borderColor-attention-emphasis: #9e6a03;--borderColor-danger-emphasis: #da3633;--borderColor-done-emphasis: #8957e5;--color-prettylights-syntax-comment: #9198a1;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #f0f6fc;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-brackethighlighter-angle: #9198a1;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #f0f6fc;--color-prettylights-syntax-markup-bold: #f0f6fc;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #f0f6fc;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d}}@media(prefers-color-scheme: light){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=light]{color-scheme:light;--focus-outlineColor: #0969da;--fgColor-default: #1f2328;--fgColor-muted: #59636e;--fgColor-accent: #0969da;--fgColor-success: #1a7f37;--fgColor-attention: #9a6700;--fgColor-danger: #d1242f;--fgColor-done: #8250df;--bgColor-default: #ffffff;--bgColor-muted: #f6f8fa;--bgColor-neutral-muted: #818b981f;--bgColor-attention-muted: #fff8c5;--borderColor-default: #d1d9e0;--borderColor-muted: #d1d9e0b3;--borderColor-neutral-muted: #d1d9e0b3;--borderColor-accent-emphasis: #0969da;--borderColor-success-emphasis: #1a7f37;--borderColor-attention-emphasis: #9a6700;--borderColor-danger-emphasis: #cf222e;--borderColor-done-emphasis: #8250df;--color-prettylights-syntax-comment: #59636e;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #1f2328;--color-prettylights-syntax-entity-tag: #0550ae;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-brackethighlighter-angle: #59636e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #1f2328;--color-prettylights-syntax-markup-bold: #1f2328;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #d1d9e0;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-sublimelinter-gutter-mark: #818b98}}.axAZtM5WKNopJEBNra2i .markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--fgColor-default);background-color:var(--bgColor-default);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url(${p});mask-image:url(${p})}.axAZtM5WKNopJEBNra2i .markdown-body details,.axAZtM5WKNopJEBNra2i .markdown-body figcaption,.axAZtM5WKNopJEBNra2i .markdown-body figure{display:block}.axAZtM5WKNopJEBNra2i .markdown-body summary{display:list-item}.axAZtM5WKNopJEBNra2i .markdown-body [hidden]{display:none !important}.axAZtM5WKNopJEBNra2i .markdown-body a{background-color:rgba(0,0,0,0);color:var(--fgColor-accent);text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.axAZtM5WKNopJEBNra2i .markdown-body b,.axAZtM5WKNopJEBNra2i .markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dfn{font-style:italic}.axAZtM5WKNopJEBNra2i .markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body small{font-size:90%}.axAZtM5WKNopJEBNra2i .markdown-body sub,.axAZtM5WKNopJEBNra2i .markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.axAZtM5WKNopJEBNra2i .markdown-body sub{bottom:-0.25em}.axAZtM5WKNopJEBNra2i .markdown-body sup{top:-0.5em}.axAZtM5WKNopJEBNra2i .markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body kbd,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:monospace;font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body figure{margin:1em var(--base-size-40)}.axAZtM5WKNopJEBNra2i .markdown-body hr{box-sizing:content-box;overflow:hidden;background:rgba(0,0,0,0);border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.axAZtM5WKNopJEBNra2i .markdown-body [type=button],.axAZtM5WKNopJEBNra2i .markdown-body [type=reset],.axAZtM5WKNopJEBNra2i .markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.axAZtM5WKNopJEBNra2i .markdown-body [type=checkbox],.axAZtM5WKNopJEBNra2i .markdown-body [type=radio]{box-sizing:border-box;padding:0}.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-inner-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-cancel-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.axAZtM5WKNopJEBNra2i .markdown-body a:hover{text-decoration:underline}.axAZtM5WKNopJEBNra2i .markdown-body ::-moz-placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body hr::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body hr::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.axAZtM5WKNopJEBNra2i .markdown-body td,.axAZtM5WKNopJEBNra2i .markdown-body th{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body details summary{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body a:focus,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body a:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus,.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.axAZtM5WKNopJEBNra2i .markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h1,.axAZtM5WKNopJEBNra2i .markdown-body h2,.axAZtM5WKNopJEBNra2i .markdown-body h3,.axAZtM5WKNopJEBNra2i .markdown-body h4,.axAZtM5WKNopJEBNra2i .markdown-body h5,.axAZtM5WKNopJEBNra2i .markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.axAZtM5WKNopJEBNra2i .markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.axAZtM5WKNopJEBNra2i .markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.axAZtM5WKNopJEBNra2i .markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--fgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body p{margin-top:0;margin-bottom:10px}.axAZtM5WKNopJEBNra2i .markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ul ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol ol{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body dd{margin-left:0}.axAZtM5WKNopJEBNra2i .markdown-body tt,.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.axAZtM5WKNopJEBNra2i .markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-outer-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.axAZtM5WKNopJEBNra2i .markdown-body::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body>*:last-child{margin-bottom:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body a:not([href]){color:inherit;text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body .absent{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .anchor:focus{outline:none}.axAZtM5WKNopJEBNra2i .markdown-body p,.axAZtM5WKNopJEBNra2i .markdown-body blockquote,.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol,.axAZtM5WKNopJEBNra2i .markdown-body dl,.axAZtM5WKNopJEBNra2i .markdown-body table,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body details{margin-top:0;margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body h1 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor{text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link{visibility:visible}.axAZtM5WKNopJEBNra2i .markdown-body h1 tt,.axAZtM5WKNopJEBNra2i .markdown-body h1 code,.axAZtM5WKNopJEBNra2i .markdown-body h2 tt,.axAZtM5WKNopJEBNra2i .markdown-body h2 code,.axAZtM5WKNopJEBNra2i .markdown-body h3 tt,.axAZtM5WKNopJEBNra2i .markdown-body h3 code,.axAZtM5WKNopJEBNra2i .markdown-body h4 tt,.axAZtM5WKNopJEBNra2i .markdown-body h4 code,.axAZtM5WKNopJEBNra2i .markdown-body h5 tt,.axAZtM5WKNopJEBNra2i .markdown-body h5 code,.axAZtM5WKNopJEBNra2i .markdown-body h6 tt,.axAZtM5WKNopJEBNra2i .markdown-body h6 code{padding:0 .2em;font-size:inherit}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2,.axAZtM5WKNopJEBNra2i .markdown-body summary h3,.axAZtM5WKNopJEBNra2i .markdown-body summary h4,.axAZtM5WKNopJEBNra2i .markdown-body summary h5,.axAZtM5WKNopJEBNra2i .markdown-body summary h6{display:inline-block}.axAZtM5WKNopJEBNra2i .markdown-body summary h1 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h2 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h3 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h4 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h5 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h6 .anchor{margin-left:-40px}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2{padding-bottom:0;border-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body ul.no-list,.axAZtM5WKNopJEBNra2i .markdown-body ol.no-list{padding:0;list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="a s"]{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="A s"]{list-style-type:upper-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="i s"]{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="I s"]{list-style-type:upper-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="1"]{list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body div>ol:not([type]){list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body ul ul,.axAZtM5WKNopJEBNra2i .markdown-body ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul{margin-top:0;margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body li>p{margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body li+li{margin-top:.25em}.axAZtM5WKNopJEBNra2i .markdown-body dl{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body table th,.axAZtM5WKNopJEBNra2i .markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body table td>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table img{background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body img[align=right]{padding-left:20px}.axAZtM5WKNopJEBNra2i .markdown-body img[align=left]{padding-right:20px}.axAZtM5WKNopJEBNra2i .markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame{display:block;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span img{display:block;float:left}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center span img{margin:0 auto;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right span img{margin:0;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left span{margin:13px 0 0}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body code br,.axAZtM5WKNopJEBNra2i .markdown-body tt br{display:none}.axAZtM5WKNopJEBNra2i .markdown-body del code{text-decoration:inherit}.axAZtM5WKNopJEBNra2i .markdown-body samp{font-size:85%}.axAZtM5WKNopJEBNra2i .markdown-body pre code{font-size:100%}.axAZtM5WKNopJEBNra2i .markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .highlight{margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre{margin-bottom:0;word-break:normal}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre,.axAZtM5WKNopJEBNra2i .markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body pre code,.axAZtM5WKNopJEBNra2i .markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data td,.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data tr{border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::before{content:"["}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::after{content:"]"}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol{padding-left:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li{position:relative}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:"";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target{color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.axAZtM5WKNopJEBNra2i .markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-e,.axAZtM5WKNopJEBNra2i .markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-smi,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-s,.axAZtM5WKNopJEBNra2i .markdown-body .pl-pds,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-pse .pl-s1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sre,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-v,.axAZtM5WKNopJEBNra2i .markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh,.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh .pl-en,.axAZtM5WKNopJEBNra2i .markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body button:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body summary:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body [tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body details-dialog:focus:not(:focus-visible){outline:none}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji img{width:1em;height:1em}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item{list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item.enabled label{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item .handle{display:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.axAZtM5WKNopJEBNra2i .markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:hover .task-list-item-convert-container,.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}`,""]);var u="axAZtM5WKNopJEBNra2i";const h=c},482:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".GmPZonLTI3KWU6TQWQSo{display:flex;flex-direction:column;align-items:center;height:100%;overflow:auto}.GmPZonLTI3KWU6TQWQSo canvas{max-width:100%}",""]);var s="GmPZonLTI3KWU6TQWQSo";const l=i},708:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".w5U1Ig2Vx60xYRW90g33{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="w5U1Ig2Vx60xYRW90g33";const l=i},519:(e,t,n)=>{n.d(t,{Ay:()=>p,J2:()=>d,T1:()=>c,eo:()=>l,hF:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}.wrtosveS1b5SlKe4fIGL{position:relative}.sD_Dvah97w0cPqUJsOhX{font-family:"AlibabaPuHuiTi-3-55-RegularL3";font-size:12px;position:absolute;top:-11px;left:11px;background:#fff;padding-left:2px;padding-right:2px}.PHh7Qm9ojRZiWFl8OlpT{display:none}.FinJFG8VkAu4WdZFDb3U{width:400px}',""]);var s="wrtosveS1b5SlKe4fIGL",l="sD_Dvah97w0cPqUJsOhX",d="PHh7Qm9ojRZiWFl8OlpT",c="FinJFG8VkAu4WdZFDb3U";const p=i},989:(e,t,n)=>{n.d(t,{Ay:()=>c,Kk:()=>l,LV:()=>s,NI:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".s1DE3bXbSR3WMxOHGhL4{width:244px;min-height:89px;background:#fff;box-shadow:0px 12px 30px 0px rgba(32,60,48,.2);border-radius:10px 10px 10px 10px;border:1px solid #d9e0ed;z-index:100;position:fixed;bottom:180px;left:calc(50% - 122px)}.ickkjG9C47RxHTbOAWXw{width:16px;height:16px;z-index:101;display:inline-block;border-radius:50%;position:absolute;top:17px;right:17px;cursor:pointer}.dWjTN1AD2WJesHevGU09{padding:17px 10px}",""]);var s="s1DE3bXbSR3WMxOHGhL4",l="ickkjG9C47RxHTbOAWXw",d="dWjTN1AD2WJesHevGU09";const c=i},280:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,wm:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".wkk6Lnco5rQ5DK_Bojaj{display:flex;justify-content:space-between;align-items:center;padding:0 16px;background-color:#000}.wkk6Lnco5rQ5DK_Bojaj .H3Num6yF3Ox32Pb6Occg{width:200px}",""]);var s="wkk6Lnco5rQ5DK_Bojaj",l="H3Num6yF3Ox32Pb6Occg";const d=i},255:(e,t,n)=>{n.d(t,{Ay:()=>p,Bu:()=>l,Lt:()=>s,eb:()=>d,lY:()=>c});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".TlJNZcZcmmP6z2ZEuXVh{position:relative}.jlfRlYEd363O6zz8LzHG.U_nf4tR4EBBbc350fb4r{opacity:0;transform:translateY(-10px);animation:KeGDXXLq4ov1RpFxstIA .1s ease-in-out forwards}@keyframes KeGDXXLq4ov1RpFxstIA{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.jlfRlYEd363O6zz8LzHG{position:absolute;top:37px;z-index:6000;color:#666;background-color:#e0e0e0;width:200px;height:256px;padding:4px;border-radius:8px;opacity:0;transform:translateY(-10px);transition:all .3s ease-in-out;animation:U4WuhNMVo6V0NTLeHqJp .3s ease-in-out forwards}@keyframes U4WuhNMVo6V0NTLeHqJp{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.iFMf87iEHVoZIgZXmFII{height:264px}",""]);var s="TlJNZcZcmmP6z2ZEuXVh",l="jlfRlYEd363O6zz8LzHG",d="U_nf4tR4EBBbc350fb4r",c="iFMf87iEHVoZIgZXmFII";const p=i},512:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tiptap pre{margin-top:1.5rem;margin-bottom:1.5rem;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tiptap pre code{background-image:none;padding:0px;font-size:0.875rem;line-height:1.25rem}.tiptap pre .hljs-comment,.tiptap pre .hljs-quote{color:#6a9955}.tiptap pre .hljs-variable,.tiptap pre .hljs-template-variable,.tiptap pre .hljs-attribute,.tiptap pre .hljs-tag,.tiptap pre .hljs-name,.tiptap pre .hljs-regexp,.tiptap pre .hljs-link,.tiptap pre .hljs-selector-id,.tiptap pre .hljs-selector-class{color:#4fc1ff}.tiptap pre .hljs-number,.tiptap pre .hljs-meta,.tiptap pre .hljs-built_in,.tiptap pre .hljs-builtin-name,.tiptap pre .hljs-literal,.tiptap pre .hljs-type,.tiptap pre .hljs-params{color:#dcdcaa}.tiptap pre .hljs-string,.tiptap pre .hljs-symbol,.tiptap pre .hljs-bullet{color:#ce9178}.tiptap pre .hljs-title,.tiptap pre .hljs-section{color:#dcdcaa}.tiptap pre .hljs-keyword,.tiptap pre .hljs-selector-tag{color:#c586c0}.tiptap pre .hljs-emphasis{font-style:italic}.tiptap pre .hljs-strong{font-weight:700}",""]);const s=i},383:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.tiptap-container .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.tiptap-container .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.tiptap-container .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.tiptap-container .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.tiptap-container .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.tiptap-container .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.tiptap-container .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.tiptap-container .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.tiptap-container .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.tiptap-container .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.tiptap-container .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.tiptap-container .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.tiptap-container .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.tiptap-container .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.tiptap-container .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.tiptap-container .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.tiptap-container .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.tiptap-container .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.tiptap-container .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.tiptap-container .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.tiptap-container .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.tiptap-container .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.tiptap-container .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.tiptap-container .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.tiptap-container .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.tiptap-container .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.tiptap-container .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.tiptap-container .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.tiptap-container .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.tiptap-container .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.tiptap-container .absolute{\nposition: absolute;}.tiptap-container .relative{\nposition: relative;}.tiptap-container .sticky{\nposition: sticky;}.tiptap-container .right-0{\nright: 0px;}.tiptap-container .z-10{\nz-index: 10;}.tiptap-container .m-0{\nmargin: 0px;}.tiptap-container .m-1{\nmargin: 0.25rem;}.tiptap-container .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.tiptap-container .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.tiptap-container .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.tiptap-container .mb-0{\nmargin-bottom: 0px;}.tiptap-container .mb-2{\nmargin-bottom: 0.5rem;}.tiptap-container .mb-4{\nmargin-bottom: 1rem;}.tiptap-container .mb-5{\nmargin-bottom: 1.25rem;}.tiptap-container .mr-1{\nmargin-right: 0.25rem;}.tiptap-container .mt-20{\nmargin-top: 5rem;}.tiptap-container .mt-4{\nmargin-top: 1rem;}.tiptap-container .block{\ndisplay: block;}.tiptap-container .\\!inline{\ndisplay: inline !important;}.tiptap-container .inline{\ndisplay: inline;}.tiptap-container .flex{\ndisplay: flex;}.tiptap-container .table{\ndisplay: table;}.tiptap-container .flow-root{\ndisplay: flow-root;}.tiptap-container .hidden{\ndisplay: none;}.tiptap-container .h-4{\nheight: 1rem;}.tiptap-container .h-5{\nheight: 1.25rem;}.tiptap-container .h-6{\nheight: 1.5rem;}.tiptap-container .h-8{\nheight: 2rem;}.tiptap-container .h-auto{\nheight: auto;}.tiptap-container .max-h-72{\nmax-height: 18rem;}.tiptap-container .min-h-\\[20rem\\]{\nmin-height: 20rem;}.tiptap-container .w-4{\nwidth: 1rem;}.tiptap-container .w-40{\nwidth: 10rem;}.tiptap-container .w-5{\nwidth: 1.25rem;}.tiptap-container .w-6{\nwidth: 1.5rem;}.tiptap-container .max-w-96{\nmax-width: 24rem;}.tiptap-container .max-w-none{\nmax-width: none;}.tiptap-container .flex-shrink-0{\nflex-shrink: 0;}.tiptap-container .cursor-pointer{\ncursor: pointer;}.tiptap-container .items-center{\nalign-items: center;}.tiptap-container .justify-center{\njustify-content: center;}.tiptap-container .justify-between{\njustify-content: space-between;}.tiptap-container .gap-1{\ngap: 0.25rem;}.tiptap-container .gap-4{\ngap: 1rem;}.tiptap-container .overflow-y-auto{\noverflow-y: auto;}.tiptap-container .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.tiptap-container .rounded{\nborder-radius: 0.25rem;}.tiptap-container .rounded-md{\nborder-radius: 0.375rem;}.tiptap-container .border{\nborder-width: 1px;}.tiptap-container .border-solid{\nborder-style: solid;}.tiptap-container .border-dashed{\nborder-style: dashed;}.tiptap-container .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.tiptap-container .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.tiptap-container .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.tiptap-container .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.tiptap-container .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.tiptap-container .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.tiptap-container .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.tiptap-container .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.tiptap-container .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.tiptap-container .p-1{\npadding: 0.25rem;}.tiptap-container .p-2{\npadding: 0.5rem;}.tiptap-container .p-4{\npadding: 1rem;}.tiptap-container .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.tiptap-container .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.tiptap-container .pr-2{\npadding-right: 0.5rem;}.tiptap-container .text-center{\ntext-align: center;}.tiptap-container .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.tiptap-container .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.tiptap-container .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.tiptap-container .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.tiptap-container .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.tiptap-container .italic{\nfont-style: italic;}.tiptap-container .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.tiptap-container .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.tiptap-container .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.tiptap-container .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.tiptap-container .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.tiptap-container .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.tiptap-container .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.tiptap-container .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.tiptap-container .underline{\ntext-decoration-line: underline;}.tiptap-container .opacity-0{\nopacity: 0;}.tiptap-container .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.tiptap-container .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.tiptap-container .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.tiptap-container .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.tiptap-container *, .tiptap-container ::before, .tiptap-container ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.tiptap-container ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.tiptap-container *,\n.tiptap-container ::before,\n.tiptap-container ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.tiptap-container ::before,\n.tiptap-container ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.tiptap-container html,\n.tiptap-container :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.tiptap-container body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.tiptap-container hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.tiptap-container abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.tiptap-container a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.tiptap-container b,\n.tiptap-container strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.tiptap-container code,\n.tiptap-container kbd,\n.tiptap-container samp,\n.tiptap-container pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.tiptap-container small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.tiptap-container sub,\n.tiptap-container sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.tiptap-container sub {\n bottom: -0.25em;\n}\n\n.tiptap-container sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.tiptap-container table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.tiptap-container button,\n.tiptap-container input,\n.tiptap-container optgroup,\n.tiptap-container select,\n.tiptap-container textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.tiptap-container button,\n.tiptap-container select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.tiptap-container button,\n.tiptap-container input:where([type=\'button\']),\n.tiptap-container input:where([type=\'reset\']),\n.tiptap-container input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.tiptap-container :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.tiptap-container :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.tiptap-container progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.tiptap-container ::-webkit-inner-spin-button,\n.tiptap-container ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.tiptap-container [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.tiptap-container ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.tiptap-container ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.tiptap-container summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.tiptap-container blockquote,\n.tiptap-container dl,\n.tiptap-container dd,\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6,\n.tiptap-container hr,\n.tiptap-container figure,\n.tiptap-container p,\n.tiptap-container pre {\n margin: 0;\n}\n\n.tiptap-container fieldset {\n margin: 0;\n padding: 0;\n}\n\n.tiptap-container legend {\n padding: 0;\n}\n\n.tiptap-container ol,\n.tiptap-container ul,\n.tiptap-container menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.tiptap-container dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.tiptap-container textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.tiptap-container input::-moz-placeholder, .tiptap-container textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.tiptap-container input::placeholder,\n.tiptap-container textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.tiptap-container button,\n.tiptap-container [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.tiptap-container :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.tiptap-container img,\n.tiptap-container svg,\n.tiptap-container video,\n.tiptap-container canvas,\n.tiptap-container audio,\n.tiptap-container iframe,\n.tiptap-container embed,\n.tiptap-container object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.tiptap-container img,\n.tiptap-container video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.tiptap-container [hidden] {\n display: none;\n}}.tiptap>*:first-child{\nmargin-top: 0px;}.tiptap[contenteditable=true]{\noutline-width: 0px;}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},444:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tippy-box{max-width:100% !important}",""]);const s=i},311:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.tiptap table{margin:0px;width:100%;table-layout:fixed;border-collapse:collapse;overflow:hidden}.tiptap table td,.tiptap table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding:0.5rem;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-block:0px}.tiptap table th{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));text-align:left;font-weight:700}.tiptap table .selectedCell:after{pointer-events:none;position:absolute;inset:0px;z-index:10;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity:0.25;--tw-content:"";content:var(--tw-content)}.tiptap table .column-resize-handle{pointer-events:none;position:absolute;bottom:-0.25rem;top:0px;right:0px;width:0.25rem;--tw-bg-opacity:1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.tiptap .tableWrapper{margin-top:1.5rem;margin-bottom:1.5rem;overflow-x:auto}.tiptap.resize-cursor{cursor:col-resize}.tiptap code{margin:0.25rem}',""]);const s=i},588:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.mylib-upload-drawer *, .mylib-upload-drawer ::before, .mylib-upload-drawer ::after{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}.mylib-upload-drawer ::backdrop{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/.mylib-upload-drawer *,\n.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n --tw-content: \'\';\n}/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/.mylib-upload-drawer html,\n.mylib-upload-drawer :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/.mylib-upload-drawer body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/.mylib-upload-drawer hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/.mylib-upload-drawer abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}/*\nRemove the default font size and weight for headings.\n*/.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6 {\n font-size: inherit;\n font-weight: inherit;\n}/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/.mylib-upload-drawer a {\n color: inherit;\n text-decoration: inherit;\n}/*\nAdd the correct font weight in Edge and Safari.\n*/.mylib-upload-drawer b,\n.mylib-upload-drawer strong {\n font-weight: bolder;\n}/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/.mylib-upload-drawer code,\n.mylib-upload-drawer kbd,\n.mylib-upload-drawer samp,\n.mylib-upload-drawer pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}/*\nAdd the correct font size in all browsers.\n*/.mylib-upload-drawer small {\n font-size: 80%;\n}/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/.mylib-upload-drawer sub,\n.mylib-upload-drawer sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}.mylib-upload-drawer sub {\n bottom: -0.25em;\n}.mylib-upload-drawer sup {\n top: -0.5em;\n}/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/.mylib-upload-drawer table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input,\n.mylib-upload-drawer optgroup,\n.mylib-upload-drawer select,\n.mylib-upload-drawer textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer select {\n text-transform: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input:where([type=\'button\']),\n.mylib-upload-drawer input:where([type=\'reset\']),\n.mylib-upload-drawer input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}/*\nUse the modern Firefox focus style for all focusable elements.\n*/.mylib-upload-drawer :-moz-focusring {\n outline: auto;\n}/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/.mylib-upload-drawer :-moz-ui-invalid {\n box-shadow: none;\n}/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/.mylib-upload-drawer progress {\n vertical-align: baseline;\n}/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/.mylib-upload-drawer ::-webkit-inner-spin-button,\n.mylib-upload-drawer ::-webkit-outer-spin-button {\n height: auto;\n}/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/.mylib-upload-drawer [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/.mylib-upload-drawer ::-webkit-search-decoration {\n -webkit-appearance: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/.mylib-upload-drawer ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}/*\nAdd the correct display in Chrome and Safari.\n*/.mylib-upload-drawer summary {\n display: list-item;\n}/*\nRemoves the default spacing and border for appropriate elements.\n*/.mylib-upload-drawer blockquote,\n.mylib-upload-drawer dl,\n.mylib-upload-drawer dd,\n.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6,\n.mylib-upload-drawer hr,\n.mylib-upload-drawer figure,\n.mylib-upload-drawer p,\n.mylib-upload-drawer pre {\n margin: 0;\n}.mylib-upload-drawer fieldset {\n margin: 0;\n padding: 0;\n}.mylib-upload-drawer legend {\n padding: 0;\n}.mylib-upload-drawer ol,\n.mylib-upload-drawer ul,\n.mylib-upload-drawer menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}/*\nReset default styling for dialogs.\n*/.mylib-upload-drawer dialog {\n padding: 0;\n}/*\nPrevent resizing textareas horizontally by default.\n*/.mylib-upload-drawer textarea {\n resize: vertical;\n}/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/.mylib-upload-drawer input::-moz-placeholder, .mylib-upload-drawer textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}.mylib-upload-drawer input::placeholder,\n.mylib-upload-drawer textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}/*\nSet the default cursor for buttons.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer [role="button"] {\n cursor: pointer;\n}/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/.mylib-upload-drawer :disabled {\n cursor: default;\n}/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer svg,\n.mylib-upload-drawer video,\n.mylib-upload-drawer canvas,\n.mylib-upload-drawer audio,\n.mylib-upload-drawer iframe,\n.mylib-upload-drawer embed,\n.mylib-upload-drawer object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer video {\n max-width: 100%;\n height: auto;\n}/* Make elements with the HTML hidden attribute stay hidden by default */.mylib-upload-drawer [hidden] {\n display: none;\n}.mylib-upload-drawer .prose{\n color: var(--tw-prose-body);\n max-width: 65ch;\n}.mylib-upload-drawer .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}.mylib-upload-drawer .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}.mylib-upload-drawer .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-bold);\n font-weight: 600;\n}.mylib-upload-drawer .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n}.mylib-upload-drawer .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n font-weight: 400;\n color: var(--tw-prose-counters);\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n color: var(--tw-prose-bullets);\n}.mylib-upload-drawer .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}.mylib-upload-drawer .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}.mylib-upload-drawer .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: open-quote;\n}.mylib-upload-drawer .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: close-quote;\n}.mylib-upload-drawer .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}.mylib-upload-drawer .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 900;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}.mylib-upload-drawer .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 800;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}.mylib-upload-drawer .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}.mylib-upload-drawer .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: "`";\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: "`";\n}.mylib-upload-drawer .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.9em;\n}.mylib-upload-drawer .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: none;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: none;\n}.mylib-upload-drawer .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}.mylib-upload-drawer .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}.mylib-upload-drawer .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 0;\n}.mylib-upload-drawer .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: baseline;\n}.mylib-upload-drawer .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: top;\n}.mylib-upload-drawer .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n text-align: start;\n}.mylib-upload-drawer .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}.mylib-upload-drawer .prose{\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}.mylib-upload-drawer .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 0;\n}.mylib-upload-drawer .absolute{\n position: absolute;\n}.mylib-upload-drawer .relative{\n position: relative;\n}.mylib-upload-drawer .sticky{\n position: sticky;\n}.mylib-upload-drawer .right-0{\n right: 0px;\n}.mylib-upload-drawer .z-10{\n z-index: 10;\n}.mylib-upload-drawer .m-0{\n margin: 0px;\n}.mylib-upload-drawer .m-1{\n margin: 0.25rem;\n}.mylib-upload-drawer .my-2{\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .my-2\\.5{\n margin-top: 0.625rem;\n margin-bottom: 0.625rem;\n}.mylib-upload-drawer .my-4{\n margin-top: 1rem;\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-0{\n margin-bottom: 0px;\n}.mylib-upload-drawer .mb-2{\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .mb-4{\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-5{\n margin-bottom: 1.25rem;\n}.mylib-upload-drawer .mr-1{\n margin-right: 0.25rem;\n}.mylib-upload-drawer .mt-20{\n margin-top: 5rem;\n}.mylib-upload-drawer .mt-4{\n margin-top: 1rem;\n}.mylib-upload-drawer .block{\n display: block;\n}.mylib-upload-drawer .\\!inline{\n display: inline !important;\n}.mylib-upload-drawer .inline{\n display: inline;\n}.mylib-upload-drawer .flex{\n display: flex;\n}.mylib-upload-drawer .table{\n display: table;\n}.mylib-upload-drawer .flow-root{\n display: flow-root;\n}.mylib-upload-drawer .hidden{\n display: none;\n}.mylib-upload-drawer .h-4{\n height: 1rem;\n}.mylib-upload-drawer .h-5{\n height: 1.25rem;\n}.mylib-upload-drawer .h-6{\n height: 1.5rem;\n}.mylib-upload-drawer .h-8{\n height: 2rem;\n}.mylib-upload-drawer .h-auto{\n height: auto;\n}.mylib-upload-drawer .max-h-72{\n max-height: 18rem;\n}.mylib-upload-drawer .min-h-\\[20rem\\]{\n min-height: 20rem;\n}.mylib-upload-drawer .w-4{\n width: 1rem;\n}.mylib-upload-drawer .w-40{\n width: 10rem;\n}.mylib-upload-drawer .w-5{\n width: 1.25rem;\n}.mylib-upload-drawer .w-6{\n width: 1.5rem;\n}.mylib-upload-drawer .max-w-96{\n max-width: 24rem;\n}.mylib-upload-drawer .max-w-none{\n max-width: none;\n}.mylib-upload-drawer .flex-shrink-0{\n flex-shrink: 0;\n}.mylib-upload-drawer .cursor-pointer{\n cursor: pointer;\n}.mylib-upload-drawer .items-center{\n align-items: center;\n}.mylib-upload-drawer .justify-center{\n justify-content: center;\n}.mylib-upload-drawer .justify-between{\n justify-content: space-between;\n}.mylib-upload-drawer .gap-1{\n gap: 0.25rem;\n}.mylib-upload-drawer .gap-4{\n gap: 1rem;\n}.mylib-upload-drawer .overflow-y-auto{\n overflow-y: auto;\n}.mylib-upload-drawer .truncate{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}.mylib-upload-drawer .rounded{\n border-radius: 0.25rem;\n}.mylib-upload-drawer .rounded-md{\n border-radius: 0.375rem;\n}.mylib-upload-drawer .border{\n border-width: 1px;\n}.mylib-upload-drawer .border-solid{\n border-style: solid;\n}.mylib-upload-drawer .border-dashed{\n border-style: dashed;\n}.mylib-upload-drawer .border-\\[\\#1775FE\\]{\n --tw-border-opacity: 1;\n border-color: rgb(23 117 254 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-200{\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-3{\n --tw-border-opacity: 1;\n border-color: rgb(217 224 237 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-300{\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-green-600{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.mylib-upload-drawer .bg-\\[\\#F5F7FA\\]{\n --tw-bg-opacity: 1;\n background-color: rgb(245 247 250 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-blue-5{\n --tw-bg-opacity: 1;\n background-color: rgb(23 117 254 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-gray-50{\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-white{\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .p-1{\n padding: 0.25rem;\n}.mylib-upload-drawer .p-2{\n padding: 0.5rem;\n}.mylib-upload-drawer .p-4{\n padding: 1rem;\n}.mylib-upload-drawer .px-3{\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}.mylib-upload-drawer .px-4{\n padding-left: 1rem;\n padding-right: 1rem;\n}.mylib-upload-drawer .pr-2{\n padding-right: 0.5rem;\n}.mylib-upload-drawer .text-center{\n text-align: center;\n}.mylib-upload-drawer .text-2xl{\n font-size: 1.5rem;\n line-height: 2rem;\n}.mylib-upload-drawer .text-5xl{\n font-size: 3rem;\n line-height: 1;\n}.mylib-upload-drawer .text-base{\n font-size: 1rem;\n line-height: 1.5rem;\n}.mylib-upload-drawer .text-sm{\n font-size: 0.875rem;\n line-height: 1.25rem;\n}.mylib-upload-drawer .text-xl{\n font-size: 1.25rem;\n line-height: 1.75rem;\n}.mylib-upload-drawer .italic{\n font-style: italic;\n}.mylib-upload-drawer .text-gray-5{\n --tw-text-opacity: 1;\n color: rgb(135 144 158 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-gray-7{\n --tw-text-opacity: 1;\n color: rgb(84 91 100 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-600{\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-green{\n --tw-text-opacity: 1;\n color: rgb(83 195 27 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-600{\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-red{\n --tw-text-opacity: 1;\n color: rgb(254 77 79 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-white{\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-yellow-500{\n --tw-text-opacity: 1;\n color: rgb(234 179 8 / var(--tw-text-opacity));\n}.mylib-upload-drawer .underline{\n text-decoration-line: underline;\n}.mylib-upload-drawer .opacity-0{\n opacity: 0;\n}.mylib-upload-drawer .shadow-sm{\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}.mylib-upload-drawer .filter{\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}.mylib-upload-drawer .transition-opacity{\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.mylib-upload-drawer .transition-transform{\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.last\\:mb-0:last-child{\n margin-bottom: 0px;\n}.hover\\:border-green-600:hover{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.hover\\:bg-assist-bg-blue:hover{\n --tw-bg-opacity: 1;\n background-color: rgb(244 246 250 / var(--tw-bg-opacity));\n}.group:hover .group-hover\\:-translate-x-10{\n --tw-translate-x: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:-translate-x-6{\n --tw-translate-x: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:opacity-100{\n opacity: 1;\n}',""]);const s=i},526:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);o&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},405:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},245:e=>{e.exports=function(e){return e[1]}},438:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],d=o.base?l[0]+o.base:l[0],c=a[d]||0,p="".concat(d," ").concat(c);a[d]=c+1;var u=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var m=r(h,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var a=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=o(e,r),d=0;d<a.length;d++){var c=n(a[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},413:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},50:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},598:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},119:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},615:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},840:e=>{e.exports="data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 version=%271.1%27 aria-hidden=%27true%27><path fill-rule=%27evenodd%27 d=%27M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z%27></path></svg>"}},I={};function D(e){var t=I[e];if(void 0!==t)return t.exports;var n=I[e]={id:e,exports:{}};return T[e](n,n.exports,D),n.exports}D.m=T,D.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return D.d(t,{a:t}),t},D.d=(e,t)=>{for(var n in t)D.o(t,n)&&!D.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},D.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),D.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},D.b=document.baseURI||self.location.href,D.nc=void 0;var U={};D.d(U,{vh:()=>zr,NF:()=>Nr,LZ:()=>fr,QR:()=>pr,dA:()=>ar,Lq:()=>yt,Bx:()=>so,l0:()=>lo,pg:()=>Wr,Ow:()=>yr,Y9:()=>de,ly:()=>pe,aH:()=>Fr,hC:()=>Cr,Wg:()=>pi,LM:()=>ci,_2:()=>Fe,WI:()=>Qt,C:()=>ur});var H={};D.r(H),D.d(H,{default:()=>Br,input:()=>Sr.hF,"input-label":()=>Sr.eo,"input-label-hinden":()=>Sr.J2,"slide-input-wrapper":()=>Sr.T1});const R=(q={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},_={},D.d(_,q),_);var q,_;const V=(e=>{var t={};return D.d(t,e),t})({Alert:()=>t.Alert,App:()=>t.App,Button:()=>t.Button,ColorPicker:()=>t.ColorPicker,Divider:()=>t.Divider,Drawer:()=>t.Drawer,Empty:()=>t.Empty,Flex:()=>t.Flex,Form:()=>t.Form,Input:()=>t.Input,InputNumber:()=>t.InputNumber,Modal:()=>t.Modal,Popover:()=>t.Popover,Progress:()=>t.Progress,Select:()=>t.Select,Space:()=>t.Space,Spin:()=>t.Spin,Table:()=>t.Table,Tag:()=>t.Tag,Upload:()=>t.Upload,message:()=>t.message});var $=D(438),G=D.n($),X=D(119),Y=D.n(X),Q=D(413),ee=D.n(Q),te=D(598),ne=D.n(te),oe=D(50),re=D.n(oe),ae=D(615),ie=D.n(ae),se=D(280),le={};function de(e){const{showLogin:t}=e;return(0,R.jsxs)("div",{className:se.LV,children:[(0,R.jsx)("img",{src:"https://www.unpkg.com/@zjlab-fe/fe-assets/logo-white.png",className:se.wm}),t&&(0,R.jsx)(V.Button,{ghost:!0,children:"登录"})]})}le.styleTagTransform=ie(),le.setAttributes=ne(),le.insert=ee().bind(null,"head"),le.domAPI=Y(),le.insertStyleElement=re(),G()(se.Ay,le),se.Ay&&se.Ay.locals&&se.Ay.locals;const ce=(e=>{var t={};return D.d(t,e),t})({createContext:()=>n.createContext,forwardRef:()=>n.forwardRef,memo:()=>n.memo,useCallback:()=>n.useCallback,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useImperativeHandle:()=>n.useImperativeHandle,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState});function pe(e){const{value:t,onChange:n,placeholder:o="请输入关键字",valueType:r,deduplicated:a=!0,size:i,maxLength:s,disabled:l}=e,[d,c]=(0,ce.useState)([]),[p,u]=(0,ce.useState)(1),h=(0,ce.useRef)(null);(0,ce.useEffect)((()=>{if(Array.isArray(t))c(t);else if("string"==typeof t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e));c(e)}}),[t]),(0,ce.useEffect)((()=>{1!==p&&(null==h?void 0:h.current)&&h.current.focus()}),[p]);const m=e=>{if(a&&(e=Array.from(new Set(e))),c(e),"array"===r)null==n||n(e.length>0?e:void 0);else{const t=e.join(";");null==n||n(t||void 0)}};let f;return(null==d?void 0:d.length)>0&&(f=d.map(((e,t)=>(0,R.jsx)(V.Tag,{closeIcon:!l,onClose:()=>(e=>{const t=d.filter(((t,n)=>n!==e));m(t),u(p+1)})(t),children:e},t)))),(0,R.jsx)(V.Input,{disabled:l,size:i,ref:h,placeholder:o,prefix:f,onPressEnter:e=>{const t=e.target.value.trim();if(""!==t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e)),n=[...d,...e];m(n),u(p+1)}},maxLength:s},p)}const ue=1024,he=1048576,me=1073741824;var fe,be;(be=fe||(fe={}))[be.INIT=1]="INIT",be[be.UPLOADING=2]="UPLOADING",be[be.FINISHED=3]="FINISHED",be[be.FAILED=4]="FAILED",be[be.PAUSED=5]="PAUSED",be[be.CANCELED=6]="CANCELED";const we=1,ge=2;var ye=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function xe(e,t,n){return ye(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=Object.assign(Object.assign({},{fileStatus:fe.INIT,percentage:0,uploadId:"",expiryTime:"",uploadUrls:[],completeSeq:[],failSeq:[],cancelControllers:{},uploadStatus:[],chunkSize:0,displaySize:"",fileName:"",partCount:0,raw:void 0}),{fileName:a,raw:new File([e],a,{type:e.type}),partCount:je(r),chunkSize:ve(r),displaySize:Me(r)}),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:fe.FAILED})}))}function ve(e){return e<10*he?10*he:Math.ceil(e/10)}function je(e){const t=ve(e);return Math.floor(e/t)+1}function ke(e,t,n,o){Se(e);try{e.createObjectStore(t,{}),e.onversionchange=t=>{null===t.newVersion&&e.close()},n([])}catch(e){o(Error(`升级数据库异常: ${e.message}`))}}function Ne(e,t,n){const o=Ce.version+1;Ce.close();const r=window.indexedDB.open(Ee,o);r.onupgradeneeded=()=>ke(r.result,e,t,n)}function Ae(e,t,n){(function(e){return new Promise((function(t,n){let o;try{o=Ce.transaction(e,"readonly");try{const n=o.objectStore(e),r=[],a=n.openCursor();a.onsuccess=()=>{const e=a.result;e?(r.push(e.value),e.continue()):t(r)},a.onerror=()=>{console.warn(`在handleFileRetrieve()中游标操作失败 - 错误代码: ${a.error}`,a.error)}}catch(e){n(Error(`在handleFileRetrieve()中执行事务或打开游标时发生异常 - ${e.message}`))}}catch(e){n(Error(`在handleFileRetrieve()中创建数据库事务时发生异常 - ${e.message}`))}}))})(e).then(t).catch(n)}var ze=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Ee="uploadStore";let Ce;function Se(e){Ce=e}function Me(e){const t=[{value:me,label:"GB"},{value:he,label:"MB"},{value:ue,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}var Be=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Oe(e,t,n){return Be(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Be(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Oe(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Be(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[We(o,n)]:[]}))}(e,n,o):[]}))}function We(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}function Ze(e){return e.map((({completeSeq:e,uploadId:t,uploadStatus:n,uploadUrls:o,percentage:r,fileName:a,failSeq:i})=>({fileName:a,uploadId:t,completeSeq:e,uploadStatus:n,percentage:r,uploadUrls:[...o,...i]})))}const Ke={},Je=(0,ce.createContext)(Ke),Pe=(0,ce.createContext)((()=>null));function Fe({children:e}){const[t,n]=(0,ce.useReducer)(Le,{});return function(e){(0,ce.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){const t=[];for(const[n,o]of Object.entries(e)){const e=o.filter((e=>e.fileStatus!==fe.FINISHED));e.length?localStorage.setItem(n,JSON.stringify(Ze(e))):t.push(n)}t.length&&function(e){ze(this,void 0,void 0,(function*(){const t=Ce.version+1;return Ce.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(Ee,t);r.onupgradeneeded=()=>{const t=r.result;e.forEach((e=>{t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)}))},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(t)}}),[e])}(t),(0,R.jsx)(Je.Provider,{value:t,children:(0,R.jsx)(Pe.Provider,{value:n,children:e})})}function Le(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==fe.FINISHED))})}default:throw Error("Unknown action")}}const Te=(e=>{var t={};return D.d(t,e),t})({CheckOutlined:()=>o.CheckOutlined,CloseOutlined:()=>o.CloseOutlined,DeleteOutlined:()=>o.DeleteOutlined,FileTextOutlined:()=>o.FileTextOutlined,InboxOutlined:()=>o.InboxOutlined,InfoCircleOutlined:()=>o.InfoCircleOutlined,LoadingOutlined:()=>o.LoadingOutlined,PauseOutlined:()=>o.PauseOutlined,PlayCircleFilled:()=>o.PlayCircleFilled});var Ie=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const De="border-dashed rounded border bg-gray-50 p-4 hover:border-green-600 border-gray-300";function Ue({accept:e="",directory:t=!0,dragAreaDescription:n,onFileReceived:o}){const r=(0,ce.useMemo)((()=>new Set(e?e.split(","):[])),[e]),a=(0,ce.useRef)(null),[i,s]=(0,ce.useState)(!1),l={onDragLeave:()=>s(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),s(!0)},onDrop:function(e){return Ie(this,void 0,void 0,(function*(){e.preventDefault(),s(!1);const n=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Oe(e,t,r))),a=(yield Promise.allSettled(n)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value));a.length&&o(a)}))}};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(V.Flex,Object.assign({vertical:!0,gap:"1rem",align:"center",className:`${i?"border-green-600":""} ${De}`},l,{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.click()},children:[(0,R.jsx)("p",{className:"text-5xl text-green-600 m-0",children:(0,R.jsx)(Te.InboxOutlined,{})}),(0,R.jsx)("div",{className:"text-base text-center",children:n?Array.isArray(n)?n.map(((e,t)=>(0,R.jsx)("p",{className:"text-base m-0",children:e},t))):(0,R.jsx)("p",{className:"text-base m-0",children:n}):(0,R.jsx)("p",{className:"text-base m-0",children:"点击或拖拽上传文件"})})]})),(0,R.jsx)("input",{ref:a,type:"file",accept:e,hidden:!0,multiple:!0,onChange:function(){var e;const t=null===(e=a.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&o(Array.from(t))},onClick:()=>{a.current&&(a.current.value="")}})]})}const He={size:32,strokeWidth:12,type:"circle",strokeLinecap:"butt"};function Re({percent:e,status:t,onClick:n}){const{progressButtonRef:o,buttonInHover:r}=function(){const e=(0,ce.useRef)(null),[t,n]=(0,ce.useState)(!1);return(0,ce.useEffect)((()=>{const t=e.current;if(!t)return;const o=()=>n(!0),r=()=>n(!1);return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",r),()=>{t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",r)}}),[]),{progressButtonRef:e,buttonInHover:t}}(),[a,i]=(0,ce.useState)(!1);return t===fe.FINISHED?(0,R.jsx)(Te.CheckOutlined,{className:"text-green-600 text-2xl h-8"}):t===fe.FAILED?(0,R.jsx)(R.Fragment,{children:a?(0,R.jsx)(Te.LoadingOutlined,{className:"text-red-600 text-2xl h-8"}):(0,R.jsx)(Te.CloseOutlined,{className:"text-red-600 text-2xl h-8",onClick:()=>{n(),i(!0)}})}):(0,R.jsx)(V.Button,{type:"text",shape:"circle",disabled:a,ref:o,title:t===fe.PAUSED?"继续下载":"取消下载",onClick:()=>{n(),t===fe.UPLOADING&&i(!0)},children:(0,R.jsx)(V.Progress,Object.assign({percent:e},He,{strokeColor:a?"#f0a020":"#19a1fe",format:function(){return t===fe.PAUSED?(0,R.jsx)(Te.PauseOutlined,{}):a?(0,R.jsx)(Te.LoadingOutlined,{className:"text-yellow-500"}):r?(0,R.jsx)(Te.CloseOutlined,{}):void 0}}))})}var qe=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function _e(){const{identifier:e,root:t,getUploadUrls:n}=(0,ce.useContext)(gt),o=(0,ce.useContext)(Pe);return(0,ce.useCallback)((r=>qe(this,void 0,void 0,(function*(){const a=function(e){if(!e.expiryTime)return we;const t=new Date;return new Date(e.expiryTime)<t?we:ge}(r)===we;if(a){const a=yield xe(r.raw,t,n);o({type:"edit_file",identifier:e,file:a})}else{const t=Object.assign(Object.assign({},r),{fileStatus:fe.INIT,uploadUrls:[...r.failSeq,...r.uploadUrls],failSeq:[],cancelControllers:{}});o({type:"edit_file",identifier:e,file:t})}}))),[e,t,n,o])}var Ve=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function $e(){const{message:e}=V.App.useApp(),{identifier:t,onCancelUpload:n}=(0,ce.useContext)(gt),o=(0,ce.useContext)(Pe);return function(t){return Ve(this,void 0,void 0,(function*(){const{fileName:o,uploadId:a}=t;if(!a)return void r(t);const i=yield n(o,a);i.status?r(t):e.error(i.reason||"取消失败")}))};function r(e){e.fileStatus=fe.CANCELED,function(e,t){let n;try{n=Ce.transaction(e,"readwrite")}catch(e){return void console.warn("db.transaction() exception in deleteFileInStore() - "+e.message)}try{const o=n.objectStore(e).delete(t);o.onsuccess=()=>!0,o.onerror=e=>{console.warn("deleteReq.onerror fired in deleteFileInStore() - error code: "+o.error)}}catch(e){return void console.warn("Transaction and/or put() exception in deleteFileInStore() - "+e.message)}}(String(t),e.fileName),Object.values(e.cancelControllers).forEach((e=>e.abort())),o({type:"remove_file",identifier:t,file:e})}}var Ge=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Xe({identifier:e,showFinished:t}){const n=(0,ce.useContext)(Je),o=$e(),r=_e(),[a,i]=(0,ce.useState)([]);return(0,ce.useEffect)((()=>{const o=n[e].filter((e=>e.fileStatus!==fe.CANCELED&&(!1!==t||e.fileStatus!==fe.FINISHED)));i(o)}),[e,t,n]),(0,R.jsx)("div",{className:"my-4",children:a.map((n=>(0,R.jsx)(Ye,{identifier:e,file:n,showFinished:t,onButtonClick:s},n.fileName)))});function s(e){e.fileStatus===fe.PAUSED?r(e):o(e)}}function Ye({identifier:e,file:t,showFinished:n,onButtonClick:o}){const r=(0,ce.useContext)(Pe),a="object"==typeof n&&n.withDelete;return(0,R.jsx)("div",{className:"mb-2 last:mb-0",children:(0,R.jsxs)("div",{className:"px-4 my-2 relative flex justify-between items-center",children:[(0,R.jsxs)(V.Flex,{align:"center",gap:".5rem",title:t.fileName,children:[(0,R.jsx)(Te.FileTextOutlined,{}),(0,R.jsx)("span",{className:"truncate w-40",children:t.fileName})]}),(0,R.jsxs)(V.Flex,{align:"center",gap:".5rem",children:[(0,R.jsx)(Re,{status:t.fileStatus,percent:Number(t.percentage.toFixed(0)),onClick:()=>o(t)}),t.fileStatus===fe.FINISHED&&a&&(0,R.jsx)(V.Button,{type:"text",size:"large",className:"px-3",disabled:a.disabled,title:a.disabled?"删除-已禁用":"删除",onClick:()=>function(t,n){return Ge(this,void 0,void 0,(function*(){(yield n(t.fileName))&&r({type:"remove_file",identifier:e,file:t})}))}(t,a.onDelete),children:(0,R.jsx)(Te.DeleteOutlined,{})})]})]})})}var Qe=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function et(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function tt(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var nt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ot(){const{message:e}=V.App.useApp(),{identifier:t,root:n,getUploadUrls:o}=(0,ce.useContext)(gt),r=(0,ce.useContext)(Pe),a=function(){const{message:e,modal:t}=V.App.useApp(),n=(0,ce.useContext)(Je),{identifier:o,maxSizePerFile:r=10*me,uploadHistory:a=[],root:i}=(0,ce.useContext)(gt);return function(s){return Qe(this,void 0,void 0,(function*(){const l=function(t){const n=t.filter((e=>e.size>r)).map((e=>e.name));if(n.length){const t=Me(r);e.warning(`以下文件大小超过${t}:${n.join(", ")}`)}return n}(s),[d,c]=yield function(e){return Qe(this,void 0,void 0,(function*(){const r=[...et(e,n[o],i),...tt(e,a)];return r.length?[yield t.confirm({title:"发现同名文件,是否覆盖?",okText:"覆盖",cancelText:"取消"}),r]:[!0,[]]}))}(s);return d?[new Set(l),new Set(c)]:[new Set([...l,...c]),new Set]}))}}(),i=function(){const e=(0,ce.useContext)(Je),{identifier:t}=(0,ce.useContext)(gt),n=$e();return function(o){const r=e[t];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return function(s){return nt(this,void 0,void 0,(function*(){const l=yield function(e){return nt(this,void 0,void 0,(function*(){const t=new Map(e.map((e=>[e.name,e]))),[n,o]=yield a(e);return n.forEach((e=>t.delete(e))),i(o),Array.from(t.values())}))}(s),d=yield function(e){return nt(this,void 0,void 0,(function*(){const t=e.map((e=>xe(e,n,o)));return(yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}))}(l);d.forEach((e=>{r({type:"add_file",identifier:t,file:e})})),function(e,t){try{const n=function(e){const t=Ce.transaction(e,"readwrite");return t.onerror=()=>console.warn(`添加文件事务错误: ${t.error}`),t.onabort=()=>console.warn("添加文件事务已中止"),t.oncomplete=()=>console.warn("添加文件事务已完成"),t}(e);!function(e,t){t.map((t=>function(e,t){try{e.put(t,t.fileName),console.warn(`文件 "${t.fileName}" 添加成功`)}catch(e){console.warn(`添加文件 "${t.fileName}" 时出错: ${e.message}`)}}(e,t)))}(n.objectStore(e),t)}catch(e){console.warn(`批量添加文件时出错: ${e.message}`)}}(t,d),d.length<l.length&&e.info("部分文件获取上传地址失败")}))}}const rt=(e=>{var t={};return D.d(t,e),t})({default:()=>r.default});var at=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function it(e,t=1e3){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}function st(e,t,n){const o=e.uploadUrls.findIndex((e=>e===t));e.uploadUrls.splice(o,1),e["complete"===n?"completeSeq":"failSeq"].push(t)}var lt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},dt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ct(){const e=function(){const{identifier:e,onOnePartDone:t}=(0,ce.useContext)(gt),n=(0,ce.useContext)(Pe),o=(0,ce.useCallback)(((t,o,r)=>{o.fileStatus===fe.UPLOADING&&(o.uploadStatus[r]=Number(t.progress),o.percentage=o.uploadStatus.reduce(((e,t)=>e+t))*(100/o.partCount),n({type:"edit_file",identifier:e,file:o}))}),[e,n]),r=(0,ce.useCallback)(((e,t,n)=>at(this,void 0,void 0,(function*(){const r=rt.default.create({});yield r.put(e.uploadUrl,t,{signal:n.cancelControllers[e.partNum].signal,withCredentials:!1,timeout:18e5,headers:{"Content-Type":"application/octet-stream"},onUploadProgress:it((t=>o(t,n,e.partNum)))})}))),[o]),a=(0,ce.useCallback)(((e,n)=>at(this,void 0,void 0,(function*(){const{fileName:o,uploadId:r}=e,a=yield t(o,r,n.partNum);if(!a.status)throw new Error(a.reason);st(e,n,"complete")}))),[t]),i=(0,ce.useCallback)(((e,t,n)=>at(this,void 0,void 0,(function*(){try{return yield r(e,t,n),yield a(n,e),n.fileStatus}catch(t){return st(n,e,"fail"),n.fileStatus}}))),[r,a]);return(0,ce.useCallback)((t=>at(this,void 0,void 0,(function*(){t.fileStatus=fe.UPLOADING,n({type:"edit_file",identifier:e,file:t});const o=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(t);for(const{url:r,chunk:a}of o){if(t.cancelControllers[r.partNum]=new AbortController,(yield i(r,a,t))===fe.CANCELED)return!1;n({type:"edit_file",identifier:e,file:t})}}))),[e,n,i])}(),t=function(){const{identifier:e,onAllPartDone:t}=(0,ce.useContext)(gt),n=(0,ce.useContext)(Pe);return(0,ce.useCallback)((o=>lt(this,void 0,void 0,(function*(){try{const{fileName:e,uploadId:n}=o;if(0!==o.failSeq.length)throw new Error("partial failed");{const r=yield t(e,n);if(!r.status)throw new Error(r.reason);o.fileStatus=fe.FINISHED}}catch(e){o.fileStatus=fe.FAILED}finally{n({type:"edit_file",identifier:e,file:o})}}))),[e,t,n])}();return(0,ce.useCallback)(((n,o)=>dt(this,void 0,void 0,(function*(){yield e(n),n.fileStatus!==fe.CANCELED&&(yield t(n),n.fileStatus===fe.FINISHED&&o&&o(n))}))),[e,t])}var pt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ut(e){const{message:t,modal:n}=V.App.useApp(),o=(0,ce.useContext)(Pe),r=_e();return(0,ce.useCallback)((()=>pt(this,void 0,void 0,(function*(){const a=yield function(e){return pt(this,void 0,void 0,(function*(){const t=yield(o=e,new Promise(((e,t)=>{Ce?function(e,t,n){Ce.objectStoreNames.contains(e)?Ae(e,t,n):Ne(e,t,n)}(o,e,t):function(e,t,n){try{const o=window.indexedDB.open(Ee);o.onupgradeneeded=()=>ke(o.result,e,t,n),o.onsuccess=()=>function(e,t,n,o){Se(e),e.objectStoreNames.contains(t)?Ae(t,n,o):Ne(t,n,o)}(o.result,e,t,n),o.onerror=()=>n(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>n(Error(`数据库被阻塞: ${o.error}`))}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),n(e)}}(o,e,t)}))),n=JSON.parse(localStorage.getItem(e)||"[]").map((e=>{const n=t.find((t=>t.fileName===e.fileName));return Object.assign(Object.assign(Object.assign({},n),e),{fileStatus:fe.PAUSED})}));var o;return localStorage.removeItem(e),n}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm({title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach(r)},onCancel(){t.info("点击上传按钮手动继续")}})}))),[e,o,r,n,t])}var ht=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function mt({open:e,identifier:t,accept:n,dragAreaDescription:o,footer:r,title:a="数据上传",showFinished:i=!1,directory:s=!1,onClose:l}){var d,c;const p=(0,ce.useContext)(Je),u=(0,ce.useContext)(Pe),{onSuccess:h}=(0,ce.useContext)(gt),m=ot(),f=ct(),b=ut(t),[w,g]=(0,ce.useState)([]),y=(0,ce.useRef)("");return(0,ce.useEffect)((()=>{y.current!==t&&(p&&u?(y.current=t,p[t]||u({type:"add",identifier:t}),b()):console.warn("FileUploadDrawer 必须在 UploadStoreProvider 内使用"))}),[t,b,p,u]),(0,ce.useEffect)((()=>{const e=p[t];if(!e)return;const n=!e.some((e=>e.fileStatus===fe.UPLOADING)),o=e.find((e=>e.fileStatus===fe.INIT));n&&o&&f(o,h)}),[t,h,f,p]),(0,R.jsxs)(V.Drawer,{className:"mylib-upload-drawer",open:e,title:a,width:480,onClose:l,footer:r,children:[(0,R.jsx)(Ue,{directory:s,accept:n,dragAreaDescription:o,onFileReceived:function(e){return ht(this,void 0,void 0,(function*(){g((t=>[...t,...e])),yield m(e),g((t=>{const n=new Set(t);for(const t of e)n.delete(t);return[...n]}))}))}}),0===w.length&&0===(null===(d=p[t])||void 0===d?void 0:d.length)&&(0,R.jsx)(V.Empty,{className:"mt-20",description:"暂无上传内容"}),w.length>0&&(0,R.jsxs)("div",{className:"flex justify-center gap-4 mt-4",children:[(0,R.jsx)(Te.LoadingOutlined,{}),"预检上传文件中(",w.length,")"]}),(null===(c=p[t])||void 0===c?void 0:c.length)>0&&(0,R.jsx)(Xe,{showFinished:i,identifier:t})]})}var ft=D(588),bt={};bt.styleTagTransform=ie(),bt.setAttributes=ne(),bt.insert=ee().bind(null,"head"),bt.domAPI=Y(),bt.insertStyleElement=re(),G()(ft.A,bt),ft.A&&ft.A.locals&&ft.A.locals;var wt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const gt=(0,ce.createContext)({identifier:"",getUploadUrls:()=>wt(void 0,void 0,void 0,(function*(){return{status:!1}})),onCancelUpload:()=>wt(void 0,void 0,void 0,(function*(){return{status:!1}})),onOnePartDone:()=>wt(void 0,void 0,void 0,(function*(){return{status:!1}})),onAllPartDone:()=>wt(void 0,void 0,void 0,(function*(){return{status:!1}}))});function yt(e){if((0,ce.useContext)(Je)===Ke)return(0,R.jsx)(V.Drawer,{open:e.open,onClose:e.onClose,title:"数据上传",children:(0,R.jsx)(V.Alert,{message:"FileUploadDrawer 必须在 UploadStoreProvider 内使用",type:"warning"})});const{identifier:t,maxSizePerFile:n=10*me,directory:o=!1,root:r="",uploadHistory:a=[],onSuccess:i,getUploadUrls:s,onCancelUpload:l,onOnePartDone:d,onAllPartDone:c,onClose:p,dragAreaDescription:u,accept:h,open:m,footer:f,title:b,showFinished:w}=e,g={identifier:t,maxSizePerFile:n,directory:o,root:r,uploadHistory:a,onSuccess:i,getUploadUrls:s,onCancelUpload:l,onOnePartDone:d,onAllPartDone:c};return(0,R.jsx)(gt.Provider,{value:g,children:(0,R.jsx)(mt,{open:m,accept:h,footer:f,title:b,showFinished:w,directory:o,identifier:t,dragAreaDescription:u,onClose:p})})}var xt,vt=D(884),jt={};jt.styleTagTransform=ie(),jt.setAttributes=ne(),jt.insert=ee().bind(null,"head"),jt.domAPI=Y(),jt.insertStyleElement=re(),G()(vt.A,jt),vt.A&&vt.A.locals&&vt.A.locals,function(e){e[e.SHOULD_CREATE_NEW_FILE=0]="SHOULD_CREATE_NEW_FILE",e[e.SHOULD_USE_OLD_INFO=1]="SHOULD_USE_OLD_INFO"}(xt||(xt={}));const kt=1024,Nt=1048576,At=1073741824;var zt;!function(e){e[e.INIT=1]="INIT",e[e.UPLOADING=2]="UPLOADING",e[e.ALL_UPLOADED=3]="ALL_UPLOADED",e[e.MERGING=4]="MERGING",e[e.FINISHED=5]="FINISHED",e[e.FAILED=6]="FAILED",e[e.PAUSED=7]="PAUSED",e[e.CANCELED=8]="CANCELED"}(zt||(zt={}));var Et=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ct(e,t,n){return Et(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=function(e,t,n){return{fileName:e,uploadId:"",percentage:0,expiryTime:"",failSeq:[],uploadUrls:[],completeSeq:[],uploadStatus:[],cancelControllers:[],fileStatus:zt.INIT,partCount:Mt(t),chunkSize:St(t),raw:new File([n],e,{type:n.type})}}(a,r,e),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:zt.FAILED})}))}function St(e){return e<10*Nt?10*Nt:Math.ceil(e/10)}function Mt(e){const t=St(e);return Math.floor(e/t)+1}function Bt(e,t){try{const n=Zt.transaction(e,"readwrite").objectStore(e).delete(t);n.onsuccess=()=>console.info("在 deleteFileInStore 中 deleteReq.onsuccess 触发"),n.onerror=()=>console.warn("在 deleteFileInStore 中 deleteReq.onerror 触发 - 错误代码: "+n.error)}catch(e){return void console.warn("在 deleteFileInStore 中, db.transaction/transaction.objectStore/objectStore.delete 异常 - "+e.message)}}var Ot=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Wt="uploadStore";let Zt;function Kt(e){Zt=e}var Jt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Pt(e,t,n){return Jt(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Jt(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Pt(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Jt(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[Ft(o,n)]:[]}))}(e,n,o):[]}))}function Ft(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}var Lt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Tt(e){const t=e.map((e=>{var{raw:t}=e,n=Lt(e,["raw"]);const{uploadUrls:o,failSeq:r}=n;return Object.assign(Object.assign({},n),{failSeq:[],cancelControllers:{},uploadUrls:[...o,...r]})}));return JSON.stringify(t)}const It={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader must be used within UploadStoreProvider","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal must be used within UploadStoreProvider",文件上传:"File Upload",确定:"Confirm",等待上传:"Waiting for upload",已取消:"Cancelled",上传中:"Uploading",上传失败:"Upload failed",已上传:"Uploaded",分块合并中:"Merging parts",以下文件大小超过:"The following files exceed the size",已删除:"Deleted",点击或拖拽上传文件:"Click or drag to upload files","发现同名文件,是否覆盖?":"Duplicate file found, overwrite?",覆盖:"Overwrite",取消:"Cancel",正在上传:"Uploading",取消失败:"Cancel failed",当前上传:"Current Upload",已暂停:"Paused",上传成功:"Upload successful",校验中:"Calibrating",合并中:"Merging"},Dt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader 必须在 UploadStoreProvider 内使用","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal 必须在 UploadStoreProvider 内使用",文件上传:"文件上传",确定:"确定",等待上传:"等待上传",已取消:"已取消",上传中:"上传中",上传失败:"上传失败",已上传:"已上传",分块合并中:"分块合并中",以下文件大小超过:"以下文件大小超过",已删除:"已删除",点击或拖拽上传文件:"点击或拖拽上传文件","发现同名文件,是否覆盖?":"发现同名文件,是否覆盖?",覆盖:"覆盖",取消:"取消",正在上传:"正在上传",取消失败:"取消失败",当前上传:"当前上传",已暂停:"已暂停",上传成功:"上传成功",校验中:"校验中",合并中:"合并中"};var Ut=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ht(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==zt.FINISHED))})}case"edit_files":return Object.entries(t.files).reduce(((t,[n,o])=>{const r=e[n];return o.forEach((e=>{const t=r.findIndex((t=>t.fileName===e.fileName));-1!==t?r[t]=e:r.push(e)})),t}),Object.assign({},e));default:throw Error("Unknown action")}}const Rt=(0,ce.createContext)(Dt),qt=(0,ce.createContext)({}),_t=(0,ce.createContext)((()=>null)),Vt=(0,ce.createContext)({}),$t=(0,ce.createContext)((()=>null)),Gt={},Xt=(0,ce.createContext)(Gt),Yt=(0,ce.createContext)((()=>null));function Qt({locale:e="zh",children:t}){const n="zh"===e?Dt:It,[o,r]=(0,ce.useReducer)(Ht,{}),[a,i]=(0,ce.useState)({}),[s,l]=(0,ce.useState)({});return function(e){(0,ce.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){Object.entries(e).forEach((([e,t])=>{const n=t.filter((e=>e.fileStatus!==zt.FINISHED));n.length?localStorage.setItem(e,Tt(n)):function(e){Ot(this,void 0,void 0,(function*(){const t=Zt.version+1;return Zt.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(Wt,t);r.onupgradeneeded=()=>{const t=r.result;t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(e)}))}}),[e])}(o),function(e,t){(0,ce.useEffect)((()=>{const n=Object.keys(e).reduce(((t,n)=>{const o=e[n],r=o.filter((e=>e.fileStatus===zt.ALL_UPLOADED)),a=r.filter((e=>0===e.failSeq.length)),i=r.filter((e=>e.failSeq.length>0)),s=o.find((e=>e.fileStatus===zt.UPLOADING)),l=o.find((e=>e.fileStatus===zt.INIT)),d=s?void 0:l,c=[...i.map((e=>Object.assign(Object.assign({},e),{fileStatus:zt.FAILED}))),...a.map((e=>Object.assign(Object.assign({},e),{fileStatus:zt.MERGING}))),d?Object.assign(Object.assign({},d),{fileStatus:zt.UPLOADING}):void 0].filter((e=>!!e));return c.length?Object.assign(Object.assign({},t),{[n]:c}):t}),{});Object.keys(n).length&&t({type:"edit_files",files:n})}),[t,e])}(o,r),function(e,t,n,o){const r=(0,ce.useRef)({}),a=(0,ce.useCallback)((function(e,a){return Ut(this,void 0,void 0,(function*(){const{onAllPartDone:i}=t[e],s=n[e],l=yield Promise.all(a.map((t=>Ut(this,void 0,void 0,(function*(){return(yield i(t.fileName,t.uploadId)).status?(null==s||s(t),r.current[e].delete(t.uploadId),Object.assign(Object.assign({},t),{percentage:100,fileStatus:zt.FINISHED})):Object.assign(Object.assign({},t),{fileStatus:zt.FAILED})})))));o({type:"edit_files",files:{[e]:l}})}))}),[t,n,o]);(0,ce.useEffect)((()=>{Object.keys(e).forEach((t=>{const n=e[t].filter((e=>e.fileStatus===zt.MERGING));if(n.length>0){const e=r.current[t]||new Set,o=n.filter((t=>!e.has(t.uploadId)));o.forEach((t=>e.add(t.uploadId))),r.current[t]=e,a(t,o)}}))}),[e,a])}(o,a,s,r),(0,R.jsx)(Rt.Provider,{value:n,children:(0,R.jsx)(qt.Provider,{value:a,children:(0,R.jsx)(_t.Provider,{value:i,children:(0,R.jsx)(Vt.Provider,{value:s,children:(0,R.jsx)($t.Provider,{value:l,children:(0,R.jsx)(Xt.Provider,{value:o,children:(0,R.jsx)(Yt.Provider,{value:r,children:t})})})})})})})}var en=D(868),tn={};function nn(){const e=(0,ce.useContext)(Rt);return(0,ce.useCallback)((t=>e[t]||(console.warn(`Translation key not found: ${t}`),t)),[e])}function on(e){return(0,R.jsx)("svg",Object.assign({width:"34",height:"31",viewBox:"0 0 34 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,R.jsxs)("g",{id:"ä¸ä¼ æå¾",children:[(0,R.jsx)("path",{id:"Vector",d:"M26 8.66665V29.7043C26.0013 29.867 25.9705 30.0284 25.9094 30.1792C25.8483 30.33 25.7581 30.4672 25.6439 30.5831C25.5297 30.699 25.3938 30.7913 25.244 30.8547C25.0941 30.918 24.9332 30.9512 24.7705 30.9523H1.22943C0.903577 30.9523 0.591055 30.823 0.360528 30.5927C0.130002 30.3624 0.000328142 30.05 0 29.7241V1.22819C0 0.563332 0.553428 0 1.23562 0H17.3333V7.42856C17.3333 7.75692 17.4638 8.07184 17.6959 8.30402C17.9281 8.53621 18.243 8.66665 18.5714 8.66665H26ZM26 6.19047H19.8095V0.00371423L26 6.19047Z",fill:"#B9D6FF"}),(0,R.jsxs)("g",{id:"Group 1000006993",children:[(0,R.jsx)("circle",{id:"Ellipse 87",cx:"26",cy:"23",r:"8",fill:"#1775FE"}),(0,R.jsx)("path",{id:"Vector_2",d:"M26.4545 24.315V27.5714H25.5455V24.315L24.3034 25.2023L23.775 24.4625L26 22.8732L28.225 24.4625L27.6966 25.2023L26.4545 24.315ZM31 24.4545C31 25.7098 29.9825 26.7273 28.7273 26.7273H27.3636V25.8182H28.7273C29.0749 25.8184 29.4094 25.6858 29.6625 25.4476C29.9156 25.2094 30.0682 24.8835 30.0891 24.5365C30.11 24.1896 29.9976 23.8477 29.7749 23.5808C29.5522 23.314 29.236 23.1422 28.8909 23.1007L28.4568 23.0489L28.4918 22.6127C28.4973 22.5455 28.5 22.4775 28.5 22.4091C28.5 21.0284 27.3807 19.9091 26 19.9091C25.4245 19.9091 24.8666 20.1077 24.4205 20.4712C23.9744 20.8347 23.6672 21.3409 23.5509 21.9045L23.4955 22.175L23.2295 22.2507C22.8492 22.3591 22.5146 22.5885 22.2763 22.9042C22.038 23.2198 21.9091 23.6045 21.9091 24C21.9091 24.4822 22.1006 24.9447 22.4416 25.2856C22.7826 25.6266 23.2451 25.8182 23.7273 25.8182H24.6364V26.7273H23.7273C22.2211 26.7273 21 25.5061 21 24C21 22.8655 21.6989 21.8682 22.7239 21.4632C22.9292 20.753 23.3598 20.1288 23.9506 19.6846C24.5415 19.2403 25.2607 19.0001 26 19C27.8414 19 29.3416 20.4598 29.4068 22.2852C29.8687 22.4302 30.2723 22.7187 30.5588 23.1089C30.8453 23.499 30.9999 23.9705 31 24.4545Z",fill:"white"})]})]})}))}function rn({description:e}){const t=nn();return(0,R.jsx)("div",{className:"text-gray-5 text-center",children:e?Array.isArray(e)?e.map(((e,t)=>(0,R.jsx)("p",{className:"m-0",children:e},t))):(0,R.jsx)("div",{className:"m-0",children:e}):(0,R.jsx)("p",{className:"m-0",children:t("点击或拖拽上传文件")})})}function an({className:e,description:t,onClick:n,handleDrop:o}){const[r,a]=(0,ce.useState)(!1),i={onDrop:e=>{e.preventDefault(),a(!1),o(e)},onDragLeave:()=>a(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),a(!0)}};return(0,R.jsxs)("div",Object.assign({},i,{className:`zjlab-fe-data-hub-ui-default-drag-area ${r?"border-[#1775FE]":""} ${e}`,onClick:n,children:[(0,R.jsx)(on,{}),(0,R.jsx)(rn,{description:t})]}))}tn.styleTagTransform=ie(),tn.setAttributes=ne(),tn.insert=ee().bind(null,"head"),tn.domAPI=Y(),tn.insertStyleElement=re(),G()(en.A,tn),en.A&&en.A.locals&&en.A.locals;var sn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ln({accept:e="",className:t="",directory:n=!0,dragAreaDescription:o,maxSizePerFile:r=10*At,onFileReceived:a}){const i=nn(),{message:s}=V.App.useApp(),l=(0,ce.useRef)(null),d=(0,ce.useMemo)((()=>new Set(e?e.split(","):[])),[e]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(an,{className:t,description:o,handleDrop:function(e){return sn(this,void 0,void 0,(function*(){const t=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Pt(e,n,d)));c((yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value)))}))},onClick:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.click()}}),(0,R.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:e,ref:l,onChange:function(){var e;const t=null===(e=l.current)||void 0===e?void 0:e.files;c(Array.from(null!=t?t:[]))},onClick:()=>{l.current&&(l.current.value="")}})]});function c(e){const t=e.filter((e=>e.size<=r));if(t.length<e.length){const e=function(e){const t=[{value:At,label:"GB"},{value:Nt,label:"MB"},{value:kt,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}(r);s.warning(i("以下文件大小超过")+e+","+i("已删除"))}t.length&&a(t)}}function dn(e){return(0,R.jsx)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,R.jsx)("g",{id:"icon/å
³éæé®",children:(0,R.jsx)("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8.49967C14.6668 12.1816 11.6821 15.1663 8.00016 15.1663C4.31826 15.1663 1.3335 12.1816 1.3335 8.49967C1.3335 4.81777 4.31826 1.83301 8.00016 1.83301C11.6821 1.83301 14.6668 4.81777 14.6668 8.49967ZM10.239 6.26052C10.4343 6.45578 10.4343 6.77237 10.239 6.96763L8.70698 8.49969L10.239 10.0318C10.4343 10.227 10.4343 10.5436 10.239 10.7389C10.0438 10.9341 9.7272 10.9341 9.53194 10.7389L7.99987 9.2068L6.46781 10.7389C6.27255 10.9341 5.95597 10.9341 5.7607 10.7389C5.56544 10.5436 5.56544 10.227 5.7607 10.0318L7.29277 8.49969L5.7607 6.96763C5.56544 6.77237 5.56544 6.45578 5.7607 6.26052C5.95597 6.06526 6.27255 6.06526 6.46781 6.26052L7.99987 7.79258L9.53194 6.26052C9.7272 6.06526 10.0438 6.06526 10.239 6.26052Z",fill:"currentColor"})})}))}const cn=(e=>{var t={};return D.d(t,e),t})({atom:()=>a.atom,useAtom:()=>a.useAtom,useAtomValue:()=>a.useAtomValue,useSetAtom:()=>a.useSetAtom});var pn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const un=rt.default.create();function hn(e,t=500){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}var mn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},fn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const bn=(0,cn.atom)(null),wn=(0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.fileName})),gn=((0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.expiryTime})),(0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.uploadId}))),yn=((0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.raw})),(0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.percentage}))),xn=(0,cn.atom)((e=>{var t;return null===(t=e(bn))||void 0===t?void 0:t.cancelControllers}));function vn(){const e=(0,ce.useRef)(!1),t=(0,ce.useRef)([]),n=(0,ce.useContext)(Nn),[o,r]=(0,cn.useAtom)(bn),a=(0,ce.useContext)(Yt);!function(){const e=(0,ce.useContext)(Nn),t=(0,ce.useContext)(Xt),n=(0,cn.useAtomValue)(bn),o=(0,cn.useSetAtom)(bn);(0,ce.useEffect)((()=>{const n=t[e];if(!n||0===n.length)return;const r=n.find((e=>e.fileStatus===zt.UPLOADING));r&&o(Object.assign(Object.assign({},r),{fileStatus:zt.INIT}))}),[e,o,t]),(0,ce.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){n&&n.fileStatus===zt.UPLOADING&&localStorage.setItem(e+"_uploading",Tt([n]))}}),[n,e])}();const i=function(){const e=(0,ce.useContext)(Nn),t=(0,cn.useSetAtom)(bn),n=(0,ce.useContext)(Yt),o=function(){const e=(0,ce.useContext)(Cn),t=(0,cn.useAtomValue)(xn),n=(0,cn.useSetAtom)(bn),o=(0,ce.useCallback)(((e,t)=>{n((n=>{if(!n||n.fileStatus!==zt.UPLOADING)return n;const o=1!==n.uploadStatus[t]?n.uploadStatus.toSpliced(t,1,Number(e.progress)):n.uploadStatus,r=n.uploadStatus.reduce(((e,t)=>e+(t||0)),0)*(100/n.partCount);return Object.assign(Object.assign({},n),{percentage:r,uploadStatus:o})}))}),[n]);return(0,ce.useCallback)(((n,r)=>pn(this,void 0,void 0,(function*(){t&&(yield un.put(n.uploadUrl,r,Object.assign(Object.assign({},e),{withCredentials:(null==e?void 0:e.withCredentials)||!1,timeout:(null==e?void 0:e.timeout)||18e5,headers:Object.assign({"Content-Type":"application/octet-stream"},null==e?void 0:e.headers),signal:t[n.partNum].signal,onUploadProgress:hn((e=>o(e,n.partNum)))})))}))),[t,e,o])}(),r=function(e){const t=(0,cn.useAtomValue)(wn),n=(0,cn.useAtomValue)(gn),o=(0,ce.useContext)(qt),r=(0,cn.useSetAtom)(bn),a=o[e],{onOnePartDone:i}=a;return(0,ce.useCallback)((e=>mn(this,void 0,void 0,(function*(){if(!t||!n)return;const o=yield i(t,n,e.partNum);if(!o.status)throw new Error(o.reason);r((t=>{if(!t)return t;const n=[...t.uploadStatus];return n[e.partNum]=1,Object.assign(Object.assign({},t),{uploadStatus:n,uploadUrls:t.uploadUrls.filter((t=>t.partNum!==e.partNum)),completeSeq:[...t.completeSeq,e]})}))}))),[t,n,i,r])}(e),a=(0,ce.useCallback)(((e,n)=>fn(this,void 0,void 0,(function*(){try{yield o(e,n),yield r(e)}catch(n){if(n instanceof Error&&"canceled"===n.message)return;t((t=>t?Object.assign(Object.assign({},t),{failSeq:[...t.failSeq,e],uploadUrls:t.uploadUrls.filter((t=>t!==e))}):t))}}))),[o,r,t]);return(0,ce.useCallback)((function(o){return fn(this,void 0,void 0,(function*(){for(const{url:e,chunk:t}of o)yield a(e,t);t((t=>t?(n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},t),{fileStatus:zt.ALL_UPLOADED})}),null):t))}))}),[e,a,t,n])}();(0,ce.useEffect)((()=>{o?(o.fileStatus===zt.INIT&&(t.current=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(o),r((e=>e?Object.assign(Object.assign({},e),{fileStatus:zt.UPLOADING,cancelControllers:new Array(t.current.length).fill(new AbortController)}):e))),o.fileStatus!==zt.UPLOADING||e.current||(e.current=!0,i(t.current)),o.fileStatus===zt.CANCELED&&(Object.values(o.cancelControllers).forEach((e=>e.abort())),a({type:"remove_file",identifier:n,fileName:o.fileName}),r(null)),o.fileStatus===zt.FAILED&&(a({type:"edit_file",identifier:n,file:o}),r(null))):e.current=!1}),[o,n,i,r,a])}const jn=(e=>{var t={};return D.d(t,e),t})({ScopeProvider:()=>i.ScopeProvider}),kn=(0,ce.createContext)(void 0),Nn=(0,ce.createContext)(""),An=(0,ce.createContext)(void 0),zn=(0,ce.createContext)(void 0),En=(0,ce.createContext)(!1),Cn=(0,ce.createContext)(void 0);function Sn({children:e,root:t,identifier:n,showFinished:o,uploadRequestConfig:r,externalUploadContext:a,externalUploadContextOnly:i=!1,onUploadSuccess:s,getUploadUrls:l,onCancelUpload:d,onOnePartDone:c,onAllPartDone:p,onDeleteFile:u}){const h=(0,ce.useContext)(qt),m=(0,ce.useContext)(_t),f=(0,ce.useContext)($t);return(0,ce.useEffect)((()=>{m((e=>Object.assign(Object.assign({},e),{[n]:{getUploadUrls:l,onCancelUpload:d,onOnePartDone:c,onAllPartDone:p,onDeleteFile:u}})))}),[l,d,c,p,u,m,n]),(0,ce.useEffect)((()=>{f((e=>Object.assign(Object.assign({},e),{[n]:s})))}),[n,s,f]),h[n]?(0,R.jsx)(jn.ScopeProvider,{atoms:[bn],children:(0,R.jsx)(kn.Provider,{value:t,children:(0,R.jsx)(Nn.Provider,{value:n,children:(0,R.jsx)(An.Provider,{value:o,children:(0,R.jsx)(zn.Provider,{value:a,children:(0,R.jsx)(En.Provider,{value:i,children:(0,R.jsx)(Cn.Provider,{value:r,children:e})})})})})})}):(0,R.jsx)(R.Fragment,{})}var Mn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Bn(){const e=nn(),{message:t}=V.App.useApp(),n=(0,ce.useContext)(Nn),o=(0,ce.useContext)(qt),r=(0,ce.useContext)(Yt);return function(r){return Mn(this,void 0,void 0,(function*(){const{onCancelUpload:i}=o[n];if(!r.uploadId)return void a(r.fileName);const s=yield i(r.fileName,r.uploadId);s.status?a(r.fileName):t.error(s.reason||e("取消失败"))}))};function a(e){Bt(String(n),e),r({type:"remove_file",identifier:n,fileName:e})}}function On(e){return(0,R.jsx)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,R.jsxs)("g",{id:"Component 56",children:[(0,R.jsx)("path",{id:"Subtract",d:"M10.1988 5.9923V1.50071L5.00029 1.5C4.44796 1.49992 4.00016 1.94765 4.00015 2.49999L4 13.4998C3.99999 14.0521 4.44771 14.4999 5 14.4999H13.5068C14.0591 14.4999 14.5068 14.0522 14.5068 13.4999L14.507 5.9923H10.1988Z",fill:"currentColor"}),(0,R.jsx)("path",{id:"Subtract_2",d:"M14.507 4.82148H11.3911V1.5L14.507 4.82148Z",fill:"currentColor",fillOpacity:"0.4"})]})}))}const Wn={size:12,type:"circle",strokeWidth:16,showInfo:!1,strokeLinecap:"butt"},Zn={[zt.INIT]:"等待上传",[zt.MERGING]:"合并中",[zt.CANCELED]:"已取消",[zt.ALL_UPLOADED]:"校验中",[zt.PAUSED]:"已暂停",[zt.FAILED]:"上传失败",[zt.UPLOADING]:"上传中",[zt.FINISHED]:"上传成功"},Kn=(0,ce.memo)((function({file:e}){const t=nn(),n=Bn();return(0,R.jsx)("div",{className:"my-2.5",children:(0,R.jsxs)(Jn,{children:[(0,R.jsx)(Pn,{fileName:e.fileName}),(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,R.jsx)(Fn,{fileStatus:t(Zn[e.fileStatus]),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,R.jsx)(Ln,{onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function Jn({children:e,className:t}){return(0,R.jsx)("div",{className:`p-2 relative flex justify-between items-center rounded group ${t}`,children:e})}function Pn({fileName:e,className:t}){return(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",children:[(0,R.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-[#F5F7FA]",children:(0,R.jsx)(On,{className:`text-gray-5 h-5 w-5 ${t}`})}),(0,R.jsx)("span",{className:`truncate w-40 text-gray-5 ${t}`,children:e})]})}function Fn({className:e="",fileStatus:t,percentage:n,strokeColor:o="#1775FE"}){return(0,R.jsxs)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-gray-5 ${e}`,children:[t,(0,R.jsx)(V.Progress,Object.assign({percent:n},Wn,{strokeColor:o}))]})}function Ln({onDelete:e,extraActions:t,className:n=""}){return(0,R.jsxs)("div",{className:`flex items-center justify-center h-6 gap-1 text-gray-5 ${n}`,children:[t,(0,R.jsx)(dn,{onClick:e,className:"h-4 w-4 cursor-pointer"})]})}const Tn=(0,ce.memo)((function(){const e=nn(),t=(0,ce.useContext)(Nn),n=(0,cn.useAtomValue)(wn),o=(0,cn.useAtomValue)(yn),r=(0,cn.useAtomValue)(gn),a=(0,ce.useContext)(qt),{onCancelUpload:i}=a[t],s=(0,cn.useSetAtom)(bn);return(0,R.jsx)("div",{className:"my-2.5",children:(0,R.jsxs)(Jn,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,R.jsx)(Pn,{fileName:n}),(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,R.jsx)(Fn,{fileStatus:e("正在上传"),percentage:Number(o.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,R.jsx)(Ln,{onDelete:function(){return o=this,a=void 0,d=function*(){const o=yield i(n,r);o.status?(Bt(String(t),n),s((e=>e?Object.assign(Object.assign({},e),{fileStatus:zt.CANCELED}):e))):V.message.error(o.reason||e("取消失败"))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}i((d=d.apply(o,a||[])).next())}));var o,a,l,d},className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));const In=(0,ce.memo)((function({file:e}){const t=nn(),n=(0,ce.useContext)(Yt),o=(0,ce.useContext)(Nn),r=(0,ce.useContext)(qt),{onDeleteFile:a}=r[o],i=Bn();return(0,R.jsx)("div",{className:"my-2.5",children:(0,R.jsxs)(Jn,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,R.jsx)(Pn,{fileName:e.fileName,className:"text-green-green"}),(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,R.jsx)(Fn,{percentage:100,fileStatus:t("上传成功"),strokeColor:"#53C31B",className:"text-green-green group-hover:-translate-x-6 transition-transform"}),(0,R.jsx)(Ln,{onDelete:()=>function(e){return t=this,r=void 0,l=function*(){if(!a)return i(e);(yield a(e.fileName))&&n({type:"remove_file",identifier:o,fileName:e.fileName})},new((s=void 0)||(s=Promise))((function(e,n){function o(e){try{i(l.next(e))}catch(e){n(e)}}function a(e){try{i(l.throw(e))}catch(e){n(e)}}function i(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(o,a)}i((l=l.apply(t,r||[])).next())}));var t,r,s,l}(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})})),Dn=(0,ce.memo)((function({file:e}){const t=Bn();return(0,R.jsx)("div",{className:"my-2.5",children:(0,R.jsxs)(Jn,{className:"bg-red/10",children:[(0,R.jsx)((function(){return(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",children:[(0,R.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-red/10",children:(0,R.jsx)(On,{className:"text-red-red h-5 w-5"})}),(0,R.jsx)("span",{className:"truncate w-40 text-red-red",children:e.fileName})]})}),{}),(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,R.jsx)((function({className:e=""}){const t=nn();return(0,R.jsx)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-red-red ${e}`,children:t("上传失败")})}),{className:"group-hover:-translate-x-6 transition-transform"}),(0,R.jsx)(Ln,{onDelete:()=>t(e),className:"text-red-red absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));var Un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Hn(){const e=(0,ce.useContext)(Nn),t=(0,ce.useContext)(qt),n=(0,ce.useContext)(Yt);return(0,ce.useCallback)((o=>Un(this,void 0,void 0,(function*(){const r=t[e];if(function(e){if(!e)return xt.SHOULD_CREATE_NEW_FILE;const t=new Date;return new Date(e)<t?xt.SHOULD_CREATE_NEW_FILE:xt.SHOULD_USE_OLD_INFO}(o.expiryTime)===xt.SHOULD_CREATE_NEW_FILE){const t=yield Ct(o.raw,void 0,r.getUploadUrls);n({type:"edit_file",identifier:e,file:t})}else{const t=[...o.failSeq,...o.uploadUrls];n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},o),{uploadUrls:t,failSeq:[],cancelControllers:[],fileStatus:zt.INIT})})}}))),[e,t,n])}const Rn=(0,ce.memo)((function({file:e}){const t=nn(),n=Bn();return(0,R.jsx)("div",{className:"my-2.5",children:(0,R.jsxs)(Jn,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,R.jsx)(Pn,{fileName:e.fileName}),(0,R.jsxs)(V.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,R.jsx)(Fn,{fileStatus:t("已暂停"),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-10 transition-transform"}),(0,R.jsx)(Ln,{extraActions:(0,R.jsx)((function(){const t=Hn();return(0,R.jsx)(Te.PlayCircleFilled,{className:"text-gray-5 h-4 w-4 cursor-pointer",onClick:()=>t(e)})}),{}),onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function qn(){const e=nn(),t=(0,ce.useContext)(Nn),n=(0,ce.useContext)(Xt),o=(0,ce.useContext)(An),r=(0,cn.useAtomValue)(wn),a=(0,ce.useMemo)((()=>{var e;return null===(e=n[t])||void 0===e?void 0:e.filter((e=>!(!o&&e.fileStatus===zt.FINISHED)))}),[t,o,n]);return vn(),a&&0!==a.length?(0,R.jsxs)("div",{className:"mb-5",children:[(0,R.jsx)("div",{className:"text-sm text-gray-7",children:e("当前上传")}),(0,R.jsx)("div",{className:"max-h-72 overflow-y-auto",children:a.map((e=>{if(e.fileName===r)return(0,R.jsx)(Tn,{},e.fileName);switch(e.fileStatus){case zt.FINISHED:return(0,R.jsx)(In,{file:e},e.fileName);case zt.FAILED:return(0,R.jsx)(Dn,{file:e},e.fileName);case zt.PAUSED:return(0,R.jsx)(Rn,{file:e},e.fileName);default:return(0,R.jsx)(Kn,{file:e},e.fileName)}}))})]}):(0,R.jsx)(R.Fragment,{})}const _n={icon:null,centered:!0,closable:!0,styles:{mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},body:{marginTop:"24px",textAlign:"center"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},footer:e=>(0,R.jsx)(V.Flex,{justify:"center",align:"center",children:e}),className:"zjlab-fe-data-hub-ui-modal"},Vn={width:600,centered:!0,closable:!0,styles:{body:{display:"flow-root"},footer:{textAlign:"center"},header:{marginBlockEnd:"16px"},mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},className:"zjlab-fe-data-hub-ui-file-uploader zjlab-fe-data-hub-ui-modal"};var $n=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Gn(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function Xn(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var Yn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};var Qn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function eo(e){const{message:t,modal:n}=V.App.useApp(),o=(0,ce.useContext)(Yt),r=Hn();return(0,ce.useCallback)((()=>Qn(this,void 0,void 0,(function*(){const a=yield function(e){return Qn(this,void 0,void 0,(function*(){const t=yield(i=e,new Promise(((e,t)=>{function n(n){Zt.objectStoreNames.contains(n)?function(e){return new Promise((function(t,n){try{const n=Zt.transaction(e,"readonly").objectStore(e),o=[],r=n.openCursor();r.onsuccess=()=>{const e=r.result;e?(o.push(e.value),e.continue()):t(o)},r.onerror=()=>console.warn(`retrieveExistingData 中游标操作失败 - 错误代码: ${r.error}`)}catch(e){n(Error(`retrieveExistingData 中执行事务或打开游标时发生异常 - ${e.message}`))}}))}(n).then(e).catch(t):function(n){const o=Zt.version+1;Zt.close();const r=window.indexedDB.open(Wt,o);r.onerror=()=>t(Error(`打开数据库失败: ${r.error}`)),r.onblocked=()=>t(Error(`数据库被阻塞: ${r.error}`)),r.onsuccess=()=>console.info("openRequest.onsuccess 在 triggerDatabaseUpgrade 中被触发"),r.onupgradeneeded=()=>{Kt(r.result);try{r.result.createObjectStore(n,{}),r.result.onversionchange=e=>{null===e.newVersion&&r.result.close()},e([])}catch(e){t(Error(`升级数据库异常: ${e.message}`))}}}(n)}Zt?n(i):function(e){try{const o=window.indexedDB.open(Wt);o.onsuccess=()=>{Kt(o.result),n(e)},o.onerror=()=>t(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>t(Error(`数据库被阻塞: ${o.error}`)),o.onupgradeneeded=()=>console.info("openRequest.onupgradeneeded(SHOULD NOT BE CALLED)")}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),t(e)}}(i)}))),n=JSON.parse(localStorage.getItem(e)||"[]"),o=JSON.parse(localStorage.getItem(e+"_uploading")||"[]"),r=function(){if(o.length){const e=n.findIndex((e=>e.fileName===o[0].fileName));-1!==e&&n.splice(e,1,o[0])}return n}(),a=t.map((e=>{const t=r.find((t=>t.fileName===e.name));return t?Object.assign(Object.assign({},t),{raw:e,fileStatus:zt.PAUSED}):null})).filter((e=>null!==e));var i;return localStorage.removeItem(e),localStorage.removeItem(e+"_uploading"),a}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm(Object.assign(Object.assign({},_n),{title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach((e=>r(e)))},onCancel(){t.info("点击上传按钮手动继续")}}))}))),[e,o,r,n,t])}var to=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function no(e){var{extra:t,dragAreaConfig:n}=e,o=to(e,["extra","dragAreaConfig"]);return(0,R.jsx)(Sn,Object.assign({},o,{children:(0,R.jsx)(oo,{extra:t,dragAreaConfig:n})}))}function oo({extra:e,dragAreaConfig:t}){const n=(0,ce.useContext)(Nn),o=(0,ce.useContext)(Xt),r=(0,ce.useContext)(Yt),a=(0,ce.useContext)(En);!function(){const e=(0,ce.useContext)(Nn),t=(0,ce.useContext)(Xt),n=(0,ce.useContext)(Yt),o=(0,ce.useRef)(""),r=eo(e);(0,ce.useEffect)((()=>{o.current!==e&&(o.current=e,t[e]||n({type:"add",identifier:e}),r())}),[e,r,t,n])}();const{isFormatingFiles:i,formatFiles:s}=function(){const e=nn(),{message:t}=V.App.useApp(),n=(0,ce.useContext)(kn),o=(0,ce.useContext)(Nn),r=(0,ce.useContext)(qt),a=(0,ce.useContext)(Yt),{getUploadUrls:i}=r[o],[s,l]=(0,ce.useState)(!1),d=function(){const{modal:e}=V.App.useApp(),t=nn(),n=(0,ce.useContext)(kn),o=(0,ce.useContext)(Nn),r=(0,ce.useContext)(Xt),a=(0,ce.useContext)(zn),i=(0,ce.useContext)(En);return function(s){return $n(this,void 0,void 0,(function*(){const l=i?Xn(s,null!=a?a:[]):[...Gn(s,r[o],n),...Xn(s,null!=a?a:[])];return l.length?[yield e.confirm(Object.assign(Object.assign({},_n),{okText:t("覆盖"),cancelText:t("取消"),title:t("发现同名文件,是否覆盖?")})),new Set(l)]:[!0,new Set]}))}}(),c=function(){const e=(0,ce.useContext)(Nn),t=(0,ce.useContext)(Xt),n=Bn();return function(o){const r=t[e];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return{isFormatingFiles:s,formatFiles:function(r){return Yn(this,void 0,void 0,(function*(){l(!0);const s=yield function(e){return Yn(this,void 0,void 0,(function*(){const[t,n]=yield d(e);return t?(c(n),e):e.filter((e=>!n.has(e.name)))}))}(r),p=yield function(o){return Yn(this,void 0,void 0,(function*(){const r=o.map((e=>Ct(e,n,i))),a=(yield Promise.allSettled(r)).filter((e=>"fulfilled"===e.status)).map((e=>e.value));return(a.some((e=>e.fileStatus===zt.FAILED))||a.length<o.length)&&t.info(e("部分文件获取上传地址失败")),a}))}(s);a({type:"add_files",identifier:o,files:p}),function(e,t){try{const n=Zt.transaction(e,"readwrite").objectStore(e);t.forEach((e=>n.put(e,e.name)))}catch(e){console.warn(`在 addFilesToIndexdb 中, db.transaction/transaction.objectStore/objectStore.put 异常 - ${e.message}`)}}(o,p.map((e=>e.raw))),l(!1)}))}}}();return(0,ce.useEffect)((()=>{var e;const t=null===(e=o[n])||void 0===e?void 0:e.find((e=>e.fileStatus===zt.FINISHED));a&&t&&r({type:"clear_finished",identifier:n})}),[a,n,r,o]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.Spin,{spinning:i,children:(0,R.jsx)(ln,Object.assign({},t,{onFileReceived:s}))}),e&&(0,R.jsx)("div",{className:"mb-4",children:e}),(0,R.jsx)(qn,{})]})}var ro=D(915),ao={};ao.styleTagTransform=ie(),ao.setAttributes=ne(),ao.insert=ee().bind(null,"head"),ao.domAPI=Y(),ao.insertStyleElement=re(),G()(ro.A,ao),ro.A&&ro.A.locals&&ro.A.locals;var io=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function so(e){var{config:{modal:t,dragArea:n,uploadRequest:o}}=e,r=io(e,["config"]);const a=nn();return(0,ce.useContext)(Xt)===Gt?(0,R.jsx)(V.Modal,Object.assign({},Vn,{title:a("文件上传")},t,{children:(0,R.jsx)(V.Alert,{message:a("FileUploadModal 必须在 UploadStoreProvider 内使用"),type:"warning"})})):(0,R.jsx)(V.Modal,Object.assign({},Vn,{forceRender:!0,title:a("文件上传"),footer:(0,R.jsx)(V.Button,{type:"primary",onClick:t.onCancel,children:a("确定")})},t,{children:(0,R.jsx)(no,Object.assign({},r,{dragAreaConfig:n,uploadRequestConfig:o}))}))}const lo=function(e){const t=nn();return(0,ce.useContext)(Xt)===Gt?(0,R.jsx)(V.Alert,{message:t("FileUploader 必须在 UploadStoreProvider 内使用"),type:"warning"}):(0,R.jsx)("div",{className:"zjlab-fe-data-hub-ui-file-uploader",children:(0,R.jsx)(no,Object.assign({},e))})},co=(e=>{var t={};return D.d(t,e),t})({getFileExt:()=>s.getFileExt});function po(e){return new Promise((t=>{if(e&&e.length>0){const n=[...e];function o(){n.length>0?setTimeout(r):setTimeout((()=>{t(null)}))}function r(){const e=n.shift(),t=(0,co.getFileExt)(e);if("js"===t||"mjs"===t){if(!document.querySelector(`script[src="${e}"]`)){const n=document.createElement("script");return n.src=e,"mjs"===t&&(n.type="module"),document.head.appendChild(n),n.onload=o,void(n.onerror=o)}}else if("css"===t&&!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,document.head.appendChild(t),t.onload=o,void(t.onerror=o)}o()}r()}else t(null)}))}var uo=D(482),ho={};ho.styleTagTransform=ie(),ho.setAttributes=ne(),ho.insert=ee().bind(null,"head"),ho.domAPI=Y(),ho.insertStyleElement=re(),G()(uo.A,ho),uo.A&&uo.A.locals&&uo.A.locals;class mo{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}}function fo(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let o,r=0,a=1,i=1,s=1;for(;;){const e=r+i,t=a+s;if(t>8)break;n<=e/t?(i=e,s=t):(r=e,a=t)}return o=n-r/a<i/s-n?n===e?[r,a]:[a,r]:n===e?[i,s]:[s,i],o}function bo(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)}function wo(e){const{filePath:t}=e,n=(0,ce.useRef)(null),o=(0,ce.useRef)(0),r=(0,ce.useRef)(null),a=(0,ce.useRef)(0),i=(0,ce.useRef)(0),s=(0,ce.useRef)(0),l=(0,ce.useRef)(!1),d=()=>{if(l.current)return Promise.resolve();l.current=!0;const e=s.current+3>a.current?a.current:s.current+3;return new Promise((t=>{if(r.current){const o=n.current;let l=e-s.current;for(let c=s.current+1;c<=e;c++)r.current.getPage(c).then((e=>{const t=e.getViewport({scale:window.devicePixelRatio||1}),n=document.createElement("canvas");n.setAttribute("id","the-canvas"+c);const r=n.getContext("2d"),a=new mo,{width:s,height:l}=t;{const e=s*l,t=Math.sqrt(16777216/e);(a.sx>t||a.sy>t)&&(a.sx=t,a.sy=t)}const d=fo(a.sx),p=fo(a.sy);n.width=bo(s*a.sx,d[0]),n.height=bo(l*a.sy,p[0]);const{style:u}=n;u.width=bo(s,d[1])+"px",u.height=bo(l,p[1])+"px";const h={canvasContext:r,transform:a.scaled?[a.sx,0,0,a.sy,0,0]:null,viewport:t};return o.appendChild(n),e.render(h).promise.then((()=>new Promise((e=>{setTimeout((()=>{i.current=i.current+n.clientHeight,e(1)}))}))))})).catch((e=>{})).finally((()=>{l--,0===l&&(i.current<n.current.clientHeight&&e<a.current&&setTimeout(d),t(1))}))}else t(0)})).then((()=>{l.current=!1,s.current=e}))};return(0,ce.useEffect)((()=>{po(["https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.min.mjs","https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.worker.min.mjs"]).then((()=>{window.pdfjsLib.getDocument({url:t,cMapUrl:"https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/cmaps/",cMapPacked:!0}).promise.then((t=>{var n;r.current=t,a.current=t.numPages,d(),null===(n=null==e?void 0:e.onSuccess)||void 0===n||n.call(e)})).catch((t=>{var n;null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))}),[t]),(0,R.jsx)("div",{ref:n,className:uo.L,onScroll:e=>{const t=e.target.scrollTop;t>o.current&&s.current<a.current&&t>i.current-200-n.current.clientHeight&&d(),o.current=t}})}const go=(e=>{var t={};return D.d(t,e),t})({default:()=>l.default});var yo=D(328),xo={};function vo(e){return e?e-55-64-16:550}function jo(e,t=2){if(e){const n=vo(e);return Math.floor(n/(10+22*t))}return 10}xo.styleTagTransform=ie(),xo.setAttributes=ne(),xo.insert=ee().bind(null,"head"),xo.domAPI=Y(),xo.insertStyleElement=re(),G()(yo.Ay,xo),yo.Ay&&yo.Ay.locals&&yo.Ay.locals;const ko={fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:"14px",lineHeight:"22px",letterSpacing:0};function No(e){const{maxLines:t=2}=e,n=(0,ce.useRef)([]),o=go.default.resolvedLanguage||localStorage.getItem("i18nextLng")||"zh";0===n.current.length&&e.head.forEach((e=>{n.current.push(function(e,t={}){const n=document.createElement("span");n.textContent=e,Object.assign(n.style,Object.assign({position:"absolute",visibility:"hidden",whiteSpace:"nowrap"},t)),document.body.appendChild(n);const o=n.offsetWidth;return document.body.removeChild(n),o}(e))}));const r=e.head.map(((e,o)=>({title:(0,R.jsx)("div",{title:e,style:ko,children:e}),dataIndex:e,key:o,render:e=>{const r="object"==typeof e?JSON.stringify(e):e;return(0,R.jsx)("div",{className:yo.Hn,style:{height:22*t,maxWidth:400,minWidth:n.current[o]},children:(0,R.jsx)("div",{className:yo.P_,style:{WebkitLineClamp:t},onMouseLeave:e=>{e.currentTarget.scrollTop=0},children:r})})}}))),a={className:yo.X$,pageSize:jo(e.containerHeight,t),showSizeChanger:!1,onChange:e.onPageChange,showTotal:()=>e.total&&e.total>e.data.length?(0,R.jsxs)("div",{className:yo.UA,children:[(0,R.jsx)(Te.InfoCircleOutlined,{})," ","zh"===o?"请下载查看完整内容":"Please download to view the full content"]}):null};return(0,R.jsx)(V.Table,{tableLayout:"auto",className:yo.tp,columns:r,dataSource:e.data,scroll:{x:"max-content",y:vo(e.containerHeight)},pagination:a})}const Ao=(e=>{var t={};return D.d(t,e),t})({default:()=>d.default});var zo=D(685),Eo={};Eo.styleTagTransform=ie(),Eo.setAttributes=ne(),Eo.insert=ee().bind(null,"head"),Eo.domAPI=Y(),Eo.insertStyleElement=re(),G()(zo.A,Eo),zo.A&&zo.A.locals&&zo.A.locals;var Co=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function So(e){var t;const n=(0,ce.useRef)(null),o=(0,co.getFileExt)(e.filePath),[r,a]=(0,ce.useState)(),[i,s]=(0,ce.useState)();return(0,ce.useEffect)((()=>{po(["https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.js","https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.css","https://fastly.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js","https://fastly.jsdelivr.net/npm/papaparse@5.5.2/papaparse.min.js"]).then((()=>Co(this,void 0,void 0,(function*(){fetch(e.filePath).then((t=>Co(this,void 0,void 0,(function*(){if("csv"===o){const o=yield t.blob(),r=new File([o],"test.csv",{type:o.type});(function(e){return Co(this,void 0,void 0,(function*(){return new Promise((t=>{try{const n=new FileReader;n.onload=function(e){const n=e.target.result,o=Ao.default.detect(new Uint8Array(n.slice(0,1024)));console.log("+++ encoding",o),t(o)},n.readAsArrayBuffer(e)}catch(e){console.log("+++ getEncoding error",e),t("UTF-8")}}))}))})(o).then((t=>{window.Papa.parse(r,{encoding:t,complete:t=>{var o,r,i;const l=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o[0],d=[];null===(r=null==t?void 0:t.data)||void 0===r||r.forEach(((e,t)=>{if(0!==t){const n={key:t.toString()};l.forEach(((t,o)=>{n[t]=e[o]})),d.push(n)}})),a({head:l,data:d}),s(n.current.clientHeight),null===(i=null==e?void 0:e.onSuccess)||void 0===i||i.call(e)},error:t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}})}))}else t.arrayBuffer().then((function(t){var o;const r=function(e){const t=[];return e.SheetNames.forEach((function(n){const o={name:n,rows:{}},r=e.Sheets[n];if(!r||!r["!ref"])return;const a=XLSX.utils.decode_range(r["!ref"]);a.s={r:0,c:0};const i=XLSX.utils.sheet_to_json(r,{raw:!1,header:1,range:a});i.forEach((function(e,t){const n={};e.forEach((function(e,o){n[o]={text:e||String(e)};const a=XLSX.utils.encode_cell({r:t,c:o});null!=r[a]&&null!=r[a].f&&(n[o].text="="+r[a].f)})),o.rows[t]={cells:n}})),o.rows.len=i.length,o.merges=[],(r["!merges"]||[]).forEach((function(e,t){null==o.rows[e.s.r]&&(o.rows[e.s.r]={cells:{}}),null==o.rows[e.s.r].cells[e.s.c]&&(o.rows[e.s.r].cells[e.s.c]={}),o.rows[e.s.r].cells[e.s.c].merge=[e.e.r-e.s.r,e.e.c-e.s.c],o.merges[t]=XLSX.utils.encode_range(e)})),t.push(o)})),t}(window.XLSX.read(t));window.x_spreadsheet(n.current,{mode:"read",showToolbar:!1,showContextmenu:!1,view:{height:()=>n.current.clientHeight,width:()=>n.current.clientWidth}}).loadData(r),null===(o=null==e?void 0:e.onSuccess)||void 0===o||o.call(e)})).catch((e=>{throw e}))})))).catch((t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))))}),[]),(0,R.jsx)("div",{ref:n,className:zo.L,children:"csv"===o&&r?(0,R.jsx)(No,{head:r.head,data:r.data,containerHeight:i,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines}):null})}var Mo=D(913),Bo={};function Oo(e){return(0,R.jsx)("div",{className:Mo.LV,children:(0,R.jsx)("img",{src:e.filePath,onError:t=>{var n;console.log("+++ img error"),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},onLoad:()=>{var t;null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)},className:Mo._8})})}Bo.styleTagTransform=ie(),Bo.setAttributes=ne(),Bo.insert=ee().bind(null,"head"),Bo.domAPI=Y(),Bo.insertStyleElement=re(),G()(Mo.Ay,Bo),Mo.Ay&&Mo.Ay.locals&&Mo.Ay.locals;const Wo=(e=>{var t={};return D.d(t,e),t})({default:()=>c.default}),Zo=(e=>{var t={};return D.d(t,e),t})({default:()=>p.default}),Ko=(e=>{var t={};return D.d(t,e),t})({default:()=>u.default}),Jo=(e=>{var t={};return D.d(t,e),t})({default:()=>h.default}),Po=(e=>{var t={};return D.d(t,e),t})({default:()=>m.default});var Fo=D(555),Lo={};Lo.styleTagTransform=ie(),Lo.setAttributes=ne(),Lo.insert=ee().bind(null,"head"),Lo.domAPI=Y(),Lo.insertStyleElement=re(),G()(Fo.A,Lo),Fo.A&&Fo.A.locals&&Fo.A.locals;var To=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Io(e){const t=(0,ce.useRef)(null),[n,o]=(0,ce.useState)("");return(0,ce.useEffect)((()=>{(()=>{To(this,void 0,void 0,(function*(){var t,n;try{let n=yield fetch(e.filePath).then((e=>e.text()));n=n.replace(/!\[(.*?)\]\((.*?)\)/g,((e,t,n)=>n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?e:"")),o(n),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}}))})()}),[]),(0,R.jsx)("div",{ref:t,style:{height:"100%",overflow:"auto"},className:Fo.L,children:n?(0,R.jsx)(Wo.default,{className:"markdown-body",remarkPlugins:[Jo.default,Ko.default],rehypePlugins:[Zo.default,Po.default],children:n}):null})}var Do=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Uo(e){const[t,n]=(0,ce.useState)("");return(0,ce.useEffect)((()=>{(()=>{Do(this,void 0,void 0,(function*(){var t,o;try{const o=yield fetch(e.filePath).then((e=>e.text()));n(o),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(o=null==e?void 0:e.onError)||void 0===o||o.call(e,t)}}))})()}),[]),(0,R.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})}const Ho=(e=>{var t={};return D.d(t,e),t})({default:()=>f.default}),Ro=(e=>{var t={};return D.d(t,e),t})({ErrorBoundary:()=>b.ErrorBoundary});var qo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function _o(e){const t=(0,ce.useRef)(null),[n,o]=(0,ce.useState)(),[r,a]=(0,ce.useState)(),[i,s]=(0,ce.useState)();return(0,ce.useEffect)((()=>{(()=>{qo(this,void 0,void 0,(function*(){var n,r,i,l;try{let l;l=e.jsonConfig?e.jsonConfig.data:yield fetch(e.filePath).then((e=>e.text()));try{const e="string"==typeof l?JSON.parse(l):l;o(e)}catch(e){const o=function(e,t){const{trim:n=!0,skipEmpty:o=!0}={};if(!e)return[];const r=[];let a="",i=!1,s=!1;for(let t=0;t<e.length;t++){const l=e[t];if(s)a+=l,s=!1;else if("\\"!==l)if('"'!==l)if("\n"!==l&&"\r"!==l||i)a+=l;else{if("\r"===l&&t+1<e.length&&"\n"===e[t+1])continue;const i=n?a.trim():a;(!o||i.length>0)&&r.push(i),a=""}else i=!i,a+=l;else a+=l,s=!0}if(a){const e=n?a.trim():a;(!o||e.length>0)&&r.push(e)}return r}(l);if(o.length>0){const e=[];let i=0;if(o.forEach((t=>{try{const n=JSON.parse(t);"object"==typeof n?Array.isArray(n)?n.forEach((t=>{e.push(Object.assign(Object.assign({},t),{key:i.toString()})),i++})):(e.push(Object.assign(Object.assign({},n),{key:i.toString()})),i++):(e.push({content:t,key:i.toString()}),i++)}catch(e){console.log("+++ e",e)}})),e.length>0){const o=Object.keys(e[0]).filter((e=>"key"!==e));a({head:o,data:e}),s(null===(n=t.current)||void 0===n?void 0:n.clientHeight)}else{e.push({content:l,key:"0"});const n=Object.keys(e[0]).filter((e=>"key"!==e));a({head:n,data:e}),s(null===(r=t.current)||void 0===r?void 0:r.clientHeight)}}}null===(i=null==e?void 0:e.onSuccess)||void 0===i||i.call(e)}catch(t){null===(l=null==e?void 0:e.onError)||void 0===l||l.call(e,t)}}))})()}),[]),(0,R.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:t,children:n?(0,R.jsx)(Ro.ErrorBoundary,{fallback:JSON.stringify(n),children:(0,R.jsx)(Ho.default,{name:!1,src:n,iconStyle:"triangle",collapsed:2,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,collapseStringsAfterLength:140,style:{fontFamily:"Monaco, Menlo, Consolas, monospace",backgroundColor:"rgba(0, 0, 0, 0)",color:"rgb(155, 12, 121)"}})}):r?(0,R.jsx)(No,{head:r.head,data:r.data,containerHeight:i,maxLines:null===(l=e.tableConfig)||void 0===l?void 0:l.maxLines}):null});var l}const Vo=(e=>{var t={};return D.d(t,e),t})({parseTable:()=>w.parseTable}),$o=(e=>{var t={};return D.d(t,e),t})({default:()=>g.default,readParquet:()=>g.readParquet,wasmMemory:()=>g.wasmMemory});var Go=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};let Xo;function Yo(e){var t;const n=(0,ce.useRef)(null),[o,r]=(0,ce.useState)(),[a,i]=(0,ce.useState)();return(0,ce.useEffect)((()=>{let t;Xo||(Xo=(0,$o.wasmMemory)()),(()=>{Go(this,void 0,void 0,(function*(){var o,a,s;try{const s=yield fetch(e.filePath),l=new Uint8Array(yield s.arrayBuffer());t=(0,$o.readParquet)(l).intoFFI();const d=(0,Vo.parseTable)(Xo.buffer,t.arrayAddrs(),t.schemaAddr()),c=d.schema.fields.map((e=>e.name)),p=[];console.log("+++ arrowTable.numRows",d.numRows);for(let e=0;e<d.numRows;e++)p.push(Object.assign(Object.assign({},d.get(e).toJSON()),{key:e.toString()}));r({head:c,data:p}),i(null===(o=n.current)||void 0===o?void 0:o.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e),t.drop()}catch(t){null===(s=null==e?void 0:e.onError)||void 0===s||s.call(e,t)}}))})()}),[]),(0,R.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:n,children:o&&(0,R.jsx)(No,{head:o.head,data:o.data,containerHeight:a,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines})})}(0,$o.default)();var Qo=D(708),er={};function tr(e){var t,n;const o=(0,ce.useRef)(null),[r,a]=(0,ce.useState)(),[i,s]=(0,ce.useState)();return(0,ce.useEffect)((()=>{var t,n;const{tableConfig:r}=e,{header:i,rows:l=[]}=r||{};if(i){const n=i,r=[];l.forEach(((e,t)=>{const o={key:t.toString()};n.forEach(((t,n)=>{o[t]=e[n]})),r.push(o)})),a({head:n,data:r}),s(o.current.clientHeight),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}else null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,new Error("tableConfig.header is required"))}),[]),(0,R.jsx)("div",{ref:o,className:Qo.L,children:r?(0,R.jsx)(No,{head:r.head,data:r.data,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines,total:null===(n=e.tableConfig)||void 0===n?void 0:n.rowCount,containerHeight:i}):null})}er.styleTagTransform=ie(),er.setAttributes=ne(),er.insert=ee().bind(null,"head"),er.domAPI=Y(),er.insertStyleElement=re(),G()(Qo.A,er),Qo.A&&Qo.A.locals&&Qo.A.locals;var nr=D(690),or={};function rr(e){var t,n,o;const r=go.default.resolvedLanguage||localStorage.getItem("i18nextLng")||"zh",{filePath:a,tableConfig:i,jsonConfig:s}=e,[l,d]=(0,ce.useState)(!1),[c,p]=(0,ce.useState)(!0),u=t=>{var n;p(!1),d(!0),console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},h=()=>{var t;p(!1),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)};let m=null;if(l)m=(0,R.jsx)("div",{className:nr.LV,children:"zh"===r?"获取文件失败":"Failed to get file"});else if(i)m=(0,R.jsx)(tr,Object.assign({},e,{onSuccess:h}));else if(s)m=(0,R.jsx)(_o,Object.assign({},e,{onError:u,onSuccess:h}));else if(a){const t=(0,co.getFileExt)(a),n=(0,R.jsx)("div",{className:nr.D5,children:(0,R.jsx)(V.Spin,{})});let o=null,i=!0;switch(t){case"pdf":o=(0,R.jsx)(wo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"xlsx":case"csv":o=(0,R.jsx)(So,Object.assign({},e,{onError:u,onSuccess:h}));break;case"png":case"jpg":case"jpeg":o=(0,R.jsx)(Oo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"mmd":case"md":o=(0,R.jsx)(Io,Object.assign({},e,{onError:u,onSuccess:h}));break;case"txt":o=(0,R.jsx)(Uo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"parquet":o=(0,R.jsx)(Yo,Object.assign({},e,{onError:u,onSuccess:h}));break;case"jsonl":case"json":o=(0,R.jsx)(_o,Object.assign({},e,{onError:u,onSuccess:h}));break;default:i=!1}m=i?(0,R.jsxs)(R.Fragment,{children:[c&&n,o]}):(0,R.jsxs)("div",{className:nr.LV,children:["zh"===r?"暂不支持":"Not supported"," ",t," ","zh"===r?"文件预览":"file preview"]})}return e.openInModal?(null===(t=null==e?void 0:e.modalProps)||void 0===t?void 0:t.show)?(0,R.jsx)(V.Modal,{open:!0,title:null===(n=null==e?void 0:e.modalProps)||void 0===n?void 0:n.title,className:nr.qf,centered:!0,width:"100%",onCancel:null===(o=null==e?void 0:e.modalProps)||void 0===o?void 0:o.onCancel,footer:null,children:m}):null:m}function ar(e){const[t,n]=(0,ce.useState)(0),[o,r]=(0,ce.useState)(e.filePath),[a,i]=(0,ce.useState)(e.tableConfig);return(0,ce.useEffect)((()=>{o===e.filePath&&a===e.tableConfig||(r(e.filePath),i(e.tableConfig),n(t+1))}),[e.filePath,e.tableConfig]),o!==e.filePath||a!==e.tableConfig?null:(0,R.jsx)(rr,Object.assign({},e),t)}or.styleTagTransform=ie(),or.setAttributes=ne(),or.insert=ee().bind(null,"head"),or.domAPI=Y(),or.insertStyleElement=re(),G()(nr.Ay,or),nr.Ay&&nr.Ay.locals&&nr.Ay.locals;const ir=(e=>{var t={};return D.d(t,e),t})({default:()=>y.default});var sr=D(860),lr={};lr.styleTagTransform=ie(),lr.setAttributes=ne(),lr.insert=ee().bind(null,"head"),lr.domAPI=Y(),lr.insertStyleElement=re(),G()(sr.A,lr),sr.A&&sr.A.locals&&sr.A.locals;const dr=(e=>{var t={};return D.d(t,e),t})({default:()=>x.default}),cr={zh:"已复制",en:"Copied"};function pr(e){const{showFeedback:t=!0,text:n,locale:o="zh"}=e;return(0,R.jsx)("span",{className:(0,dr.default)(sr.K,"data-hub-ui-copy-icon"),onClick:()=>{n&&((0,ir.default)(n),t&&V.message.success(cr[o])),(null==e?void 0:e.onClick)&&e.onClick()},children:""})}function ur(e,t={showFeedback:!0,locale:"zh"}){const{showFeedback:n="true",locale:o="zh"}=t;e&&((0,ir.default)(e),n&&V.message.success(cr[o]))}var hr=D(100),mr={};function fr(e){return(0,R.jsx)(V.Modal,Object.assign({},e,{wrapClassName:hr.wm,width:400}))}mr.styleTagTransform=ie(),mr.setAttributes=ne(),mr.insert=ee().bind(null,"head"),mr.domAPI=Y(),mr.insertStyleElement=re(),G()(hr.Ay,mr),hr.Ay&&hr.Ay.locals&&hr.Ay.locals,fr.confirm=e=>{V.Modal.confirm(Object.assign({},e)).update({icon:null,closable:!0,width:400,wrapClassName:`${hr.DE}`})};var br=D(989),wr={};wr.styleTagTransform=ie(),wr.setAttributes=ne(),wr.insert=ee().bind(null,"head"),wr.domAPI=Y(),wr.insertStyleElement=re(),G()(br.Ay,wr),br.Ay&&br.Ay.locals&&br.Ay.locals;const gr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAAAXNSR0IArs4c6QAAAf1JREFUOE+lkz9oE3EUx7/vd0nbOPing5RSKJ0q+GdVUCkOLh2qQ4lLtfVsESlpTEsql2bIUNI2htSLONleKjqUc1BxE3QQCuJSKAg6aKfqIqiQao7mfq/cNXckscGAv+l+777v897v/b4/wn8uapQfyedbj1Kos2xL+3jnka1wOGzvp/0LMJtd6hYBoRFwFcCBStJvBh4TI6PF1C/VoBpAWi/0E/MzAC0NOttmlkOJ2Ohz778PSOceniehvG1mJEIop+9MDL93tC7ANE3l89fiBwC9zQBA+Gj96DmZSl0ou4D0ojFIhKd+MvMaE70mIFmJ3QVwFsA5T2NLOZCcHH3pAuYXjQUmTFdV/yVh9wpWVEBCEhsCyicAh3wNQdei6m0XMHfPWAVwpW66P1uZepyYRbzJwOGa4zFeaDH18h5AN1bAGK4REObaJGWcWEnwNBhaHeCRFlNHKh0sTwGU9QTMMEOgmyXiDSfWxnSqBF4B4ZKvIZpKRK/nXEDmQaHD3uFvVRUc45QIaK9c1XfeM5VnLNjS6kpO3tryfTCvF/LMHGnmGpn4fiJ6Y8L3gfORy5khSxTfADjzD8g7K/jnYmp8vFgDcDap/JODLbwzS406YeiBcmAmHr+27RXZ9zWms4VjCHAfQZwgyKAE1oOK/SoeGdus767hc25mFo5mF83NrRLVZKusAAAAAElFTkSuQmCC";function yr({visiable:e,children:t,onClose:n}){const[o,r]=(0,ce.useState)(!1);return(0,ce.useEffect)((()=>{r(e)}),[e]),o?(0,R.jsxs)("div",{className:br.LV,children:[(0,R.jsx)("div",{style:{backgroundImage:"url("+gr+")"},className:br.Kk,onClick:()=>n()}),(0,R.jsx)("div",{className:br.NI,children:t})]}):null}var xr=D(150),vr={};function jr(e){return(0,R.jsx)("div",{className:`${xr.cQ} ${"workflow"===e.type?xr._b:xr.Og}`,children:e.children})}function kr(e){return(0,R.jsx)("div",{className:`${xr.Rp} ${"workflow"===e.type?xr._b:xr.Og}`,children:e.children})}function Nr(e){return(0,R.jsxs)("div",{children:["small"===(null==e?void 0:e.size)&&(0,R.jsx)(kr,Object.assign({},e)),(!(null==e?void 0:e.size)||"middle"===(null==e?void 0:e.size))&&(0,R.jsx)(jr,Object.assign({},e))]})}vr.styleTagTransform=ie(),vr.setAttributes=ne(),vr.insert=ee().bind(null,"head"),vr.domAPI=Y(),vr.insertStyleElement=re(),G()(xr.Ay,vr),xr.Ay&&xr.Ay.locals&&xr.Ay.locals;const Ar={confidential:"#FAAD14",public:"#53C31B",private:"#FE4D4F"};function zr(e){const{type:t="public",children:n}=e,o=Ar[t];return(0,R.jsx)(V.Tag,{style:{backgroundColor:"#fff",border:`1px solid ${o}`,borderRadius:"4px",fontSize:"12px",color:`${o}`,padding:"0 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}const Er={running:"#0061FF",failed:"#FE4D4F",success:"#53C31B",stopped:"#545B64",pending:"#FAAD14"};function Cr(e){const{type:t="running",children:n}=e,o=Er[t];return(0,R.jsx)(V.Tag,{bordered:!1,style:{backgroundColor:`rgba(${(e=>{const t=parseInt(e.replace("#",""),16);return`${t>>16&255},${t>>8&255},${255&t}`})(o)},0.1)`,borderRadius:"4px",fontSize:"14px",color:`${o}`,padding:"3px 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}var Sr=D(519),Mr={};Mr.styleTagTransform=ie(),Mr.setAttributes=ne(),Mr.insert=ee().bind(null,"head"),Mr.domAPI=Y(),Mr.insertStyleElement=re(),G()(Sr.Ay,Mr);const Br=Sr.Ay&&Sr.Ay.locals?Sr.Ay.locals:void 0;var Or=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Wr(e){var{id:t,placeholder:n,onFocus:o,onBlur:r,inline:a=!1,wrapperStyle:i={},wrapperClassName:s=""}=e,l=Or(e,["id","placeholder","onFocus","onBlur","inline","wrapperStyle","wrapperClassName"]);const{status:d}=V.Form.Item.useStatus(),[c,p]=(0,ce.useState)(!1),[u,h]=(0,ce.useState)(!1),[m,f]=(0,ce.useState)(""),b=n;(0,ce.useEffect)((()=>{f("error"===d?"#ff4d4f":u?"#1890ff":"#545b64")}),[d,u]);const w=(0,ce.useCallback)((e=>{p(!0),h(!0),null==o||o(e)}),[o]),g=(0,ce.useCallback)((e=>{0===String(e.target.value).length&&p(!1),h(!1),null==r||r(e)}),[r]);return(0,R.jsxs)("div",{id:t,className:`${Sr.hF} ${s}`,style:Object.assign({display:a?"inline-block":"block"},i),children:[(0,R.jsx)(V.Input,Object.assign({},l,{placeholder:c?"":b,onFocus:w,onBlur:g})),(0,R.jsx)("div",{style:{color:`${m}`},className:c?H["input-label"]:H["input-label-hinden"],children:b})]})}var Zr=D(255),Kr={};Kr.styleTagTransform=ie(),Kr.setAttributes=ne(),Kr.insert=ee().bind(null,"head"),Kr.domAPI=Y(),Kr.insertStyleElement=re(),G()(Zr.Ay,Kr),Zr.Ay&&Zr.Ay.locals&&Zr.Ay.locals;var Jr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Pr=e=>{if(!e||0===e.length)return"";for(const t of e)if(t.options&&t.options.length>0){const e=Pr(t.options);if(e)return e}else if(t.desc)return t.desc;return""};function Fr(e){var{id:t,options:n,style:o,onDropdownVisibleChange:r,inline:a=!1,wrapperStyle:i={},wrapperClassName:s="",popupClassName:l=""}=e,d=Jr(e,["id","options","style","onDropdownVisibleChange","inline","wrapperStyle","wrapperClassName","popupClassName"]);const[c,p]=(0,ce.useState)(""),[u,h]=(0,ce.useState)(!1),[m,f]=(0,ce.useState)(!1);return(0,ce.useEffect)((()=>{const e=Pr(n);p(e)}),[n]),(0,R.jsxs)("div",{id:t,className:`${Zr.Lt} ${s}`,style:Object.assign({display:a?"inline-block":"block"},i),children:[(0,R.jsx)(V.Select,Object.assign({style:Object.assign({width:200},o),options:n,popupClassName:`${Zr.lY} ${l}`,onDropdownVisibleChange:e=>{e?h(!0):(f(!0),setTimeout((()=>{h(!1),f(!1)}),200),null==r||r(e))},optionRender:e=>{const{label:t,desc:n}=e.data;return(0,R.jsx)("div",{style:{cursor:"pointer",width:"100%"},onMouseEnter:()=>{p(n)},children:t})}},d)),u&&(0,R.jsx)("div",{style:{left:(null==o?void 0:o.width)?o.width:200},className:`${Zr.Bu} ${m?Zr.eb:""}`,children:c})]})}const Lr=(e=>{var t={};return D.d(t,e),t})({BubbleMenu:()=>v.BubbleMenu,EditorProvider:()=>v.EditorProvider,Extension:()=>v.Extension,FloatingMenu:()=>v.FloatingMenu,generateJSON:()=>v.generateJSON,useCurrentEditor:()=>v.useCurrentEditor}),Tr=(e=>{var t={};return D.d(t,e),t})({default:()=>j.default}),Ir=(e=>{var t={};return D.d(t,e),t})({default:()=>k.default}),Dr=(e=>{var t={};return D.d(t,e),t})({default:()=>N.default}),Ur=(e=>{var t={};return D.d(t,e),t})({default:()=>A.default}),Hr=(e=>{var t={};return D.d(t,e),t})({default:()=>z.default}),Rr=(e=>{var t={};return D.d(t,e),t})({default:()=>E.default}),qr=(e=>{var t={};return D.d(t,e),t})({Table:()=>C.Table}),_r=(e=>{var t={};return D.d(t,e),t})({default:()=>S.default}),Vr=(e=>{var t={};return D.d(t,e),t})({default:()=>M.default}),$r=(e=>{var t={};return D.d(t,e),t})({TextStyle:()=>B.TextStyle}),Gr=(e=>{var t={};return D.d(t,e),t})({default:()=>O.default}),Xr=Lr.Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"],defaultFontSize:"14px"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:this.options.defaultFontSize,parseHTML:e=>e.style.fontSize||this.options.defaultFontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),Yr=(e=>{var t={};return D.d(t,e),t})({Plugin:()=>W.Plugin,PluginKey:()=>W.PluginKey}),Qr=(e=>{var t={};return D.d(t,e),t})({Link:()=>Z.Link});function ea(e,t,n){if(!t.type.startsWith("image/"))return!1;const o=new FileReader;return o.onload=o=>{var r;const a=null===(r=o.target)||void 0===r?void 0:r.result;e.commands.insertContent(`<p><img class="inline" src="${a}" alt="${t.name}" title="${t.name}"/></p>`),null==n||n()},o.readAsDataURL(t),!1}const ta=(e=>{var t={};return D.d(t,e),t})({marked:()=>K.marked}),na="\x3c!--- this is file is already parsed --\x3e",oa=new class{constructor(){this.patterns={headers:/^#{1,6}\s+.+$/gm,emphasis:/(\*{1,2}|_{1,2}).+?\1/g,code:/(```[\s\S]*?```|`[^`]+`)/g,links:/\[([^\]]+)\]\(([^)]+)\)/g,blockquotes:/^>\s+.+$/gm,lists:/^(\s*[-*+]\s+|\s*\d+\.\s+).+$/gm,tables:/^\|.+\|$/gm,horizontalRules:/^(-{3,}|\*{3,}|_{3,})$/gm,images:/!\[([^\]]*)\]\(([^)]+)\)/g}}isNotMarkdown(e,t=10){return!e||0===e.trim().length||this.calculateMarkdownScore(e)<t}calculateMarkdownScore(e){const t=e.split("\n").filter((e=>e.trim().length>0));let n=0,o=0;Object.entries(this.patterns).forEach((([t,o])=>{const r=e.match(o)||[];n+=r.length})),o=t.length;const r=/```[\s\S]*?```/g.test(e),a=/`[^`]+`/g.test(e),i=/\[([^\]]+)\]\(([^)]+)\)/g.test(e),s=/^#{1,6}\s+/gm.test(e);r&&(n+=2),a&&(n+=1),i&&(n+=2),s&&(n+=2);const l=o>0?Math.min(100,n/o*100):0;return Math.round(l)}analyzeMarkdownPatterns(e){const t={};return Object.entries(this.patterns).forEach((([n,o])=>{const r=e.match(o)||[];t[n]=r.length})),t}isPlainText(e){return!/[#*_`>[\](){}|~-]/.test(e)||![/^#{1,6}\s/gm,/\*\*.*\*\*/g,/\*[^*]+\*/g,/_[^_]+_/g,/`[^`]+`/g,/```[\s\S]*?```/g,/\[.*\]\(.*\)/g,/^>\s/gm,/^[-*+]\s/gm,/^\d+\.\s/gm].some((t=>t.test(e)))}},ra=Lr.Extension.create({name:"pasteHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Yr.Plugin({key:new Yr.PluginKey("pasteHandler"),props:{handlePaste(t,n){var o,r;const a=null===(o=n.clipboardData)||void 0===o?void 0:o.files;return a&&a.length>0?aa(e,a):function(e,t){if(function(e,t=10){return oa.isNotMarkdown(e,t)}(t))return void e.commands.insertContent(t);const n=function(e){if(e.startsWith(na))return e.slice(40);const t=function(e){return e.replace(/\n<\/code><\/pre>/g,"</code></pre>")}(function(e){return e.replace(/align="center"/g,'style="text-align: center;"')}(ta.marked.parse(e,{async:!1})));return na+function(e){return e.replace(/<div style="([^"]+)">(.*?)<\/div>/g,((e,t,n)=>n.replace(/(<[^>]+>)/g,(e=>e.includes('style="')?e.replace('style="',`style="${t}; `):e.replace(">",` style="${t}">`)))))}(t)}(t),o=(0,Lr.generateJSON)(n,[ra,Rr.default,Qr.Link.configure({openOnClick:!1})]);e.commands.insertContent(o,{parseOptions:{preserveWhitespace:!1}})}(e,(null===(r=n.clipboardData)||void 0===r?void 0:r.getData("text"))||""),!0}}})]}});function aa(e,t){for(let n=0;n<t.length;n++)ea(e,t[n])}const ia=(e=>{var t={};return D.d(t,e),t})({Plugin:()=>J.Plugin,PluginKey:()=>J.PluginKey}),sa=Lr.Extension.create({name:"dropHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new ia.Plugin({key:new ia.PluginKey("dropHandler"),props:{handleDrop(t,n){var o;const r=null===(o=n.dataTransfer)||void 0===o?void 0:o.files;return r&&r.length>0&&aa(e,r),!0}}})]}}),la=(e=>{var t={};return D.d(t,e),t})({all:()=>P.all,createLowlight:()=>P.createLowlight}),da=(e=>{var t={};return D.d(t,e),t})({default:()=>F.default}),ca=(e=>{var t={};return D.d(t,e),t})({default:()=>L.default}),pa=(0,la.createLowlight)(la.all),ua=[sa,ra,Xr,Ur.default,$r.TextStyle,Ir.default,ca.default,Dr.default,qr.Table.configure({resizable:!0}),Rr.default.configure({codeBlock:!1}),da.default.configure({lowlight:pa}),_r.default.configure({multicolor:!0}),Vr.default.configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"max-w-96 h-auto inline mb-0"}}),Tr.default.configure({types:[$r.TextStyle.name,Gr.default.name]}),Hr.default.configure({types:["heading","paragraph",Dr.default.name,Ir.default.name]})],ha=[...ua,Qr.Link.configure({openOnClick:!1}).extend({inclusive:!1})],ma=[...ua,Qr.Link.configure({openOnClick:!0})];var fa=D(444),ba={};ba.styleTagTransform=ie(),ba.setAttributes=ne(),ba.insert=ee().bind(null,"head"),ba.domAPI=Y(),ba.insertStyleElement=re(),G()(fa.A,ba),fa.A&&fa.A.locals&&fa.A.locals;const wa={bold:{command:"toggleBold",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42"})}))}),{className:"text-xl"})},italic:{command:"toggleItalic",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})}))}),{className:"text-xl"})},strike:{command:"toggleStrike",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M7.2 9.8c-1.2-2.3.5-5 2.9-5.5c3.1-1 7.6.4 7.5 4.2h-3c0-.3-.1-.6-.1-.8c-.2-.6-.6-.9-1.2-1.1c-.8-.3-2.1-.2-2.8.3C9 8.2 10.4 9.5 12 10H7.4c-.1-.1-.1-.2-.2-.2M21 13v-2H3v2h9.6c.2.1.4.1.6.2c.6.3 1.1.5 1.3 1.1c.1.4.2.9 0 1.3c-.2.5-.6.7-1.1.9c-1.8.5-4-.2-3.9-2.4h-3c-.1 2.6 2.1 4.4 4.5 4.7c3.8.8 8.3-1.6 6.3-5.9z"})}))}),{className:"text-xl"})},underline:{command:"toggleUnderline",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5 21h14v-2H5zm7-4a6 6 0 0 0 6-6V3h-2.5v8a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 11V3H6v8a6 6 0 0 0 6 6"})}))}),{className:"text-xl"})}};function ga({editor:e}){return(0,R.jsx)(R.Fragment,{children:Object.keys(wa).map((n=>function(n){return(0,R.jsx)(V.Button,{size:"small",type:"text",icon:wa[n].icon,onClick:(o=wa[n].command,()=>e.chain().focus()[o]().run()),disabled:t(wa[n].command),className:e.isActive(n)?"bg-blue-5 text-white":""},n);var o}(n)))});function t(t){return!e.can().chain().focus()[t]().run()}}const ya=function(e){return(0,R.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,R.jsx)("path",{d:"M96 768h832v160H96z",fill:"currentColor"}),(0,R.jsx)("path",{d:"M443.862627 224.692457m45.254834 45.254834l135.764502 135.764502q45.254834 45.254834 0 90.509668l-135.764502 135.764502q-45.254834 45.254834-90.509668 0l-135.764502-135.764502q-45.254834-45.254834 0-90.509668l135.764502-135.764502q45.254834-45.254834 90.509668 0Z",fill:"#FFFFFF"}),(0,R.jsx)("path",{d:"M398.176 225.088L318.976 145.92 364.224 100.64l118.304 118.272c2.272 1.76 4.48 3.68 6.592 5.76l181.024 181.024a64 64 0 0 1 0 90.496l-181.024 181.024a64 64 0 0 1-90.528 0L217.6 496.192a64 64 0 0 1 0-90.496l180.576-180.608z m170.144 169.28l-0.448 0.416-124.416-124.416-175.136 175.104h351.104L568.32 394.368zM752 704a80 80 0 0 1-80-80c0-44.16 67.68-124.672 80-124.672 12.32 0 80 80.48 80 124.672a80 80 0 0 1-80 80z",fill:"#2c2c2c"})]}))},xa=function(e){return(0,R.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,R.jsx)("path",{d:"M128 768h768v128H128z",fill:"currentColor"}),(0,R.jsx)("path",{d:"M513.728 64.256l1.28 0.128h1.152l1.28 0.192a43.584 43.584 0 0 1 32.32 20.096l3.2 6.08 235.712 550.656a44.8 44.8 0 0 1-16.768 55.232l-7.616 3.968a43.52 43.52 0 0 1-54.208-17.152l-2.944-5.76-63.104-147.328H380.224l-62.976 147.2a43.52 43.52 0 0 1-51.072 24.96l-6.592-2.304-1.28-0.64a44.8 44.8 0 0 1-22.592-58.304l235.712-550.656a43.584 43.584 0 0 1 42.304-26.368z m91.904 376.512l-93.44-218.496L418.56 440.768h187.008z",fill:"#2c2c2c"})]}))},va=["#24A36F","#1677FF","#722ED1","#F5222D","#FA8C16","#FADB14","#A0D911"],ja=[{label:"预设颜色",defaultOpen:!0,colors:["#00000000",...va]}],ka=[{label:"预设颜色",defaultOpen:!0,colors:["#000000","#FFFFFF",...va]}],Na=[{label:"12px",value:"12px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"}];function Aa({editor:e}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.ColorPicker,{size:"small",className:"flex-shrink-0",presets:ja,value:e.getAttributes("highlight").color||"#00000000",onChange:function(t){const n=t.toHexString();"#00000000"===n?e.chain().focus().toggleHighlight().run():e.chain().focus().toggleHighlight({color:n}).run()},showText:()=>(0,R.jsx)(ya,{color:e.getAttributes("highlight").color,className:"text-base w-4 h-4"})}),(0,R.jsx)(V.ColorPicker,{size:"small",disabledAlpha:!0,className:"flex-shrink-0",presets:ka,value:e.getAttributes("textStyle").color||"#000000",onChange:function(t){const n=t.toHexString();e.chain().focus().setColor(n).run()},showText:()=>(0,R.jsx)(xa,{color:e.getAttributes("textStyle").color,className:"text-base w-4 h-4"})}),(0,R.jsx)(V.Select,{size:"small",options:Na,value:e.getAttributes("textStyle").fontSize||"14px",popupMatchSelectWidth:!1,onChange:function(t){var n;null===(n=e.chain().focus().setFontSize(t))||void 0===n||n.run()}})]})}const za=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M17 20v-3h-3v-2h3v-3h2v3h3v2h-3v3zm-6-3H7q-2.075 0-3.537-1.463T2 12t1.463-3.537T7 7h4v2H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h8v2zm14-1h-2q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12"})}))},Ea=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"m19.25 16.45l-1.5-1.55q1-.275 1.625-1.063T20 12q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12q0 1.425-.737 2.625T19.25 16.45M15.85 13l-2-2H16v2zm3.95 9.6L1.4 4.2l1.4-1.4l18.4 18.4zM11 17H7q-2.075 0-3.537-1.463T2 12q0-1.725 1.05-3.075t2.7-1.775L7.6 9H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h1.625l1.975 2z"})}))};function Ca({editor:e,inline:t=!1}){const[n,o]=(0,ce.useState)(""),[r,a]=(0,ce.useState)(""),[i,s]=(0,ce.useState)(!1);return(0,R.jsx)(R.Fragment,{children:e.isActive("link")?(0,R.jsx)(V.Button,{size:"small",type:"text",title:"取消链接",className:"bg-blue-5 text-white",icon:(0,R.jsx)(Ea,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()}):(0,R.jsx)(V.Popover,{open:i,trigger:"click",placement:"bottom",content:(0,R.jsxs)(V.Space,{children:[t?null:(0,R.jsxs)(R.Fragment,{children:["描述: ",(0,R.jsx)(V.Input,{value:n,onChange:e=>o(e.target.value)})]}),"链接: ",(0,R.jsx)(V.Input,{value:r,onChange:e=>a(e.target.value)}),(0,R.jsx)(V.Button,{type:"primary",onClick:function(){const o=e.chain().focus().setLink({href:"https://"+r});t?o.run():o.command((({tr:e})=>(e.insertText(n||r),!0))).run(),s(!1)},disabled:!r,children:"确认"})]}),onOpenChange:function(e){s(e),e||a("")},children:(0,R.jsx)(V.Button,{size:"small",type:"text",title:"添加链接",icon:(0,R.jsx)(za,{className:"text-xl"})})})})}const Sa={left:{type:"left",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h13M4 14h16M4 18h5.5"})}))}),{className:"text-xl"})},center:{type:"center",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h10M4 14h16M9 18h6"})}))}),{className:"text-xl"})},right:{type:"right",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h13M4 14h16m-6 4h6"})}))}),{className:"text-xl"})},justify:{type:"justify",icon:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"})}))}),{className:"text-xl"})}};function Ma({editor:e}){return(0,R.jsx)(R.Fragment,{children:Object.values(Sa).map((({type:t,icon:n})=>(0,R.jsx)(V.Button,{size:"small",type:"text",icon:n,onClick:()=>e.chain().focus().setTextAlign(t).run(),className:e.isActive({textAlign:t})?"bg-blue-5 text-white":""},t)))})}const Ba=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z"})}))};function Oa({editor:e}){return(0,R.jsxs)(R.Fragment,{children:[e.isActive("link")&&(0,R.jsx)(Wa,{editor:e}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,R.jsx)(V.Button,{size:"small",type:"text",title:"取消链接",icon:(0,R.jsx)(Ea,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()})]})}function Wa({editor:e}){const[t,n]=(0,ce.useState)(e.getAttributes("link").href);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.Input,{value:t,size:"small",onChange:e=>n(e.target.value)}),(0,R.jsx)(V.Button,{size:"small",type:"text",title:"修改链接",icon:(0,R.jsx)(Ba,{className:"text-xl"}),onClick:function(){e.chain().extendMarkRange("link").setLink({href:"https://"+t}).run()}})]})}function Za({className:e}){const{editor:t}=(0,Lr.useCurrentEditor)();return t?(0,R.jsx)(Lr.BubbleMenu,{editor:t,tippyOptions:{placement:"bottom-start"},children:(0,R.jsxs)(V.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[(0,R.jsx)(ga,{editor:t}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,R.jsx)(Aa,{editor:t}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,R.jsx)(Ma,{editor:t}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),t.isActive("link")?(0,R.jsx)(Oa,{editor:t}):(0,R.jsx)(Ca,{editor:t,inline:!0})]})}):null}function Ka({className:e}){const{editor:t}=(0,Lr.useCurrentEditor)();return t?(0,R.jsx)(Lr.FloatingMenu,{editor:t,tippyOptions:{placement:"bottom-start"},shouldShow:()=>t.isActive("link"),children:(0,R.jsx)(V.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:(0,R.jsx)(Oa,{editor:t})})}):null}function Ja(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2zM5 20q-.825 0-1.412-.587T3 18t.588-1.412T5 16t1.413.588T7 18t-.587 1.413T5 20m0-6q-.825 0-1.412-.587T3 12t.588-1.412T5 10t1.413.588T7 12t-.587 1.413T5 14m0-6q-.825 0-1.412-.587T3 6t.588-1.412T5 4t1.413.588T7 6t-.587 1.413T5 8"})}))}const Pa=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 22v-1.5h2.5v-.75H4v-1.5h1.5v-.75H3V16h3q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7v-2.75q0-.425.288-.712T4 11.25h1.5v-.75H3V9h3q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75H7V15zm1.5-7V3.5H3V2h3v6zM9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2z"})}))};function Fa({editor:e}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(Ja,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?"bg-blue-5 text-white":""}),(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(Pa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedList")?"bg-blue-5 text-white":""})]})}const La=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5q-.825 0-1.412-.587T3 19M5 9h14V5H5zm5.325 5h3.35v-3h-3.35zm0 5h3.35v-3h-3.35zM5 14h3.325v-3H5zm10.675 0H19v-3h-3.325zM5 19h3.325v-3H5zm10.675 0H19v-3h-3.325z"})}))};function Ta({editor:e}){const[t,n]=(0,ce.useState)(3),[o,r]=(0,ce.useState)(3);return(0,R.jsx)(V.Popover,{trigger:"click",title:"插入表格",content:(0,R.jsxs)(V.Flex,{gap:8,align:"center",children:[(0,R.jsxs)("div",{children:["行数: ",(0,R.jsx)(V.InputNumber,{min:1,value:t,onChange:e=>n(e||1)})]}),(0,R.jsxs)("div",{children:["列数: ",(0,R.jsx)(V.InputNumber,{min:1,value:o,onChange:e=>r(e||1)})]}),(0,R.jsx)(V.Button,{type:"primary",onClick:()=>e.chain().focus().insertTable({rows:t,cols:o,withHeaderRow:!0}).run(),children:"确认"})]}),children:(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(La,{className:"text-xl "})})})}function Ia(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h9v2H5v14h14v-9h2v9q0 .825-.587 1.413T19 21zM17 9V7h-2V5h2V3h2v2h2v2h-2v2zM6 17h12l-3.75-5l-3 4L9 13zM5 5v14z"})}))}function Da({editor:e}){const[t,n]=(0,ce.useState)(!1),[o,r]=(0,ce.useState)(""),[a,i]=(0,ce.useState)(""),s={accept:"image/*",showUploadList:!1,beforeUpload:t=>ea(e,t,(()=>n(!1)))};return(0,R.jsx)(V.Popover,{open:t,trigger:"click",placement:"bottom",content:(0,R.jsxs)(V.Space,{direction:"vertical",style:{width:"100%"},children:[(0,R.jsxs)("div",{children:["图片链接: ",(0,R.jsx)(V.Input,{value:o,onChange:e=>r(e.target.value)})]}),(0,R.jsxs)("div",{children:["图片描述: ",(0,R.jsx)(V.Input,{value:a,onChange:e=>i(e.target.value)})]}),(0,R.jsxs)(V.Flex,{justify:"space-between",children:[(0,R.jsx)(V.Upload,Object.assign({},s,{children:(0,R.jsx)(V.Button,{children:"上传本地图片"})})),(0,R.jsx)(V.Button,{type:"primary",onClick:function(){o&&(e.chain().focus().setImage({src:o,alt:a,title:a}).run(),n(!1))},children:"确认"})]})]}),onOpenChange:function(e){n(e),e||r("")},children:(0,R.jsx)(V.Button,{size:"small",type:"text",className:"",icon:(0,R.jsx)(Ia,{className:"text-xl"})})})}const Ua=[{label:"正文",value:"paragraph"},{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}],Ha={paragraph:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M9 20v-6q-2.075 0-3.537-1.463T4 9t1.463-3.537T9 4h9v2h-2v14h-2V6h-3v14z"})}))}),{className:"text-xl "}),1:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z"})}))}),{className:"text-xl"}),2:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z"})}))}),{className:"text-xl"}),3:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),4:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z"})}))}),{className:"text-xl"}),5:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-6V7h8v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),6:(0,R.jsx)((function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm12 0q-.825 0-1.412-.587T13 15V9q0-.825.588-1.412T15 7h6v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17zm0-4v2h4v-2z"})}))}),{className:"text-xl"})};function Ra({editor:e}){return(0,R.jsx)(V.Select,{size:"small",options:Ua,defaultValue:"paragraph",labelRender:function(){const t=function(){if(e.isActive("paragraph"))return"paragraph";const t=[1,2,3,4,5,6];for(const n of t)if(e.isActive("heading",{level:n}))return n;return"paragraph"}();return(0,R.jsx)(R.Fragment,{children:Ha[t]})},optionRender:e=>function({label:e,value:t}){return(0,R.jsxs)(V.Flex,{align:"center",gap:4,children:[Ha[t],e]})}(e.data),popupMatchSelectWidth:!1,onChange:function(t){"paragraph"===t?e.chain().focus().setParagraph().run():e.chain().focus().toggleHeading({level:Number(t)}).run()}})}const qa=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"m8 18l-6-6l6-6l1.425 1.425l-4.6 4.6L9.4 16.6zm8 0l-1.425-1.425l4.6-4.6L14.6 7.4L16 6l6 6z"})}))},_a=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8zm5.82 0L16 8l-4.59 4.6L10 11.18L13.18 8L10 4.82zM22 6v12c0 1.11-.89 2-2 2H4a2 2 0 0 1-2-2v-4h2v4h16V6h-2.97V4H20c1.11 0 2 .89 2 2"})}))},Va=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M5.7 18L8 14q-1.65 0-2.825-1.175T4 10t1.175-2.825T8 6t2.825 1.175T12 10q0 .575-.137 1.063T11.45 12L8 18zm9 0l2.3-4q-1.65 0-2.825-1.175T13 10t1.175-2.825T17 6t2.825 1.175T21 10q0 .575-.137 1.063T20.45 12L17 18z"})}))},$a=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M4 13v-2h16v2z"})}))};function Ga({editor:e}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(qa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCode().run(),disabled:!e.can().chain().focus().toggleCode().run(),className:e.isActive("code")?"bg-blue-5 text-white":""}),(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(_a,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCodeBlock().run(),className:e.isActive("codeBlock")?"bg-blue-5 text-white":""}),(0,R.jsx)(V.Button,{type:"text",size:"small",icon:(0,R.jsx)(Va,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBlockquote().run(),className:e.isActive("blockquote")?"bg-blue-5 text-white":""}),(0,R.jsx)(V.Button,{type:"text",size:"small",className:"",icon:(0,R.jsx)($a,{className:"text-xl"}),onClick:()=>e.chain().focus().setHorizontalRule().run()})]})}const Xa=[{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}];function Ya({className:e}){const{editor:t}=(0,Lr.useCurrentEditor)();return t?(0,R.jsx)(Lr.FloatingMenu,{editor:t,tippyOptions:{placement:"top-start"},children:(0,R.jsxs)(V.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[Xa.map((({value:e})=>(0,R.jsx)(V.Button,{type:"text",size:"small",icon:Ha[e],onClick:()=>t.chain().focus().toggleHeading({level:Number(e)}).run(),className:t.isActive("heading",{level:Number(e)})?"bg-blue-5 text-white":""},e))),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Ga,{editor:t}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Fa,{editor:t}),(0,R.jsx)(Ta,{editor:t}),(0,R.jsx)(Da,{editor:t})]})}):null}const Qa=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z"})}))},ei=function(e){return(0,R.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,R.jsx)("path",{fill:"currentColor",d:"M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z"})}))};function ti({editor:e}){const t=!e.can().chain().focus().undo().run(),n=!e.can().chain().focus().redo().run();return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V.Button,{type:"text",size:"small",disabled:t,icon:(0,R.jsx)(ei,{className:"text-xl "}),onClick:()=>e.chain().focus().undo().run()}),(0,R.jsx)(V.Button,{size:"small",type:"text",disabled:n,icon:(0,R.jsx)(Qa,{className:"text-xl "}),onClick:()=>e.chain().focus().redo().run()})]})}const ni=(0,ce.forwardRef)((function(e,t){const{editor:n}=(0,Lr.useCurrentEditor)();return(0,ce.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),n?(0,R.jsxs)(V.Flex,{gap:8,wrap:!0,align:"center",className:`p-2 border border-gray-300 mb-4 sticky z-10 bg-white ${e.className}`,children:[(0,R.jsx)(ti,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(ga,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Ra,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Aa,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Ma,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Ga,{editor:n}),(0,R.jsx)(Ca,{editor:n}),(0,R.jsx)(V.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,R.jsx)(Fa,{editor:n}),(0,R.jsx)(Ta,{editor:n}),(0,R.jsx)(Da,{editor:n})]}):null})),oi=(0,ce.forwardRef)((function(e,t){const{editor:n}=(0,Lr.useCurrentEditor)();return(0,ce.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),(0,R.jsx)(R.Fragment,{})}));var ri=D(383),ai={};ai.styleTagTransform=ie(),ai.setAttributes=ne(),ai.insert=ee().bind(null,"head"),ai.domAPI=Y(),ai.insertStyleElement=re(),G()(ri.A,ai),ri.A&&ri.A.locals&&ri.A.locals;var ii=D(311),si={};si.styleTagTransform=ie(),si.setAttributes=ne(),si.insert=ee().bind(null,"head"),si.domAPI=Y(),si.insertStyleElement=re(),G()(ii.A,si),ii.A&&ii.A.locals&&ii.A.locals;var li=D(512),di={};di.styleTagTransform=ie(),di.setAttributes=ne(),di.insert=ee().bind(null,"head"),di.domAPI=Y(),di.insertStyleElement=re(),G()(li.A,di),li.A&&li.A.locals&&li.A.locals;const ci=(0,ce.forwardRef)((function({content:e,classNames:t},n){const o=(0,ce.useRef)(null);return(0,ce.useImperativeHandle)(n,(()=>({getContent:()=>o.current?o.current.getContent():""}))),(0,R.jsx)("div",{className:"tiptap-container",children:(0,R.jsxs)(Lr.EditorProvider,{immediatelyRender:!1,content:e,extensions:ha,slotBefore:(0,R.jsx)(ni,{className:null==t?void 0:t.fixedMenu}),editorContainerProps:{className:`prose max-w-none p-4 border border-gray-300 min-h-[20rem] ${null==t?void 0:t.editorContainer}`},children:[(0,R.jsx)(oi,{ref:o}),(0,R.jsx)(Za,{className:null==t?void 0:t.bubbleMenu}),(0,R.jsx)(Ka,{className:null==t?void 0:t.linkFloatingMenu}),(0,R.jsx)(Ya,{className:null==t?void 0:t.paragraphFloatingMenu})]})})}));function pi({content:e}){return(0,R.jsx)("div",{className:"tiptap-container",children:(0,R.jsx)(Lr.EditorProvider,{immediatelyRender:!1,editable:!1,content:e,extensions:ma,parseOptions:{preserveWhitespace:"full"},editorContainerProps:{className:"prose max-w-none"}})})}var ui=U.vh,hi=U.NF,mi=U.LZ,fi=U.QR,bi=U.dA,wi=U.Lq,gi=U.Bx,yi=U.l0,xi=U.pg,vi=U.Ow,ji=U.Y9,ki=U.ly,Ni=U.aH,Ai=U.hC,zi=U.Wg,Ei=U.LM,Ci=U._2,Si=U.WI,Mi=U.C;export{ui as AuthTag,hi as BenchCard,mi as ConfirmAgain,fi as Copy,bi as FilePreview,wi as FileUploadDrawer,gi as FileUploadModal,yi as FileUploader,xi as FloatingLabelInput,vi as FloatingLayer,ji as Header,ki as InputTag,Ni as PopoverSelect,Ai as StatusTag,zi as TipTapReader,Ei as Tiptap,Ci as UploadDrawerUploadStoreProvider,Si as UploadStoreProvider,Mi as copy};
|