@instantdb/components 0.22.101 → 0.22.102
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/.turbo/turbo-build.log +5 -5
- package/dist/components/explorer/explorer-layout.d.ts +2 -1
- package/dist/components/explorer/explorer-layout.d.ts.map +1 -1
- package/dist/components/explorer/index.d.ts.map +1 -1
- package/dist/components/explorer/inner-explorer.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +636 -615
- package/package.json +6 -6
- package/src/components/explorer/edit-namespace-dialog.tsx +1 -1
- package/src/components/explorer/explorer-layout.tsx +28 -1
- package/src/components/explorer/index.tsx +5 -1
- package/src/components/explorer/inner-explorer.tsx +0 -1
package/dist/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r, Fragment as M } from "react/jsx-runtime";
|
|
2
|
-
import { toast as Nt, Toaster as
|
|
2
|
+
import { toast as Nt, Toaster as ua } from "sonner";
|
|
3
3
|
import { Toaster as Xi, toast as Zi } from "sonner";
|
|
4
|
-
import { VisuallyHidden as
|
|
5
|
-
import { Editor as
|
|
4
|
+
import { VisuallyHidden as pa } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
import { Editor as ga } from "@monaco-editor/react";
|
|
6
6
|
import _e from "clsx";
|
|
7
7
|
import We from "copy-to-clipboard";
|
|
8
|
-
import He, { useMemo as le, useState as C, useEffect as
|
|
9
|
-
import { twMerge as
|
|
8
|
+
import He, { useMemo as le, useState as C, useEffect as P, useRef as X, useCallback as ot, useSyncExternalStore as ha, useLayoutEffect as yt, Component as lr, createContext as sr, useContext as dt, useId as dr, createElement as fa, Fragment as ma } from "react";
|
|
9
|
+
import { twMerge as ba } from "tailwind-merge";
|
|
10
10
|
import * as se from "@radix-ui/react-select";
|
|
11
|
-
import { ChevronDownIcon as Et, ChevronRightIcon as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import
|
|
14
|
-
import { InstantAPIError as
|
|
15
|
-
import { add as gr, formatDistanceToNow as hr, format as
|
|
16
|
-
import { ArrowLeftIcon as ct, PencilSquareIcon as
|
|
17
|
-
import { id as qe, tx as
|
|
18
|
-
import { useSensors as
|
|
19
|
-
import { markdownTable as
|
|
20
|
-
import { mkConfig as
|
|
21
|
-
import { restrictToHorizontalAxis as
|
|
22
|
-
import { useSortable as wr, SortableContext as qt, horizontalListSortingStrategy as Gt, arrayMove as
|
|
23
|
-
import { flexRender as lt, useReactTable as
|
|
24
|
-
import { ArrowLeftIcon as Ht, PlusIcon as
|
|
25
|
-
import { Combobox as vr, ComboboxInput as yr, ComboboxOptions as kr, ComboboxOption as xr, useClose as Ye, Popover as
|
|
26
|
-
import { debounce as
|
|
11
|
+
import { ChevronDownIcon as Et, ChevronRightIcon as wa, ArrowUturnLeftIcon as va, ArrowPathIcon as ya, ClockIcon as cr, ArrowUpIcon as ka, ArrowDownIcon as xa, ArrowsUpDownIcon as Sa, Cog6ToothIcon as Na, XMarkIcon as ur, PencilSquareIcon as Ea, ArrowUpOnSquareIcon as Ca, TrashIcon as Ia, ExclamationTriangleIcon as Aa, CheckIcon as Ra, ChevronUpIcon as Ta, InformationCircleIcon as Oa } from "@heroicons/react/24/outline";
|
|
12
|
+
import { createPortal as _a } from "react-dom";
|
|
13
|
+
import Da, { useSWRConfig as pr } from "swr";
|
|
14
|
+
import { InstantAPIError as La, id as Me, coerceToDate as Fa, tx as $a } from "@instantdb/core";
|
|
15
|
+
import { add as gr, formatDistanceToNow as hr, format as za } from "date-fns";
|
|
16
|
+
import { ArrowLeftIcon as ct, PencilSquareIcon as ja, TrashIcon as it, PlusIcon as fr, ArrowUturnLeftIcon as Ve, ArrowPathIcon as Ma, InformationCircleIcon as Ba, Cog8ToothIcon as Ua, ChevronLeftIcon as Pa, Bars3Icon as qa, XMarkIcon as Ga, EyeSlashIcon as mr, EyeIcon as br, ClipboardDocumentIcon as Ct, CheckCircleIcon as Ha } from "@heroicons/react/24/solid";
|
|
17
|
+
import { id as qe, tx as Wa, init as Va } from "@instantdb/react";
|
|
18
|
+
import { useSensors as Ya, useSensor as wt, MouseSensor as Ka, TouchSensor as Xa, KeyboardSensor as Za, DndContext as Qa, closestCenter as Ja } from "@dnd-kit/core";
|
|
19
|
+
import { markdownTable as en } from "markdown-table";
|
|
20
|
+
import { mkConfig as tn, generateCsv as rn, download as an } from "export-to-csv";
|
|
21
|
+
import { restrictToHorizontalAxis as nn } from "@dnd-kit/modifiers";
|
|
22
|
+
import { useSortable as wr, SortableContext as qt, horizontalListSortingStrategy as Gt, arrayMove as on } from "@dnd-kit/sortable";
|
|
23
|
+
import { flexRender as lt, useReactTable as ln, getCoreRowModel as sn } from "@tanstack/react-table";
|
|
24
|
+
import { ArrowLeftIcon as Ht, PlusIcon as dn, ArrowRightIcon as cn, Table as un, FileDown as pn, CurlyBraces as gn, ArrowRightFromLine as hn, XIcon as fn } from "lucide-react";
|
|
25
|
+
import { Combobox as vr, ComboboxInput as yr, ComboboxOptions as kr, ComboboxOption as xr, useClose as Ye, Popover as mn, PopoverButton as bn, PopoverPanel as wn } from "@headlessui/react";
|
|
26
|
+
import { debounce as vn, last as yn, isObject as Ne } from "lodash";
|
|
27
27
|
import { CSS as Sr } from "@dnd-kit/utilities";
|
|
28
28
|
import "swr/subscription";
|
|
29
29
|
import * as ne from "@radix-ui/react-tooltip";
|
|
30
|
-
import { validate as
|
|
30
|
+
import { validate as kn } from "uuid";
|
|
31
31
|
import * as Te from "@radix-ui/react-dialog";
|
|
32
|
-
import
|
|
32
|
+
import xn from "json5";
|
|
33
33
|
import * as Oe from "@radix-ui/react-dropdown-menu";
|
|
34
34
|
import * as Wt from "@radix-ui/react-toggle-group";
|
|
35
35
|
import Nr from "react-copy-to-clipboard";
|
|
36
36
|
import * as Vt from "@radix-ui/react-switch";
|
|
37
|
-
const xn = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-500:oklch(76.9% .188 70.08);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-slate-100:oklch(96.8% .007 247.896);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[18px\\]{top:18px}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-\\[50\\%\\]{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-100{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-8{margin-right:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.-ml-0\\.5{margin-left:calc(var(--spacing)*-.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-\\(--radix-select-trigger-height\\){height:var(--radix-select-trigger-height)}.h-1{height:calc(var(--spacing)*1)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--radix-select-content-available-height\\){max-height:var(--radix-select-content-available-height)}.max-h-\\[25vh\\]{max-height:25vh}.max-h-\\[calc\\(100\\%-2rem\\)\\]{max-height:calc(100% - 2rem)}.max-h-full{max-height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[30vh\\]{min-height:30vh}.min-h-\\[34px\\]{min-height:34px}.min-h-full{min-height:100%}.w-\\(--input-width\\){width:var(--input-width)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-12{width:calc(var(--spacing)*12)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-\\[30px\\]{width:30px}.w-\\[62px\\]{width:62px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[67vw\\]{max-width:67vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-fit{max-width:fit-content}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-\\(--radix-select-trigger-width\\){min-width:var(--radix-select-trigger-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\\(--radix-select-content-transform-origin\\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-45{rotate:-45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#606AF4\\]{border-color:#606af4}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\\/80{border-color:#d1d5dccc}@supports (color:color-mix(in lab,red,red)){.border-gray-300\\/80{border-color:color-mix(in oklab,var(--color-gray-300)80%,transparent)}}.border-gray-500{border-color:var(--color-gray-500)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-r-gray-200{border-right-color:var(--color-gray-200)}.border-b-gray-200{border-bottom-color:var(--color-gray-200)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#606AF4\\]{background-color:#606af4}.bg-\\[\\#616AF4\\]{background-color:#616af4}.bg-\\[\\#4543e9\\]{background-color:#4543e9}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-l{--tw-gradient-position:to left}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-l{--tw-gradient-position:to left in oklab}}.bg-linear-to-l{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-black\\/10{--tw-gradient-from:#0000001a}@supports (color:color-mix(in lab,red,red)){.from-black\\/10{--tw-gradient-from:color-mix(in oklab,var(--color-black)10%,transparent)}}.from-black\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/20{--tw-gradient-from:#0003}@supports (color:color-mix(in lab,red,red)){.from-black\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-black)20%,transparent)}}.from-black\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/0{--tw-gradient-via:#0000}@supports (color:color-mix(in lab,red,red)){.via-black\\/0{--tw-gradient-via:color-mix(in oklab,var(--color-black)0%,transparent)}}.via-black\\/0{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/5{--tw-gradient-via:#0000000d}@supports (color:color-mix(in lab,red,red)){.via-black\\/5{--tw-gradient-via:color-mix(in oklab,var(--color-black)5%,transparent)}}.via-black\\/5{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-24{padding-left:calc(var(--spacing)*24)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-balance{text-wrap:balance}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#606AF4\\]{color:#606af4}.text-\\[\\#2563EB\\]{color:#2563eb}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\[\\#606AF4\\]{--tw-ring-color:#606af4}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.blur{--tw-blur:blur(8px);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,)}.blur-sm{--tw-blur:blur(var(--blur-sm));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,)}.filter{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,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.content-\\[hi\\]{--tw-content:hi;content:var(--tw-content)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.file\\:rounded-xs::file-selector-button{border-radius:var(--radius-xs)}.file\\:border-none::file-selector-button{--tw-border-style:none;border-style:none}.file\\:border-neutral-200::file-selector-button{border-color:var(--color-neutral-200)}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:p-2::file-selector-button{padding:calc(var(--spacing)*2)}.file\\:pt-1::file-selector-button{padding-top:calc(var(--spacing)*1)}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:shadow-none::file-selector-button{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-neutral-500::placeholder{color:var(--color-neutral-500)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\\:invisible:empty{visibility:hidden}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-700:focus-within{--tw-ring-color:var(--color-blue-700)}@media (hover:hover){.hover\\:cursor-col-resize:hover{cursor:col-resize}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:bg-\\[\\#4543E9\\]:hover,.hover\\:bg-\\[\\#4543e9\\]:hover{background-color:#4543e9}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-50\\/30:hover{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-50\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-200\\/30:hover{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:bg-gray-200\\/50:hover{background-color:#e5e7eb80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/50:hover{background-color:color-mix(in oklab,var(--color-gray-200)50%,transparent)}}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-orange-500:hover{background-color:var(--color-orange-500)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-neutral-100:focus{background-color:var(--color-neutral-100)}.focus\\:text-neutral-900:focus{color:var(--color-neutral-900)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[\\#606AF4\\]:focus{--tw-ring-color:#606af4}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-neutral-950:focus-visible{--tw-ring-color:var(--color-neutral-950)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.active\\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.hover\\:enabled\\:border-red-300:hover:enabled{border-color:var(--color-red-300)}.hover\\:enabled\\:bg-\\[\\#4543e9\\]:hover:enabled{background-color:#4543e9}.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:enabled\\:bg-orange-500:hover:enabled{background-color:var(--color-orange-500)}.hover\\:enabled\\:text-gray-600:hover:enabled{color:var(--color-gray-600)}.hover\\:enabled\\:text-red-600:hover:enabled{color:var(--color-red-600)}.hover\\:enabled\\:text-slate-100:hover:enabled{color:var(--color-slate-100)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{border-color:var(--color-gray-300)}.disabled\\:border-red-50:disabled{border-color:var(--color-red-50)}.disabled\\:bg-\\[\\#9197f3\\]:disabled{background-color:#9197f3}.disabled\\:bg-gray-200:disabled{background-color:var(--color-gray-200)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}.disabled\\:text-red-300:disabled{color:var(--color-red-300)}.disabled\\:opacity-20:disabled{opacity:.2}.disabled\\:opacity-50:disabled{opacity:.5}.data-disabled\\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-focus\\:bg-blue-100[data-focus]{background-color:var(--color-blue-100)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\\[state\\=checked\\]\\:translate-x-\\[calc\\(100\\%-2px\\)\\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:bg-neutral-800[data-state=checked]{background-color:var(--color-neutral-800)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-neutral-300[data-state=unchecked]{background-color:var(--color-neutral-300)}@media (min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}}@media (min-width:48rem){.md\\:static{position:static}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-start{justify-content:flex-start}.md\\:gap-2{gap:calc(var(--spacing)*2)}.md\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:where(.dark\\:divide-neutral-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-neutral-700)}.dark\\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\\:border-neutral-500:where(.dark,.dark *){border-color:var(--color-neutral-500)}.dark\\:border-neutral-600:where(.dark,.dark *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:where(.dark,.dark *){border-color:var(--color-neutral-800)}.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:#82181a99}@supports (color:color-mix(in lab,red,red)){.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-red-900)60%,transparent)}}.dark\\:border-y-neutral-700:where(.dark,.dark *){border-block-color:var(--color-neutral-700)}.dark\\:border-y-neutral-800:where(.dark,.dark *){border-block-color:var(--color-neutral-800)}.dark\\:border-t-neutral-700:where(.dark,.dark *){border-top-color:var(--color-neutral-700)}.dark\\:border-r-neutral-700:where(.dark,.dark *){border-right-color:var(--color-neutral-700)}.dark\\:border-b-neutral-600:where(.dark,.dark *){border-bottom-color:var(--color-neutral-600)}.dark\\:border-b-neutral-700:where(.dark,.dark *){border-bottom-color:var(--color-neutral-700)}.dark\\:border-l-neutral-700:where(.dark,.dark *){border-left-color:var(--color-neutral-700)}.dark\\:bg-\\[\\#606AF4\\]:where(.dark,.dark *){background-color:#606af4}.dark\\:bg-\\[\\#252525\\]:where(.dark,.dark *){background-color:#252525}.dark\\:bg-\\[\\#303030\\]:where(.dark,.dark *){background-color:#303030}.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:#1447e64d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-700)30%,transparent)}}.dark\\:bg-neutral-200:where(.dark,.dark *){background-color:var(--color-neutral-200)}.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:#52525233}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)20%,transparent)}}.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:#52525266}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)40%,transparent)}}.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:#52525280}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)50%,transparent)}}.dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--color-neutral-700)}.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--color-neutral-900)}.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:#17171780}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-900)50%,transparent)}}.dark\\:bg-orange-600:where(.dark,.dark *){background-color:var(--color-orange-600)}.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\\:text-blue-100:where(.dark,.dark *){color:var(--color-blue-100)}.dark\\:text-neutral-50:where(.dark,.dark *){color:var(--color-neutral-50)}.dark\\:text-neutral-200:where(.dark,.dark *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:where(.dark,.dark *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:where(.dark,.dark *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:where(.dark,.dark *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:where(.dark,.dark *){color:var(--color-neutral-600)}.dark\\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:ring-neutral-500:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-500)}.dark\\:ring-neutral-600:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-600)}.dark\\:ring-neutral-700:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-700)}.dark\\:file\\:border-neutral-700:where(.dark,.dark *)::file-selector-button{border-color:var(--color-neutral-700)}.dark\\:file\\:text-white:where(.dark,.dark *)::file-selector-button{color:var(--color-white)}.dark\\:placeholder\\:text-neutral-400:where(.dark,.dark *)::placeholder{color:var(--color-neutral-400)}.dark\\:placeholder\\:text-neutral-500:where(.dark,.dark *)::placeholder{color:var(--color-neutral-500)}.dark\\:checked\\:border-\\[\\#2563EB\\]:where(.dark,.dark *):checked{border-color:#2563eb}.dark\\:checked\\:bg-\\[\\#2563EB\\]:where(.dark,.dark *):checked{background-color:#2563eb}.dark\\:focus-within\\:ring-blue-500:where(.dark,.dark *):focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.dark\\:hover\\:border-red-800:where(.dark,.dark *):hover{border-color:var(--color-red-800)}.dark\\:hover\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover{background-color:#4543e9}.dark\\:hover\\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:#404040cc}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)80%,transparent)}}.dark\\:hover\\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}.dark\\:hover\\:bg-orange-500:where(.dark,.dark *):hover{background-color:var(--color-orange-500)}.dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--color-neutral-100)}.dark\\:hover\\:text-neutral-300:where(.dark,.dark *):hover{color:var(--color-neutral-300)}.dark\\:hover\\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}}.dark\\:focus\\:bg-neutral-700:where(.dark,.dark *):focus{background-color:var(--color-neutral-700)}.dark\\:focus\\:text-neutral-50:where(.dark,.dark *):focus{color:var(--color-neutral-50)}.dark\\:focus-visible\\:ring-neutral-400:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--color-neutral-400)}@media (hover:hover){.dark\\:hover\\:enabled\\:border-red-800:where(.dark,.dark *):hover:enabled{border-color:var(--color-red-800)}.dark\\:hover\\:enabled\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover:enabled{background-color:#4543e9}.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:enabled\\:bg-orange-500:where(.dark,.dark *):hover:enabled{background-color:var(--color-orange-500)}.dark\\:hover\\:enabled\\:text-neutral-100:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-100)}.dark\\:hover\\:enabled\\:text-neutral-300:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-300)}.dark\\:hover\\:enabled\\:text-red-500:where(.dark,.dark *):hover:enabled{color:var(--color-red-500)}}.dark\\:disabled\\:border-neutral-400:where(.dark,.dark *):disabled{border-color:var(--color-neutral-400)}.dark\\:disabled\\:border-red-950:where(.dark,.dark *):disabled{border-color:var(--color-red-950)}.dark\\:disabled\\:bg-\\[\\#9197f3\\]:where(.dark,.dark *):disabled{background-color:#9197f3}.dark\\:disabled\\:text-neutral-600:where(.dark,.dark *):disabled{color:var(--color-neutral-600)}.dark\\:disabled\\:text-neutral-700:where(.dark,.dark *):disabled{color:var(--color-neutral-700)}.dark\\:disabled\\:text-red-800:where(.dark,.dark *):disabled{color:var(--color-red-800)}.dark\\:disabled\\:opacity-40:where(.dark,.dark *):disabled{opacity:.4}.dark\\:disabled\\:opacity-50:where(.dark,.dark *):disabled{opacity:.5}.dark\\:data-focus\\:bg-neutral-700:where(.dark,.dark *)[data-focus]{background-color:var(--color-neutral-700)}.dark\\:data-\\[state\\=checked\\]\\:border-transparent:where(.dark,.dark *)[data-state=checked]{border-color:#0000}.dark\\:data-\\[state\\=checked\\]\\:bg-neutral-600:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-neutral-600)}.dark\\:data-\\[state\\=checked\\]\\:bg-white:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-white)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-200:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-200)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-700:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-700)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`, Er = typeof window < "u", Sn = xt("devBackend");
|
|
37
|
+
const Sn = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-500:oklch(76.9% .188 70.08);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-slate-100:oklch(96.8% .007 247.896);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[18px\\]{top:18px}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-\\[50\\%\\]{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-100{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-8{margin-right:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.-ml-0\\.5{margin-left:calc(var(--spacing)*-.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-\\(--radix-select-trigger-height\\){height:var(--radix-select-trigger-height)}.h-1{height:calc(var(--spacing)*1)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--radix-select-content-available-height\\){max-height:var(--radix-select-content-available-height)}.max-h-\\[25vh\\]{max-height:25vh}.max-h-\\[calc\\(100\\%-2rem\\)\\]{max-height:calc(100% - 2rem)}.max-h-full{max-height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[30vh\\]{min-height:30vh}.min-h-\\[34px\\]{min-height:34px}.min-h-full{min-height:100%}.w-\\(--input-width\\){width:var(--input-width)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-12{width:calc(var(--spacing)*12)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-\\[30px\\]{width:30px}.w-\\[62px\\]{width:62px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[67vw\\]{max-width:67vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-fit{max-width:fit-content}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-\\(--radix-select-trigger-width\\){min-width:var(--radix-select-trigger-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\\(--radix-select-content-transform-origin\\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-45{rotate:-45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#606AF4\\]{border-color:#606af4}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\\/80{border-color:#d1d5dccc}@supports (color:color-mix(in lab,red,red)){.border-gray-300\\/80{border-color:color-mix(in oklab,var(--color-gray-300)80%,transparent)}}.border-gray-500{border-color:var(--color-gray-500)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-r-gray-200{border-right-color:var(--color-gray-200)}.border-b-gray-200{border-bottom-color:var(--color-gray-200)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#606AF4\\]{background-color:#606af4}.bg-\\[\\#616AF4\\]{background-color:#616af4}.bg-\\[\\#4543e9\\]{background-color:#4543e9}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-l{--tw-gradient-position:to left}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-l{--tw-gradient-position:to left in oklab}}.bg-linear-to-l{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-black\\/10{--tw-gradient-from:#0000001a}@supports (color:color-mix(in lab,red,red)){.from-black\\/10{--tw-gradient-from:color-mix(in oklab,var(--color-black)10%,transparent)}}.from-black\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/20{--tw-gradient-from:#0003}@supports (color:color-mix(in lab,red,red)){.from-black\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-black)20%,transparent)}}.from-black\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/0{--tw-gradient-via:#0000}@supports (color:color-mix(in lab,red,red)){.via-black\\/0{--tw-gradient-via:color-mix(in oklab,var(--color-black)0%,transparent)}}.via-black\\/0{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/5{--tw-gradient-via:#0000000d}@supports (color:color-mix(in lab,red,red)){.via-black\\/5{--tw-gradient-via:color-mix(in oklab,var(--color-black)5%,transparent)}}.via-black\\/5{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-24{padding-left:calc(var(--spacing)*24)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-balance{text-wrap:balance}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#606AF4\\]{color:#606af4}.text-\\[\\#2563EB\\]{color:#2563eb}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\[\\#606AF4\\]{--tw-ring-color:#606af4}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.blur{--tw-blur:blur(8px);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,)}.blur-sm{--tw-blur:blur(var(--blur-sm));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,)}.filter{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,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.content-\\[hi\\]{--tw-content:hi;content:var(--tw-content)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.file\\:rounded-xs::file-selector-button{border-radius:var(--radius-xs)}.file\\:border-none::file-selector-button{--tw-border-style:none;border-style:none}.file\\:border-neutral-200::file-selector-button{border-color:var(--color-neutral-200)}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:p-2::file-selector-button{padding:calc(var(--spacing)*2)}.file\\:pt-1::file-selector-button{padding-top:calc(var(--spacing)*1)}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:shadow-none::file-selector-button{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-neutral-500::placeholder{color:var(--color-neutral-500)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\\:invisible:empty{visibility:hidden}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-700:focus-within{--tw-ring-color:var(--color-blue-700)}@media (hover:hover){.hover\\:cursor-col-resize:hover{cursor:col-resize}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:bg-\\[\\#4543E9\\]:hover,.hover\\:bg-\\[\\#4543e9\\]:hover{background-color:#4543e9}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-50\\/30:hover{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-50\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-200\\/30:hover{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:bg-gray-200\\/50:hover{background-color:#e5e7eb80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/50:hover{background-color:color-mix(in oklab,var(--color-gray-200)50%,transparent)}}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-orange-500:hover{background-color:var(--color-orange-500)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-neutral-100:focus{background-color:var(--color-neutral-100)}.focus\\:text-neutral-900:focus{color:var(--color-neutral-900)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[\\#606AF4\\]:focus{--tw-ring-color:#606af4}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-neutral-950:focus-visible{--tw-ring-color:var(--color-neutral-950)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.active\\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.hover\\:enabled\\:border-red-300:hover:enabled{border-color:var(--color-red-300)}.hover\\:enabled\\:bg-\\[\\#4543e9\\]:hover:enabled{background-color:#4543e9}.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:enabled\\:bg-orange-500:hover:enabled{background-color:var(--color-orange-500)}.hover\\:enabled\\:text-gray-600:hover:enabled{color:var(--color-gray-600)}.hover\\:enabled\\:text-red-600:hover:enabled{color:var(--color-red-600)}.hover\\:enabled\\:text-slate-100:hover:enabled{color:var(--color-slate-100)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{border-color:var(--color-gray-300)}.disabled\\:border-red-50:disabled{border-color:var(--color-red-50)}.disabled\\:bg-\\[\\#9197f3\\]:disabled{background-color:#9197f3}.disabled\\:bg-gray-200:disabled{background-color:var(--color-gray-200)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}.disabled\\:text-red-300:disabled{color:var(--color-red-300)}.disabled\\:opacity-20:disabled{opacity:.2}.disabled\\:opacity-50:disabled{opacity:.5}.data-disabled\\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-focus\\:bg-blue-100[data-focus]{background-color:var(--color-blue-100)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\\[state\\=checked\\]\\:translate-x-\\[calc\\(100\\%-2px\\)\\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:bg-neutral-800[data-state=checked]{background-color:var(--color-neutral-800)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-neutral-300[data-state=unchecked]{background-color:var(--color-neutral-300)}@media (min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}}@media (min-width:48rem){.md\\:static{position:static}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-start{justify-content:flex-start}.md\\:gap-2{gap:calc(var(--spacing)*2)}.md\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:where(.dark\\:divide-neutral-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-neutral-700)}.dark\\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\\:border-neutral-500:where(.dark,.dark *){border-color:var(--color-neutral-500)}.dark\\:border-neutral-600:where(.dark,.dark *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:where(.dark,.dark *){border-color:var(--color-neutral-800)}.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:#82181a99}@supports (color:color-mix(in lab,red,red)){.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-red-900)60%,transparent)}}.dark\\:border-y-neutral-700:where(.dark,.dark *){border-block-color:var(--color-neutral-700)}.dark\\:border-y-neutral-800:where(.dark,.dark *){border-block-color:var(--color-neutral-800)}.dark\\:border-t-neutral-700:where(.dark,.dark *){border-top-color:var(--color-neutral-700)}.dark\\:border-r-neutral-700:where(.dark,.dark *){border-right-color:var(--color-neutral-700)}.dark\\:border-b-neutral-600:where(.dark,.dark *){border-bottom-color:var(--color-neutral-600)}.dark\\:border-b-neutral-700:where(.dark,.dark *){border-bottom-color:var(--color-neutral-700)}.dark\\:border-l-neutral-700:where(.dark,.dark *){border-left-color:var(--color-neutral-700)}.dark\\:bg-\\[\\#606AF4\\]:where(.dark,.dark *){background-color:#606af4}.dark\\:bg-\\[\\#252525\\]:where(.dark,.dark *){background-color:#252525}.dark\\:bg-\\[\\#303030\\]:where(.dark,.dark *){background-color:#303030}.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:#1447e64d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-700)30%,transparent)}}.dark\\:bg-neutral-200:where(.dark,.dark *){background-color:var(--color-neutral-200)}.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:#52525233}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)20%,transparent)}}.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:#52525266}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)40%,transparent)}}.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:#52525280}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)50%,transparent)}}.dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--color-neutral-700)}.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--color-neutral-900)}.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:#17171780}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-900)50%,transparent)}}.dark\\:bg-orange-600:where(.dark,.dark *){background-color:var(--color-orange-600)}.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\\:text-blue-100:where(.dark,.dark *){color:var(--color-blue-100)}.dark\\:text-neutral-50:where(.dark,.dark *){color:var(--color-neutral-50)}.dark\\:text-neutral-200:where(.dark,.dark *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:where(.dark,.dark *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:where(.dark,.dark *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:where(.dark,.dark *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:where(.dark,.dark *){color:var(--color-neutral-600)}.dark\\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:ring-neutral-500:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-500)}.dark\\:ring-neutral-600:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-600)}.dark\\:ring-neutral-700:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-700)}.dark\\:file\\:border-neutral-700:where(.dark,.dark *)::file-selector-button{border-color:var(--color-neutral-700)}.dark\\:file\\:text-white:where(.dark,.dark *)::file-selector-button{color:var(--color-white)}.dark\\:placeholder\\:text-neutral-400:where(.dark,.dark *)::placeholder{color:var(--color-neutral-400)}.dark\\:placeholder\\:text-neutral-500:where(.dark,.dark *)::placeholder{color:var(--color-neutral-500)}.dark\\:checked\\:border-\\[\\#2563EB\\]:where(.dark,.dark *):checked{border-color:#2563eb}.dark\\:checked\\:bg-\\[\\#2563EB\\]:where(.dark,.dark *):checked{background-color:#2563eb}.dark\\:focus-within\\:ring-blue-500:where(.dark,.dark *):focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.dark\\:hover\\:border-red-800:where(.dark,.dark *):hover{border-color:var(--color-red-800)}.dark\\:hover\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover{background-color:#4543e9}.dark\\:hover\\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:#404040cc}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)80%,transparent)}}.dark\\:hover\\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}.dark\\:hover\\:bg-orange-500:where(.dark,.dark *):hover{background-color:var(--color-orange-500)}.dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--color-neutral-100)}.dark\\:hover\\:text-neutral-300:where(.dark,.dark *):hover{color:var(--color-neutral-300)}.dark\\:hover\\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}}.dark\\:focus\\:bg-neutral-700:where(.dark,.dark *):focus{background-color:var(--color-neutral-700)}.dark\\:focus\\:text-neutral-50:where(.dark,.dark *):focus{color:var(--color-neutral-50)}.dark\\:focus-visible\\:ring-neutral-400:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--color-neutral-400)}@media (hover:hover){.dark\\:hover\\:enabled\\:border-red-800:where(.dark,.dark *):hover:enabled{border-color:var(--color-red-800)}.dark\\:hover\\:enabled\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover:enabled{background-color:#4543e9}.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:enabled\\:bg-orange-500:where(.dark,.dark *):hover:enabled{background-color:var(--color-orange-500)}.dark\\:hover\\:enabled\\:text-neutral-100:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-100)}.dark\\:hover\\:enabled\\:text-neutral-300:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-300)}.dark\\:hover\\:enabled\\:text-red-500:where(.dark,.dark *):hover:enabled{color:var(--color-red-500)}}.dark\\:disabled\\:border-neutral-400:where(.dark,.dark *):disabled{border-color:var(--color-neutral-400)}.dark\\:disabled\\:border-red-950:where(.dark,.dark *):disabled{border-color:var(--color-red-950)}.dark\\:disabled\\:bg-\\[\\#9197f3\\]:where(.dark,.dark *):disabled{background-color:#9197f3}.dark\\:disabled\\:text-neutral-600:where(.dark,.dark *):disabled{color:var(--color-neutral-600)}.dark\\:disabled\\:text-neutral-700:where(.dark,.dark *):disabled{color:var(--color-neutral-700)}.dark\\:disabled\\:text-red-800:where(.dark,.dark *):disabled{color:var(--color-red-800)}.dark\\:disabled\\:opacity-40:where(.dark,.dark *):disabled{opacity:.4}.dark\\:disabled\\:opacity-50:where(.dark,.dark *):disabled{opacity:.5}.dark\\:data-focus\\:bg-neutral-700:where(.dark,.dark *)[data-focus]{background-color:var(--color-neutral-700)}.dark\\:data-\\[state\\=checked\\]\\:border-transparent:where(.dark,.dark *)[data-state=checked]{border-color:#0000}.dark\\:data-\\[state\\=checked\\]\\:bg-neutral-600:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-neutral-600)}.dark\\:data-\\[state\\=checked\\]\\:bg-white:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-white)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-200:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-200)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-700:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-700)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`, Er = typeof window < "u", Nn = xt("devBackend");
|
|
38
38
|
let kt = "8888";
|
|
39
|
-
if (
|
|
39
|
+
if (Nn && Er) {
|
|
40
40
|
const e = new URL(location.href).searchParams.get("port");
|
|
41
41
|
e && (kt = e);
|
|
42
42
|
}
|
|
@@ -107,7 +107,7 @@ const It = {
|
|
|
107
107
|
`${t.cardinality}-${t["unique?"]}`,
|
|
108
108
|
e
|
|
109
109
|
])
|
|
110
|
-
),
|
|
110
|
+
), En = ({
|
|
111
111
|
attr: e,
|
|
112
112
|
gracePeriodDays: t,
|
|
113
113
|
isExpanded: a,
|
|
@@ -117,22 +117,22 @@ const It = {
|
|
|
117
117
|
const l = gr(new Date(e["deletion-marked-at"]), {
|
|
118
118
|
days: t
|
|
119
119
|
}), i = () => e["forward-identity"][2], g = () => e["reverse-identity"]?.[2], c = () => {
|
|
120
|
-
const s = e["forward-identity"][1],
|
|
121
|
-
return { forwardEtype: s, reverseEtype:
|
|
120
|
+
const s = e["forward-identity"][1], f = e["reverse-identity"]?.[1];
|
|
121
|
+
return { forwardEtype: s, reverseEtype: f };
|
|
122
122
|
}, p = () => {
|
|
123
123
|
const s = `${e.cardinality}-${e["unique?"]}`;
|
|
124
124
|
return Cr[s];
|
|
125
|
-
},
|
|
125
|
+
}, m = () => {
|
|
126
126
|
n(!a);
|
|
127
127
|
}, d = (() => {
|
|
128
128
|
if (e["value-type"] === "blob")
|
|
129
129
|
return [];
|
|
130
|
-
const s = p(), { forwardEtype:
|
|
130
|
+
const s = p(), { forwardEtype: f, reverseEtype: b } = c(), w = i(), v = g(), k = (x, _) => x === "one-one" ? "has one" : x === "many-many" ? "has many" : x === "one-many" ? _ ? "has one" : "has many" : x === "many-one" ? _ ? "has many" : "has one" : "has";
|
|
131
131
|
return [
|
|
132
132
|
{
|
|
133
133
|
label: "forward",
|
|
134
134
|
value: /* @__PURE__ */ h("span", { children: [
|
|
135
|
-
/* @__PURE__ */ r("strong", { children:
|
|
135
|
+
/* @__PURE__ */ r("strong", { children: f }),
|
|
136
136
|
" ",
|
|
137
137
|
k(s, !0),
|
|
138
138
|
" ",
|
|
@@ -159,10 +159,10 @@ const It = {
|
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
className: "flex cursor-pointer items-center justify-between",
|
|
162
|
-
onClick:
|
|
162
|
+
onClick: m,
|
|
163
163
|
children: [
|
|
164
164
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
|
|
165
|
-
a ? /* @__PURE__ */ r(Et, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(
|
|
165
|
+
a ? /* @__PURE__ */ r(Et, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(wa, { width: 14, className: "text-gray-400" }),
|
|
166
166
|
/* @__PURE__ */ r("span", { className: "font-mono text-sm font-medium", children: e["forward-identity"][2] }),
|
|
167
167
|
/* @__PURE__ */ h("span", { className: "font-mono text-xs text-gray-400", children: [
|
|
168
168
|
"expires ",
|
|
@@ -179,7 +179,7 @@ const It = {
|
|
|
179
179
|
s.stopPropagation(), o(e.id);
|
|
180
180
|
},
|
|
181
181
|
children: [
|
|
182
|
-
/* @__PURE__ */ r(
|
|
182
|
+
/* @__PURE__ */ r(va, { width: 14 }),
|
|
183
183
|
"Restore"
|
|
184
184
|
]
|
|
185
185
|
}
|
|
@@ -187,10 +187,10 @@ const It = {
|
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
),
|
|
190
|
-
a && /* @__PURE__ */ r("div", { className: "pb-3 pl-6", children: /* @__PURE__ */ r("table", { className: "mt-2 w-full text-left font-mono text-xs text-gray-500", children: /* @__PURE__ */ r("tbody", { children: u.map((s,
|
|
190
|
+
a && /* @__PURE__ */ r("div", { className: "pb-3 pl-6", children: /* @__PURE__ */ r("table", { className: "mt-2 w-full text-left font-mono text-xs text-gray-500", children: /* @__PURE__ */ r("tbody", { children: u.map((s, f) => /* @__PURE__ */ h(
|
|
191
191
|
"tr",
|
|
192
192
|
{
|
|
193
|
-
className:
|
|
193
|
+
className: f === u.length - 1 ? "pl-2" : "border-b border-gray-200",
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ r("td", { className: "py-1 pr-4 pl-2 font-medium text-gray-700", children: s.label }),
|
|
196
196
|
/* @__PURE__ */ r("td", { className: "py-1 text-gray-600", children: s.value })
|
|
@@ -201,7 +201,7 @@ const It = {
|
|
|
201
201
|
] });
|
|
202
202
|
}, At = (e) => {
|
|
203
203
|
const t = de(), a = t.adminToken;
|
|
204
|
-
return
|
|
204
|
+
return Da(["recently-deleted", e], async () => {
|
|
205
205
|
const o = await fetch(
|
|
206
206
|
`${t.apiURI}/dash/apps/${e}/soft_deleted_attrs`,
|
|
207
207
|
{
|
|
@@ -217,7 +217,7 @@ const It = {
|
|
|
217
217
|
);
|
|
218
218
|
return {
|
|
219
219
|
...l,
|
|
220
|
-
attrs: l.attrs.map(
|
|
220
|
+
attrs: l.attrs.map(An)
|
|
221
221
|
};
|
|
222
222
|
});
|
|
223
223
|
}, Ir = (e) => {
|
|
@@ -232,7 +232,7 @@ const It = {
|
|
|
232
232
|
});
|
|
233
233
|
}, [t?.attrs]);
|
|
234
234
|
};
|
|
235
|
-
function
|
|
235
|
+
function Cn({
|
|
236
236
|
appId: e,
|
|
237
237
|
db: t
|
|
238
238
|
}) {
|
|
@@ -242,10 +242,10 @@ function En({
|
|
|
242
242
|
await t.core._reactor.pushOps(
|
|
243
243
|
p.map((d) => ["restore-attr", d])
|
|
244
244
|
);
|
|
245
|
-
const
|
|
245
|
+
const m = new Set(p);
|
|
246
246
|
n({
|
|
247
247
|
...a,
|
|
248
|
-
attrs: a.attrs.filter((d) => !
|
|
248
|
+
attrs: a.attrs.filter((d) => !m.has(d.id))
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
return /* @__PURE__ */ h(ge, { className: "flex max-w-2xl flex-col gap-4", children: [
|
|
@@ -265,7 +265,7 @@ function En({
|
|
|
265
265
|
/* @__PURE__ */ r("div", { className: "font-semibold dark:text-white", children: g.idAttr["forward-identity"][1] }),
|
|
266
266
|
/* @__PURE__ */ h("div", { className: "mt-1 text-xs text-neutral-500 dark:text-neutral-400", children: [
|
|
267
267
|
"Deleted ",
|
|
268
|
-
|
|
268
|
+
za(c, "MMM d, h:mm a"),
|
|
269
269
|
" ·",
|
|
270
270
|
" ",
|
|
271
271
|
"expires",
|
|
@@ -277,7 +277,7 @@ function En({
|
|
|
277
277
|
g.remainingCols.length > 0 ? /* @__PURE__ */ h("div", { className: "mt-1 truncate text-xs text-neutral-500 dark:text-neutral-400", children: [
|
|
278
278
|
"Columns:",
|
|
279
279
|
" ",
|
|
280
|
-
g.remainingCols.map((
|
|
280
|
+
g.remainingCols.map((m) => m["forward-identity"][2]).join(", ")
|
|
281
281
|
] }) : /* @__PURE__ */ r("div", { className: "mt-1 text-xs text-neutral-500 dark:text-neutral-400", children: "No columns" })
|
|
282
282
|
] }),
|
|
283
283
|
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ h(
|
|
@@ -287,7 +287,7 @@ function En({
|
|
|
287
287
|
variant: "secondary",
|
|
288
288
|
onClick: () => i(g),
|
|
289
289
|
children: [
|
|
290
|
-
/* @__PURE__ */ r(
|
|
290
|
+
/* @__PURE__ */ r(ya, { className: "h-3.5 w-3.5" }),
|
|
291
291
|
"Restore"
|
|
292
292
|
]
|
|
293
293
|
}
|
|
@@ -299,28 +299,28 @@ function En({
|
|
|
299
299
|
}) }) : /* @__PURE__ */ r("p", { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "No recently deleted namespaces." })
|
|
300
300
|
] });
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
const { data: o, mutate: l, error: i } = At(t), [g, c] = C(null), p = st(),
|
|
302
|
+
const In = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
303
|
+
const { data: o, mutate: l, error: i } = At(t), [g, c] = C(null), p = st(), m = async (s) => {
|
|
304
304
|
if (a && o)
|
|
305
305
|
try {
|
|
306
306
|
await a.core._reactor.pushOps([["restore-attr", s]]), l({
|
|
307
307
|
attrs: o.attrs.filter((b) => b.id !== s) ?? [],
|
|
308
308
|
"grace-period-days": o["grace-period-days"]
|
|
309
309
|
});
|
|
310
|
-
const
|
|
311
|
-
if (
|
|
312
|
-
const b =
|
|
310
|
+
const f = o.attrs.find((b) => b.id === s);
|
|
311
|
+
if (f) {
|
|
312
|
+
const b = Rn(f);
|
|
313
313
|
b && n.setNote(s, b);
|
|
314
314
|
}
|
|
315
|
-
} catch (
|
|
316
|
-
console.error(
|
|
315
|
+
} catch (f) {
|
|
316
|
+
console.error(f), f instanceof La ? f.body?.type === "record-not-unique" ? ie(
|
|
317
317
|
"Attribute already exists. Rename existing attribute first and then try again to restore."
|
|
318
|
-
) : ie(
|
|
318
|
+
) : ie(f.message) : ie("Failed to restore attr");
|
|
319
319
|
}
|
|
320
320
|
}, d = e.attrs.find((s) => s.name === "id")?.id || "unk", u = o?.attrs?.filter(
|
|
321
321
|
(s) => s.metadata?.soft_delete_snapshot?.id_attr_id === d
|
|
322
322
|
);
|
|
323
|
-
return
|
|
323
|
+
return P(() => {
|
|
324
324
|
u?.length === 0 && p.onClose();
|
|
325
325
|
}, [u]), i || !u || u.length === 0 ? null : /* @__PURE__ */ h("div", { className: "pb-2", children: [
|
|
326
326
|
/* @__PURE__ */ r(ft, { className: "pb-2", children: /* @__PURE__ */ h("div", { className: "flex w-full grow items-center justify-center gap-2 text-center opacity-60", children: [
|
|
@@ -328,20 +328,20 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
328
328
|
"Recently Deleted"
|
|
329
329
|
] }) }),
|
|
330
330
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: u?.map((s) => /* @__PURE__ */ r(
|
|
331
|
-
|
|
331
|
+
En,
|
|
332
332
|
{
|
|
333
333
|
isExpanded: g === s.id,
|
|
334
|
-
setIsExpanded: (
|
|
335
|
-
c(
|
|
334
|
+
setIsExpanded: (f) => {
|
|
335
|
+
c(f ? s.id : null);
|
|
336
336
|
},
|
|
337
337
|
attr: s,
|
|
338
338
|
gracePeriodDays: o?.["grace-period-days"] || 2,
|
|
339
|
-
onRestore:
|
|
339
|
+
onRestore: m
|
|
340
340
|
},
|
|
341
341
|
s.id
|
|
342
342
|
)) })
|
|
343
343
|
] });
|
|
344
|
-
}, Kt = "_deleted$",
|
|
344
|
+
}, Kt = "_deleted$", An = (e) => {
|
|
345
345
|
const t = { ...e }, [a, n, o] = e["forward-identity"];
|
|
346
346
|
if (t["forward-identity"] = [
|
|
347
347
|
a,
|
|
@@ -359,8 +359,8 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
359
359
|
}, at = (e) => {
|
|
360
360
|
const t = e.indexOf(Kt);
|
|
361
361
|
return t === -1 ? e : e.slice(t + Kt.length);
|
|
362
|
-
},
|
|
363
|
-
function
|
|
362
|
+
}, Rn = (e) => e && e?.metadata?.soft_delete_snapshot ? e.metadata.soft_delete_snapshot.is_indexed && e.metadata.soft_delete_snapshot.is_required ? "Index and required constraints were dropped after restoring" : e.metadata.soft_delete_snapshot.is_indexed ? "Indexed constraint was dropped after restoring" : e.metadata.soft_delete_snapshot.is_required ? "Required constraint was dropped after restoring" : null : null;
|
|
363
|
+
function Tn({
|
|
364
364
|
db: e,
|
|
365
365
|
onClose: t
|
|
366
366
|
}) {
|
|
@@ -400,11 +400,11 @@ function Rn({
|
|
|
400
400
|
)
|
|
401
401
|
] });
|
|
402
402
|
}
|
|
403
|
-
const
|
|
403
|
+
const On = [
|
|
404
404
|
// Exclude computed fields
|
|
405
405
|
["$files", "url"]
|
|
406
406
|
], Xt = [":", ">", "<"];
|
|
407
|
-
function
|
|
407
|
+
function _n(e) {
|
|
408
408
|
let t = 0, a, n;
|
|
409
409
|
const o = [];
|
|
410
410
|
let l = -1;
|
|
@@ -436,14 +436,14 @@ function Be(e) {
|
|
|
436
436
|
throw new Error("what kind of op is this? " + e);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Dn({
|
|
440
440
|
query: e,
|
|
441
441
|
attrsByName: t,
|
|
442
442
|
stringIndexed: a
|
|
443
443
|
}) {
|
|
444
444
|
if (!e.trim())
|
|
445
445
|
return [];
|
|
446
|
-
const n =
|
|
446
|
+
const n = _n(e), o = n.flatMap(
|
|
447
447
|
(l) => {
|
|
448
448
|
const i = t[l.field];
|
|
449
449
|
if (!i || !l.value)
|
|
@@ -517,7 +517,7 @@ function _n({
|
|
|
517
517
|
]);
|
|
518
518
|
return o;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ln(e, t) {
|
|
521
521
|
if (t.length === e.length) {
|
|
522
522
|
for (let a = 0; a < t.length; a++)
|
|
523
523
|
for (let n = 0; n < 3; n++)
|
|
@@ -527,27 +527,27 @@ function Dn(e, t) {
|
|
|
527
527
|
}
|
|
528
528
|
return !1;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Fn({
|
|
531
531
|
onSearchChange: e,
|
|
532
532
|
attrs: t,
|
|
533
533
|
initialFilters: a = []
|
|
534
534
|
}) {
|
|
535
535
|
const [n, o] = C(""), l = X(a), { attrsByName: i, stringIndexed: g } = le(() => {
|
|
536
|
-
const s = {},
|
|
536
|
+
const s = {}, f = [];
|
|
537
537
|
for (const b of t || [])
|
|
538
|
-
s[b.name] = b, b.isIndex && b.checkedDataType === "string" &&
|
|
539
|
-
return { attrsByName: s, stringIndexed:
|
|
538
|
+
s[b.name] = b, b.isIndex && b.checkedDataType === "string" && f.push(b);
|
|
539
|
+
return { attrsByName: s, stringIndexed: f };
|
|
540
540
|
}, [t]), c = ot(
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
|
|
541
|
+
vn((s) => {
|
|
542
|
+
const f = Dn({ query: s, attrsByName: i, stringIndexed: g });
|
|
543
|
+
Ln(l.current, f) || (l.current = f, e(f));
|
|
544
544
|
}, 80),
|
|
545
545
|
[i, g, l]
|
|
546
|
-
), p = n.indexOf(":") !== -1 ?
|
|
547
|
-
const
|
|
546
|
+
), p = n.indexOf(":") !== -1 ? yn(n.split(" ")) : n, m = (t || []).flatMap((s) => {
|
|
547
|
+
const f = On.some(
|
|
548
548
|
([v, k]) => v === s.namespace && k === s.name
|
|
549
549
|
);
|
|
550
|
-
if (s.type === "ref" ||
|
|
550
|
+
if (s.type === "ref" || f)
|
|
551
551
|
return [];
|
|
552
552
|
const b = [], w = [];
|
|
553
553
|
if (w.push({
|
|
@@ -566,10 +566,10 @@ function Ln({
|
|
|
566
566
|
return b;
|
|
567
567
|
}), d = X(null);
|
|
568
568
|
function u(s) {
|
|
569
|
-
let
|
|
570
|
-
p && s.startsWith(p) ?
|
|
569
|
+
let f;
|
|
570
|
+
p && s.startsWith(p) ? f = `${n}${s.substring(p.length)}` : f = `${n.trim()} ${s}`, o(f), c(f);
|
|
571
571
|
}
|
|
572
|
-
return
|
|
572
|
+
return P(() => {
|
|
573
573
|
a.length > 0 && !n && o(a.map((s) => `${s[0]}:${s[2]}`).join(" "));
|
|
574
574
|
}, [a]), /* @__PURE__ */ h(
|
|
575
575
|
vr,
|
|
@@ -590,10 +590,10 @@ function Ln({
|
|
|
590
590
|
o(s.target.value), c(s.target.value);
|
|
591
591
|
},
|
|
592
592
|
onKeyDown: (s) => {
|
|
593
|
-
if (s.key === "Tab" &&
|
|
593
|
+
if (s.key === "Tab" && m.length) {
|
|
594
594
|
s.preventDefault();
|
|
595
|
-
const
|
|
596
|
-
|
|
595
|
+
const f = d.current || m[0];
|
|
596
|
+
f && u(f.display);
|
|
597
597
|
}
|
|
598
598
|
},
|
|
599
599
|
placeholder: "Filter..."
|
|
@@ -605,7 +605,7 @@ function Ln({
|
|
|
605
605
|
anchor: "bottom start",
|
|
606
606
|
modal: !1,
|
|
607
607
|
className: "z-10 mt-1 w-(--input-width) divide-y overflow-auto rounded-md border border-neutral-300 bg-white shadow-lg dark:divide-neutral-700 dark:border-neutral-700 dark:bg-neutral-800",
|
|
608
|
-
children:
|
|
608
|
+
children: m.map((s, f) => /* @__PURE__ */ r(
|
|
609
609
|
xr,
|
|
610
610
|
{
|
|
611
611
|
value: s.display,
|
|
@@ -615,7 +615,7 @@ function Ln({
|
|
|
615
615
|
),
|
|
616
616
|
children: ({ focus: b }) => (b && (d.current = s), /* @__PURE__ */ r("span", { children: s.display }))
|
|
617
617
|
},
|
|
618
|
-
|
|
618
|
+
f
|
|
619
619
|
))
|
|
620
620
|
}
|
|
621
621
|
)
|
|
@@ -623,14 +623,14 @@ function Ln({
|
|
|
623
623
|
}
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function $n(e) {
|
|
627
627
|
const [, t, a] = e["forward-identity"];
|
|
628
628
|
return e.catalog !== "system" || t === "$users" || t === "$files";
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function zn(e) {
|
|
631
631
|
const t = {}, a = {};
|
|
632
632
|
for (const [o, l] of Object.entries(e))
|
|
633
|
-
|
|
633
|
+
$n(l) && (a[o] = l);
|
|
634
634
|
for (const o of Object.values(a)) {
|
|
635
635
|
const [, l] = o["forward-identity"];
|
|
636
636
|
t[l] || (t[l] = { id: l, name: l, attrs: {} });
|
|
@@ -651,8 +651,8 @@ function $n(e) {
|
|
|
651
651
|
} : void 0
|
|
652
652
|
};
|
|
653
653
|
if (o["forward-identity"]) {
|
|
654
|
-
const [
|
|
655
|
-
s !== !1 && (t[d].attrs[
|
|
654
|
+
const [m, d, u, s] = o["forward-identity"], f = o.id + "-forward";
|
|
655
|
+
s !== !1 && (t[d].attrs[f] = {
|
|
656
656
|
id: o.id,
|
|
657
657
|
isForward: !0,
|
|
658
658
|
namespace: d,
|
|
@@ -676,8 +676,8 @@ function $n(e) {
|
|
|
676
676
|
continue;
|
|
677
677
|
const [i, g, c, p] = o["reverse-identity"];
|
|
678
678
|
if (t[g] && p !== !1) {
|
|
679
|
-
const
|
|
680
|
-
t[g].attrs[
|
|
679
|
+
const m = o.id + "-reverse";
|
|
680
|
+
t[g].attrs[m] = {
|
|
681
681
|
id: o.id,
|
|
682
682
|
isForward: !1,
|
|
683
683
|
namespace: g,
|
|
@@ -704,7 +704,7 @@ function $n(e) {
|
|
|
704
704
|
function Zt(e, t) {
|
|
705
705
|
return e.name === "id" ? -1 : t.name === "id" ? 1 : e.name < t.name ? -1 : e.name > t.name ? 1 : 0;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function jn(e, t) {
|
|
708
708
|
const a = {};
|
|
709
709
|
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o, l]) => {
|
|
710
710
|
switch (o) {
|
|
@@ -717,11 +717,11 @@ function zn(e, t) {
|
|
|
717
717
|
}
|
|
718
718
|
})), a;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
const c = g ? "asc" : "desc", p =
|
|
720
|
+
function Mn(e, t, a, n, o, l, i, g) {
|
|
721
|
+
const c = g ? "asc" : "desc", p = jn(a, n), m = t ? {
|
|
722
722
|
[t.name]: {
|
|
723
723
|
...Object.fromEntries(
|
|
724
|
-
t.attrs.filter((
|
|
724
|
+
t.attrs.filter((f) => f.type === "ref").map((f) => [f.name, { $: { fields: ["id"] } }])
|
|
725
725
|
),
|
|
726
726
|
$: {
|
|
727
727
|
...p ? { where: p } : {},
|
|
@@ -730,7 +730,7 @@ function jn(e, t, a, n, o, l, i, g) {
|
|
|
730
730
|
order: { [i]: c }
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
} : {}, d = e.useQuery(
|
|
733
|
+
} : {}, d = e.useQuery(m), s = e.useQuery(
|
|
734
734
|
t ? {
|
|
735
735
|
[t.name]: {
|
|
736
736
|
$: {
|
|
@@ -745,13 +745,13 @@ function jn(e, t, a, n, o, l, i, g) {
|
|
|
745
745
|
allCount: s
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Bn(e) {
|
|
749
749
|
const [t, a] = C({ namespaces: null, attrs: null });
|
|
750
|
-
return e.useQuery({ ____explorer___: {} }),
|
|
750
|
+
return e.useQuery({ ____explorer___: {} }), P(() => {
|
|
751
751
|
function n(o) {
|
|
752
752
|
a({
|
|
753
753
|
attrs: o,
|
|
754
|
-
namespaces:
|
|
754
|
+
namespaces: zn(o)
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
return e._core._reactor.subscribeAttrs(n);
|
|
@@ -766,16 +766,16 @@ const Qt = (e) => {
|
|
|
766
766
|
} catch (a) {
|
|
767
767
|
return console.error("Failed to parse column visibility", a), {};
|
|
768
768
|
}
|
|
769
|
-
},
|
|
769
|
+
}, Un = (e) => {
|
|
770
770
|
const [t, a] = C(
|
|
771
771
|
Qt(e.appId)
|
|
772
772
|
);
|
|
773
|
-
return
|
|
773
|
+
return P(() => {
|
|
774
774
|
localStorage.setItem(
|
|
775
775
|
`columnVisibility_${e.appId}`,
|
|
776
776
|
JSON.stringify(t)
|
|
777
777
|
);
|
|
778
|
-
}, [e.appId, t]),
|
|
778
|
+
}, [e.appId, t]), P(() => {
|
|
779
779
|
a(Qt(e.appId));
|
|
780
780
|
}, [e.appId]), { visibility: t, setVisibility: a, attrs: e.attrs };
|
|
781
781
|
};
|
|
@@ -788,7 +788,7 @@ function Jt(e) {
|
|
|
788
788
|
} catch {
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Pn(e, t) {
|
|
792
792
|
if (typeof window > "u")
|
|
793
793
|
throw new Error("useLocalStorage/setState needs to run on the client");
|
|
794
794
|
const a = JSON.stringify(t);
|
|
@@ -802,7 +802,7 @@ function Un(e, t) {
|
|
|
802
802
|
new StorageEvent("storage", { key: e, newValue: a })
|
|
803
803
|
);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Ar(e, t) {
|
|
806
806
|
const a = X(Jt(e) || t), n = ot((l) => {
|
|
807
807
|
const i = () => {
|
|
808
808
|
a.current = Jt(e) || t, l();
|
|
@@ -811,11 +811,11 @@ function Pn(e, t) {
|
|
|
811
811
|
window.removeEventListener("storage", i);
|
|
812
812
|
};
|
|
813
813
|
}, []);
|
|
814
|
-
return [
|
|
814
|
+
return [ha(
|
|
815
815
|
n,
|
|
816
816
|
() => a.current,
|
|
817
817
|
() => t
|
|
818
|
-
), (l) =>
|
|
818
|
+
), (l) => Pn(e, l)];
|
|
819
819
|
}
|
|
820
820
|
function qn(e) {
|
|
821
821
|
const t = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
|
|
@@ -839,8 +839,8 @@ const Gn = (e, t) => {
|
|
|
839
839
|
u.style.display = "inline-block", u.style.overflow = "visible", u.style.width = "auto", u.style.maxWidth = "none", u.style.whiteSpace = "nowrap", o.appendChild(u);
|
|
840
840
|
const s = u.scrollWidth;
|
|
841
841
|
return o.removeChild(u), s;
|
|
842
|
-
}), c = g.length > 0 ? Math.max(...g) : 0,
|
|
843
|
-
return Math.min(
|
|
842
|
+
}), c = g.length > 0 ? Math.max(...g) : 0, m = Math.max(i, c) + 12;
|
|
843
|
+
return Math.min(m, t);
|
|
844
844
|
} finally {
|
|
845
845
|
document.body.removeChild(o);
|
|
846
846
|
}
|
|
@@ -868,22 +868,22 @@ const Wn = ({
|
|
|
868
868
|
const {
|
|
869
869
|
attributes: c,
|
|
870
870
|
setActivatorNodeRef: p,
|
|
871
|
-
isDragging:
|
|
871
|
+
isDragging: m,
|
|
872
872
|
listeners: d,
|
|
873
873
|
setNodeRef: u,
|
|
874
874
|
transform: s
|
|
875
875
|
} = wr({
|
|
876
876
|
id: e.column.id,
|
|
877
877
|
disabled: e.id === "select-col"
|
|
878
|
-
}),
|
|
879
|
-
opacity:
|
|
878
|
+
}), f = {
|
|
879
|
+
opacity: m ? 0.8 : 1,
|
|
880
880
|
position: "relative",
|
|
881
881
|
transform: e.id === "select-col" ? void 0 : Sr.Translate.toString(s),
|
|
882
882
|
// translate instead of transform to avoid squishing
|
|
883
883
|
transition: "width transform 0.2s ease-in-out",
|
|
884
884
|
whiteSpace: "nowrap",
|
|
885
885
|
width: e.column.getSize(),
|
|
886
|
-
zIndex:
|
|
886
|
+
zIndex: m ? 1 : 0
|
|
887
887
|
}, w = !!e.column.columnDef?.meta?.sortable, v = typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : "", k = i === v || i === "serverCreatedAt" && v === "id";
|
|
888
888
|
return /* @__PURE__ */ h(
|
|
889
889
|
"div",
|
|
@@ -893,7 +893,7 @@ const Wn = ({
|
|
|
893
893
|
"group relative z-10 h-8 w-full whitespace-nowrap select-none"
|
|
894
894
|
),
|
|
895
895
|
style: {
|
|
896
|
-
...
|
|
896
|
+
...f,
|
|
897
897
|
width: e.getSize() !== 0 ? e.getSize() : void 0
|
|
898
898
|
},
|
|
899
899
|
children: [
|
|
@@ -932,7 +932,7 @@ const Wn = ({
|
|
|
932
932
|
opacity: k ? 1 : void 0,
|
|
933
933
|
fontWeight: k ? "bold" : "normal"
|
|
934
934
|
},
|
|
935
|
-
children: k ? g ? /* @__PURE__ */ r(
|
|
935
|
+
children: k ? g ? /* @__PURE__ */ r(ka, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(xa, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(Sa, { strokeWidth: 3, width: 10 })
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
]
|
|
@@ -970,8 +970,8 @@ const Wn = ({
|
|
|
970
970
|
const t = e.column.getIsResizing(), { history: a } = ut(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: l, transform: i } = wr({
|
|
971
971
|
id: e.column.id,
|
|
972
972
|
disabled: e.column.id === "select-col"
|
|
973
|
-
}), [g, c] = C(!1), { ref: p, isOverflow:
|
|
974
|
-
|
|
973
|
+
}), [g, c] = C(!1), { ref: p, isOverflow: m, setIsOverflow: d } = Hn(), u = (m || Ne(e.getValue())) && !n?.isLink;
|
|
974
|
+
P(() => {
|
|
975
975
|
const w = new ResizeObserver(() => {
|
|
976
976
|
const v = p.current.scrollWidth > p.current.clientWidth || p.current.scrollHeight > p.current.clientHeight;
|
|
977
977
|
d(v);
|
|
@@ -988,7 +988,7 @@ const Wn = ({
|
|
|
988
988
|
transition: "width transform 0.2s ease-in-out",
|
|
989
989
|
width: e.column.getSize(),
|
|
990
990
|
zIndex: o ? 1 : 0
|
|
991
|
-
},
|
|
991
|
+
}, f = n?.disablePadding ?? !1, b = e.getValue();
|
|
992
992
|
return /* @__PURE__ */ h(Ze, { children: [
|
|
993
993
|
" ",
|
|
994
994
|
/* @__PURE__ */ r(Qe, { className: "text-left", asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -999,7 +999,7 @@ const Wn = ({
|
|
|
999
999
|
},
|
|
1000
1000
|
style: {
|
|
1001
1001
|
...s,
|
|
1002
|
-
padding:
|
|
1002
|
+
padding: f ? 0 : "0.5rem"
|
|
1003
1003
|
},
|
|
1004
1004
|
className: O("cursor-default truncate whitespace-nowrap"),
|
|
1005
1005
|
children: /* @__PURE__ */ r(
|
|
@@ -1007,7 +1007,7 @@ const Wn = ({
|
|
|
1007
1007
|
{
|
|
1008
1008
|
className: O(
|
|
1009
1009
|
`h-full min-h-full cursor-pointer td-${e.column.id}`,
|
|
1010
|
-
|
|
1010
|
+
f ? "" : "pr-2"
|
|
1011
1011
|
),
|
|
1012
1012
|
onClick: () => {
|
|
1013
1013
|
if (n?.isLink && n.attr && Array.isArray(b) && b.length > 0) {
|
|
@@ -1020,7 +1020,7 @@ const Wn = ({
|
|
|
1020
1020
|
return;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
n?.copyable && We(
|
|
1023
|
+
n?.copyable && We(Rr(b)) && (c(!0), setTimeout(() => c(!1), 1e3));
|
|
1024
1024
|
},
|
|
1025
1025
|
children: g ? /* @__PURE__ */ r("div", { className: "h-1", children: "Copied!" }) : lt(e.column.columnDef.cell, e.getContext())
|
|
1026
1026
|
}
|
|
@@ -1038,11 +1038,11 @@ const Wn = ({
|
|
|
1038
1038
|
)
|
|
1039
1039
|
] });
|
|
1040
1040
|
};
|
|
1041
|
-
function
|
|
1041
|
+
function Rr(e, t) {
|
|
1042
1042
|
return Ne(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
1043
1043
|
}
|
|
1044
1044
|
function Yn({ data: e, pretty: t }) {
|
|
1045
|
-
const a =
|
|
1045
|
+
const a = Rr(e, t), n = de();
|
|
1046
1046
|
return t && Ne(e) ? /* @__PURE__ */ r(
|
|
1047
1047
|
Lt,
|
|
1048
1048
|
{
|
|
@@ -1062,7 +1062,7 @@ const Kn = ({
|
|
|
1062
1062
|
/* @__PURE__ */ r(
|
|
1063
1063
|
ht,
|
|
1064
1064
|
{
|
|
1065
|
-
icon: /* @__PURE__ */ r(
|
|
1065
|
+
icon: /* @__PURE__ */ r(Na, { width: 16 }),
|
|
1066
1066
|
label: "View Settings",
|
|
1067
1067
|
onClick: () => o(!0)
|
|
1068
1068
|
}
|
|
@@ -1097,7 +1097,7 @@ const Kn = ({
|
|
|
1097
1097
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
1098
1098
|
/* @__PURE__ */ r("div", { children: "Show Dates in Local Time" }),
|
|
1099
1099
|
/* @__PURE__ */ r(
|
|
1100
|
-
|
|
1100
|
+
Kr,
|
|
1101
1101
|
{
|
|
1102
1102
|
onClick: (l) => {
|
|
1103
1103
|
a(!t);
|
|
@@ -1133,29 +1133,29 @@ async function Xn({
|
|
|
1133
1133
|
})
|
|
1134
1134
|
})).json()).job;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Tr(e, t, a, n) {
|
|
1137
1137
|
let o = !1, l = !1, i = 20, g = null;
|
|
1138
|
-
const c = (
|
|
1139
|
-
if (
|
|
1140
|
-
return i = 20, g =
|
|
1138
|
+
const c = (m) => {
|
|
1139
|
+
if (m !== g)
|
|
1140
|
+
return i = 20, g = m, i;
|
|
1141
1141
|
const d = i;
|
|
1142
1142
|
return i = Math.min(1e4, i * 2), d;
|
|
1143
|
-
}, p = async (
|
|
1143
|
+
}, p = async (m) => {
|
|
1144
1144
|
for (; !o && !l; )
|
|
1145
1145
|
try {
|
|
1146
1146
|
const u = await (await fetch(
|
|
1147
1147
|
`${n}/dash/apps/${e}/indexing-jobs/${t}`,
|
|
1148
1148
|
{ headers: { authorization: `Bearer ${a}` } }
|
|
1149
|
-
)).text(),
|
|
1150
|
-
if (f
|
|
1151
|
-
return
|
|
1149
|
+
)).text(), f = JSON.parse(u).job;
|
|
1150
|
+
if (m(f), f.job_status !== "processing" && f.job_status !== "waiting")
|
|
1151
|
+
return f;
|
|
1152
1152
|
await new Promise((b) => setTimeout(b, c(u)));
|
|
1153
1153
|
} catch (d) {
|
|
1154
|
-
console.error("Job polling error:", d), l = !0,
|
|
1154
|
+
console.error("Job polling error:", d), l = !0, m(null, d);
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
1157
|
return {
|
|
1158
|
-
start: async (
|
|
1158
|
+
start: async (m) => p(m),
|
|
1159
1159
|
stop: () => {
|
|
1160
1160
|
o = !0;
|
|
1161
1161
|
}
|
|
@@ -1176,8 +1176,8 @@ const Zn = ({
|
|
|
1176
1176
|
checkedDataType: l,
|
|
1177
1177
|
token: i
|
|
1178
1178
|
}) => {
|
|
1179
|
-
const [g, c] = C({}), [p,
|
|
1180
|
-
|
|
1179
|
+
const [g, c] = C({}), [p, m] = C({}), [d, u] = C({}), s = de();
|
|
1180
|
+
P(() => {
|
|
1181
1181
|
Object.values(p).some(
|
|
1182
1182
|
(x) => x.job_status !== "completed" && x.job_status !== "errored"
|
|
1183
1183
|
) || (a === e.isRequired ? c((x) => ({ ...x, require: void 0 })) : a ? c((x) => ({ ...x, require: { jobType: "required" } })) : a || c((x) => ({
|
|
@@ -1197,10 +1197,10 @@ const Zn = ({
|
|
|
1197
1197
|
type: { jobType: "check-data-type", checkedDataType: l }
|
|
1198
1198
|
})));
|
|
1199
1199
|
}, [a, n, o, l, e, p]);
|
|
1200
|
-
const [
|
|
1201
|
-
|
|
1200
|
+
const [f, b] = C(!1), w = async () => {
|
|
1201
|
+
f || (m({}), b(!0), Object.entries(g).forEach(async ([k, x]) => {
|
|
1202
1202
|
if (!x) return;
|
|
1203
|
-
const
|
|
1203
|
+
const q = await (await fetch(
|
|
1204
1204
|
`${s.apiURI}/dash/apps/${t}/indexing-jobs`,
|
|
1205
1205
|
{
|
|
1206
1206
|
method: "POST",
|
|
@@ -1216,19 +1216,19 @@ const Zn = ({
|
|
|
1216
1216
|
})
|
|
1217
1217
|
}
|
|
1218
1218
|
)).json();
|
|
1219
|
-
|
|
1220
|
-
const B =
|
|
1219
|
+
m((L) => ({ ...L, [k]: q.job })), c((L) => ({ ...L, [k]: void 0 })), b(!1);
|
|
1220
|
+
const B = Tr(
|
|
1221
1221
|
t,
|
|
1222
|
-
|
|
1222
|
+
q.job.id,
|
|
1223
1223
|
i,
|
|
1224
1224
|
s.apiURI
|
|
1225
1225
|
);
|
|
1226
|
-
await B.start((L,
|
|
1227
|
-
if (!
|
|
1228
|
-
const
|
|
1229
|
-
Y /
|
|
1226
|
+
await B.start((L, G) => {
|
|
1227
|
+
if (!G && L) {
|
|
1228
|
+
const H = L.work_estimate ?? 5e4, Y = L.work_completed ?? 0, z = Math.floor(
|
|
1229
|
+
Y / H * 100
|
|
1230
1230
|
);
|
|
1231
|
-
u((j) => ({ ...j, [k]: z })),
|
|
1231
|
+
u((j) => ({ ...j, [k]: z })), m((j) => ({
|
|
1232
1232
|
...j,
|
|
1233
1233
|
[k]: L
|
|
1234
1234
|
}));
|
|
@@ -1297,7 +1297,7 @@ function eo({
|
|
|
1297
1297
|
onClose: n,
|
|
1298
1298
|
isSystemCatalogNs: o
|
|
1299
1299
|
}) {
|
|
1300
|
-
const i = de().appId, { history: g } = ut(), { mutate: c } = pr(), [p,
|
|
1300
|
+
const i = de().appId, { history: g } = ut(), { mutate: c } = pr(), [p, m] = C({ type: "main" }), [d, u] = C(t.name), [s, f] = C(
|
|
1301
1301
|
null
|
|
1302
1302
|
);
|
|
1303
1303
|
async function b() {
|
|
@@ -1308,7 +1308,7 @@ function eo({
|
|
|
1308
1308
|
}
|
|
1309
1309
|
async function w(x) {
|
|
1310
1310
|
if (x.startsWith("$")) {
|
|
1311
|
-
|
|
1311
|
+
f("Namespace name cannot start with $");
|
|
1312
1312
|
return;
|
|
1313
1313
|
}
|
|
1314
1314
|
const _ = Jn(x, t, a);
|
|
@@ -1317,7 +1317,7 @@ function eo({
|
|
|
1317
1317
|
namespace: x
|
|
1318
1318
|
},
|
|
1319
1319
|
!0
|
|
1320
|
-
), oe("Renamed namespace to " + x), u(""),
|
|
1320
|
+
), oe("Renamed namespace to " + x), u(""), m({ type: "main" });
|
|
1321
1321
|
}
|
|
1322
1322
|
const v = Qn(), k = le(() => p.type === "edit" && t.attrs.find(
|
|
1323
1323
|
(x) => x.id === p.attrId && x.isForward === p.isForward
|
|
@@ -1332,7 +1332,7 @@ function eo({
|
|
|
1332
1332
|
"button",
|
|
1333
1333
|
{
|
|
1334
1334
|
onClick: () => {
|
|
1335
|
-
|
|
1335
|
+
m({
|
|
1336
1336
|
type: "main"
|
|
1337
1337
|
});
|
|
1338
1338
|
},
|
|
@@ -1391,9 +1391,9 @@ function eo({
|
|
|
1391
1391
|
{
|
|
1392
1392
|
variant: "subtle",
|
|
1393
1393
|
onClick: () => {
|
|
1394
|
-
|
|
1394
|
+
m({ type: "rename" });
|
|
1395
1395
|
},
|
|
1396
|
-
icon: /* @__PURE__ */ r(
|
|
1396
|
+
icon: /* @__PURE__ */ r(ja, { className: "h-4 w-4 opacity-50" }),
|
|
1397
1397
|
label: "Rename"
|
|
1398
1398
|
}
|
|
1399
1399
|
),
|
|
@@ -1405,7 +1405,7 @@ function eo({
|
|
|
1405
1405
|
title: o ? `The ${t.name} namespace can't be deleted.` : void 0,
|
|
1406
1406
|
size: "mini",
|
|
1407
1407
|
variant: "secondary",
|
|
1408
|
-
onClick: () =>
|
|
1408
|
+
onClick: () => m({ type: "delete" }),
|
|
1409
1409
|
children: [
|
|
1410
1410
|
/* @__PURE__ */ r(it, { className: "inline", height: "1rem" }),
|
|
1411
1411
|
"Delete"
|
|
@@ -1429,7 +1429,7 @@ function eo({
|
|
|
1429
1429
|
size: "mini",
|
|
1430
1430
|
variant: "subtle",
|
|
1431
1431
|
onClick: () => {
|
|
1432
|
-
v.removeNote(x.id),
|
|
1432
|
+
v.removeNote(x.id), m({
|
|
1433
1433
|
type: "edit",
|
|
1434
1434
|
attrId: x.id,
|
|
1435
1435
|
isForward: x.isForward
|
|
@@ -1447,7 +1447,7 @@ function eo({
|
|
|
1447
1447
|
{
|
|
1448
1448
|
size: "mini",
|
|
1449
1449
|
variant: "secondary",
|
|
1450
|
-
onClick: () =>
|
|
1450
|
+
onClick: () => m({ type: "add" }),
|
|
1451
1451
|
children: [
|
|
1452
1452
|
/* @__PURE__ */ r(fr, { className: "inline", height: "12px" }),
|
|
1453
1453
|
"New attribute"
|
|
@@ -1455,7 +1455,7 @@ function eo({
|
|
|
1455
1455
|
}
|
|
1456
1456
|
) }),
|
|
1457
1457
|
/* @__PURE__ */ r(
|
|
1458
|
-
|
|
1458
|
+
In,
|
|
1459
1459
|
{
|
|
1460
1460
|
notes: v,
|
|
1461
1461
|
db: e,
|
|
@@ -1469,14 +1469,14 @@ function eo({
|
|
|
1469
1469
|
db: e,
|
|
1470
1470
|
namespace: t,
|
|
1471
1471
|
namespaces: a,
|
|
1472
|
-
onClose: () =>
|
|
1472
|
+
onClose: () => m({ type: "main" }),
|
|
1473
1473
|
constraints: er({
|
|
1474
1474
|
namespaceName: t.name,
|
|
1475
1475
|
isSystemCatalogNs: o
|
|
1476
1476
|
})
|
|
1477
1477
|
}
|
|
1478
1478
|
) : p.type === "delete" ? /* @__PURE__ */ r(
|
|
1479
|
-
|
|
1479
|
+
Or,
|
|
1480
1480
|
{
|
|
1481
1481
|
name: t.name,
|
|
1482
1482
|
type: "namespace",
|
|
@@ -1488,7 +1488,7 @@ function eo({
|
|
|
1488
1488
|
{
|
|
1489
1489
|
db: e,
|
|
1490
1490
|
attr: k,
|
|
1491
|
-
onClose: () =>
|
|
1491
|
+
onClose: () => m({ type: "main" }),
|
|
1492
1492
|
constraints: er({
|
|
1493
1493
|
namespaceName: t.name,
|
|
1494
1494
|
isSystemCatalogNs: o,
|
|
@@ -1498,7 +1498,7 @@ function eo({
|
|
|
1498
1498
|
) : null
|
|
1499
1499
|
] });
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Or({
|
|
1502
1502
|
name: e,
|
|
1503
1503
|
type: t,
|
|
1504
1504
|
onClose: a,
|
|
@@ -1545,17 +1545,17 @@ function to({
|
|
|
1545
1545
|
onClose: n,
|
|
1546
1546
|
constraints: o
|
|
1547
1547
|
}) {
|
|
1548
|
-
const [l, i] = C(!1), [g, c] = C(!1), [p,
|
|
1548
|
+
const [l, i] = C(!1), [g, c] = C(!1), [p, m] = C(!1), [d, u] = C(!1), [s, f] = C(!1), [b, w] = C(null), [v, k] = C("blob"), [x, _] = C("many-many"), [q, B] = C(() => a.find((A) => A.name !== t.name) ?? a[0]), [L, G] = C(""), [H, Y] = C(t.name), z = x === "one-one" || x === "one-many", j = x === "one-one" || x === "many-one", S = Dr({
|
|
1549
1549
|
attrName: L,
|
|
1550
|
-
reverseAttrName:
|
|
1550
|
+
reverseAttrName: H,
|
|
1551
1551
|
namespaceName: t.name,
|
|
1552
|
-
reverseNamespaceName:
|
|
1552
|
+
reverseNamespaceName: q?.name
|
|
1553
1553
|
}), T = v === "blob" ? L : S.isValidLink;
|
|
1554
|
-
|
|
1555
|
-
if (v !== "ref" || !
|
|
1556
|
-
const A =
|
|
1557
|
-
|
|
1558
|
-
}, [v,
|
|
1554
|
+
P(() => {
|
|
1555
|
+
if (v !== "ref" || !q) return;
|
|
1556
|
+
const A = q.name === t.name;
|
|
1557
|
+
G(A ? "parent" : q.name), Y(A ? "children" : t.name), A && _("one-many");
|
|
1558
|
+
}, [v, q]);
|
|
1559
1559
|
async function I() {
|
|
1560
1560
|
if (v === "blob") {
|
|
1561
1561
|
const D = [["add-attr", {
|
|
@@ -1570,12 +1570,12 @@ function to({
|
|
|
1570
1570
|
}]];
|
|
1571
1571
|
await e._core._reactor.pushOps(D), n();
|
|
1572
1572
|
} else {
|
|
1573
|
-
if (!
|
|
1573
|
+
if (!q) throw new Error("No reverse namespace");
|
|
1574
1574
|
const D = [["add-attr", {
|
|
1575
1575
|
id: Me(),
|
|
1576
1576
|
...It[x],
|
|
1577
1577
|
"forward-identity": [Me(), t.name, L],
|
|
1578
|
-
"reverse-identity": [Me(),
|
|
1578
|
+
"reverse-identity": [Me(), q.name, H],
|
|
1579
1579
|
"value-type": "ref",
|
|
1580
1580
|
"index?": !1,
|
|
1581
1581
|
"required?": l,
|
|
@@ -1593,7 +1593,7 @@ function to({
|
|
|
1593
1593
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1594
1594
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Type" }),
|
|
1595
1595
|
/* @__PURE__ */ r(
|
|
1596
|
-
|
|
1596
|
+
jr,
|
|
1597
1597
|
{
|
|
1598
1598
|
ariaLabel: "Text alignment",
|
|
1599
1599
|
selectedId: v,
|
|
@@ -1608,7 +1608,7 @@ function to({
|
|
|
1608
1608
|
v === "blob" ? /* @__PURE__ */ h(M, { children: [
|
|
1609
1609
|
/* @__PURE__ */ h("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
1610
1610
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Name" }),
|
|
1611
|
-
/* @__PURE__ */ r(Ee, { value: L, onChange: (A) =>
|
|
1611
|
+
/* @__PURE__ */ r(Ee, { value: L, onChange: (A) => G(A) })
|
|
1612
1612
|
] }),
|
|
1613
1613
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
1614
1614
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
@@ -1640,7 +1640,7 @@ function to({
|
|
|
1640
1640
|
ee,
|
|
1641
1641
|
{
|
|
1642
1642
|
checked: p,
|
|
1643
|
-
onChange: (A) =>
|
|
1643
|
+
onChange: (A) => m(A),
|
|
1644
1644
|
label: /* @__PURE__ */ h("span", { children: [
|
|
1645
1645
|
/* @__PURE__ */ r("strong", { children: "Enforce uniqueness" }),
|
|
1646
1646
|
" so no two entities can have the same value for this attribute"
|
|
@@ -1691,7 +1691,7 @@ function to({
|
|
|
1691
1691
|
/* @__PURE__ */ r(
|
|
1692
1692
|
we,
|
|
1693
1693
|
{
|
|
1694
|
-
value:
|
|
1694
|
+
value: q?.id ?? void 0,
|
|
1695
1695
|
options: a.map((A) => ({
|
|
1696
1696
|
label: A.name + (A.name === t.name ? " (self-link)" : ""),
|
|
1697
1697
|
value: A.id
|
|
@@ -1705,14 +1705,14 @@ function to({
|
|
|
1705
1705
|
)
|
|
1706
1706
|
] }),
|
|
1707
1707
|
/* @__PURE__ */ r(
|
|
1708
|
-
|
|
1708
|
+
_r,
|
|
1709
1709
|
{
|
|
1710
1710
|
relationship: x,
|
|
1711
1711
|
attrName: L,
|
|
1712
|
-
reverseAttrName:
|
|
1712
|
+
reverseAttrName: H,
|
|
1713
1713
|
namespaceName: t.name,
|
|
1714
|
-
reverseNamespaceName:
|
|
1715
|
-
setAttrName:
|
|
1714
|
+
reverseNamespaceName: q?.name,
|
|
1715
|
+
setAttrName: G,
|
|
1716
1716
|
setReverseAttrName: Y,
|
|
1717
1717
|
setRelationship: _,
|
|
1718
1718
|
isCascadeAllowed: z,
|
|
@@ -1720,7 +1720,7 @@ function to({
|
|
|
1720
1720
|
setIsCascade: u,
|
|
1721
1721
|
isCascadeReverseAllowed: j,
|
|
1722
1722
|
isCascadeReverse: s,
|
|
1723
|
-
setIsCascadeReverse:
|
|
1723
|
+
setIsCascadeReverse: f,
|
|
1724
1724
|
isRequired: l,
|
|
1725
1725
|
setIsRequired: i,
|
|
1726
1726
|
constraints: o
|
|
@@ -1903,7 +1903,7 @@ function Ke({
|
|
|
1903
1903
|
] });
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function _r({
|
|
1907
1907
|
attrName: e,
|
|
1908
1908
|
reverseAttrName: t,
|
|
1909
1909
|
namespaceName: a,
|
|
@@ -1914,11 +1914,11 @@ function Or({
|
|
|
1914
1914
|
setRelationship: g,
|
|
1915
1915
|
isCascade: c,
|
|
1916
1916
|
setIsCascade: p,
|
|
1917
|
-
isCascadeAllowed:
|
|
1917
|
+
isCascadeAllowed: m,
|
|
1918
1918
|
isCascadeReverse: d,
|
|
1919
1919
|
setIsCascadeReverse: u,
|
|
1920
1920
|
isCascadeReverseAllowed: s,
|
|
1921
|
-
isRequired:
|
|
1921
|
+
isRequired: f,
|
|
1922
1922
|
setIsRequired: b,
|
|
1923
1923
|
constraints: w
|
|
1924
1924
|
}) {
|
|
@@ -2003,8 +2003,8 @@ function Or({
|
|
|
2003
2003
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
2004
2004
|
ee,
|
|
2005
2005
|
{
|
|
2006
|
-
checked:
|
|
2007
|
-
disabled: !
|
|
2006
|
+
checked: m && c,
|
|
2007
|
+
disabled: !m || w.attr.disabled,
|
|
2008
2008
|
onChange: p,
|
|
2009
2009
|
title: w.attr.message,
|
|
2010
2010
|
label: /* @__PURE__ */ h("span", { className: "dark:text-neutral-200", children: [
|
|
@@ -2051,7 +2051,7 @@ function Or({
|
|
|
2051
2051
|
{
|
|
2052
2052
|
disabled: w.require.disabled,
|
|
2053
2053
|
title: w.require.message,
|
|
2054
|
-
checked:
|
|
2054
|
+
checked: f,
|
|
2055
2055
|
onChange: (k) => b(k),
|
|
2056
2056
|
label: /* @__PURE__ */ h("span", { children: [
|
|
2057
2057
|
/* @__PURE__ */ r("strong", { children: "Require this attribute" }),
|
|
@@ -2170,20 +2170,20 @@ async function no({
|
|
|
2170
2170
|
n
|
|
2171
2171
|
);
|
|
2172
2172
|
o(c);
|
|
2173
|
-
const p =
|
|
2173
|
+
const p = Tr(e, c.id, n, i);
|
|
2174
2174
|
l.current = p.stop;
|
|
2175
|
-
const
|
|
2175
|
+
const m = await p.start((d, u) => {
|
|
2176
2176
|
u && ie(`Error while marking ${g} as required.`), d && o(d);
|
|
2177
2177
|
});
|
|
2178
|
-
if (
|
|
2179
|
-
if (
|
|
2178
|
+
if (m) {
|
|
2179
|
+
if (m.job_status === "completed")
|
|
2180
2180
|
return oe(
|
|
2181
2181
|
a ? `Marked ${g} as required.` : `Marked ${g} as optional.`
|
|
2182
2182
|
), "completed";
|
|
2183
|
-
if (
|
|
2183
|
+
if (m.job_status === "canceled")
|
|
2184
2184
|
return ie("Marking required was canceled."), "canceled";
|
|
2185
|
-
if (
|
|
2186
|
-
return
|
|
2185
|
+
if (m.job_status === "errored")
|
|
2186
|
+
return m.error === "invalid-triple-error" ? ie(`Found invalid data while updating ${g}.`) : ie(`Encountered an error while updating ${g}.`), "errored";
|
|
2187
2187
|
}
|
|
2188
2188
|
} catch (c) {
|
|
2189
2189
|
return console.error(c), ie(`Unexpected error while updating ${g}`), "errored";
|
|
@@ -2199,7 +2199,7 @@ const oo = ({
|
|
|
2199
2199
|
attr: i
|
|
2200
2200
|
}) => {
|
|
2201
2201
|
const g = !t || be(t), c = Ye();
|
|
2202
|
-
return
|
|
2202
|
+
return P(() => {
|
|
2203
2203
|
t && me(t) && n(i.checkedDataType || "any");
|
|
2204
2204
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2205
2205
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ h("h6", { className: "text-md font-bold", children: [
|
|
@@ -2274,7 +2274,7 @@ const oo = ({
|
|
|
2274
2274
|
attr: i
|
|
2275
2275
|
}) => {
|
|
2276
2276
|
const g = Ye();
|
|
2277
|
-
return
|
|
2277
|
+
return P(() => {
|
|
2278
2278
|
t && me(t) && n(i.isRequired || !1);
|
|
2279
2279
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2280
2280
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
@@ -2330,7 +2330,7 @@ const oo = ({
|
|
|
2330
2330
|
attr: i
|
|
2331
2331
|
}) => {
|
|
2332
2332
|
const g = Ye();
|
|
2333
|
-
return
|
|
2333
|
+
return P(() => {
|
|
2334
2334
|
t && me(t) && n(i.isIndex);
|
|
2335
2335
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2336
2336
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
@@ -2386,7 +2386,7 @@ const oo = ({
|
|
|
2386
2386
|
attr: i
|
|
2387
2387
|
}) => {
|
|
2388
2388
|
const g = Ye();
|
|
2389
|
-
return
|
|
2389
|
+
return P(() => {
|
|
2390
2390
|
t && me(t) && n(i.isUniq);
|
|
2391
2391
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2392
2392
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
@@ -2439,7 +2439,7 @@ const oo = ({
|
|
|
2439
2439
|
}) => {
|
|
2440
2440
|
const [n, o] = C(
|
|
2441
2441
|
t.isRequired || !1
|
|
2442
|
-
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p,
|
|
2442
|
+
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, m] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: f, isRunning: b, running: w, progress: v } = Zn({
|
|
2443
2443
|
attr: t,
|
|
2444
2444
|
appId: e,
|
|
2445
2445
|
token: d.adminToken,
|
|
@@ -2492,20 +2492,20 @@ const oo = ({
|
|
|
2492
2492
|
pendingJob: s.type,
|
|
2493
2493
|
runningJob: w.type,
|
|
2494
2494
|
value: p,
|
|
2495
|
-
setValue:
|
|
2495
|
+
setValue: m,
|
|
2496
2496
|
disabled: a.attr.disabled,
|
|
2497
2497
|
disabledReason: a.attr.message,
|
|
2498
2498
|
attr: t
|
|
2499
2499
|
}
|
|
2500
2500
|
),
|
|
2501
2501
|
/* @__PURE__ */ r(
|
|
2502
|
-
|
|
2502
|
+
Pr,
|
|
2503
2503
|
{
|
|
2504
2504
|
loading: !!v,
|
|
2505
|
-
percentage: v || 0,
|
|
2505
|
+
percentage: b && v || 0,
|
|
2506
2506
|
variant: u || b ? "primary" : "secondary",
|
|
2507
2507
|
className: "border",
|
|
2508
|
-
onClick: () =>
|
|
2508
|
+
onClick: () => f(),
|
|
2509
2509
|
disabled: !u && !v,
|
|
2510
2510
|
children: b ? "Updating Constraints..." : "Update Constraints"
|
|
2511
2511
|
}
|
|
@@ -2520,18 +2520,18 @@ function uo({
|
|
|
2520
2520
|
}) {
|
|
2521
2521
|
const l = de().appId, { mutate: i } = pr(), [g, c] = C({
|
|
2522
2522
|
type: "main"
|
|
2523
|
-
}), [p,
|
|
2523
|
+
}), [p, m] = C(t.linkConfig.forward.attr), [d, u] = C(
|
|
2524
2524
|
t.linkConfig.reverse?.attr
|
|
2525
|
-
), [s,
|
|
2525
|
+
), [s, f] = C(() => {
|
|
2526
2526
|
const F = `${t.cardinality}-${t.isUniq}`;
|
|
2527
2527
|
return Cr[F];
|
|
2528
2528
|
}), b = de(), [w, v] = C(() => t.onDelete === "cascade"), [k, x] = C(
|
|
2529
2529
|
() => t.onDeleteReverse === "cascade"
|
|
2530
|
-
), [_,
|
|
2530
|
+
), [_, q] = C(t.isRequired || !1), [B, L] = C(_), [G, H] = C(
|
|
2531
2531
|
null
|
|
2532
2532
|
), Y = X(null), z = Ye();
|
|
2533
|
-
|
|
2534
|
-
const j = s === "one-one" || s === "one-many", S = s === "one-one" || s === "many-one", T =
|
|
2533
|
+
P(() => () => Y.current?.(), [Y]);
|
|
2534
|
+
const j = s === "one-one" || s === "one-many", S = s === "one-one" || s === "many-one", T = Dr({
|
|
2535
2535
|
attrName: p,
|
|
2536
2536
|
reverseAttrName: d,
|
|
2537
2537
|
namespaceName: t.linkConfig.forward.namespace,
|
|
@@ -2545,7 +2545,7 @@ function uo({
|
|
|
2545
2545
|
attr: t,
|
|
2546
2546
|
isRequired: _,
|
|
2547
2547
|
authToken: b.adminToken,
|
|
2548
|
-
setIndexingJob:
|
|
2548
|
+
setIndexingJob: H,
|
|
2549
2549
|
stopFetchLoop: Y,
|
|
2550
2550
|
apiURI: b.apiURI
|
|
2551
2551
|
}) != "completed")
|
|
@@ -2595,7 +2595,7 @@ function uo({
|
|
|
2595
2595
|
}, 500), a();
|
|
2596
2596
|
}
|
|
2597
2597
|
return g.type === "delete" ? /* @__PURE__ */ r(
|
|
2598
|
-
|
|
2598
|
+
Or,
|
|
2599
2599
|
{
|
|
2600
2600
|
onConfirm: D,
|
|
2601
2601
|
onClose: a,
|
|
@@ -2652,7 +2652,7 @@ function uo({
|
|
|
2652
2652
|
disabled: n.attr.disabled,
|
|
2653
2653
|
title: n.attr.message,
|
|
2654
2654
|
value: p,
|
|
2655
|
-
onChange: (F) =>
|
|
2655
|
+
onChange: (F) => m(F)
|
|
2656
2656
|
}
|
|
2657
2657
|
),
|
|
2658
2658
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2 rounded-sm py-2", children: /* @__PURE__ */ r(
|
|
@@ -2670,16 +2670,16 @@ function uo({
|
|
|
2670
2670
|
] })
|
|
2671
2671
|
] }) : /* @__PURE__ */ h(ge, { className: "flex flex-col gap-6", children: [
|
|
2672
2672
|
/* @__PURE__ */ r(
|
|
2673
|
-
|
|
2673
|
+
_r,
|
|
2674
2674
|
{
|
|
2675
2675
|
relationship: s,
|
|
2676
2676
|
attrName: p,
|
|
2677
2677
|
reverseAttrName: d ?? "",
|
|
2678
2678
|
namespaceName: t.linkConfig.forward.namespace,
|
|
2679
2679
|
reverseNamespaceName: t.linkConfig.reverse.namespace,
|
|
2680
|
-
setAttrName:
|
|
2680
|
+
setAttrName: m,
|
|
2681
2681
|
setReverseAttrName: u,
|
|
2682
|
-
setRelationship:
|
|
2682
|
+
setRelationship: f,
|
|
2683
2683
|
isCascadeAllowed: j,
|
|
2684
2684
|
isCascade: w,
|
|
2685
2685
|
setIsCascade: v,
|
|
@@ -2687,14 +2687,14 @@ function uo({
|
|
|
2687
2687
|
isCascadeReverse: k,
|
|
2688
2688
|
setIsCascadeReverse: x,
|
|
2689
2689
|
isRequired: _,
|
|
2690
|
-
setIsRequired:
|
|
2690
|
+
setIsRequired: q,
|
|
2691
2691
|
constraints: n
|
|
2692
2692
|
}
|
|
2693
2693
|
),
|
|
2694
2694
|
/* @__PURE__ */ r(
|
|
2695
2695
|
Ke,
|
|
2696
2696
|
{
|
|
2697
|
-
indexingJob:
|
|
2697
|
+
indexingJob: G,
|
|
2698
2698
|
attr: t,
|
|
2699
2699
|
onClose: () => {
|
|
2700
2700
|
z(), a();
|
|
@@ -2719,7 +2719,7 @@ function uo({
|
|
|
2719
2719
|
] })
|
|
2720
2720
|
] });
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function Dr({
|
|
2723
2723
|
reverseNamespaceName: e,
|
|
2724
2724
|
namespaceName: t,
|
|
2725
2725
|
attrName: a,
|
|
@@ -2766,7 +2766,7 @@ function po({
|
|
|
2766
2766
|
const g = i.closest(".overflow-y-auto"), c = g?.scrollTop || 0;
|
|
2767
2767
|
i.style.height = "auto", i.style.height = i.scrollHeight + "px", g && (g.scrollTop = c);
|
|
2768
2768
|
};
|
|
2769
|
-
return
|
|
2769
|
+
return P(() => {
|
|
2770
2770
|
o.current && (l(o.current), o.current && l(o.current));
|
|
2771
2771
|
}, [n.value]), /* @__PURE__ */ r(
|
|
2772
2772
|
"textarea",
|
|
@@ -2796,7 +2796,7 @@ function go(e) {
|
|
|
2796
2796
|
(t) => t.value === "string" || t.value === "number"
|
|
2797
2797
|
) : Ge.filter((t) => t.value === e) : Ge;
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2799
|
+
const Lr = (e) => !!e && typeof e == "object";
|
|
2800
2800
|
function ho(e) {
|
|
2801
2801
|
try {
|
|
2802
2802
|
return JSON.parse(e), !0;
|
|
@@ -2815,7 +2815,7 @@ function mo(e, t) {
|
|
|
2815
2815
|
if (e.checkedDataType)
|
|
2816
2816
|
return e.checkedDataType === "date" ? "string" : e.checkedDataType;
|
|
2817
2817
|
if (t != null) {
|
|
2818
|
-
const a =
|
|
2818
|
+
const a = Lr(t) ? "json" : typeof t, n = Ge.find((o) => o.value === a);
|
|
2819
2819
|
if (n)
|
|
2820
2820
|
return n.value;
|
|
2821
2821
|
}
|
|
@@ -2834,14 +2834,14 @@ function tr(e, t) {
|
|
|
2834
2834
|
if (t === "boolean")
|
|
2835
2835
|
return e === "true";
|
|
2836
2836
|
if (t === "string")
|
|
2837
|
-
return
|
|
2837
|
+
return Lr(e) ? JSON.stringify(e) : String(e);
|
|
2838
2838
|
if (t === "json")
|
|
2839
2839
|
return fo(e);
|
|
2840
2840
|
}
|
|
2841
2841
|
return e;
|
|
2842
2842
|
}
|
|
2843
2843
|
function bo(e) {
|
|
2844
|
-
return
|
|
2844
|
+
return kn(e) ? null : "Invalid UUID.";
|
|
2845
2845
|
}
|
|
2846
2846
|
function rr({
|
|
2847
2847
|
db: e,
|
|
@@ -2864,7 +2864,7 @@ function rr({
|
|
|
2864
2864
|
size: "mini",
|
|
2865
2865
|
variant: "subtle",
|
|
2866
2866
|
onClick: () => o((p) => !p),
|
|
2867
|
-
children: /* @__PURE__ */ r(
|
|
2867
|
+
children: /* @__PURE__ */ r(Ba, { height: 14 })
|
|
2868
2868
|
}
|
|
2869
2869
|
) })
|
|
2870
2870
|
}
|
|
@@ -2880,7 +2880,7 @@ function rr({
|
|
|
2880
2880
|
children: JSON.stringify(g?.[t.name]?.[0] || a, null, 2)
|
|
2881
2881
|
}
|
|
2882
2882
|
),
|
|
2883
|
-
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(
|
|
2883
|
+
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(Ua, { width: 12 }) }) : null
|
|
2884
2884
|
] }) })
|
|
2885
2885
|
] }) });
|
|
2886
2886
|
}
|
|
@@ -2950,12 +2950,12 @@ function vo({
|
|
|
2950
2950
|
onClose: o
|
|
2951
2951
|
}) {
|
|
2952
2952
|
const [l, i] = C(""), g = X(null), { uniqueAttrs: c, filterableAttrs: p } = le(() => {
|
|
2953
|
-
const
|
|
2953
|
+
const f = [], b = [];
|
|
2954
2954
|
for (const [w, v] of Object.entries(t.attrs))
|
|
2955
|
-
v.isUniq && v.name !== "id" && v.type === "blob" &&
|
|
2956
|
-
return { uniqueAttrs:
|
|
2957
|
-
}, [t.attrs]),
|
|
2958
|
-
const
|
|
2955
|
+
v.isUniq && v.name !== "id" && v.type === "blob" && f.push(v), v.isIndex && (v.checkedDataType === "string" || v.checkedDataType === "number") && b.push(v);
|
|
2956
|
+
return { uniqueAttrs: f, filterableAttrs: b };
|
|
2957
|
+
}, [t.attrs]), m = le(() => {
|
|
2958
|
+
const f = [{ $entityIdStartsWith: l }];
|
|
2959
2959
|
let b;
|
|
2960
2960
|
try {
|
|
2961
2961
|
const w = JSON.parse(l);
|
|
@@ -2963,25 +2963,25 @@ function vo({
|
|
|
2963
2963
|
} catch {
|
|
2964
2964
|
}
|
|
2965
2965
|
for (const w of p)
|
|
2966
|
-
w.checkedDataType === "string" && l.trim() &&
|
|
2966
|
+
w.checkedDataType === "string" && l.trim() && f.push({ [w.name]: { $ilike: `%${l.trim()}%` } }), w.checkedDataType === "number" && b != null && f.push({ [w.name]: b });
|
|
2967
2967
|
for (const w of c)
|
|
2968
|
-
w.checkedDataType || (
|
|
2968
|
+
w.checkedDataType || (f.push({ [w.name]: l }), b != null && f.push({ [w.name]: b }));
|
|
2969
2969
|
return {
|
|
2970
2970
|
[t.name]: {
|
|
2971
2971
|
$: {
|
|
2972
2972
|
where: {
|
|
2973
|
-
or:
|
|
2973
|
+
or: f
|
|
2974
2974
|
},
|
|
2975
2975
|
limit: 20
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
2978
|
};
|
|
2979
|
-
}, [t.name, p, l]), { data: d, isLoading: u } = e.useQuery(
|
|
2979
|
+
}, [t.name, p, l]), { data: d, isLoading: u } = e.useQuery(m), s = d?.[t.name]?.filter((f) => !n.has(f.id));
|
|
2980
2980
|
return /* @__PURE__ */ r("div", { className: "relative mt-1 w-full", children: /* @__PURE__ */ h(
|
|
2981
2981
|
vr,
|
|
2982
2982
|
{
|
|
2983
|
-
onChange: (
|
|
2984
|
-
|
|
2983
|
+
onChange: (f) => {
|
|
2984
|
+
f && (a(f), i(""), o());
|
|
2985
2985
|
},
|
|
2986
2986
|
onClose: o,
|
|
2987
2987
|
immediate: !0,
|
|
@@ -2994,8 +2994,8 @@ function vo({
|
|
|
2994
2994
|
size: 32,
|
|
2995
2995
|
className: "w-full rounded-md border border-gray-300 px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800 dark:placeholder:text-neutral-500",
|
|
2996
2996
|
value: l,
|
|
2997
|
-
onChange: (
|
|
2998
|
-
i(
|
|
2997
|
+
onChange: (f) => {
|
|
2998
|
+
i(f.target.value);
|
|
2999
2999
|
},
|
|
3000
3000
|
placeholder: `Search ${t.name}...`
|
|
3001
3001
|
}
|
|
@@ -3007,15 +3007,15 @@ function vo({
|
|
|
3007
3007
|
unmount: !1,
|
|
3008
3008
|
static: !0,
|
|
3009
3009
|
className: "absolute left-0 z-10 mt-1 max-h-[25vh] w-full divide-y overflow-scroll rounded-md border border-gray-300 bg-white shadow-lg empty:invisible dark:border-neutral-700 dark:bg-neutral-800",
|
|
3010
|
-
children: (s || []).map((
|
|
3010
|
+
children: (s || []).map((f) => /* @__PURE__ */ r(
|
|
3011
3011
|
wo,
|
|
3012
3012
|
{
|
|
3013
3013
|
q: l,
|
|
3014
|
-
option:
|
|
3014
|
+
option: f,
|
|
3015
3015
|
uniqueAttrs: c,
|
|
3016
3016
|
filterableAttrs: p
|
|
3017
3017
|
},
|
|
3018
|
-
|
|
3018
|
+
f.id
|
|
3019
3019
|
))
|
|
3020
3020
|
}
|
|
3021
3021
|
),
|
|
@@ -3044,7 +3044,7 @@ function yo({
|
|
|
3044
3044
|
for (const s of t[a.name] || [])
|
|
3045
3045
|
u.add(s.id);
|
|
3046
3046
|
return u;
|
|
3047
|
-
}, [t[a.name], o]),
|
|
3047
|
+
}, [t[a.name], o]), m = a.cardinality, d = t[a.name]?.length > 0;
|
|
3048
3048
|
return /* @__PURE__ */ h(M, { children: [
|
|
3049
3049
|
t[a.name]?.map((u) => {
|
|
3050
3050
|
const s = o?.[u.id]?.action === "unlink";
|
|
@@ -3065,11 +3065,11 @@ function yo({
|
|
|
3065
3065
|
)
|
|
3066
3066
|
] }, u.id);
|
|
3067
3067
|
}),
|
|
3068
|
-
Object.entries(o || {}).map(([u, { action: s, item:
|
|
3068
|
+
Object.entries(o || {}).map(([u, { action: s, item: f }]) => {
|
|
3069
3069
|
if (s === "link")
|
|
3070
3070
|
return /* @__PURE__ */ h("div", { children: [
|
|
3071
3071
|
/* @__PURE__ */ r("code", { children: u }),
|
|
3072
|
-
/* @__PURE__ */ r(rr, { db: e, namespace: n, item:
|
|
3072
|
+
/* @__PURE__ */ r(rr, { db: e, namespace: n, item: f }),
|
|
3073
3073
|
/* @__PURE__ */ r(
|
|
3074
3074
|
V,
|
|
3075
3075
|
{
|
|
@@ -3093,7 +3093,7 @@ function yo({
|
|
|
3093
3093
|
ignoreIds: p,
|
|
3094
3094
|
onClose: () => c(!1)
|
|
3095
3095
|
}
|
|
3096
|
-
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children:
|
|
3096
|
+
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children: m === "many" || !d ? "Add link" : "Replace link" })
|
|
3097
3097
|
] });
|
|
3098
3098
|
}
|
|
3099
3099
|
const ko = (e, t) => t.type === "blob" && e.name !== "$files" || e.name === "$files" && t.type === "blob" && t.name === "path";
|
|
@@ -3119,16 +3119,16 @@ function ar({
|
|
|
3119
3119
|
};
|
|
3120
3120
|
},
|
|
3121
3121
|
{}
|
|
3122
|
-
), [p,
|
|
3122
|
+
), [p, m] = C({
|
|
3123
3123
|
...c,
|
|
3124
3124
|
...o === "add" ? { id: { type: "string", value: qe() } } : {}
|
|
3125
|
-
}), [d, u] = C({}), [s,
|
|
3125
|
+
}), [d, u] = C({}), [s, f] = C({}), [b, w] = C(
|
|
3126
3126
|
i.reduce((S, T) => ({
|
|
3127
3127
|
...S,
|
|
3128
3128
|
[T.name]: o === "edit" ? a[T.name] === null || a[T.name] === void 0 : p[T.name].value === null
|
|
3129
3129
|
}), {})
|
|
3130
3130
|
), v = Object.values(p).some((S) => !!S.error), [k, x] = C(!1), _ = () => {
|
|
3131
|
-
u({}),
|
|
3131
|
+
u({}), m({ ...c }), w(
|
|
3132
3132
|
i.reduce((T, I) => ({
|
|
3133
3133
|
...T,
|
|
3134
3134
|
[I.name]: o === "edit" ? a[I.name] === null || a[I.name] === void 0 : !1
|
|
@@ -3137,9 +3137,9 @@ function ar({
|
|
|
3137
3137
|
const S = {};
|
|
3138
3138
|
i.forEach((T) => {
|
|
3139
3139
|
c[T.name]?.type === "json" && a[T.name] !== void 0 && (S[T.name] = a[T.name] === null ? "null" : JSON.stringify(a[T.name], null, 2));
|
|
3140
|
-
}),
|
|
3141
|
-
},
|
|
3142
|
-
|
|
3140
|
+
}), f(S), x(!1);
|
|
3141
|
+
}, q = (S, T) => {
|
|
3142
|
+
m((I) => {
|
|
3143
3143
|
const A = I[S]?.value;
|
|
3144
3144
|
return {
|
|
3145
3145
|
...I,
|
|
@@ -3148,7 +3148,7 @@ function ar({
|
|
|
3148
3148
|
});
|
|
3149
3149
|
}, B = (S, T, I) => {
|
|
3150
3150
|
const A = I ? I(T) : null;
|
|
3151
|
-
|
|
3151
|
+
m((D) => {
|
|
3152
3152
|
const F = D[S]?.type || "string";
|
|
3153
3153
|
return {
|
|
3154
3154
|
...D,
|
|
@@ -3160,7 +3160,7 @@ function ar({
|
|
|
3160
3160
|
};
|
|
3161
3161
|
});
|
|
3162
3162
|
}, L = (S, T) => {
|
|
3163
|
-
|
|
3163
|
+
f((I) => ({ ...I, [S]: T })), m((I) => {
|
|
3164
3164
|
const A = I[S] || {};
|
|
3165
3165
|
return T === "" ? {
|
|
3166
3166
|
...I,
|
|
@@ -3170,10 +3170,10 @@ function ar({
|
|
|
3170
3170
|
[S]: ho(T) ? { type: "json", value: JSON.parse(T), error: null } : { ...A, type: "json", error: "Invalid JSON" }
|
|
3171
3171
|
};
|
|
3172
3172
|
});
|
|
3173
|
-
},
|
|
3173
|
+
}, G = (S, T) => {
|
|
3174
3174
|
w((A) => ({ ...A, [S]: T }));
|
|
3175
3175
|
const I = p[S]?.type || "string";
|
|
3176
|
-
T ? (
|
|
3176
|
+
T ? (m((A) => ({
|
|
3177
3177
|
...A,
|
|
3178
3178
|
[S]: {
|
|
3179
3179
|
type: I,
|
|
@@ -3181,7 +3181,7 @@ function ar({
|
|
|
3181
3181
|
// set field to null
|
|
3182
3182
|
error: null
|
|
3183
3183
|
}
|
|
3184
|
-
})), I === "json" &&
|
|
3184
|
+
})), I === "json" && f((A) => ({ ...A, [S]: "null" }))) : (m((A) => ({
|
|
3185
3185
|
...A,
|
|
3186
3186
|
[S]: {
|
|
3187
3187
|
type: I,
|
|
@@ -3189,8 +3189,8 @@ function ar({
|
|
|
3189
3189
|
// set to default
|
|
3190
3190
|
error: null
|
|
3191
3191
|
}
|
|
3192
|
-
})), I === "json" &&
|
|
3193
|
-
},
|
|
3192
|
+
})), I === "json" && f((A) => ({ ...A, [S]: "{}" })));
|
|
3193
|
+
}, H = (S, T) => {
|
|
3194
3194
|
u((I) => {
|
|
3195
3195
|
if (a[S.name]?.find((Q) => Q.id === T))
|
|
3196
3196
|
return {
|
|
@@ -3253,7 +3253,7 @@ function ar({
|
|
|
3253
3253
|
), T = a.id || S.id || qe();
|
|
3254
3254
|
delete S.id;
|
|
3255
3255
|
try {
|
|
3256
|
-
let I =
|
|
3256
|
+
let I = Wa[t.name][T];
|
|
3257
3257
|
const A = [], D = [];
|
|
3258
3258
|
for (const [F, Q] of Object.entries(d))
|
|
3259
3259
|
for (const [te, { action: W }] of Object.entries(Q))
|
|
@@ -3292,7 +3292,7 @@ function ar({
|
|
|
3292
3292
|
size: "mini",
|
|
3293
3293
|
variant: "subtle",
|
|
3294
3294
|
onClick: () => B("id", qe()),
|
|
3295
|
-
children: /* @__PURE__ */ r(
|
|
3295
|
+
children: /* @__PURE__ */ r(Ma, { height: 14 })
|
|
3296
3296
|
}
|
|
3297
3297
|
)
|
|
3298
3298
|
] }) }) }),
|
|
@@ -3320,7 +3320,7 @@ function ar({
|
|
|
3320
3320
|
ee,
|
|
3321
3321
|
{
|
|
3322
3322
|
checked: te,
|
|
3323
|
-
onChange: (W) =>
|
|
3323
|
+
onChange: (W) => G(S.name, W),
|
|
3324
3324
|
label: /* @__PURE__ */ r("span", { className: "text-[10px] text-gray-600 uppercase dark:text-neutral-600", children: "null" })
|
|
3325
3325
|
}
|
|
3326
3326
|
) }),
|
|
@@ -3330,7 +3330,7 @@ function ar({
|
|
|
3330
3330
|
className: "w-24 rounded-sm px-2 py-0.5 text-sm",
|
|
3331
3331
|
value: A,
|
|
3332
3332
|
options: go(S.checkedDataType),
|
|
3333
|
-
onChange: (W) =>
|
|
3333
|
+
onChange: (W) => q(
|
|
3334
3334
|
S.name,
|
|
3335
3335
|
W.value
|
|
3336
3336
|
)
|
|
@@ -3343,7 +3343,7 @@ function ar({
|
|
|
3343
3343
|
"button",
|
|
3344
3344
|
{
|
|
3345
3345
|
onClick: () => {
|
|
3346
|
-
|
|
3346
|
+
G(S.name, !1), z(I);
|
|
3347
3347
|
},
|
|
3348
3348
|
className: "flex-1 rounded-xs border border-gray-200 bg-gray-50 px-3 py-1 text-left text-gray-500 italic dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-400",
|
|
3349
3349
|
children: "null"
|
|
@@ -3428,7 +3428,7 @@ function ar({
|
|
|
3428
3428
|
attr: S,
|
|
3429
3429
|
refUpdates: d[S.name],
|
|
3430
3430
|
handleLinkRef: Y,
|
|
3431
|
-
handleUnlinkRef:
|
|
3431
|
+
handleUnlinkRef: H
|
|
3432
3432
|
}
|
|
3433
3433
|
) })
|
|
3434
3434
|
] }, S.name) : null;
|
|
@@ -3461,29 +3461,29 @@ function So(e, t, a, n = !1) {
|
|
|
3461
3461
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3462
3462
|
), l = e.map((c) => {
|
|
3463
3463
|
const p = {};
|
|
3464
|
-
return o.forEach((
|
|
3465
|
-
const d = c[
|
|
3466
|
-
d == null ? p[
|
|
3464
|
+
return o.forEach((m) => {
|
|
3465
|
+
const d = c[m.header];
|
|
3466
|
+
d == null ? p[m.header] = "" : typeof d == "object" ? p[m.header] = JSON.stringify(d) : p[m.header] = d;
|
|
3467
3467
|
}), p;
|
|
3468
|
-
}), i =
|
|
3468
|
+
}), i = tn({
|
|
3469
3469
|
fieldSeparator: ",",
|
|
3470
3470
|
filename: `${a}_export`,
|
|
3471
3471
|
decimalSeparator: ".",
|
|
3472
3472
|
useKeysAsHeaders: !0
|
|
3473
|
-
}), g =
|
|
3474
|
-
n ? (
|
|
3473
|
+
}), g = rn(i)(l);
|
|
3474
|
+
n ? (an(i)(g), oe("CSV file downloaded")) : (We(g.toString()), oe("CSV copied to clipboard"));
|
|
3475
3475
|
}
|
|
3476
3476
|
function No(e, t, a, n = !1) {
|
|
3477
3477
|
if (e.length === 0) return;
|
|
3478
3478
|
const o = t.filter(
|
|
3479
3479
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3480
3480
|
), l = o.map((c) => c.header), i = e.map((c) => o.map((p) => {
|
|
3481
|
-
const
|
|
3482
|
-
return
|
|
3483
|
-
})), g =
|
|
3481
|
+
const m = c[p.header];
|
|
3482
|
+
return m == null ? " " : typeof m == "object" ? JSON.stringify(m) : String(m);
|
|
3483
|
+
})), g = en([l, ...i]);
|
|
3484
3484
|
if (n) {
|
|
3485
|
-
const c = new Blob([g], { type: "text/markdown" }), p = URL.createObjectURL(c),
|
|
3486
|
-
|
|
3485
|
+
const c = new Blob([g], { type: "text/markdown" }), p = URL.createObjectURL(c), m = document.createElement("a");
|
|
3486
|
+
m.href = p, m.download = `${a}_export.md`, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(p), oe("Markdown file downloaded");
|
|
3487
3487
|
} else
|
|
3488
3488
|
We(g), oe("Markdown copied to clipboard");
|
|
3489
3489
|
}
|
|
@@ -3494,8 +3494,8 @@ function Eo(e, t, a, n = !1) {
|
|
|
3494
3494
|
), l = e.map((g) => {
|
|
3495
3495
|
const c = {};
|
|
3496
3496
|
return o.forEach((p) => {
|
|
3497
|
-
const
|
|
3498
|
-
c[p.header] =
|
|
3497
|
+
const m = g[p.header];
|
|
3498
|
+
c[p.header] = m;
|
|
3499
3499
|
}), c;
|
|
3500
3500
|
}), i = JSON.stringify(l, null, 2);
|
|
3501
3501
|
if (n) {
|
|
@@ -3507,9 +3507,7 @@ function Eo(e, t, a, n = !1) {
|
|
|
3507
3507
|
const Co = ({ db: e, namespaces: t }) => {
|
|
3508
3508
|
const { explorerState: a, history: n } = ut(), o = de(), l = a, i = t.find(
|
|
3509
3509
|
(E) => E.id === l.namespace
|
|
3510
|
-
), [g, c] = C(50), [p,
|
|
3511
|
-
X(null);
|
|
3512
|
-
const L = X(null), [q, G] = C({}), Y = X(null), z = i?.name?.startsWith("$") ?? !1, j = i?.name ?? "", S = z && !["$users", "$files"].includes(j), T = q[j] || 0, I = l?.sortAttr || "serverCreatedAt", A = l?.sortAsc ?? !0, D = (E, N) => {
|
|
3510
|
+
), [g, c] = C(50), [p, m] = C([]), [d, u] = C(!1), [s, f] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [q, B] = C(!1), L = X(null), [G, H] = C({}), Y = X(null), z = i?.name?.startsWith("$") ?? !1, j = i?.name ?? "", S = z && !["$users", "$files"].includes(j), T = G[j] || 0, I = l?.sortAttr || "serverCreatedAt", A = l?.sortAsc ?? !0, D = (E, N) => {
|
|
3513
3511
|
const R = ae.options.data.map((pe) => pe.id), $ = R.indexOf(E), U = R.indexOf(L.current), [K, J] = [
|
|
3514
3512
|
Math.min($, U),
|
|
3515
3513
|
Math.max($, U)
|
|
@@ -3522,7 +3520,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3522
3520
|
}
|
|
3523
3521
|
return je;
|
|
3524
3522
|
});
|
|
3525
|
-
}, [F, Q] = C([]), { itemsRes: te, allCount: W } =
|
|
3523
|
+
}, [F, Q] = C([]), { itemsRes: te, allCount: W } = Mn(
|
|
3526
3524
|
e,
|
|
3527
3525
|
i,
|
|
3528
3526
|
l?.where,
|
|
@@ -3535,7 +3533,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3535
3533
|
function ye(E, N) {
|
|
3536
3534
|
return E.filter((R) => N[R.id]);
|
|
3537
3535
|
}
|
|
3538
|
-
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke,
|
|
3536
|
+
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, Xr] = Ar("localDates", !1), Zr = async () => {
|
|
3539
3537
|
try {
|
|
3540
3538
|
if (u(!0), p.length === 0)
|
|
3541
3539
|
return;
|
|
@@ -3546,13 +3544,13 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3546
3544
|
E,
|
|
3547
3545
|
s,
|
|
3548
3546
|
o.apiURI
|
|
3549
|
-
) && (
|
|
3547
|
+
) && (m([]), f(""), Y.current && (Y.current.value = "")), oe("Successfully uploaded!");
|
|
3550
3548
|
} catch (E) {
|
|
3551
3549
|
console.error("Failed to upload:", E), ie(`Failed to upload: ${E.body.message}`);
|
|
3552
3550
|
} finally {
|
|
3553
3551
|
u(!1);
|
|
3554
3552
|
}
|
|
3555
|
-
}, Ft = le(() => re, [re]), De = X(null), [$t, zt] = C(0), [jt, Mt] = C(1), [Bt, Ut] = C(!1),
|
|
3553
|
+
}, Ft = le(() => re, [re]), De = X(null), [$t, zt] = C(0), [jt, Mt] = C(1), [Bt, Ut] = C(!1), Qr = (E) => {
|
|
3556
3554
|
if (ae?.getColumn(E)?.columnDef.header === "id") {
|
|
3557
3555
|
Pt(E, 285);
|
|
3558
3556
|
return;
|
|
@@ -3610,7 +3608,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3610
3608
|
{
|
|
3611
3609
|
className: "translate-y-0.5 opacity-0 transition-opacity group-hover:opacity-100",
|
|
3612
3610
|
onClick: () => _(N.id),
|
|
3613
|
-
children: /* @__PURE__ */ r(
|
|
3611
|
+
children: /* @__PURE__ */ r(Ea, { className: "h-4 w-4 text-neutral-500 dark:text-neutral-400" })
|
|
3614
3612
|
}
|
|
3615
3613
|
)
|
|
3616
3614
|
] })
|
|
@@ -3665,14 +3663,14 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3665
3663
|
if (N.checkedDataType === "boolean")
|
|
3666
3664
|
return R.row.original[N.name] ? "true" : "false";
|
|
3667
3665
|
if (N.checkedDataType === "date") {
|
|
3668
|
-
const $ =
|
|
3666
|
+
const $ = Fa(R.row.original[N.name]);
|
|
3669
3667
|
return ke && $?.toLocaleString() || R.row.original[N.name];
|
|
3670
3668
|
}
|
|
3671
3669
|
return Ne(R.row.original[N.name]) ? /* @__PURE__ */ r(Ao, { data: R.row.original[N.name] }) : R.row.original[N.name];
|
|
3672
3670
|
}
|
|
3673
3671
|
});
|
|
3674
3672
|
}), E;
|
|
3675
|
-
}, [i?.attrs, ke]), [
|
|
3673
|
+
}, [i?.attrs, ke]), [Jr, ea] = C({}), ta = () => {
|
|
3676
3674
|
const E = Object.entries(ae.getState().columnSizing).reduce(
|
|
3677
3675
|
(U, [K, J]) => et.visibility[K] !== !1 ? {
|
|
3678
3676
|
...U,
|
|
@@ -3690,7 +3688,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3690
3688
|
});
|
|
3691
3689
|
}
|
|
3692
3690
|
Ut(!1), ae.setColumnSizing(() => ({ ...E }));
|
|
3693
|
-
},
|
|
3691
|
+
}, ra = "onChange", aa = "ltr", et = Un({
|
|
3694
3692
|
appId: o.appId,
|
|
3695
3693
|
attrs: i?.attrs,
|
|
3696
3694
|
namespaceId: i?.id
|
|
@@ -3711,7 +3709,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3711
3709
|
tt(["select-col", ...N]);
|
|
3712
3710
|
}
|
|
3713
3711
|
}
|
|
3714
|
-
}, [i?.attrs]),
|
|
3712
|
+
}, [i?.attrs]), P(() => {
|
|
3715
3713
|
i?.id && localStorage.setItem(
|
|
3716
3714
|
`order-${i.id}-${o.appId}`,
|
|
3717
3715
|
JSON.stringify(Fe)
|
|
@@ -3720,30 +3718,30 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3720
3718
|
const [xe, Ce] = C(
|
|
3721
3719
|
{}
|
|
3722
3720
|
);
|
|
3723
|
-
|
|
3721
|
+
P(() => {
|
|
3724
3722
|
Ce({}), L.current = null;
|
|
3725
3723
|
}, [i?.id]);
|
|
3726
|
-
const $e = Object.keys(xe).length, Ie = j === "$files" ? $e === 1 ? "file" : "files" : $e === 1 ? "row" : "rows", ae =
|
|
3727
|
-
columnResizeDirection:
|
|
3728
|
-
columnResizeMode:
|
|
3724
|
+
const $e = Object.keys(xe).length, Ie = j === "$files" ? $e === 1 ? "file" : "files" : $e === 1 ? "row" : "rows", ae = ln({
|
|
3725
|
+
columnResizeDirection: aa,
|
|
3726
|
+
columnResizeMode: ra,
|
|
3729
3727
|
onColumnVisibilityChange: et.setVisibility,
|
|
3730
3728
|
columns: Le,
|
|
3731
3729
|
data: Ft,
|
|
3732
3730
|
enableColumnResizing: !0,
|
|
3733
3731
|
enableRowSelection: !0,
|
|
3734
|
-
getCoreRowModel:
|
|
3732
|
+
getCoreRowModel: sn(),
|
|
3735
3733
|
getRowId: (E) => E.id,
|
|
3736
3734
|
onColumnOrderChange: tt,
|
|
3737
3735
|
onRowSelectionChange: Ce,
|
|
3738
|
-
onColumnSizingChange:
|
|
3736
|
+
onColumnSizingChange: ea,
|
|
3739
3737
|
state: {
|
|
3740
|
-
columnSizing:
|
|
3738
|
+
columnSizing: Jr,
|
|
3741
3739
|
columnOrder: Fe,
|
|
3742
3740
|
columnVisibility: et.visibility,
|
|
3743
3741
|
rowSelection: xe
|
|
3744
3742
|
}
|
|
3745
3743
|
}), [Se, mt] = C(!1);
|
|
3746
|
-
|
|
3744
|
+
P(() => {
|
|
3747
3745
|
const E = ($) => {
|
|
3748
3746
|
$.key === "Shift" && mt(!0);
|
|
3749
3747
|
}, N = ($) => {
|
|
@@ -3755,19 +3753,19 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3755
3753
|
window.removeEventListener("keydown", E), window.removeEventListener("keyup", N), window.removeEventListener("blur-sm", R);
|
|
3756
3754
|
};
|
|
3757
3755
|
}, []);
|
|
3758
|
-
const [
|
|
3759
|
-
function
|
|
3756
|
+
const [na, ze] = C(!1);
|
|
3757
|
+
function oa(E) {
|
|
3760
3758
|
const { active: N, over: R } = E;
|
|
3761
3759
|
N && R && N.id !== R.id && N.id !== "select-col" && R.id !== "select-col" && tt(($) => {
|
|
3762
3760
|
const U = $.indexOf(N.id), K = $.indexOf(R.id);
|
|
3763
|
-
return
|
|
3761
|
+
return on($, U, K);
|
|
3764
3762
|
});
|
|
3765
3763
|
}
|
|
3766
3764
|
const bt = le(
|
|
3767
3765
|
() => re.find((E) => E.id === x),
|
|
3768
3766
|
[re.length, x]
|
|
3769
3767
|
);
|
|
3770
|
-
|
|
3768
|
+
P(() => {
|
|
3771
3769
|
const E = De.current;
|
|
3772
3770
|
if (!E) return;
|
|
3773
3771
|
const N = () => {
|
|
@@ -3780,8 +3778,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3780
3778
|
}
|
|
3781
3779
|
const rt = Math.min(J / 30, 1);
|
|
3782
3780
|
zt(rt);
|
|
3783
|
-
const
|
|
3784
|
-
Mt(
|
|
3781
|
+
const ca = Math.min((Ae - J) / 30, 1);
|
|
3782
|
+
Mt(ca);
|
|
3785
3783
|
};
|
|
3786
3784
|
N(), E.addEventListener("scroll", N);
|
|
3787
3785
|
const R = new ResizeObserver(N);
|
|
@@ -3791,11 +3789,11 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3791
3789
|
E.removeEventListener("scroll", N), R.disconnect(), window.removeEventListener("resize", N);
|
|
3792
3790
|
};
|
|
3793
3791
|
}, [i, Ft]);
|
|
3794
|
-
const
|
|
3795
|
-
wt(Ya, {}),
|
|
3792
|
+
const ia = Ya(
|
|
3796
3793
|
wt(Ka, {}),
|
|
3797
|
-
wt(Xa, {})
|
|
3798
|
-
|
|
3794
|
+
wt(Xa, {}),
|
|
3795
|
+
wt(Za, {})
|
|
3796
|
+
), la = n.items.length >= 1, sa = (E) => E === "id" ? 140 : E === "url" ? 120 : E.length * 7.2 + 50;
|
|
3799
3797
|
if (yt(() => {
|
|
3800
3798
|
if (i?.id) {
|
|
3801
3799
|
if (localStorage.getItem(
|
|
@@ -3811,7 +3809,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3811
3809
|
}
|
|
3812
3810
|
const E = De.current?.clientWidth || -1, N = {};
|
|
3813
3811
|
i?.attrs.forEach((U) => {
|
|
3814
|
-
N[U.id + U.name] =
|
|
3812
|
+
N[U.id + U.name] = sa(U.name);
|
|
3815
3813
|
});
|
|
3816
3814
|
const R = Object.values(N).reduce(
|
|
3817
3815
|
(U, K) => U + K,
|
|
@@ -3827,7 +3825,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3827
3825
|
}
|
|
3828
3826
|
}, [De.current, i]), !i)
|
|
3829
3827
|
return null;
|
|
3830
|
-
const
|
|
3828
|
+
const da = i.id;
|
|
3831
3829
|
return /* @__PURE__ */ h(M, { children: [
|
|
3832
3830
|
/* @__PURE__ */ r(
|
|
3833
3831
|
fe,
|
|
@@ -3882,7 +3880,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3882
3880
|
} else
|
|
3883
3881
|
await e.transact(
|
|
3884
3882
|
Object.keys(xe).map(
|
|
3885
|
-
(E) =>
|
|
3883
|
+
(E) => $a[i.name][E].delete()
|
|
3886
3884
|
)
|
|
3887
3885
|
);
|
|
3888
3886
|
} catch (E) {
|
|
@@ -3903,7 +3901,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3903
3901
|
fe,
|
|
3904
3902
|
{
|
|
3905
3903
|
title: "Edit Row",
|
|
3906
|
-
open:
|
|
3904
|
+
open: q,
|
|
3907
3905
|
onClose: () => B(!1),
|
|
3908
3906
|
children: i ? /* @__PURE__ */ r(
|
|
3909
3907
|
ar,
|
|
@@ -3958,7 +3956,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3958
3956
|
/* @__PURE__ */ h("div", { className: "flex flex-1 grow flex-col overflow-hidden bg-white dark:bg-neutral-800", children: [
|
|
3959
3957
|
/* @__PURE__ */ r("div", { className: "flex items-center overflow-hidden border-b border-b-gray-200 dark:border-neutral-700", children: /* @__PURE__ */ h("div", { className: "flex flex-1 flex-col justify-between py-2 md:flex-row md:items-center", children: [
|
|
3960
3958
|
/* @__PURE__ */ h("div", { className: "flex items-center overflow-hidden border-b px-2 py-1 pl-4 md:border-b-0 dark:border-neutral-700", children: [
|
|
3961
|
-
|
|
3959
|
+
la ? /* @__PURE__ */ r(
|
|
3962
3960
|
Ht,
|
|
3963
3961
|
{
|
|
3964
3962
|
className: "mr-4 inline cursor-pointer",
|
|
@@ -4024,13 +4022,13 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4024
4022
|
}
|
|
4025
4023
|
),
|
|
4026
4024
|
/* @__PURE__ */ r(
|
|
4027
|
-
|
|
4025
|
+
Fn,
|
|
4028
4026
|
{
|
|
4029
4027
|
onSearchChange: (E) => Q(E),
|
|
4030
4028
|
attrs: i?.attrs,
|
|
4031
4029
|
initialFilters: l?.filters || []
|
|
4032
4030
|
},
|
|
4033
|
-
|
|
4031
|
+
da
|
|
4034
4032
|
)
|
|
4035
4033
|
] })
|
|
4036
4034
|
] }) }),
|
|
@@ -4044,7 +4042,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4044
4042
|
className: "flex cursor-pointer rounded-sm border border-neutral-200 bg-transparent px-1 pt-1.5 text-sm shadow-xs transition-colors file:rounded-xs file:border-none file:border-neutral-200 file:bg-transparent file:p-2 file:pt-1 file:text-sm file:font-medium file:shadow-none placeholder:text-neutral-500 focus-visible:ring-1 focus-visible:ring-neutral-950 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:file:border-neutral-700 dark:file:text-white dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-400",
|
|
4045
4043
|
onChange: (E) => {
|
|
4046
4044
|
const N = E.target.files;
|
|
4047
|
-
|
|
4045
|
+
m(N), N?.[0] && f(N[0].name);
|
|
4048
4046
|
}
|
|
4049
4047
|
}
|
|
4050
4048
|
),
|
|
@@ -4055,7 +4053,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4055
4053
|
disabled: p.length === 0,
|
|
4056
4054
|
size: "mini",
|
|
4057
4055
|
loading: d,
|
|
4058
|
-
onClick:
|
|
4056
|
+
onClick: Zr,
|
|
4059
4057
|
className: "rounded-sm",
|
|
4060
4058
|
children: d ? "Uploading..." : "Upload file"
|
|
4061
4059
|
}
|
|
@@ -4069,7 +4067,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4069
4067
|
type: "text",
|
|
4070
4068
|
placeholder: "Enter a custom path (optional)",
|
|
4071
4069
|
value: s,
|
|
4072
|
-
onChange: (E) =>
|
|
4070
|
+
onChange: (E) => f(E.target.value),
|
|
4073
4071
|
className: "h-9 w-full rounded-sm border-0 bg-transparent py-1 pr-3 pl-24 text-sm ring-0 placeholder:text-neutral-500 focus:outline-none dark:bg-neutral-800 dark:text-white dark:placeholder:text-neutral-400"
|
|
4074
4072
|
}
|
|
4075
4073
|
)
|
|
@@ -4087,7 +4085,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4087
4085
|
B(!0);
|
|
4088
4086
|
},
|
|
4089
4087
|
children: [
|
|
4090
|
-
/* @__PURE__ */ r(
|
|
4088
|
+
/* @__PURE__ */ r(dn, { width: 12 }),
|
|
4091
4089
|
"Add row"
|
|
4092
4090
|
]
|
|
4093
4091
|
}
|
|
@@ -4135,8 +4133,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4135
4133
|
className: "flex items-center justify-center",
|
|
4136
4134
|
disabled: Z <= 1,
|
|
4137
4135
|
onClick: () => {
|
|
4138
|
-
|
|
4139
|
-
...
|
|
4136
|
+
H({
|
|
4137
|
+
...G,
|
|
4140
4138
|
[i.name]: Math.max(0, T - g)
|
|
4141
4139
|
}), n.push((E) => ({
|
|
4142
4140
|
...E,
|
|
@@ -4164,8 +4162,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4164
4162
|
R === Z ? "bg-neutral-200 dark:bg-neutral-700" : "hover:bg-neutral-100 dark:hover:bg-neutral-800"
|
|
4165
4163
|
),
|
|
4166
4164
|
onClick: () => {
|
|
4167
|
-
|
|
4168
|
-
...
|
|
4165
|
+
H({
|
|
4166
|
+
...G,
|
|
4169
4167
|
[i.name]: N * g
|
|
4170
4168
|
}), n.push(($) => ({
|
|
4171
4169
|
...$,
|
|
@@ -4184,8 +4182,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4184
4182
|
className: "flex items-center justify-center",
|
|
4185
4183
|
disabled: Z >= ce,
|
|
4186
4184
|
onClick: () => {
|
|
4187
|
-
|
|
4188
|
-
...
|
|
4185
|
+
H({
|
|
4186
|
+
...G,
|
|
4189
4187
|
[i.name]: T + g
|
|
4190
4188
|
}), n.push((E) => ({
|
|
4191
4189
|
...E,
|
|
@@ -4193,7 +4191,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4193
4191
|
}));
|
|
4194
4192
|
},
|
|
4195
4193
|
children: /* @__PURE__ */ r(
|
|
4196
|
-
|
|
4194
|
+
cn,
|
|
4197
4195
|
{
|
|
4198
4196
|
className: O("inline", {
|
|
4199
4197
|
"opacity-40": Z >= ce
|
|
@@ -4204,8 +4202,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4204
4202
|
}
|
|
4205
4203
|
),
|
|
4206
4204
|
$e > 0 && /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pl-4", children: [
|
|
4207
|
-
/* @__PURE__ */ h(
|
|
4208
|
-
/* @__PURE__ */ r(
|
|
4205
|
+
/* @__PURE__ */ h(Gr, { open: na, onOpenChange: ze, children: [
|
|
4206
|
+
/* @__PURE__ */ r(Hr, { children: /* @__PURE__ */ h(
|
|
4209
4207
|
V,
|
|
4210
4208
|
{
|
|
4211
4209
|
onClick: () => {
|
|
@@ -4213,7 +4211,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4213
4211
|
},
|
|
4214
4212
|
variant: "secondary",
|
|
4215
4213
|
children: [
|
|
4216
|
-
/* @__PURE__ */ r(
|
|
4214
|
+
/* @__PURE__ */ r(Ca, { width: 14 }),
|
|
4217
4215
|
"Export (",
|
|
4218
4216
|
$e,
|
|
4219
4217
|
")"
|
|
@@ -4221,7 +4219,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4221
4219
|
}
|
|
4222
4220
|
) }),
|
|
4223
4221
|
/* @__PURE__ */ h(
|
|
4224
|
-
|
|
4222
|
+
Wr,
|
|
4225
4223
|
{
|
|
4226
4224
|
className: "z-100",
|
|
4227
4225
|
align: "end",
|
|
@@ -4246,7 +4244,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4246
4244
|
},
|
|
4247
4245
|
className: "flex items-center gap-2",
|
|
4248
4246
|
children: [
|
|
4249
|
-
/* @__PURE__ */ r(
|
|
4247
|
+
/* @__PURE__ */ r(un, { width: 12 }),
|
|
4250
4248
|
Se ? "Download as CSV" : "Copy as CSV"
|
|
4251
4249
|
]
|
|
4252
4250
|
}
|
|
@@ -4269,7 +4267,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4269
4267
|
},
|
|
4270
4268
|
className: "flex items-center gap-2",
|
|
4271
4269
|
children: [
|
|
4272
|
-
/* @__PURE__ */ r(
|
|
4270
|
+
/* @__PURE__ */ r(pn, { width: 12 }),
|
|
4273
4271
|
Se ? "Download as Markdown" : "Copy as Markdown"
|
|
4274
4272
|
]
|
|
4275
4273
|
}
|
|
@@ -4292,13 +4290,13 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4292
4290
|
},
|
|
4293
4291
|
className: "flex items-center gap-2",
|
|
4294
4292
|
children: [
|
|
4295
|
-
/* @__PURE__ */ r(
|
|
4293
|
+
/* @__PURE__ */ r(gn, { width: 12 }),
|
|
4296
4294
|
Se ? "Download as JSON" : "Copy as JSON"
|
|
4297
4295
|
]
|
|
4298
4296
|
}
|
|
4299
4297
|
),
|
|
4300
4298
|
!Se && /* @__PURE__ */ h(M, { children: [
|
|
4301
|
-
/* @__PURE__ */ r(
|
|
4299
|
+
/* @__PURE__ */ r(Vr, {}),
|
|
4302
4300
|
/* @__PURE__ */ r(
|
|
4303
4301
|
Pe,
|
|
4304
4302
|
{
|
|
@@ -4321,7 +4319,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4321
4319
|
className: "px-2",
|
|
4322
4320
|
variant: "destructive",
|
|
4323
4321
|
children: [
|
|
4324
|
-
/* @__PURE__ */ r(
|
|
4322
|
+
/* @__PURE__ */ r(Ia, { width: 14 }),
|
|
4325
4323
|
"Delete Selected Rows"
|
|
4326
4324
|
]
|
|
4327
4325
|
}
|
|
@@ -4332,18 +4330,18 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4332
4330
|
Kn,
|
|
4333
4331
|
{
|
|
4334
4332
|
localDates: ke,
|
|
4335
|
-
setLocalDates:
|
|
4333
|
+
setLocalDates: Xr,
|
|
4336
4334
|
visiblity: et
|
|
4337
4335
|
}
|
|
4338
4336
|
) })
|
|
4339
4337
|
] }),
|
|
4340
4338
|
/* @__PURE__ */ r(
|
|
4341
|
-
|
|
4339
|
+
Qa,
|
|
4342
4340
|
{
|
|
4343
|
-
collisionDetection:
|
|
4344
|
-
modifiers: [
|
|
4345
|
-
onDragEnd:
|
|
4346
|
-
sensors:
|
|
4341
|
+
collisionDetection: Ja,
|
|
4342
|
+
modifiers: [nn],
|
|
4343
|
+
onDragEnd: oa,
|
|
4344
|
+
sensors: ia,
|
|
4347
4345
|
children: /* @__PURE__ */ h("div", { className: "relative flex-1 overflow-hidden bg-neutral-100 dark:bg-neutral-900/50", children: [
|
|
4348
4346
|
!Bt && /* @__PURE__ */ r(
|
|
4349
4347
|
"div",
|
|
@@ -4388,7 +4386,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4388
4386
|
table: ae,
|
|
4389
4387
|
headerGroup: E,
|
|
4390
4388
|
index: R,
|
|
4391
|
-
setMinViableColWidth:
|
|
4389
|
+
setMinViableColWidth: Qr,
|
|
4392
4390
|
onSort: ($, U, K) => {
|
|
4393
4391
|
n.push((J) => ({
|
|
4394
4392
|
...J,
|
|
@@ -4428,8 +4426,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4428
4426
|
className: "opacity-60",
|
|
4429
4427
|
labelDirection: "bottom",
|
|
4430
4428
|
label: "Fill Width",
|
|
4431
|
-
icon: /* @__PURE__ */ r(
|
|
4432
|
-
onClick:
|
|
4429
|
+
icon: /* @__PURE__ */ r(hn, {}),
|
|
4430
|
+
onClick: ta
|
|
4433
4431
|
}
|
|
4434
4432
|
) })
|
|
4435
4433
|
] }) })
|
|
@@ -4446,7 +4444,7 @@ function Ao({ data: e, pretty: t }) {
|
|
|
4446
4444
|
const a = de(), n = Io(e, t);
|
|
4447
4445
|
return t && Ne(e) ? /* @__PURE__ */ r(Lt, { darkMode: a.darkMode, code: n, language: "json" }) : /* @__PURE__ */ r(M, { children: n });
|
|
4448
4446
|
}
|
|
4449
|
-
async function
|
|
4447
|
+
async function Fr(e, t) {
|
|
4450
4448
|
const a = await fetch(e, t), n = await a.json();
|
|
4451
4449
|
return a.status === 200 ? Promise.resolve(n) : Promise.reject({ status: a.status, body: n });
|
|
4452
4450
|
}
|
|
@@ -4457,14 +4455,14 @@ async function Ro(e, t, a, n, o) {
|
|
|
4457
4455
|
authorization: `Bearer ${e}`,
|
|
4458
4456
|
"content-type": a.type
|
|
4459
4457
|
};
|
|
4460
|
-
return await
|
|
4458
|
+
return await Fr(`${o}/dash/apps/${t}/storage/upload`, {
|
|
4461
4459
|
method: "PUT",
|
|
4462
4460
|
headers: l,
|
|
4463
4461
|
body: a
|
|
4464
4462
|
});
|
|
4465
4463
|
}
|
|
4466
4464
|
async function To(e, t, a, n) {
|
|
4467
|
-
const { data: o } = await
|
|
4465
|
+
const { data: o } = await Fr(
|
|
4468
4466
|
`${n}/dash/apps/${t}/storage/files/delete`,
|
|
4469
4467
|
{
|
|
4470
4468
|
method: "POST",
|
|
@@ -4481,75 +4479,91 @@ function Oo(e, t) {
|
|
|
4481
4479
|
const a = (n) => {
|
|
4482
4480
|
e.current && n.target instanceof HTMLElement && !e.current.contains(n.target) && t();
|
|
4483
4481
|
};
|
|
4484
|
-
|
|
4482
|
+
P(() => (document.addEventListener("click", a), () => {
|
|
4485
4483
|
document.removeEventListener("click", a);
|
|
4486
4484
|
}));
|
|
4487
4485
|
}
|
|
4488
4486
|
const _o = ({
|
|
4489
4487
|
namespaces: e,
|
|
4490
|
-
db: t
|
|
4488
|
+
db: t,
|
|
4489
|
+
appId: a
|
|
4491
4490
|
}) => {
|
|
4492
|
-
const
|
|
4493
|
-
(
|
|
4494
|
-
), [
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4491
|
+
const n = de(), o = st(), l = st(), i = e.find(
|
|
4492
|
+
(s) => s.id === n.explorerState?.namespace
|
|
4493
|
+
), [g, c] = C(!1), p = X(null), [m, d] = Ar(
|
|
4494
|
+
`${a}:recentExplorerNamespace`,
|
|
4495
|
+
i?.id || ""
|
|
4496
|
+
);
|
|
4497
|
+
Oo(p, () => {
|
|
4498
|
+
c(!1);
|
|
4499
|
+
}), P(
|
|
4500
|
+
function() {
|
|
4501
|
+
i && d(i.id);
|
|
4502
|
+
},
|
|
4503
|
+
[i, a, e]
|
|
4504
|
+
), P(() => {
|
|
4505
|
+
if (!i && e.length > 0)
|
|
4506
|
+
if (m) {
|
|
4507
|
+
const s = e.find(
|
|
4508
|
+
(f) => f.id === m
|
|
4509
|
+
);
|
|
4510
|
+
s && n.setExplorerState({ namespace: s.id });
|
|
4511
|
+
} else
|
|
4512
|
+
n.setExplorerState({ namespace: e[0].id });
|
|
4513
|
+
}, [i, e, n]);
|
|
4514
|
+
const u = Ir(n.appId);
|
|
4501
4515
|
return /* @__PURE__ */ h(
|
|
4502
4516
|
"div",
|
|
4503
4517
|
{
|
|
4504
4518
|
className: O(
|
|
4505
4519
|
"relative flex w-full flex-1 overflow-hidden border-solid dark:bg-neutral-800",
|
|
4506
|
-
|
|
4520
|
+
n.className
|
|
4507
4521
|
),
|
|
4508
4522
|
children: [
|
|
4509
|
-
/* @__PURE__ */ r(fe, { title: "Recently Deleted Namespaces", ...
|
|
4510
|
-
/* @__PURE__ */ r(fe, { title: "New Namespace", ...
|
|
4511
|
-
|
|
4523
|
+
/* @__PURE__ */ r(fe, { title: "Recently Deleted Namespaces", ...o, children: /* @__PURE__ */ r(Cn, { appId: n.appId, db: t }) }),
|
|
4524
|
+
/* @__PURE__ */ r(fe, { title: "New Namespace", ...l, children: /* @__PURE__ */ r(
|
|
4525
|
+
Tn,
|
|
4512
4526
|
{
|
|
4513
4527
|
db: t,
|
|
4514
|
-
onClose: (
|
|
4515
|
-
|
|
4528
|
+
onClose: (s) => {
|
|
4529
|
+
l.onClose(), s?.name && n.setExplorerState({ namespace: s.name });
|
|
4516
4530
|
}
|
|
4517
4531
|
}
|
|
4518
4532
|
) }),
|
|
4519
4533
|
/* @__PURE__ */ h(
|
|
4520
4534
|
"div",
|
|
4521
4535
|
{
|
|
4522
|
-
ref:
|
|
4536
|
+
ref: p,
|
|
4523
4537
|
className: O(
|
|
4524
4538
|
"absolute top-0 bottom-0 left-0 z-40 flex min-w-[200px] flex-col gap-1 border-r border-solid border-r-gray-200 bg-white p-2 shadow-md md:static md:flex md:shadow-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white",
|
|
4525
4539
|
{
|
|
4526
|
-
hidden: !
|
|
4540
|
+
hidden: !g
|
|
4527
4541
|
}
|
|
4528
4542
|
),
|
|
4529
4543
|
children: [
|
|
4530
4544
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-sm font-semibold dark:text-white", children: [
|
|
4531
4545
|
/* @__PURE__ */ r(
|
|
4532
|
-
|
|
4546
|
+
Pa,
|
|
4533
4547
|
{
|
|
4534
4548
|
height: "1rem",
|
|
4535
4549
|
className: "cursor-pointer md:hidden dark:text-white",
|
|
4536
|
-
onClick: () =>
|
|
4550
|
+
onClick: () => c(!1)
|
|
4537
4551
|
}
|
|
4538
4552
|
),
|
|
4539
4553
|
"Namespaces"
|
|
4540
4554
|
] }),
|
|
4541
4555
|
e ? /* @__PURE__ */ h(M, { children: [
|
|
4542
4556
|
/* @__PURE__ */ r("div", { className: "overflow-x-hidden overflow-y-auto", children: e.length ? /* @__PURE__ */ r(
|
|
4543
|
-
|
|
4557
|
+
zr,
|
|
4544
4558
|
{
|
|
4545
4559
|
className: "text-sm",
|
|
4546
|
-
selectedId:
|
|
4547
|
-
items: e.map((
|
|
4548
|
-
id:
|
|
4549
|
-
label:
|
|
4560
|
+
selectedId: n.explorerState?.namespace,
|
|
4561
|
+
items: e.map((s) => ({
|
|
4562
|
+
id: s.id,
|
|
4563
|
+
label: s.name
|
|
4550
4564
|
})),
|
|
4551
|
-
onChange: (
|
|
4552
|
-
|
|
4565
|
+
onChange: (s) => {
|
|
4566
|
+
n.setExplorerState({ namespace: s.id });
|
|
4553
4567
|
}
|
|
4554
4568
|
}
|
|
4555
4569
|
) : null }),
|
|
@@ -4559,32 +4573,32 @@ const _o = ({
|
|
|
4559
4573
|
variant: "secondary",
|
|
4560
4574
|
size: "mini",
|
|
4561
4575
|
className: "justify-center",
|
|
4562
|
-
onClick:
|
|
4576
|
+
onClick: l.onOpen,
|
|
4563
4577
|
children: [
|
|
4564
4578
|
/* @__PURE__ */ r(fr, { height: "1rem" }),
|
|
4565
4579
|
" Create"
|
|
4566
4580
|
]
|
|
4567
4581
|
}
|
|
4568
4582
|
),
|
|
4569
|
-
|
|
4583
|
+
u.length ? /* @__PURE__ */ h(
|
|
4570
4584
|
V,
|
|
4571
4585
|
{
|
|
4572
4586
|
className: "justify-start gap-2 rounded-sm p-2",
|
|
4573
4587
|
variant: "subtle",
|
|
4574
4588
|
size: "nano",
|
|
4575
|
-
onClick:
|
|
4589
|
+
onClick: o.onOpen,
|
|
4576
4590
|
children: [
|
|
4577
|
-
/* @__PURE__ */ r("span", { className: "rounded-sm bg-gray-200 px-1", children:
|
|
4591
|
+
/* @__PURE__ */ r("span", { className: "rounded-sm bg-gray-200 px-1", children: u.length }),
|
|
4578
4592
|
/* @__PURE__ */ r("span", { children: "Recently Deleted" })
|
|
4579
4593
|
]
|
|
4580
4594
|
}
|
|
4581
4595
|
) : null
|
|
4582
|
-
] }) : /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-col gap-2", children: Array.from({ length: 3 }).map((
|
|
4596
|
+
] }) : /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-col gap-2", children: Array.from({ length: 3 }).map((s, f) => /* @__PURE__ */ r(
|
|
4583
4597
|
"div",
|
|
4584
4598
|
{
|
|
4585
4599
|
className: "h-4 w-full rounded-md bg-neutral-300 dark:bg-neutral-700"
|
|
4586
4600
|
},
|
|
4587
|
-
|
|
4601
|
+
f
|
|
4588
4602
|
)) })
|
|
4589
4603
|
]
|
|
4590
4604
|
}
|
|
@@ -4593,13 +4607,13 @@ const _o = ({
|
|
|
4593
4607
|
"button",
|
|
4594
4608
|
{
|
|
4595
4609
|
className: "flex cursor-pointer items-center gap-1 rounded-sm px-1 py-0.5 select-none hover:bg-neutral-300 dark:hover:bg-neutral-700",
|
|
4596
|
-
onClick: (
|
|
4597
|
-
|
|
4610
|
+
onClick: (s) => {
|
|
4611
|
+
s.stopPropagation(), c(!0);
|
|
4598
4612
|
},
|
|
4599
|
-
children: /* @__PURE__ */ r(
|
|
4613
|
+
children: /* @__PURE__ */ r(qa, { height: "1rem", className: "dark:text-white" })
|
|
4600
4614
|
}
|
|
4601
4615
|
) }),
|
|
4602
|
-
|
|
4616
|
+
n.explorerState && /* @__PURE__ */ r(Co, { namespaces: e, db: t })
|
|
4603
4617
|
]
|
|
4604
4618
|
}
|
|
4605
4619
|
);
|
|
@@ -4609,7 +4623,7 @@ const _o = ({
|
|
|
4609
4623
|
websocketURI: a,
|
|
4610
4624
|
adminToken: n
|
|
4611
4625
|
}) => le(
|
|
4612
|
-
() =>
|
|
4626
|
+
() => Va({
|
|
4613
4627
|
appId: e,
|
|
4614
4628
|
apiURI: t,
|
|
4615
4629
|
websocketURI: a,
|
|
@@ -4636,7 +4650,7 @@ class Lo extends lr {
|
|
|
4636
4650
|
render() {
|
|
4637
4651
|
return this.state.hasError ? /* @__PURE__ */ h("div", { className: "flex h-full w-full flex-1 flex-col items-center justify-center gap-4 bg-white p-6 dark:bg-neutral-800", children: [
|
|
4638
4652
|
/* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
4639
|
-
/* @__PURE__ */ r("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30", children: /* @__PURE__ */ r(
|
|
4653
|
+
/* @__PURE__ */ r("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30", children: /* @__PURE__ */ r(Aa, { className: "h-6 w-6 text-red-600 dark:text-red-400" }) }),
|
|
4640
4654
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
4641
4655
|
/* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: "Something went wrong" }),
|
|
4642
4656
|
/* @__PURE__ */ r("p", { className: "max-w-md text-sm text-gray-500 dark:text-neutral-400", children: "An unexpected error occurred. Please try again or contact support if the problem persists." })
|
|
@@ -4673,8 +4687,8 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4673
4687
|
"useExplorerProps must be used within an Explorer component"
|
|
4674
4688
|
);
|
|
4675
4689
|
return { explorerState: e.props.explorerState, history: e.history };
|
|
4676
|
-
},
|
|
4677
|
-
const n =
|
|
4690
|
+
}, $r = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0, Fo = (e, t, a) => {
|
|
4691
|
+
const n = $r(e);
|
|
4678
4692
|
return {
|
|
4679
4693
|
...e,
|
|
4680
4694
|
apiURI: e.apiURI || Yt.apiURI,
|
|
@@ -4711,20 +4725,20 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4711
4725
|
}
|
|
4712
4726
|
return w;
|
|
4713
4727
|
});
|
|
4714
|
-
}, [l]),
|
|
4728
|
+
}, [l]), m = Do({
|
|
4715
4729
|
appId: n.appId,
|
|
4716
4730
|
apiURI: n.apiURI,
|
|
4717
4731
|
websocketURI: n.websocketURI,
|
|
4718
4732
|
adminToken: n.adminToken
|
|
4719
4733
|
}), d = X(!0), u = X(n.appId);
|
|
4720
|
-
|
|
4734
|
+
P(() => {
|
|
4721
4735
|
if (d.current) {
|
|
4722
4736
|
d.current = !1;
|
|
4723
4737
|
return;
|
|
4724
4738
|
}
|
|
4725
|
-
u.current !== n.appId && (u.current = n.appId, g([]),
|
|
4739
|
+
u.current !== n.appId && (u.current = n.appId, g([]), $r(e) || a(null));
|
|
4726
4740
|
}, [n.appId, e]);
|
|
4727
|
-
const s =
|
|
4741
|
+
const s = Bn(m), f = le(
|
|
4728
4742
|
() => ({
|
|
4729
4743
|
props: n,
|
|
4730
4744
|
history: {
|
|
@@ -4735,7 +4749,14 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4735
4749
|
}),
|
|
4736
4750
|
[n, c, p, i]
|
|
4737
4751
|
), b = n.useShadowDOM ? $o : He.Fragment;
|
|
4738
|
-
return /* @__PURE__ */ r(Rt.Provider, { value:
|
|
4752
|
+
return /* @__PURE__ */ r(Rt.Provider, { value: f, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(Lo, { children: /* @__PURE__ */ r(
|
|
4753
|
+
_o,
|
|
4754
|
+
{
|
|
4755
|
+
appId: n.appId,
|
|
4756
|
+
db: m,
|
|
4757
|
+
namespaces: s.namespaces || []
|
|
4758
|
+
}
|
|
4759
|
+
) }) }) });
|
|
4739
4760
|
}, Tt = sr({
|
|
4740
4761
|
shadowRoot: null,
|
|
4741
4762
|
container: null,
|
|
@@ -4749,18 +4770,18 @@ function pt() {
|
|
|
4749
4770
|
}
|
|
4750
4771
|
const $o = ({ children: e }) => {
|
|
4751
4772
|
const t = X(null), a = X(null), [n, o] = C(null), i = de().darkMode;
|
|
4752
|
-
|
|
4773
|
+
P(() => {
|
|
4753
4774
|
if (t.current && !n)
|
|
4754
4775
|
try {
|
|
4755
4776
|
const c = t.current.attachShadow({ mode: "open" });
|
|
4756
4777
|
a.current = c;
|
|
4757
4778
|
const p = document.createElement("style");
|
|
4758
|
-
p.textContent =
|
|
4759
|
-
const
|
|
4760
|
-
|
|
4779
|
+
p.textContent = Sn;
|
|
4780
|
+
const m = document.createElement("div");
|
|
4781
|
+
m.setAttribute("class", i ? "h-full dark" : "h-full"), c.appendChild(p), c.appendChild(m), o(m);
|
|
4761
4782
|
} catch {
|
|
4762
4783
|
}
|
|
4763
|
-
}, [n]),
|
|
4784
|
+
}, [n]), P(() => {
|
|
4764
4785
|
n && n.setAttribute("class", i ? "h-full dark" : "h-full");
|
|
4765
4786
|
}, [i, n]);
|
|
4766
4787
|
const g = He.useMemo(
|
|
@@ -4771,7 +4792,7 @@ const $o = ({ children: e }) => {
|
|
|
4771
4792
|
}),
|
|
4772
4793
|
[n, i]
|
|
4773
4794
|
);
|
|
4774
|
-
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Tt.Provider, { value: g, children: n ?
|
|
4795
|
+
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Tt.Provider, { value: g, children: n ? _a(e, n) : null }) });
|
|
4775
4796
|
};
|
|
4776
4797
|
function zo({
|
|
4777
4798
|
...e
|
|
@@ -4864,7 +4885,7 @@ function Uo({
|
|
|
4864
4885
|
),
|
|
4865
4886
|
...a,
|
|
4866
4887
|
children: [
|
|
4867
|
-
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(se.ItemIndicator, { children: /* @__PURE__ */ r(
|
|
4888
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(se.ItemIndicator, { children: /* @__PURE__ */ r(Ra, { width: 12, className: "size-4" }) }) }),
|
|
4868
4889
|
/* @__PURE__ */ r(se.ItemText, { children: t })
|
|
4869
4890
|
]
|
|
4870
4891
|
}
|
|
@@ -4883,7 +4904,7 @@ function Po({
|
|
|
4883
4904
|
e
|
|
4884
4905
|
),
|
|
4885
4906
|
...t,
|
|
4886
|
-
children: /* @__PURE__ */ r(
|
|
4907
|
+
children: /* @__PURE__ */ r(Ta, { className: "size-4" })
|
|
4887
4908
|
}
|
|
4888
4909
|
);
|
|
4889
4910
|
}
|
|
@@ -4967,26 +4988,26 @@ var St = function() {
|
|
|
4967
4988
|
*/
|
|
4968
4989
|
clone: function d(u, s) {
|
|
4969
4990
|
s = s || {};
|
|
4970
|
-
var
|
|
4991
|
+
var f, b;
|
|
4971
4992
|
switch (n.util.type(u)) {
|
|
4972
4993
|
case "Object":
|
|
4973
4994
|
if (b = n.util.objId(u), s[b])
|
|
4974
4995
|
return s[b];
|
|
4975
|
-
|
|
4976
|
-
{}, s[b] =
|
|
4996
|
+
f = /** @type {Record<string, any>} */
|
|
4997
|
+
{}, s[b] = f;
|
|
4977
4998
|
for (var w in u)
|
|
4978
|
-
u.hasOwnProperty(w) && (
|
|
4999
|
+
u.hasOwnProperty(w) && (f[w] = d(u[w], s));
|
|
4979
5000
|
return (
|
|
4980
5001
|
/** @type {any} */
|
|
4981
|
-
|
|
5002
|
+
f
|
|
4982
5003
|
);
|
|
4983
5004
|
case "Array":
|
|
4984
|
-
return b = n.util.objId(u), s[b] ? s[b] : (
|
|
5005
|
+
return b = n.util.objId(u), s[b] ? s[b] : (f = [], s[b] = f, /** @type {Array} */
|
|
4985
5006
|
/** @type {any} */
|
|
4986
5007
|
u.forEach(function(v, k) {
|
|
4987
|
-
|
|
5008
|
+
f[k] = d(v, s);
|
|
4988
5009
|
}), /** @type {any} */
|
|
4989
|
-
|
|
5010
|
+
f);
|
|
4990
5011
|
default:
|
|
4991
5012
|
return u;
|
|
4992
5013
|
}
|
|
@@ -5038,11 +5059,11 @@ var St = function() {
|
|
|
5038
5059
|
* @returns {boolean}
|
|
5039
5060
|
*/
|
|
5040
5061
|
isActive: function(d, u, s) {
|
|
5041
|
-
for (var
|
|
5062
|
+
for (var f = "no-" + u; d; ) {
|
|
5042
5063
|
var b = d.classList;
|
|
5043
5064
|
if (b.contains(u))
|
|
5044
5065
|
return !0;
|
|
5045
|
-
if (b.contains(
|
|
5066
|
+
if (b.contains(f))
|
|
5046
5067
|
return !1;
|
|
5047
5068
|
d = d.parentElement;
|
|
5048
5069
|
}
|
|
@@ -5094,8 +5115,8 @@ var St = function() {
|
|
|
5094
5115
|
*/
|
|
5095
5116
|
extend: function(d, u) {
|
|
5096
5117
|
var s = n.util.clone(n.languages[d]);
|
|
5097
|
-
for (var
|
|
5098
|
-
s[
|
|
5118
|
+
for (var f in u)
|
|
5119
|
+
s[f] = u[f];
|
|
5099
5120
|
return s;
|
|
5100
5121
|
},
|
|
5101
5122
|
/**
|
|
@@ -5173,10 +5194,10 @@ var St = function() {
|
|
|
5173
5194
|
* @returns {Grammar} The new grammar object.
|
|
5174
5195
|
* @public
|
|
5175
5196
|
*/
|
|
5176
|
-
insertBefore: function(d, u, s,
|
|
5177
|
-
|
|
5197
|
+
insertBefore: function(d, u, s, f) {
|
|
5198
|
+
f = f || /** @type {any} */
|
|
5178
5199
|
n.languages;
|
|
5179
|
-
var b =
|
|
5200
|
+
var b = f[d], w = {};
|
|
5180
5201
|
for (var v in b)
|
|
5181
5202
|
if (b.hasOwnProperty(v)) {
|
|
5182
5203
|
if (v == u)
|
|
@@ -5184,18 +5205,18 @@ var St = function() {
|
|
|
5184
5205
|
s.hasOwnProperty(k) && (w[k] = s[k]);
|
|
5185
5206
|
s.hasOwnProperty(v) || (w[v] = b[v]);
|
|
5186
5207
|
}
|
|
5187
|
-
var x =
|
|
5188
|
-
return
|
|
5189
|
-
|
|
5208
|
+
var x = f[d];
|
|
5209
|
+
return f[d] = w, n.languages.DFS(n.languages, function(_, q) {
|
|
5210
|
+
q === x && _ != d && (this[_] = w);
|
|
5190
5211
|
}), w;
|
|
5191
5212
|
},
|
|
5192
5213
|
// Traverse a language definition with Depth First Search
|
|
5193
|
-
DFS: function d(u, s,
|
|
5214
|
+
DFS: function d(u, s, f, b) {
|
|
5194
5215
|
b = b || {};
|
|
5195
5216
|
var w = n.util.objId;
|
|
5196
5217
|
for (var v in u)
|
|
5197
5218
|
if (u.hasOwnProperty(v)) {
|
|
5198
|
-
s.call(u, v, u[v],
|
|
5219
|
+
s.call(u, v, u[v], f || v);
|
|
5199
5220
|
var k = u[v], x = n.util.type(k);
|
|
5200
5221
|
x === "Object" && !b[w(k)] ? (b[w(k)] = !0, d(k, s, null, b)) : x === "Array" && !b[w(k)] && (b[w(k)] = !0, d(k, s, v, b));
|
|
5201
5222
|
}
|
|
@@ -5223,12 +5244,12 @@ var St = function() {
|
|
|
5223
5244
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
5224
5245
|
*/
|
|
5225
5246
|
highlight: function(d, u, s) {
|
|
5226
|
-
var
|
|
5247
|
+
var f = {
|
|
5227
5248
|
code: d,
|
|
5228
5249
|
grammar: u,
|
|
5229
5250
|
language: s
|
|
5230
5251
|
};
|
|
5231
|
-
return n.hooks.run("before-tokenize",
|
|
5252
|
+
return n.hooks.run("before-tokenize", f), f.tokens = n.tokenize(f.code, f.grammar), n.hooks.run("after-tokenize", f), o.stringify(n.util.encode(f.tokens), f.language);
|
|
5232
5253
|
},
|
|
5233
5254
|
/**
|
|
5234
5255
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -5257,12 +5278,12 @@ var St = function() {
|
|
|
5257
5278
|
tokenize: function(d, u) {
|
|
5258
5279
|
var s = u.rest;
|
|
5259
5280
|
if (s) {
|
|
5260
|
-
for (var
|
|
5261
|
-
u[
|
|
5281
|
+
for (var f in s)
|
|
5282
|
+
u[f] = s[f];
|
|
5262
5283
|
delete u.rest;
|
|
5263
5284
|
}
|
|
5264
5285
|
var b = new g();
|
|
5265
|
-
return c(b, b.head, d), i(d, b, u, b.head, 0),
|
|
5286
|
+
return c(b, b.head, d), i(d, b, u, b.head, 0), m(b);
|
|
5266
5287
|
},
|
|
5267
5288
|
/**
|
|
5268
5289
|
* @namespace
|
|
@@ -5299,23 +5320,23 @@ var St = function() {
|
|
|
5299
5320
|
run: function(d, u) {
|
|
5300
5321
|
var s = n.hooks.all[d];
|
|
5301
5322
|
if (!(!s || !s.length))
|
|
5302
|
-
for (var
|
|
5323
|
+
for (var f = 0, b; b = s[f++]; )
|
|
5303
5324
|
b(u);
|
|
5304
5325
|
}
|
|
5305
5326
|
},
|
|
5306
5327
|
Token: o
|
|
5307
5328
|
};
|
|
5308
|
-
function o(d, u, s,
|
|
5309
|
-
this.type = d, this.content = u, this.alias = s, this.length = (
|
|
5329
|
+
function o(d, u, s, f) {
|
|
5330
|
+
this.type = d, this.content = u, this.alias = s, this.length = (f || "").length | 0;
|
|
5310
5331
|
}
|
|
5311
5332
|
o.stringify = function d(u, s) {
|
|
5312
5333
|
if (typeof u == "string")
|
|
5313
5334
|
return u;
|
|
5314
5335
|
if (Array.isArray(u)) {
|
|
5315
|
-
var
|
|
5336
|
+
var f = "";
|
|
5316
5337
|
return u.forEach(function(x) {
|
|
5317
|
-
|
|
5318
|
-
}),
|
|
5338
|
+
f += d(x, s);
|
|
5339
|
+
}), f;
|
|
5319
5340
|
}
|
|
5320
5341
|
var b = {
|
|
5321
5342
|
type: u.type,
|
|
@@ -5331,16 +5352,16 @@ var St = function() {
|
|
|
5331
5352
|
v += " " + k + '="' + (b.attributes[k] || "").replace(/"/g, """) + '"';
|
|
5332
5353
|
return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + v + ">" + b.content + "</" + b.tag + ">";
|
|
5333
5354
|
};
|
|
5334
|
-
function l(d, u, s,
|
|
5355
|
+
function l(d, u, s, f) {
|
|
5335
5356
|
d.lastIndex = u;
|
|
5336
5357
|
var b = d.exec(s);
|
|
5337
|
-
if (b &&
|
|
5358
|
+
if (b && f && b[1]) {
|
|
5338
5359
|
var w = b[1].length;
|
|
5339
5360
|
b.index += w, b[0] = b[0].slice(w);
|
|
5340
5361
|
}
|
|
5341
5362
|
return b;
|
|
5342
5363
|
}
|
|
5343
|
-
function i(d, u, s,
|
|
5364
|
+
function i(d, u, s, f, b, w) {
|
|
5344
5365
|
for (var v in s)
|
|
5345
5366
|
if (!(!s.hasOwnProperty(v) || !s[v])) {
|
|
5346
5367
|
var k = s[v];
|
|
@@ -5348,12 +5369,12 @@ var St = function() {
|
|
|
5348
5369
|
for (var x = 0; x < k.length; ++x) {
|
|
5349
5370
|
if (w && w.cause == v + "," + x)
|
|
5350
5371
|
return;
|
|
5351
|
-
var _ = k[x],
|
|
5372
|
+
var _ = k[x], q = _.inside, B = !!_.lookbehind, L = !!_.greedy, G = _.alias;
|
|
5352
5373
|
if (L && !_.pattern.global) {
|
|
5353
|
-
var
|
|
5354
|
-
_.pattern = RegExp(_.pattern.source,
|
|
5374
|
+
var H = _.pattern.toString().match(/[imsuy]*$/)[0];
|
|
5375
|
+
_.pattern = RegExp(_.pattern.source, H + "g");
|
|
5355
5376
|
}
|
|
5356
|
-
for (var Y = _.pattern || _, z =
|
|
5377
|
+
for (var Y = _.pattern || _, z = f.next, j = b; z !== u.tail && !(w && j >= w.reach); j += z.value.length, z = z.next) {
|
|
5357
5378
|
var S = z.value;
|
|
5358
5379
|
if (u.length > d.length)
|
|
5359
5380
|
return;
|
|
@@ -5376,7 +5397,7 @@ var St = function() {
|
|
|
5376
5397
|
w && ye > w.reach && (w.reach = ye);
|
|
5377
5398
|
var ce = z.prev;
|
|
5378
5399
|
W && (ce = c(u, ce, W), j += W.length), p(u, ce, T);
|
|
5379
|
-
var Z = new o(v,
|
|
5400
|
+
var Z = new o(v, q ? n.tokenize(te, q) : te, G, te);
|
|
5380
5401
|
if (z = c(u, ce, Z), re && c(u, z, re), T > 1) {
|
|
5381
5402
|
var ke = {
|
|
5382
5403
|
cause: v + "," + x,
|
|
@@ -5394,15 +5415,15 @@ var St = function() {
|
|
|
5394
5415
|
d.next = u, this.head = d, this.tail = u, this.length = 0;
|
|
5395
5416
|
}
|
|
5396
5417
|
function c(d, u, s) {
|
|
5397
|
-
var
|
|
5398
|
-
return u.next = b,
|
|
5418
|
+
var f = u.next, b = { value: s, prev: u, next: f };
|
|
5419
|
+
return u.next = b, f.prev = b, d.length++, b;
|
|
5399
5420
|
}
|
|
5400
5421
|
function p(d, u, s) {
|
|
5401
|
-
for (var
|
|
5402
|
-
|
|
5403
|
-
u.next =
|
|
5422
|
+
for (var f = u.next, b = 0; b < s && f !== d.tail; b++)
|
|
5423
|
+
f = f.next;
|
|
5424
|
+
u.next = f, f.prev = u, d.length -= b;
|
|
5404
5425
|
}
|
|
5405
|
-
function
|
|
5426
|
+
function m(d) {
|
|
5406
5427
|
for (var u = [], s = d.head.next; s !== d.tail; )
|
|
5407
5428
|
u.push(s.value), s = s.next;
|
|
5408
5429
|
return u;
|
|
@@ -6349,10 +6370,10 @@ y.languages.js = y.languages.javascript;
|
|
|
6349
6370
|
})(y);
|
|
6350
6371
|
(function(e) {
|
|
6351
6372
|
var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
6352
|
-
function a(
|
|
6353
|
-
return
|
|
6373
|
+
function a(m) {
|
|
6374
|
+
return m = m.replace(/<inner>/g, function() {
|
|
6354
6375
|
return t;
|
|
6355
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
6376
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + m + ")");
|
|
6356
6377
|
}
|
|
6357
6378
|
var n = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
6358
6379
|
return n;
|
|
@@ -6575,16 +6596,16 @@ y.languages.js = y.languages.javascript;
|
|
|
6575
6596
|
}
|
|
6576
6597
|
}
|
|
6577
6598
|
}
|
|
6578
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(
|
|
6599
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(m) {
|
|
6579
6600
|
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(d) {
|
|
6580
|
-
|
|
6601
|
+
m !== d && (e.languages.markdown[m].inside.content.inside[d] = e.languages.markdown[d]);
|
|
6581
6602
|
});
|
|
6582
|
-
}), e.hooks.add("after-tokenize", function(
|
|
6583
|
-
if (
|
|
6603
|
+
}), e.hooks.add("after-tokenize", function(m) {
|
|
6604
|
+
if (m.language !== "markdown" && m.language !== "md")
|
|
6584
6605
|
return;
|
|
6585
6606
|
function d(u) {
|
|
6586
6607
|
if (!(!u || typeof u == "string"))
|
|
6587
|
-
for (var s = 0,
|
|
6608
|
+
for (var s = 0, f = u.length; s < f; s++) {
|
|
6588
6609
|
var b = u[s];
|
|
6589
6610
|
if (b.type !== "code") {
|
|
6590
6611
|
d(b.content);
|
|
@@ -6599,11 +6620,11 @@ y.languages.js = y.languages.javascript;
|
|
|
6599
6620
|
}
|
|
6600
6621
|
}
|
|
6601
6622
|
}
|
|
6602
|
-
d(
|
|
6603
|
-
}), e.hooks.add("wrap", function(
|
|
6604
|
-
if (
|
|
6605
|
-
for (var d = "", u = 0, s =
|
|
6606
|
-
var
|
|
6623
|
+
d(m.tokens);
|
|
6624
|
+
}), e.hooks.add("wrap", function(m) {
|
|
6625
|
+
if (m.type === "code-block") {
|
|
6626
|
+
for (var d = "", u = 0, s = m.classes.length; u < s; u++) {
|
|
6627
|
+
var f = m.classes[u], b = /language-(.+)/.exec(f);
|
|
6607
6628
|
if (b) {
|
|
6608
6629
|
d = b[1];
|
|
6609
6630
|
break;
|
|
@@ -6611,10 +6632,10 @@ y.languages.js = y.languages.javascript;
|
|
|
6611
6632
|
}
|
|
6612
6633
|
var w = e.languages[d];
|
|
6613
6634
|
if (w)
|
|
6614
|
-
|
|
6635
|
+
m.content = e.highlight(p(m.content), w, d);
|
|
6615
6636
|
else if (d && d !== "none" && e.plugins.autoloader) {
|
|
6616
6637
|
var v = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
6617
|
-
|
|
6638
|
+
m.attributes.id = v, e.plugins.autoloader.loadLanguages(d, function() {
|
|
6618
6639
|
var k = document.getElementById(v);
|
|
6619
6640
|
k && (k.innerHTML = e.highlight(k.textContent, e.languages[d], d));
|
|
6620
6641
|
});
|
|
@@ -6627,12 +6648,12 @@ y.languages.js = y.languages.javascript;
|
|
|
6627
6648
|
gt: ">",
|
|
6628
6649
|
quot: '"'
|
|
6629
6650
|
}, c = String.fromCodePoint || String.fromCharCode;
|
|
6630
|
-
function p(
|
|
6631
|
-
var d =
|
|
6651
|
+
function p(m) {
|
|
6652
|
+
var d = m.replace(i, "");
|
|
6632
6653
|
return d = d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, s) {
|
|
6633
6654
|
if (s = s.toLowerCase(), s[0] === "#") {
|
|
6634
|
-
var
|
|
6635
|
-
return s[1] === "x" ?
|
|
6655
|
+
var f;
|
|
6656
|
+
return s[1] === "x" ? f = parseInt(s.slice(2), 16) : f = Number(s.slice(1)), c(f);
|
|
6636
6657
|
} else {
|
|
6637
6658
|
var b = g[s];
|
|
6638
6659
|
return b || u;
|
|
@@ -6742,22 +6763,22 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6742
6763
|
var p = [];
|
|
6743
6764
|
if (l(["definition-mutation", "punctuation"]) && o(1).content === "(") {
|
|
6744
6765
|
n += 2;
|
|
6745
|
-
var
|
|
6746
|
-
if (
|
|
6766
|
+
var m = i(/^\($/, /^\)$/);
|
|
6767
|
+
if (m === -1)
|
|
6747
6768
|
continue;
|
|
6748
|
-
for (; n <
|
|
6769
|
+
for (; n < m; n++) {
|
|
6749
6770
|
var d = o(0);
|
|
6750
6771
|
d.type === "variable" && (g(d, "variable-input"), p.push(d.content));
|
|
6751
6772
|
}
|
|
6752
|
-
n =
|
|
6773
|
+
n = m + 1;
|
|
6753
6774
|
}
|
|
6754
6775
|
if (l(["punctuation", "property-query"]) && o(0).content === "{" && (n++, g(o(0), "property-mutation"), p.length > 0)) {
|
|
6755
6776
|
var u = i(/^\{$/, /^\}$/);
|
|
6756
6777
|
if (u === -1)
|
|
6757
6778
|
continue;
|
|
6758
6779
|
for (var s = n; s < u; s++) {
|
|
6759
|
-
var
|
|
6760
|
-
|
|
6780
|
+
var f = a[s];
|
|
6781
|
+
f.type === "variable" && p.indexOf(f.content) >= 0 && g(f, "variable-input");
|
|
6761
6782
|
}
|
|
6762
6783
|
}
|
|
6763
6784
|
}
|
|
@@ -6795,10 +6816,10 @@ y.languages.sql = {
|
|
|
6795
6816
|
};
|
|
6796
6817
|
(function(e) {
|
|
6797
6818
|
var t = e.languages.javascript["template-string"], a = t.pattern.source, n = t.inside.interpolation, o = n.inside["interpolation-punctuation"], l = n.pattern.source;
|
|
6798
|
-
function i(s,
|
|
6819
|
+
function i(s, f) {
|
|
6799
6820
|
if (e.languages[s])
|
|
6800
6821
|
return {
|
|
6801
|
-
pattern: RegExp("((?:" +
|
|
6822
|
+
pattern: RegExp("((?:" + f + ")\\s*)" + a),
|
|
6802
6823
|
lookbehind: !0,
|
|
6803
6824
|
greedy: !0,
|
|
6804
6825
|
inside: {
|
|
@@ -6833,28 +6854,28 @@ y.languages.sql = {
|
|
|
6833
6854
|
// vanilla template string
|
|
6834
6855
|
t
|
|
6835
6856
|
].filter(Boolean);
|
|
6836
|
-
function g(s,
|
|
6837
|
-
return "___" +
|
|
6857
|
+
function g(s, f) {
|
|
6858
|
+
return "___" + f.toUpperCase() + "_" + s + "___";
|
|
6838
6859
|
}
|
|
6839
|
-
function c(s,
|
|
6860
|
+
function c(s, f, b) {
|
|
6840
6861
|
var w = {
|
|
6841
6862
|
code: s,
|
|
6842
|
-
grammar:
|
|
6863
|
+
grammar: f,
|
|
6843
6864
|
language: b
|
|
6844
6865
|
};
|
|
6845
6866
|
return e.hooks.run("before-tokenize", w), w.tokens = e.tokenize(w.code, w.grammar), e.hooks.run("after-tokenize", w), w.tokens;
|
|
6846
6867
|
}
|
|
6847
6868
|
function p(s) {
|
|
6848
|
-
var
|
|
6849
|
-
|
|
6850
|
-
var b = e.tokenize(s,
|
|
6869
|
+
var f = {};
|
|
6870
|
+
f["interpolation-punctuation"] = o;
|
|
6871
|
+
var b = e.tokenize(s, f);
|
|
6851
6872
|
if (b.length === 3) {
|
|
6852
6873
|
var w = [1, 1];
|
|
6853
6874
|
w.push.apply(w, c(b[1], e.languages.javascript, "javascript")), b.splice.apply(b, w);
|
|
6854
6875
|
}
|
|
6855
6876
|
return new e.Token("interpolation", b, n.alias, s);
|
|
6856
6877
|
}
|
|
6857
|
-
function
|
|
6878
|
+
function m(s, f, b) {
|
|
6858
6879
|
var w = e.tokenize(s, {
|
|
6859
6880
|
interpolation: {
|
|
6860
6881
|
pattern: RegExp(l),
|
|
@@ -6863,20 +6884,20 @@ y.languages.sql = {
|
|
|
6863
6884
|
}), v = 0, k = {}, x = w.map(function(L) {
|
|
6864
6885
|
if (typeof L == "string")
|
|
6865
6886
|
return L;
|
|
6866
|
-
for (var
|
|
6887
|
+
for (var G = L.content, H; s.indexOf(H = g(v++, b)) !== -1; )
|
|
6867
6888
|
;
|
|
6868
|
-
return k[
|
|
6869
|
-
}).join(""), _ = c(x,
|
|
6889
|
+
return k[H] = G, H;
|
|
6890
|
+
}).join(""), _ = c(x, f, b), q = Object.keys(k);
|
|
6870
6891
|
v = 0;
|
|
6871
6892
|
function B(L) {
|
|
6872
|
-
for (var
|
|
6873
|
-
if (v >=
|
|
6893
|
+
for (var G = 0; G < L.length; G++) {
|
|
6894
|
+
if (v >= q.length)
|
|
6874
6895
|
return;
|
|
6875
|
-
var
|
|
6876
|
-
if (typeof
|
|
6877
|
-
var Y =
|
|
6896
|
+
var H = L[G];
|
|
6897
|
+
if (typeof H == "string" || typeof H.content == "string") {
|
|
6898
|
+
var Y = q[v], z = typeof H == "string" ? H : (
|
|
6878
6899
|
/** @type {string} */
|
|
6879
|
-
|
|
6900
|
+
H.content
|
|
6880
6901
|
), j = z.indexOf(Y);
|
|
6881
6902
|
if (j !== -1) {
|
|
6882
6903
|
++v;
|
|
@@ -6885,10 +6906,10 @@ y.languages.sql = {
|
|
|
6885
6906
|
var D = [I];
|
|
6886
6907
|
B(D), A.push.apply(A, D);
|
|
6887
6908
|
}
|
|
6888
|
-
typeof
|
|
6909
|
+
typeof H == "string" ? (L.splice.apply(L, [G, 1].concat(A)), G += A.length - 1) : H.content = A;
|
|
6889
6910
|
}
|
|
6890
6911
|
} else {
|
|
6891
|
-
var F =
|
|
6912
|
+
var F = H.content;
|
|
6892
6913
|
Array.isArray(F) ? B(F) : B([F]);
|
|
6893
6914
|
}
|
|
6894
6915
|
}
|
|
@@ -6906,29 +6927,29 @@ y.languages.sql = {
|
|
|
6906
6927
|
e.hooks.add("after-tokenize", function(s) {
|
|
6907
6928
|
if (!(s.language in d))
|
|
6908
6929
|
return;
|
|
6909
|
-
function
|
|
6930
|
+
function f(b) {
|
|
6910
6931
|
for (var w = 0, v = b.length; w < v; w++) {
|
|
6911
6932
|
var k = b[w];
|
|
6912
6933
|
if (typeof k != "string") {
|
|
6913
6934
|
var x = k.content;
|
|
6914
6935
|
if (!Array.isArray(x)) {
|
|
6915
|
-
typeof x != "string" &&
|
|
6936
|
+
typeof x != "string" && f([x]);
|
|
6916
6937
|
continue;
|
|
6917
6938
|
}
|
|
6918
6939
|
if (k.type === "template-string") {
|
|
6919
6940
|
var _ = x[1];
|
|
6920
6941
|
if (x.length === 3 && typeof _ != "string" && _.type === "embedded-code") {
|
|
6921
|
-
var
|
|
6922
|
-
if (!
|
|
6942
|
+
var q = u(_), B = _.alias, L = Array.isArray(B) ? B[0] : B, G = e.languages[L];
|
|
6943
|
+
if (!G)
|
|
6923
6944
|
continue;
|
|
6924
|
-
x[1] =
|
|
6945
|
+
x[1] = m(q, G, L);
|
|
6925
6946
|
}
|
|
6926
6947
|
} else
|
|
6927
|
-
|
|
6948
|
+
f(x);
|
|
6928
6949
|
}
|
|
6929
6950
|
}
|
|
6930
6951
|
}
|
|
6931
|
-
|
|
6952
|
+
f(s.tokens);
|
|
6932
6953
|
});
|
|
6933
6954
|
function u(s) {
|
|
6934
6955
|
return typeof s == "string" ? s : Array.isArray(s) ? s.map(u).join("") : u(s.content);
|
|
@@ -7104,14 +7125,14 @@ y.languages.sql = {
|
|
|
7104
7125
|
var i = function(c) {
|
|
7105
7126
|
return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(i).join("") : "";
|
|
7106
7127
|
}, g = function(c) {
|
|
7107
|
-
for (var p = [],
|
|
7108
|
-
var d = c[
|
|
7128
|
+
for (var p = [], m = 0; m < c.length; m++) {
|
|
7129
|
+
var d = c[m], u = !1;
|
|
7109
7130
|
if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? p.length > 0 && p[p.length - 1].tagName === i(d.content[0].content[1]) && p.pop() : d.content[d.content.length - 1].content === "/>" || p.push({
|
|
7110
7131
|
tagName: i(d.content[0].content[1]),
|
|
7111
7132
|
openedBraces: 0
|
|
7112
7133
|
}) : p.length > 0 && d.type === "punctuation" && d.content === "{" ? p[p.length - 1].openedBraces++ : p.length > 0 && p[p.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? p[p.length - 1].openedBraces-- : u = !0), (u || typeof d == "string") && p.length > 0 && p[p.length - 1].openedBraces === 0) {
|
|
7113
7134
|
var s = i(d);
|
|
7114
|
-
|
|
7135
|
+
m < c.length - 1 && (typeof c[m + 1] == "string" || c[m + 1].type === "plain-text") && (s += i(c[m + 1]), c.splice(m + 1, 1)), m > 0 && (typeof c[m - 1] == "string" || c[m - 1].type === "plain-text") && (s = i(c[m - 1]) + s, c.splice(m - 1, 1), m--), c[m] = new e.Token("plain-text", s, null, s);
|
|
7115
7136
|
}
|
|
7116
7137
|
d.content && typeof d.content != "string" && g(d.content);
|
|
7117
7138
|
}
|
|
@@ -7297,10 +7318,10 @@ delete y.languages.go["class-name"];
|
|
|
7297
7318
|
for (var c = 0; c < g.length && !(o >= l.length); c++) {
|
|
7298
7319
|
var p = g[c];
|
|
7299
7320
|
if (typeof p == "string" || p.content && typeof p.content == "string") {
|
|
7300
|
-
var
|
|
7301
|
-
if (
|
|
7321
|
+
var m = l[o], d = a.tokenStack[m], u = typeof p == "string" ? p : p.content, s = t(n, m), f = u.indexOf(s);
|
|
7322
|
+
if (f > -1) {
|
|
7302
7323
|
++o;
|
|
7303
|
-
var b = u.substring(0,
|
|
7324
|
+
var b = u.substring(0, f), w = new e.Token(n, e.tokenize(d, a.grammar), "language-" + n, d), v = u.substring(f + s.length), k = [];
|
|
7304
7325
|
b && k.push.apply(k, i([b])), k.push(w), v && k.push.apply(k, i([v])), typeof p == "string" ? g.splice.apply(g, [c, 1].concat(k)) : p.content = k;
|
|
7305
7326
|
}
|
|
7306
7327
|
} else p.content && i(p.content);
|
|
@@ -7979,19 +8000,19 @@ var Wo = /\r\n|\r|\n/, nr = function(e) {
|
|
|
7979
8000
|
}, Vo = function(e) {
|
|
7980
8001
|
for (var t = [[]], a = [e], n = [0], o = [e.length], l = 0, i = 0, g = [], c = [g]; i > -1; ) {
|
|
7981
8002
|
for (; (l = n[i]++) < o[i]; ) {
|
|
7982
|
-
var p = void 0,
|
|
7983
|
-
if (typeof u == "string" ? (
|
|
7984
|
-
i++, t.push(
|
|
8003
|
+
var p = void 0, m = t[i], d = a[i], u = d[l];
|
|
8004
|
+
if (typeof u == "string" ? (m = i > 0 ? m : ["plain"], p = u) : (m = or(m, u.type), u.alias && (m = or(m, u.alias)), p = u.content), typeof p != "string") {
|
|
8005
|
+
i++, t.push(m), a.push(p), n.push(0), o.push(p.length);
|
|
7985
8006
|
continue;
|
|
7986
8007
|
}
|
|
7987
|
-
var s = p.split(Wo),
|
|
8008
|
+
var s = p.split(Wo), f = s.length;
|
|
7988
8009
|
g.push({
|
|
7989
|
-
types:
|
|
8010
|
+
types: m,
|
|
7990
8011
|
content: s[0]
|
|
7991
8012
|
});
|
|
7992
|
-
for (var b = 1; b <
|
|
8013
|
+
for (var b = 1; b < f; b++)
|
|
7993
8014
|
nr(g), c.push(g = []), g.push({
|
|
7994
|
-
types:
|
|
8015
|
+
types: m,
|
|
7995
8016
|
content: s[b]
|
|
7996
8017
|
});
|
|
7997
8018
|
}
|
|
@@ -8002,8 +8023,8 @@ var Wo = /\r\n|\r|\n/, nr = function(e) {
|
|
|
8002
8023
|
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(l, i) {
|
|
8003
8024
|
var g = i.languages, c = i.style;
|
|
8004
8025
|
return g && !g.includes(t) || i.types.forEach(function(p) {
|
|
8005
|
-
var
|
|
8006
|
-
l[p] =
|
|
8026
|
+
var m = he({}, l[p], c);
|
|
8027
|
+
l[p] = m;
|
|
8007
8028
|
}), l;
|
|
8008
8029
|
}, n);
|
|
8009
8030
|
return o.root = a, o.plain = he({}, a, {
|
|
@@ -8025,7 +8046,7 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8025
8046
|
var i = l.theme ? Yo(l.theme, l.language) : void 0;
|
|
8026
8047
|
return a.themeDict = i;
|
|
8027
8048
|
}), Ue(this, "getLineProps", function(l) {
|
|
8028
|
-
var i = l.key, g = l.className, c = l.style, p = ir(l, ["key", "className", "style", "line"]),
|
|
8049
|
+
var i = l.key, g = l.className, c = l.style, p = ir(l, ["key", "className", "style", "line"]), m = p, d = he({}, m, {
|
|
8029
8050
|
className: "token-line",
|
|
8030
8051
|
style: void 0,
|
|
8031
8052
|
key: void 0
|
|
@@ -8042,15 +8063,15 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8042
8063
|
if (c === 1 && !g)
|
|
8043
8064
|
return p[i[0]];
|
|
8044
8065
|
}
|
|
8045
|
-
var
|
|
8066
|
+
var m = g ? {
|
|
8046
8067
|
display: "inline-block"
|
|
8047
8068
|
} : {}, d = i.map(function(u) {
|
|
8048
8069
|
return p[u];
|
|
8049
8070
|
});
|
|
8050
|
-
return Object.assign.apply(Object, [
|
|
8071
|
+
return Object.assign.apply(Object, [m].concat(d));
|
|
8051
8072
|
}
|
|
8052
8073
|
}), Ue(this, "getTokenProps", function(l) {
|
|
8053
|
-
var i = l.key, g = l.className, c = l.style, p = l.token,
|
|
8074
|
+
var i = l.key, g = l.className, c = l.style, p = l.token, m = ir(l, ["key", "className", "style", "token"]), d = m, u = he({}, d, {
|
|
8054
8075
|
className: "token " + p.types.join(" "),
|
|
8055
8076
|
children: p.content,
|
|
8056
8077
|
style: a.getStyleForToken(p),
|
|
@@ -8065,12 +8086,12 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8065
8086
|
tokens: []
|
|
8066
8087
|
};
|
|
8067
8088
|
l.hooks.run("before-tokenize", p);
|
|
8068
|
-
var
|
|
8069
|
-
return l.hooks.run("after-tokenize", p),
|
|
8089
|
+
var m = p.tokens = l.tokenize(p.code, p.grammar, p.language);
|
|
8090
|
+
return l.hooks.run("after-tokenize", p), m;
|
|
8070
8091
|
});
|
|
8071
8092
|
}
|
|
8072
8093
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
8073
|
-
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l],
|
|
8094
|
+
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l], m = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d = Vo(m);
|
|
8074
8095
|
return g({
|
|
8075
8096
|
tokens: d,
|
|
8076
8097
|
className: "prism-code language-" + l,
|
|
@@ -8081,7 +8102,7 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8081
8102
|
}, t;
|
|
8082
8103
|
}(lr);
|
|
8083
8104
|
const Xo = (e) => Zo(
|
|
8084
|
-
() =>
|
|
8105
|
+
() => xn.parse(e, (a, n) => n === !0 ? "true" : n === !1 ? "false" : n)
|
|
8085
8106
|
), Zo = (e) => {
|
|
8086
8107
|
try {
|
|
8087
8108
|
return { status: "ok", value: e() };
|
|
@@ -8091,7 +8112,7 @@ const Xo = (e) => Zo(
|
|
|
8091
8112
|
};
|
|
8092
8113
|
function Qo(e, t, a) {
|
|
8093
8114
|
const n = dr();
|
|
8094
|
-
|
|
8115
|
+
P(() => {
|
|
8095
8116
|
if (!t || !a) return;
|
|
8096
8117
|
const o = `http://myserver/myJsonTypeSchema-${n}`, l = t.languages.json.jsonDefaults.diagnosticsOptions, i = l.schemas || [];
|
|
8097
8118
|
return t.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
@@ -8163,7 +8184,7 @@ const Jo = {
|
|
|
8163
8184
|
mini: "h-4 w-4",
|
|
8164
8185
|
normal: "h-6 w-6"
|
|
8165
8186
|
}[e] });
|
|
8166
|
-
function
|
|
8187
|
+
function zr({
|
|
8167
8188
|
className: e,
|
|
8168
8189
|
buttonClassName: t,
|
|
8169
8190
|
items: a,
|
|
@@ -8190,7 +8211,7 @@ function $r({
|
|
|
8190
8211
|
i.id
|
|
8191
8212
|
)) });
|
|
8192
8213
|
}
|
|
8193
|
-
function
|
|
8214
|
+
function jr({
|
|
8194
8215
|
items: e,
|
|
8195
8216
|
onChange: t,
|
|
8196
8217
|
selectedId: a,
|
|
@@ -8236,14 +8257,14 @@ function Ee({
|
|
|
8236
8257
|
error: g,
|
|
8237
8258
|
placeholder: c,
|
|
8238
8259
|
inputMode: p,
|
|
8239
|
-
tabIndex:
|
|
8260
|
+
tabIndex: m,
|
|
8240
8261
|
disabled: d,
|
|
8241
8262
|
title: u,
|
|
8242
8263
|
required: s,
|
|
8243
|
-
onBlur:
|
|
8264
|
+
onBlur: f
|
|
8244
8265
|
}) {
|
|
8245
8266
|
const b = X(null);
|
|
8246
|
-
return
|
|
8267
|
+
return P(() => {
|
|
8247
8268
|
a && b.current?.focus();
|
|
8248
8269
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-1", children: [
|
|
8249
8270
|
i ? /* @__PURE__ */ r(Re, { children: i }) : null,
|
|
@@ -8270,8 +8291,8 @@ function Ee({
|
|
|
8270
8291
|
o(w.target.value);
|
|
8271
8292
|
},
|
|
8272
8293
|
onKeyDown: l,
|
|
8273
|
-
onBlur:
|
|
8274
|
-
tabIndex:
|
|
8294
|
+
onBlur: f,
|
|
8295
|
+
tabIndex: m,
|
|
8275
8296
|
required: s
|
|
8276
8297
|
}
|
|
8277
8298
|
),
|
|
@@ -8289,22 +8310,22 @@ function si({
|
|
|
8289
8310
|
placeholder: g,
|
|
8290
8311
|
inputMode: c,
|
|
8291
8312
|
tabIndex: p,
|
|
8292
|
-
disabled:
|
|
8313
|
+
disabled: m,
|
|
8293
8314
|
title: d,
|
|
8294
8315
|
cols: u,
|
|
8295
8316
|
rows: s
|
|
8296
8317
|
}) {
|
|
8297
|
-
const
|
|
8298
|
-
return
|
|
8299
|
-
t &&
|
|
8318
|
+
const f = X(null);
|
|
8319
|
+
return P(() => {
|
|
8320
|
+
t && f.current?.focus();
|
|
8300
8321
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-2", children: [
|
|
8301
8322
|
l ? /* @__PURE__ */ r(Re, { children: l }) : null,
|
|
8302
8323
|
/* @__PURE__ */ r(
|
|
8303
8324
|
"textarea",
|
|
8304
8325
|
{
|
|
8305
|
-
disabled:
|
|
8326
|
+
disabled: m,
|
|
8306
8327
|
title: d,
|
|
8307
|
-
ref:
|
|
8328
|
+
ref: f,
|
|
8308
8329
|
inputMode: c,
|
|
8309
8330
|
placeholder: g,
|
|
8310
8331
|
value: e ?? "",
|
|
@@ -8362,7 +8383,7 @@ function ee({
|
|
|
8362
8383
|
),
|
|
8363
8384
|
type: "checkbox",
|
|
8364
8385
|
checked: a,
|
|
8365
|
-
onChange: (
|
|
8386
|
+
onChange: (m) => n(m.target.checked, m)
|
|
8366
8387
|
}
|
|
8367
8388
|
),
|
|
8368
8389
|
" ",
|
|
@@ -8383,7 +8404,7 @@ function we({
|
|
|
8383
8404
|
title: g,
|
|
8384
8405
|
noOptionsLabel: c,
|
|
8385
8406
|
contentClassName: p,
|
|
8386
|
-
visibleValue:
|
|
8407
|
+
visibleValue: m
|
|
8387
8408
|
}) {
|
|
8388
8409
|
return /* @__PURE__ */ h(
|
|
8389
8410
|
zo,
|
|
@@ -8395,7 +8416,7 @@ function we({
|
|
|
8395
8416
|
},
|
|
8396
8417
|
value: e?.toString(),
|
|
8397
8418
|
children: [
|
|
8398
|
-
/* @__PURE__ */ r(Mo, { className: a, title: g, tabIndex: i, children: /* @__PURE__ */ r(jo, { placeholder: l, children:
|
|
8419
|
+
/* @__PURE__ */ r(Mo, { className: a, title: g, tabIndex: i, children: /* @__PURE__ */ r(jo, { placeholder: l, children: m }) }),
|
|
8399
8420
|
/* @__PURE__ */ h(Bo, { className: p, children: [
|
|
8400
8421
|
t.map((d) => /* @__PURE__ */ r(
|
|
8401
8422
|
Uo,
|
|
@@ -8422,14 +8443,14 @@ function V({
|
|
|
8422
8443
|
disabled: g,
|
|
8423
8444
|
loading: c,
|
|
8424
8445
|
autoFocus: p,
|
|
8425
|
-
tabIndex:
|
|
8446
|
+
tabIndex: m,
|
|
8426
8447
|
title: d
|
|
8427
8448
|
}) {
|
|
8428
8449
|
const u = X(null), s = a === "link" || a === "link-new" && o;
|
|
8429
|
-
|
|
8450
|
+
P(() => {
|
|
8430
8451
|
p && u.current?.focus();
|
|
8431
8452
|
}, []);
|
|
8432
|
-
const
|
|
8453
|
+
const f = O(
|
|
8433
8454
|
"inline-flex justify-center items-center gap-1 whitespace-nowrap px-8 py-1 font-bold rounded-sm cursor-pointer transition-all disabled:cursor-default",
|
|
8434
8455
|
{
|
|
8435
8456
|
// primary
|
|
@@ -8467,9 +8488,9 @@ function V({
|
|
|
8467
8488
|
"a",
|
|
8468
8489
|
{
|
|
8469
8490
|
title: d,
|
|
8470
|
-
tabIndex:
|
|
8491
|
+
tabIndex: m,
|
|
8471
8492
|
ref: u,
|
|
8472
|
-
className:
|
|
8493
|
+
className: f,
|
|
8473
8494
|
...a === "link-new" ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
8474
8495
|
...c || g ? { "aria-disabled": !0 } : { href: o, onClick: n },
|
|
8475
8496
|
children: i
|
|
@@ -8478,11 +8499,11 @@ function V({
|
|
|
8478
8499
|
"button",
|
|
8479
8500
|
{
|
|
8480
8501
|
title: d,
|
|
8481
|
-
tabIndex:
|
|
8502
|
+
tabIndex: m,
|
|
8482
8503
|
ref: u,
|
|
8483
8504
|
disabled: c || g,
|
|
8484
8505
|
type: a === "submit" ? "submit" : "button",
|
|
8485
|
-
className:
|
|
8506
|
+
className: f,
|
|
8486
8507
|
onClick: n,
|
|
8487
8508
|
children: i
|
|
8488
8509
|
}
|
|
@@ -8536,12 +8557,12 @@ function di({
|
|
|
8536
8557
|
}) {
|
|
8537
8558
|
return /* @__PURE__ */ r(Te.Root, { "data-slot": "dialog", ...e });
|
|
8538
8559
|
}
|
|
8539
|
-
function
|
|
8560
|
+
function Mr({
|
|
8540
8561
|
...e
|
|
8541
8562
|
}) {
|
|
8542
8563
|
return /* @__PURE__ */ r(Te.Portal, { "data-slot": "dialog-portal", ...e });
|
|
8543
8564
|
}
|
|
8544
|
-
const
|
|
8565
|
+
const Br = He.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
8545
8566
|
Te.Overlay,
|
|
8546
8567
|
{
|
|
8547
8568
|
ref: a,
|
|
@@ -8564,9 +8585,9 @@ function ci({ title: e }) {
|
|
|
8564
8585
|
return o.id = n, o.style.display = "none", document.body.appendChild(o), () => {
|
|
8565
8586
|
o.remove();
|
|
8566
8587
|
};
|
|
8567
|
-
}, [t]), /* @__PURE__ */ r(
|
|
8588
|
+
}, [t]), /* @__PURE__ */ r(pa, { children: /* @__PURE__ */ r(Te.Title, { ref: a, children: e }) });
|
|
8568
8589
|
}
|
|
8569
|
-
function
|
|
8590
|
+
function Ur({
|
|
8570
8591
|
className: e,
|
|
8571
8592
|
children: t,
|
|
8572
8593
|
showCloseButton: a = !1,
|
|
@@ -8574,7 +8595,7 @@ function Br({
|
|
|
8574
8595
|
...o
|
|
8575
8596
|
}) {
|
|
8576
8597
|
const l = Xe(), i = pt();
|
|
8577
|
-
return /* @__PURE__ */ r(
|
|
8598
|
+
return /* @__PURE__ */ r(Mr, { container: l, "data-slot": "dialog-portal", children: /* @__PURE__ */ r(Br, { className: O(i ? "dark" : "", "overflow-y-auto"), children: /* @__PURE__ */ h(
|
|
8578
8599
|
Te.Content,
|
|
8579
8600
|
{
|
|
8580
8601
|
"aria-label": n,
|
|
@@ -8594,7 +8615,7 @@ function Br({
|
|
|
8594
8615
|
"data-slot": "dialog-close",
|
|
8595
8616
|
className: "absolute top-4 right-4 rounded-xs opacity-70 transition-opacity duration-100 hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8596
8617
|
children: [
|
|
8597
|
-
/* @__PURE__ */ r(
|
|
8618
|
+
/* @__PURE__ */ r(fn, {}),
|
|
8598
8619
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
8599
8620
|
]
|
|
8600
8621
|
}
|
|
@@ -8620,7 +8641,7 @@ function fe({
|
|
|
8620
8641
|
},
|
|
8621
8642
|
open: e,
|
|
8622
8643
|
children: /* @__PURE__ */ h(
|
|
8623
|
-
|
|
8644
|
+
Ur,
|
|
8624
8645
|
{
|
|
8625
8646
|
title: o,
|
|
8626
8647
|
onFocusCapture: (g) => {
|
|
@@ -8631,7 +8652,7 @@ function fe({
|
|
|
8631
8652
|
className: `w-full max-w-xl overflow-y-auto rounded border-solid bg-white p-3 text-sm shadow dark:bg-neutral-800 dark:text-white ${n}`,
|
|
8632
8653
|
children: [
|
|
8633
8654
|
!i && /* @__PURE__ */ r(
|
|
8634
|
-
|
|
8655
|
+
Ga,
|
|
8635
8656
|
{
|
|
8636
8657
|
className: "absolute top-[18px] right-3 h-4 w-4 cursor-pointer",
|
|
8637
8658
|
onClick: a
|
|
@@ -8668,7 +8689,7 @@ function ve({
|
|
|
8668
8689
|
successMessage: g,
|
|
8669
8690
|
onClick: c,
|
|
8670
8691
|
tabIndex: p,
|
|
8671
|
-
title:
|
|
8692
|
+
title: m
|
|
8672
8693
|
}) {
|
|
8673
8694
|
const [d, u] = C(!1);
|
|
8674
8695
|
async function s() {
|
|
@@ -8676,8 +8697,8 @@ function ve({
|
|
|
8676
8697
|
u(!0);
|
|
8677
8698
|
try {
|
|
8678
8699
|
await c(), g && oe(g);
|
|
8679
|
-
} catch (
|
|
8680
|
-
ie(ui(i,
|
|
8700
|
+
} catch (f) {
|
|
8701
|
+
ie(ui(i, f));
|
|
8681
8702
|
} finally {
|
|
8682
8703
|
u(!1);
|
|
8683
8704
|
}
|
|
@@ -8692,7 +8713,7 @@ function ve({
|
|
|
8692
8713
|
disabled: a || d,
|
|
8693
8714
|
className: n,
|
|
8694
8715
|
onClick: s,
|
|
8695
|
-
title:
|
|
8716
|
+
title: m,
|
|
8696
8717
|
children: d ? l : o
|
|
8697
8718
|
}
|
|
8698
8719
|
);
|
|
@@ -8709,7 +8730,7 @@ function pi({
|
|
|
8709
8730
|
onChangeHideValue: l,
|
|
8710
8731
|
multiline: i = !1
|
|
8711
8732
|
}) {
|
|
8712
|
-
const [g, c] = C(n), p = l || (n ? () => c(!g) : null), [
|
|
8733
|
+
const [g, c] = C(n), p = l || (n ? () => c(!g) : null), [m, d] = C(!1);
|
|
8713
8734
|
return /* @__PURE__ */ h(
|
|
8714
8735
|
"div",
|
|
8715
8736
|
{
|
|
@@ -8732,7 +8753,7 @@ function pi({
|
|
|
8732
8753
|
]
|
|
8733
8754
|
}
|
|
8734
8755
|
) : null,
|
|
8735
|
-
/* @__PURE__ */ h(Ze, { open:
|
|
8756
|
+
/* @__PURE__ */ h(Ze, { open: m, children: [
|
|
8736
8757
|
/* @__PURE__ */ r(Qe, { asChild: !0, children: /* @__PURE__ */ r(
|
|
8737
8758
|
"pre",
|
|
8738
8759
|
{
|
|
@@ -8775,7 +8796,7 @@ function gi({
|
|
|
8775
8796
|
multiline: i,
|
|
8776
8797
|
onCopy: g
|
|
8777
8798
|
}) {
|
|
8778
|
-
const [c, p] = C(n), [
|
|
8799
|
+
const [c, p] = C(n), [m, d] = C(!1), [u, s] = C("Copy"), f = l || (n ? () => p(!c) : null);
|
|
8779
8800
|
return /* @__PURE__ */ h(
|
|
8780
8801
|
"div",
|
|
8781
8802
|
{
|
|
@@ -8798,7 +8819,7 @@ function gi({
|
|
|
8798
8819
|
children: t
|
|
8799
8820
|
}
|
|
8800
8821
|
) : null,
|
|
8801
|
-
/* @__PURE__ */ h(Ze, { open:
|
|
8822
|
+
/* @__PURE__ */ h(Ze, { open: m, children: [
|
|
8802
8823
|
/* @__PURE__ */ r(Qe, { asChild: !0, children: /* @__PURE__ */ r(
|
|
8803
8824
|
"pre",
|
|
8804
8825
|
{
|
|
@@ -8817,10 +8838,10 @@ function gi({
|
|
|
8817
8838
|
/* @__PURE__ */ r(Je, { side: "bottom", children: "Copied!" })
|
|
8818
8839
|
] }),
|
|
8819
8840
|
/* @__PURE__ */ h("div", { className: "flex gap-1 px-1", children: [
|
|
8820
|
-
!!
|
|
8841
|
+
!!f && /* @__PURE__ */ r(
|
|
8821
8842
|
"button",
|
|
8822
8843
|
{
|
|
8823
|
-
onClick:
|
|
8844
|
+
onClick: f,
|
|
8824
8845
|
className: O(
|
|
8825
8846
|
"flex items-center gap-x-1 rounded-sm bg-white px-2 py-1 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 dark:bg-neutral-600/20 dark:ring-neutral-600",
|
|
8826
8847
|
{ "text-xs": a === "normal", "text-sm": a === "large" }
|
|
@@ -8880,7 +8901,7 @@ function hi({ value: e }) {
|
|
|
8880
8901
|
a(!1);
|
|
8881
8902
|
}, 2500));
|
|
8882
8903
|
},
|
|
8883
|
-
children: t ? /* @__PURE__ */ r(
|
|
8904
|
+
children: t ? /* @__PURE__ */ r(Ha, { className: "pl-1", height: "1em" }) : /* @__PURE__ */ r(
|
|
8884
8905
|
Ct,
|
|
8885
8906
|
{
|
|
8886
8907
|
className: "cursor-pointer pl-1",
|
|
@@ -8915,14 +8936,14 @@ const ft = ({
|
|
|
8915
8936
|
}
|
|
8916
8937
|
)
|
|
8917
8938
|
] }), _t = ({ children: e }) => /* @__PURE__ */ h(
|
|
8918
|
-
|
|
8939
|
+
mn,
|
|
8919
8940
|
{
|
|
8920
8941
|
as: "span",
|
|
8921
8942
|
className: "relative inline-flex align-middle",
|
|
8922
8943
|
"data-open": "true",
|
|
8923
8944
|
children: [
|
|
8924
|
-
/* @__PURE__ */ r(
|
|
8925
|
-
|
|
8945
|
+
/* @__PURE__ */ r(bn, { className: "inline", children: /* @__PURE__ */ r(
|
|
8946
|
+
Oa,
|
|
8926
8947
|
{
|
|
8927
8948
|
height: "1em",
|
|
8928
8949
|
width: "1em",
|
|
@@ -8930,7 +8951,7 @@ const ft = ({
|
|
|
8930
8951
|
}
|
|
8931
8952
|
) }),
|
|
8932
8953
|
/* @__PURE__ */ r(
|
|
8933
|
-
|
|
8954
|
+
wn,
|
|
8934
8955
|
{
|
|
8935
8956
|
anchor: "bottom start",
|
|
8936
8957
|
className: "z-50 rounded-lg bg-white p-2 shadow-lg dark:bg-neutral-800",
|
|
@@ -8952,7 +8973,7 @@ const ft = ({
|
|
|
8952
8973
|
children: e
|
|
8953
8974
|
}
|
|
8954
8975
|
);
|
|
8955
|
-
function
|
|
8976
|
+
function Pr({
|
|
8956
8977
|
percentage: e = 0,
|
|
8957
8978
|
loading: t,
|
|
8958
8979
|
className: a,
|
|
@@ -8985,7 +9006,7 @@ function Ur({
|
|
|
8985
9006
|
}
|
|
8986
9007
|
);
|
|
8987
9008
|
}
|
|
8988
|
-
function
|
|
9009
|
+
function qr({
|
|
8989
9010
|
delayDuration: e = 100,
|
|
8990
9011
|
...t
|
|
8991
9012
|
}) {
|
|
@@ -9001,7 +9022,7 @@ function Pr({
|
|
|
9001
9022
|
function Ze({
|
|
9002
9023
|
...e
|
|
9003
9024
|
}) {
|
|
9004
|
-
return /* @__PURE__ */ r(
|
|
9025
|
+
return /* @__PURE__ */ r(qr, { children: /* @__PURE__ */ r(ne.Root, { "data-slot": "tooltip", ...e }) });
|
|
9005
9026
|
}
|
|
9006
9027
|
function Qe({
|
|
9007
9028
|
...e
|
|
@@ -9030,17 +9051,17 @@ function Je({
|
|
|
9030
9051
|
}
|
|
9031
9052
|
) });
|
|
9032
9053
|
}
|
|
9033
|
-
function
|
|
9054
|
+
function Gr({
|
|
9034
9055
|
...e
|
|
9035
9056
|
}) {
|
|
9036
9057
|
return /* @__PURE__ */ r(Oe.Root, { ...e });
|
|
9037
9058
|
}
|
|
9038
|
-
function
|
|
9059
|
+
function Hr({
|
|
9039
9060
|
...e
|
|
9040
9061
|
}) {
|
|
9041
9062
|
return /* @__PURE__ */ r(Oe.Trigger, { ...e });
|
|
9042
9063
|
}
|
|
9043
|
-
function
|
|
9064
|
+
function Wr({
|
|
9044
9065
|
className: e,
|
|
9045
9066
|
sideOffset: t = 4,
|
|
9046
9067
|
...a
|
|
@@ -9074,7 +9095,7 @@ function Pe({
|
|
|
9074
9095
|
}
|
|
9075
9096
|
);
|
|
9076
9097
|
}
|
|
9077
|
-
function
|
|
9098
|
+
function Vr({
|
|
9078
9099
|
className: e,
|
|
9079
9100
|
...t
|
|
9080
9101
|
}) {
|
|
@@ -9091,21 +9112,21 @@ function Wr({
|
|
|
9091
9112
|
}
|
|
9092
9113
|
function ue(e, t) {
|
|
9093
9114
|
return function(a) {
|
|
9094
|
-
return
|
|
9115
|
+
return fa(e, {
|
|
9095
9116
|
...a,
|
|
9096
9117
|
className: O(t, a.className)
|
|
9097
9118
|
});
|
|
9098
9119
|
};
|
|
9099
9120
|
}
|
|
9100
9121
|
function O(...e) {
|
|
9101
|
-
return
|
|
9122
|
+
return ba(_e(e));
|
|
9102
9123
|
}
|
|
9103
|
-
function
|
|
9124
|
+
function Yr() {
|
|
9104
9125
|
return /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-1 flex-col bg-gray-300" });
|
|
9105
9126
|
}
|
|
9106
9127
|
function Dt(e) {
|
|
9107
9128
|
return /* @__PURE__ */ r(
|
|
9108
|
-
|
|
9129
|
+
ga,
|
|
9109
9130
|
{
|
|
9110
9131
|
theme: e.darkMode ? "vs-dark" : "vs-light",
|
|
9111
9132
|
className: O(
|
|
@@ -9131,13 +9152,13 @@ function Dt(e) {
|
|
|
9131
9152
|
onMount: e.onMount,
|
|
9132
9153
|
beforeMount: (t) => {
|
|
9133
9154
|
},
|
|
9134
|
-
loading: /* @__PURE__ */ r(
|
|
9155
|
+
loading: /* @__PURE__ */ r(Yr, {})
|
|
9135
9156
|
}
|
|
9136
9157
|
);
|
|
9137
9158
|
}
|
|
9138
9159
|
function mi(e) {
|
|
9139
9160
|
const [t, a] = C(e.value), o = `json-editor-${dr()}.json`, [l, i] = C(void 0);
|
|
9140
|
-
return Qo(o, l, e.schema),
|
|
9161
|
+
return Qo(o, l, e.schema), P(() => {
|
|
9141
9162
|
a(e.value);
|
|
9142
9163
|
}, [e.value]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9143
9164
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
@@ -9157,12 +9178,12 @@ function mi(e) {
|
|
|
9157
9178
|
p.KeyMod.CtrlCmd | p.KeyCode.KeyS,
|
|
9158
9179
|
() => e.onSave(c.getValue())
|
|
9159
9180
|
), c.onDidPaste(async () => {
|
|
9160
|
-
const
|
|
9161
|
-
|
|
9162
|
-
const d =
|
|
9181
|
+
const m = c.getModel();
|
|
9182
|
+
m && setTimeout(async () => {
|
|
9183
|
+
const d = m.getValue();
|
|
9163
9184
|
if (!d.trim()) return;
|
|
9164
9185
|
const u = Xo(d);
|
|
9165
|
-
u.status === "ok" &&
|
|
9186
|
+
u.status === "ok" && m.setValue(JSON.stringify(u.value, null, 2));
|
|
9166
9187
|
}, 20);
|
|
9167
9188
|
});
|
|
9168
9189
|
}
|
|
@@ -9192,7 +9213,7 @@ function Lt({
|
|
|
9192
9213
|
},
|
|
9193
9214
|
styles: []
|
|
9194
9215
|
} : Jo,
|
|
9195
|
-
children: ({ className: c, style: p, tokens:
|
|
9216
|
+
children: ({ className: c, style: p, tokens: m, getTokenProps: d }) => /* @__PURE__ */ h(
|
|
9196
9217
|
"pre",
|
|
9197
9218
|
{
|
|
9198
9219
|
className: _e(c, o),
|
|
@@ -9223,9 +9244,9 @@ function Lt({
|
|
|
9223
9244
|
]
|
|
9224
9245
|
}
|
|
9225
9246
|
) }) : null,
|
|
9226
|
-
/* @__PURE__ */ r("code", { children:
|
|
9227
|
-
u.filter((
|
|
9228
|
-
const { key: w, ...v } = d({ token:
|
|
9247
|
+
/* @__PURE__ */ r("code", { children: m.map((u, s) => /* @__PURE__ */ h(ma, { children: [
|
|
9248
|
+
u.filter((f) => !f.empty).map((f, b) => {
|
|
9249
|
+
const { key: w, ...v } = d({ token: f });
|
|
9229
9250
|
return /* @__PURE__ */ r("span", { ...v }, w || b);
|
|
9230
9251
|
}),
|
|
9231
9252
|
`
|
|
@@ -9237,7 +9258,7 @@ function Lt({
|
|
|
9237
9258
|
}
|
|
9238
9259
|
);
|
|
9239
9260
|
}
|
|
9240
|
-
function
|
|
9261
|
+
function Kr({
|
|
9241
9262
|
className: e,
|
|
9242
9263
|
...t
|
|
9243
9264
|
}) {
|
|
@@ -9275,17 +9296,17 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9275
9296
|
Copyable: gi,
|
|
9276
9297
|
Copytext: hi,
|
|
9277
9298
|
Dialog: fe,
|
|
9278
|
-
DialogContent:
|
|
9279
|
-
DialogOverlay:
|
|
9280
|
-
DialogPortal:
|
|
9299
|
+
DialogContent: Ur,
|
|
9300
|
+
DialogOverlay: Br,
|
|
9301
|
+
DialogPortal: Mr,
|
|
9281
9302
|
Divider: ft,
|
|
9282
|
-
DropdownMenu:
|
|
9283
|
-
DropdownMenuContent:
|
|
9303
|
+
DropdownMenu: Gr,
|
|
9304
|
+
DropdownMenuContent: Wr,
|
|
9284
9305
|
DropdownMenuItem: Pe,
|
|
9285
|
-
DropdownMenuSeparator:
|
|
9286
|
-
DropdownMenuTrigger:
|
|
9306
|
+
DropdownMenuSeparator: Vr,
|
|
9307
|
+
DropdownMenuTrigger: Hr,
|
|
9287
9308
|
Fence: Lt,
|
|
9288
|
-
FullscreenLoading:
|
|
9309
|
+
FullscreenLoading: Yr,
|
|
9289
9310
|
Group: ti,
|
|
9290
9311
|
Hint: ii,
|
|
9291
9312
|
IconButton: ht,
|
|
@@ -9293,22 +9314,22 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9293
9314
|
JSONEditor: mi,
|
|
9294
9315
|
Label: Re,
|
|
9295
9316
|
LogoIcon: li,
|
|
9296
|
-
ProgressButton:
|
|
9317
|
+
ProgressButton: Pr,
|
|
9297
9318
|
ScreenHeading: ri,
|
|
9298
9319
|
SectionHeading: ai,
|
|
9299
9320
|
Select: we,
|
|
9300
9321
|
SmallCopyable: pi,
|
|
9301
9322
|
Stack: ei,
|
|
9302
9323
|
SubsectionHeading: ni,
|
|
9303
|
-
Switch:
|
|
9324
|
+
Switch: Kr,
|
|
9304
9325
|
TextArea: si,
|
|
9305
9326
|
TextInput: Ee,
|
|
9306
|
-
Toaster:
|
|
9307
|
-
ToggleCollection:
|
|
9308
|
-
ToggleGroup:
|
|
9327
|
+
Toaster: ua,
|
|
9328
|
+
ToggleCollection: zr,
|
|
9329
|
+
ToggleGroup: jr,
|
|
9309
9330
|
Tooltip: Ze,
|
|
9310
9331
|
TooltipContent: Je,
|
|
9311
|
-
TooltipProvider:
|
|
9332
|
+
TooltipProvider: qr,
|
|
9312
9333
|
TooltipTrigger: Qe,
|
|
9313
9334
|
cn: O,
|
|
9314
9335
|
redactedValue: Ot,
|
|
@@ -9328,18 +9349,18 @@ export {
|
|
|
9328
9349
|
gi as Copyable,
|
|
9329
9350
|
hi as Copytext,
|
|
9330
9351
|
fe as Dialog,
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9352
|
+
Ur as DialogContent,
|
|
9353
|
+
Br as DialogOverlay,
|
|
9354
|
+
Mr as DialogPortal,
|
|
9334
9355
|
ft as Divider,
|
|
9335
|
-
|
|
9336
|
-
|
|
9356
|
+
Gr as DropdownMenu,
|
|
9357
|
+
Wr as DropdownMenuContent,
|
|
9337
9358
|
Pe as DropdownMenuItem,
|
|
9338
|
-
|
|
9339
|
-
|
|
9359
|
+
Vr as DropdownMenuSeparator,
|
|
9360
|
+
Hr as DropdownMenuTrigger,
|
|
9340
9361
|
Wi as Explorer,
|
|
9341
9362
|
Lt as Fence,
|
|
9342
|
-
|
|
9363
|
+
Yr as FullscreenLoading,
|
|
9343
9364
|
ti as Group,
|
|
9344
9365
|
ii as Hint,
|
|
9345
9366
|
ht as IconButton,
|
|
@@ -9347,7 +9368,7 @@ export {
|
|
|
9347
9368
|
mi as JSONEditor,
|
|
9348
9369
|
Re as Label,
|
|
9349
9370
|
li as LogoIcon,
|
|
9350
|
-
|
|
9371
|
+
Pr as ProgressButton,
|
|
9351
9372
|
ri as ScreenHeading,
|
|
9352
9373
|
ai as SectionHeading,
|
|
9353
9374
|
we as Select,
|
|
@@ -9355,15 +9376,15 @@ export {
|
|
|
9355
9376
|
ei as Stack,
|
|
9356
9377
|
$o as StyleMe,
|
|
9357
9378
|
ni as SubsectionHeading,
|
|
9358
|
-
|
|
9379
|
+
Kr as Switch,
|
|
9359
9380
|
si as TextArea,
|
|
9360
9381
|
Ee as TextInput,
|
|
9361
9382
|
Xi as Toaster,
|
|
9362
|
-
|
|
9363
|
-
|
|
9383
|
+
zr as ToggleCollection,
|
|
9384
|
+
jr as ToggleGroup,
|
|
9364
9385
|
Ze as Tooltip,
|
|
9365
9386
|
Je as TooltipContent,
|
|
9366
|
-
|
|
9387
|
+
qr as TooltipProvider,
|
|
9367
9388
|
Qe as TooltipTrigger,
|
|
9368
9389
|
O as cn,
|
|
9369
9390
|
Ot as redactedValue,
|