@instantdb/components 0.22.89-experimental.drewh-dialog-titles.20280021373.1 → 0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1
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/app/App.tsx +4 -2
- package/dist/components/explorer/inner-explorer.d.ts.map +1 -1
- package/dist/components/explorer/view-settings.d.ts.map +1 -1
- package/dist/components/ui.d.ts +2 -3
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +796 -807
- package/package.json +6 -7
- package/src/components/explorer/explorer-layout.tsx +2 -2
- package/src/components/explorer/inner-explorer.tsx +0 -4
- package/src/components/explorer/view-settings.tsx +0 -1
- package/src/components/ui.tsx +0 -9
package/dist/index.js
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { toast as St, Toaster as ca } from "sonner";
|
|
3
|
-
import { Toaster as
|
|
4
|
-
import {
|
|
5
|
-
import { Editor as pa } from "@monaco-editor/react";
|
|
3
|
+
import { Toaster as Vi, toast as Yi } from "sonner";
|
|
4
|
+
import { Editor as ua } from "@monaco-editor/react";
|
|
6
5
|
import Oe from "clsx";
|
|
7
6
|
import He from "copy-to-clipboard";
|
|
8
|
-
import { twMerge as
|
|
7
|
+
import { twMerge as pa } from "tailwind-merge";
|
|
9
8
|
import * as le from "@radix-ui/react-select";
|
|
10
|
-
import { ChevronDownIcon as Nt, ChevronRightIcon as
|
|
11
|
-
import sr, { useMemo as se, useState as C, useEffect as H, useRef as X, useCallback as at, useSyncExternalStore as
|
|
12
|
-
import { createPortal as
|
|
9
|
+
import { ChevronDownIcon as Nt, ChevronRightIcon as ga, ArrowUturnLeftIcon as ha, ArrowPathIcon as fa, ClockIcon as ir, ArrowUpIcon as ma, ArrowDownIcon as ba, ArrowsUpDownIcon as wa, Cog6ToothIcon as va, XMarkIcon as lr, PencilSquareIcon as ya, ArrowUpOnSquareIcon as ka, TrashIcon as xa, ExclamationTriangleIcon as Sa, CheckIcon as Na, ChevronUpIcon as Ea, InformationCircleIcon as Ca } from "@heroicons/react/24/outline";
|
|
10
|
+
import sr, { useMemo as se, useState as C, useEffect as H, useRef as X, useCallback as at, useSyncExternalStore as Ia, useLayoutEffect as vt, Component as dr, createContext as cr, useContext as lt, useId as ur, createElement as Aa, Fragment as Ra } from "react";
|
|
11
|
+
import { createPortal as Ta } from "react-dom";
|
|
13
12
|
import * as Ge from "@radix-ui/react-dialog";
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import Ba from "
|
|
17
|
-
import { Combobox as pr, ComboboxInput as gr, ComboboxOptions as hr, ComboboxOption as fr, useClose as We, Popover as Ua, PopoverButton as Pa, PopoverPanel as qa } from "@headlessui/react";
|
|
13
|
+
import { ArrowLeftIcon as Pt, PlusIcon as Oa, ArrowRightIcon as _a, Table as Da, FileDown as La, CurlyBraces as Fa, ArrowRightFromLine as $a, XIcon as za } from "lucide-react";
|
|
14
|
+
import ja from "json5";
|
|
15
|
+
import { Combobox as pr, ComboboxInput as gr, ComboboxOptions as hr, ComboboxOption as fr, useClose as We, Popover as Ma, PopoverButton as Ba, PopoverPanel as Ua } from "@headlessui/react";
|
|
18
16
|
import * as Te from "@radix-ui/react-dropdown-menu";
|
|
19
17
|
import * as qt from "@radix-ui/react-toggle-group";
|
|
20
|
-
import { ArrowLeftIcon as st, PencilSquareIcon as
|
|
18
|
+
import { ArrowLeftIcon as st, PencilSquareIcon as Pa, TrashIcon as nt, PlusIcon as mr, ArrowUturnLeftIcon as Ve, ArrowPathIcon as qa, InformationCircleIcon as Ga, Cog8ToothIcon as Ha, ChevronLeftIcon as Wa, Bars3Icon as Va, XMarkIcon as Ya, EyeSlashIcon as br, EyeIcon as wr, ClipboardDocumentIcon as Et, CheckCircleIcon as Ka } from "@heroicons/react/24/solid";
|
|
21
19
|
import vr from "react-copy-to-clipboard";
|
|
22
20
|
import * as ne from "@radix-ui/react-tooltip";
|
|
23
21
|
import * as Gt from "@radix-ui/react-switch";
|
|
24
|
-
import
|
|
25
|
-
import { InstantAPIError as
|
|
26
|
-
import { add as kr, formatDistanceToNow as xr, format as
|
|
27
|
-
import { id as Pe, tx as
|
|
28
|
-
import { useSensors as
|
|
29
|
-
import { markdownTable as
|
|
30
|
-
import { mkConfig as
|
|
31
|
-
import { restrictToHorizontalAxis as
|
|
32
|
-
import { useSortable as Sr, SortableContext as Ht, horizontalListSortingStrategy as Wt, arrayMove as
|
|
33
|
-
import { flexRender as ot, useReactTable as
|
|
34
|
-
import { debounce as
|
|
22
|
+
import Xa, { useSWRConfig as yr } from "swr";
|
|
23
|
+
import { InstantAPIError as Za, id as je, coerceToDate as Qa, tx as Ja } from "@instantdb/core";
|
|
24
|
+
import { add as kr, formatDistanceToNow as xr, format as en } from "date-fns";
|
|
25
|
+
import { id as Pe, tx as tn, init as rn } from "@instantdb/react";
|
|
26
|
+
import { useSensors as an, useSensor as bt, MouseSensor as nn, TouchSensor as on, KeyboardSensor as ln, DndContext as sn, closestCenter as dn } from "@dnd-kit/core";
|
|
27
|
+
import { markdownTable as cn } from "markdown-table";
|
|
28
|
+
import { mkConfig as un, generateCsv as pn, download as gn } from "export-to-csv";
|
|
29
|
+
import { restrictToHorizontalAxis as hn } from "@dnd-kit/modifiers";
|
|
30
|
+
import { useSortable as Sr, SortableContext as Ht, horizontalListSortingStrategy as Wt, arrayMove as fn } from "@dnd-kit/sortable";
|
|
31
|
+
import { flexRender as ot, useReactTable as mn, getCoreRowModel as bn } from "@tanstack/react-table";
|
|
32
|
+
import { debounce as wn, last as vn, isObject as Ne } from "lodash";
|
|
35
33
|
import { CSS as Nr } from "@dnd-kit/utilities";
|
|
36
34
|
import "swr/subscription";
|
|
37
|
-
import { validate as
|
|
38
|
-
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%}.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}.align-top{vertical-align:top}.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 = kt("devBackend");
|
|
35
|
+
import { validate as yn } from "uuid";
|
|
36
|
+
const kn = `/*! 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%}.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}.align-top{vertical-align:top}.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", xn = kt("devBackend");
|
|
39
37
|
let yt = "8888";
|
|
40
|
-
if (
|
|
38
|
+
if (xn && Er) {
|
|
41
39
|
const e = new URL(location.href).searchParams.get("port");
|
|
42
40
|
e && (yt = e);
|
|
43
41
|
}
|
|
@@ -108,16 +106,16 @@ const Ct = {
|
|
|
108
106
|
`${t.cardinality}-${t["unique?"]}`,
|
|
109
107
|
e
|
|
110
108
|
])
|
|
111
|
-
),
|
|
109
|
+
), Sn = ({
|
|
112
110
|
attr: e,
|
|
113
111
|
gracePeriodDays: t,
|
|
114
112
|
isExpanded: a,
|
|
115
113
|
setIsExpanded: n,
|
|
116
114
|
onRestore: o
|
|
117
115
|
}) => {
|
|
118
|
-
const
|
|
116
|
+
const i = kr(new Date(e["deletion-marked-at"]), {
|
|
119
117
|
days: t
|
|
120
|
-
}),
|
|
118
|
+
}), l = () => e["forward-identity"][2], g = () => e["reverse-identity"]?.[2], c = () => {
|
|
121
119
|
const s = e["forward-identity"][1], m = e["reverse-identity"]?.[1];
|
|
122
120
|
return { forwardEtype: s, reverseEtype: m };
|
|
123
121
|
}, p = () => {
|
|
@@ -128,7 +126,7 @@ const Ct = {
|
|
|
128
126
|
}, d = (() => {
|
|
129
127
|
if (e["value-type"] === "blob")
|
|
130
128
|
return [];
|
|
131
|
-
const s = p(), { forwardEtype: m, reverseEtype: b } = c(), w =
|
|
129
|
+
const s = p(), { forwardEtype: m, reverseEtype: b } = c(), w = l(), 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";
|
|
132
130
|
return [
|
|
133
131
|
{
|
|
134
132
|
label: "forward",
|
|
@@ -163,11 +161,11 @@ const Ct = {
|
|
|
163
161
|
onClick: f,
|
|
164
162
|
children: [
|
|
165
163
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
|
|
166
|
-
a ? /* @__PURE__ */ r(Nt, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(
|
|
164
|
+
a ? /* @__PURE__ */ r(Nt, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(ga, { width: 14, className: "text-gray-400" }),
|
|
167
165
|
/* @__PURE__ */ r("span", { className: "font-mono text-sm font-medium", children: e["forward-identity"][2] }),
|
|
168
166
|
/* @__PURE__ */ h("span", { className: "font-mono text-xs text-gray-400", children: [
|
|
169
167
|
"expires ",
|
|
170
|
-
xr(
|
|
168
|
+
xr(i, { includeSeconds: !1 })
|
|
171
169
|
] })
|
|
172
170
|
] }),
|
|
173
171
|
/* @__PURE__ */ h(
|
|
@@ -180,7 +178,7 @@ const Ct = {
|
|
|
180
178
|
s.stopPropagation(), o(e.id);
|
|
181
179
|
},
|
|
182
180
|
children: [
|
|
183
|
-
/* @__PURE__ */ r(
|
|
181
|
+
/* @__PURE__ */ r(ha, { width: 14 }),
|
|
184
182
|
"Restore"
|
|
185
183
|
]
|
|
186
184
|
}
|
|
@@ -202,7 +200,7 @@ const Ct = {
|
|
|
202
200
|
] });
|
|
203
201
|
}, It = (e) => {
|
|
204
202
|
const t = de(), a = t.adminToken;
|
|
205
|
-
return
|
|
203
|
+
return Xa(["recently-deleted", e], async () => {
|
|
206
204
|
const o = await fetch(
|
|
207
205
|
`${t.apiURI}/dash/apps/${e}/soft_deleted_attrs`,
|
|
208
206
|
{
|
|
@@ -211,33 +209,33 @@ const Ct = {
|
|
|
211
209
|
Authorization: `Bearer ${a}`
|
|
212
210
|
}
|
|
213
211
|
}
|
|
214
|
-
),
|
|
212
|
+
), i = await o.json();
|
|
215
213
|
if (!o.ok)
|
|
216
|
-
throw console.error("Failed to fetch recently deleted attrs",
|
|
217
|
-
"Failed to fetch recently deleted attrs" + JSON.stringify(
|
|
214
|
+
throw console.error("Failed to fetch recently deleted attrs", i), new Error(
|
|
215
|
+
"Failed to fetch recently deleted attrs" + JSON.stringify(i)
|
|
218
216
|
);
|
|
219
217
|
return {
|
|
220
|
-
...
|
|
221
|
-
attrs:
|
|
218
|
+
...i,
|
|
219
|
+
attrs: i.attrs.map(Cn)
|
|
222
220
|
};
|
|
223
221
|
});
|
|
224
222
|
}, Ir = (e) => {
|
|
225
223
|
const { data: t } = It(e);
|
|
226
224
|
return se(() => {
|
|
227
225
|
const n = t?.attrs || [];
|
|
228
|
-
return n.filter((
|
|
226
|
+
return n.filter((l) => l["forward-identity"][2] === "id").map((l) => {
|
|
229
227
|
const g = n.filter(
|
|
230
|
-
(c) => c.metadata.soft_delete_snapshot?.id_attr_id ===
|
|
228
|
+
(c) => c.metadata.soft_delete_snapshot?.id_attr_id === l.id
|
|
231
229
|
);
|
|
232
|
-
return { idAttr:
|
|
230
|
+
return { idAttr: l, remainingCols: g.filter((c) => l.id !== c.id) };
|
|
233
231
|
});
|
|
234
232
|
}, [t?.attrs]);
|
|
235
233
|
};
|
|
236
|
-
function
|
|
234
|
+
function Nn({
|
|
237
235
|
appId: e,
|
|
238
236
|
db: t
|
|
239
237
|
}) {
|
|
240
|
-
const { data: a, mutate: n } = It(e), o = Ir(e),
|
|
238
|
+
const { data: a, mutate: n } = It(e), o = Ir(e), i = a?.["grace-period-days"] || 2, l = async ({ idAttr: g, remainingCols: c }) => {
|
|
241
239
|
if (!t || !a) return;
|
|
242
240
|
const p = [g, ...c].map((d) => d.id);
|
|
243
241
|
await t.core._reactor.pushOps(
|
|
@@ -255,7 +253,7 @@ function Cn({
|
|
|
255
253
|
const c = new Date(
|
|
256
254
|
g.idAttr["deletion-marked-at"]
|
|
257
255
|
), p = kr(c, {
|
|
258
|
-
days:
|
|
256
|
+
days: i
|
|
259
257
|
});
|
|
260
258
|
return /* @__PURE__ */ h(
|
|
261
259
|
"div",
|
|
@@ -266,7 +264,7 @@ function Cn({
|
|
|
266
264
|
/* @__PURE__ */ r("div", { className: "font-semibold dark:text-white", children: g.idAttr["forward-identity"][1] }),
|
|
267
265
|
/* @__PURE__ */ h("div", { className: "mt-1 text-xs text-neutral-500 dark:text-neutral-400", children: [
|
|
268
266
|
"Deleted ",
|
|
269
|
-
|
|
267
|
+
en(c, "MMM d, h:mm a"),
|
|
270
268
|
" ·",
|
|
271
269
|
" ",
|
|
272
270
|
"expires",
|
|
@@ -286,9 +284,9 @@ function Cn({
|
|
|
286
284
|
{
|
|
287
285
|
size: "mini",
|
|
288
286
|
variant: "secondary",
|
|
289
|
-
onClick: () =>
|
|
287
|
+
onClick: () => l(g),
|
|
290
288
|
children: [
|
|
291
|
-
/* @__PURE__ */ r(
|
|
289
|
+
/* @__PURE__ */ r(fa, { className: "h-3.5 w-3.5" }),
|
|
292
290
|
"Restore"
|
|
293
291
|
]
|
|
294
292
|
}
|
|
@@ -300,21 +298,21 @@ function Cn({
|
|
|
300
298
|
}) }) : /* @__PURE__ */ r("p", { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "No recently deleted namespaces." })
|
|
301
299
|
] });
|
|
302
300
|
}
|
|
303
|
-
const
|
|
304
|
-
const { data: o, mutate:
|
|
301
|
+
const En = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
302
|
+
const { data: o, mutate: i, error: l } = It(t), [g, c] = C(null), p = it(), f = async (s) => {
|
|
305
303
|
if (a && o)
|
|
306
304
|
try {
|
|
307
|
-
await a.core._reactor.pushOps([["restore-attr", s]]),
|
|
305
|
+
await a.core._reactor.pushOps([["restore-attr", s]]), i({
|
|
308
306
|
attrs: o.attrs.filter((b) => b.id !== s) ?? [],
|
|
309
307
|
"grace-period-days": o["grace-period-days"]
|
|
310
308
|
});
|
|
311
309
|
const m = o.attrs.find((b) => b.id === s);
|
|
312
310
|
if (m) {
|
|
313
|
-
const b =
|
|
311
|
+
const b = In(m);
|
|
314
312
|
b && n.setNote(s, b);
|
|
315
313
|
}
|
|
316
314
|
} catch (m) {
|
|
317
|
-
console.error(m), m instanceof
|
|
315
|
+
console.error(m), m instanceof Za ? m.body?.type === "record-not-unique" ? ie(
|
|
318
316
|
"Attribute already exists. Rename existing attribute first and then try again to restore."
|
|
319
317
|
) : ie(m.message) : ie("Failed to restore attr");
|
|
320
318
|
}
|
|
@@ -323,13 +321,13 @@ const In = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
323
321
|
);
|
|
324
322
|
return H(() => {
|
|
325
323
|
u?.length === 0 && p.onClose();
|
|
326
|
-
}, [u]),
|
|
324
|
+
}, [u]), l || !u || u.length === 0 ? null : /* @__PURE__ */ h("div", { className: "pb-2", children: [
|
|
327
325
|
/* @__PURE__ */ r(ht, { className: "pb-2", children: /* @__PURE__ */ h("div", { className: "flex w-full grow items-center justify-center gap-2 text-center opacity-60", children: [
|
|
328
326
|
/* @__PURE__ */ r(ir, { width: 16 }),
|
|
329
327
|
"Recently Deleted"
|
|
330
328
|
] }) }),
|
|
331
329
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: u?.map((s) => /* @__PURE__ */ r(
|
|
332
|
-
|
|
330
|
+
Sn,
|
|
333
331
|
{
|
|
334
332
|
isExpanded: g === s.id,
|
|
335
333
|
setIsExpanded: (m) => {
|
|
@@ -342,17 +340,17 @@ const In = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
342
340
|
s.id
|
|
343
341
|
)) })
|
|
344
342
|
] });
|
|
345
|
-
}, Yt = "_deleted$",
|
|
343
|
+
}, Yt = "_deleted$", Cn = (e) => {
|
|
346
344
|
const t = { ...e }, [a, n, o] = e["forward-identity"];
|
|
347
345
|
if (t["forward-identity"] = [
|
|
348
346
|
a,
|
|
349
347
|
tt(n),
|
|
350
348
|
tt(o)
|
|
351
349
|
], e["reverse-identity"]) {
|
|
352
|
-
const [
|
|
350
|
+
const [i, l, g] = e["reverse-identity"];
|
|
353
351
|
t["reverse-identity"] = [
|
|
354
|
-
|
|
355
|
-
tt(
|
|
352
|
+
i,
|
|
353
|
+
tt(l),
|
|
356
354
|
tt(g)
|
|
357
355
|
];
|
|
358
356
|
}
|
|
@@ -360,22 +358,22 @@ const In = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
360
358
|
}, tt = (e) => {
|
|
361
359
|
const t = e.indexOf(Yt);
|
|
362
360
|
return t === -1 ? e : e.slice(t + Yt.length);
|
|
363
|
-
},
|
|
364
|
-
function
|
|
361
|
+
}, In = (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;
|
|
362
|
+
function An({
|
|
365
363
|
db: e,
|
|
366
364
|
onClose: t
|
|
367
365
|
}) {
|
|
368
366
|
const [a, n] = C("");
|
|
369
367
|
async function o() {
|
|
370
|
-
const
|
|
368
|
+
const i = {
|
|
371
369
|
id: Pe(),
|
|
372
370
|
"forward-identity": [Pe(), a, "id"],
|
|
373
371
|
"value-type": "blob",
|
|
374
372
|
cardinality: "one",
|
|
375
373
|
"unique?": !0,
|
|
376
374
|
"index?": !1
|
|
377
|
-
},
|
|
378
|
-
await e.core._reactor.pushOps(
|
|
375
|
+
}, l = [["add-attr", i]];
|
|
376
|
+
await e.core._reactor.pushOps(l), t({ id: i.id, name: a });
|
|
379
377
|
}
|
|
380
378
|
return /* @__PURE__ */ h(ge, { className: "flex flex-col gap-4", children: [
|
|
381
379
|
/* @__PURE__ */ r("h5", { className: "flex items-center text-lg font-bold", children: "Create a new namespace" }),
|
|
@@ -384,7 +382,7 @@ function Tn({
|
|
|
384
382
|
{
|
|
385
383
|
value: a,
|
|
386
384
|
placeholder: "Name your namespace",
|
|
387
|
-
onChange: (
|
|
385
|
+
onChange: (i) => n(i),
|
|
388
386
|
autoFocus: !0
|
|
389
387
|
}
|
|
390
388
|
),
|
|
@@ -401,25 +399,25 @@ function Tn({
|
|
|
401
399
|
)
|
|
402
400
|
] });
|
|
403
401
|
}
|
|
404
|
-
const
|
|
402
|
+
const Rn = [
|
|
405
403
|
// Exclude computed fields
|
|
406
404
|
["$files", "url"]
|
|
407
405
|
], Kt = [":", ">", "<"];
|
|
408
|
-
function
|
|
406
|
+
function Tn(e) {
|
|
409
407
|
let t = 0, a, n;
|
|
410
408
|
const o = [];
|
|
411
|
-
let
|
|
412
|
-
for (const
|
|
413
|
-
if (
|
|
414
|
-
t =
|
|
409
|
+
let i = -1;
|
|
410
|
+
for (const l of e) {
|
|
411
|
+
if (i++, l === " " && !Kt.includes(e[i + 1])) {
|
|
412
|
+
t = i + 1;
|
|
415
413
|
continue;
|
|
416
414
|
}
|
|
417
|
-
if (Kt.includes(
|
|
415
|
+
if (Kt.includes(l)) {
|
|
418
416
|
a && n != null && (a.value = e.substring(n, t).trim(), o.push(a)), a = {
|
|
419
|
-
field: e.substring(t,
|
|
420
|
-
operator:
|
|
417
|
+
field: e.substring(t, i).trim(),
|
|
418
|
+
operator: l,
|
|
421
419
|
value: ""
|
|
422
|
-
}, n =
|
|
420
|
+
}, n = i + 1;
|
|
423
421
|
continue;
|
|
424
422
|
}
|
|
425
423
|
}
|
|
@@ -437,72 +435,72 @@ function Me(e) {
|
|
|
437
435
|
throw new Error("what kind of op is this? " + e);
|
|
438
436
|
}
|
|
439
437
|
}
|
|
440
|
-
function
|
|
438
|
+
function On({
|
|
441
439
|
query: e,
|
|
442
440
|
attrsByName: t,
|
|
443
441
|
stringIndexed: a
|
|
444
442
|
}) {
|
|
445
443
|
if (!e.trim())
|
|
446
444
|
return [];
|
|
447
|
-
const n =
|
|
448
|
-
(
|
|
449
|
-
const
|
|
450
|
-
if (!
|
|
445
|
+
const n = Tn(e), o = n.flatMap(
|
|
446
|
+
(i) => {
|
|
447
|
+
const l = t[i.field];
|
|
448
|
+
if (!l || !i.value)
|
|
451
449
|
return [];
|
|
452
|
-
if (
|
|
453
|
-
return [[
|
|
450
|
+
if (i.value.toLowerCase() === "null" && i.operator === ":" && !l.isRequired)
|
|
451
|
+
return [[i.field, "$isNull", null]];
|
|
454
452
|
const g = [];
|
|
455
|
-
if (
|
|
456
|
-
if (
|
|
457
|
-
const c =
|
|
453
|
+
if (l.checkedDataType && l.isIndex) {
|
|
454
|
+
if (l.checkedDataType === "string") {
|
|
455
|
+
const c = i.value;
|
|
458
456
|
return [
|
|
459
457
|
[
|
|
460
|
-
|
|
458
|
+
i.field,
|
|
461
459
|
c === c.toLowerCase() ? "$ilike" : "$like",
|
|
462
|
-
`%${
|
|
460
|
+
`%${i.value}%`
|
|
463
461
|
]
|
|
464
462
|
];
|
|
465
463
|
}
|
|
466
|
-
if (
|
|
464
|
+
if (l.checkedDataType === "number")
|
|
467
465
|
try {
|
|
468
466
|
return [
|
|
469
467
|
[
|
|
470
|
-
|
|
471
|
-
Me(
|
|
472
|
-
JSON.parse(
|
|
468
|
+
i.field,
|
|
469
|
+
Me(i.operator),
|
|
470
|
+
JSON.parse(i.value)
|
|
473
471
|
]
|
|
474
472
|
];
|
|
475
473
|
} catch {
|
|
476
474
|
}
|
|
477
|
-
if (
|
|
475
|
+
if (l.checkedDataType === "date")
|
|
478
476
|
try {
|
|
479
477
|
return [
|
|
480
478
|
[
|
|
481
|
-
|
|
482
|
-
Me(
|
|
483
|
-
JSON.parse(
|
|
479
|
+
i.field,
|
|
480
|
+
Me(i.operator),
|
|
481
|
+
JSON.parse(i.value)
|
|
484
482
|
]
|
|
485
483
|
];
|
|
486
484
|
} catch {
|
|
487
|
-
return [[
|
|
485
|
+
return [[i.field, Me(i.operator), i.value]];
|
|
488
486
|
}
|
|
489
487
|
}
|
|
490
|
-
for (const c of
|
|
488
|
+
for (const c of l.inferredTypes || ["json"])
|
|
491
489
|
switch (c) {
|
|
492
490
|
case "boolean":
|
|
493
491
|
case "number": {
|
|
494
492
|
try {
|
|
495
493
|
g.push([
|
|
496
|
-
|
|
497
|
-
Me(
|
|
498
|
-
JSON.parse(
|
|
494
|
+
i.field,
|
|
495
|
+
Me(i.operator),
|
|
496
|
+
JSON.parse(i.value)
|
|
499
497
|
]);
|
|
500
498
|
} catch {
|
|
501
499
|
}
|
|
502
500
|
break;
|
|
503
501
|
}
|
|
504
502
|
default: {
|
|
505
|
-
g.push([
|
|
503
|
+
g.push([i.field, Me(i.operator), i.value]);
|
|
506
504
|
break;
|
|
507
505
|
}
|
|
508
506
|
}
|
|
@@ -510,15 +508,15 @@ function Dn({
|
|
|
510
508
|
}
|
|
511
509
|
);
|
|
512
510
|
if (!n.length && e.trim() && a.length)
|
|
513
|
-
for (const
|
|
511
|
+
for (const i of a)
|
|
514
512
|
o.push([
|
|
515
|
-
|
|
513
|
+
i.name,
|
|
516
514
|
e.toLowerCase() === e ? "$ilike" : "$like",
|
|
517
515
|
`%${e.trim()}%`
|
|
518
516
|
]);
|
|
519
517
|
return o;
|
|
520
518
|
}
|
|
521
|
-
function
|
|
519
|
+
function _n(e, t) {
|
|
522
520
|
if (t.length === e.length) {
|
|
523
521
|
for (let a = 0; a < t.length; a++)
|
|
524
522
|
for (let n = 0; n < 3; n++)
|
|
@@ -528,24 +526,24 @@ function Ln(e, t) {
|
|
|
528
526
|
}
|
|
529
527
|
return !1;
|
|
530
528
|
}
|
|
531
|
-
function
|
|
529
|
+
function Dn({
|
|
532
530
|
onSearchChange: e,
|
|
533
531
|
attrs: t,
|
|
534
532
|
initialFilters: a = []
|
|
535
533
|
}) {
|
|
536
|
-
const [n, o] = C(""),
|
|
534
|
+
const [n, o] = C(""), i = X(a), { attrsByName: l, stringIndexed: g } = se(() => {
|
|
537
535
|
const s = {}, m = [];
|
|
538
536
|
for (const b of t || [])
|
|
539
537
|
s[b.name] = b, b.isIndex && b.checkedDataType === "string" && m.push(b);
|
|
540
538
|
return { attrsByName: s, stringIndexed: m };
|
|
541
539
|
}, [t]), c = at(
|
|
542
|
-
|
|
543
|
-
const m =
|
|
544
|
-
|
|
540
|
+
wn((s) => {
|
|
541
|
+
const m = On({ query: s, attrsByName: l, stringIndexed: g });
|
|
542
|
+
_n(i.current, m) || (i.current = m, e(m));
|
|
545
543
|
}, 80),
|
|
546
|
-
[
|
|
547
|
-
), p = n.indexOf(":") !== -1 ?
|
|
548
|
-
const m =
|
|
544
|
+
[l, g, i]
|
|
545
|
+
), p = n.indexOf(":") !== -1 ? vn(n.split(" ")) : n, f = (t || []).flatMap((s) => {
|
|
546
|
+
const m = Rn.some(
|
|
549
547
|
([v, k]) => v === s.namespace && k === s.name
|
|
550
548
|
);
|
|
551
549
|
if (s.type === "ref" || m)
|
|
@@ -624,20 +622,20 @@ function Fn({
|
|
|
624
622
|
}
|
|
625
623
|
);
|
|
626
624
|
}
|
|
627
|
-
function
|
|
625
|
+
function Ln(e) {
|
|
628
626
|
const [, t, a] = e["forward-identity"];
|
|
629
627
|
return e.catalog !== "system" || t === "$users" || t === "$files";
|
|
630
628
|
}
|
|
631
|
-
function
|
|
629
|
+
function Fn(e) {
|
|
632
630
|
const t = {}, a = {};
|
|
633
|
-
for (const [o,
|
|
634
|
-
|
|
631
|
+
for (const [o, i] of Object.entries(e))
|
|
632
|
+
Ln(i) && (a[o] = i);
|
|
635
633
|
for (const o of Object.values(a)) {
|
|
636
|
-
const [,
|
|
637
|
-
t[
|
|
634
|
+
const [, i] = o["forward-identity"];
|
|
635
|
+
t[i] || (t[i] = { id: i, name: i, attrs: {} });
|
|
638
636
|
}
|
|
639
637
|
for (const o of Object.values(a)) {
|
|
640
|
-
const
|
|
638
|
+
const i = {
|
|
641
639
|
forward: {
|
|
642
640
|
id: o["forward-identity"][0],
|
|
643
641
|
namespace: o["forward-identity"][1],
|
|
@@ -664,7 +662,7 @@ function zn(e) {
|
|
|
664
662
|
isRequired: o["required?"],
|
|
665
663
|
isPrimary: o["primary?"],
|
|
666
664
|
cardinality: o.cardinality,
|
|
667
|
-
linkConfig:
|
|
665
|
+
linkConfig: i,
|
|
668
666
|
inferredTypes: o["inferred-types"],
|
|
669
667
|
catalog: o.catalog,
|
|
670
668
|
checkedDataType: o["checked-data-type"],
|
|
@@ -675,7 +673,7 @@ function zn(e) {
|
|
|
675
673
|
}
|
|
676
674
|
if (!o["reverse-identity"])
|
|
677
675
|
continue;
|
|
678
|
-
const [
|
|
676
|
+
const [l, g, c, p] = o["reverse-identity"];
|
|
679
677
|
if (t[g] && p !== !1) {
|
|
680
678
|
const f = o.id + "-reverse";
|
|
681
679
|
t[g].attrs[f] = {
|
|
@@ -688,7 +686,7 @@ function zn(e) {
|
|
|
688
686
|
isUniq: o["unique?"],
|
|
689
687
|
isRequired: o["required?"],
|
|
690
688
|
cardinality: o.cardinality,
|
|
691
|
-
linkConfig:
|
|
689
|
+
linkConfig: i,
|
|
692
690
|
sortable: o["index?"] && !!o["checked-data-type"],
|
|
693
691
|
onDelete: o["on-delete"],
|
|
694
692
|
onDeleteReverse: o["on-delete-reverse"],
|
|
@@ -705,21 +703,21 @@ function zn(e) {
|
|
|
705
703
|
function Xt(e, t) {
|
|
706
704
|
return e.name === "id" ? -1 : t.name === "id" ? 1 : e.name < t.name ? -1 : e.name > t.name ? 1 : 0;
|
|
707
705
|
}
|
|
708
|
-
function
|
|
706
|
+
function $n(e, t) {
|
|
709
707
|
const a = {};
|
|
710
|
-
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o,
|
|
708
|
+
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o, i]) => {
|
|
711
709
|
switch (o) {
|
|
712
710
|
case "=":
|
|
713
|
-
return { [n]:
|
|
711
|
+
return { [n]: i };
|
|
714
712
|
case "$isNull":
|
|
715
713
|
return { [n]: { [o]: !0 } };
|
|
716
714
|
default:
|
|
717
|
-
return { [n]: { [o]:
|
|
715
|
+
return { [n]: { [o]: i } };
|
|
718
716
|
}
|
|
719
717
|
})), a;
|
|
720
718
|
}
|
|
721
|
-
function
|
|
722
|
-
const c = g ? "asc" : "desc", p =
|
|
719
|
+
function zn(e, t, a, n, o, i, l, g) {
|
|
720
|
+
const c = g ? "asc" : "desc", p = $n(a, n), f = t ? {
|
|
723
721
|
[t.name]: {
|
|
724
722
|
...Object.fromEntries(
|
|
725
723
|
t.attrs.filter((m) => m.type === "ref").map((m) => [m.name, { $: { fields: ["id"] } }])
|
|
@@ -727,8 +725,8 @@ function Mn(e, t, a, n, o, l, i, g) {
|
|
|
727
725
|
$: {
|
|
728
726
|
...p ? { where: p } : {},
|
|
729
727
|
...o ? { limit: o } : {},
|
|
730
|
-
...
|
|
731
|
-
order: { [
|
|
728
|
+
...i ? { offset: i } : {},
|
|
729
|
+
order: { [l]: c }
|
|
732
730
|
}
|
|
733
731
|
}
|
|
734
732
|
} : {}, d = e.useQuery(f), s = e.useQuery(
|
|
@@ -746,13 +744,13 @@ function Mn(e, t, a, n, o, l, i, g) {
|
|
|
746
744
|
allCount: s
|
|
747
745
|
};
|
|
748
746
|
}
|
|
749
|
-
function
|
|
747
|
+
function jn(e) {
|
|
750
748
|
const [t, a] = C({ namespaces: null, attrs: null });
|
|
751
749
|
return e.useQuery({ ____explorer___: {} }), H(() => {
|
|
752
750
|
function n(o) {
|
|
753
751
|
a({
|
|
754
752
|
attrs: o,
|
|
755
|
-
namespaces:
|
|
753
|
+
namespaces: Fn(o)
|
|
756
754
|
});
|
|
757
755
|
}
|
|
758
756
|
return e._core._reactor.subscribeAttrs(n);
|
|
@@ -767,7 +765,7 @@ const Zt = (e) => {
|
|
|
767
765
|
} catch (a) {
|
|
768
766
|
return console.error("Failed to parse column visibility", a), {};
|
|
769
767
|
}
|
|
770
|
-
},
|
|
768
|
+
}, Mn = (e) => {
|
|
771
769
|
const [t, a] = C(
|
|
772
770
|
Zt(e.appId)
|
|
773
771
|
);
|
|
@@ -789,7 +787,7 @@ function Qt(e) {
|
|
|
789
787
|
} catch {
|
|
790
788
|
}
|
|
791
789
|
}
|
|
792
|
-
function
|
|
790
|
+
function Bn(e, t) {
|
|
793
791
|
if (typeof window > "u")
|
|
794
792
|
throw new Error("useLocalStorage/setState needs to run on the client");
|
|
795
793
|
const a = JSON.stringify(t);
|
|
@@ -803,22 +801,22 @@ function Pn(e, t) {
|
|
|
803
801
|
new StorageEvent("storage", { key: e, newValue: a })
|
|
804
802
|
);
|
|
805
803
|
}
|
|
806
|
-
function
|
|
807
|
-
const a = X(Qt(e) || t), n = at((
|
|
808
|
-
const
|
|
809
|
-
a.current = Qt(e) || t,
|
|
804
|
+
function Un(e, t) {
|
|
805
|
+
const a = X(Qt(e) || t), n = at((i) => {
|
|
806
|
+
const l = () => {
|
|
807
|
+
a.current = Qt(e) || t, i();
|
|
810
808
|
};
|
|
811
|
-
return window.addEventListener("storage",
|
|
812
|
-
window.removeEventListener("storage",
|
|
809
|
+
return window.addEventListener("storage", l), () => {
|
|
810
|
+
window.removeEventListener("storage", l);
|
|
813
811
|
};
|
|
814
812
|
}, []);
|
|
815
|
-
return [
|
|
813
|
+
return [Ia(
|
|
816
814
|
n,
|
|
817
815
|
() => a.current,
|
|
818
816
|
() => t
|
|
819
|
-
), (
|
|
817
|
+
), (i) => Bn(e, i)];
|
|
820
818
|
}
|
|
821
|
-
function
|
|
819
|
+
function Pn(e) {
|
|
822
820
|
const t = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
|
|
823
821
|
let a = 0;
|
|
824
822
|
if (!e) return "0 bytes";
|
|
@@ -826,44 +824,44 @@ function Gn(e) {
|
|
|
826
824
|
e /= 1024, a++;
|
|
827
825
|
return e.toFixed(2) + " " + t[a];
|
|
828
826
|
}
|
|
829
|
-
const
|
|
827
|
+
const qn = (e, t) => {
|
|
830
828
|
const a = document.querySelector(`.th-${e}`);
|
|
831
829
|
if (!a)
|
|
832
830
|
throw new Error(`Element with class th-${e} not found`);
|
|
833
831
|
const n = document.querySelectorAll(`span.td-${e}`), o = document.createElement("div");
|
|
834
832
|
o.style.position = "absolute", o.style.visibility = "hidden", o.style.top = "-9999px", o.style.left = "-9999px", o.style.width = "auto", o.style.whiteSpace = "nowrap", document.body.appendChild(o);
|
|
835
833
|
try {
|
|
836
|
-
const
|
|
837
|
-
|
|
838
|
-
const
|
|
834
|
+
const i = a.cloneNode(!0);
|
|
835
|
+
i.style.display = "inline-block", i.style.overflow = "visible", i.style.width = "auto", i.style.maxWidth = "none", i.style.whiteSpace = "nowrap", o.appendChild(i);
|
|
836
|
+
const l = i.scrollWidth, g = Array.from(n).map((d) => {
|
|
839
837
|
const u = d.cloneNode(!0);
|
|
840
838
|
u.style.display = "inline-block", u.style.overflow = "visible", u.style.width = "auto", u.style.maxWidth = "none", u.style.whiteSpace = "nowrap", o.appendChild(u);
|
|
841
839
|
const s = u.scrollWidth;
|
|
842
840
|
return o.removeChild(u), s;
|
|
843
|
-
}), c = g.length > 0 ? Math.max(...g) : 0, f = Math.max(
|
|
841
|
+
}), c = g.length > 0 ? Math.max(...g) : 0, f = Math.max(l, c) + 12;
|
|
844
842
|
return Math.min(f, t);
|
|
845
843
|
} finally {
|
|
846
844
|
document.body.removeChild(o);
|
|
847
845
|
}
|
|
848
846
|
};
|
|
849
|
-
function
|
|
847
|
+
function Gn() {
|
|
850
848
|
const e = X(null), [t, a] = C(!1);
|
|
851
849
|
return vt(() => {
|
|
852
850
|
const { current: n } = e;
|
|
853
851
|
n && (() => {
|
|
854
|
-
const
|
|
855
|
-
a(
|
|
852
|
+
const i = n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight;
|
|
853
|
+
a(i);
|
|
856
854
|
})();
|
|
857
855
|
}, [e]), { ref: e, isOverflow: t, setIsOverflow: a };
|
|
858
856
|
}
|
|
859
|
-
const
|
|
857
|
+
const Hn = ({
|
|
860
858
|
header: e,
|
|
861
859
|
table: t,
|
|
862
860
|
headerGroup: a,
|
|
863
861
|
index: n,
|
|
864
862
|
setMinViableColWidth: o,
|
|
865
|
-
onSort:
|
|
866
|
-
currentSortAttr:
|
|
863
|
+
onSort: i,
|
|
864
|
+
currentSortAttr: l,
|
|
867
865
|
currentSortAsc: g
|
|
868
866
|
}) => {
|
|
869
867
|
const {
|
|
@@ -885,7 +883,7 @@ const Vn = ({
|
|
|
885
883
|
whiteSpace: "nowrap",
|
|
886
884
|
width: e.column.getSize(),
|
|
887
885
|
zIndex: f ? 1 : 0
|
|
888
|
-
}, w = !!e.column.columnDef?.meta?.sortable, v = typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : "", k =
|
|
886
|
+
}, w = !!e.column.columnDef?.meta?.sortable, v = typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : "", k = l === v || l === "serverCreatedAt" && v === "id";
|
|
889
887
|
return /* @__PURE__ */ h(
|
|
890
888
|
"div",
|
|
891
889
|
{
|
|
@@ -918,7 +916,7 @@ const Vn = ({
|
|
|
918
916
|
{
|
|
919
917
|
className: "relative z-50 flex items-center gap-1 py-2 pr-5",
|
|
920
918
|
onClick: () => {
|
|
921
|
-
|
|
919
|
+
i && i(v === "id" ? "serverCreatedAt" : v, l, g);
|
|
922
920
|
},
|
|
923
921
|
children: [
|
|
924
922
|
/* @__PURE__ */ r("span", { className: O(k && "underline"), children: e.isPlaceholder ? null : ot(
|
|
@@ -933,7 +931,7 @@ const Vn = ({
|
|
|
933
931
|
opacity: k ? 1 : void 0,
|
|
934
932
|
fontWeight: k ? "bold" : "normal"
|
|
935
933
|
},
|
|
936
|
-
children: k ? g ? /* @__PURE__ */ r(
|
|
934
|
+
children: k ? g ? /* @__PURE__ */ r(ma, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(ba, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(wa, { strokeWidth: 3, width: 10 })
|
|
937
935
|
}
|
|
938
936
|
)
|
|
939
937
|
]
|
|
@@ -967,11 +965,11 @@ const Vn = ({
|
|
|
967
965
|
},
|
|
968
966
|
e.id
|
|
969
967
|
);
|
|
970
|
-
},
|
|
971
|
-
const t = e.column.getIsResizing(), { history: a } = dt(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef:
|
|
968
|
+
}, Wn = ({ cell: e }) => {
|
|
969
|
+
const t = e.column.getIsResizing(), { history: a } = dt(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: i, transform: l } = Sr({
|
|
972
970
|
id: e.column.id,
|
|
973
971
|
disabled: e.column.id === "select-col"
|
|
974
|
-
}), [g, c] = C(!1), { ref: p, isOverflow: f, setIsOverflow: d } =
|
|
972
|
+
}), [g, c] = C(!1), { ref: p, isOverflow: f, setIsOverflow: d } = Gn(), u = (f || Ne(e.getValue())) && !n?.isLink;
|
|
975
973
|
H(() => {
|
|
976
974
|
const w = new ResizeObserver(() => {
|
|
977
975
|
const v = p.current.scrollWidth > p.current.clientWidth || p.current.scrollHeight > p.current.clientHeight;
|
|
@@ -984,7 +982,7 @@ const Vn = ({
|
|
|
984
982
|
const s = {
|
|
985
983
|
opacity: o ? 0.8 : 1,
|
|
986
984
|
position: "relative",
|
|
987
|
-
transform: e.column.id === "select-col" ? void 0 : Nr.Translate.toString(
|
|
985
|
+
transform: e.column.id === "select-col" ? void 0 : Nr.Translate.toString(l),
|
|
988
986
|
// translate instead of transform to avoid squishing
|
|
989
987
|
transition: "width transform 0.2s ease-in-out",
|
|
990
988
|
width: e.column.getSize(),
|
|
@@ -996,7 +994,7 @@ const Vn = ({
|
|
|
996
994
|
"div",
|
|
997
995
|
{
|
|
998
996
|
ref: (w) => {
|
|
999
|
-
|
|
997
|
+
i(w), p.current = w;
|
|
1000
998
|
},
|
|
1001
999
|
style: {
|
|
1002
1000
|
...s,
|
|
@@ -1034,7 +1032,7 @@ const Vn = ({
|
|
|
1034
1032
|
{
|
|
1035
1033
|
className: O(Ne(b) && "p-0"),
|
|
1036
1034
|
side: "bottom",
|
|
1037
|
-
children: typeof b == "string" ? ot(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(
|
|
1035
|
+
children: typeof b == "string" ? ot(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(Vn, { pretty: !0, data: b })
|
|
1038
1036
|
}
|
|
1039
1037
|
)
|
|
1040
1038
|
] });
|
|
@@ -1042,7 +1040,7 @@ const Vn = ({
|
|
|
1042
1040
|
function Ar(e, t) {
|
|
1043
1041
|
return Ne(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
1044
1042
|
}
|
|
1045
|
-
function
|
|
1043
|
+
function Vn({ data: e, pretty: t }) {
|
|
1046
1044
|
const a = Ar(e, t), n = de();
|
|
1047
1045
|
return t && Ne(e) ? /* @__PURE__ */ r(
|
|
1048
1046
|
Dt,
|
|
@@ -1053,7 +1051,7 @@ function Kn({ data: e, pretty: t }) {
|
|
|
1053
1051
|
}
|
|
1054
1052
|
) : /* @__PURE__ */ r(M, { children: a });
|
|
1055
1053
|
}
|
|
1056
|
-
const
|
|
1054
|
+
const Yn = ({
|
|
1057
1055
|
visiblity: e,
|
|
1058
1056
|
localDates: t,
|
|
1059
1057
|
setLocalDates: a
|
|
@@ -1063,7 +1061,7 @@ const Xn = ({
|
|
|
1063
1061
|
/* @__PURE__ */ r(
|
|
1064
1062
|
gt,
|
|
1065
1063
|
{
|
|
1066
|
-
icon: /* @__PURE__ */ r(
|
|
1064
|
+
icon: /* @__PURE__ */ r(va, { width: 16 }),
|
|
1067
1065
|
label: "View Settings",
|
|
1068
1066
|
onClick: () => o(!0)
|
|
1069
1067
|
}
|
|
@@ -1071,7 +1069,6 @@ const Xn = ({
|
|
|
1071
1069
|
/* @__PURE__ */ h(
|
|
1072
1070
|
fe,
|
|
1073
1071
|
{
|
|
1074
|
-
title: "Explorer View Settings",
|
|
1075
1072
|
hideCloseButton: !0,
|
|
1076
1073
|
onClose: () => o(!1),
|
|
1077
1074
|
open: n,
|
|
@@ -1082,17 +1079,17 @@ const Xn = ({
|
|
|
1082
1079
|
] }),
|
|
1083
1080
|
/* @__PURE__ */ h("div", { className: "py-2", children: [
|
|
1084
1081
|
/* @__PURE__ */ r("div", { children: "Visible Columns" }),
|
|
1085
|
-
/* @__PURE__ */ r("div", { className: "py-1", children: e.attrs?.map((
|
|
1082
|
+
/* @__PURE__ */ r("div", { className: "py-1", children: e.attrs?.map((i) => /* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1086
1083
|
ee,
|
|
1087
1084
|
{
|
|
1088
|
-
label:
|
|
1089
|
-
checked: e.visibility[
|
|
1090
|
-
onChange: (
|
|
1085
|
+
label: i.name,
|
|
1086
|
+
checked: e.visibility[i.id + i.name] !== !1,
|
|
1087
|
+
onChange: (l) => e.setVisibility((g) => ({
|
|
1091
1088
|
...g,
|
|
1092
|
-
[
|
|
1089
|
+
[i.id + i.name]: l
|
|
1093
1090
|
}))
|
|
1094
1091
|
}
|
|
1095
|
-
) },
|
|
1092
|
+
) }, i.id + i.name)) })
|
|
1096
1093
|
] }),
|
|
1097
1094
|
/* @__PURE__ */ r(ht, { className: "py-2" }),
|
|
1098
1095
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1100,7 +1097,7 @@ const Xn = ({
|
|
|
1100
1097
|
/* @__PURE__ */ r(
|
|
1101
1098
|
Yr,
|
|
1102
1099
|
{
|
|
1103
|
-
onClick: (
|
|
1100
|
+
onClick: (i) => {
|
|
1104
1101
|
a(!t);
|
|
1105
1102
|
},
|
|
1106
1103
|
checked: t
|
|
@@ -1113,17 +1110,17 @@ const Xn = ({
|
|
|
1113
1110
|
)
|
|
1114
1111
|
] });
|
|
1115
1112
|
};
|
|
1116
|
-
async function
|
|
1113
|
+
async function Kn({
|
|
1117
1114
|
appId: e,
|
|
1118
1115
|
attrId: t,
|
|
1119
1116
|
jobType: a,
|
|
1120
1117
|
checkedDataType: n,
|
|
1121
1118
|
apiURI: o
|
|
1122
|
-
},
|
|
1119
|
+
}, i) {
|
|
1123
1120
|
return (await (await fetch(`${o}/dash/apps/${e}/indexing-jobs`, {
|
|
1124
1121
|
method: "POST",
|
|
1125
1122
|
headers: {
|
|
1126
|
-
authorization: `Bearer ${
|
|
1123
|
+
authorization: `Bearer ${i}`,
|
|
1127
1124
|
"content-type": "application/json"
|
|
1128
1125
|
},
|
|
1129
1126
|
body: JSON.stringify({
|
|
@@ -1135,14 +1132,14 @@ async function Zn({
|
|
|
1135
1132
|
})).json()).job;
|
|
1136
1133
|
}
|
|
1137
1134
|
function Rr(e, t, a, n) {
|
|
1138
|
-
let o = !1,
|
|
1135
|
+
let o = !1, i = !1, l = 20, g = null;
|
|
1139
1136
|
const c = (f) => {
|
|
1140
1137
|
if (f !== g)
|
|
1141
|
-
return
|
|
1142
|
-
const d =
|
|
1143
|
-
return
|
|
1138
|
+
return l = 20, g = f, l;
|
|
1139
|
+
const d = l;
|
|
1140
|
+
return l = Math.min(1e4, l * 2), d;
|
|
1144
1141
|
}, p = async (f) => {
|
|
1145
|
-
for (; !o && !
|
|
1142
|
+
for (; !o && !i; )
|
|
1146
1143
|
try {
|
|
1147
1144
|
const u = await (await fetch(
|
|
1148
1145
|
`${n}/dash/apps/${e}/indexing-jobs/${t}`,
|
|
@@ -1152,7 +1149,7 @@ function Rr(e, t, a, n) {
|
|
|
1152
1149
|
return m;
|
|
1153
1150
|
await new Promise((b) => setTimeout(b, c(u)));
|
|
1154
1151
|
} catch (d) {
|
|
1155
|
-
console.error("Job polling error:", d),
|
|
1152
|
+
console.error("Job polling error:", d), i = !0, f(null, d);
|
|
1156
1153
|
}
|
|
1157
1154
|
};
|
|
1158
1155
|
return {
|
|
@@ -1168,14 +1165,14 @@ function me(e) {
|
|
|
1168
1165
|
function be(e) {
|
|
1169
1166
|
return e.job_status === "completed" || e.job_status === "errored";
|
|
1170
1167
|
}
|
|
1171
|
-
const
|
|
1168
|
+
const Xn = ({
|
|
1172
1169
|
attr: e,
|
|
1173
1170
|
appId: t,
|
|
1174
1171
|
isRequired: a,
|
|
1175
1172
|
isIndexed: n,
|
|
1176
1173
|
isUnique: o,
|
|
1177
|
-
checkedDataType:
|
|
1178
|
-
token:
|
|
1174
|
+
checkedDataType: i,
|
|
1175
|
+
token: l
|
|
1179
1176
|
}) => {
|
|
1180
1177
|
const [g, c] = C({}), [p, f] = C({}), [d, u] = C({}), s = de();
|
|
1181
1178
|
H(() => {
|
|
@@ -1190,14 +1187,14 @@ const Qn = ({
|
|
|
1190
1187
|
})), o === e.isUniq ? c((x) => ({ ...x, unique: void 0 })) : o ? c((x) => ({ ...x, unique: { jobType: "unique" } })) : o || c((x) => ({
|
|
1191
1188
|
...x,
|
|
1192
1189
|
unique: { jobType: "remove-unique" }
|
|
1193
|
-
})),
|
|
1190
|
+
})), i === (e.checkedDataType || "any") ? c((x) => ({ ...x, type: void 0 })) : c(i === "any" ? (x) => ({
|
|
1194
1191
|
...x,
|
|
1195
1192
|
type: { jobType: "remove-data-type" }
|
|
1196
1193
|
}) : (x) => ({
|
|
1197
1194
|
...x,
|
|
1198
|
-
type: { jobType: "check-data-type", checkedDataType:
|
|
1195
|
+
type: { jobType: "check-data-type", checkedDataType: i }
|
|
1199
1196
|
})));
|
|
1200
|
-
}, [a, n, o,
|
|
1197
|
+
}, [a, n, o, i, e, p]);
|
|
1201
1198
|
const [m, b] = C(!1), w = async () => {
|
|
1202
1199
|
m || (f({}), b(!0), Object.entries(g).forEach(async ([k, x]) => {
|
|
1203
1200
|
if (!x) return;
|
|
@@ -1206,7 +1203,7 @@ const Qn = ({
|
|
|
1206
1203
|
{
|
|
1207
1204
|
method: "POST",
|
|
1208
1205
|
headers: {
|
|
1209
|
-
authorization: `Bearer ${
|
|
1206
|
+
authorization: `Bearer ${l}`,
|
|
1210
1207
|
"content-type": "application/json"
|
|
1211
1208
|
},
|
|
1212
1209
|
body: JSON.stringify({
|
|
@@ -1221,7 +1218,7 @@ const Qn = ({
|
|
|
1221
1218
|
const B = Rr(
|
|
1222
1219
|
t,
|
|
1223
1220
|
P.job.id,
|
|
1224
|
-
|
|
1221
|
+
l,
|
|
1225
1222
|
s.apiURI
|
|
1226
1223
|
);
|
|
1227
1224
|
await B.start((L, q) => {
|
|
@@ -1247,64 +1244,64 @@ const Qn = ({
|
|
|
1247
1244
|
running: p,
|
|
1248
1245
|
apply: w
|
|
1249
1246
|
};
|
|
1250
|
-
},
|
|
1247
|
+
}, Zn = () => {
|
|
1251
1248
|
const [e, t] = C({});
|
|
1252
1249
|
return {
|
|
1253
1250
|
notes: e,
|
|
1254
|
-
setNote: (o,
|
|
1255
|
-
t((
|
|
1251
|
+
setNote: (o, i) => {
|
|
1252
|
+
t((l) => ({ ...l, [o]: { message: i } }));
|
|
1256
1253
|
},
|
|
1257
1254
|
removeNote: (o) => {
|
|
1258
|
-
t((
|
|
1259
|
-
const
|
|
1260
|
-
return delete
|
|
1255
|
+
t((i) => {
|
|
1256
|
+
const l = { ...i };
|
|
1257
|
+
return delete l[o], l;
|
|
1261
1258
|
});
|
|
1262
1259
|
}
|
|
1263
1260
|
};
|
|
1264
|
-
},
|
|
1261
|
+
}, Qn = (e, t, a) => {
|
|
1265
1262
|
const n = t.name, o = [];
|
|
1266
|
-
return t.attrs.forEach((
|
|
1263
|
+
return t.attrs.forEach((i) => {
|
|
1267
1264
|
o.push([
|
|
1268
1265
|
"update-attr",
|
|
1269
1266
|
{
|
|
1270
|
-
id:
|
|
1267
|
+
id: i.id,
|
|
1271
1268
|
"forward-identity": [
|
|
1272
|
-
|
|
1269
|
+
i.linkConfig.forward.id,
|
|
1273
1270
|
e,
|
|
1274
|
-
|
|
1271
|
+
i.linkConfig.forward.attr
|
|
1275
1272
|
]
|
|
1276
1273
|
}
|
|
1277
1274
|
]);
|
|
1278
|
-
}), a.forEach((
|
|
1279
|
-
|
|
1280
|
-
|
|
1275
|
+
}), a.forEach((i) => {
|
|
1276
|
+
i.attrs.forEach((l) => {
|
|
1277
|
+
l.linkConfig.reverse?.namespace === n && o.push([
|
|
1281
1278
|
"update-attr",
|
|
1282
1279
|
{
|
|
1283
|
-
id:
|
|
1280
|
+
id: l.id,
|
|
1284
1281
|
"reverse-identity": [
|
|
1285
|
-
|
|
1282
|
+
l.linkConfig.reverse.id,
|
|
1286
1283
|
e,
|
|
1287
|
-
|
|
1284
|
+
l.linkConfig.reverse.attr
|
|
1288
1285
|
]
|
|
1289
1286
|
}
|
|
1290
1287
|
]);
|
|
1291
1288
|
});
|
|
1292
1289
|
}), o;
|
|
1293
1290
|
};
|
|
1294
|
-
function
|
|
1291
|
+
function Jn({
|
|
1295
1292
|
db: e,
|
|
1296
1293
|
namespace: t,
|
|
1297
1294
|
namespaces: a,
|
|
1298
1295
|
onClose: n,
|
|
1299
1296
|
isSystemCatalogNs: o
|
|
1300
1297
|
}) {
|
|
1301
|
-
const
|
|
1298
|
+
const l = de().appId, { history: g } = dt(), { mutate: c } = yr(), [p, f] = C({ type: "main" }), [d, u] = C(t.name), [s, m] = C(
|
|
1302
1299
|
null
|
|
1303
1300
|
);
|
|
1304
1301
|
async function b() {
|
|
1305
1302
|
const x = t.attrs.map((_) => ["delete-attr", _.id]);
|
|
1306
1303
|
await e.core._reactor.pushOps(x), setTimeout(() => {
|
|
1307
|
-
c(["recently-deleted",
|
|
1304
|
+
c(["recently-deleted", l]);
|
|
1308
1305
|
}, 500), n({ ok: !0 });
|
|
1309
1306
|
}
|
|
1310
1307
|
async function w(x) {
|
|
@@ -1312,7 +1309,7 @@ function to({
|
|
|
1312
1309
|
m("Namespace name cannot start with $");
|
|
1313
1310
|
return;
|
|
1314
1311
|
}
|
|
1315
|
-
const _ =
|
|
1312
|
+
const _ = Qn(x, t, a);
|
|
1316
1313
|
await e.core._reactor.pushOps(_), g.push(
|
|
1317
1314
|
{
|
|
1318
1315
|
namespace: x
|
|
@@ -1320,7 +1317,7 @@ function to({
|
|
|
1320
1317
|
!0
|
|
1321
1318
|
), oe("Renamed namespace to " + x), u(""), f({ type: "main" });
|
|
1322
1319
|
}
|
|
1323
|
-
const v =
|
|
1320
|
+
const v = Zn(), k = se(() => p.type === "edit" && t.attrs.find(
|
|
1324
1321
|
(x) => x.id === p.attrId && x.isForward === p.isForward
|
|
1325
1322
|
), [
|
|
1326
1323
|
p.type === "edit" ? p.attrId : null,
|
|
@@ -1394,7 +1391,7 @@ function to({
|
|
|
1394
1391
|
onClick: () => {
|
|
1395
1392
|
f({ type: "rename" });
|
|
1396
1393
|
},
|
|
1397
|
-
icon: /* @__PURE__ */ r(
|
|
1394
|
+
icon: /* @__PURE__ */ r(Pa, { className: "h-4 w-4 opacity-50" }),
|
|
1398
1395
|
label: "Rename"
|
|
1399
1396
|
}
|
|
1400
1397
|
),
|
|
@@ -1456,16 +1453,16 @@ function to({
|
|
|
1456
1453
|
}
|
|
1457
1454
|
) }),
|
|
1458
1455
|
/* @__PURE__ */ r(
|
|
1459
|
-
|
|
1456
|
+
En,
|
|
1460
1457
|
{
|
|
1461
1458
|
notes: v,
|
|
1462
1459
|
db: e,
|
|
1463
|
-
appId:
|
|
1460
|
+
appId: l,
|
|
1464
1461
|
namespace: t
|
|
1465
1462
|
}
|
|
1466
1463
|
)
|
|
1467
1464
|
] }) : p.type === "add" ? /* @__PURE__ */ r(
|
|
1468
|
-
|
|
1465
|
+
eo,
|
|
1469
1466
|
{
|
|
1470
1467
|
db: e,
|
|
1471
1468
|
namespace: t,
|
|
@@ -1485,7 +1482,7 @@ function to({
|
|
|
1485
1482
|
onConfirm: b
|
|
1486
1483
|
}
|
|
1487
1484
|
) : p.type === "edit" && k ? /* @__PURE__ */ r(
|
|
1488
|
-
|
|
1485
|
+
co,
|
|
1489
1486
|
{
|
|
1490
1487
|
db: e,
|
|
1491
1488
|
attr: k,
|
|
@@ -1539,14 +1536,14 @@ function Tr({
|
|
|
1539
1536
|
] })
|
|
1540
1537
|
] });
|
|
1541
1538
|
}
|
|
1542
|
-
function
|
|
1539
|
+
function eo({
|
|
1543
1540
|
db: e,
|
|
1544
1541
|
namespace: t,
|
|
1545
1542
|
namespaces: a,
|
|
1546
1543
|
onClose: n,
|
|
1547
1544
|
constraints: o
|
|
1548
1545
|
}) {
|
|
1549
|
-
const [
|
|
1546
|
+
const [i, l] = C(!1), [g, c] = C(!1), [p, f] = C(!1), [d, u] = C(!1), [s, m] = C(!1), [b, w] = C(null), [v, k] = C("blob"), [x, _] = C("many-many"), [P, B] = C(() => a.find((A) => A.name !== t.name) ?? a[0]), [L, q] = C(""), [G, Y] = C(t.name), z = x === "one-one" || x === "one-many", j = x === "one-one" || x === "many-one", S = _r({
|
|
1550
1547
|
attrName: L,
|
|
1551
1548
|
reverseAttrName: G,
|
|
1552
1549
|
namespaceName: t.name,
|
|
@@ -1566,7 +1563,7 @@ function ro({
|
|
|
1566
1563
|
cardinality: "one",
|
|
1567
1564
|
"unique?": p,
|
|
1568
1565
|
"index?": g,
|
|
1569
|
-
"required?":
|
|
1566
|
+
"required?": i,
|
|
1570
1567
|
"checked-data-type": b ?? void 0
|
|
1571
1568
|
}]];
|
|
1572
1569
|
await e._core._reactor.pushOps(D), n();
|
|
@@ -1579,7 +1576,7 @@ function ro({
|
|
|
1579
1576
|
"reverse-identity": [je(), P.name, G],
|
|
1580
1577
|
"value-type": "ref",
|
|
1581
1578
|
"index?": !1,
|
|
1582
|
-
"required?":
|
|
1579
|
+
"required?": i,
|
|
1583
1580
|
"on-delete": z && d ? "cascade" : void 0,
|
|
1584
1581
|
"on-delete-reverse": j && s ? "cascade" : void 0
|
|
1585
1582
|
}]];
|
|
@@ -1617,8 +1614,8 @@ function ro({
|
|
|
1617
1614
|
ee,
|
|
1618
1615
|
{
|
|
1619
1616
|
disabled: o.require.disabled,
|
|
1620
|
-
checked:
|
|
1621
|
-
onChange: (A) =>
|
|
1617
|
+
checked: i,
|
|
1618
|
+
onChange: (A) => l(A),
|
|
1622
1619
|
label: /* @__PURE__ */ h("span", { children: [
|
|
1623
1620
|
/* @__PURE__ */ r("strong", { children: "Require this attribute" }),
|
|
1624
1621
|
" so all entities will be guaranteed to have it"
|
|
@@ -1722,8 +1719,8 @@ function ro({
|
|
|
1722
1719
|
isCascadeReverseAllowed: j,
|
|
1723
1720
|
isCascadeReverse: s,
|
|
1724
1721
|
setIsCascadeReverse: m,
|
|
1725
|
-
isRequired:
|
|
1726
|
-
setIsRequired:
|
|
1722
|
+
isRequired: i,
|
|
1723
|
+
setIsRequired: l,
|
|
1727
1724
|
constraints: o
|
|
1728
1725
|
}
|
|
1729
1726
|
)
|
|
@@ -1910,8 +1907,8 @@ function Or({
|
|
|
1910
1907
|
namespaceName: a,
|
|
1911
1908
|
reverseNamespaceName: n,
|
|
1912
1909
|
relationship: o,
|
|
1913
|
-
setAttrName:
|
|
1914
|
-
setReverseAttrName:
|
|
1910
|
+
setAttrName: i,
|
|
1911
|
+
setReverseAttrName: l,
|
|
1915
1912
|
setRelationship: g,
|
|
1916
1913
|
isCascade: c,
|
|
1917
1914
|
setIsCascade: p,
|
|
@@ -1934,7 +1931,7 @@ function Or({
|
|
|
1934
1931
|
disabled: w.attr.disabled,
|
|
1935
1932
|
title: w.attr.message,
|
|
1936
1933
|
value: e,
|
|
1937
|
-
onChange: (k) =>
|
|
1934
|
+
onChange: (k) => i(k)
|
|
1938
1935
|
}
|
|
1939
1936
|
),
|
|
1940
1937
|
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(M, { children: [
|
|
@@ -1956,7 +1953,7 @@ function Or({
|
|
|
1956
1953
|
disabled: w.attr.disabled,
|
|
1957
1954
|
title: w.attr.message,
|
|
1958
1955
|
value: t,
|
|
1959
|
-
onChange: (k) =>
|
|
1956
|
+
onChange: (k) => l(k)
|
|
1960
1957
|
}
|
|
1961
1958
|
),
|
|
1962
1959
|
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(M, { children: [
|
|
@@ -1974,7 +1971,7 @@ function Or({
|
|
|
1974
1971
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1975
1972
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Relationship" }),
|
|
1976
1973
|
/* @__PURE__ */ r(
|
|
1977
|
-
|
|
1974
|
+
to,
|
|
1978
1975
|
{
|
|
1979
1976
|
disabled: !v || w.attr.disabled,
|
|
1980
1977
|
value: o,
|
|
@@ -1992,7 +1989,7 @@ function Or({
|
|
|
1992
1989
|
"div",
|
|
1993
1990
|
{
|
|
1994
1991
|
className: "text-xs wrap-break-word text-gray-500 dark:text-neutral-400",
|
|
1995
|
-
children: v ?
|
|
1992
|
+
children: v ? ro[o](
|
|
1996
1993
|
a,
|
|
1997
1994
|
n,
|
|
1998
1995
|
e,
|
|
@@ -2063,14 +2060,14 @@ function Or({
|
|
|
2063
2060
|
] })
|
|
2064
2061
|
] });
|
|
2065
2062
|
}
|
|
2066
|
-
function
|
|
2063
|
+
function to({
|
|
2067
2064
|
value: e,
|
|
2068
2065
|
disabled: t,
|
|
2069
2066
|
onChange: a,
|
|
2070
2067
|
namespace: n,
|
|
2071
2068
|
attr: o,
|
|
2072
|
-
reverseNamespace:
|
|
2073
|
-
reverseAttr:
|
|
2069
|
+
reverseNamespace: i,
|
|
2070
|
+
reverseAttr: l,
|
|
2074
2071
|
title: g
|
|
2075
2072
|
}) {
|
|
2076
2073
|
return /* @__PURE__ */ r(
|
|
@@ -2091,11 +2088,11 @@ function ao({
|
|
|
2091
2088
|
value: "one-one"
|
|
2092
2089
|
},
|
|
2093
2090
|
{
|
|
2094
|
-
label: `${n} has-many ${o || "---"} / ${
|
|
2091
|
+
label: `${n} has-many ${o || "---"} / ${i} has-one ${l || "---"}`,
|
|
2095
2092
|
value: "many-one"
|
|
2096
2093
|
},
|
|
2097
2094
|
{
|
|
2098
|
-
label: `${n} has-one ${o || "---"} / ${
|
|
2095
|
+
label: `${n} has-one ${o || "---"} / ${i} has-many ${l || "---"}`,
|
|
2099
2096
|
value: "one-many"
|
|
2100
2097
|
}
|
|
2101
2098
|
],
|
|
@@ -2103,7 +2100,7 @@ function ao({
|
|
|
2103
2100
|
}
|
|
2104
2101
|
);
|
|
2105
2102
|
}
|
|
2106
|
-
const
|
|
2103
|
+
const ro = {
|
|
2107
2104
|
"many-many": (e, t, a, n) => /* @__PURE__ */ h(M, { children: [
|
|
2108
2105
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2109
2106
|
" can have many ",
|
|
@@ -2147,32 +2144,32 @@ const no = {
|
|
|
2147
2144
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2148
2145
|
] })
|
|
2149
2146
|
};
|
|
2150
|
-
async function
|
|
2147
|
+
async function ao({
|
|
2151
2148
|
appId: e,
|
|
2152
2149
|
attr: t,
|
|
2153
2150
|
isRequired: a,
|
|
2154
2151
|
authToken: n,
|
|
2155
2152
|
setIndexingJob: o,
|
|
2156
|
-
stopFetchLoop:
|
|
2157
|
-
apiURI:
|
|
2153
|
+
stopFetchLoop: i,
|
|
2154
|
+
apiURI: l
|
|
2158
2155
|
}) {
|
|
2159
2156
|
if (!n || a === t.isRequired)
|
|
2160
2157
|
return;
|
|
2161
|
-
|
|
2158
|
+
i.current?.();
|
|
2162
2159
|
const g = `${t.namespace}.${t.name}`;
|
|
2163
2160
|
try {
|
|
2164
|
-
const c = await
|
|
2161
|
+
const c = await Kn(
|
|
2165
2162
|
{
|
|
2166
2163
|
appId: e,
|
|
2167
2164
|
attrId: t.id,
|
|
2168
2165
|
jobType: a ? "required" : "remove-required",
|
|
2169
|
-
apiURI:
|
|
2166
|
+
apiURI: l
|
|
2170
2167
|
},
|
|
2171
2168
|
n
|
|
2172
2169
|
);
|
|
2173
2170
|
o(c);
|
|
2174
|
-
const p = Rr(e, c.id, n,
|
|
2175
|
-
|
|
2171
|
+
const p = Rr(e, c.id, n, l);
|
|
2172
|
+
i.current = p.stop;
|
|
2176
2173
|
const f = await p.start((d, u) => {
|
|
2177
2174
|
u && ie(`Error while marking ${g} as required.`), d && o(d);
|
|
2178
2175
|
});
|
|
@@ -2190,18 +2187,18 @@ async function oo({
|
|
|
2190
2187
|
return console.error(c), ie(`Unexpected error while updating ${g}`), "errored";
|
|
2191
2188
|
}
|
|
2192
2189
|
}
|
|
2193
|
-
const
|
|
2190
|
+
const no = ({
|
|
2194
2191
|
pendingJob: e,
|
|
2195
2192
|
runningJob: t,
|
|
2196
2193
|
value: a,
|
|
2197
2194
|
setValue: n,
|
|
2198
2195
|
disabled: o,
|
|
2199
|
-
disabledReason:
|
|
2200
|
-
attr:
|
|
2196
|
+
disabledReason: i,
|
|
2197
|
+
attr: l
|
|
2201
2198
|
}) => {
|
|
2202
2199
|
const g = !t || be(t), c = We();
|
|
2203
2200
|
return H(() => {
|
|
2204
|
-
t && me(t) && n(
|
|
2201
|
+
t && me(t) && n(l.checkedDataType || "any");
|
|
2205
2202
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2206
2203
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ h("h6", { className: "text-md font-bold", children: [
|
|
2207
2204
|
"Enforce type",
|
|
@@ -2216,7 +2213,7 @@ const io = ({
|
|
|
2216
2213
|
e && "border-[#606AF4] ring-1 ring-[#606AF4] ring-inset focus:ring-[#606AF4]"
|
|
2217
2214
|
),
|
|
2218
2215
|
disabled: o || t && !be(t),
|
|
2219
|
-
title: o ?
|
|
2216
|
+
title: o ? i : void 0,
|
|
2220
2217
|
value: a,
|
|
2221
2218
|
onChange: (p) => {
|
|
2222
2219
|
p && n(p.value);
|
|
@@ -2249,7 +2246,7 @@ const io = ({
|
|
|
2249
2246
|
Ve,
|
|
2250
2247
|
{
|
|
2251
2248
|
onClick: () => {
|
|
2252
|
-
n(
|
|
2249
|
+
n(l.checkedDataType || "any");
|
|
2253
2250
|
},
|
|
2254
2251
|
height: "1.2rem",
|
|
2255
2252
|
className: "cursor-pointer pr-2 text-[#606AF4]"
|
|
@@ -2260,30 +2257,30 @@ const io = ({
|
|
|
2260
2257
|
Ye,
|
|
2261
2258
|
{
|
|
2262
2259
|
indexingJob: t,
|
|
2263
|
-
attr:
|
|
2260
|
+
attr: l,
|
|
2264
2261
|
onClose: c
|
|
2265
2262
|
}
|
|
2266
2263
|
)
|
|
2267
2264
|
] });
|
|
2268
|
-
},
|
|
2265
|
+
}, oo = ({
|
|
2269
2266
|
pendingJob: e,
|
|
2270
2267
|
runningJob: t,
|
|
2271
2268
|
value: a,
|
|
2272
2269
|
setValue: n,
|
|
2273
2270
|
disabled: o,
|
|
2274
|
-
disabledReason:
|
|
2275
|
-
attr:
|
|
2271
|
+
disabledReason: i,
|
|
2272
|
+
attr: l
|
|
2276
2273
|
}) => {
|
|
2277
2274
|
const g = We();
|
|
2278
2275
|
return H(() => {
|
|
2279
|
-
t && me(t) && n(
|
|
2276
|
+
t && me(t) && n(l.isRequired || !1);
|
|
2280
2277
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2281
2278
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2282
2279
|
/* @__PURE__ */ r(
|
|
2283
2280
|
ee,
|
|
2284
2281
|
{
|
|
2285
2282
|
disabled: o || t && !be(t),
|
|
2286
|
-
title: o ?
|
|
2283
|
+
title: o ? i : void 0,
|
|
2287
2284
|
checked: a,
|
|
2288
2285
|
onChange: (c) => n(c),
|
|
2289
2286
|
label: /* @__PURE__ */ h(
|
|
@@ -2316,30 +2313,30 @@ const io = ({
|
|
|
2316
2313
|
Ye,
|
|
2317
2314
|
{
|
|
2318
2315
|
indexingJob: t,
|
|
2319
|
-
attr:
|
|
2316
|
+
attr: l,
|
|
2320
2317
|
onClose: g
|
|
2321
2318
|
}
|
|
2322
2319
|
)
|
|
2323
2320
|
] });
|
|
2324
|
-
},
|
|
2321
|
+
}, io = ({
|
|
2325
2322
|
pendingJob: e,
|
|
2326
2323
|
runningJob: t,
|
|
2327
2324
|
value: a,
|
|
2328
2325
|
setValue: n,
|
|
2329
2326
|
disabled: o,
|
|
2330
|
-
disabledReason:
|
|
2331
|
-
attr:
|
|
2327
|
+
disabledReason: i,
|
|
2328
|
+
attr: l
|
|
2332
2329
|
}) => {
|
|
2333
2330
|
const g = We();
|
|
2334
2331
|
return H(() => {
|
|
2335
|
-
t && me(t) && n(
|
|
2332
|
+
t && me(t) && n(l.isIndex);
|
|
2336
2333
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2337
2334
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2338
2335
|
/* @__PURE__ */ r(
|
|
2339
2336
|
ee,
|
|
2340
2337
|
{
|
|
2341
2338
|
disabled: o || t && !be(t),
|
|
2342
|
-
title: o ?
|
|
2339
|
+
title: o ? i : void 0,
|
|
2343
2340
|
checked: a,
|
|
2344
2341
|
onChange: (c) => n(c),
|
|
2345
2342
|
label: /* @__PURE__ */ h(
|
|
@@ -2372,30 +2369,30 @@ const io = ({
|
|
|
2372
2369
|
Ye,
|
|
2373
2370
|
{
|
|
2374
2371
|
indexingJob: t,
|
|
2375
|
-
attr:
|
|
2372
|
+
attr: l,
|
|
2376
2373
|
onClose: g
|
|
2377
2374
|
}
|
|
2378
2375
|
)
|
|
2379
2376
|
] });
|
|
2380
|
-
},
|
|
2377
|
+
}, lo = ({
|
|
2381
2378
|
pendingJob: e,
|
|
2382
2379
|
runningJob: t,
|
|
2383
2380
|
value: a,
|
|
2384
2381
|
setValue: n,
|
|
2385
2382
|
disabled: o,
|
|
2386
|
-
disabledReason:
|
|
2387
|
-
attr:
|
|
2383
|
+
disabledReason: i,
|
|
2384
|
+
attr: l
|
|
2388
2385
|
}) => {
|
|
2389
2386
|
const g = We();
|
|
2390
2387
|
return H(() => {
|
|
2391
|
-
t && me(t) && n(
|
|
2388
|
+
t && me(t) && n(l.isUniq);
|
|
2392
2389
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2393
2390
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2394
2391
|
/* @__PURE__ */ r(
|
|
2395
2392
|
ee,
|
|
2396
2393
|
{
|
|
2397
2394
|
disabled: o || t && !be(t),
|
|
2398
|
-
title: o ?
|
|
2395
|
+
title: o ? i : void 0,
|
|
2399
2396
|
checked: a,
|
|
2400
2397
|
onChange: (c) => n(c),
|
|
2401
2398
|
label: /* @__PURE__ */ h(
|
|
@@ -2428,31 +2425,31 @@ const io = ({
|
|
|
2428
2425
|
Ye,
|
|
2429
2426
|
{
|
|
2430
2427
|
indexingJob: t,
|
|
2431
|
-
attr:
|
|
2428
|
+
attr: l,
|
|
2432
2429
|
onClose: g
|
|
2433
2430
|
}
|
|
2434
2431
|
)
|
|
2435
2432
|
] });
|
|
2436
|
-
},
|
|
2433
|
+
}, so = ({
|
|
2437
2434
|
appId: e,
|
|
2438
2435
|
attr: t,
|
|
2439
2436
|
constraints: a
|
|
2440
2437
|
}) => {
|
|
2441
2438
|
const [n, o] = C(
|
|
2442
2439
|
t.isRequired || !1
|
|
2443
|
-
), [
|
|
2440
|
+
), [i, l] = C(t.isIndex), [g, c] = C(t.isUniq), [p, f] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: m, isRunning: b, running: w, progress: v } = Xn({
|
|
2444
2441
|
attr: t,
|
|
2445
2442
|
appId: e,
|
|
2446
2443
|
token: d.adminToken,
|
|
2447
2444
|
isRequired: n,
|
|
2448
|
-
isIndexed:
|
|
2445
|
+
isIndexed: i,
|
|
2449
2446
|
isUnique: g,
|
|
2450
2447
|
checkedDataType: p
|
|
2451
2448
|
});
|
|
2452
2449
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
2453
2450
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
2454
2451
|
/* @__PURE__ */ r(
|
|
2455
|
-
|
|
2452
|
+
oo,
|
|
2456
2453
|
{
|
|
2457
2454
|
pendingJob: s.require,
|
|
2458
2455
|
runningJob: w.require,
|
|
@@ -2464,19 +2461,19 @@ const io = ({
|
|
|
2464
2461
|
}
|
|
2465
2462
|
),
|
|
2466
2463
|
/* @__PURE__ */ r(
|
|
2467
|
-
|
|
2464
|
+
io,
|
|
2468
2465
|
{
|
|
2469
2466
|
pendingJob: s.index,
|
|
2470
2467
|
runningJob: w.index,
|
|
2471
|
-
value:
|
|
2472
|
-
setValue:
|
|
2468
|
+
value: i,
|
|
2469
|
+
setValue: l,
|
|
2473
2470
|
disabled: a.attr.disabled,
|
|
2474
2471
|
disabledReason: a.attr.message,
|
|
2475
2472
|
attr: t
|
|
2476
2473
|
}
|
|
2477
2474
|
),
|
|
2478
2475
|
/* @__PURE__ */ r(
|
|
2479
|
-
|
|
2476
|
+
lo,
|
|
2480
2477
|
{
|
|
2481
2478
|
pendingJob: s.unique,
|
|
2482
2479
|
runningJob: w.unique,
|
|
@@ -2488,7 +2485,7 @@ const io = ({
|
|
|
2488
2485
|
}
|
|
2489
2486
|
),
|
|
2490
2487
|
/* @__PURE__ */ r(
|
|
2491
|
-
|
|
2488
|
+
no,
|
|
2492
2489
|
{
|
|
2493
2490
|
pendingJob: s.type,
|
|
2494
2491
|
runningJob: w.type,
|
|
@@ -2513,13 +2510,13 @@ const io = ({
|
|
|
2513
2510
|
)
|
|
2514
2511
|
] }) });
|
|
2515
2512
|
};
|
|
2516
|
-
function
|
|
2513
|
+
function co({
|
|
2517
2514
|
db: e,
|
|
2518
2515
|
attr: t,
|
|
2519
2516
|
onClose: a,
|
|
2520
2517
|
constraints: n
|
|
2521
2518
|
}) {
|
|
2522
|
-
const
|
|
2519
|
+
const i = de().appId, { mutate: l } = yr(), [g, c] = C({
|
|
2523
2520
|
type: "main"
|
|
2524
2521
|
}), [p, f] = C(t.linkConfig.forward.attr), [d, u] = C(
|
|
2525
2522
|
t.linkConfig.reverse?.attr
|
|
@@ -2541,8 +2538,8 @@ function po({
|
|
|
2541
2538
|
async function I() {
|
|
2542
2539
|
if (!t.linkConfig.reverse)
|
|
2543
2540
|
throw new Error("No reverse link config");
|
|
2544
|
-
if (_ !== B && await
|
|
2545
|
-
appId:
|
|
2541
|
+
if (_ !== B && await ao({
|
|
2542
|
+
appId: i,
|
|
2546
2543
|
attr: t,
|
|
2547
2544
|
isRequired: _,
|
|
2548
2545
|
authToken: b.adminToken,
|
|
@@ -2592,7 +2589,7 @@ function po({
|
|
|
2592
2589
|
}
|
|
2593
2590
|
async function D() {
|
|
2594
2591
|
await e.core._reactor.pushOps([["delete-attr", t.id]]), setTimeout(() => {
|
|
2595
|
-
|
|
2592
|
+
l(["recently-deleted", i]);
|
|
2596
2593
|
}, 500), a();
|
|
2597
2594
|
}
|
|
2598
2595
|
return g.type === "delete" ? /* @__PURE__ */ r(
|
|
@@ -2631,9 +2628,9 @@ function po({
|
|
|
2631
2628
|
] }),
|
|
2632
2629
|
t.type === "blob" ? /* @__PURE__ */ h(M, { children: [
|
|
2633
2630
|
/* @__PURE__ */ r(
|
|
2634
|
-
|
|
2631
|
+
so,
|
|
2635
2632
|
{
|
|
2636
|
-
appId:
|
|
2633
|
+
appId: i,
|
|
2637
2634
|
attr: t,
|
|
2638
2635
|
constraints: n
|
|
2639
2636
|
}
|
|
@@ -2726,12 +2723,12 @@ function _r({
|
|
|
2726
2723
|
attrName: a,
|
|
2727
2724
|
reverseAttrName: n
|
|
2728
2725
|
}) {
|
|
2729
|
-
const o = e && e === t,
|
|
2726
|
+
const o = e && e === t, i = a && t && e && n, l = a !== n;
|
|
2730
2727
|
return {
|
|
2731
2728
|
isSelfLink: o,
|
|
2732
|
-
isNonEmptyLink:
|
|
2733
|
-
isValidLink:
|
|
2734
|
-
shouldShowSelfLinkNameError:
|
|
2729
|
+
isNonEmptyLink: i,
|
|
2730
|
+
isValidLink: i && (o ? l : !0),
|
|
2731
|
+
shouldShowSelfLinkNameError: i && o && !l
|
|
2735
2732
|
};
|
|
2736
2733
|
}
|
|
2737
2734
|
function Jt({
|
|
@@ -2739,7 +2736,7 @@ function Jt({
|
|
|
2739
2736
|
isSystemCatalogNs: t,
|
|
2740
2737
|
attr: a
|
|
2741
2738
|
}) {
|
|
2742
|
-
const n = a?.catalog === "system", o = a ? `${a.namespace}.${a.name} is managed by the system and can't be edited` : void 0,
|
|
2739
|
+
const n = a?.catalog === "system", o = a ? `${a.namespace}.${a.name} is managed by the system and can't be edited` : void 0, i = n ? o : t ? `The ${e} namespace is managed by the system and can't modify required constraints yet.` : void 0;
|
|
2743
2740
|
return {
|
|
2744
2741
|
attr: {
|
|
2745
2742
|
disabled: n || !1,
|
|
@@ -2747,7 +2744,7 @@ function Jt({
|
|
|
2747
2744
|
},
|
|
2748
2745
|
require: {
|
|
2749
2746
|
disabled: n || t,
|
|
2750
|
-
message:
|
|
2747
|
+
message: i
|
|
2751
2748
|
}
|
|
2752
2749
|
};
|
|
2753
2750
|
}
|
|
@@ -2757,18 +2754,18 @@ const qe = [
|
|
|
2757
2754
|
{ value: "boolean", label: "boolean" },
|
|
2758
2755
|
{ value: "json", label: "json" }
|
|
2759
2756
|
];
|
|
2760
|
-
function
|
|
2757
|
+
function uo({
|
|
2761
2758
|
onSave: e,
|
|
2762
2759
|
onChange: t,
|
|
2763
2760
|
onKeyDown: a,
|
|
2764
2761
|
...n
|
|
2765
2762
|
}) {
|
|
2766
|
-
const o = X(null),
|
|
2767
|
-
const g =
|
|
2768
|
-
|
|
2763
|
+
const o = X(null), i = (l) => {
|
|
2764
|
+
const g = l.closest(".overflow-y-auto"), c = g?.scrollTop || 0;
|
|
2765
|
+
l.style.height = "auto", l.style.height = l.scrollHeight + "px", g && (g.scrollTop = c);
|
|
2769
2766
|
};
|
|
2770
2767
|
return H(() => {
|
|
2771
|
-
o.current && (
|
|
2768
|
+
o.current && (i(o.current), o.current && i(o.current));
|
|
2772
2769
|
}, [n.value]), /* @__PURE__ */ r(
|
|
2773
2770
|
"textarea",
|
|
2774
2771
|
{
|
|
@@ -2777,11 +2774,11 @@ function go({
|
|
|
2777
2774
|
rows: 1,
|
|
2778
2775
|
placeholder: "hello world (Shift+Enter for new line)",
|
|
2779
2776
|
...n,
|
|
2780
|
-
onChange: (
|
|
2781
|
-
t?.(
|
|
2777
|
+
onChange: (l) => {
|
|
2778
|
+
t?.(l), i(l.target);
|
|
2782
2779
|
},
|
|
2783
|
-
onKeyDown: (
|
|
2784
|
-
|
|
2780
|
+
onKeyDown: (l) => {
|
|
2781
|
+
l.key === "Enter" && !l.shiftKey && e && (l.preventDefault(), e()), a?.(l);
|
|
2785
2782
|
}
|
|
2786
2783
|
}
|
|
2787
2784
|
);
|
|
@@ -2792,27 +2789,27 @@ const wt = {
|
|
|
2792
2789
|
boolean: !1,
|
|
2793
2790
|
json: {}
|
|
2794
2791
|
};
|
|
2795
|
-
function
|
|
2792
|
+
function po(e) {
|
|
2796
2793
|
return e ? e === "date" ? qe.filter(
|
|
2797
2794
|
(t) => t.value === "string" || t.value === "number"
|
|
2798
2795
|
) : qe.filter((t) => t.value === e) : qe;
|
|
2799
2796
|
}
|
|
2800
2797
|
const Dr = (e) => !!e && typeof e == "object";
|
|
2801
|
-
function
|
|
2798
|
+
function go(e) {
|
|
2802
2799
|
try {
|
|
2803
2800
|
return JSON.parse(e), !0;
|
|
2804
2801
|
} catch {
|
|
2805
2802
|
return !1;
|
|
2806
2803
|
}
|
|
2807
2804
|
}
|
|
2808
|
-
function
|
|
2805
|
+
function ho(e) {
|
|
2809
2806
|
try {
|
|
2810
2807
|
return JSON.parse(e);
|
|
2811
2808
|
} catch {
|
|
2812
2809
|
return e;
|
|
2813
2810
|
}
|
|
2814
2811
|
}
|
|
2815
|
-
function
|
|
2812
|
+
function fo(e, t) {
|
|
2816
2813
|
if (e.checkedDataType)
|
|
2817
2814
|
return e.checkedDataType === "date" ? "string" : e.checkedDataType;
|
|
2818
2815
|
if (t != null) {
|
|
@@ -2837,35 +2834,35 @@ function er(e, t) {
|
|
|
2837
2834
|
if (t === "string")
|
|
2838
2835
|
return Dr(e) ? JSON.stringify(e) : String(e);
|
|
2839
2836
|
if (t === "json")
|
|
2840
|
-
return
|
|
2837
|
+
return ho(e);
|
|
2841
2838
|
}
|
|
2842
2839
|
return e;
|
|
2843
2840
|
}
|
|
2844
|
-
function
|
|
2845
|
-
return
|
|
2841
|
+
function mo(e) {
|
|
2842
|
+
return yn(e) ? null : "Invalid UUID.";
|
|
2846
2843
|
}
|
|
2847
2844
|
function tr({
|
|
2848
2845
|
db: e,
|
|
2849
2846
|
namespace: t,
|
|
2850
2847
|
item: a
|
|
2851
2848
|
}) {
|
|
2852
|
-
const [n, o] = C(!1), [
|
|
2853
|
-
n ||
|
|
2849
|
+
const [n, o] = C(!1), [i, l] = C(!1), { data: g, isLoading: c } = e.useQuery(
|
|
2850
|
+
n || i ? { [t.name]: { $: { where: { id: a.id } } } } : null
|
|
2854
2851
|
);
|
|
2855
2852
|
return /* @__PURE__ */ r(ne.Provider, { children: /* @__PURE__ */ h(ne.Root, { delayDuration: 0, open: n, children: [
|
|
2856
2853
|
/* @__PURE__ */ r(
|
|
2857
2854
|
ne.Trigger,
|
|
2858
2855
|
{
|
|
2859
2856
|
asChild: !0,
|
|
2860
|
-
onMouseEnter: () =>
|
|
2861
|
-
onTouchStart: () =>
|
|
2857
|
+
onMouseEnter: () => l(!0),
|
|
2858
|
+
onTouchStart: () => l(!0),
|
|
2862
2859
|
children: /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2863
2860
|
V,
|
|
2864
2861
|
{
|
|
2865
2862
|
size: "mini",
|
|
2866
2863
|
variant: "subtle",
|
|
2867
2864
|
onClick: () => o((p) => !p),
|
|
2868
|
-
children: /* @__PURE__ */ r(
|
|
2865
|
+
children: /* @__PURE__ */ r(Ga, { height: 14 })
|
|
2869
2866
|
}
|
|
2870
2867
|
) })
|
|
2871
2868
|
}
|
|
@@ -2881,17 +2878,17 @@ function tr({
|
|
|
2881
2878
|
children: JSON.stringify(g?.[t.name]?.[0] || a, null, 2)
|
|
2882
2879
|
}
|
|
2883
2880
|
),
|
|
2884
|
-
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(
|
|
2881
|
+
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(Ha, { width: 12 }) }) : null
|
|
2885
2882
|
] }) })
|
|
2886
2883
|
] }) });
|
|
2887
2884
|
}
|
|
2888
|
-
function
|
|
2885
|
+
function bo({
|
|
2889
2886
|
q: e,
|
|
2890
2887
|
option: t,
|
|
2891
2888
|
uniqueAttrs: a,
|
|
2892
2889
|
filterableAttrs: n
|
|
2893
2890
|
}) {
|
|
2894
|
-
const [o,
|
|
2891
|
+
const [o, i] = C(!1);
|
|
2895
2892
|
return /* @__PURE__ */ r(
|
|
2896
2893
|
fr,
|
|
2897
2894
|
{
|
|
@@ -2905,25 +2902,25 @@ function vo({
|
|
|
2905
2902
|
ne.Trigger,
|
|
2906
2903
|
{
|
|
2907
2904
|
asChild: !0,
|
|
2908
|
-
onMouseEnter: () =>
|
|
2909
|
-
onMouseLeave: () =>
|
|
2905
|
+
onMouseEnter: () => i(!0),
|
|
2906
|
+
onMouseLeave: () => i(!1),
|
|
2910
2907
|
children: /* @__PURE__ */ h("div", { children: [
|
|
2911
2908
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("code", { children: t.id }) }),
|
|
2912
2909
|
/* @__PURE__ */ h("div", { className: "truncate", children: [
|
|
2913
2910
|
n.filter(
|
|
2914
|
-
(
|
|
2915
|
-
).slice(0, 3).map((
|
|
2916
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children:
|
|
2911
|
+
(l) => t.hasOwnProperty(l.name) && !l.isUniq && e && JSON.stringify(t[l.name]).toLowerCase().indexOf(e.toLowerCase()) !== -1
|
|
2912
|
+
).slice(0, 3).map((l) => /* @__PURE__ */ h("div", { children: [
|
|
2913
|
+
/* @__PURE__ */ r("span", { className: "font-medium", children: l.name }),
|
|
2917
2914
|
":",
|
|
2918
2915
|
" ",
|
|
2919
|
-
JSON.stringify(t[
|
|
2920
|
-
] },
|
|
2921
|
-
a.filter((
|
|
2922
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children:
|
|
2916
|
+
JSON.stringify(t[l.name])
|
|
2917
|
+
] }, l.id)),
|
|
2918
|
+
a.filter((l) => t.hasOwnProperty(l.name)).slice(0, 3).map((l) => /* @__PURE__ */ h("div", { children: [
|
|
2919
|
+
/* @__PURE__ */ r("span", { className: "font-medium", children: l.name }),
|
|
2923
2920
|
":",
|
|
2924
2921
|
" ",
|
|
2925
|
-
JSON.stringify(t[
|
|
2926
|
-
] },
|
|
2922
|
+
JSON.stringify(t[l.name])
|
|
2923
|
+
] }, l.id))
|
|
2927
2924
|
] })
|
|
2928
2925
|
] })
|
|
2929
2926
|
}
|
|
@@ -2943,30 +2940,30 @@ function vo({
|
|
|
2943
2940
|
t.id
|
|
2944
2941
|
);
|
|
2945
2942
|
}
|
|
2946
|
-
function
|
|
2943
|
+
function wo({
|
|
2947
2944
|
db: e,
|
|
2948
2945
|
namespace: t,
|
|
2949
2946
|
onLinkRef: a,
|
|
2950
2947
|
ignoreIds: n,
|
|
2951
2948
|
onClose: o
|
|
2952
2949
|
}) {
|
|
2953
|
-
const [
|
|
2950
|
+
const [i, l] = C(""), g = X(null), { uniqueAttrs: c, filterableAttrs: p } = se(() => {
|
|
2954
2951
|
const m = [], b = [];
|
|
2955
2952
|
for (const [w, v] of Object.entries(t.attrs))
|
|
2956
2953
|
v.isUniq && v.name !== "id" && v.type === "blob" && m.push(v), v.isIndex && (v.checkedDataType === "string" || v.checkedDataType === "number") && b.push(v);
|
|
2957
2954
|
return { uniqueAttrs: m, filterableAttrs: b };
|
|
2958
2955
|
}, [t.attrs]), f = se(() => {
|
|
2959
|
-
const m = [{ $entityIdStartsWith:
|
|
2956
|
+
const m = [{ $entityIdStartsWith: i }];
|
|
2960
2957
|
let b;
|
|
2961
2958
|
try {
|
|
2962
|
-
const w = JSON.parse(
|
|
2959
|
+
const w = JSON.parse(i);
|
|
2963
2960
|
typeof w == "number" && (b = w);
|
|
2964
2961
|
} catch {
|
|
2965
2962
|
}
|
|
2966
2963
|
for (const w of p)
|
|
2967
|
-
w.checkedDataType === "string" &&
|
|
2964
|
+
w.checkedDataType === "string" && i.trim() && m.push({ [w.name]: { $ilike: `%${i.trim()}%` } }), w.checkedDataType === "number" && b != null && m.push({ [w.name]: b });
|
|
2968
2965
|
for (const w of c)
|
|
2969
|
-
w.checkedDataType || (m.push({ [w.name]:
|
|
2966
|
+
w.checkedDataType || (m.push({ [w.name]: i }), b != null && m.push({ [w.name]: b }));
|
|
2970
2967
|
return {
|
|
2971
2968
|
[t.name]: {
|
|
2972
2969
|
$: {
|
|
@@ -2977,12 +2974,12 @@ function yo({
|
|
|
2977
2974
|
}
|
|
2978
2975
|
}
|
|
2979
2976
|
};
|
|
2980
|
-
}, [t.name, p,
|
|
2977
|
+
}, [t.name, p, i]), { data: d, isLoading: u } = e.useQuery(f), s = d?.[t.name]?.filter((m) => !n.has(m.id));
|
|
2981
2978
|
return /* @__PURE__ */ r("div", { className: "relative mt-1 w-full", children: /* @__PURE__ */ h(
|
|
2982
2979
|
pr,
|
|
2983
2980
|
{
|
|
2984
2981
|
onChange: (m) => {
|
|
2985
|
-
m && (a(m),
|
|
2982
|
+
m && (a(m), l(""), o());
|
|
2986
2983
|
},
|
|
2987
2984
|
onClose: o,
|
|
2988
2985
|
immediate: !0,
|
|
@@ -2994,9 +2991,9 @@ function yo({
|
|
|
2994
2991
|
autoFocus: !0,
|
|
2995
2992
|
size: 32,
|
|
2996
2993
|
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",
|
|
2997
|
-
value:
|
|
2994
|
+
value: i,
|
|
2998
2995
|
onChange: (m) => {
|
|
2999
|
-
|
|
2996
|
+
l(m.target.value);
|
|
3000
2997
|
},
|
|
3001
2998
|
placeholder: `Search ${t.name}...`
|
|
3002
2999
|
}
|
|
@@ -3009,9 +3006,9 @@ function yo({
|
|
|
3009
3006
|
static: !0,
|
|
3010
3007
|
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",
|
|
3011
3008
|
children: (s || []).map((m) => /* @__PURE__ */ r(
|
|
3012
|
-
|
|
3009
|
+
bo,
|
|
3013
3010
|
{
|
|
3014
|
-
q:
|
|
3011
|
+
q: i,
|
|
3015
3012
|
option: m,
|
|
3016
3013
|
uniqueAttrs: c,
|
|
3017
3014
|
filterableAttrs: p
|
|
@@ -3029,14 +3026,14 @@ function yo({
|
|
|
3029
3026
|
u ? "query-loading" : "query-loaded"
|
|
3030
3027
|
) });
|
|
3031
3028
|
}
|
|
3032
|
-
function
|
|
3029
|
+
function vo({
|
|
3033
3030
|
db: e,
|
|
3034
3031
|
item: t,
|
|
3035
3032
|
attr: a,
|
|
3036
3033
|
namespace: n,
|
|
3037
3034
|
refUpdates: o,
|
|
3038
|
-
handleLinkRef:
|
|
3039
|
-
handleUnlinkRef:
|
|
3035
|
+
handleLinkRef: i,
|
|
3036
|
+
handleUnlinkRef: l
|
|
3040
3037
|
}) {
|
|
3041
3038
|
const [g, c] = C(!1), p = se(() => {
|
|
3042
3039
|
const u = /* @__PURE__ */ new Set();
|
|
@@ -3060,7 +3057,7 @@ function ko({
|
|
|
3060
3057
|
size: "mini",
|
|
3061
3058
|
variant: s ? "subtle" : "destructive",
|
|
3062
3059
|
className: "border-none",
|
|
3063
|
-
onClick: () => s ?
|
|
3060
|
+
onClick: () => s ? i(a, u) : l(a, u.id),
|
|
3064
3061
|
children: s ? /* @__PURE__ */ r(Ve, { height: 14 }) : /* @__PURE__ */ r(nt, { height: 14 })
|
|
3065
3062
|
}
|
|
3066
3063
|
)
|
|
@@ -3079,17 +3076,17 @@ function ko({
|
|
|
3079
3076
|
size: "mini",
|
|
3080
3077
|
variant: "destructive",
|
|
3081
3078
|
className: "border-none",
|
|
3082
|
-
onClick: () =>
|
|
3079
|
+
onClick: () => l(a, u),
|
|
3083
3080
|
children: /* @__PURE__ */ r(nt, { height: 14 })
|
|
3084
3081
|
}
|
|
3085
3082
|
)
|
|
3086
3083
|
] }, u);
|
|
3087
3084
|
}),
|
|
3088
3085
|
g ? /* @__PURE__ */ r(
|
|
3089
|
-
|
|
3086
|
+
wo,
|
|
3090
3087
|
{
|
|
3091
3088
|
namespace: n,
|
|
3092
|
-
onLinkRef: (u) =>
|
|
3089
|
+
onLinkRef: (u) => i(a, u),
|
|
3093
3090
|
db: e,
|
|
3094
3091
|
ignoreIds: p,
|
|
3095
3092
|
onClose: () => c(!1)
|
|
@@ -3097,19 +3094,19 @@ function ko({
|
|
|
3097
3094
|
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children: f === "many" || !d ? "Add link" : "Replace link" })
|
|
3098
3095
|
] });
|
|
3099
3096
|
}
|
|
3100
|
-
const
|
|
3097
|
+
const yo = (e, t) => t.type === "blob" && e.name !== "$files" || e.name === "$files" && t.type === "blob" && t.name === "path";
|
|
3101
3098
|
function rr({
|
|
3102
3099
|
db: e,
|
|
3103
3100
|
namespace: t,
|
|
3104
3101
|
item: a,
|
|
3105
3102
|
onClose: n
|
|
3106
3103
|
}) {
|
|
3107
|
-
const o = a.id ? "edit" : "add",
|
|
3104
|
+
const o = a.id ? "edit" : "add", i = de(), l = [], g = [];
|
|
3108
3105
|
for (const S of t.attrs)
|
|
3109
|
-
S.name !== "id" && (
|
|
3110
|
-
const c =
|
|
3106
|
+
S.name !== "id" && (yo(t, S) && l.push(S), S.type === "ref" && g.push(S));
|
|
3107
|
+
const c = l.reduce(
|
|
3111
3108
|
(S, T) => {
|
|
3112
|
-
const I = a[T.name], A =
|
|
3109
|
+
const I = a[T.name], A = fo(T, I), D = o === "add" ? T.isRequired ? wt[A] : null : I;
|
|
3113
3110
|
return {
|
|
3114
3111
|
...S,
|
|
3115
3112
|
[T.name]: {
|
|
@@ -3124,19 +3121,19 @@ function rr({
|
|
|
3124
3121
|
...c,
|
|
3125
3122
|
...o === "add" ? { id: { type: "string", value: Pe() } } : {}
|
|
3126
3123
|
}), [d, u] = C({}), [s, m] = C({}), [b, w] = C(
|
|
3127
|
-
|
|
3124
|
+
l.reduce((S, T) => ({
|
|
3128
3125
|
...S,
|
|
3129
3126
|
[T.name]: o === "edit" ? a[T.name] === null || a[T.name] === void 0 : p[T.name].value === null
|
|
3130
3127
|
}), {})
|
|
3131
3128
|
), v = Object.values(p).some((S) => !!S.error), [k, x] = C(!1), _ = () => {
|
|
3132
3129
|
u({}), f({ ...c }), w(
|
|
3133
|
-
|
|
3130
|
+
l.reduce((T, I) => ({
|
|
3134
3131
|
...T,
|
|
3135
3132
|
[I.name]: o === "edit" ? a[I.name] === null || a[I.name] === void 0 : !1
|
|
3136
3133
|
}), {})
|
|
3137
3134
|
);
|
|
3138
3135
|
const S = {};
|
|
3139
|
-
|
|
3136
|
+
l.forEach((T) => {
|
|
3140
3137
|
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));
|
|
3141
3138
|
}), m(S), x(!1);
|
|
3142
3139
|
}, P = (S, T) => {
|
|
@@ -3168,7 +3165,7 @@ function rr({
|
|
|
3168
3165
|
[S]: { type: "json", value: void 0, error: "Invalid JSON" }
|
|
3169
3166
|
} : {
|
|
3170
3167
|
...I,
|
|
3171
|
-
[S]:
|
|
3168
|
+
[S]: go(T) ? { type: "json", value: JSON.parse(T), error: null } : { ...A, type: "json", error: "Invalid JSON" }
|
|
3172
3169
|
};
|
|
3173
3170
|
});
|
|
3174
3171
|
}, q = (S, T) => {
|
|
@@ -3254,7 +3251,7 @@ function rr({
|
|
|
3254
3251
|
), T = a.id || S.id || Pe();
|
|
3255
3252
|
delete S.id;
|
|
3256
3253
|
try {
|
|
3257
|
-
let I =
|
|
3254
|
+
let I = tn[t.name][T];
|
|
3258
3255
|
const A = [], D = [];
|
|
3259
3256
|
for (const [F, Q] of Object.entries(d))
|
|
3260
3257
|
for (const [te, { action: W }] of Object.entries(Q))
|
|
@@ -3293,7 +3290,7 @@ function rr({
|
|
|
3293
3290
|
size: "mini",
|
|
3294
3291
|
variant: "subtle",
|
|
3295
3292
|
onClick: () => B("id", Pe()),
|
|
3296
|
-
children: /* @__PURE__ */ r(
|
|
3293
|
+
children: /* @__PURE__ */ r(qa, { height: 14 })
|
|
3297
3294
|
}
|
|
3298
3295
|
)
|
|
3299
3296
|
] }) }) }),
|
|
@@ -3302,13 +3299,13 @@ function rr({
|
|
|
3302
3299
|
{
|
|
3303
3300
|
className: "flex w-full flex-1 rounded-xs border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
3304
3301
|
value: p.id?.value ?? "",
|
|
3305
|
-
onChange: (S) => B("id", S.target.value,
|
|
3302
|
+
onChange: (S) => B("id", S.target.value, mo)
|
|
3306
3303
|
}
|
|
3307
3304
|
) }),
|
|
3308
3305
|
" ",
|
|
3309
3306
|
p.id?.error && k && /* @__PURE__ */ r("span", { className: "text-sm font-medium text-red-500", children: p.id.error })
|
|
3310
3307
|
] }, "id") : null,
|
|
3311
|
-
|
|
3308
|
+
l.map((S, T) => {
|
|
3312
3309
|
const I = T + 1, { type: A, value: D, error: F } = p[S.name] || {
|
|
3313
3310
|
type: "string",
|
|
3314
3311
|
value: wt.string
|
|
@@ -3330,7 +3327,7 @@ function rr({
|
|
|
3330
3327
|
{
|
|
3331
3328
|
className: "w-24 rounded-sm px-2 py-0.5 text-sm",
|
|
3332
3329
|
value: A,
|
|
3333
|
-
options:
|
|
3330
|
+
options: po(S.checkedDataType),
|
|
3334
3331
|
onChange: (W) => P(
|
|
3335
3332
|
S.name,
|
|
3336
3333
|
W.value
|
|
@@ -3353,7 +3350,7 @@ function rr({
|
|
|
3353
3350
|
/* @__PURE__ */ r("div", { className: "flex-1", children: A === "json" ? /* @__PURE__ */ r("div", { className: "h-32 w-full rounded-sm border", children: /* @__PURE__ */ r(
|
|
3354
3351
|
_t,
|
|
3355
3352
|
{
|
|
3356
|
-
darkMode:
|
|
3353
|
+
darkMode: i.darkMode,
|
|
3357
3354
|
tabIndex: I,
|
|
3358
3355
|
language: "json",
|
|
3359
3356
|
value: Q,
|
|
@@ -3380,7 +3377,7 @@ function rr({
|
|
|
3380
3377
|
onChange: (W) => B(S.name, W.target.value)
|
|
3381
3378
|
}
|
|
3382
3379
|
) : /* @__PURE__ */ r(
|
|
3383
|
-
|
|
3380
|
+
uo,
|
|
3384
3381
|
{
|
|
3385
3382
|
tabIndex: I,
|
|
3386
3383
|
value: D ?? "",
|
|
@@ -3421,7 +3418,7 @@ function rr({
|
|
|
3421
3418
|
] })
|
|
3422
3419
|
] }),
|
|
3423
3420
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ r(
|
|
3424
|
-
|
|
3421
|
+
vo,
|
|
3425
3422
|
{
|
|
3426
3423
|
db: e,
|
|
3427
3424
|
item: a,
|
|
@@ -3442,7 +3439,7 @@ function rr({
|
|
|
3442
3439
|
/* @__PURE__ */ r(
|
|
3443
3440
|
ve,
|
|
3444
3441
|
{
|
|
3445
|
-
tabIndex:
|
|
3442
|
+
tabIndex: l.length + 1,
|
|
3446
3443
|
type: "submit",
|
|
3447
3444
|
variant: "primary",
|
|
3448
3445
|
label: "Save",
|
|
@@ -3455,62 +3452,62 @@ function rr({
|
|
|
3455
3452
|
] })
|
|
3456
3453
|
] });
|
|
3457
3454
|
}
|
|
3458
|
-
const
|
|
3459
|
-
function
|
|
3455
|
+
const ko = [];
|
|
3456
|
+
function xo(e, t, a, n = !1) {
|
|
3460
3457
|
if (e.length === 0) return;
|
|
3461
3458
|
const o = t.filter(
|
|
3462
3459
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3463
|
-
),
|
|
3460
|
+
), i = e.map((c) => {
|
|
3464
3461
|
const p = {};
|
|
3465
3462
|
return o.forEach((f) => {
|
|
3466
3463
|
const d = c[f.header];
|
|
3467
3464
|
d == null ? p[f.header] = "" : typeof d == "object" ? p[f.header] = JSON.stringify(d) : p[f.header] = d;
|
|
3468
3465
|
}), p;
|
|
3469
|
-
}),
|
|
3466
|
+
}), l = un({
|
|
3470
3467
|
fieldSeparator: ",",
|
|
3471
3468
|
filename: `${a}_export`,
|
|
3472
3469
|
decimalSeparator: ".",
|
|
3473
3470
|
useKeysAsHeaders: !0
|
|
3474
|
-
}), g =
|
|
3475
|
-
n ? (
|
|
3471
|
+
}), g = pn(l)(i);
|
|
3472
|
+
n ? (gn(l)(g), oe("CSV file downloaded")) : (He(g.toString()), oe("CSV copied to clipboard"));
|
|
3476
3473
|
}
|
|
3477
|
-
function
|
|
3474
|
+
function So(e, t, a, n = !1) {
|
|
3478
3475
|
if (e.length === 0) return;
|
|
3479
3476
|
const o = t.filter(
|
|
3480
3477
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3481
|
-
),
|
|
3478
|
+
), i = o.map((c) => c.header), l = e.map((c) => o.map((p) => {
|
|
3482
3479
|
const f = c[p.header];
|
|
3483
3480
|
return f == null ? " " : typeof f == "object" ? JSON.stringify(f) : String(f);
|
|
3484
|
-
})), g =
|
|
3481
|
+
})), g = cn([i, ...l]);
|
|
3485
3482
|
if (n) {
|
|
3486
3483
|
const c = new Blob([g], { type: "text/markdown" }), p = URL.createObjectURL(c), f = document.createElement("a");
|
|
3487
3484
|
f.href = p, f.download = `${a}_export.md`, document.body.appendChild(f), f.click(), document.body.removeChild(f), URL.revokeObjectURL(p), oe("Markdown file downloaded");
|
|
3488
3485
|
} else
|
|
3489
3486
|
He(g), oe("Markdown copied to clipboard");
|
|
3490
3487
|
}
|
|
3491
|
-
function
|
|
3488
|
+
function No(e, t, a, n = !1) {
|
|
3492
3489
|
if (e.length === 0) return;
|
|
3493
3490
|
const o = t.filter(
|
|
3494
3491
|
(g) => g.id !== "select-col" && g.header !== void 0 && !g.meta?.isLink
|
|
3495
|
-
),
|
|
3492
|
+
), i = e.map((g) => {
|
|
3496
3493
|
const c = {};
|
|
3497
3494
|
return o.forEach((p) => {
|
|
3498
3495
|
const f = g[p.header];
|
|
3499
3496
|
c[p.header] = f;
|
|
3500
3497
|
}), c;
|
|
3501
|
-
}),
|
|
3498
|
+
}), l = JSON.stringify(i, null, 2);
|
|
3502
3499
|
if (n) {
|
|
3503
|
-
const g = new Blob([
|
|
3500
|
+
const g = new Blob([l], { type: "application/json" }), c = URL.createObjectURL(g), p = document.createElement("a");
|
|
3504
3501
|
p.href = c, p.download = `${a}_export.json`, document.body.appendChild(p), p.click(), document.body.removeChild(p), URL.revokeObjectURL(c), oe("JSON file downloaded");
|
|
3505
3502
|
} else
|
|
3506
|
-
He(
|
|
3503
|
+
He(l), oe("JSON copied to clipboard");
|
|
3507
3504
|
}
|
|
3508
|
-
const
|
|
3509
|
-
const { explorerState: a, history: n } = dt(), o = de(),
|
|
3510
|
-
(E) => E.id ===
|
|
3505
|
+
const Eo = ({ db: e, namespaces: t }) => {
|
|
3506
|
+
const { explorerState: a, history: n } = dt(), o = de(), i = a, l = t.find(
|
|
3507
|
+
(E) => E.id === i.namespace
|
|
3511
3508
|
), [g, c] = C(50), [p, f] = C([]), [d, u] = C(!1), [s, m] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [P, B] = C(!1);
|
|
3512
3509
|
X(null);
|
|
3513
|
-
const L = X(null), [q, G] = C({}), Y = X(null), z =
|
|
3510
|
+
const L = X(null), [q, G] = C({}), Y = X(null), z = l?.name?.startsWith("$") ?? !1, j = l?.name ?? "", S = z && !["$users", "$files"].includes(j), T = q[j] || 0, I = i?.sortAttr || "serverCreatedAt", A = i?.sortAsc ?? !0, D = (E, N) => {
|
|
3514
3511
|
const R = ae.options.data.map((pe) => pe.id), $ = R.indexOf(E), U = R.indexOf(L.current), [K, J] = [
|
|
3515
3512
|
Math.min($, U),
|
|
3516
3513
|
Math.max($, U)
|
|
@@ -3523,25 +3520,25 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3523
3520
|
}
|
|
3524
3521
|
return ze;
|
|
3525
3522
|
});
|
|
3526
|
-
}, [F, Q] = C([]), { itemsRes: te, allCount: W } =
|
|
3523
|
+
}, [F, Q] = C([]), { itemsRes: te, allCount: W } = zn(
|
|
3527
3524
|
e,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3525
|
+
l,
|
|
3526
|
+
i?.where,
|
|
3527
|
+
i?.filters || F,
|
|
3531
3528
|
g,
|
|
3532
3529
|
T,
|
|
3533
3530
|
I,
|
|
3534
3531
|
A
|
|
3535
|
-
), re = te.data?.[
|
|
3532
|
+
), re = te.data?.[l?.name ?? ""] ?? ko;
|
|
3536
3533
|
function ye(E, N) {
|
|
3537
3534
|
return E.filter((R) => N[R.id]);
|
|
3538
3535
|
}
|
|
3539
|
-
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, Kr] =
|
|
3536
|
+
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, Kr] = Un("localDates", !1), Xr = async () => {
|
|
3540
3537
|
try {
|
|
3541
3538
|
if (u(!0), p.length === 0)
|
|
3542
3539
|
return;
|
|
3543
3540
|
const [E] = p;
|
|
3544
|
-
await
|
|
3541
|
+
await Ao(
|
|
3545
3542
|
o.adminToken,
|
|
3546
3543
|
o.appId,
|
|
3547
3544
|
E,
|
|
@@ -3558,13 +3555,13 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3558
3555
|
Ut(E, 285);
|
|
3559
3556
|
return;
|
|
3560
3557
|
}
|
|
3561
|
-
const N =
|
|
3558
|
+
const N = qn(E, 800);
|
|
3562
3559
|
Ut(E, N);
|
|
3563
3560
|
}, Ut = (E, N = 200) => {
|
|
3564
|
-
if (!
|
|
3561
|
+
if (!l)
|
|
3565
3562
|
return;
|
|
3566
3563
|
const R = {};
|
|
3567
|
-
|
|
3564
|
+
l?.attrs.forEach(($) => {
|
|
3568
3565
|
R[$.id + $.name] = ae.getColumn($.id + $.name)?.getSize() || 0;
|
|
3569
3566
|
}), ae.setColumnSizing({
|
|
3570
3567
|
...R,
|
|
@@ -3611,11 +3608,11 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3611
3608
|
{
|
|
3612
3609
|
className: "translate-y-0.5 opacity-0 transition-opacity group-hover:opacity-100",
|
|
3613
3610
|
onClick: () => _(N.id),
|
|
3614
|
-
children: /* @__PURE__ */ r(
|
|
3611
|
+
children: /* @__PURE__ */ r(ya, { className: "h-4 w-4 text-neutral-500 dark:text-neutral-400" })
|
|
3615
3612
|
}
|
|
3616
3613
|
)
|
|
3617
3614
|
] })
|
|
3618
|
-
}),
|
|
3615
|
+
}), l?.attrs?.forEach((N) => {
|
|
3619
3616
|
E.push({
|
|
3620
3617
|
id: N.id + N.name,
|
|
3621
3618
|
header: N.name,
|
|
@@ -3661,19 +3658,19 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3661
3658
|
}
|
|
3662
3659
|
);
|
|
3663
3660
|
if (N.name === "size")
|
|
3664
|
-
return
|
|
3661
|
+
return Pn(R.row.original[N.name]);
|
|
3665
3662
|
}
|
|
3666
3663
|
if (N.checkedDataType === "boolean")
|
|
3667
3664
|
return R.row.original[N.name] ? "true" : "false";
|
|
3668
3665
|
if (N.checkedDataType === "date") {
|
|
3669
|
-
const $ =
|
|
3666
|
+
const $ = Qa(R.row.original[N.name]);
|
|
3670
3667
|
return ke && $?.toLocaleString() || R.row.original[N.name];
|
|
3671
3668
|
}
|
|
3672
|
-
return Ne(R.row.original[N.name]) ? /* @__PURE__ */ r(
|
|
3669
|
+
return Ne(R.row.original[N.name]) ? /* @__PURE__ */ r(Io, { data: R.row.original[N.name] }) : R.row.original[N.name];
|
|
3673
3670
|
}
|
|
3674
3671
|
});
|
|
3675
3672
|
}), E;
|
|
3676
|
-
}, [
|
|
3673
|
+
}, [l?.attrs, ke]), [Qr, Jr] = C({}), ea = () => {
|
|
3677
3674
|
const E = Object.entries(ae.getState().columnSizing).reduce(
|
|
3678
3675
|
(U, [K, J]) => Qe.visibility[K] !== !1 ? {
|
|
3679
3676
|
...U,
|
|
@@ -3691,40 +3688,40 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3691
3688
|
});
|
|
3692
3689
|
}
|
|
3693
3690
|
Bt(!1), ae.setColumnSizing(() => ({ ...E }));
|
|
3694
|
-
}, ta = "onChange", ra = "ltr", Qe =
|
|
3691
|
+
}, ta = "onChange", ra = "ltr", Qe = Mn({
|
|
3695
3692
|
appId: o.appId,
|
|
3696
|
-
attrs:
|
|
3697
|
-
namespaceId:
|
|
3693
|
+
attrs: l?.attrs,
|
|
3694
|
+
namespaceId: l?.id
|
|
3698
3695
|
}), [Le, Je] = C(
|
|
3699
3696
|
() => De.map((E) => E.id)
|
|
3700
3697
|
);
|
|
3701
3698
|
vt(() => {
|
|
3702
|
-
if (
|
|
3699
|
+
if (l?.attrs) {
|
|
3703
3700
|
const E = localStorage.getItem(
|
|
3704
|
-
`order-${
|
|
3701
|
+
`order-${l.id}-${o.appId}`
|
|
3705
3702
|
);
|
|
3706
3703
|
if (E)
|
|
3707
3704
|
Je(JSON.parse(E));
|
|
3708
3705
|
else {
|
|
3709
|
-
const N =
|
|
3706
|
+
const N = l.attrs.map(
|
|
3710
3707
|
(R) => R.id + R.name
|
|
3711
3708
|
);
|
|
3712
3709
|
Je(["select-col", ...N]);
|
|
3713
3710
|
}
|
|
3714
3711
|
}
|
|
3715
|
-
}, [
|
|
3716
|
-
|
|
3717
|
-
`order-${
|
|
3712
|
+
}, [l?.attrs]), H(() => {
|
|
3713
|
+
l?.id && localStorage.setItem(
|
|
3714
|
+
`order-${l.id}-${o.appId}`,
|
|
3718
3715
|
JSON.stringify(Le)
|
|
3719
3716
|
);
|
|
3720
|
-
}, [Le,
|
|
3717
|
+
}, [Le, l?.id]);
|
|
3721
3718
|
const [xe, Ce] = C(
|
|
3722
3719
|
{}
|
|
3723
3720
|
);
|
|
3724
3721
|
H(() => {
|
|
3725
3722
|
Ce({}), L.current = null;
|
|
3726
|
-
}, [
|
|
3727
|
-
const Fe = Object.keys(xe).length, Ie = j === "$files" ? Fe === 1 ? "file" : "files" : Fe === 1 ? "row" : "rows", ae =
|
|
3723
|
+
}, [l?.id]);
|
|
3724
|
+
const Fe = Object.keys(xe).length, Ie = j === "$files" ? Fe === 1 ? "file" : "files" : Fe === 1 ? "row" : "rows", ae = mn({
|
|
3728
3725
|
columnResizeDirection: ra,
|
|
3729
3726
|
columnResizeMode: ta,
|
|
3730
3727
|
onColumnVisibilityChange: Qe.setVisibility,
|
|
@@ -3732,7 +3729,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3732
3729
|
data: Lt,
|
|
3733
3730
|
enableColumnResizing: !0,
|
|
3734
3731
|
enableRowSelection: !0,
|
|
3735
|
-
getCoreRowModel:
|
|
3732
|
+
getCoreRowModel: bn(),
|
|
3736
3733
|
getRowId: (E) => E.id,
|
|
3737
3734
|
onColumnOrderChange: Je,
|
|
3738
3735
|
onRowSelectionChange: Ce,
|
|
@@ -3761,7 +3758,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3761
3758
|
const { active: N, over: R } = E;
|
|
3762
3759
|
N && R && N.id !== R.id && N.id !== "select-col" && R.id !== "select-col" && Je(($) => {
|
|
3763
3760
|
const U = $.indexOf(N.id), K = $.indexOf(R.id);
|
|
3764
|
-
return
|
|
3761
|
+
return fn($, U, K);
|
|
3765
3762
|
});
|
|
3766
3763
|
}
|
|
3767
3764
|
const mt = se(
|
|
@@ -3791,27 +3788,27 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3791
3788
|
return $ && R.observe($), window.addEventListener("resize", N), () => {
|
|
3792
3789
|
E.removeEventListener("scroll", N), R.disconnect(), window.removeEventListener("resize", N);
|
|
3793
3790
|
};
|
|
3794
|
-
}, [
|
|
3795
|
-
const oa =
|
|
3796
|
-
bt(
|
|
3797
|
-
bt(
|
|
3798
|
-
bt(
|
|
3791
|
+
}, [l, Lt]);
|
|
3792
|
+
const oa = an(
|
|
3793
|
+
bt(nn, {}),
|
|
3794
|
+
bt(on, {}),
|
|
3795
|
+
bt(ln, {})
|
|
3799
3796
|
), ia = n.items.length >= 1, la = (E) => E === "id" ? 140 : E === "url" ? 120 : E.length * 7.2 + 50;
|
|
3800
3797
|
if (vt(() => {
|
|
3801
|
-
if (
|
|
3798
|
+
if (l?.id) {
|
|
3802
3799
|
if (localStorage.getItem(
|
|
3803
|
-
`$sizing-${
|
|
3800
|
+
`$sizing-${l.id}-${o.appId}`
|
|
3804
3801
|
)) {
|
|
3805
3802
|
const U = JSON.parse(
|
|
3806
3803
|
localStorage.getItem(
|
|
3807
|
-
`sizing-${
|
|
3804
|
+
`sizing-${l.id}-${o.appId}`
|
|
3808
3805
|
) || "{}"
|
|
3809
3806
|
);
|
|
3810
3807
|
ae.setColumnSizing(() => ({ ...U }));
|
|
3811
3808
|
return;
|
|
3812
3809
|
}
|
|
3813
3810
|
const E = _e.current?.clientWidth || -1, N = {};
|
|
3814
|
-
|
|
3811
|
+
l?.attrs.forEach((U) => {
|
|
3815
3812
|
N[U.id + U.name] = la(U.name);
|
|
3816
3813
|
});
|
|
3817
3814
|
const R = Object.values(N).reduce(
|
|
@@ -3826,17 +3823,16 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3826
3823
|
}
|
|
3827
3824
|
ae.setColumnSizing(N);
|
|
3828
3825
|
}
|
|
3829
|
-
}, [_e.current,
|
|
3826
|
+
}, [_e.current, l]), !l)
|
|
3830
3827
|
return null;
|
|
3831
|
-
const sa =
|
|
3828
|
+
const sa = l.id;
|
|
3832
3829
|
return /* @__PURE__ */ h(M, { children: [
|
|
3833
3830
|
/* @__PURE__ */ r(
|
|
3834
3831
|
fe,
|
|
3835
3832
|
{
|
|
3836
|
-
title: "Delete Rows",
|
|
3837
3833
|
open: b,
|
|
3838
3834
|
onClose: () => w(!1),
|
|
3839
|
-
children:
|
|
3835
|
+
children: l ? /* @__PURE__ */ h(ge, { className: "min flex flex-col gap-4", children: [
|
|
3840
3836
|
/* @__PURE__ */ h("h5", { className: "flex text-lg font-bold", children: [
|
|
3841
3837
|
"Delete ",
|
|
3842
3838
|
Ie
|
|
@@ -3857,7 +3853,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3857
3853
|
] }),
|
|
3858
3854
|
"associated with",
|
|
3859
3855
|
" ",
|
|
3860
|
-
/* @__PURE__ */ r("strong", { className: "dark:text-white", children:
|
|
3856
|
+
/* @__PURE__ */ r("strong", { className: "dark:text-white", children: l.name }),
|
|
3861
3857
|
"."
|
|
3862
3858
|
] }),
|
|
3863
3859
|
/* @__PURE__ */ r(
|
|
@@ -3869,12 +3865,12 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3869
3865
|
submitLabel: `Deleting ${Ie}...`,
|
|
3870
3866
|
errorMessage: `Failed to delete ${Ie}`,
|
|
3871
3867
|
className: "border-red-500 text-red-500",
|
|
3872
|
-
title: S ? `The ${
|
|
3868
|
+
title: S ? `The ${l?.name} namespace is read-only.` : void 0,
|
|
3873
3869
|
onClick: async () => {
|
|
3874
3870
|
try {
|
|
3875
|
-
if (
|
|
3871
|
+
if (l.name === "$files") {
|
|
3876
3872
|
const E = re.filter((N) => N.id in xe).map((N) => N.path);
|
|
3877
|
-
await
|
|
3873
|
+
await Ro(
|
|
3878
3874
|
o.adminToken,
|
|
3879
3875
|
o.appId,
|
|
3880
3876
|
E,
|
|
@@ -3883,7 +3879,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3883
3879
|
} else
|
|
3884
3880
|
await e.transact(
|
|
3885
3881
|
Object.keys(xe).map(
|
|
3886
|
-
(E) =>
|
|
3882
|
+
(E) => Ja[l.name][E].delete()
|
|
3887
3883
|
)
|
|
3888
3884
|
);
|
|
3889
3885
|
} catch (E) {
|
|
@@ -3903,15 +3899,14 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3903
3899
|
/* @__PURE__ */ r(
|
|
3904
3900
|
fe,
|
|
3905
3901
|
{
|
|
3906
|
-
title: "Edit Row",
|
|
3907
3902
|
open: P,
|
|
3908
3903
|
onClose: () => B(!1),
|
|
3909
|
-
children:
|
|
3904
|
+
children: l ? /* @__PURE__ */ r(
|
|
3910
3905
|
rr,
|
|
3911
3906
|
{
|
|
3912
3907
|
db: e,
|
|
3913
3908
|
item: {},
|
|
3914
|
-
namespace:
|
|
3909
|
+
namespace: l,
|
|
3915
3910
|
onClose: () => B(!1)
|
|
3916
3911
|
}
|
|
3917
3912
|
) : null
|
|
@@ -3920,14 +3915,13 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3920
3915
|
/* @__PURE__ */ r(
|
|
3921
3916
|
fe,
|
|
3922
3917
|
{
|
|
3923
|
-
title: "Edit Row",
|
|
3924
3918
|
open: !!mt,
|
|
3925
3919
|
onClose: () => _(null),
|
|
3926
|
-
children:
|
|
3920
|
+
children: l && mt ? /* @__PURE__ */ r(
|
|
3927
3921
|
rr,
|
|
3928
3922
|
{
|
|
3929
3923
|
db: e,
|
|
3930
|
-
namespace:
|
|
3924
|
+
namespace: l,
|
|
3931
3925
|
item: mt,
|
|
3932
3926
|
onClose: () => _(null)
|
|
3933
3927
|
}
|
|
@@ -3937,17 +3931,16 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3937
3931
|
/* @__PURE__ */ r(
|
|
3938
3932
|
fe,
|
|
3939
3933
|
{
|
|
3940
|
-
title: "Edit Namespace",
|
|
3941
3934
|
stopFocusPropagation: !0,
|
|
3942
3935
|
open: !!v,
|
|
3943
3936
|
onClose: () => k(null),
|
|
3944
|
-
children:
|
|
3945
|
-
|
|
3937
|
+
children: l ? /* @__PURE__ */ r(
|
|
3938
|
+
Jn,
|
|
3946
3939
|
{
|
|
3947
3940
|
readOnly: S,
|
|
3948
3941
|
isSystemCatalogNs: z,
|
|
3949
3942
|
db: e,
|
|
3950
|
-
namespace:
|
|
3943
|
+
namespace: l,
|
|
3951
3944
|
namespaces: t ?? [],
|
|
3952
3945
|
onClose: (E) => {
|
|
3953
3946
|
k(null), E?.ok && n.push({ namespace: t?.[0].id });
|
|
@@ -3967,7 +3960,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3967
3960
|
onClick: () => n.pop()
|
|
3968
3961
|
}
|
|
3969
3962
|
) : null,
|
|
3970
|
-
|
|
3963
|
+
i.where ? /* @__PURE__ */ r(
|
|
3971
3964
|
lr,
|
|
3972
3965
|
{
|
|
3973
3966
|
className: "mr-4 inline cursor-pointer",
|
|
@@ -3975,7 +3968,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3975
3968
|
onClick: () => {
|
|
3976
3969
|
n.push(
|
|
3977
3970
|
{
|
|
3978
|
-
namespace:
|
|
3971
|
+
namespace: l.id
|
|
3979
3972
|
},
|
|
3980
3973
|
!0
|
|
3981
3974
|
);
|
|
@@ -3983,21 +3976,21 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
3983
3976
|
}
|
|
3984
3977
|
) : null,
|
|
3985
3978
|
/* @__PURE__ */ h("div", { className: "text-ellipses shrink truncate overflow-hidden font-mono text-xs whitespace-nowrap dark:text-white", children: [
|
|
3986
|
-
/* @__PURE__ */ r("strong", { children:
|
|
3979
|
+
/* @__PURE__ */ r("strong", { children: l.name }),
|
|
3987
3980
|
" ",
|
|
3988
|
-
|
|
3981
|
+
i.where ? /* @__PURE__ */ h(M, { children: [
|
|
3989
3982
|
" ",
|
|
3990
3983
|
"where ",
|
|
3991
|
-
/* @__PURE__ */ r("strong", { children:
|
|
3984
|
+
/* @__PURE__ */ r("strong", { children: i.where[0] }),
|
|
3992
3985
|
" =",
|
|
3993
3986
|
" ",
|
|
3994
|
-
/* @__PURE__ */ r("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: JSON.stringify(
|
|
3987
|
+
/* @__PURE__ */ r("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: JSON.stringify(i.where[1]) })
|
|
3995
3988
|
] }) : null,
|
|
3996
|
-
|
|
3989
|
+
i?.filters?.length ? /* @__PURE__ */ r(
|
|
3997
3990
|
"span",
|
|
3998
3991
|
{
|
|
3999
|
-
title:
|
|
4000
|
-
children:
|
|
3992
|
+
title: i.filters.map(([E, N, R]) => `${E} ${N} ${R}`).join(" || "),
|
|
3993
|
+
children: i.filters.map(([E, N, R], $) => /* @__PURE__ */ h("span", { children: [
|
|
4001
3994
|
/* @__PURE__ */ h("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: [
|
|
4002
3995
|
E,
|
|
4003
3996
|
" ",
|
|
@@ -4005,7 +3998,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4005
3998
|
" ",
|
|
4006
3999
|
R
|
|
4007
4000
|
] }),
|
|
4008
|
-
|
|
4001
|
+
i?.filters?.length && $ < i.filters.length - 1 ? " || " : null
|
|
4009
4002
|
] }, E))
|
|
4010
4003
|
}
|
|
4011
4004
|
) : null
|
|
@@ -4019,23 +4012,23 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4019
4012
|
variant: "secondary",
|
|
4020
4013
|
size: "mini",
|
|
4021
4014
|
onClick: () => {
|
|
4022
|
-
k(
|
|
4015
|
+
k(l);
|
|
4023
4016
|
},
|
|
4024
4017
|
children: "Edit Schema"
|
|
4025
4018
|
}
|
|
4026
4019
|
),
|
|
4027
4020
|
/* @__PURE__ */ r(
|
|
4028
|
-
|
|
4021
|
+
Dn,
|
|
4029
4022
|
{
|
|
4030
4023
|
onSearchChange: (E) => Q(E),
|
|
4031
|
-
attrs:
|
|
4032
|
-
initialFilters:
|
|
4024
|
+
attrs: l?.attrs,
|
|
4025
|
+
initialFilters: i?.filters || []
|
|
4033
4026
|
},
|
|
4034
4027
|
sa
|
|
4035
4028
|
)
|
|
4036
4029
|
] })
|
|
4037
4030
|
] }) }),
|
|
4038
|
-
|
|
4031
|
+
l.name === "$files" ? /* @__PURE__ */ r("div", { className: "flex gap-2 px-2 py-2", children: /* @__PURE__ */ h("div", { className: "flex w-full gap-2", children: [
|
|
4039
4032
|
/* @__PURE__ */ h("div", { className: "flex shrink-0 gap-2", children: [
|
|
4040
4033
|
/* @__PURE__ */ r(
|
|
4041
4034
|
"input",
|
|
@@ -4077,18 +4070,18 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4077
4070
|
] })
|
|
4078
4071
|
] }) }) : null,
|
|
4079
4072
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-start space-x-2 border-b border-b-gray-200 p-1 text-xs dark:border-neutral-700 dark:text-white", children: [
|
|
4080
|
-
|
|
4073
|
+
l.name !== "$files" ? /* @__PURE__ */ h(
|
|
4081
4074
|
V,
|
|
4082
4075
|
{
|
|
4083
4076
|
disabled: S,
|
|
4084
|
-
title: S ? `The ${
|
|
4077
|
+
title: S ? `The ${l?.name} namespace is read-only.` : void 0,
|
|
4085
4078
|
size: "mini",
|
|
4086
4079
|
variant: "secondary",
|
|
4087
4080
|
onClick: () => {
|
|
4088
4081
|
B(!0);
|
|
4089
4082
|
},
|
|
4090
4083
|
children: [
|
|
4091
|
-
/* @__PURE__ */ r(
|
|
4084
|
+
/* @__PURE__ */ r(Oa, { width: 12 }),
|
|
4092
4085
|
"Add row"
|
|
4093
4086
|
]
|
|
4094
4087
|
}
|
|
@@ -4098,7 +4091,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4098
4091
|
{
|
|
4099
4092
|
className: O(
|
|
4100
4093
|
"px-1",
|
|
4101
|
-
|
|
4094
|
+
l.name === "$files" && "pb-1"
|
|
4102
4095
|
),
|
|
4103
4096
|
children: /* @__PURE__ */ r(
|
|
4104
4097
|
we,
|
|
@@ -4138,7 +4131,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4138
4131
|
onClick: () => {
|
|
4139
4132
|
G({
|
|
4140
4133
|
...q,
|
|
4141
|
-
[
|
|
4134
|
+
[l.name]: Math.max(0, T - g)
|
|
4142
4135
|
}), n.push((E) => ({
|
|
4143
4136
|
...E,
|
|
4144
4137
|
page: Math.max(1, Z - 1)
|
|
@@ -4167,7 +4160,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4167
4160
|
onClick: () => {
|
|
4168
4161
|
G({
|
|
4169
4162
|
...q,
|
|
4170
|
-
[
|
|
4163
|
+
[l.name]: N * g
|
|
4171
4164
|
}), n.push(($) => ({
|
|
4172
4165
|
...$,
|
|
4173
4166
|
page: R
|
|
@@ -4187,14 +4180,14 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4187
4180
|
onClick: () => {
|
|
4188
4181
|
G({
|
|
4189
4182
|
...q,
|
|
4190
|
-
[
|
|
4183
|
+
[l.name]: T + g
|
|
4191
4184
|
}), n.push((E) => ({
|
|
4192
4185
|
...E,
|
|
4193
4186
|
page: Math.min(ce, Z + 1)
|
|
4194
4187
|
}));
|
|
4195
4188
|
},
|
|
4196
4189
|
children: /* @__PURE__ */ r(
|
|
4197
|
-
|
|
4190
|
+
_a,
|
|
4198
4191
|
{
|
|
4199
4192
|
className: O("inline", {
|
|
4200
4193
|
"opacity-40": Z >= ce
|
|
@@ -4214,7 +4207,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4214
4207
|
},
|
|
4215
4208
|
variant: "secondary",
|
|
4216
4209
|
children: [
|
|
4217
|
-
/* @__PURE__ */ r(
|
|
4210
|
+
/* @__PURE__ */ r(ka, { width: 14 }),
|
|
4218
4211
|
"Export (",
|
|
4219
4212
|
Fe,
|
|
4220
4213
|
")"
|
|
@@ -4238,16 +4231,16 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4238
4231
|
re,
|
|
4239
4232
|
xe
|
|
4240
4233
|
);
|
|
4241
|
-
|
|
4234
|
+
xo(
|
|
4242
4235
|
N,
|
|
4243
4236
|
De,
|
|
4244
|
-
|
|
4237
|
+
l.name,
|
|
4245
4238
|
Se
|
|
4246
4239
|
), $e(!1);
|
|
4247
4240
|
},
|
|
4248
4241
|
className: "flex items-center gap-2",
|
|
4249
4242
|
children: [
|
|
4250
|
-
/* @__PURE__ */ r(
|
|
4243
|
+
/* @__PURE__ */ r(Da, { width: 12 }),
|
|
4251
4244
|
Se ? "Download as CSV" : "Copy as CSV"
|
|
4252
4245
|
]
|
|
4253
4246
|
}
|
|
@@ -4261,16 +4254,16 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4261
4254
|
re,
|
|
4262
4255
|
xe
|
|
4263
4256
|
);
|
|
4264
|
-
|
|
4257
|
+
So(
|
|
4265
4258
|
N,
|
|
4266
4259
|
De,
|
|
4267
|
-
|
|
4260
|
+
l.name,
|
|
4268
4261
|
Se
|
|
4269
4262
|
), $e(!1);
|
|
4270
4263
|
},
|
|
4271
4264
|
className: "flex items-center gap-2",
|
|
4272
4265
|
children: [
|
|
4273
|
-
/* @__PURE__ */ r(
|
|
4266
|
+
/* @__PURE__ */ r(La, { width: 12 }),
|
|
4274
4267
|
Se ? "Download as Markdown" : "Copy as Markdown"
|
|
4275
4268
|
]
|
|
4276
4269
|
}
|
|
@@ -4284,16 +4277,16 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4284
4277
|
re,
|
|
4285
4278
|
xe
|
|
4286
4279
|
);
|
|
4287
|
-
|
|
4280
|
+
No(
|
|
4288
4281
|
N,
|
|
4289
4282
|
De,
|
|
4290
|
-
|
|
4283
|
+
l.name,
|
|
4291
4284
|
Se
|
|
4292
4285
|
), $e(!1);
|
|
4293
4286
|
},
|
|
4294
4287
|
className: "flex items-center gap-2",
|
|
4295
4288
|
children: [
|
|
4296
|
-
/* @__PURE__ */ r(
|
|
4289
|
+
/* @__PURE__ */ r(Fa, { width: 12 }),
|
|
4297
4290
|
Se ? "Download as JSON" : "Copy as JSON"
|
|
4298
4291
|
]
|
|
4299
4292
|
}
|
|
@@ -4322,7 +4315,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4322
4315
|
className: "px-2",
|
|
4323
4316
|
variant: "destructive",
|
|
4324
4317
|
children: [
|
|
4325
|
-
/* @__PURE__ */ r(
|
|
4318
|
+
/* @__PURE__ */ r(xa, { width: 14 }),
|
|
4326
4319
|
"Delete Selected Rows"
|
|
4327
4320
|
]
|
|
4328
4321
|
}
|
|
@@ -4330,7 +4323,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4330
4323
|
] }),
|
|
4331
4324
|
/* @__PURE__ */ r("div", { className: "grow" }),
|
|
4332
4325
|
/* @__PURE__ */ r("div", { className: "px-2", children: /* @__PURE__ */ r(
|
|
4333
|
-
|
|
4326
|
+
Yn,
|
|
4334
4327
|
{
|
|
4335
4328
|
localDates: ke,
|
|
4336
4329
|
setLocalDates: Kr,
|
|
@@ -4339,10 +4332,10 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4339
4332
|
) })
|
|
4340
4333
|
] }),
|
|
4341
4334
|
/* @__PURE__ */ r(
|
|
4342
|
-
|
|
4335
|
+
sn,
|
|
4343
4336
|
{
|
|
4344
|
-
collisionDetection:
|
|
4345
|
-
modifiers: [
|
|
4337
|
+
collisionDetection: dn,
|
|
4338
|
+
modifiers: [hn],
|
|
4346
4339
|
onDragEnd: na,
|
|
4347
4340
|
sensors: oa,
|
|
4348
4341
|
children: /* @__PURE__ */ h("div", { className: "relative flex-1 overflow-hidden bg-neutral-100 dark:bg-neutral-900/50", children: [
|
|
@@ -4383,7 +4376,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4383
4376
|
items: Le,
|
|
4384
4377
|
strategy: Wt,
|
|
4385
4378
|
children: E.headers.map((N, R) => /* @__PURE__ */ r(
|
|
4386
|
-
|
|
4379
|
+
Hn,
|
|
4387
4380
|
{
|
|
4388
4381
|
header: N,
|
|
4389
4382
|
table: ae,
|
|
@@ -4397,8 +4390,8 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4397
4390
|
sortAsc: U !== $ ? !0 : !K
|
|
4398
4391
|
}));
|
|
4399
4392
|
},
|
|
4400
|
-
currentSortAttr:
|
|
4401
|
-
currentSortAsc:
|
|
4393
|
+
currentSortAttr: i?.sortAttr,
|
|
4394
|
+
currentSortAsc: i?.sortAsc
|
|
4402
4395
|
},
|
|
4403
4396
|
N.id
|
|
4404
4397
|
))
|
|
@@ -4413,7 +4406,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4413
4406
|
{
|
|
4414
4407
|
items: Le,
|
|
4415
4408
|
strategy: Wt,
|
|
4416
|
-
children: /* @__PURE__ */ r(
|
|
4409
|
+
children: /* @__PURE__ */ r(Wn, { cell: N }, N.id)
|
|
4417
4410
|
},
|
|
4418
4411
|
N.id
|
|
4419
4412
|
))
|
|
@@ -4429,7 +4422,7 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4429
4422
|
className: "opacity-60",
|
|
4430
4423
|
labelDirection: "bottom",
|
|
4431
4424
|
label: "Fill Width",
|
|
4432
|
-
icon: /* @__PURE__ */ r(
|
|
4425
|
+
icon: /* @__PURE__ */ r($a, {}),
|
|
4433
4426
|
onClick: ea
|
|
4434
4427
|
}
|
|
4435
4428
|
) })
|
|
@@ -4440,19 +4433,19 @@ const Io = ({ db: e, namespaces: t }) => {
|
|
|
4440
4433
|
] })
|
|
4441
4434
|
] });
|
|
4442
4435
|
};
|
|
4443
|
-
function
|
|
4436
|
+
function Co(e, t) {
|
|
4444
4437
|
return Ne(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
4445
4438
|
}
|
|
4446
|
-
function
|
|
4447
|
-
const a = de(), n =
|
|
4439
|
+
function Io({ data: e, pretty: t }) {
|
|
4440
|
+
const a = de(), n = Co(e, t);
|
|
4448
4441
|
return t && Ne(e) ? /* @__PURE__ */ r(Dt, { darkMode: a.darkMode, code: n, language: "json" }) : /* @__PURE__ */ r(M, { children: n });
|
|
4449
4442
|
}
|
|
4450
4443
|
async function Lr(e, t) {
|
|
4451
4444
|
const a = await fetch(e, t), n = await a.json();
|
|
4452
4445
|
return a.status === 200 ? Promise.resolve(n) : Promise.reject({ status: a.status, body: n });
|
|
4453
4446
|
}
|
|
4454
|
-
async function
|
|
4455
|
-
const
|
|
4447
|
+
async function Ao(e, t, a, n, o) {
|
|
4448
|
+
const i = {
|
|
4456
4449
|
app_id: t,
|
|
4457
4450
|
path: n || a.name,
|
|
4458
4451
|
authorization: `Bearer ${e}`,
|
|
@@ -4460,11 +4453,11 @@ async function To(e, t, a, n, o) {
|
|
|
4460
4453
|
};
|
|
4461
4454
|
return await Lr(`${o}/dash/apps/${t}/storage/upload`, {
|
|
4462
4455
|
method: "PUT",
|
|
4463
|
-
headers:
|
|
4456
|
+
headers: i,
|
|
4464
4457
|
body: a
|
|
4465
4458
|
});
|
|
4466
4459
|
}
|
|
4467
|
-
async function
|
|
4460
|
+
async function Ro(e, t, a, n) {
|
|
4468
4461
|
const { data: o } = await Lr(
|
|
4469
4462
|
`${n}/dash/apps/${t}/storage/files/delete`,
|
|
4470
4463
|
{
|
|
@@ -4478,7 +4471,7 @@ async function Oo(e, t, a, n) {
|
|
|
4478
4471
|
);
|
|
4479
4472
|
return o;
|
|
4480
4473
|
}
|
|
4481
|
-
function
|
|
4474
|
+
function To(e, t) {
|
|
4482
4475
|
const a = (n) => {
|
|
4483
4476
|
e.current && n.target instanceof HTMLElement && !e.current.contains(n.target) && t();
|
|
4484
4477
|
};
|
|
@@ -4486,18 +4479,18 @@ function _o(e, t) {
|
|
|
4486
4479
|
document.removeEventListener("click", a);
|
|
4487
4480
|
}));
|
|
4488
4481
|
}
|
|
4489
|
-
const
|
|
4482
|
+
const Oo = ({
|
|
4490
4483
|
namespaces: e,
|
|
4491
4484
|
db: t
|
|
4492
4485
|
}) => {
|
|
4493
|
-
const a = de(), n = it(), o = it(),
|
|
4486
|
+
const a = de(), n = it(), o = it(), i = e.find(
|
|
4494
4487
|
(f) => f.id === a.explorerState?.namespace
|
|
4495
|
-
), [
|
|
4496
|
-
|
|
4488
|
+
), [l, g] = C(!1), c = X(null);
|
|
4489
|
+
To(c, () => {
|
|
4497
4490
|
g(!1);
|
|
4498
4491
|
}), H(() => {
|
|
4499
|
-
!
|
|
4500
|
-
}, [
|
|
4492
|
+
!i && e.length > 0 && a.setExplorerState({ namespace: e[0].id });
|
|
4493
|
+
}, [i, e, a]);
|
|
4501
4494
|
const p = Ir(a.appId);
|
|
4502
4495
|
return /* @__PURE__ */ h(
|
|
4503
4496
|
"div",
|
|
@@ -4507,9 +4500,9 @@ const Do = ({
|
|
|
4507
4500
|
a.className
|
|
4508
4501
|
),
|
|
4509
4502
|
children: [
|
|
4510
|
-
/* @__PURE__ */ r(fe, {
|
|
4511
|
-
/* @__PURE__ */ r(fe, {
|
|
4512
|
-
|
|
4503
|
+
/* @__PURE__ */ r(fe, { ...n, children: /* @__PURE__ */ r(Nn, { appId: a.appId, db: t }) }),
|
|
4504
|
+
/* @__PURE__ */ r(fe, { ...o, children: /* @__PURE__ */ r(
|
|
4505
|
+
An,
|
|
4513
4506
|
{
|
|
4514
4507
|
db: t,
|
|
4515
4508
|
onClose: (f) => {
|
|
@@ -4524,13 +4517,13 @@ const Do = ({
|
|
|
4524
4517
|
className: O(
|
|
4525
4518
|
"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",
|
|
4526
4519
|
{
|
|
4527
|
-
hidden: !
|
|
4520
|
+
hidden: !l
|
|
4528
4521
|
}
|
|
4529
4522
|
),
|
|
4530
4523
|
children: [
|
|
4531
4524
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-sm font-semibold dark:text-white", children: [
|
|
4532
4525
|
/* @__PURE__ */ r(
|
|
4533
|
-
|
|
4526
|
+
Wa,
|
|
4534
4527
|
{
|
|
4535
4528
|
height: "1rem",
|
|
4536
4529
|
className: "cursor-pointer md:hidden dark:text-white",
|
|
@@ -4597,20 +4590,20 @@ const Do = ({
|
|
|
4597
4590
|
onClick: (f) => {
|
|
4598
4591
|
f.stopPropagation(), g(!0);
|
|
4599
4592
|
},
|
|
4600
|
-
children: /* @__PURE__ */ r(
|
|
4593
|
+
children: /* @__PURE__ */ r(Va, { height: "1rem", className: "dark:text-white" })
|
|
4601
4594
|
}
|
|
4602
4595
|
) }),
|
|
4603
|
-
a.explorerState && /* @__PURE__ */ r(
|
|
4596
|
+
a.explorerState && /* @__PURE__ */ r(Eo, { namespaces: e, db: t })
|
|
4604
4597
|
]
|
|
4605
4598
|
}
|
|
4606
4599
|
);
|
|
4607
|
-
},
|
|
4600
|
+
}, _o = ({
|
|
4608
4601
|
appId: e,
|
|
4609
4602
|
apiURI: t,
|
|
4610
4603
|
websocketURI: a,
|
|
4611
4604
|
adminToken: n
|
|
4612
4605
|
}) => se(
|
|
4613
|
-
() =>
|
|
4606
|
+
() => rn({
|
|
4614
4607
|
appId: e,
|
|
4615
4608
|
apiURI: t,
|
|
4616
4609
|
websocketURI: a,
|
|
@@ -4620,7 +4613,7 @@ const Do = ({
|
|
|
4620
4613
|
}),
|
|
4621
4614
|
[e, t, a, n]
|
|
4622
4615
|
);
|
|
4623
|
-
class
|
|
4616
|
+
class Do extends dr {
|
|
4624
4617
|
state = {
|
|
4625
4618
|
hasError: !1,
|
|
4626
4619
|
error: null
|
|
@@ -4637,7 +4630,7 @@ class Fo extends dr {
|
|
|
4637
4630
|
render() {
|
|
4638
4631
|
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: [
|
|
4639
4632
|
/* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
4640
|
-
/* @__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(
|
|
4633
|
+
/* @__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(Sa, { className: "h-6 w-6 text-red-600 dark:text-red-400" }) }),
|
|
4641
4634
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
4642
4635
|
/* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: "Something went wrong" }),
|
|
4643
4636
|
/* @__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." })
|
|
@@ -4674,7 +4667,7 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4674
4667
|
"useExplorerProps must be used within an Explorer component"
|
|
4675
4668
|
);
|
|
4676
4669
|
return { explorerState: e.props.explorerState, history: e.history };
|
|
4677
|
-
}, Fr = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0,
|
|
4670
|
+
}, Fr = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0, Lo = (e, t, a) => {
|
|
4678
4671
|
const n = Fr(e);
|
|
4679
4672
|
return {
|
|
4680
4673
|
...e,
|
|
@@ -4687,27 +4680,27 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4687
4680
|
setExplorerState: e.setExplorerState || a,
|
|
4688
4681
|
useShadowDOM: e.useShadowDOM || !1
|
|
4689
4682
|
};
|
|
4690
|
-
},
|
|
4683
|
+
}, qi = (e) => {
|
|
4691
4684
|
const [t, a] = C(
|
|
4692
4685
|
null
|
|
4693
|
-
), n =
|
|
4686
|
+
), n = Lo(
|
|
4694
4687
|
e,
|
|
4695
4688
|
t,
|
|
4696
4689
|
a
|
|
4697
|
-
), { explorerState: o, setExplorerState:
|
|
4690
|
+
), { explorerState: o, setExplorerState: i } = n, [l, g] = C([]), c = at(
|
|
4698
4691
|
(w, v = !1) => {
|
|
4699
|
-
g((k) => !v && o ? [...k, o] : k),
|
|
4692
|
+
g((k) => !v && o ? [...k, o] : k), i(w);
|
|
4700
4693
|
},
|
|
4701
|
-
[o,
|
|
4694
|
+
[o, i]
|
|
4702
4695
|
), p = at(() => {
|
|
4703
4696
|
g((w) => {
|
|
4704
4697
|
if (w.length > 0) {
|
|
4705
4698
|
const [v, ...k] = w;
|
|
4706
|
-
return
|
|
4699
|
+
return i(v), k;
|
|
4707
4700
|
}
|
|
4708
4701
|
return w;
|
|
4709
4702
|
});
|
|
4710
|
-
}, [
|
|
4703
|
+
}, [i]), f = _o({
|
|
4711
4704
|
appId: n.appId,
|
|
4712
4705
|
apiURI: n.apiURI,
|
|
4713
4706
|
websocketURI: n.websocketURI,
|
|
@@ -4720,18 +4713,18 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4720
4713
|
}
|
|
4721
4714
|
u.current !== n.appId && (u.current = n.appId, g([]), Fr(e) || a(null));
|
|
4722
4715
|
}, [n.appId, e]);
|
|
4723
|
-
const s =
|
|
4716
|
+
const s = jn(f), m = se(
|
|
4724
4717
|
() => ({
|
|
4725
4718
|
props: n,
|
|
4726
4719
|
history: {
|
|
4727
4720
|
push: c,
|
|
4728
4721
|
pop: p,
|
|
4729
|
-
items:
|
|
4722
|
+
items: l
|
|
4730
4723
|
}
|
|
4731
4724
|
}),
|
|
4732
|
-
[n, c, p,
|
|
4733
|
-
), b = n.useShadowDOM ?
|
|
4734
|
-
return /* @__PURE__ */ r(At.Provider, { value: m, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
|
|
4725
|
+
[n, c, p, l]
|
|
4726
|
+
), b = n.useShadowDOM ? Fo : sr.Fragment;
|
|
4727
|
+
return /* @__PURE__ */ r(At.Provider, { value: m, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(Do, { children: /* @__PURE__ */ r(Oo, { db: f, namespaces: s.namespaces || [] }) }) }) });
|
|
4735
4728
|
}, Rt = cr({
|
|
4736
4729
|
shadowRoot: null,
|
|
4737
4730
|
container: null,
|
|
@@ -4743,38 +4736,38 @@ function ct() {
|
|
|
4743
4736
|
function ut() {
|
|
4744
4737
|
return lt(Rt).darkMode;
|
|
4745
4738
|
}
|
|
4746
|
-
const
|
|
4747
|
-
const t = X(null), a = X(null), [n, o] = C(null),
|
|
4739
|
+
const Fo = ({ children: e }) => {
|
|
4740
|
+
const t = X(null), a = X(null), [n, o] = C(null), l = de().darkMode;
|
|
4748
4741
|
H(() => {
|
|
4749
4742
|
if (t.current && !n)
|
|
4750
4743
|
try {
|
|
4751
4744
|
const c = t.current.attachShadow({ mode: "open" });
|
|
4752
4745
|
a.current = c;
|
|
4753
4746
|
const p = document.createElement("style");
|
|
4754
|
-
p.textContent =
|
|
4747
|
+
p.textContent = kn;
|
|
4755
4748
|
const f = document.createElement("div");
|
|
4756
|
-
f.setAttribute("class",
|
|
4749
|
+
f.setAttribute("class", l ? "h-full dark" : "h-full"), c.appendChild(p), c.appendChild(f), o(f);
|
|
4757
4750
|
} catch {
|
|
4758
4751
|
}
|
|
4759
4752
|
}, [n]), H(() => {
|
|
4760
|
-
n && n.setAttribute("class",
|
|
4761
|
-
}, [
|
|
4753
|
+
n && n.setAttribute("class", l ? "h-full dark" : "h-full");
|
|
4754
|
+
}, [l, n]);
|
|
4762
4755
|
const g = sr.useMemo(
|
|
4763
4756
|
() => ({
|
|
4764
4757
|
shadowRoot: a.current,
|
|
4765
4758
|
container: n,
|
|
4766
|
-
darkMode:
|
|
4759
|
+
darkMode: l
|
|
4767
4760
|
}),
|
|
4768
|
-
[n,
|
|
4761
|
+
[n, l]
|
|
4769
4762
|
);
|
|
4770
|
-
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Rt.Provider, { value: g, children: n ?
|
|
4763
|
+
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Rt.Provider, { value: g, children: n ? Ta(e, n) : null }) });
|
|
4771
4764
|
};
|
|
4772
|
-
function
|
|
4765
|
+
function $o({
|
|
4773
4766
|
...e
|
|
4774
4767
|
}) {
|
|
4775
4768
|
return /* @__PURE__ */ r(le.Root, { "data-slot": "select", ...e });
|
|
4776
4769
|
}
|
|
4777
|
-
function
|
|
4770
|
+
function zo({
|
|
4778
4771
|
...e
|
|
4779
4772
|
}) {
|
|
4780
4773
|
return /* @__PURE__ */ r(
|
|
@@ -4786,7 +4779,7 @@ function Mo({
|
|
|
4786
4779
|
}
|
|
4787
4780
|
);
|
|
4788
4781
|
}
|
|
4789
|
-
function
|
|
4782
|
+
function jo({
|
|
4790
4783
|
className: e,
|
|
4791
4784
|
size: t = "default",
|
|
4792
4785
|
children: a,
|
|
@@ -4809,13 +4802,13 @@ function Bo({
|
|
|
4809
4802
|
}
|
|
4810
4803
|
);
|
|
4811
4804
|
}
|
|
4812
|
-
function
|
|
4805
|
+
function Mo({
|
|
4813
4806
|
className: e,
|
|
4814
4807
|
children: t,
|
|
4815
4808
|
position: a = "popper",
|
|
4816
4809
|
...n
|
|
4817
4810
|
}) {
|
|
4818
|
-
const o = ct(),
|
|
4811
|
+
const o = ct(), i = ut();
|
|
4819
4812
|
return /* @__PURE__ */ r(le.Portal, { container: o, children: /* @__PURE__ */ h(
|
|
4820
4813
|
le.Content,
|
|
4821
4814
|
{
|
|
@@ -4823,13 +4816,13 @@ function Uo({
|
|
|
4823
4816
|
className: O(
|
|
4824
4817
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border bg-gray-100 text-gray-900 shadow-md dark:border-neutral-700 dark:bg-neutral-800 dark:text-white",
|
|
4825
4818
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
4826
|
-
|
|
4819
|
+
i ? "dark" : "",
|
|
4827
4820
|
e
|
|
4828
4821
|
),
|
|
4829
4822
|
position: a,
|
|
4830
4823
|
...n,
|
|
4831
4824
|
children: [
|
|
4832
|
-
/* @__PURE__ */ r(
|
|
4825
|
+
/* @__PURE__ */ r(Uo, {}),
|
|
4833
4826
|
/* @__PURE__ */ r(
|
|
4834
4827
|
le.Viewport,
|
|
4835
4828
|
{
|
|
@@ -4840,12 +4833,12 @@ function Uo({
|
|
|
4840
4833
|
children: t
|
|
4841
4834
|
}
|
|
4842
4835
|
),
|
|
4843
|
-
/* @__PURE__ */ r(
|
|
4836
|
+
/* @__PURE__ */ r(Po, {})
|
|
4844
4837
|
]
|
|
4845
4838
|
}
|
|
4846
4839
|
) });
|
|
4847
4840
|
}
|
|
4848
|
-
function
|
|
4841
|
+
function Bo({
|
|
4849
4842
|
className: e,
|
|
4850
4843
|
children: t,
|
|
4851
4844
|
...a
|
|
@@ -4860,13 +4853,13 @@ function Po({
|
|
|
4860
4853
|
),
|
|
4861
4854
|
...a,
|
|
4862
4855
|
children: [
|
|
4863
|
-
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(le.ItemIndicator, { children: /* @__PURE__ */ r(
|
|
4856
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(le.ItemIndicator, { children: /* @__PURE__ */ r(Na, { width: 12, className: "size-4" }) }) }),
|
|
4864
4857
|
/* @__PURE__ */ r(le.ItemText, { children: t })
|
|
4865
4858
|
]
|
|
4866
4859
|
}
|
|
4867
4860
|
);
|
|
4868
4861
|
}
|
|
4869
|
-
function
|
|
4862
|
+
function Uo({
|
|
4870
4863
|
className: e,
|
|
4871
4864
|
...t
|
|
4872
4865
|
}) {
|
|
@@ -4879,11 +4872,11 @@ function qo({
|
|
|
4879
4872
|
e
|
|
4880
4873
|
),
|
|
4881
4874
|
...t,
|
|
4882
|
-
children: /* @__PURE__ */ r(
|
|
4875
|
+
children: /* @__PURE__ */ r(Ea, { className: "size-4" })
|
|
4883
4876
|
}
|
|
4884
4877
|
);
|
|
4885
4878
|
}
|
|
4886
|
-
function
|
|
4879
|
+
function Po({
|
|
4887
4880
|
className: e,
|
|
4888
4881
|
...t
|
|
4889
4882
|
}) {
|
|
@@ -5258,7 +5251,7 @@ var xt = function() {
|
|
|
5258
5251
|
delete u.rest;
|
|
5259
5252
|
}
|
|
5260
5253
|
var b = new g();
|
|
5261
|
-
return c(b, b.head, d),
|
|
5254
|
+
return c(b, b.head, d), l(d, b, u, b.head, 0), f(b);
|
|
5262
5255
|
},
|
|
5263
5256
|
/**
|
|
5264
5257
|
* @namespace
|
|
@@ -5327,7 +5320,7 @@ var xt = function() {
|
|
|
5327
5320
|
v += " " + k + '="' + (b.attributes[k] || "").replace(/"/g, """) + '"';
|
|
5328
5321
|
return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + v + ">" + b.content + "</" + b.tag + ">";
|
|
5329
5322
|
};
|
|
5330
|
-
function
|
|
5323
|
+
function i(d, u, s, m) {
|
|
5331
5324
|
d.lastIndex = u;
|
|
5332
5325
|
var b = d.exec(s);
|
|
5333
5326
|
if (b && m && b[1]) {
|
|
@@ -5336,7 +5329,7 @@ var xt = function() {
|
|
|
5336
5329
|
}
|
|
5337
5330
|
return b;
|
|
5338
5331
|
}
|
|
5339
|
-
function
|
|
5332
|
+
function l(d, u, s, m, b, w) {
|
|
5340
5333
|
for (var v in s)
|
|
5341
5334
|
if (!(!s.hasOwnProperty(v) || !s[v])) {
|
|
5342
5335
|
var k = s[v];
|
|
@@ -5356,7 +5349,7 @@ var xt = function() {
|
|
|
5356
5349
|
if (!(S instanceof o)) {
|
|
5357
5350
|
var T = 1, I;
|
|
5358
5351
|
if (L) {
|
|
5359
|
-
if (I =
|
|
5352
|
+
if (I = i(Y, j, d, B), !I || I.index >= d.length)
|
|
5360
5353
|
break;
|
|
5361
5354
|
var Q = I.index, A = I.index + I[0].length, D = j;
|
|
5362
5355
|
for (D += z.value.length; Q >= D; )
|
|
@@ -5366,7 +5359,7 @@ var xt = function() {
|
|
|
5366
5359
|
for (var F = z; F !== u.tail && (D < A || typeof F.value == "string"); F = F.next)
|
|
5367
5360
|
T++, D += F.value.length;
|
|
5368
5361
|
T--, S = d.slice(j, D), I.index -= j;
|
|
5369
|
-
} else if (I =
|
|
5362
|
+
} else if (I = i(Y, 0, S, B), !I)
|
|
5370
5363
|
continue;
|
|
5371
5364
|
var Q = I.index, te = I[0], W = S.slice(0, Q), re = S.slice(Q + te.length), ye = j + S.length;
|
|
5372
5365
|
w && ye > w.reach && (w.reach = ye);
|
|
@@ -5378,7 +5371,7 @@ var xt = function() {
|
|
|
5378
5371
|
cause: v + "," + x,
|
|
5379
5372
|
reach: ye
|
|
5380
5373
|
};
|
|
5381
|
-
|
|
5374
|
+
l(d, u, s, z.prev, j, ke), w && ke.reach > w.reach && (w.reach = ke.reach);
|
|
5382
5375
|
}
|
|
5383
5376
|
}
|
|
5384
5377
|
}
|
|
@@ -5509,15 +5502,15 @@ Object.defineProperty(y.languages.markup.tag, "addInlined", {
|
|
|
5509
5502
|
pattern: /[\s\S]+/,
|
|
5510
5503
|
inside: y.languages[a]
|
|
5511
5504
|
};
|
|
5512
|
-
var
|
|
5513
|
-
|
|
5505
|
+
var i = {};
|
|
5506
|
+
i[t] = {
|
|
5514
5507
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
5515
5508
|
return t;
|
|
5516
5509
|
}), "i"),
|
|
5517
5510
|
lookbehind: !0,
|
|
5518
5511
|
greedy: !0,
|
|
5519
5512
|
inside: o
|
|
5520
|
-
}, y.languages.insertBefore("markup", "cdata",
|
|
5513
|
+
}, y.languages.insertBefore("markup", "cdata", i);
|
|
5521
5514
|
}
|
|
5522
5515
|
});
|
|
5523
5516
|
Object.defineProperty(y.languages.markup.tag, "addAttribute", {
|
|
@@ -5754,8 +5747,8 @@ y.languages.rss = y.languages.xml;
|
|
|
5754
5747
|
lookbehind: !0
|
|
5755
5748
|
}
|
|
5756
5749
|
}, a.inside = e.languages.bash;
|
|
5757
|
-
for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"],
|
|
5758
|
-
|
|
5750
|
+
for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], i = n.variable[1].inside, l = 0; l < o.length; l++)
|
|
5751
|
+
i[o[l]] = e.languages.bash[o[l]];
|
|
5759
5752
|
e.languages.shell = e.languages.bash;
|
|
5760
5753
|
})(y);
|
|
5761
5754
|
y.languages.clike = {
|
|
@@ -6280,8 +6273,8 @@ y.languages.js = y.languages.javascript;
|
|
|
6280
6273
|
(function(e) {
|
|
6281
6274
|
var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", o = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
6282
6275
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
6283
|
-
}),
|
|
6284
|
-
function
|
|
6276
|
+
}), i = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
6277
|
+
function l(g, c) {
|
|
6285
6278
|
c = (c || "").replace(/m/g, "") + "m";
|
|
6286
6279
|
var p = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
6287
6280
|
return n;
|
|
@@ -6303,7 +6296,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6303
6296
|
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
6304
6297
|
return n;
|
|
6305
6298
|
}).replace(/<<key>>/g, function() {
|
|
6306
|
-
return "(?:" + o + "|" +
|
|
6299
|
+
return "(?:" + o + "|" + i + ")";
|
|
6307
6300
|
})),
|
|
6308
6301
|
lookbehind: !0,
|
|
6309
6302
|
greedy: !0,
|
|
@@ -6315,27 +6308,27 @@ y.languages.js = y.languages.javascript;
|
|
|
6315
6308
|
alias: "important"
|
|
6316
6309
|
},
|
|
6317
6310
|
datetime: {
|
|
6318
|
-
pattern:
|
|
6311
|
+
pattern: l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
6319
6312
|
lookbehind: !0,
|
|
6320
6313
|
alias: "number"
|
|
6321
6314
|
},
|
|
6322
6315
|
boolean: {
|
|
6323
|
-
pattern:
|
|
6316
|
+
pattern: l(/false|true/.source, "i"),
|
|
6324
6317
|
lookbehind: !0,
|
|
6325
6318
|
alias: "important"
|
|
6326
6319
|
},
|
|
6327
6320
|
null: {
|
|
6328
|
-
pattern:
|
|
6321
|
+
pattern: l(/null|~/.source, "i"),
|
|
6329
6322
|
lookbehind: !0,
|
|
6330
6323
|
alias: "important"
|
|
6331
6324
|
},
|
|
6332
6325
|
string: {
|
|
6333
|
-
pattern: i
|
|
6326
|
+
pattern: l(i),
|
|
6334
6327
|
lookbehind: !0,
|
|
6335
6328
|
greedy: !0
|
|
6336
6329
|
},
|
|
6337
6330
|
number: {
|
|
6338
|
-
pattern:
|
|
6331
|
+
pattern: l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
6339
6332
|
lookbehind: !0
|
|
6340
6333
|
},
|
|
6341
6334
|
tag: a,
|
|
@@ -6352,7 +6345,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6352
6345
|
}
|
|
6353
6346
|
var n = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
6354
6347
|
return n;
|
|
6355
|
-
}),
|
|
6348
|
+
}), i = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
6356
6349
|
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
6357
6350
|
"front-matter-block": {
|
|
6358
6351
|
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
@@ -6373,10 +6366,10 @@ y.languages.js = y.languages.javascript;
|
|
|
6373
6366
|
alias: "punctuation"
|
|
6374
6367
|
},
|
|
6375
6368
|
table: {
|
|
6376
|
-
pattern: RegExp("^" + o +
|
|
6369
|
+
pattern: RegExp("^" + o + i + "(?:" + o + ")*", "m"),
|
|
6377
6370
|
inside: {
|
|
6378
6371
|
"table-data-rows": {
|
|
6379
|
-
pattern: RegExp("^(" + o +
|
|
6372
|
+
pattern: RegExp("^(" + o + i + ")(?:" + o + ")*$"),
|
|
6380
6373
|
lookbehind: !0,
|
|
6381
6374
|
inside: {
|
|
6382
6375
|
"table-data": {
|
|
@@ -6387,7 +6380,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6387
6380
|
}
|
|
6388
6381
|
},
|
|
6389
6382
|
"table-line": {
|
|
6390
|
-
pattern: RegExp("^(" + o + ")" +
|
|
6383
|
+
pattern: RegExp("^(" + o + ")" + i + "$"),
|
|
6391
6384
|
lookbehind: !0,
|
|
6392
6385
|
inside: {
|
|
6393
6386
|
punctuation: /\||:?-{3,}:?/
|
|
@@ -6617,14 +6610,14 @@ y.languages.js = y.languages.javascript;
|
|
|
6617
6610
|
}
|
|
6618
6611
|
}
|
|
6619
6612
|
});
|
|
6620
|
-
var
|
|
6613
|
+
var l = RegExp(e.languages.markup.tag.pattern.source, "gi"), g = {
|
|
6621
6614
|
amp: "&",
|
|
6622
6615
|
lt: "<",
|
|
6623
6616
|
gt: ">",
|
|
6624
6617
|
quot: '"'
|
|
6625
6618
|
}, c = String.fromCodePoint || String.fromCharCode;
|
|
6626
6619
|
function p(f) {
|
|
6627
|
-
var d = f.replace(
|
|
6620
|
+
var d = f.replace(l, "");
|
|
6628
6621
|
return d = d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, s) {
|
|
6629
6622
|
if (s = s.toLowerCase(), s[0] === "#") {
|
|
6630
6623
|
var m;
|
|
@@ -6707,7 +6700,7 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6707
6700
|
function o(b) {
|
|
6708
6701
|
return a[n + b];
|
|
6709
6702
|
}
|
|
6710
|
-
function
|
|
6703
|
+
function i(b, w) {
|
|
6711
6704
|
w = w || 0;
|
|
6712
6705
|
for (var v = 0; v < b.length; v++) {
|
|
6713
6706
|
var k = o(v + w);
|
|
@@ -6716,7 +6709,7 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6716
6709
|
}
|
|
6717
6710
|
return !0;
|
|
6718
6711
|
}
|
|
6719
|
-
function
|
|
6712
|
+
function l(b, w) {
|
|
6720
6713
|
for (var v = 1, k = n; k < a.length; k++) {
|
|
6721
6714
|
var x = a[k], _ = x.content;
|
|
6722
6715
|
if (x.type === "punctuation" && typeof _ == "string") {
|
|
@@ -6736,9 +6729,9 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6736
6729
|
var c = a[n++];
|
|
6737
6730
|
if (c.type === "keyword" && c.content === "mutation") {
|
|
6738
6731
|
var p = [];
|
|
6739
|
-
if (
|
|
6732
|
+
if (i(["definition-mutation", "punctuation"]) && o(1).content === "(") {
|
|
6740
6733
|
n += 2;
|
|
6741
|
-
var f =
|
|
6734
|
+
var f = l(/^\($/, /^\)$/);
|
|
6742
6735
|
if (f === -1)
|
|
6743
6736
|
continue;
|
|
6744
6737
|
for (; n < f; n++) {
|
|
@@ -6747,8 +6740,8 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6747
6740
|
}
|
|
6748
6741
|
n = f + 1;
|
|
6749
6742
|
}
|
|
6750
|
-
if (
|
|
6751
|
-
var u =
|
|
6743
|
+
if (i(["punctuation", "property-query"]) && o(0).content === "{" && (n++, g(o(0), "property-mutation"), p.length > 0)) {
|
|
6744
|
+
var u = l(/^\{$/, /^\}$/);
|
|
6752
6745
|
if (u === -1)
|
|
6753
6746
|
continue;
|
|
6754
6747
|
for (var s = n; s < u; s++) {
|
|
@@ -6790,8 +6783,8 @@ y.languages.sql = {
|
|
|
6790
6783
|
punctuation: /[;[\]()`,.]/
|
|
6791
6784
|
};
|
|
6792
6785
|
(function(e) {
|
|
6793
|
-
var t = e.languages.javascript["template-string"], a = t.pattern.source, n = t.inside.interpolation, o = n.inside["interpolation-punctuation"],
|
|
6794
|
-
function
|
|
6786
|
+
var t = e.languages.javascript["template-string"], a = t.pattern.source, n = t.inside.interpolation, o = n.inside["interpolation-punctuation"], i = n.pattern.source;
|
|
6787
|
+
function l(s, m) {
|
|
6795
6788
|
if (e.languages[s])
|
|
6796
6789
|
return {
|
|
6797
6790
|
pattern: RegExp("((?:" + m + ")\\s*)" + a),
|
|
@@ -6814,18 +6807,18 @@ y.languages.sql = {
|
|
|
6814
6807
|
// css`a { color: #25F; }`
|
|
6815
6808
|
// styled-components:
|
|
6816
6809
|
// styled.h1`color: red;`
|
|
6817
|
-
|
|
6810
|
+
l("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),
|
|
6818
6811
|
// html`<p></p>`
|
|
6819
6812
|
// div.innerHTML = `<p></p>`
|
|
6820
|
-
|
|
6813
|
+
l("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),
|
|
6821
6814
|
// svg`<path fill="#fff" d="M55.37 ..."/>`
|
|
6822
|
-
|
|
6815
|
+
l("svg", /\bsvg/.source),
|
|
6823
6816
|
// md`# h1`, markdown`## h2`
|
|
6824
|
-
|
|
6817
|
+
l("markdown", /\b(?:markdown|md)/.source),
|
|
6825
6818
|
// gql`...`, graphql`...`, graphql.experimental`...`
|
|
6826
|
-
|
|
6819
|
+
l("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),
|
|
6827
6820
|
// sql`...`
|
|
6828
|
-
|
|
6821
|
+
l("sql", /\bsql/.source),
|
|
6829
6822
|
// vanilla template string
|
|
6830
6823
|
t
|
|
6831
6824
|
].filter(Boolean);
|
|
@@ -6853,7 +6846,7 @@ y.languages.sql = {
|
|
|
6853
6846
|
function f(s, m, b) {
|
|
6854
6847
|
var w = e.tokenize(s, {
|
|
6855
6848
|
interpolation: {
|
|
6856
|
-
pattern: RegExp(
|
|
6849
|
+
pattern: RegExp(i),
|
|
6857
6850
|
lookbehind: !0
|
|
6858
6851
|
}
|
|
6859
6852
|
}), v = 0, k = {}, x = w.map(function(L) {
|
|
@@ -7059,17 +7052,17 @@ y.languages.sql = {
|
|
|
7059
7052
|
}
|
|
7060
7053
|
});
|
|
7061
7054
|
for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], n = 0; n < a.length; n++) {
|
|
7062
|
-
var o = a[n],
|
|
7063
|
-
e.util.type(
|
|
7064
|
-
pattern:
|
|
7055
|
+
var o = a[n], i = e.languages.javascript[o];
|
|
7056
|
+
e.util.type(i) === "RegExp" && (i = e.languages.javascript[o] = {
|
|
7057
|
+
pattern: i
|
|
7065
7058
|
});
|
|
7066
|
-
var
|
|
7067
|
-
|
|
7059
|
+
var l = i.inside || {};
|
|
7060
|
+
i.inside = l, l["maybe-class-name"] = /^[A-Z][\s\S]*/;
|
|
7068
7061
|
}
|
|
7069
7062
|
})(y);
|
|
7070
7063
|
(function(e) {
|
|
7071
7064
|
var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, n = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, o = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
7072
|
-
function
|
|
7065
|
+
function i(c, p) {
|
|
7073
7066
|
return c = c.replace(/<S>/g, function() {
|
|
7074
7067
|
return a;
|
|
7075
7068
|
}).replace(/<BRACES>/g, function() {
|
|
@@ -7078,15 +7071,15 @@ y.languages.sql = {
|
|
|
7078
7071
|
return o;
|
|
7079
7072
|
}), RegExp(c, p);
|
|
7080
7073
|
}
|
|
7081
|
-
o =
|
|
7074
|
+
o = i(o).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
|
|
7082
7075
|
spread: {
|
|
7083
|
-
pattern:
|
|
7076
|
+
pattern: i(/<SPREAD>/.source),
|
|
7084
7077
|
inside: e.languages.jsx
|
|
7085
7078
|
}
|
|
7086
7079
|
}, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", {
|
|
7087
7080
|
script: {
|
|
7088
7081
|
// Allow for two levels of nesting
|
|
7089
|
-
pattern:
|
|
7082
|
+
pattern: i(/=<BRACES>/.source),
|
|
7090
7083
|
alias: "language-javascript",
|
|
7091
7084
|
inside: {
|
|
7092
7085
|
"script-punctuation": {
|
|
@@ -7097,17 +7090,17 @@ y.languages.sql = {
|
|
|
7097
7090
|
}
|
|
7098
7091
|
}
|
|
7099
7092
|
}, e.languages.jsx.tag);
|
|
7100
|
-
var
|
|
7101
|
-
return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(
|
|
7093
|
+
var l = function(c) {
|
|
7094
|
+
return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(l).join("") : "";
|
|
7102
7095
|
}, g = function(c) {
|
|
7103
7096
|
for (var p = [], f = 0; f < c.length; f++) {
|
|
7104
7097
|
var d = c[f], u = !1;
|
|
7105
|
-
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 ===
|
|
7106
|
-
tagName:
|
|
7098
|
+
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 === l(d.content[0].content[1]) && p.pop() : d.content[d.content.length - 1].content === "/>" || p.push({
|
|
7099
|
+
tagName: l(d.content[0].content[1]),
|
|
7107
7100
|
openedBraces: 0
|
|
7108
7101
|
}) : 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) {
|
|
7109
|
-
var s =
|
|
7110
|
-
f < c.length - 1 && (typeof c[f + 1] == "string" || c[f + 1].type === "plain-text") && (s +=
|
|
7102
|
+
var s = l(d);
|
|
7103
|
+
f < c.length - 1 && (typeof c[f + 1] == "string" || c[f + 1].type === "plain-text") && (s += l(c[f + 1]), c.splice(f + 1, 1)), f > 0 && (typeof c[f - 1] == "string" || c[f - 1].type === "plain-text") && (s = l(c[f - 1]) + s, c.splice(f - 1, 1), f--), c[f] = new e.Token("plain-text", s, null, s);
|
|
7111
7104
|
}
|
|
7112
7105
|
d.content && typeof d.content != "string" && g(d.content);
|
|
7113
7106
|
}
|
|
@@ -7264,15 +7257,15 @@ delete y.languages.go["class-name"];
|
|
|
7264
7257
|
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
7265
7258
|
* @param {(match: string) => boolean} [replaceFilter]
|
|
7266
7259
|
*/
|
|
7267
|
-
value: function(a, n, o,
|
|
7260
|
+
value: function(a, n, o, i) {
|
|
7268
7261
|
if (a.language === n) {
|
|
7269
|
-
var
|
|
7262
|
+
var l = a.tokenStack = [];
|
|
7270
7263
|
a.code = a.code.replace(o, function(g) {
|
|
7271
|
-
if (typeof
|
|
7264
|
+
if (typeof i == "function" && !i(g))
|
|
7272
7265
|
return g;
|
|
7273
|
-
for (var c =
|
|
7266
|
+
for (var c = l.length, p; a.code.indexOf(p = t(n, c)) !== -1; )
|
|
7274
7267
|
++c;
|
|
7275
|
-
return
|
|
7268
|
+
return l[c] = g, p;
|
|
7276
7269
|
}), a.grammar = e.languages.markup;
|
|
7277
7270
|
}
|
|
7278
7271
|
}
|
|
@@ -7288,22 +7281,22 @@ delete y.languages.go["class-name"];
|
|
|
7288
7281
|
if (a.language !== n || !a.tokenStack)
|
|
7289
7282
|
return;
|
|
7290
7283
|
a.grammar = e.languages[n];
|
|
7291
|
-
var o = 0,
|
|
7292
|
-
function
|
|
7293
|
-
for (var c = 0; c < g.length && !(o >=
|
|
7284
|
+
var o = 0, i = Object.keys(a.tokenStack);
|
|
7285
|
+
function l(g) {
|
|
7286
|
+
for (var c = 0; c < g.length && !(o >= i.length); c++) {
|
|
7294
7287
|
var p = g[c];
|
|
7295
7288
|
if (typeof p == "string" || p.content && typeof p.content == "string") {
|
|
7296
|
-
var f =
|
|
7289
|
+
var f = i[o], d = a.tokenStack[f], u = typeof p == "string" ? p : p.content, s = t(n, f), m = u.indexOf(s);
|
|
7297
7290
|
if (m > -1) {
|
|
7298
7291
|
++o;
|
|
7299
7292
|
var b = u.substring(0, m), w = new e.Token(n, e.tokenize(d, a.grammar), "language-" + n, d), v = u.substring(m + s.length), k = [];
|
|
7300
|
-
b && k.push.apply(k,
|
|
7293
|
+
b && k.push.apply(k, l([b])), k.push(w), v && k.push.apply(k, l([v])), typeof p == "string" ? g.splice.apply(g, [c, 1].concat(k)) : p.content = k;
|
|
7301
7294
|
}
|
|
7302
|
-
} else p.content &&
|
|
7295
|
+
} else p.content && l(p.content);
|
|
7303
7296
|
}
|
|
7304
7297
|
return g;
|
|
7305
7298
|
}
|
|
7306
|
-
|
|
7299
|
+
l(a.tokens);
|
|
7307
7300
|
}
|
|
7308
7301
|
}
|
|
7309
7302
|
});
|
|
@@ -7872,7 +7865,7 @@ y.languages.wasm = {
|
|
|
7872
7865
|
number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
|
|
7873
7866
|
punctuation: /[()]/
|
|
7874
7867
|
};
|
|
7875
|
-
var
|
|
7868
|
+
var qo = {
|
|
7876
7869
|
plain: {
|
|
7877
7870
|
backgroundColor: "#2a2734",
|
|
7878
7871
|
color: "#9a86fd"
|
|
@@ -7938,10 +7931,10 @@ var Ho = {
|
|
|
7938
7931
|
color: "#c4b9fe"
|
|
7939
7932
|
}
|
|
7940
7933
|
}]
|
|
7941
|
-
},
|
|
7934
|
+
}, Go = {
|
|
7942
7935
|
// $FlowFixMe
|
|
7943
7936
|
Prism: y,
|
|
7944
|
-
theme:
|
|
7937
|
+
theme: qo
|
|
7945
7938
|
};
|
|
7946
7939
|
function Be(e, t, a) {
|
|
7947
7940
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -7961,7 +7954,7 @@ function he() {
|
|
|
7961
7954
|
return e;
|
|
7962
7955
|
}, he.apply(this, arguments);
|
|
7963
7956
|
}
|
|
7964
|
-
var
|
|
7957
|
+
var Ho = /\r\n|\r|\n/, ar = function(e) {
|
|
7965
7958
|
e.length === 0 ? e.push({
|
|
7966
7959
|
types: ["plain"],
|
|
7967
7960
|
content: `
|
|
@@ -7972,15 +7965,15 @@ var Vo = /\r\n|\r|\n/, ar = function(e) {
|
|
|
7972
7965
|
}, nr = function(e, t) {
|
|
7973
7966
|
var a = e.length;
|
|
7974
7967
|
return a > 0 && e[a - 1] === t ? e : e.concat(t);
|
|
7975
|
-
},
|
|
7976
|
-
for (var t = [[]], a = [e], n = [0], o = [e.length],
|
|
7977
|
-
for (; (
|
|
7978
|
-
var p = void 0, f = t[
|
|
7979
|
-
if (typeof u == "string" ? (f =
|
|
7980
|
-
|
|
7968
|
+
}, Wo = function(e) {
|
|
7969
|
+
for (var t = [[]], a = [e], n = [0], o = [e.length], i = 0, l = 0, g = [], c = [g]; l > -1; ) {
|
|
7970
|
+
for (; (i = n[l]++) < o[l]; ) {
|
|
7971
|
+
var p = void 0, f = t[l], d = a[l], u = d[i];
|
|
7972
|
+
if (typeof u == "string" ? (f = l > 0 ? f : ["plain"], p = u) : (f = nr(f, u.type), u.alias && (f = nr(f, u.alias)), p = u.content), typeof p != "string") {
|
|
7973
|
+
l++, t.push(f), a.push(p), n.push(0), o.push(p.length);
|
|
7981
7974
|
continue;
|
|
7982
7975
|
}
|
|
7983
|
-
var s = p.split(
|
|
7976
|
+
var s = p.split(Ho), m = s.length;
|
|
7984
7977
|
g.push({
|
|
7985
7978
|
types: f,
|
|
7986
7979
|
content: s[0]
|
|
@@ -7991,16 +7984,16 @@ var Vo = /\r\n|\r|\n/, ar = function(e) {
|
|
|
7991
7984
|
content: s[b]
|
|
7992
7985
|
});
|
|
7993
7986
|
}
|
|
7994
|
-
|
|
7987
|
+
l--, t.pop(), a.pop(), n.pop(), o.pop();
|
|
7995
7988
|
}
|
|
7996
7989
|
return ar(g), c;
|
|
7997
|
-
},
|
|
7998
|
-
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(
|
|
7999
|
-
var g =
|
|
8000
|
-
return g && !g.includes(t) ||
|
|
8001
|
-
var f = he({},
|
|
8002
|
-
|
|
8003
|
-
}),
|
|
7990
|
+
}, Vo = function(e, t) {
|
|
7991
|
+
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(i, l) {
|
|
7992
|
+
var g = l.languages, c = l.style;
|
|
7993
|
+
return g && !g.includes(t) || l.types.forEach(function(p) {
|
|
7994
|
+
var f = he({}, i[p], c);
|
|
7995
|
+
i[p] = f;
|
|
7996
|
+
}), i;
|
|
8004
7997
|
}, n);
|
|
8005
7998
|
return o.root = a, o.plain = he({}, a, {
|
|
8006
7999
|
backgroundColor: null
|
|
@@ -8011,89 +8004,89 @@ function or(e, t) {
|
|
|
8011
8004
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (a[n] = e[n]);
|
|
8012
8005
|
return a;
|
|
8013
8006
|
}
|
|
8014
|
-
var
|
|
8007
|
+
var Yo = /* @__PURE__ */ function(e) {
|
|
8015
8008
|
function t() {
|
|
8016
8009
|
for (var a = this, n = [], o = arguments.length; o--; ) n[o] = arguments[o];
|
|
8017
|
-
e.apply(this, n), Be(this, "getThemeDict", function(
|
|
8018
|
-
if (a.themeDict !== void 0 &&
|
|
8010
|
+
e.apply(this, n), Be(this, "getThemeDict", function(i) {
|
|
8011
|
+
if (a.themeDict !== void 0 && i.theme === a.prevTheme && i.language === a.prevLanguage)
|
|
8019
8012
|
return a.themeDict;
|
|
8020
|
-
a.prevTheme =
|
|
8021
|
-
var
|
|
8022
|
-
return a.themeDict =
|
|
8023
|
-
}), Be(this, "getLineProps", function(
|
|
8024
|
-
var
|
|
8013
|
+
a.prevTheme = i.theme, a.prevLanguage = i.language;
|
|
8014
|
+
var l = i.theme ? Vo(i.theme, i.language) : void 0;
|
|
8015
|
+
return a.themeDict = l;
|
|
8016
|
+
}), Be(this, "getLineProps", function(i) {
|
|
8017
|
+
var l = i.key, g = i.className, c = i.style, p = or(i, ["key", "className", "style", "line"]), f = p, d = he({}, f, {
|
|
8025
8018
|
className: "token-line",
|
|
8026
8019
|
style: void 0,
|
|
8027
8020
|
key: void 0
|
|
8028
8021
|
}), u = a.getThemeDict(a.props);
|
|
8029
|
-
return u !== void 0 && (d.style = u.plain), c !== void 0 && (d.style = d.style !== void 0 ? he({}, d.style, c) : c),
|
|
8030
|
-
}), Be(this, "getStyleForToken", function(
|
|
8031
|
-
var
|
|
8022
|
+
return u !== void 0 && (d.style = u.plain), c !== void 0 && (d.style = d.style !== void 0 ? he({}, d.style, c) : c), l !== void 0 && (d.key = l), g && (d.className += " " + g), d;
|
|
8023
|
+
}), Be(this, "getStyleForToken", function(i) {
|
|
8024
|
+
var l = i.types, g = i.empty, c = l.length, p = a.getThemeDict(a.props);
|
|
8032
8025
|
if (p !== void 0) {
|
|
8033
8026
|
{
|
|
8034
|
-
if (c === 1 &&
|
|
8027
|
+
if (c === 1 && l[0] === "plain")
|
|
8035
8028
|
return g ? {
|
|
8036
8029
|
display: "inline-block"
|
|
8037
8030
|
} : void 0;
|
|
8038
8031
|
if (c === 1 && !g)
|
|
8039
|
-
return p[
|
|
8032
|
+
return p[l[0]];
|
|
8040
8033
|
}
|
|
8041
8034
|
var f = g ? {
|
|
8042
8035
|
display: "inline-block"
|
|
8043
|
-
} : {}, d =
|
|
8036
|
+
} : {}, d = l.map(function(u) {
|
|
8044
8037
|
return p[u];
|
|
8045
8038
|
});
|
|
8046
8039
|
return Object.assign.apply(Object, [f].concat(d));
|
|
8047
8040
|
}
|
|
8048
|
-
}), Be(this, "getTokenProps", function(
|
|
8049
|
-
var
|
|
8041
|
+
}), Be(this, "getTokenProps", function(i) {
|
|
8042
|
+
var l = i.key, g = i.className, c = i.style, p = i.token, f = or(i, ["key", "className", "style", "token"]), d = f, u = he({}, d, {
|
|
8050
8043
|
className: "token " + p.types.join(" "),
|
|
8051
8044
|
children: p.content,
|
|
8052
8045
|
style: a.getStyleForToken(p),
|
|
8053
8046
|
key: void 0
|
|
8054
8047
|
});
|
|
8055
|
-
return c !== void 0 && (u.style = u.style !== void 0 ? he({}, u.style, c) : c),
|
|
8056
|
-
}), Be(this, "tokenize", function(
|
|
8048
|
+
return c !== void 0 && (u.style = u.style !== void 0 ? he({}, u.style, c) : c), l !== void 0 && (u.key = l), g && (u.className += " " + g), u;
|
|
8049
|
+
}), Be(this, "tokenize", function(i, l, g, c) {
|
|
8057
8050
|
var p = {
|
|
8058
|
-
code:
|
|
8051
|
+
code: l,
|
|
8059
8052
|
grammar: g,
|
|
8060
8053
|
language: c,
|
|
8061
8054
|
tokens: []
|
|
8062
8055
|
};
|
|
8063
|
-
|
|
8064
|
-
var f = p.tokens =
|
|
8065
|
-
return
|
|
8056
|
+
i.hooks.run("before-tokenize", p);
|
|
8057
|
+
var f = p.tokens = i.tokenize(p.code, p.grammar, p.language);
|
|
8058
|
+
return i.hooks.run("after-tokenize", p), f;
|
|
8066
8059
|
});
|
|
8067
8060
|
}
|
|
8068
8061
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
8069
|
-
var n = this.props, o = n.Prism,
|
|
8062
|
+
var n = this.props, o = n.Prism, i = n.language, l = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[i], f = p !== void 0 ? this.tokenize(o, l, p, i) : [l], d = Wo(f);
|
|
8070
8063
|
return g({
|
|
8071
8064
|
tokens: d,
|
|
8072
|
-
className: "prism-code language-" +
|
|
8065
|
+
className: "prism-code language-" + i,
|
|
8073
8066
|
style: c !== void 0 ? c.root : {},
|
|
8074
8067
|
getLineProps: this.getLineProps,
|
|
8075
8068
|
getTokenProps: this.getTokenProps
|
|
8076
8069
|
});
|
|
8077
8070
|
}, t;
|
|
8078
8071
|
}(dr);
|
|
8079
|
-
const
|
|
8080
|
-
() =>
|
|
8081
|
-
),
|
|
8072
|
+
const Ko = (e) => Xo(
|
|
8073
|
+
() => ja.parse(e, (a, n) => n === !0 ? "true" : n === !1 ? "false" : n)
|
|
8074
|
+
), Xo = (e) => {
|
|
8082
8075
|
try {
|
|
8083
8076
|
return { status: "ok", value: e() };
|
|
8084
8077
|
} catch (t) {
|
|
8085
8078
|
return { status: "error", error: t };
|
|
8086
8079
|
}
|
|
8087
8080
|
};
|
|
8088
|
-
function
|
|
8081
|
+
function Zo(e, t, a) {
|
|
8089
8082
|
const n = ur();
|
|
8090
8083
|
H(() => {
|
|
8091
8084
|
if (!t || !a) return;
|
|
8092
|
-
const o = `http://myserver/myJsonTypeSchema-${n}`,
|
|
8085
|
+
const o = `http://myserver/myJsonTypeSchema-${n}`, i = t.languages.json.jsonDefaults.diagnosticsOptions, l = i.schemas || [];
|
|
8093
8086
|
return t.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
8094
|
-
...
|
|
8087
|
+
...i,
|
|
8095
8088
|
schemas: [
|
|
8096
|
-
...
|
|
8089
|
+
...l,
|
|
8097
8090
|
{
|
|
8098
8091
|
uri: o,
|
|
8099
8092
|
fileMatch: [e],
|
|
@@ -8109,7 +8102,7 @@ function Jo(e, t, a) {
|
|
|
8109
8102
|
};
|
|
8110
8103
|
}, [t, e, a, n]);
|
|
8111
8104
|
}
|
|
8112
|
-
const
|
|
8105
|
+
const Qo = {
|
|
8113
8106
|
plain: {
|
|
8114
8107
|
backgroundColor: "#fff",
|
|
8115
8108
|
color: "#575279"
|
|
@@ -8152,10 +8145,10 @@ const ei = {
|
|
|
8152
8145
|
style: { color: "#b4637a" }
|
|
8153
8146
|
}
|
|
8154
8147
|
]
|
|
8155
|
-
},
|
|
8148
|
+
}, Jo = ue("div", "flex flex-col gap-2"), ei = ue("div", "flex flex-col gap-2 md:flex-row"), pt = ue("div", "prose dark:text-neutral-400"), ti = ue("div", "text-2xl font-bold"), ri = ue("div", "text-xl font-bold"), ai = ue("div", "text-lg"), ni = ue("div", "text-md font-bold"), oi = ue("div", "text-sm text-gray-400"), Re = ue(
|
|
8156
8149
|
"div",
|
|
8157
8150
|
"text-sm font-bold dark:text-neutral-400 text-gray-700"
|
|
8158
|
-
),
|
|
8151
|
+
), ii = ({ size: e = "mini" }) => /* @__PURE__ */ r("img", { src: "/img/icon/logo-512.svg", className: {
|
|
8159
8152
|
mini: "h-4 w-4",
|
|
8160
8153
|
normal: "h-6 w-6"
|
|
8161
8154
|
}[e] });
|
|
@@ -8165,25 +8158,25 @@ function $r({
|
|
|
8165
8158
|
items: a,
|
|
8166
8159
|
onChange: n,
|
|
8167
8160
|
selectedId: o,
|
|
8168
|
-
disabled:
|
|
8161
|
+
disabled: i
|
|
8169
8162
|
}) {
|
|
8170
|
-
return /* @__PURE__ */ r("div", { className: O("flex w-full flex-col gap-0.5", e), children: a.map((
|
|
8163
|
+
return /* @__PURE__ */ r("div", { className: O("flex w-full flex-col gap-0.5", e), children: a.map((l) => /* @__PURE__ */ r(
|
|
8171
8164
|
"button",
|
|
8172
8165
|
{
|
|
8173
|
-
disabled:
|
|
8166
|
+
disabled: i,
|
|
8174
8167
|
onClick: () => {
|
|
8175
|
-
n(
|
|
8168
|
+
n(l);
|
|
8176
8169
|
},
|
|
8177
8170
|
className: O(
|
|
8178
8171
|
"block cursor-pointer truncate rounded bg-none px-3 py-1 text-left whitespace-nowrap hover:bg-gray-100 disabled:text-gray-400 dark:hover:bg-neutral-700/80",
|
|
8179
8172
|
{
|
|
8180
|
-
"bg-gray-200 dark:bg-neutral-600/50": o ===
|
|
8173
|
+
"bg-gray-200 dark:bg-neutral-600/50": o === l.id
|
|
8181
8174
|
},
|
|
8182
8175
|
t
|
|
8183
8176
|
),
|
|
8184
|
-
children:
|
|
8177
|
+
children: l.label
|
|
8185
8178
|
},
|
|
8186
|
-
|
|
8179
|
+
l.id
|
|
8187
8180
|
)) });
|
|
8188
8181
|
}
|
|
8189
8182
|
function zr({
|
|
@@ -8198,8 +8191,8 @@ function zr({
|
|
|
8198
8191
|
value: a,
|
|
8199
8192
|
onValueChange: (o) => {
|
|
8200
8193
|
if (!o) return;
|
|
8201
|
-
const
|
|
8202
|
-
|
|
8194
|
+
const i = e.find((l) => l.id === o);
|
|
8195
|
+
i && t(i);
|
|
8203
8196
|
},
|
|
8204
8197
|
className: "flex gap-1 rounded-sm border border-gray-300 bg-gray-200 p-0.5 text-sm dark:border-neutral-700 dark:bg-neutral-800",
|
|
8205
8198
|
type: "single",
|
|
@@ -8227,8 +8220,8 @@ function Ee({
|
|
|
8227
8220
|
autoFocus: a,
|
|
8228
8221
|
className: n,
|
|
8229
8222
|
onChange: o,
|
|
8230
|
-
onKeyDown:
|
|
8231
|
-
label:
|
|
8223
|
+
onKeyDown: i,
|
|
8224
|
+
label: l,
|
|
8232
8225
|
error: g,
|
|
8233
8226
|
placeholder: c,
|
|
8234
8227
|
inputMode: p,
|
|
@@ -8242,7 +8235,7 @@ function Ee({
|
|
|
8242
8235
|
return H(() => {
|
|
8243
8236
|
a && b.current?.focus();
|
|
8244
8237
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-1", children: [
|
|
8245
|
-
|
|
8238
|
+
l ? /* @__PURE__ */ r(Re, { children: l }) : null,
|
|
8246
8239
|
/* @__PURE__ */ r(
|
|
8247
8240
|
"input",
|
|
8248
8241
|
{
|
|
@@ -8265,7 +8258,7 @@ function Ee({
|
|
|
8265
8258
|
onChange: (w) => {
|
|
8266
8259
|
o(w.target.value);
|
|
8267
8260
|
},
|
|
8268
|
-
onKeyDown:
|
|
8261
|
+
onKeyDown: i,
|
|
8269
8262
|
onBlur: m,
|
|
8270
8263
|
tabIndex: f,
|
|
8271
8264
|
required: s
|
|
@@ -8274,14 +8267,14 @@ function Ee({
|
|
|
8274
8267
|
g ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: g }) : null
|
|
8275
8268
|
] });
|
|
8276
8269
|
}
|
|
8277
|
-
function
|
|
8270
|
+
function li({
|
|
8278
8271
|
value: e,
|
|
8279
8272
|
autoFocus: t,
|
|
8280
8273
|
className: a,
|
|
8281
8274
|
onChange: n,
|
|
8282
8275
|
onKeyDown: o,
|
|
8283
|
-
label:
|
|
8284
|
-
error:
|
|
8276
|
+
label: i,
|
|
8277
|
+
error: l,
|
|
8285
8278
|
placeholder: g,
|
|
8286
8279
|
inputMode: c,
|
|
8287
8280
|
tabIndex: p,
|
|
@@ -8294,7 +8287,7 @@ function di({
|
|
|
8294
8287
|
return H(() => {
|
|
8295
8288
|
t && m.current?.focus();
|
|
8296
8289
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-2", children: [
|
|
8297
|
-
|
|
8290
|
+
i ? /* @__PURE__ */ r(Re, { children: i }) : null,
|
|
8298
8291
|
/* @__PURE__ */ r(
|
|
8299
8292
|
"textarea",
|
|
8300
8293
|
{
|
|
@@ -8308,7 +8301,7 @@ function di({
|
|
|
8308
8301
|
"flex w-full flex-1 rounded-sm border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 disabled:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
8309
8302
|
a,
|
|
8310
8303
|
{
|
|
8311
|
-
"border-red-500":
|
|
8304
|
+
"border-red-500": l
|
|
8312
8305
|
}
|
|
8313
8306
|
),
|
|
8314
8307
|
onChange: (b) => {
|
|
@@ -8320,7 +8313,7 @@ function di({
|
|
|
8320
8313
|
rows: s
|
|
8321
8314
|
}
|
|
8322
8315
|
),
|
|
8323
|
-
|
|
8316
|
+
l ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: l }) : null
|
|
8324
8317
|
] });
|
|
8325
8318
|
}
|
|
8326
8319
|
function ee({
|
|
@@ -8329,8 +8322,8 @@ function ee({
|
|
|
8329
8322
|
checked: a,
|
|
8330
8323
|
onChange: n,
|
|
8331
8324
|
className: o,
|
|
8332
|
-
labelClassName:
|
|
8333
|
-
required:
|
|
8325
|
+
labelClassName: i,
|
|
8326
|
+
required: l,
|
|
8334
8327
|
disabled: g,
|
|
8335
8328
|
title: c,
|
|
8336
8329
|
style: p
|
|
@@ -8341,7 +8334,7 @@ function ee({
|
|
|
8341
8334
|
className: O(
|
|
8342
8335
|
"items-top flex cursor-pointer gap-2 dark:disabled:opacity-40",
|
|
8343
8336
|
g ? "cursor-default text-gray-400 opacity-60" : "",
|
|
8344
|
-
|
|
8337
|
+
i
|
|
8345
8338
|
),
|
|
8346
8339
|
title: c,
|
|
8347
8340
|
children: [
|
|
@@ -8351,7 +8344,7 @@ function ee({
|
|
|
8351
8344
|
style: p,
|
|
8352
8345
|
disabled: g,
|
|
8353
8346
|
title: c,
|
|
8354
|
-
required:
|
|
8347
|
+
required: l,
|
|
8355
8348
|
className: O(
|
|
8356
8349
|
"mt-0.5 align-middle font-medium text-gray-900 disabled:border-gray-300 disabled:bg-gray-200 dark:border-neutral-500 dark:bg-neutral-600/40 dark:ring-neutral-500 dark:disabled:border-neutral-400 dark:disabled:opacity-50",
|
|
8357
8350
|
o
|
|
@@ -8374,15 +8367,15 @@ function we({
|
|
|
8374
8367
|
className: a,
|
|
8375
8368
|
onChange: n,
|
|
8376
8369
|
disabled: o,
|
|
8377
|
-
emptyLabel:
|
|
8378
|
-
tabIndex:
|
|
8370
|
+
emptyLabel: i,
|
|
8371
|
+
tabIndex: l,
|
|
8379
8372
|
title: g,
|
|
8380
8373
|
noOptionsLabel: c,
|
|
8381
8374
|
contentClassName: p,
|
|
8382
8375
|
visibleValue: f
|
|
8383
8376
|
}) {
|
|
8384
8377
|
return /* @__PURE__ */ h(
|
|
8385
|
-
|
|
8378
|
+
$o,
|
|
8386
8379
|
{
|
|
8387
8380
|
disabled: o,
|
|
8388
8381
|
onValueChange: (d) => {
|
|
@@ -8391,10 +8384,10 @@ function we({
|
|
|
8391
8384
|
},
|
|
8392
8385
|
value: e?.toString(),
|
|
8393
8386
|
children: [
|
|
8394
|
-
/* @__PURE__ */ r(
|
|
8395
|
-
/* @__PURE__ */ h(
|
|
8387
|
+
/* @__PURE__ */ r(jo, { className: a, title: g, tabIndex: l, children: /* @__PURE__ */ r(zo, { placeholder: i, children: f }) }),
|
|
8388
|
+
/* @__PURE__ */ h(Mo, { className: p, children: [
|
|
8396
8389
|
t.map((d) => /* @__PURE__ */ r(
|
|
8397
|
-
|
|
8390
|
+
Bo,
|
|
8398
8391
|
{
|
|
8399
8392
|
value: d.value?.toString(),
|
|
8400
8393
|
children: d.label
|
|
@@ -8413,8 +8406,8 @@ function V({
|
|
|
8413
8406
|
type: a = "button",
|
|
8414
8407
|
onClick: n,
|
|
8415
8408
|
href: o,
|
|
8416
|
-
className:
|
|
8417
|
-
children:
|
|
8409
|
+
className: i,
|
|
8410
|
+
children: l,
|
|
8418
8411
|
disabled: g,
|
|
8419
8412
|
loading: c,
|
|
8420
8413
|
autoFocus: p,
|
|
@@ -8457,7 +8450,7 @@ function V({
|
|
|
8457
8450
|
// Apply wait cursor and lower opacity when loading,
|
|
8458
8451
|
"bg-gray-200 text-gray-400 dark:bg-neutral-700 dark:text-neutral-500": e == "cta" && g
|
|
8459
8452
|
},
|
|
8460
|
-
|
|
8453
|
+
i
|
|
8461
8454
|
);
|
|
8462
8455
|
return s ? /* @__PURE__ */ r(
|
|
8463
8456
|
"a",
|
|
@@ -8468,7 +8461,7 @@ function V({
|
|
|
8468
8461
|
className: m,
|
|
8469
8462
|
...a === "link-new" ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
8470
8463
|
...c || g ? { "aria-disabled": !0 } : { href: o, onClick: n },
|
|
8471
|
-
children:
|
|
8464
|
+
children: l
|
|
8472
8465
|
}
|
|
8473
8466
|
) : /* @__PURE__ */ r(
|
|
8474
8467
|
"button",
|
|
@@ -8480,7 +8473,7 @@ function V({
|
|
|
8480
8473
|
type: a === "submit" ? "submit" : "button",
|
|
8481
8474
|
className: m,
|
|
8482
8475
|
onClick: n,
|
|
8483
|
-
children:
|
|
8476
|
+
children: l
|
|
8484
8477
|
}
|
|
8485
8478
|
);
|
|
8486
8479
|
}
|
|
@@ -8490,8 +8483,8 @@ const gt = ({
|
|
|
8490
8483
|
onClick: a,
|
|
8491
8484
|
disabled: n,
|
|
8492
8485
|
labelDirection: o,
|
|
8493
|
-
variant:
|
|
8494
|
-
className:
|
|
8486
|
+
variant: i,
|
|
8487
|
+
className: l
|
|
8495
8488
|
}) => /* @__PURE__ */ h(Ke, { children: [
|
|
8496
8489
|
/* @__PURE__ */ r(Xe, { children: /* @__PURE__ */ r(
|
|
8497
8490
|
"button",
|
|
@@ -8501,11 +8494,11 @@ const gt = ({
|
|
|
8501
8494
|
onClick: a,
|
|
8502
8495
|
className: O(
|
|
8503
8496
|
"flex h-9 w-9 cursor-pointer items-center justify-center rounded-sm p-2",
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8497
|
+
i === "primary" && "bg-[#616AF4] text-white hover:bg-[#4543E9]",
|
|
8498
|
+
i === "secondary" && "border border-gray-300 bg-white text-gray-800 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700/50",
|
|
8499
|
+
i === "subtle" && "text-gray-800 hover:bg-gray-200/30 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700/50",
|
|
8507
8500
|
n && "cursor-not-allowed opacity-40",
|
|
8508
|
-
|
|
8501
|
+
l
|
|
8509
8502
|
),
|
|
8510
8503
|
children: e
|
|
8511
8504
|
}
|
|
@@ -8527,7 +8520,7 @@ function it() {
|
|
|
8527
8520
|
}
|
|
8528
8521
|
};
|
|
8529
8522
|
}
|
|
8530
|
-
function
|
|
8523
|
+
function si({
|
|
8531
8524
|
...e
|
|
8532
8525
|
}) {
|
|
8533
8526
|
return /* @__PURE__ */ r(Ge.Root, { "data-slot": "dialog", ...e });
|
|
@@ -8557,11 +8550,10 @@ function Br({
|
|
|
8557
8550
|
className: e,
|
|
8558
8551
|
children: t,
|
|
8559
8552
|
showCloseButton: a = !1,
|
|
8560
|
-
|
|
8561
|
-
...o
|
|
8553
|
+
...n
|
|
8562
8554
|
}) {
|
|
8563
|
-
const
|
|
8564
|
-
return /* @__PURE__ */ r(jr, { container:
|
|
8555
|
+
const o = ct(), i = ut();
|
|
8556
|
+
return /* @__PURE__ */ r(jr, { container: o, "data-slot": "dialog-portal", children: /* @__PURE__ */ r(Mr, { className: O(i ? "dark" : "", "overflow-y-auto"), children: /* @__PURE__ */ h(
|
|
8565
8557
|
Ge.Content,
|
|
8566
8558
|
{
|
|
8567
8559
|
"data-slot": "dialog-content",
|
|
@@ -8570,9 +8562,8 @@ function Br({
|
|
|
8570
8562
|
i ? "dark" : "",
|
|
8571
8563
|
e
|
|
8572
8564
|
),
|
|
8573
|
-
...
|
|
8565
|
+
...n,
|
|
8574
8566
|
children: [
|
|
8575
|
-
/* @__PURE__ */ r(ua, { children: /* @__PURE__ */ r(_a, { children: n }) }),
|
|
8576
8567
|
t,
|
|
8577
8568
|
a && /* @__PURE__ */ h(
|
|
8578
8569
|
Ge.Close,
|
|
@@ -8580,7 +8571,7 @@ function Br({
|
|
|
8580
8571
|
"data-slot": "dialog-close",
|
|
8581
8572
|
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",
|
|
8582
8573
|
children: [
|
|
8583
|
-
/* @__PURE__ */ r(
|
|
8574
|
+
/* @__PURE__ */ r(za, {}),
|
|
8584
8575
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
8585
8576
|
]
|
|
8586
8577
|
}
|
|
@@ -8594,30 +8585,28 @@ function fe({
|
|
|
8594
8585
|
children: t,
|
|
8595
8586
|
onClose: a,
|
|
8596
8587
|
className: n,
|
|
8597
|
-
|
|
8598
|
-
stopFocusPropagation: l = !1,
|
|
8588
|
+
stopFocusPropagation: o = !1,
|
|
8599
8589
|
hideCloseButton: i = !1
|
|
8600
8590
|
}) {
|
|
8601
8591
|
return /* @__PURE__ */ r(
|
|
8602
|
-
|
|
8592
|
+
si,
|
|
8603
8593
|
{
|
|
8604
|
-
onOpenChange: (
|
|
8605
|
-
|
|
8594
|
+
onOpenChange: (l) => {
|
|
8595
|
+
l || a();
|
|
8606
8596
|
},
|
|
8607
8597
|
open: e,
|
|
8608
8598
|
children: /* @__PURE__ */ h(
|
|
8609
8599
|
Br,
|
|
8610
8600
|
{
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
l && g.stopPropagation();
|
|
8601
|
+
onFocusCapture: (l) => {
|
|
8602
|
+
o && l.stopPropagation();
|
|
8614
8603
|
},
|
|
8615
8604
|
autoFocus: !1,
|
|
8616
8605
|
tabIndex: void 0,
|
|
8617
8606
|
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}`,
|
|
8618
8607
|
children: [
|
|
8619
8608
|
!i && /* @__PURE__ */ r(
|
|
8620
|
-
|
|
8609
|
+
Ya,
|
|
8621
8610
|
{
|
|
8622
8611
|
className: "absolute top-[18px] right-3 h-4 w-4 cursor-pointer",
|
|
8623
8612
|
onClick: a
|
|
@@ -8636,11 +8625,11 @@ function ge({
|
|
|
8636
8625
|
}) {
|
|
8637
8626
|
return /* @__PURE__ */ r("form", { onSubmit: (a) => a.preventDefault(), className: e, children: t });
|
|
8638
8627
|
}
|
|
8639
|
-
function
|
|
8628
|
+
function di(e, t) {
|
|
8640
8629
|
let a = e;
|
|
8641
|
-
const n = t?.message, o = t?.hint?.errors?.[0]?.message,
|
|
8642
|
-
return
|
|
8643
|
-
${n}`), o?.length && (!
|
|
8630
|
+
const n = t?.message, o = t?.hint?.errors?.[0]?.message, i = n?.length;
|
|
8631
|
+
return i && (a += `
|
|
8632
|
+
${n}`), o?.length && (!i || n.indexOf(o) === -1) && (a += `
|
|
8644
8633
|
${o}`), a;
|
|
8645
8634
|
}
|
|
8646
8635
|
function ve({
|
|
@@ -8649,8 +8638,8 @@ function ve({
|
|
|
8649
8638
|
disabled: a,
|
|
8650
8639
|
className: n,
|
|
8651
8640
|
label: o,
|
|
8652
|
-
submitLabel:
|
|
8653
|
-
errorMessage:
|
|
8641
|
+
submitLabel: i,
|
|
8642
|
+
errorMessage: l,
|
|
8654
8643
|
successMessage: g,
|
|
8655
8644
|
onClick: c,
|
|
8656
8645
|
tabIndex: p,
|
|
@@ -8663,7 +8652,7 @@ function ve({
|
|
|
8663
8652
|
try {
|
|
8664
8653
|
await c(), g && oe(g);
|
|
8665
8654
|
} catch (m) {
|
|
8666
|
-
ie(
|
|
8655
|
+
ie(di(l, m));
|
|
8667
8656
|
} finally {
|
|
8668
8657
|
u(!1);
|
|
8669
8658
|
}
|
|
@@ -8679,23 +8668,23 @@ function ve({
|
|
|
8679
8668
|
className: n,
|
|
8680
8669
|
onClick: s,
|
|
8681
8670
|
title: f,
|
|
8682
|
-
children: d ?
|
|
8671
|
+
children: d ? i : o
|
|
8683
8672
|
}
|
|
8684
8673
|
);
|
|
8685
8674
|
}
|
|
8686
8675
|
function Tt(e) {
|
|
8687
8676
|
return e.length === 36 && e.indexOf("-") === 8 ? e.replaceAll(/[^-]/g, "*") : e.replaceAll(/./g, "*");
|
|
8688
8677
|
}
|
|
8689
|
-
function
|
|
8678
|
+
function ci({
|
|
8690
8679
|
value: e,
|
|
8691
8680
|
label: t,
|
|
8692
8681
|
size: a = "normal",
|
|
8693
8682
|
defaultHidden: n,
|
|
8694
8683
|
hideValue: o,
|
|
8695
|
-
onChangeHideValue:
|
|
8696
|
-
multiline:
|
|
8684
|
+
onChangeHideValue: i,
|
|
8685
|
+
multiline: l = !1
|
|
8697
8686
|
}) {
|
|
8698
|
-
const [g, c] = C(n), p =
|
|
8687
|
+
const [g, c] = C(n), p = i || (n ? () => c(!g) : null), [f, d] = C(!1);
|
|
8699
8688
|
return /* @__PURE__ */ h(
|
|
8700
8689
|
"div",
|
|
8701
8690
|
{
|
|
@@ -8723,8 +8712,8 @@ function pi({
|
|
|
8723
8712
|
"pre",
|
|
8724
8713
|
{
|
|
8725
8714
|
className: Oe("flex-1 cursor-pointer px-2 py-1.5 select-text", {
|
|
8726
|
-
truncate: !
|
|
8727
|
-
"break-all whitespace-pre-wrap":
|
|
8715
|
+
truncate: !l,
|
|
8716
|
+
"break-all whitespace-pre-wrap": l
|
|
8728
8717
|
}),
|
|
8729
8718
|
title: o || g ? "Copy to clipboard" : e,
|
|
8730
8719
|
onClick: (u) => {
|
|
@@ -8751,17 +8740,17 @@ function pi({
|
|
|
8751
8740
|
}
|
|
8752
8741
|
);
|
|
8753
8742
|
}
|
|
8754
|
-
function
|
|
8743
|
+
function ui({
|
|
8755
8744
|
value: e,
|
|
8756
8745
|
label: t,
|
|
8757
8746
|
size: a = "normal",
|
|
8758
8747
|
defaultHidden: n,
|
|
8759
8748
|
hideValue: o,
|
|
8760
|
-
onChangeHideValue:
|
|
8761
|
-
multiline:
|
|
8749
|
+
onChangeHideValue: i,
|
|
8750
|
+
multiline: l,
|
|
8762
8751
|
onCopy: g
|
|
8763
8752
|
}) {
|
|
8764
|
-
const [c, p] = C(n), [f, d] = C(!1), [u, s] = C("Copy"), m =
|
|
8753
|
+
const [c, p] = C(n), [f, d] = C(!1), [u, s] = C("Copy"), m = i || (n ? () => p(!c) : null);
|
|
8765
8754
|
return /* @__PURE__ */ h(
|
|
8766
8755
|
"div",
|
|
8767
8756
|
{
|
|
@@ -8789,8 +8778,8 @@ function gi({
|
|
|
8789
8778
|
"pre",
|
|
8790
8779
|
{
|
|
8791
8780
|
className: Oe("flex-1 cursor-pointer px-2 py-1.5 select-text", {
|
|
8792
|
-
truncate: !
|
|
8793
|
-
"break-all whitespace-pre-wrap":
|
|
8781
|
+
truncate: !l,
|
|
8782
|
+
"break-all whitespace-pre-wrap": l
|
|
8794
8783
|
}),
|
|
8795
8784
|
title: o || c ? "Copy to clipboard" : e,
|
|
8796
8785
|
onClick: (b) => {
|
|
@@ -8843,7 +8832,7 @@ function gi({
|
|
|
8843
8832
|
}
|
|
8844
8833
|
);
|
|
8845
8834
|
}
|
|
8846
|
-
function
|
|
8835
|
+
function pi({ value: e }) {
|
|
8847
8836
|
const [t, a] = C(!1);
|
|
8848
8837
|
return /* @__PURE__ */ h("span", { className: "inline-flex items-center rounded-sm bg-gray-500 px-2 text-sm text-white", children: [
|
|
8849
8838
|
/* @__PURE__ */ r(
|
|
@@ -8851,8 +8840,8 @@ function hi({ value: e }) {
|
|
|
8851
8840
|
{
|
|
8852
8841
|
className: "truncate",
|
|
8853
8842
|
onClick: (n) => {
|
|
8854
|
-
const o = n.target,
|
|
8855
|
-
!
|
|
8843
|
+
const o = n.target, i = window.getSelection();
|
|
8844
|
+
!i || !o || i.selectAllChildren(o);
|
|
8856
8845
|
},
|
|
8857
8846
|
children: e
|
|
8858
8847
|
}
|
|
@@ -8866,7 +8855,7 @@ function hi({ value: e }) {
|
|
|
8866
8855
|
a(!1);
|
|
8867
8856
|
}, 2500));
|
|
8868
8857
|
},
|
|
8869
|
-
children: t ? /* @__PURE__ */ r(
|
|
8858
|
+
children: t ? /* @__PURE__ */ r(Ka, { className: "pl-1", height: "1em" }) : /* @__PURE__ */ r(
|
|
8870
8859
|
Et,
|
|
8871
8860
|
{
|
|
8872
8861
|
className: "cursor-pointer pl-1",
|
|
@@ -8901,14 +8890,14 @@ const ht = ({
|
|
|
8901
8890
|
}
|
|
8902
8891
|
)
|
|
8903
8892
|
] }), Ot = ({ children: e }) => /* @__PURE__ */ h(
|
|
8904
|
-
|
|
8893
|
+
Ma,
|
|
8905
8894
|
{
|
|
8906
8895
|
as: "span",
|
|
8907
8896
|
className: "relative inline-flex align-middle",
|
|
8908
8897
|
"data-open": "true",
|
|
8909
8898
|
children: [
|
|
8910
|
-
/* @__PURE__ */ r(
|
|
8911
|
-
|
|
8899
|
+
/* @__PURE__ */ r(Ba, { className: "inline", children: /* @__PURE__ */ r(
|
|
8900
|
+
Ca,
|
|
8912
8901
|
{
|
|
8913
8902
|
height: "1em",
|
|
8914
8903
|
width: "1em",
|
|
@@ -8916,7 +8905,7 @@ const ht = ({
|
|
|
8916
8905
|
}
|
|
8917
8906
|
) }),
|
|
8918
8907
|
/* @__PURE__ */ r(
|
|
8919
|
-
|
|
8908
|
+
Ua,
|
|
8920
8909
|
{
|
|
8921
8910
|
anchor: "bottom start",
|
|
8922
8911
|
className: "z-50 rounded-lg bg-white p-2 shadow-lg dark:bg-neutral-800",
|
|
@@ -8925,7 +8914,7 @@ const ht = ({
|
|
|
8925
8914
|
)
|
|
8926
8915
|
]
|
|
8927
8916
|
}
|
|
8928
|
-
),
|
|
8917
|
+
), gi = ({
|
|
8929
8918
|
children: e,
|
|
8930
8919
|
className: t
|
|
8931
8920
|
}) => /* @__PURE__ */ r(
|
|
@@ -8944,9 +8933,9 @@ function Ur({
|
|
|
8944
8933
|
className: a,
|
|
8945
8934
|
children: n,
|
|
8946
8935
|
variant: o,
|
|
8947
|
-
...
|
|
8936
|
+
...i
|
|
8948
8937
|
}) {
|
|
8949
|
-
const
|
|
8938
|
+
const l = {
|
|
8950
8939
|
transform: t ? `scaleX(${Math.max(0, Math.min(100, e)) / 100})` : "scaleX(0)",
|
|
8951
8940
|
transition: "transform 0.3s ease-in-out",
|
|
8952
8941
|
transformOrigin: "left"
|
|
@@ -8960,12 +8949,12 @@ function Ur({
|
|
|
8960
8949
|
return /* @__PURE__ */ h(
|
|
8961
8950
|
V,
|
|
8962
8951
|
{
|
|
8963
|
-
...
|
|
8952
|
+
...i,
|
|
8964
8953
|
variant: o,
|
|
8965
8954
|
loading: t,
|
|
8966
8955
|
className: O("relative overflow-hidden", a),
|
|
8967
8956
|
children: [
|
|
8968
|
-
t && /* @__PURE__ */ r("div", { className: g, style:
|
|
8957
|
+
t && /* @__PURE__ */ r("div", { className: g, style: l }),
|
|
8969
8958
|
/* @__PURE__ */ r("span", { className: "relative z-10", children: n })
|
|
8970
8959
|
]
|
|
8971
8960
|
}
|
|
@@ -9000,7 +8989,7 @@ function Ze({
|
|
|
9000
8989
|
children: a,
|
|
9001
8990
|
...n
|
|
9002
8991
|
}) {
|
|
9003
|
-
const o = ct(),
|
|
8992
|
+
const o = ct(), i = ut();
|
|
9004
8993
|
return /* @__PURE__ */ r(ne.Portal, { container: o, children: /* @__PURE__ */ r(
|
|
9005
8994
|
ne.Content,
|
|
9006
8995
|
{
|
|
@@ -9008,7 +8997,7 @@ function Ze({
|
|
|
9008
8997
|
sideOffset: t,
|
|
9009
8998
|
className: O(
|
|
9010
8999
|
"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) border border-gray-100 bg-white px-3 py-1.5 text-xs text-balance text-gray-900 dark:border-neutral-600 dark:bg-neutral-800 dark:text-white",
|
|
9011
|
-
|
|
9000
|
+
i ? "dark" : "",
|
|
9012
9001
|
e
|
|
9013
9002
|
),
|
|
9014
9003
|
...n,
|
|
@@ -9077,21 +9066,21 @@ function Wr({
|
|
|
9077
9066
|
}
|
|
9078
9067
|
function ue(e, t) {
|
|
9079
9068
|
return function(a) {
|
|
9080
|
-
return
|
|
9069
|
+
return Aa(e, {
|
|
9081
9070
|
...a,
|
|
9082
9071
|
className: O(t, a.className)
|
|
9083
9072
|
});
|
|
9084
9073
|
};
|
|
9085
9074
|
}
|
|
9086
9075
|
function O(...e) {
|
|
9087
|
-
return
|
|
9076
|
+
return pa(Oe(e));
|
|
9088
9077
|
}
|
|
9089
9078
|
function Vr() {
|
|
9090
9079
|
return /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-1 flex-col bg-gray-300" });
|
|
9091
9080
|
}
|
|
9092
9081
|
function _t(e) {
|
|
9093
9082
|
return /* @__PURE__ */ r(
|
|
9094
|
-
|
|
9083
|
+
ua,
|
|
9095
9084
|
{
|
|
9096
9085
|
theme: e.darkMode ? "vs-dark" : "vs-light",
|
|
9097
9086
|
className: O(
|
|
@@ -9121,9 +9110,9 @@ function _t(e) {
|
|
|
9121
9110
|
}
|
|
9122
9111
|
);
|
|
9123
9112
|
}
|
|
9124
|
-
function
|
|
9125
|
-
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [
|
|
9126
|
-
return
|
|
9113
|
+
function hi(e) {
|
|
9114
|
+
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [i, l] = C(void 0);
|
|
9115
|
+
return Zo(o, i, e.schema), H(() => {
|
|
9127
9116
|
a(e.value);
|
|
9128
9117
|
}, [e.value]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9129
9118
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
@@ -9139,7 +9128,7 @@ function mi(e) {
|
|
|
9139
9128
|
path: o,
|
|
9140
9129
|
onChange: (g) => a(g),
|
|
9141
9130
|
onMount: function(c, p) {
|
|
9142
|
-
|
|
9131
|
+
l(p), c.addCommand(
|
|
9143
9132
|
p.KeyMod.CtrlCmd | p.KeyCode.KeyS,
|
|
9144
9133
|
() => e.onSave(c.getValue())
|
|
9145
9134
|
), c.onDidPaste(async () => {
|
|
@@ -9147,7 +9136,7 @@ function mi(e) {
|
|
|
9147
9136
|
f && setTimeout(async () => {
|
|
9148
9137
|
const d = f.getValue();
|
|
9149
9138
|
if (!d.trim()) return;
|
|
9150
|
-
const u =
|
|
9139
|
+
const u = Ko(d);
|
|
9151
9140
|
u.status === "ok" && f.setValue(JSON.stringify(u.value, null, 2));
|
|
9152
9141
|
}, 20);
|
|
9153
9142
|
});
|
|
@@ -9162,13 +9151,13 @@ function Dt({
|
|
|
9162
9151
|
style: a,
|
|
9163
9152
|
darkMode: n,
|
|
9164
9153
|
className: o,
|
|
9165
|
-
copyable:
|
|
9154
|
+
copyable: i
|
|
9166
9155
|
}) {
|
|
9167
|
-
const [
|
|
9156
|
+
const [l, g] = C("Copy");
|
|
9168
9157
|
return /* @__PURE__ */ r(
|
|
9169
|
-
|
|
9158
|
+
Yo,
|
|
9170
9159
|
{
|
|
9171
|
-
...
|
|
9160
|
+
...Go,
|
|
9172
9161
|
code: e.trimEnd(),
|
|
9173
9162
|
language: t,
|
|
9174
9163
|
theme: n ? {
|
|
@@ -9177,7 +9166,7 @@ function Dt({
|
|
|
9177
9166
|
color: "white"
|
|
9178
9167
|
},
|
|
9179
9168
|
styles: []
|
|
9180
|
-
} :
|
|
9169
|
+
} : Qo,
|
|
9181
9170
|
children: ({ className: c, style: p, tokens: f, getTokenProps: d }) => /* @__PURE__ */ h(
|
|
9182
9171
|
"pre",
|
|
9183
9172
|
{
|
|
@@ -9185,10 +9174,10 @@ function Dt({
|
|
|
9185
9174
|
style: {
|
|
9186
9175
|
...p,
|
|
9187
9176
|
...a,
|
|
9188
|
-
...
|
|
9177
|
+
...i ? { position: "relative" } : {}
|
|
9189
9178
|
},
|
|
9190
9179
|
children: [
|
|
9191
|
-
|
|
9180
|
+
i ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 flex items-center px-2", children: /* @__PURE__ */ h(
|
|
9192
9181
|
"button",
|
|
9193
9182
|
{
|
|
9194
9183
|
onClick: (u) => {
|
|
@@ -9205,11 +9194,11 @@ function Dt({
|
|
|
9205
9194
|
"aria-hidden": "true"
|
|
9206
9195
|
}
|
|
9207
9196
|
),
|
|
9208
|
-
|
|
9197
|
+
l
|
|
9209
9198
|
]
|
|
9210
9199
|
}
|
|
9211
9200
|
) }) : null,
|
|
9212
|
-
/* @__PURE__ */ r("code", { children: f.map((u, s) => /* @__PURE__ */ h(
|
|
9201
|
+
/* @__PURE__ */ r("code", { children: f.map((u, s) => /* @__PURE__ */ h(Ra, { children: [
|
|
9213
9202
|
u.filter((m) => !m.empty).map((m, b) => {
|
|
9214
9203
|
const { key: w, ...v } = d({ token: m });
|
|
9215
9204
|
return /* @__PURE__ */ r("span", { ...v }, w || b);
|
|
@@ -9248,18 +9237,18 @@ function Yr({
|
|
|
9248
9237
|
}
|
|
9249
9238
|
);
|
|
9250
9239
|
}
|
|
9251
|
-
const
|
|
9240
|
+
const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9252
9241
|
__proto__: null,
|
|
9253
9242
|
ActionButton: ve,
|
|
9254
9243
|
ActionForm: ge,
|
|
9255
|
-
Badge:
|
|
9256
|
-
BlockHeading:
|
|
9244
|
+
Badge: gi,
|
|
9245
|
+
BlockHeading: ni,
|
|
9257
9246
|
Button: V,
|
|
9258
9247
|
Checkbox: ee,
|
|
9259
9248
|
CodeEditor: _t,
|
|
9260
9249
|
Content: pt,
|
|
9261
|
-
Copyable:
|
|
9262
|
-
Copytext:
|
|
9250
|
+
Copyable: ui,
|
|
9251
|
+
Copytext: pi,
|
|
9263
9252
|
Dialog: fe,
|
|
9264
9253
|
DialogContent: Br,
|
|
9265
9254
|
DialogOverlay: Mr,
|
|
@@ -9272,22 +9261,22 @@ const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9272
9261
|
DropdownMenuTrigger: Gr,
|
|
9273
9262
|
Fence: Dt,
|
|
9274
9263
|
FullscreenLoading: Vr,
|
|
9275
|
-
Group:
|
|
9276
|
-
Hint:
|
|
9264
|
+
Group: ei,
|
|
9265
|
+
Hint: oi,
|
|
9277
9266
|
IconButton: gt,
|
|
9278
9267
|
InfoTip: Ot,
|
|
9279
|
-
JSONEditor:
|
|
9268
|
+
JSONEditor: hi,
|
|
9280
9269
|
Label: Re,
|
|
9281
|
-
LogoIcon:
|
|
9270
|
+
LogoIcon: ii,
|
|
9282
9271
|
ProgressButton: Ur,
|
|
9283
|
-
ScreenHeading:
|
|
9284
|
-
SectionHeading:
|
|
9272
|
+
ScreenHeading: ti,
|
|
9273
|
+
SectionHeading: ri,
|
|
9285
9274
|
Select: we,
|
|
9286
|
-
SmallCopyable:
|
|
9287
|
-
Stack:
|
|
9288
|
-
SubsectionHeading:
|
|
9275
|
+
SmallCopyable: ci,
|
|
9276
|
+
Stack: Jo,
|
|
9277
|
+
SubsectionHeading: ai,
|
|
9289
9278
|
Switch: Yr,
|
|
9290
|
-
TextArea:
|
|
9279
|
+
TextArea: li,
|
|
9291
9280
|
TextInput: Ee,
|
|
9292
9281
|
Toaster: ca,
|
|
9293
9282
|
ToggleCollection: $r,
|
|
@@ -9305,14 +9294,14 @@ const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9305
9294
|
export {
|
|
9306
9295
|
ve as ActionButton,
|
|
9307
9296
|
ge as ActionForm,
|
|
9308
|
-
|
|
9309
|
-
|
|
9297
|
+
gi as Badge,
|
|
9298
|
+
ni as BlockHeading,
|
|
9310
9299
|
V as Button,
|
|
9311
9300
|
ee as Checkbox,
|
|
9312
9301
|
_t as CodeEditor,
|
|
9313
9302
|
pt as Content,
|
|
9314
|
-
|
|
9315
|
-
|
|
9303
|
+
ui as Copyable,
|
|
9304
|
+
pi as Copytext,
|
|
9316
9305
|
fe as Dialog,
|
|
9317
9306
|
Br as DialogContent,
|
|
9318
9307
|
Mr as DialogOverlay,
|
|
@@ -9323,28 +9312,28 @@ export {
|
|
|
9323
9312
|
Ue as DropdownMenuItem,
|
|
9324
9313
|
Wr as DropdownMenuSeparator,
|
|
9325
9314
|
Gr as DropdownMenuTrigger,
|
|
9326
|
-
|
|
9315
|
+
qi as Explorer,
|
|
9327
9316
|
Dt as Fence,
|
|
9328
9317
|
Vr as FullscreenLoading,
|
|
9329
|
-
|
|
9330
|
-
|
|
9318
|
+
ei as Group,
|
|
9319
|
+
oi as Hint,
|
|
9331
9320
|
gt as IconButton,
|
|
9332
9321
|
Ot as InfoTip,
|
|
9333
|
-
|
|
9322
|
+
hi as JSONEditor,
|
|
9334
9323
|
Re as Label,
|
|
9335
|
-
|
|
9324
|
+
ii as LogoIcon,
|
|
9336
9325
|
Ur as ProgressButton,
|
|
9337
|
-
|
|
9338
|
-
|
|
9326
|
+
ti as ScreenHeading,
|
|
9327
|
+
ri as SectionHeading,
|
|
9339
9328
|
we as Select,
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9329
|
+
ci as SmallCopyable,
|
|
9330
|
+
Jo as Stack,
|
|
9331
|
+
Fo as StyleMe,
|
|
9332
|
+
ai as SubsectionHeading,
|
|
9344
9333
|
Yr as Switch,
|
|
9345
|
-
|
|
9334
|
+
li as TextArea,
|
|
9346
9335
|
Ee as TextInput,
|
|
9347
|
-
|
|
9336
|
+
Vi as Toaster,
|
|
9348
9337
|
$r as ToggleCollection,
|
|
9349
9338
|
zr as ToggleGroup,
|
|
9350
9339
|
Ke as Tooltip,
|
|
@@ -9353,8 +9342,8 @@ export {
|
|
|
9353
9342
|
Xe as TooltipTrigger,
|
|
9354
9343
|
O as cn,
|
|
9355
9344
|
Tt as redactedValue,
|
|
9356
|
-
|
|
9345
|
+
Yi as toast,
|
|
9357
9346
|
ue as twel,
|
|
9358
|
-
|
|
9347
|
+
Gi as ui,
|
|
9359
9348
|
it as useDialog
|
|
9360
9349
|
};
|