@wavy/react-ui 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +15 -3
- package/dist/main.js +5 -5
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { NoUndefinedField, SafeOmit, LocalFile, Prettify, AddPrefix, TaskResult,
|
|
|
6
6
|
import { IconType } from 'react-icons';
|
|
7
7
|
import * as CSS from 'csstype';
|
|
8
8
|
import CSS__default from 'csstype';
|
|
9
|
-
import { SpinnerProps as SpinnerProps$1, Drawer as Drawer$1, FileUpload, InputProps, InputAddonProps, InputElementProps, AvatarRootProps, FloatProps, CloseButtonProps, Dialog as Dialog$1, MenuRootProps, SegmentGroupRootProps, Steps, Tooltip as Tooltip$1, SeparatorProps as SeparatorProps$1 } from '@chakra-ui/react';
|
|
9
|
+
import { AvatarGroupProps as AvatarGroupProps$1, SpinnerProps as SpinnerProps$1, Drawer as Drawer$1, FileUpload, InputProps, InputAddonProps, InputElementProps, AvatarRootProps, FloatProps, CloseButtonProps, Dialog as Dialog$1, MenuRootProps, SegmentGroupRootProps, Steps, Tooltip as Tooltip$1, SeparatorProps as SeparatorProps$1 } from '@chakra-ui/react';
|
|
10
10
|
export { MenuRootProps, UseStepsProps, useSteps } from '@chakra-ui/react';
|
|
11
11
|
import { JSX as JSX$1 } from '@emotion/react/jsx-runtime';
|
|
12
12
|
import { StepsVariant } from 'node_modules/@chakra-ui/react/dist/types/styled-system/generated/recipes.gen';
|
|
@@ -1478,6 +1478,12 @@ interface BasicOptionProps extends Partial<Record<"leadingEl" | "trailingEl", Re
|
|
|
1478
1478
|
}
|
|
1479
1479
|
declare function BasicOption(props: BasicOptionProps): react_jsx_runtime.JSX.Element;
|
|
1480
1480
|
|
|
1481
|
+
interface AvatarGroupProps {
|
|
1482
|
+
stacking?: AvatarGroupProps$1["stacking"];
|
|
1483
|
+
children: JSX$1.Element | JSX$1.Element[];
|
|
1484
|
+
}
|
|
1485
|
+
declare function AvatarGroup(props: AvatarGroupProps): react_jsx_runtime.JSX.Element;
|
|
1486
|
+
|
|
1481
1487
|
interface EventContainerProps {
|
|
1482
1488
|
/**The max amount of listeners allowed per event.
|
|
1483
1489
|
* @default Infinity */
|
|
@@ -1788,6 +1794,7 @@ interface AvatarProps {
|
|
|
1788
1794
|
backgroundColor?: BasicColor$1;
|
|
1789
1795
|
color?: BasicColor$1;
|
|
1790
1796
|
style?: BasicDivProps["style"];
|
|
1797
|
+
fallbackStyle?: BasicDivProps["style"];
|
|
1791
1798
|
}
|
|
1792
1799
|
declare function Avatar(props: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
1793
1800
|
|
|
@@ -3087,17 +3094,22 @@ interface UserProfileProps {
|
|
|
3087
3094
|
picture?: string;
|
|
3088
3095
|
name: Name;
|
|
3089
3096
|
email: string;
|
|
3097
|
+
useDefaultFallback?: boolean;
|
|
3090
3098
|
gap?: BasicDivProps["gap"];
|
|
3091
3099
|
rowGap?: BasicDivProps["gap"];
|
|
3092
3100
|
/**@default "md" */
|
|
3093
3101
|
columnGap?: BasicDivProps["gap"];
|
|
3094
3102
|
trailingEl?: React.ReactElement;
|
|
3095
3103
|
style?: BasicDivProps["style"];
|
|
3104
|
+
/**@default ".85rem" */
|
|
3105
|
+
fontSize?: BasicDivProps["fontSize"];
|
|
3096
3106
|
slotProps?: Partial<{
|
|
3097
3107
|
avatar: Partial<{
|
|
3098
3108
|
backgroundColor?: BasicColor$1;
|
|
3099
3109
|
color?: BasicColor$1;
|
|
3100
|
-
size: AvatarProps["size"]
|
|
3110
|
+
size: AvatarProps["size"];
|
|
3111
|
+
style?: BasicDivProps["style"];
|
|
3112
|
+
fallbackStyle?: BasicDivProps["style"];
|
|
3101
3113
|
}>;
|
|
3102
3114
|
} & Record<"name" | "email", Partial<{
|
|
3103
3115
|
/**@default ".85rem" */
|
|
@@ -3384,4 +3396,4 @@ declare function remAsPx(rem: number): string;
|
|
|
3384
3396
|
declare function isOverflown(element: HTMLElement): boolean;
|
|
3385
3397
|
declare function computedCssVariable(cssVariable: string): string;
|
|
3386
3398
|
|
|
3387
|
-
export { AttachmentsButton, AttachmentsDialog, Avatar, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv, BasicImg, BasicOl, BasicOption, BasicSelect, BasicSpan, type BasicStyleProps, BasicTable, BasicTableProps, _default as Calendar, CalendarDialog, CancelButton, Card, CardProps, Checkbox, type CheckboxProps, ColorResources, type ComputedStyleProps, ConfirmationDialog, type ConfirmationDialogProps, CopyButton, CssColors, type CssProperties, CssShapes, CssSpacing, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, Drawer, DrawerProps, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, EventContainer, type EventContainerProps, ExpandableButton, FancyFormDialog, type FancyFormDialogProps, FileDropzone, type FileDropzoneProps, FileViewer, FileViewerProps, FontSize, Indicator, type IndicatorProps, type InlineCss, ItemInfo, type ItemInfoProps, JsonViewer, type JwtVerificationStatus, JwtVerifier, type JwtVerifierProps, MediaCard, MediaCardProps, Menu, type MenuPlacement, MoneyDisplayCard, NegativeButton, NextButton, NoButton, OpenButton, OptionsButton, PageIndicator, type PageIndicatorProps, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Spinner, type SpinnerProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseModalControlsReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, paperStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, stripHtml, tiledBackground, useAsyncEffect, useComputedStyle, useEvent, useManagedRef, useModalControls, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage, useSmartState };
|
|
3399
|
+
export { AttachmentsButton, AttachmentsDialog, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv, BasicImg, BasicOl, BasicOption, BasicSelect, BasicSpan, type BasicStyleProps, BasicTable, BasicTableProps, _default as Calendar, CalendarDialog, CancelButton, Card, CardProps, Checkbox, type CheckboxProps, ColorResources, type ComputedStyleProps, ConfirmationDialog, type ConfirmationDialogProps, CopyButton, CssColors, type CssProperties, CssShapes, CssSpacing, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, Drawer, DrawerProps, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, EventContainer, type EventContainerProps, ExpandableButton, FancyFormDialog, type FancyFormDialogProps, FileDropzone, type FileDropzoneProps, FileViewer, FileViewerProps, FontSize, Indicator, type IndicatorProps, type InlineCss, ItemInfo, type ItemInfoProps, JsonViewer, type JwtVerificationStatus, JwtVerifier, type JwtVerifierProps, MediaCard, MediaCardProps, Menu, type MenuPlacement, MoneyDisplayCard, NegativeButton, NextButton, NoButton, OpenButton, OptionsButton, PageIndicator, type PageIndicatorProps, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Spinner, type SpinnerProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseModalControlsReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, paperStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, stripHtml, tiledBackground, useAsyncEffect, useComputedStyle, useEvent, useManagedRef, useModalControls, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage, useSmartState };
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,useSegmentGroupItemContext,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as ie from'react';import ie__default,{createContext,memo,useState,useRef,useEffect,useContext,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {v4}from'uuid';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,run,format,hasIndex,upperFirst,sanitizeLocalFile,inferFilename,sort,readClipboardText,copyToClipboard,castReturn,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {SlArrowLeft,SlArrowRight}from'react-icons/sl';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import
|
|
1
|
+
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,AvatarGroup,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,useSegmentGroupItemContext,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as ie from'react';import ie__default,{createContext,memo,useState,useRef,useEffect,useContext,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {v4}from'uuid';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,run,format,hasIndex,upperFirst,sanitizeLocalFile,inferFilename,sort,readClipboardText,copyToClipboard,castReturn,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {SlArrowLeft,SlArrowRight}from'react-icons/sl';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import $c from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import Ud from'react-datepicker';import'react-datepicker/dist/react-datepicker.css';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import om from'react-dom/server';var Ri=Object.create;var Ut=Object.defineProperty;var Fi=Object.getOwnPropertyDescriptor;var zi=Object.getOwnPropertyNames;var Oi=Object.getPrototypeOf,Ii=Object.prototype.hasOwnProperty;var Ai=(e,r)=>()=>(e&&(r=e(e=0)),r);var Mi=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Li=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of zi(r))!Ii.call(e,o)&&o!==t&&Ut(e,o,{get:()=>r[o],enumerable:!(n=Fi(r,o))||n.enumerable});return e};var Vi=(e,r,t)=>(t=e!=null?Ri(Oi(e)):{},Li(!e||!e.__esModule?Ut(t,"default",{value:e,enumerable:true}):t,e));var a=Ai(()=>{});var kn=Mi((vg,ae)=>{a();function Wr(){return ae.exports=Wr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},ae.exports.__esModule=true,ae.exports.default=ae.exports,Wr.apply(null,arguments)}ae.exports=Wr,ae.exports.__esModule=true,ae.exports.default=ae.exports;});a();a();a();a();a();function jt(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function Yt(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Gi(){let{colorMode:e}=Yt();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}ie.forwardRef(function(r,t){let{toggleColorMode:n}=Yt();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:n,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Gi,{})})})});ie.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});ie.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function qt(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(jt,{...e})})}a();a();var gr=createContext(null);function Qt(e){let r=Math.abs(e.maxListeners)??1/0,t=useRef(new Map);return useEffect(()=>{e.clearRegistry&&t.current.clear();},[e.clearRegistry]),useEffect(()=>()=>{t.current.clear();},[]),jsx(gr.Provider,{value:{emit:(n,o)=>{let i=t.current.get(n)||[];for(let{method:l}of i)l?.(o);},on:(n,o)=>{let i=v4(),l=t.current.get(n)||[];if(l.length>=r){if(e.onListenerRejected)return e.onListenerRejected(n),()=>{};throw new Error(`Max listeners reached for event: '${n}'`,{cause:`${n} is only allowed to have ${r} listeners, but an attempt was made to register ${r+1} listeners.`})}return t.current.set(n,[...l,{uid:i,method:o}]),e.onListenerAccepted?.(n),()=>{let c=t.current.get(n)||[];c.length===0?t.current.delete(n):t.current.set(n,c.filter(({uid:v})=>v!==i));}},dettach:n=>t.current.has(n)?(t.current.delete(n),true):false,listeners:n=>t.current.get(n)?.length},children:e.children})}function ea(e){return jsx(qt,{children:jsx(Qt,{children:e.children})})}var ra=ea;a();a();a();var de=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(n=>n in e);return Object.fromEntries(t.map(n=>[n,e[n]]))};a();a();a();var rn=(c=>(c.xs=".125rem",c.sm=".25rem",c.md=".5rem",c.lg="1rem",c.xl="1.5rem",c.xxl="2rem",c.circle="100%",c.popover="1rem",c))(rn||{}),ue=rn;function r0(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function t0(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",n=e?.target||"all",o=e?.timing||"linear",i=e?.delay||"0";return `${n} ${r[t]} ${o} ${i}`}function n0(e){return `${e.thickness||"1px"} solid ${e.color}`}function tn(e){let r=h(e.backgroundColor),t=h(e.borderColor),n=e.tileBorderThickness||"1px",o=e.tileSize||"1.5rem";return `
|
|
2
2
|
${e.fader||"radial"}-gradient(transparent, ${r} 75%),
|
|
3
3
|
repeating-linear-gradient(
|
|
4
4
|
${t},
|
|
@@ -14,11 +14,11 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
|
|
|
14
14
|
transparent ${o}
|
|
15
15
|
)
|
|
16
16
|
${r}
|
|
17
|
-
`}function t0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function n0(e,r){let t=n=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?n.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(n)?e.radius:void 0:e[n];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function o0(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ue.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function i0(e){let r=0,t=0,n=0,o=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),n=c.clientX,o=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=n-c.clientX,t=o-c.clientY,n=c.clientX,o=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function a0(e){return {...e,margin:0,padding:0}}function j(e,r={apply:true}){return r.apply?Ve(1,e):e}function l0(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function nn(e){let r=e;for(;r&&!Mr(r);)r=r.parentElement;return r}function on(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let n=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>n+2}function h(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),l=()=>G[n],s=()=>i?oa(oe[o],parseFloat(i)):oe[n];if(t==="css"){if(n in G)return l();if(o in oe)return s()}else if(t==="res"){if(o in oe)return s();if(n in G)return l()}return n}var an=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",ta=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),na=e=>parseInt(e.repeat(2/e.length),16);function oa(e,r=1){let t=(g,u)=>g.match(new RegExp(`.{${u}}`,"g")),n=g=>typeof g<"u"?g/255:typeof r!="number"||r<0||r>1?1:r;if(!ta(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[l,s,c,v]=i.map(na);return `rgba(${l}, ${s}, ${c}, ${n(v)})`}function s0(e,r){let t=e.includes(",")?",":" ",n=e.split("").filter(o=>(t+"0123456789").includes(o)).join("").split(t);return n.length===3?n.push(`${r}`):n=n.with(3,`${r}`),"rgba("+n.join(t)+")"}function c0(e){return window.matchMedia(`(max-width:${e})`).matches}function d0(e){return window.matchMedia(`(min-width:${e})`).matches}function Ve(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function ia(e){return e*16}function u0(e){return `${ia(e)}px`}function Mr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function f0(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var aa=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),V=aa;a();var la=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),L=la;var vr=["top","right","bottom","left"],ln=(e,r)=>`translate(${e}, ${r})`,sn=e=>`translateX(${e})`,cn=e=>`translateY(${e})`,sa=(e,r)=>{let t=e.fontSize in L?L[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:[e.scrollbarColor?.thumb,e.scrollbarColor?.track].map(s=>s||"inherit").join(" "),transform:e.centerSelf===true?ln("-50%","-50%"):e.centerSelf==="x"?sn("-50%"):e.centerSelf==="y"?cn("-50%"):e.translate?.x&&e.translate?.y?ln(e.translate.x,e.translate.y):e.translate?.x?sn(e.translate.x):e.translate?.y?cn(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:fa(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:ca(e.borderColor),borderWidth:da(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ua(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:ma(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:h(e.backgroundColor),color:h(e.color),gap:ga(e.gap),overflowX:n,overflowY:o,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(l).forEach(s=>{let c=s,v=l[c];typeof v=="string"&&(v=v.trim()),!v&&v!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function ca(e){if(!e)return;let r="transparent";return typeof e=="string"?h(e):vr.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?h(n):r}return typeof e=="object"&&t in e?h(e[t]):r}).join(" ")}function da(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function ua(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function fa(e){let t=n=>n?n in V?V[n]:n:"0px";return e?typeof e=="string"?t(e):vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):i===n)?t(o):"0px"}return typeof e=="object"&&n in e?t(e[n]):"0px"}).join(" "):"0px"}function ma(e){let t=o=>o?o in ue?ue[o]:o:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(o=>{let i=e?.[o];return o.includes("top")&&e?.top?t(e.top):o.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function ga(e){if(!(!e||typeof e!="string"))return e in V?V[e]:e}var C=sa;var ba=["inherit","sm","md","lg","xl","2xl","xs"],Sa=["sm","md","lg","xl","2xl","xs","2xs"];function dn(e){let[r,t]=useState(false),n=e.disabled||r,o=async u=>{if(!n){if(!e.async)return e.onClick?.(u);t(true),await e.onClick?.(u),setTimeout(()=>t(false),e.pendingDelay||1);}},i=u=>{if(u){if(typeof u==typeof FaFolder){let y=S=>typeof S=="string"&&[...ba].includes(S);return jsx(Icon,{size:y(e.iconSize)?e.iconSize:void 0,boxSize:y(e.iconSize)?void 0:e.iconSize,as:u})}return u}},l=i(e.leadingEl),s=i(e.trailingEl),c=u=>typeof u=="string"&&[...Sa].includes(u),{size:v,...g}=e;return jsxs(Button,{...de(e),disabled:n,size:c(v)?v:void 0,style:C({...g,size:c(v)?void 0:v,clickable:!n,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:n?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:o,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?h(e.spinnerColor):"blue.500"})})]})}var fe=e=>r=>jsx(dn,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,l=i in n,s=[void 0,null].includes(n[i]);(!l||s)&&(n[i]=e.optional[i]);}return n})()}),B=dn;a();a();a();a();a();function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},hr.apply(null,arguments)}a();a();function un(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}a();var fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};a();function pr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Ba=/[A-Z]|^ms/g,ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yn=function(r){return r.charCodeAt(1)===45},mn=function(r){return r!=null&&typeof r!="boolean"},Lr=pr(function(e){return yn(e)?e:e.replace(Ba,"-$&").toLowerCase()}),gn=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ka,function(n,o,i){return Z={name:o,styles:i,next:Z},o})}return fn[r]!==1&&!yn(r)&&typeof t=="number"&&t!==0?t+"px":t};function He(e,r,t){if(t==null)return "";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case "boolean":return "";case "object":{var o=t;if(o.anim===1)return Z={name:o.name,styles:o.styles,next:Z},o.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Z={name:l.name,styles:l.styles,next:Z},l=l.next;var s=i.styles+";";return s}return Da(e,r,t)}case "function":{if(e!==void 0){var c=Z,v=t(e);return Z=c,He(e,r,v)}break}}var g=t;if(r==null)return g;var u=r[g];return u!==void 0?u:g}function Da(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=He(e,r,t[o])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":mn(s)&&(n+=Lr(i)+":"+gn(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)mn(l[c])&&(n+=Lr(i)+":"+gn(i,l[c])+";");else {var v=He(e,r,l);switch(i){case "animation":case "animationName":{n+=Lr(i)+":"+v+";";break}default:n+=i+"{"+v+"}";}}}}return n}var vn=/label:\s*([^\s;{]+)\s*(;|$)/g,Z;function hn(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=true,o="";Z=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=He(t,r,i);else {var l=i;o+=l[0];}for(var s=1;s<e.length;s++)if(o+=He(t,r,e[s]),n){var c=i;o+=c[s];}vn.lastIndex=0;for(var v="",g;(g=vn.exec(o))!==null;)v+="-"+g[1];var u=un(o)+v;return {name:u,styles:o,next:Z}}a();var Ta=typeof document<"u",pn=function(r){return r()},Ea=ie.useInsertionEffect?ie.useInsertionEffect:false,Cn=Ta&&Ea||pn;a();var Vr=typeof document<"u";function _n(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var Hr=function(r,t,n){var o=r.key+"-"+t.name;(n===false||Vr===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},bn=function(r,t,n){Hr(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+o:"",l,r.sheet,true);!Vr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Vr&&i.length!==0)return i}};a();var Ra=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sn=pr(function(e){return Ra.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var Oa=typeof document<"u",Aa=Sn,Ma=function(r){return r!=="theme"},Pn=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Aa:Ma},xn=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},La=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;Hr(t,n,o);var i=Cn(function(){return bn(t,n,o)});if(!Oa&&i!==void 0){for(var l,s=n.name,c=n.next;c!==void 0;)s+=" "+c.name,c=c.next;return ie.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},Bn=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=xn(r,t,n),c=s||Pn(o),v=!c("as");return function(){var g=arguments,u=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else {var y=g[0];u.push(y[0]);for(var S=g.length,R=1;R<S;R++)u.push(g[R],y[R]);}var _=withEmotionCache(function(b,k,x){var P=v&&b.as||o,I="",Le=[],we=b;if(b.theme==null){we={};for(var Xt in b)we[Xt]=b[Xt];we.theme=ie.useContext(ThemeContext);}typeof b.className=="string"?I=_n(k.registered,Le,b.className):b.className!=null&&(I=b.className+" ");var dr=hn(u.concat(Le),k.registered,we);I+=k.key+"-"+dr.name,l!==void 0&&(I+=" "+l);var Ei=v&&s===void 0?Pn(P):c,ur={};for(var fr in b)v&&fr==="as"||Ei(fr)&&(ur[fr]=b[fr]);return ur.className=I,x&&(ur.ref=x),ie.createElement(ie.Fragment,null,ie.createElement(La,{cache:k,serialized:dr,isStringTag:typeof P=="string"}),ie.createElement(P,ur))});return _.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",_.defaultProps=r.defaultProps,_.__emotion_real=_,_.__emotion_base=o,_.__emotion_styles=u,_.__emotion_forwardProp=s,Object.defineProperty(_,"toString",{value:function(){return "."+l}}),_.withComponent=function(b,k){var x=e(b,hr({},t,k,{shouldForwardProp:xn(_,k,true)}));return x.apply(void 0,u)},_}};Vi(kn());var Va=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],De=Bn.bind(null);Va.forEach(function(e){De[e]=De(e);});var Nr=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?h(n):n)}static span=r=>De.span({...this.getStyle(r)});static div=r=>De.div({...this.getStyle(r)});static img=r=>De.img({...this.getStyle(r)})},Te=Nr;function Ja(e){let r=useRef(null),[t,n]=useState(false),o=E({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let g=o.read();r.current&&[g.top,g.left].some(u=>!!u)&&(r.current.scrollTop=g?.top??0,r.current.scrollLeft=g?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Mr(r.current)&&!t&&n(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=C({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?s:void 0,bottom:e.enableYFaders?s:void 0}}),v=Te.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(v,{...de(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:g=>{let u=r?.current?.scrollTop,y=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([u,y]))||o.upsert({top:u??0,left:y??0}),e.onScroll?.(g);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Ja;a();function Ua(e){let r=!!e.tint,t=Te.img(e.sx);return jsx(t,{...de(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${h(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var me=Ua;a();function Ya(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx($r,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(d,{width:"full",children:[jsx($r,{index:o,bold:t,item:n.label,active:n.nestedItems.some(i=>e.isItemActive(i)),completed:n.nestedItems.every(i=>e.isItemCompleted(i)),onClick:n.nestedItems?.[0]?()=>r(n.nestedItems[0]):void 0}),jsx(d,{width:"full",children:n.nestedItems.map((i,l)=>jsx($r,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function $r(e){let r=oe.white,t=G.onSurface,n=e.nested?t:G.tertiaryContainer,o=e.active?n:oe.carlsbergGreen,i=e.active&&!e.nested?n:G["onSurface[0.25]"],l=e.nested?G["onSurface[0.4]"]:G["onSurface[0.5]"],s=G["onSurface[0.2]"],c=()=>e.onClick?.(e.item),v=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:l,borderColor:e.completed?o:e.active?n:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?o:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(v,{fontSize:"1rem"}):jsx(p,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(v,{size:"1.25rem",opacity:.75})]})}var Jr=Ya;a();function qa(e){let r=i=>e.ellipsis?j(i):e.lineLimit?Ve(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=Te.span(e.sx);return jsx(o,{...de(e),ref:e.ref,style:r({...n,width:e.ellipsis?"100%":n.width,textAlign:n.textAlign||e.textAlign||"justify",fontStyle:n.fontStyle||e.italic?"italic":void 0,textDecoration:n.textDecoration||t()||void 0}),children:e.text||e.children})}var p=qa;a();var _r="1px",zn=6,Re=createContext(null);function rl(e){let r=e.defaultColumnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",n=!!e.selectedRows,[o,i]=useState(e.defaultSelectedRows||[]),l=()=>e.columns.map(x=>{let P=typeof x=="object"?x:{};return {...P,name:Ee(x),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),s=x=>(e.selectable?`auto ${_r}`:"")+l().map(I=>{let Le=I.weight||r;return Le==="auto"?x.find(we=>we.name===I.name)?.weight||"auto":Le}).join(` ${_r} `),[c,v]=useState(s(l())),g=o.length===e.entries.length&&e.entries.length>0,u=useRef(null),y=useRef(false),S=(Array.isArray(e.children)?e.children:[e.children]).filter((x,P)=>P<2),R=()=>{let x=[];g||(x=e.entries.map((P,I)=>I)),e.onSelectedRowsChange?.(x),n||i(x);},_=x=>{let P=[...o];P.includes(x)?P=P.filter(I=>I!==x):P.push(x),e.onSelectedRowsChange?.(P),n||i(P);},b=x=>{u.current?(x.forEach((P,I)=>{(u.current.get(I)||0)<P&&u.current.set(I,P);}),k()):(u.current=x,S.length===1&&k());},k=()=>{if(y.current){y.current=false;return}let x=l().map(P=>{let I=u.current.get(P.name);return I?{...P,weight:`${I}px`}:P});y.current=true,u.current=null,v(s(x));};return jsx(Re.Provider,{value:{...e,gridCols:c,selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:g,onSelectRowClick:_,onSelectAllRowsClick:R,columns:l(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:b},children:jsx(d,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"',...e.style||{}},children:S})})}function tl(e){let r=useContext(Re),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:_r,spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header"},children:[r.selectable&&jsx(In,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,l)=>{let s=Ee(o);return jsxs(ie__default.Fragment,{children:[jsx(p,{ref:c=>{c&&(n.current.set(s,parseFloat(getComputedStyle(c).width)+zn),i===lastIndex(l)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(s):e.formatColumnName?.(s)??camelCaseToLetter(s),style:{flexGrow:1,textAlign:We("textAlign",o)}}),i!==l.length-1&&jsx(Ur,{color:e.separatorColor})]},s+i)})]})}function nl(e){let r=useContext(Re),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(d,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((n,o)=>jsx(ol,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=o===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function ol(e){let r=useContext(Re),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{spill:"hidden",style:{gap:o,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(In,{selected:t,onClick:n}),r.columns.map((s,c,v)=>{let g=Ee(s),u=e.rowData[g],y=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),R=c+Ee(s),_=We("textAlign",s),b={textAlign:_,justifyContent:_,color:We("color",s),opacity:We("opacity",s,1),backgroundColor:We("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:g,columnIndex:c,rowIndex:e.index,data:typeof u=="string"?u:null,siblingData:{previous:c===0?null:run(e.rowData[Ee(v[c-1])],k=>typeof k=="string"?k:null),next:c===v.length-1?null:run(e.rowData[Ee(v[c+1])],k=>typeof k=="string"?k:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsxs(Fragment,{children:[jsx(il,{data:u,style:b,onRender:S,placeholder:y,onWidthComputed:k=>e.onColWidthComputed(g,k)},R),c!==v.length-1&&jsx(Ur,{})]}):jsxs(Fragment,{children:[jsx(On,{data:u,style:b,placeholder:y,onRender:S},R),c!==v.length-1&&jsx(Ur,{})]})})]})}function il(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+zn):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(On,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function On(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}function Ur(e){let r=useContext(Re),t=e.color||r.separatorColor;return jsx(d,{width:_r,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function In(e){let r=useContext(Re),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(An,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var Ee=e=>typeof e=="string"?e:e.name,We=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,al={Root:rl,Header:tl,Body:nl},ll=al;a();a();function cl(e){return jsxs(d,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[!e.hideSelectedTick&&e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),e.leadingEl,jsx("span",{children:e.formatOption?.(`${e.value}`)||`${e.value}`,style:j({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var jr=cl;var Ln=createContext(null);function vl(e){return jsx(Ln.Provider,{value:{...e,options:e.options.map(r=>typeof r=="string"||typeof r=="number"?{value:r.toString(),leadingEl:e.defaultLeadingEl,trailingEl:e.defaultTrailingEl}:{...r,leadingEl:r.leadingEl||e.defaultLeadingEl,trailingEl:r.trailingEl||e.defaultTrailingEl})},children:jsx(Fe,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(yl,{})})})}function yl(){let e=useContext(Ln),r=Vn(),[t,n]=useState(e.isSelected?e.options.findIndex((i,l)=>e.isSelected(i,l,e.options)):void 0),{triggerRerender:o}=M();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),n(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(jr,{formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var Ue=vl;a();var pl=["sm","md","lg","xl","xs"];function Xv(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=l=>l&&typeof l=="string"&&[...pl].includes(l);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:h(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}a();function Qv(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,l=e.totalPages-1,s=async g=>{if(g===t)return;let u=g===t+1,y=Math.abs(g-t)>1;r.current=y?null:u,y||(u?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(g),n(g),await e.afterPageChange?.(g);},c=async()=>s(t-1),v=async()=>s(t+1);return jsxs(d,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Hn,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:c}),jsx(d,{row:true,justify:l>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,g=>{let u=t===g;return jsx(d,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${g+1}`,corners:"circle",fade:u?1:.5,borderColor:u?void 0:"onSurface[0.1]",backgroundColor:u?"primary":void 0,color:u?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===l?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>s(g)},g)})}),jsx(Hn,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:v})]})}function Hn(e){return jsx(B,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}a();var Wn=createContext(null);function El(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(Wn.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Fl,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Rl(){let e=useContext(Wn);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Fl(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var dy={Root:El,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:Rl,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};a();a();a();var Nn=["Google"],$n=["pdf","word","excel","img","txt","unknown"],Jn=Object.freeze({txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]});function Un(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:zl(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var zl=e=>e.flatMap(r=>Jn[r]);function wy(e){return jsx(Un,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:h(e.backgroundColor||"transparent"),borderColor:h(e.borderColor||"outlineVariant"),color:h(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}a();var qn=createContext(null);function My(e){let r=E(null),t=E(e.defaultValue??""),[n,o]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",v=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},g=()=>{v(t.read());},u=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&l(true));},y=(P={asClick:true})=>{r.upsert("cancel"),g(),P.asClick&&e.onCancelClick?.(),l(false);},S=P=>{P.preventDefault(),l(false);},R=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),l(false);},_=()=>{r.upsert("edit"),e.onEditClick?.(),u();},b=()=>{R(false);},k=()=>{e.onContentClick?.(),u();},x={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(qn.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...x,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:L[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...x,grid:true,gap:e.columnGap??x.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(P=>e.hideControls.includes(P))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(q,{autoFocus:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:v,onBlur:S,onEnterKeyPressed:b,onEscapeKeyPressed:()=>y({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>y({asClick:false}):void 0,onClick:s==="click"?k:void 0,children:jsx(Fe,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:j({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx($l,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:y,onSave:R,onEdit:_}))]})]})})}function $l(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(qr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(qr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(qr,{icon:LuPencilLine,onClick:e.onEdit})}function qr(e){let{padding:r,iconSize:t}=useContext(qn);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(B,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}a();var Qr=createContext(null);function Ul(e){return jsx(Qr,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Gl(e){let{fade:r}=useContext(Qr);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function jl(e){let{fade:r}=useContext(Qr);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var br={Root:Ul,Indicator:Gl,Content:jl};a();function ge(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&ie__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let t=e.fallback;return jsx(t,{size:"50%"})}return jsx(Avatar.Fallback,{})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:h(e.backgroundColor),color:h(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function eo(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}a();var ro=createContext(null);function os(e){return jsx(ro.Provider,{value:{gap:e.gap},children:jsx(d,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function to(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:n,...c,row:o,spill:i,centerContent:l,align:s,children:t})}}function no(e){return r=>jsx("span",{style:(()=>{let n=C({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?j(n):Ve(r.truncateStyle.lineCount,n)})(),children:r.value})}var is=to(),as=to(),ls=e=>{let{gap:r=e.gap}=useContext(ro);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},ss=no({fontWeight:"bold",fontSize:"xs",fade:.75}),cs=no({fontSize:"sm"}),J={Root:os,LeadingAddOn:is,TrailingAddOn:as,Content:ls,Label:ss,Item:cs};a();function fs(e){let r=()=>{if(typeof e.fallback=="string"||ie__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(d,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(me,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function ms(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var ph={Root:fs,Content:ms};a();function gs(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(ge,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:j(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:j(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var wh={Root:gs,Content:d};a();function An(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}a();a();function Cs(e){let{triggerRerender:r}=M(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var ot=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;o?.[l]||(o=Object.assign(o,{[l]:r[l]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...o,children:t.children})})},_s=ot("Header",{fontSize:"xl",fontWeight:"bold"}),bs=ot("Body",{gap:"md"}),Ss=ot("Footer",{row:true,gap:"sm"}),Ps=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),xs=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),D={Root:Cs,Header:_s,Body:bs,Footer:Ss,CloseTrigger:Ps,ActionTrigger:xs};function Yh(e){let r=e.severity||"error",t=h(r,{preference:"res"});return jsxs(D.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(D.Header,{fontSize:"2xl",children:e.title}),jsxs(D.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
18
|
-
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(io,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(D.Footer,{gap:"md",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(B,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var it=createContext(null);function op(e){let r=e.sections.flatMap(_=>typeof _=="object"?_.nestedItems:_),t=e.defaultSection?r.findIndex(_=>_===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=M(),l=E([]),s=r[n],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),v=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((_,b)=>{u(_,b);}),i();},[]);let g=(_=l.read())=>r.filter(b=>!_.includes(b)&&!c.includes(b)),u=(_=s,b=n)=>{let k=l.read();if(!c.includes(_)){if(e.isSectionComplete(_)&&!k.includes(_))k=[...k,_];else if(!e.isSectionComplete(_)&&k.includes(_))k=k.filter((x,P)=>P!==b);else return;l.upsert(k),e.onSectionsStatusChange?.(g(k),k);}},y=_=>{u(),o(r.findIndex(b=>b===_));},S=()=>{n>=r.length-1||(u(),o(n+1));},R=()=>{v||(u(),o(n-1));};return jsx(it.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(D.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(D.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(Es,{title:e.title,onSectionClick:y}),jsx(Rs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:v,onPreviousClick:R,onNextClick:S,incompleteSections:g(),onSubmitClick:e.onSubmit})]})})})}function Es(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(it);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Jr,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function Rs(e){let{activeSection:r}=useContext(it),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(p,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(lt,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(st,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(at,{onClick:e.onNextClick})]})]})}a();a();var Fs=fe({preset:{text:"Save",async:true}}),ct=Fs;function yp(e){let{triggerRerender:r}=M(),t=E(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(D.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(D.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(D.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],v=t.read()?.[s]??"",g=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,u=y=>t.upsert(S=>({...S||{},[s]:y}));return c.options?jsx(Os,{label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:u},l):jsx(q,{width:"full",placeholder:c.placeholder,label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:u},s)})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ze,{fade:.5,size:n,onClick:i})}),jsx(D.ActionTrigger,{children:jsx(ct,{size:n,onClick:o})})]})]})}function Os(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Ue,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(q,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var te={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},er=createContext(null);function Ls(e){let r=h(e.borderColor||"outline[0.1]"),t=ue.md;return jsx(er.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${te.topbar} ${te.topbar}" "${te.sidebar} ${te.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Vs(e){let{navThickness:r}=useContext(er),t=xr(e.file.typeAlias);return jsxs(d,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${V.md})`}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(d,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(p,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Hs(e){let{navThickness:r}=useContext(er),{children:t,...n}=e;return jsx(d,{...n,row:true,id:te.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:["md",["left","right"]],justify:e.justify||"space-between",style:{...e.style,gridArea:te.topbar},children:e.children})}var co=createContext(null);function Ws(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(er);return jsx(co.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...n,id:te.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:te.sidebar},children:e.children})})}function Ns(e){let{onOptionClick:r}=useContext(co),t=()=>{e.onClick?.(),r(e.label);};return jsx(Fe,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function $s(e){let{borderColor:r,corners:t}=useContext(er),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],l=n.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${te[c]}`));i.every(c=>s.includes(c))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:te.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Js(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...n,backgroundColor:e.color||"outline[0.1]"})}var Bp={Root:Ls,Sidebar:Ws,SidebarOption:Ns,Topbar:Hs,Viewer:$s,Indicator:Vs,Sep:Js};a();var uo=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(uo||{});function fo(e){let r=uo[e.size||"sm"];return jsx(d,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}a();function mo(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,l],s,c)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
|
|
17
|
+
`}function o0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function i0(e,r){let t=n=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?n.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(n)?e.radius:void 0:e[n];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function a0(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ue.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function l0(e){let r=0,t=0,n=0,o=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),n=c.clientX,o=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=n-c.clientX,t=o-c.clientY,n=c.clientX,o=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function s0(e){return {...e,margin:0,padding:0}}function j(e,r={apply:true}){return r.apply?Ve(1,e):e}function c0(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function nn(e){let r=e;for(;r&&!Mr(r);)r=r.parentElement;return r}function on(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let n=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>n+2}function h(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),l=()=>G[n],s=()=>i?oa(oe[o],parseFloat(i)):oe[n];if(t==="css"){if(n in G)return l();if(o in oe)return s()}else if(t==="res"){if(o in oe)return s();if(n in G)return l()}return n}var an=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",ta=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),na=e=>parseInt(e.repeat(2/e.length),16);function oa(e,r=1){let t=(g,u)=>g.match(new RegExp(`.{${u}}`,"g")),n=g=>typeof g<"u"?g/255:typeof r!="number"||r<0||r>1?1:r;if(!ta(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[l,s,c,v]=i.map(na);return `rgba(${l}, ${s}, ${c}, ${n(v)})`}function d0(e,r){let t=e.includes(",")?",":" ",n=e.split("").filter(o=>(t+"0123456789").includes(o)).join("").split(t);return n.length===3?n.push(`${r}`):n=n.with(3,`${r}`),"rgba("+n.join(t)+")"}function u0(e){return window.matchMedia(`(max-width:${e})`).matches}function f0(e){return window.matchMedia(`(min-width:${e})`).matches}function Ve(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function ia(e){return e*16}function m0(e){return `${ia(e)}px`}function Mr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function g0(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var aa=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),V=aa;a();var la=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),L=la;var vr=["top","right","bottom","left"],ln=(e,r)=>`translate(${e}, ${r})`,sn=e=>`translateX(${e})`,cn=e=>`translateY(${e})`,sa=(e,r)=>{let t=e.fontSize in L?L[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:[e.scrollbarColor?.thumb,e.scrollbarColor?.track].map(s=>s||"inherit").join(" "),transform:e.centerSelf===true?ln("-50%","-50%"):e.centerSelf==="x"?sn("-50%"):e.centerSelf==="y"?cn("-50%"):e.translate?.x&&e.translate?.y?ln(e.translate.x,e.translate.y):e.translate?.x?sn(e.translate.x):e.translate?.y?cn(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:fa(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:ca(e.borderColor),borderWidth:da(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ua(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:ma(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:h(e.backgroundColor),color:h(e.color),gap:ga(e.gap),overflowX:n,overflowY:o,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(l).forEach(s=>{let c=s,v=l[c];typeof v=="string"&&(v=v.trim()),!v&&v!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function ca(e){if(!e)return;let r="transparent";return typeof e=="string"?h(e):vr.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?h(n):r}return typeof e=="object"&&t in e?h(e[t]):r}).join(" ")}function da(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function ua(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function fa(e){let t=n=>n?n in V?V[n]:n:"0px";return e?typeof e=="string"?t(e):vr.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):i===n)?t(o):"0px"}return typeof e=="object"&&n in e?t(e[n]):"0px"}).join(" "):"0px"}function ma(e){let t=o=>o?o in ue?ue[o]:o:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(o=>{let i=e?.[o];return o.includes("top")&&e?.top?t(e.top):o.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function ga(e){if(!(!e||typeof e!="string"))return e in V?V[e]:e}var C=sa;var ba=["inherit","sm","md","lg","xl","2xl","xs"],Sa=["sm","md","lg","xl","2xl","xs","2xs"];function dn(e){let[r,t]=useState(false),n=e.disabled||r,o=async u=>{if(!n){if(!e.async)return e.onClick?.(u);t(true),await e.onClick?.(u),setTimeout(()=>t(false),e.pendingDelay||1);}},i=u=>{if(u){if(typeof u==typeof FaFolder){let y=S=>typeof S=="string"&&[...ba].includes(S);return jsx(Icon,{size:y(e.iconSize)?e.iconSize:void 0,boxSize:y(e.iconSize)?void 0:e.iconSize,as:u})}return u}},l=i(e.leadingEl),s=i(e.trailingEl),c=u=>typeof u=="string"&&[...Sa].includes(u),{size:v,...g}=e;return jsxs(Button,{...de(e),disabled:n,size:c(v)?v:void 0,style:C({...g,size:c(v)?void 0:v,clickable:!n,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:n?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:o,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?h(e.spinnerColor):"blue.500"})})]})}var fe=e=>r=>jsx(dn,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,l=i in n,s=[void 0,null].includes(n[i]);(!l||s)&&(n[i]=e.optional[i]);}return n})()}),B=dn;a();a();a();a();a();function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},hr.apply(null,arguments)}a();a();function un(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}a();var fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};a();function pr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Ba=/[A-Z]|^ms/g,ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yn=function(r){return r.charCodeAt(1)===45},mn=function(r){return r!=null&&typeof r!="boolean"},Lr=pr(function(e){return yn(e)?e:e.replace(Ba,"-$&").toLowerCase()}),gn=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ka,function(n,o,i){return Z={name:o,styles:i,next:Z},o})}return fn[r]!==1&&!yn(r)&&typeof t=="number"&&t!==0?t+"px":t};function He(e,r,t){if(t==null)return "";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case "boolean":return "";case "object":{var o=t;if(o.anim===1)return Z={name:o.name,styles:o.styles,next:Z},o.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Z={name:l.name,styles:l.styles,next:Z},l=l.next;var s=i.styles+";";return s}return Da(e,r,t)}case "function":{if(e!==void 0){var c=Z,v=t(e);return Z=c,He(e,r,v)}break}}var g=t;if(r==null)return g;var u=r[g];return u!==void 0?u:g}function Da(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=He(e,r,t[o])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":mn(s)&&(n+=Lr(i)+":"+gn(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)mn(l[c])&&(n+=Lr(i)+":"+gn(i,l[c])+";");else {var v=He(e,r,l);switch(i){case "animation":case "animationName":{n+=Lr(i)+":"+v+";";break}default:n+=i+"{"+v+"}";}}}}return n}var vn=/label:\s*([^\s;{]+)\s*(;|$)/g,Z;function hn(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=true,o="";Z=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=He(t,r,i);else {var l=i;o+=l[0];}for(var s=1;s<e.length;s++)if(o+=He(t,r,e[s]),n){var c=i;o+=c[s];}vn.lastIndex=0;for(var v="",g;(g=vn.exec(o))!==null;)v+="-"+g[1];var u=un(o)+v;return {name:u,styles:o,next:Z}}a();var Ta=typeof document<"u",pn=function(r){return r()},Ea=ie.useInsertionEffect?ie.useInsertionEffect:false,Cn=Ta&&Ea||pn;a();var Vr=typeof document<"u";function _n(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var Hr=function(r,t,n){var o=r.key+"-"+t.name;(n===false||Vr===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},bn=function(r,t,n){Hr(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+o:"",l,r.sheet,true);!Vr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Vr&&i.length!==0)return i}};a();var Ra=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sn=pr(function(e){return Ra.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var Oa=typeof document<"u",Aa=Sn,Ma=function(r){return r!=="theme"},Pn=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Aa:Ma},xn=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},La=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;Hr(t,n,o);var i=Cn(function(){return bn(t,n,o)});if(!Oa&&i!==void 0){for(var l,s=n.name,c=n.next;c!==void 0;)s+=" "+c.name,c=c.next;return ie.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},Bn=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=xn(r,t,n),c=s||Pn(o),v=!c("as");return function(){var g=arguments,u=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else {var y=g[0];u.push(y[0]);for(var S=g.length,R=1;R<S;R++)u.push(g[R],y[R]);}var _=withEmotionCache(function(b,k,x){var P=v&&b.as||o,I="",Le=[],we=b;if(b.theme==null){we={};for(var Xt in b)we[Xt]=b[Xt];we.theme=ie.useContext(ThemeContext);}typeof b.className=="string"?I=_n(k.registered,Le,b.className):b.className!=null&&(I=b.className+" ");var dr=hn(u.concat(Le),k.registered,we);I+=k.key+"-"+dr.name,l!==void 0&&(I+=" "+l);var Ei=v&&s===void 0?Pn(P):c,ur={};for(var fr in b)v&&fr==="as"||Ei(fr)&&(ur[fr]=b[fr]);return ur.className=I,x&&(ur.ref=x),ie.createElement(ie.Fragment,null,ie.createElement(La,{cache:k,serialized:dr,isStringTag:typeof P=="string"}),ie.createElement(P,ur))});return _.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",_.defaultProps=r.defaultProps,_.__emotion_real=_,_.__emotion_base=o,_.__emotion_styles=u,_.__emotion_forwardProp=s,Object.defineProperty(_,"toString",{value:function(){return "."+l}}),_.withComponent=function(b,k){var x=e(b,hr({},t,k,{shouldForwardProp:xn(_,k,true)}));return x.apply(void 0,u)},_}};Vi(kn());var Va=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],De=Bn.bind(null);Va.forEach(function(e){De[e]=De(e);});var Nr=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?h(n):n)}static span=r=>De.span({...this.getStyle(r)});static div=r=>De.div({...this.getStyle(r)});static img=r=>De.img({...this.getStyle(r)})},Te=Nr;function Ja(e){let r=useRef(null),[t,n]=useState(false),o=E({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let g=o.read();r.current&&[g.top,g.left].some(u=>!!u)&&(r.current.scrollTop=g?.top??0,r.current.scrollLeft=g?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Mr(r.current)&&!t&&n(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=C({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?s:void 0,bottom:e.enableYFaders?s:void 0}}),v=Te.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(v,{...de(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:g=>{let u=r?.current?.scrollTop,y=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([u,y]))||o.upsert({top:u??0,left:y??0}),e.onScroll?.(g);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Ja;a();function Ua(e){let r=!!e.tint,t=Te.img(e.sx);return jsx(t,{...de(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${h(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var me=Ua;a();function Ya(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx($r,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(d,{width:"full",children:[jsx($r,{index:o,bold:t,item:n.label,active:n.nestedItems.some(i=>e.isItemActive(i)),completed:n.nestedItems.every(i=>e.isItemCompleted(i)),onClick:n.nestedItems?.[0]?()=>r(n.nestedItems[0]):void 0}),jsx(d,{width:"full",children:n.nestedItems.map((i,l)=>jsx($r,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function $r(e){let r=oe.white,t=G.onSurface,n=e.nested?t:G.tertiaryContainer,o=e.active?n:oe.carlsbergGreen,i=e.active&&!e.nested?n:G["onSurface[0.25]"],l=e.nested?G["onSurface[0.4]"]:G["onSurface[0.5]"],s=G["onSurface[0.2]"],c=()=>e.onClick?.(e.item),v=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:l,borderColor:e.completed?o:e.active?n:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?o:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(v,{fontSize:"1rem"}):jsx(p,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(v,{size:"1.25rem",opacity:.75})]})}var Jr=Ya;a();function qa(e){let r=i=>e.ellipsis?j(i):e.lineLimit?Ve(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=Te.span(e.sx);return jsx(o,{...de(e),ref:e.ref,style:r({...n,width:e.ellipsis?"100%":n.width,textAlign:n.textAlign||e.textAlign||"justify",fontStyle:n.fontStyle||e.italic?"italic":void 0,textDecoration:n.textDecoration||t()||void 0}),children:e.text||e.children})}var p=qa;a();var _r="1px",zn=6,Re=createContext(null);function rl(e){let r=e.defaultColumnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",n=!!e.selectedRows,[o,i]=useState(e.defaultSelectedRows||[]),l=()=>e.columns.map(x=>{let P=typeof x=="object"?x:{};return {...P,name:Ee(x),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),s=x=>(e.selectable?`auto ${_r}`:"")+l().map(I=>{let Le=I.weight||r;return Le==="auto"?x.find(we=>we.name===I.name)?.weight||"auto":Le}).join(` ${_r} `),[c,v]=useState(s(l())),g=o.length===e.entries.length&&e.entries.length>0,u=useRef(null),y=useRef(false),S=(Array.isArray(e.children)?e.children:[e.children]).filter((x,P)=>P<2),R=()=>{let x=[];g||(x=e.entries.map((P,I)=>I)),e.onSelectedRowsChange?.(x),n||i(x);},_=x=>{let P=[...o];P.includes(x)?P=P.filter(I=>I!==x):P.push(x),e.onSelectedRowsChange?.(P),n||i(P);},b=x=>{u.current?(x.forEach((P,I)=>{(u.current.get(I)||0)<P&&u.current.set(I,P);}),k()):(u.current=x,S.length===1&&k());},k=()=>{if(y.current){y.current=false;return}let x=l().map(P=>{let I=u.current.get(P.name);return I?{...P,weight:`${I}px`}:P});y.current=true,u.current=null,v(s(x));};return jsx(Re.Provider,{value:{...e,gridCols:c,selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:g,onSelectRowClick:_,onSelectAllRowsClick:R,columns:l(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:b},children:jsx(d,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"',...e.style||{}},children:S})})}function tl(e){let r=useContext(Re),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:_r,spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header"},children:[r.selectable&&jsx(In,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,l)=>{let s=Ee(o);return jsxs(ie__default.Fragment,{children:[jsx(p,{ref:c=>{c&&(n.current.set(s,parseFloat(getComputedStyle(c).width)+zn),i===lastIndex(l)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(s):e.formatColumnName?.(s)??camelCaseToLetter(s),style:{flexGrow:1,textAlign:We("textAlign",o)}}),i!==l.length-1&&jsx(Ur,{color:e.separatorColor})]},s+i)})]})}function nl(e){let r=useContext(Re),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(d,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((n,o)=>jsx(ol,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=o===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function ol(e){let r=useContext(Re),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{spill:"hidden",style:{gap:o,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(In,{selected:t,onClick:n}),r.columns.map((s,c,v)=>{let g=Ee(s),u=e.rowData[g],y=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),R=c+Ee(s),_=We("textAlign",s),b={textAlign:_,justifyContent:_,color:We("color",s),opacity:We("opacity",s,1),backgroundColor:We("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:g,columnIndex:c,rowIndex:e.index,data:typeof u=="string"?u:null,siblingData:{previous:c===0?null:run(e.rowData[Ee(v[c-1])],k=>typeof k=="string"?k:null),next:c===v.length-1?null:run(e.rowData[Ee(v[c+1])],k=>typeof k=="string"?k:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsxs(Fragment,{children:[jsx(il,{data:u,style:b,onRender:S,placeholder:y,onWidthComputed:k=>e.onColWidthComputed(g,k)},R),c!==v.length-1&&jsx(Ur,{})]}):jsxs(Fragment,{children:[jsx(On,{data:u,style:b,placeholder:y,onRender:S},R),c!==v.length-1&&jsx(Ur,{})]})})]})}function il(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+zn):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(On,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function On(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}function Ur(e){let r=useContext(Re),t=e.color||r.separatorColor;return jsx(d,{width:_r,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function In(e){let r=useContext(Re),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(An,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var Ee=e=>typeof e=="string"?e:e.name,We=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,al={Root:rl,Header:tl,Body:nl},ll=al;a();a();function cl(e){return jsxs(d,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[!e.hideSelectedTick&&e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),e.leadingEl,jsx("span",{children:e.formatOption?.(`${e.value}`)||`${e.value}`,style:j({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var jr=cl;var Ln=createContext(null);function vl(e){return jsx(Ln.Provider,{value:{...e,options:e.options.map(r=>typeof r=="string"||typeof r=="number"?{value:r.toString(),leadingEl:e.defaultLeadingEl,trailingEl:e.defaultTrailingEl}:{...r,leadingEl:r.leadingEl||e.defaultLeadingEl,trailingEl:r.trailingEl||e.defaultTrailingEl})},children:jsx(Fe,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(yl,{})})})}function yl(){let e=useContext(Ln),r=Vn(),[t,n]=useState(e.isSelected?e.options.findIndex((i,l)=>e.isSelected(i,l,e.options)):void 0),{triggerRerender:o}=M();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),n(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(jr,{formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var Ue=vl;a();function Gv(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}a();var _l=["sm","md","lg","xl","xs"];function Qv(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=l=>l&&typeof l=="string"&&[..._l].includes(l);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:h(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}a();function ly(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,l=e.totalPages-1,s=async g=>{if(g===t)return;let u=g===t+1,y=Math.abs(g-t)>1;r.current=y?null:u,y||(u?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(g),n(g),await e.afterPageChange?.(g);},c=async()=>s(t-1),v=async()=>s(t+1);return jsxs(d,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Hn,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:c}),jsx(d,{row:true,justify:l>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,g=>{let u=t===g;return jsx(d,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${g+1}`,corners:"circle",fade:u?1:.5,borderColor:u?void 0:"onSurface[0.1]",backgroundColor:u?"primary":void 0,color:u?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===l?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>s(g)},g)})}),jsx(Hn,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:v})]})}function Hn(e){return jsx(B,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}a();var Wn=createContext(null);function Fl(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(Wn.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Ol,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function zl(){let e=useContext(Wn);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Ol(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var py={Root:Fl,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:zl,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};a();a();a();var Nn=["Google"],$n=["pdf","word","excel","img","txt","unknown"],Jn=Object.freeze({txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]});function Un(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:Il(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Il=e=>e.flatMap(r=>Jn[r]);function Iy(e){return jsx(Un,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:h(e.backgroundColor||"transparent"),borderColor:h(e.borderColor||"outlineVariant"),color:h(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}a();var qn=createContext(null);function Xy(e){let r=E(null),t=E(e.defaultValue??""),[n,o]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",v=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},g=()=>{v(t.read());},u=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&l(true));},y=(P={asClick:true})=>{r.upsert("cancel"),g(),P.asClick&&e.onCancelClick?.(),l(false);},S=P=>{P.preventDefault(),l(false);},R=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),l(false);},_=()=>{r.upsert("edit"),e.onEditClick?.(),u();},b=()=>{R(false);},k=()=>{e.onContentClick?.(),u();},x={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(qn.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...x,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:L[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...x,grid:true,gap:e.columnGap??x.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(P=>e.hideControls.includes(P))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(q,{autoFocus:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:v,onBlur:S,onEnterKeyPressed:b,onEscapeKeyPressed:()=>y({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>y({asClick:false}):void 0,onClick:s==="click"?k:void 0,children:jsx(Fe,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:j({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Xl,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:y,onSave:R,onEdit:_}))]})]})})}function Xl(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(qr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(qr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(qr,{icon:LuPencilLine,onClick:e.onEdit})}function qr(e){let{padding:r,iconSize:t}=useContext(qn);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(B,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}a();var Qr=createContext(null);function jl(e){return jsx(Qr,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Yl(e){let{fade:r}=useContext(Qr);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Kl(e){let{fade:r}=useContext(Qr);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var br={Root:jl,Indicator:Yl,Content:Kl};a();function ge(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:e.style});if(e.fallback&&ie__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let t=e.fallback;return jsx(t,{size:"50%",style:e.style})}return jsx(Avatar.Fallback,{style:e.style})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:h(e.backgroundColor),color:h(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function eo(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}a();var ro=createContext(null);function as(e){return jsx(ro.Provider,{value:{gap:e.gap},children:jsx(d,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function to(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:n,...c,row:o,spill:i,centerContent:l,align:s,children:t})}}function no(e){return r=>jsx("span",{style:(()=>{let n=C({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?j(n):Ve(r.truncateStyle.lineCount,n)})(),children:r.value})}var ls=to(),ss=to(),cs=e=>{let{gap:r=e.gap}=useContext(ro);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},ds=no({fontWeight:"bold",fontSize:"xs",fade:.75}),us=no({fontSize:"sm"}),J={Root:as,LeadingAddOn:ls,TrailingAddOn:ss,Content:cs,Label:ds,Item:us};a();function gs(e){let r=()=>{if(typeof e.fallback=="string"||ie__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(d,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(me,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function vs(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var kh={Root:gs,Content:vs};a();function ys(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(ge,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:j(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:j(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var Ih={Root:ys,Content:d};a();function An(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}a();a();function bs(e){let{triggerRerender:r}=M(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var ot=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;o?.[l]||(o=Object.assign(o,{[l]:r[l]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...o,children:t.children})})},Ss=ot("Header",{fontSize:"xl",fontWeight:"bold"}),Ps=ot("Body",{gap:"md"}),xs=ot("Footer",{row:true,gap:"sm"}),Bs=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),ks=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),D={Root:bs,Header:Ss,Body:Ps,Footer:xs,CloseTrigger:Bs,ActionTrigger:ks};function np(e){let r=e.severity||"error",t=h(r,{preference:"res"});return jsxs(D.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(D.Header,{fontSize:"2xl",children:e.title}),jsxs(D.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
18
|
+
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(io,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(D.Footer,{gap:"md",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(B,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var it=createContext(null);function fp(e){let r=e.sections.flatMap(_=>typeof _=="object"?_.nestedItems:_),t=e.defaultSection?r.findIndex(_=>_===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=M(),l=E([]),s=r[n],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),v=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((_,b)=>{u(_,b);}),i();},[]);let g=(_=l.read())=>r.filter(b=>!_.includes(b)&&!c.includes(b)),u=(_=s,b=n)=>{let k=l.read();if(!c.includes(_)){if(e.isSectionComplete(_)&&!k.includes(_))k=[...k,_];else if(!e.isSectionComplete(_)&&k.includes(_))k=k.filter((x,P)=>P!==b);else return;l.upsert(k),e.onSectionsStatusChange?.(g(k),k);}},y=_=>{u(),o(r.findIndex(b=>b===_));},S=()=>{n>=r.length-1||(u(),o(n+1));},R=()=>{v||(u(),o(n-1));};return jsx(it.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(D.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(D.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(Fs,{title:e.title,onSectionClick:y}),jsx(zs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:v,onPreviousClick:R,onNextClick:S,incompleteSections:g(),onSubmitClick:e.onSubmit})]})})})}function Fs(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(it);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Jr,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function zs(e){let{activeSection:r}=useContext(it),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(p,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(lt,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(st,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(at,{onClick:e.onNextClick})]})]})}a();a();var Os=fe({preset:{text:"Save",async:true}}),ct=Os;function xp(e){let{triggerRerender:r}=M(),t=E(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(D.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(D.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(D.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],v=t.read()?.[s]??"",g=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,u=y=>t.upsert(S=>({...S||{},[s]:y}));return c.options?jsx(As,{label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:u},l):jsx(q,{width:"full",placeholder:c.placeholder,label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:u},s)})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ze,{fade:.5,size:n,onClick:i})}),jsx(D.ActionTrigger,{children:jsx(ct,{size:n,onClick:o})})]})]})}function As(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Ue,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(q,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var te={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},er=createContext(null);function Hs(e){let r=h(e.borderColor||"outline[0.1]"),t=ue.md;return jsx(er.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${te.topbar} ${te.topbar}" "${te.sidebar} ${te.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Ws(e){let{navThickness:r}=useContext(er),t=xr(e.file.typeAlias);return jsxs(d,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${V.md})`}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(d,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(p,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Ns(e){let{navThickness:r}=useContext(er),{children:t,...n}=e;return jsx(d,{...n,row:true,id:te.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:["md",["left","right"]],justify:e.justify||"space-between",style:{...e.style,gridArea:te.topbar},children:e.children})}var co=createContext(null);function $s(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(er);return jsx(co.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...n,id:te.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:te.sidebar},children:e.children})})}function Js(e){let{onOptionClick:r}=useContext(co),t=()=>{e.onClick?.(),r(e.label);};return jsx(Fe,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function Xs(e){let{borderColor:r,corners:t}=useContext(er),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],l=n.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${te[c]}`));i.every(c=>s.includes(c))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:te.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Us(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...n,backgroundColor:e.color||"outline[0.1]"})}var zp={Root:Hs,Sidebar:$s,SidebarOption:Js,Topbar:Ns,Viewer:Xs,Indicator:Ws,Sep:Us};a();var uo=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(uo||{});function fo(e){let r=uo[e.size||"sm"];return jsx(d,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}a();function mo(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,l],s,c)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
|
|
19
19
|
${t(l,true)}
|
|
20
20
|
}`:l}`+(s===lastIndex(c)?"":",")).join(`
|
|
21
|
-
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var vo=createContext(null);function
|
|
21
|
+
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var vo=createContext(null);function ec(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(vo.Provider,{value:{color:t,placement:n,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:n,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(rc,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:h(r),color:h(t),style:C({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(ec,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(go,{isTrigger:true,value:o})}):jsx(go,{...i,value:o})})})})})]})})}function rc(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function go(e){let{color:r,onItemClick:t}=useContext(vo),n=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},o=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:l}=e.sx?.[":hover"]||{},s={disabled:e.disabled,backgroundColor:h(e.backgroundColor||"transparent"),color:h(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:h(i),color:l?h(l):void 0},_active:e.sx?.[":active"]?{...C({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:o};return e.isTrigger?jsxs(Menu.TriggerItem,{...s,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...s,value:e.value,children:[e.leadingEl,jsx(d,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(n,{})]})}a();var Co=createContext(null);function yC(e){let[r,t]=useState(false),n=e.controller||_o(0),[o,i]=useState(n.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),n.goTo=useCallback((g,u)=>{let y=u?.transition||"smooth",S=o;if(!(g===S||r||!u?.ignoreOutOfBoundsCheck&&!e.children[g]))if(l?.(S,g),e.onChange?.(S,g),y==="smooth"){t(true);let R=S,_=setInterval(()=>{g>S?R++:R--,i(R),R===g&&(clearInterval(_),t(false));},u?.transitionDuration||200);}else i(g);},[o,e.children,r]),n.echo=e.onEcho,n.isPageActive=useCallback(g=>g===o,[o]),n.onPageChange=useCallback(g=>{l=g;},[]),n.getActivePage=useCallback(()=>o,[o]),useEffect(()=>()=>{for(let u of Object.keys(n)){let y=u;typeof n[y]=="function"&&(n[y]=null);}l=null;},[]);let s=()=>n.goTo(o-1),c=()=>n.goTo(o+1),v=C({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(Co.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:v.height,width:v.width??"100%",justifyContent:"center",gap:v.gap??".5rem",overflow:v.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(po,{disabled:o<=0,inset:"left",onClick:s}),e.children.map((g,u)=>{let y=Math.sign(o-u),S=Math.abs(o-u)/3,R=Math.abs(o-u)>(e.maxDisplayed??2);return jsx("div",{style:{overflow:"hidden",boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.35) 0px 5px 15px",...e.slotProps?.childWrapperStyle||{},display:R?"none":"flex",position:"absolute",opacity:u!==o&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,justifyContent:"center",alignItems:"center",transform:`
|
|
22
22
|
scaleY(calc(1 + ${S} * -0.4))
|
|
23
23
|
translateZ(calc(${S} * -10rem))
|
|
24
|
-
translateX(calc(${y} * -5rem))`,filter:`blur(calc(${S} * .5rem))`},children:typeof g=="function"?jsx(g,{isActive:u===o}):g},u)}),!e.hideControls&&jsx(po,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:c})]})})}function po(e){let r=useContext(Co),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(d,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var wr=createContext(null);function Fe(e){let r=E(e.open??false),{triggerRerender:t}=M(),n=`--${v4()}`,o=useRef(null),i=useRef(null),l=ie__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let v=e.placement||"bottom-left",g=["top","right","bottom","left"].includes(v),u=g?{positionArea:v}:dc(e.anchorPoint||"top-left",cc(v));if(!e.visibleOnScroll){let S=nn(o.current);S&&S.addEventListener("scroll",R=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${R.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${y}`]:e.offset??".25rem",...u,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let v=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",g=>{let u=g.newState==="open";u?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(u),r.upsert(u),!u&&e.rerenderOnClose&&t();}),v==="click")i.current?.addEventListener("click",()=>{c(()=>o.current?.togglePopover());});else if(v==="hover"){let g,y=()=>{g&&(g=null),c(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?g=setTimeout(y,20):y();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{g&&clearTimeout(g);}),o.current?.addEventListener("mouseleave",y));}},[]);let s=(v,g)=>v==="match-anchor"?getComputedStyle(i.current)?.width:v??g,c=(v,g)=>{let u=200;typeof e.delay=="number"?u=e.delay:e.delay&&g in e.delay&&(u=e.delay[g]),setTimeout(v,u);};return jsxs(wr.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var cc=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},dc=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};a();function wC(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?h(e.backgroundColor):void 0,boxShadow:e.borderColor?`${h(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in V?V[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?h(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in V?V[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(mc,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function mc(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in L?L[e.fontSize]:e.fontSize,border:0,color:h(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}a();function wo(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:h(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function MC(e){return jsx(d,{id:e.id,style:vc({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var gc=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],vc=e=>{let{height:r,width:t}=gc(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:h("paper"),color:h("onPaper"),overflow:"hidden"}};a();function To(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function YC(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}a();a();var zo=ie.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:v,...g}=r;return i?o:jsxs(Tooltip.Root,{...g,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!l,container:v,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function Tr(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(zo,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var gt=createContext(null);function kc(e){let r=E([]),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:h(t)}})}),jsx("p",{}),l]})),i=()=>{if(n.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===n.length)return "last"};return jsx(gt.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function wc(e){let[r,t]=useState(),{register:n}=useContext(gt),{indicator:o,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let g=n();typeof g=="string"&&t(g);},[r]);let v=g=>r===g||r==="both";return jsxs(Fragment,{children:[jsx(Io,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(Ao,{hide:v("first")}),jsx(d,{style:{...C({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Ao,{hide:v("last")})]}),jsx(Io,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function Io(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Ao(e){let{lineSeparatorColor:r}=useContext(gt);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var v_={Root:kc,Item:wc};a();function S_(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:h(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:h(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var vt=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function q(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=_=>typeof e.indent=="string"?e.indent:e.indent?.[_],v="md",{size:g,...u}=e,y={label:C({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...u,width:"full",padding:{top:v,left:e.leadingContent?c("left")||s:v,right:e.trailingContent||e.showCharCounter?c("right")||s:v,bottom:v},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=_=>{o.current.value=_,e.onChange(_,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let _=b=>{if(e.format!=="currency")return;let k=b;if(k=k.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((x,P)=>P<2).join("."),k&&takeLast(k.split(""))[0]!=="."){let x=parseFloat(k);if(!isNaN(x)){let P=new Intl.NumberFormat;S(P.format(x));}}};o.current?.addEventListener?.("beforeinput",b=>{let k=b.data,x=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";x==="all"||Array.isArray(x)&&x.includes("all")||k===null||(!Array.isArray(x)&&!vt(k,x)||Array.isArray(x)&&x.some(P=>!vt(k,P)))&&b.preventDefault();}),o.current?.addEventListener?.("paste",b=>{_(b.target.value);}),o.current?.addEventListener?.("input",b=>{_(b.target.value);});},[o.current]);let R=_=>{e.onChange?.(_,void 0),e.onPasteClick?.(_);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:y.root,children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...y.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Ac,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:R,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(p,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(o.current?getComputedStyle(o.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:g,zIndex:1,variant:e.variant,onKeyDown:_=>{_.key==="Enter"?e.onEnterKeyPressed?.():_.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:y.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":h(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:h(e.slotProps.placeholder.color)}:void 0,onChange:_=>{let b=_.currentTarget.value;switch(e.allowHtmlInput||(b=an(b)),e.trimOnChange){case "start":b=b.trimStart();break;case "end":b=b.trimEnd();break;case true:b=b.trim();break}e.validateInput?.(b)!==false&&(e.onChange?.(b,_),n||t(b));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:y.helperText,children:e.helperText})]})}function Ac(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:V.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Ie,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Wo,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function io(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:h(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(on(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function $o(e){return {FlyLeavingBox:Wc}[e]}var Ct=createContext(null);function Jc(e){let r=E(e.attachments||[]),{triggerRerender:t}=M(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(Ct.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let l=r.read();o==="add"&&(l=[...l,i]),o==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),o==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(D.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(D.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(D.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Gc,{}):jsx(Xc,{})})]})})}function Xc(){let e=useContext(Ct),r=E(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?o.filter(({name:u})=>u.toLowerCase().includes(t.toLowerCase())):o,s=isEmpty(l)&&!!t.trim(),c=u=>{i(y=>y.filter(({uid:S})=>S!==u.uid)),e?.onAttachmentDeleted?.(u),e?.attachmentsEventListener?.("delete",u);},v=(u,y)=>{let S=sanitizeLocalFile(y[0]);i([...o,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},g=u=>{e?.onOpenAttachment?.(u),e?.attachmentsEventListener?.("open",u);};return jsxs(Fragment,{children:[jsx(St,{width:"full",value:t,onChange:n}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((u,y,S)=>jsx(Uc,{scrollIntoView:r.read()===false&&y===S.length-1,value:u,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(u):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(u):e?.openDisabled,onDelete:c,onOpen:g},u.uid))}),!e.hideUploadButton&&jsx(ar,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:v})]})}function Uc(e){let{typeAlias:r,path:t,name:n,sizeInBytes:o}=e.value,i=xr(r);return jsxs(J.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(J.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(me,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(J.Content,{gap:"sm",width:"full",children:[jsx(J.Item,{truncateStyle:"ellipsis",value:n}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(J.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(bt,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(ir,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Gc(){let e=useContext(Ct);return jsxs(br.Root,{children:[jsx(br.Indicator,{size:"7rem",disableFade:true,element:jsx(me,{spill:"hidden",size:"full",src:$o("FlyLeavingBox")})}),jsx(br.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(ar,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(n));}),e.rerender();}})]})}var _t=Jc;function Kc(e){let r=E(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=M(),n=o=>{r.upsert(o);};return jsx(Tr,{tooltip:"Attachments",placement:"right",children:jsx(eo,{circleChild:true,asChild:!e.attachments,badge:jsx(fo,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(qc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function qc(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...l}=e;return r?t:jsx(_t,{...l,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var Pt=Kc;a();var Qc=fe({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Ze=Qc;a();function td(e){return jsx(B,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var ir=td;a();function id(e){let{iconOnly:r,...t}=e;return jsx(B,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var ad=id;a();function fd(e){let r=E(e.initialState==="expanded"),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var md=fd;a();function gd(e){return jsx(B,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var at=gd;a();function hd(e){return jsx(B,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var bt=hd;a();function _d(e){return jsx(B,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var bd=_d;a();function xd(e){let r=jsx(B,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(xt,{triggerElement:r,options:e.options}):r}var Bd=xd;a();function kd(e){return jsx(B,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var lt=kd;a();function Td(e){return jsx(B,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var Bt=Td;a();function Ed(e){return jsx(B,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var st=Ed;a();function zd(e){return jsx(B,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var kt=zd;a();function Id(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:tn({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Ad=Id;a();function Vd(e){return jsxs(J.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(J.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(me,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(J.Content,{width:"full",gap:"xs",children:[jsx(J.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(J.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(J.TrailingAddOn,{children:jsx(ir,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Hd=Vd;a();function jd(e){let[r,t]=useState(e.selectedDate||new Date),n=E(r),o=e.minDate==="today"?new Date:ei(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?Kd():ei(e.maxDate),l=u=>{t(u),e.onDateSelected?.(u);},s=u=>u.toDateString()===r.toDateString(),c=u=>u.toDateString()===new Date().toDateString(),v=u=>{let y=n.read();return y.getMonth()===u.getMonth()&&Zd(u.getDate(),y.getMonth())},g=u=>n.upsert(u);return jsx(Jd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:g,onYearChange:g,renderCustomHeader:u=>jsx(Yd,{...u,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:u=>["calendar-date",s(u)?"selected":"unselected",c(u)?"today":"",v(u)?"":"out-of-bounds",qd(u,i)?"excluded":""].join(" ")})}function Yd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,v)=>{let g=e.date.getFullYear();return g===e.minDate.getFullYear()?v>=e.minDate.getMonth():g===e.maxDate.getFullYear()?v<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=c=>{e.changeMonth(r.findIndex(v=>v===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Qo,{label:n,isSelected:c=>n===c,options:t.map(c=>({value:c})),onOptionClick:o}),jsx(Qo,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Qo(e){return jsx(Ue,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var ei=e=>{if(e)return e instanceof Date?e:new Date(e)};var Kd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var qd=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},Zd=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Et=memo(jd);a();a();var Qd=fe({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),ri=Qd;function eu(e){let r=E(null),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=u=>{r.upsert(u),e.onDateSelected?.(u);},v=()=>{let u=r.read();u&&e.onDoneClick?.(u);},g=u=>{e.onOpenChange?.(u);};return jsxs(D.Root,{hideCloseButton:true,onOpenChange:g,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(D.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(D.Body,{children:jsx(Et,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ze,{size:s,fade:.5})}),jsx(D.ActionTrigger,{children:jsx(ri,{size:s,onClick:v})})]})]})}var ru=eu;a();function lu(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(D.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(D.Header,{children:"Payment Options"}),jsx(D.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:L.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===l&&jsx(o,{content:i.dropDownContent})]}),c]})})})]})}var ni=e=>e,cx=e=>ni({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),dx=()=>ni({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),xt=lu;a();var oi=createContext(null);function Rt(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},v=({fontSize:g,lineHeight:u,opacity:y})=>({fontSize:g,lineHeight:u,opacity:y});return jsx(oi.Provider,{value:{color:i},children:jsxs(D.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(D.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:h(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:v(c.title),children:n}),jsx("span",{style:v(c.description),children:o})]})]}),jsxs(D.Footer,{row:true,gap:"md",align:"center",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(yu,{...s}):void 0]})]})})}function yu(e){let{color:r}=useContext(oi);return jsx(B,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var ii=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Rt.tryAgainButton=ii("Try Again");Rt.retryButton=ii("Retry");var Fr=Rt;a();var Ft="onPaper[0.1]",zr=", ";function Cu(e){let r=E(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=li(),n=E({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(zr)??"",attachments:e.attachments||[]}),o=(s,c)=>{n.upsert(v=>({...v,[s]:c}));},i=()=>strictArray(n.read().recipients.split(zr)),l=async()=>{let{subject:s,body:c,attachments:v}=n.read(),g=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:v});if(typeof g!="object")return;let{error:u,response:y}=g;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(g)),u)return t.show({error:u});y!=="success"?t.show({response:y}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(Fr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:Fr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&n.read().recipients?jsx(bu,{recipients:i()}):jsx(_u,{readOnly:e.readOnly,recipients:i(),onChange:s=>o("recipients",s)}),jsx(Su,{subject:n.read().subject,readOnly:e.readOnly,onChange:s=>o("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Pu,{defaultValue:n.read().body,readOnly:e.readOnly,onChange:s=>o("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(Pt,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(Bt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function _u(e){let[r,t]=useState(false),n=o=>jsx(p,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(ai,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(zr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function bu(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Ft,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ge,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(zt,{textToCopy:e.recipients.join(zr)})]})}function Su(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Ft,"bottom"],children:[jsx(ai,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(zt,{textToCopy:e.subject})]})}function Pu(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${h("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:L.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(zt,{textToCopy:e.defaultValue})})]})}function ai(e){return jsx(q,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Ft,"bottom"],onChange:e.onChange})}function zt(e){return jsx(Ie,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var xu=Cu;a();a();function Bu(e){return jsxs(d,{row:true,gap:"md",children:[jsx(di,{onClick:e.onNoClick}),jsx(ci,{onClick:e.onYesClick})]})}var Ot=Bu;function Du(e){return jsxs(d,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Ot,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Tu=Du;a();function Ru(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Lt,{value:r})})}):jsx(Fu,{})})}function Fu(){let e=r=>jsx(p,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var zu=["string","number","boolean"];function At(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function ui(e){return jsxs(Fragment,{children:[jsx(p,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Lt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(ui,{value:r}):jsx(At,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function Lt(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,v=e.value[c],g=()=>zu.includes(typeof v)?jsx(At,{value:v}):Array.isArray(v)?jsx(ui,{value:v}):typeof v=="object"?jsx(Lt,{indent:true,value:v}):jsx(At,{value:`${v}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(g,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Vt=Ru;a();a();a();function Lu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...$n].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],v=[],g=[],u=y=>strictArray(y).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let y of c){if(v.length+g.length>=t)break;r.includes(y.type)?v.push(y):g.push(y);}isEmpty(v)||e.onAccept?.(v,u(v)),isEmpty(g)||e.onReject?.(g,u(g));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(v=>v.kind==="file").map(v=>v.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let v=new DataTransfer;c.forEach(g=>v.items.add(g)),o(c);}},l=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...C(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var mi=Lu;function vi(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(mi,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(B,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var ar=vi({fileClass:"file"}),_5=vi({fileClass:"receipt",accepts:["img"]});function Xu(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let n=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(p,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(n,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ge,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(ar,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var Uu=Xu;a();function ju(e){let r=e.authProviders||[...Nn.values()];return jsxs(d,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(d,{width:"full",color:"inherit",children:[jsx(p,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(Yu,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Yu(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(B,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var Ku=ju;a();a();var pi={timestamp:Date.now(),status:"info",response:"Hello World!"};function rf(e){useEffect(()=>{e.initialMessage&&(pi.response=e.initialMessage);},[]);let r=[pi,...e.logs];return jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(tf,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function tf(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:h(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(wo,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:h(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Wt=rf;function cf(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(mo,{item:o,info:n})})}),jsx(Wt,{initialMessage:"Awaiting registration process...",logs:r})]})}var df=cf;a();function mf(e){return jsx(q,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var St=mf;a();a();function vf(e){return e.error?jsx(Tr,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Nt=vf;function pf(e){let r=E(e?.verifyError),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(q,{...e,leadingAdornment:jsx(Nt,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(To,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(kt,{onClick:o})})}var $t=pf;a();function Si(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:l=o.fontSize||".85rem",fontWeight:s=o.fontWeight,lineHeight:c=o.lineHeight=l}=e.slotProps?.[n]||{};return jsx(p,{ellipsis:true,fade:i,fontSize:l,fontWeight:s,text:n==="name"?r:e.email,style:{lineHeight:c in L?L[c]:c}})};return jsxs(d,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(ge,{size:e.slotProps?.avatar?.size,fallback:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color}),jsxs(d,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}Si.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var Sf=Si;a();function Pi(e){return r=>{let[t,n]=useState(false);return jsx(B,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var Wo=Pi({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),Ie=Pi({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});a();function Bi(e){return r=>jsx(B,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var ik=Bi(BsPlus),ak=Bi(BsDash);a();function ki(e){return r=>jsx(B,{...e.defaults,text:e.label,onClick:r.onClick})}var ci=ki({label:"Yes"}),di=ki({label:"No",defaults:{variant:"outline"}});a();var yk=fe({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function Mf(e){let r=E(e.defaulValue?.token||""),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return o(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx($t,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx(Ie,{textToCopy:n.payload}),jsx(Vt,{fullSize:true,json:n?n.payload:void 0})]})]})}var Lf=Mf;a();a();function xr(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}a();a();a();a();var Di=(w=>(w.white="#FFF",w.black="#000",w.gray="#808080",w.pdf="#F40F02",w.word="#41A5EE",w.excel="#21A366",w.img="#8d481f",w.txt="#8c61a9",w.deepSkyBlue="#00BFFF",w.lightSkyBlue="#87CEFA",w.sendBlue="#0a57d0",w.onSendBlue="#c3dfff",w.book_it="#009688",w.stickyNote="#EFAD03",w.matteBlack="#28282B",w.navyBlue="#000080",w.teal="#008080",w.paper="#ffffff",w.onPaper="#28282B",w.paperVariant="#E6E6E6",w.success="#4BB543",w.hyperlink="#2979ff",w.gold="#d4af37",w.carlsbergGreen="#17B169",w.billsRed="#C60C30",w.info="#1565c0",w.error="#C60C30",w.warning="#f9a825",w.jsonKey="#D56C75",w.string="#59A779",w.number="#D19A5A",w.boolean="#56B6C2",w.jsonBracket="#FFCA1D",w.arrayBracket="#DA68A7",w.delete="#C60C30",w.pdf_table_header="#28282B",w))(Di||{}),oe=Di;a();var qf=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),G=qf;a();a();function jw(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function Qw(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function lD(e,r,t){let[n,o]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:n,timestamp:new Date().toLocaleTimeString()});},[n]),useEffect(()=>{let s=document.createElement(e),v=(Array.isArray(r.children)?r.children:[r.children]).map(y=>{let S=document.createElement(e);return S.innerHTML=tm.renderToStaticMarkup(y),S});Object.assign(s.style,{...i,visibility:"hidden"}),v.forEach(y=>s.appendChild(y)),l.appendChild(s);let g=getComputedStyle(s),u=Object.keys(i).filter(y=>y in g&&typeof g[y]=="string").map(y=>{let R=g[y];return [y,y==="opacity"?R.toString():R===0?"0px":R]});o(Object.fromEntries(u)),l.removeChild(s);},[r]),{style:n}}a();function li(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}a();function E(e,r){let t=useRef({recent:e,stale:void 0});return {debug:()=>{let n=t.current.stale,o=t.current.recent,i=()=>{if(Array.isArray(n)){let s=n;return {from:n,to:o,difference:o.filter((v,g)=>g<s.length?s[g]!==v:false)}}switch(typeof n){case "string":return {from:n,to:o,difference:o.replace(n,"")};case "object":return {from:n,to:o,difference:Object.fromEntries(Object.keys(n).map(s=>{let c=s;if(o[c]!==n[c])return [c,o[c]]}).filter(s=>!!s))};default:throw new Error("Not yet implemented bro!")}},l=250;return console.log(buildArray(l,s=>s===0||s===l?"/":"*").join(""),i()),i()},upsert:n=>{let o=typeof n=="function"?n(t.current.recent):n,i=t.current.recent;t.current={recent:o,stale:i},r?.onChange?.(o,i);},read:()=>t.current.recent,delete:()=>{t.current=void 0;}}}a();function _o(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Vn(){return useContext(wr)}a();function M(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function wD(e,r){let[t,n]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;n(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}a();function zD(e){let r=useContext(gr),{triggerRerender:t}=M(),n=c=>{throw new Error("Invalid key used in useEvent",{cause:`${c} with type "${typeof c}" provided, but a key with type "string" was expected.`})};return {emit:(c,...v)=>{if(typeof c!="string")return n(c);r.emit(c,v?.[0]),e?.rerenderOnEmit&&t();},on:(c,v,g)=>{if(typeof c!="string")return n(c);let u=r.on(c,v);return g?.rerender&&t(),u},listeners:c=>typeof c!="string"?n(c):r.listeners(c),dettach:c=>typeof c!="string"?n(c):r.dettach(c)}}a();function VD(e){let{triggerRerender:r}=M(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}a();export{Pt as AttachmentsButton,_t as AttachmentsDialog,ge as Avatar,eo as Badge,B as BasicButton,d as BasicDiv,me as BasicImg,Jr as BasicOl,jr as BasicOption,Ue as BasicSelect,p as BasicSpan,ll as BasicTable,Et as Calendar,ru as CalendarDialog,Ze as CancelButton,J as Card,An as Checkbox,oe as ColorResources,Yh as ConfirmationDialog,Ie as CopyButton,G as CssColors,ue as CssShapes,V as CssSpacing,ir as DeleteButton,D as Dialog,io as Disclaimer,yk as DownloadButton,dy as Drawer,ad as EditButton,My as Editable,xu as EmailComposer,br as EmptyState,Nt as ErrorTooltip,Qt as EventContainer,md as ExpandableButton,op as FancyFormDialog,wy as FileDropzone,Bp as FileViewer,L as FontSize,fo as Indicator,mo as ItemInfo,Vt as JsonViewer,Lf as JwtVerifier,ph as MediaCard,Zs as Menu,Ad as MoneyDisplayCard,ak as NegativeButton,at as NextButton,di as NoButton,bt as OpenButton,bd as OptionsButton,Qv as PageIndicator,sC as PageSlider,MC as Paper,Wo as PasteButton,Bd as PaymentOptionsButton,xt as PaymentOptionsDialog,Uu as PictureUploader,Fe as Popover,ik as PositiveButton,lt as PreviousButton,wh as ProfileCard,Hd as ReceiptCard,ct as SaveButton,St as SearchTextField,wC as SegmentedControls,Bt as SendButton,S_ as Separator,Ku as SignInWidget,yp as SimpleFormDialog,Xv as Spinner,To as Status,YC as Stepper,st as SubmitButton,wo as Tag,df as TaskLogger,Fr as TaskResultDialog,Wt as Terminal,q as TextField,v_ as Timeline,Tr as Tooltip,ar as UploadButton,_5 as UploadReceiptButton,Sf as UserProfile,kt as VerifyButton,$t as VerifyTextField,ra as WavyUi,ci as YesButton,Ot as YesNoButtonGroup,Tu as YesOrNoForm,C as applyBasicStyle,cx as bankTransferPaymentOption,n0 as borderRadius,Qm as buildCSS,f0 as computedCssVariable,na as convertHexUnitTo256,e0 as cssTransition,ni as definePaymentOption,o0 as disabledBorderRadius,i0 as dragElement,j as ellipsis,t0 as flexCenter,xr as getFileIcon,gc as getPaperDim,nn as getScrollParent,oa as hexToRgba,dx as inAppPaymentOption,Mr as isOverflown,on as isSpanMultiLine,ta as isValidHex,l0 as nativeEllipsis,a0 as noSpaceStyle,vc as paperStyle,u0 as remAsPx,ia as remToPx,h as resolveBasicColor,Ve as restrictLineCount,s0 as rgbToRgba,c0 as screenHasMaxWidth,d0 as screenHasMinWidth,r0 as solidBorder,an as stripHtml,tn as tiledBackground,jw as useAsyncEffect,lD as useComputedStyle,zD as useEvent,E as useManagedRef,li as useModalControls,_o as usePageSliderController,Vn as usePopoverContext,Qw as usePostRenderEffect,M as useRerender,wD as useSessionStorage,VD as useSmartState};
|
|
24
|
+
translateX(calc(${y} * -5rem))`,filter:`blur(calc(${S} * .5rem))`},children:typeof g=="function"?jsx(g,{isActive:u===o}):g},u)}),!e.hideControls&&jsx(po,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:c})]})})}function po(e){let r=useContext(Co),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(d,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var wr=createContext(null);function Fe(e){let r=E(e.open??false),{triggerRerender:t}=M(),n=`--${v4()}`,o=useRef(null),i=useRef(null),l=ie__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let v=e.placement||"bottom-left",g=["top","right","bottom","left"].includes(v),u=g?{positionArea:v}:fc(e.anchorPoint||"top-left",uc(v));if(!e.visibleOnScroll){let S=nn(o.current);S&&S.addEventListener("scroll",R=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${R.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${y}`]:e.offset??".25rem",...u,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let v=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",g=>{let u=g.newState==="open";u?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(u),r.upsert(u),!u&&e.rerenderOnClose&&t();}),v==="click")i.current?.addEventListener("click",()=>{c(()=>o.current?.togglePopover());});else if(v==="hover"){let g,y=()=>{g&&(g=null),c(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?g=setTimeout(y,20):y();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{g&&clearTimeout(g);}),o.current?.addEventListener("mouseleave",y));}},[]);let s=(v,g)=>v==="match-anchor"?getComputedStyle(i.current)?.width:v??g,c=(v,g)=>{let u=200;typeof e.delay=="number"?u=e.delay:e.delay&&g in e.delay&&(u=e.delay[g]),setTimeout(v,u);};return jsxs(wr.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var uc=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},fc=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};a();function IC(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?h(e.backgroundColor):void 0,boxShadow:e.borderColor?`${h(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in V?V[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?h(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in V?V[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(vc,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function vc(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in L?L[e.fontSize]:e.fontSize,border:0,color:h(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}a();function wo(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:h(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function XC(e){return jsx(d,{id:e.id,style:hc({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var yc=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],hc=e=>{let{height:r,width:t}=yc(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:h("paper"),color:h("onPaper"),overflow:"hidden"}};a();function To(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function n_(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}a();a();var zo=ie.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:v,...g}=r;return i?o:jsxs(Tooltip.Root,{...g,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!l,container:v,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function Tr(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(zo,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var gt=createContext(null);function Dc(e){let r=E([]),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:h(t)}})}),jsx("p",{}),l]})),i=()=>{if(n.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===n.length)return "last"};return jsx(gt.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function Tc(e){let[r,t]=useState(),{register:n}=useContext(gt),{indicator:o,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let g=n();typeof g=="string"&&t(g);},[r]);let v=g=>r===g||r==="both";return jsxs(Fragment,{children:[jsx(Io,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(Ao,{hide:v("first")}),jsx(d,{style:{...C({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Ao,{hide:v("last")})]}),jsx(Io,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function Io(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Ao(e){let{lineSeparatorColor:r}=useContext(gt);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var P_={Root:Dc,Item:Tc};a();function E_(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:h(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:h(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var vt=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function q(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=_=>typeof e.indent=="string"?e.indent:e.indent?.[_],v="md",{size:g,...u}=e,y={label:C({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...u,width:"full",padding:{top:v,left:e.leadingContent?c("left")||s:v,right:e.trailingContent||e.showCharCounter?c("right")||s:v,bottom:v},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=_=>{o.current.value=_,e.onChange(_,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let _=b=>{if(e.format!=="currency")return;let k=b;if(k=k.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((x,P)=>P<2).join("."),k&&takeLast(k.split(""))[0]!=="."){let x=parseFloat(k);if(!isNaN(x)){let P=new Intl.NumberFormat;S(P.format(x));}}};o.current?.addEventListener?.("beforeinput",b=>{let k=b.data,x=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";x==="all"||Array.isArray(x)&&x.includes("all")||k===null||(!Array.isArray(x)&&!vt(k,x)||Array.isArray(x)&&x.some(P=>!vt(k,P)))&&b.preventDefault();}),o.current?.addEventListener?.("paste",b=>{_(b.target.value);}),o.current?.addEventListener?.("input",b=>{_(b.target.value);});},[o.current]);let R=_=>{e.onChange?.(_,void 0),e.onPasteClick?.(_);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:y.root,children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...y.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Lc,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:R,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(p,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(o.current?getComputedStyle(o.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:g,zIndex:1,variant:e.variant,onKeyDown:_=>{_.key==="Enter"?e.onEnterKeyPressed?.():_.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:y.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":h(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:h(e.slotProps.placeholder.color)}:void 0,onChange:_=>{let b=_.currentTarget.value;switch(e.allowHtmlInput||(b=an(b)),e.trimOnChange){case "start":b=b.trimStart();break;case "end":b=b.trimEnd();break;case true:b=b.trim();break}e.validateInput?.(b)!==false&&(e.onChange?.(b,_),n||t(b));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:y.helperText,children:e.helperText})]})}function Lc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:V.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Ie,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Wo,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function io(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:h(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(on(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function $o(e){return {FlyLeavingBox:$c}[e]}var Ct=createContext(null);function Uc(e){let r=E(e.attachments||[]),{triggerRerender:t}=M(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(Ct.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let l=r.read();o==="add"&&(l=[...l,i]),o==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),o==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(D.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(D.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(D.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Yc,{}):jsx(Gc,{})})]})})}function Gc(){let e=useContext(Ct),r=E(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?o.filter(({name:u})=>u.toLowerCase().includes(t.toLowerCase())):o,s=isEmpty(l)&&!!t.trim(),c=u=>{i(y=>y.filter(({uid:S})=>S!==u.uid)),e?.onAttachmentDeleted?.(u),e?.attachmentsEventListener?.("delete",u);},v=(u,y)=>{let S=sanitizeLocalFile(y[0]);i([...o,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},g=u=>{e?.onOpenAttachment?.(u),e?.attachmentsEventListener?.("open",u);};return jsxs(Fragment,{children:[jsx(St,{width:"full",value:t,onChange:n}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((u,y,S)=>jsx(jc,{scrollIntoView:r.read()===false&&y===S.length-1,value:u,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(u):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(u):e?.openDisabled,onDelete:c,onOpen:g},u.uid))}),!e.hideUploadButton&&jsx(ar,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:v})]})}function jc(e){let{typeAlias:r,path:t,name:n,sizeInBytes:o}=e.value,i=xr(r);return jsxs(J.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(J.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(me,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(J.Content,{gap:"sm",width:"full",children:[jsx(J.Item,{truncateStyle:"ellipsis",value:n}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(J.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(bt,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(ir,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Yc(){let e=useContext(Ct);return jsxs(br.Root,{children:[jsx(br.Indicator,{size:"7rem",disableFade:true,element:jsx(me,{spill:"hidden",size:"full",src:$o("FlyLeavingBox")})}),jsx(br.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(ar,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(n));}),e.rerender();}})]})}var _t=Uc;function Zc(e){let r=E(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=M(),n=o=>{r.upsert(o);};return jsx(Tr,{tooltip:"Attachments",placement:"right",children:jsx(eo,{circleChild:true,asChild:!e.attachments,badge:jsx(fo,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Qc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function Qc(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...l}=e;return r?t:jsx(_t,{...l,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var Pt=Zc;a();var rd=fe({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Ze=rd;a();function od(e){return jsx(B,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var ir=od;a();function ld(e){let{iconOnly:r,...t}=e;return jsx(B,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var sd=ld;a();function gd(e){let r=E(e.initialState==="expanded"),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var vd=gd;a();function yd(e){return jsx(B,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var at=yd;a();function Cd(e){return jsx(B,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var bt=Cd;a();function Sd(e){return jsx(B,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var Pd=Sd;a();function kd(e){let r=jsx(B,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(xt,{triggerElement:r,options:e.options}):r}var wd=kd;a();function Dd(e){return jsx(B,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var lt=Dd;a();function Rd(e){return jsx(B,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var Bt=Rd;a();function Fd(e){return jsx(B,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var st=Fd;a();function Id(e){return jsx(B,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var kt=Id;a();function Md(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:tn({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Ld=Md;a();function Wd(e){return jsxs(J.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(J.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(me,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(J.Content,{width:"full",gap:"xs",children:[jsx(J.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(J.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(J.TrailingAddOn,{children:jsx(ir,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Nd=Wd;a();function Kd(e){let[r,t]=useState(e.selectedDate||new Date),n=E(r),o=e.minDate==="today"?new Date:ei(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?Zd():ei(e.maxDate),l=u=>{t(u),e.onDateSelected?.(u);},s=u=>u.toDateString()===r.toDateString(),c=u=>u.toDateString()===new Date().toDateString(),v=u=>{let y=n.read();return y.getMonth()===u.getMonth()&&eu(u.getDate(),y.getMonth())},g=u=>n.upsert(u);return jsx(Ud,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:g,onYearChange:g,renderCustomHeader:u=>jsx(qd,{...u,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:u=>["calendar-date",s(u)?"selected":"unselected",c(u)?"today":"",v(u)?"":"out-of-bounds",Qd(u,i)?"excluded":""].join(" ")})}function qd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,v)=>{let g=e.date.getFullYear();return g===e.minDate.getFullYear()?v>=e.minDate.getMonth():g===e.maxDate.getFullYear()?v<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=c=>{e.changeMonth(r.findIndex(v=>v===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Qo,{label:n,isSelected:c=>n===c,options:t.map(c=>({value:c})),onOptionClick:o}),jsx(Qo,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Qo(e){return jsx(Ue,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var ei=e=>{if(e)return e instanceof Date?e:new Date(e)};var Zd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Qd=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},eu=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Et=memo(Kd);a();a();var ru=fe({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),ri=ru;function tu(e){let r=E(null),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=u=>{r.upsert(u),e.onDateSelected?.(u);},v=()=>{let u=r.read();u&&e.onDoneClick?.(u);},g=u=>{e.onOpenChange?.(u);};return jsxs(D.Root,{hideCloseButton:true,onOpenChange:g,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(D.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(D.Body,{children:jsx(Et,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ze,{size:s,fade:.5})}),jsx(D.ActionTrigger,{children:jsx(ri,{size:s,onClick:v})})]})]})}var nu=tu;a();function cu(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(D.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(D.Header,{children:"Payment Options"}),jsx(D.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:L.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===l&&jsx(o,{content:i.dropDownContent})]}),c]})})})]})}var ni=e=>e,px=e=>ni({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),Cx=()=>ni({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),xt=cu;a();var oi=createContext(null);function Rt(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},v=({fontSize:g,lineHeight:u,opacity:y})=>({fontSize:g,lineHeight:u,opacity:y});return jsx(oi.Provider,{value:{color:i},children:jsxs(D.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(D.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:h(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:v(c.title),children:n}),jsx("span",{style:v(c.description),children:o})]})]}),jsxs(D.Footer,{row:true,gap:"md",align:"center",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(pu,{...s}):void 0]})]})})}function pu(e){let{color:r}=useContext(oi);return jsx(B,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var ii=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Rt.tryAgainButton=ii("Try Again");Rt.retryButton=ii("Retry");var Fr=Rt;a();var Ft="onPaper[0.1]",zr=", ";function bu(e){let r=E(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=li(),n=E({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(zr)??"",attachments:e.attachments||[]}),o=(s,c)=>{n.upsert(v=>({...v,[s]:c}));},i=()=>strictArray(n.read().recipients.split(zr)),l=async()=>{let{subject:s,body:c,attachments:v}=n.read(),g=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:v});if(typeof g!="object")return;let{error:u,response:y}=g;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(g)),u)return t.show({error:u});y!=="success"?t.show({response:y}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(Fr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:Fr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&n.read().recipients?jsx(Pu,{recipients:i()}):jsx(Su,{readOnly:e.readOnly,recipients:i(),onChange:s=>o("recipients",s)}),jsx(xu,{subject:n.read().subject,readOnly:e.readOnly,onChange:s=>o("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Bu,{defaultValue:n.read().body,readOnly:e.readOnly,onChange:s=>o("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(Pt,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(Bt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function Su(e){let[r,t]=useState(false),n=o=>jsx(p,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(ai,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(zr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Pu(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Ft,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ge,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(zt,{textToCopy:e.recipients.join(zr)})]})}function xu(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Ft,"bottom"],children:[jsx(ai,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(zt,{textToCopy:e.subject})]})}function Bu(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${h("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:L.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(zt,{textToCopy:e.defaultValue})})]})}function ai(e){return jsx(q,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Ft,"bottom"],onChange:e.onChange})}function zt(e){return jsx(Ie,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var ku=bu;a();a();function wu(e){return jsxs(d,{row:true,gap:"md",children:[jsx(di,{onClick:e.onNoClick}),jsx(ci,{onClick:e.onYesClick})]})}var Ot=wu;function Eu(e){return jsxs(d,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Ot,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Ru=Eu;a();function zu(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Lt,{value:r})})}):jsx(Ou,{})})}function Ou(){let e=r=>jsx(p,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var Iu=["string","number","boolean"];function At(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function ui(e){return jsxs(Fragment,{children:[jsx(p,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Lt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(ui,{value:r}):jsx(At,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function Lt(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,v=e.value[c],g=()=>Iu.includes(typeof v)?jsx(At,{value:v}):Array.isArray(v)?jsx(ui,{value:v}):typeof v=="object"?jsx(Lt,{indent:true,value:v}):jsx(At,{value:`${v}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(g,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Vt=zu;a();a();a();function Hu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...$n].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],v=[],g=[],u=y=>strictArray(y).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let y of c){if(v.length+g.length>=t)break;r.includes(y.type)?v.push(y):g.push(y);}isEmpty(v)||e.onAccept?.(v,u(v)),isEmpty(g)||e.onReject?.(g,u(g));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(v=>v.kind==="file").map(v=>v.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let v=new DataTransfer;c.forEach(g=>v.items.add(g)),o(c);}},l=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...C(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var mi=Hu;function vi(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(mi,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(B,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var ar=vi({fileClass:"file"}),T5=vi({fileClass:"receipt",accepts:["img"]});function Gu(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let n=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(p,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(n,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ge,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(ar,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var ju=Gu;a();function Ku(e){let r=e.authProviders||[...Nn.values()];return jsxs(d,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(d,{width:"full",color:"inherit",children:[jsx(p,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(qu,{provider:t,onClick:e.onAuthProviderClick}))})]})}function qu(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(B,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var Zu=Ku;a();a();var pi={timestamp:Date.now(),status:"info",response:"Hello World!"};function nf(e){useEffect(()=>{e.initialMessage&&(pi.response=e.initialMessage);},[]);let r=[pi,...e.logs];return jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(of,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function of(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:h(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(wo,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:h(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Wt=nf;function uf(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(mo,{item:o,info:n})})}),jsx(Wt,{initialMessage:"Awaiting registration process...",logs:r})]})}var ff=uf;a();function vf(e){return jsx(q,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var St=vf;a();a();function hf(e){return e.error?jsx(Tr,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Nt=hf;function _f(e){let r=E(e?.verifyError),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(q,{...e,leadingAdornment:jsx(Nt,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(To,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(kt,{onClick:o})})}var $t=_f;a();function Si(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:l=o.fontSize||e.fontSize||".85rem",fontWeight:s=o.fontWeight,lineHeight:c=o.lineHeight=l}=e.slotProps?.[n]||{};return jsx(p,{ellipsis:true,fade:i,fontSize:l,fontWeight:s,text:n==="name"?r:e.email,style:{lineHeight:c in L?L[c]:c}})};return jsxs(d,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(ge,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(d,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}Si.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var xf=Si;a();function Pi(e){return r=>{let[t,n]=useState(false);return jsx(B,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var Wo=Pi({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),Ie=Pi({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});a();function Bi(e){return r=>jsx(B,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var gk=Bi(BsPlus),vk=Bi(BsDash);a();function ki(e){return r=>jsx(B,{...e.defaults,text:e.label,onClick:r.onClick})}var ci=ki({label:"Yes"}),di=ki({label:"No",defaults:{variant:"outline"}});a();var Bk=fe({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function Vf(e){let r=E(e.defaulValue?.token||""),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return o(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx($t,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx(Ie,{textToCopy:n.payload}),jsx(Vt,{fullSize:true,json:n?n.payload:void 0})]})]})}var Hf=Vf;a();a();function xr(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}a();a();a();a();var Di=(w=>(w.white="#FFF",w.black="#000",w.gray="#808080",w.pdf="#F40F02",w.word="#41A5EE",w.excel="#21A366",w.img="#8d481f",w.txt="#8c61a9",w.deepSkyBlue="#00BFFF",w.lightSkyBlue="#87CEFA",w.sendBlue="#0a57d0",w.onSendBlue="#c3dfff",w.book_it="#009688",w.stickyNote="#EFAD03",w.matteBlack="#28282B",w.navyBlue="#000080",w.teal="#008080",w.paper="#ffffff",w.onPaper="#28282B",w.paperVariant="#E6E6E6",w.success="#4BB543",w.hyperlink="#2979ff",w.gold="#d4af37",w.carlsbergGreen="#17B169",w.billsRed="#C60C30",w.info="#1565c0",w.error="#C60C30",w.warning="#f9a825",w.jsonKey="#D56C75",w.string="#59A779",w.number="#D19A5A",w.boolean="#56B6C2",w.jsonBracket="#FFCA1D",w.arrayBracket="#DA68A7",w.delete="#C60C30",w.pdf_table_header="#28282B",w))(Di||{}),oe=Di;a();var Qf=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),G=Qf;a();a();function nD(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function sD(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function yD(e,r,t){let[n,o]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:n,timestamp:new Date().toLocaleTimeString()});},[n]),useEffect(()=>{let s=document.createElement(e),v=(Array.isArray(r.children)?r.children:[r.children]).map(y=>{let S=document.createElement(e);return S.innerHTML=om.renderToStaticMarkup(y),S});Object.assign(s.style,{...i,visibility:"hidden"}),v.forEach(y=>s.appendChild(y)),l.appendChild(s);let g=getComputedStyle(s),u=Object.keys(i).filter(y=>y in g&&typeof g[y]=="string").map(y=>{let R=g[y];return [y,y==="opacity"?R.toString():R===0?"0px":R]});o(Object.fromEntries(u)),l.removeChild(s);},[r]),{style:n}}a();function li(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}a();function E(e,r){let t=useRef({recent:e,stale:void 0});return {debug:()=>{let n=t.current.stale,o=t.current.recent,i=()=>{if(Array.isArray(n)){let s=n;return {from:n,to:o,difference:o.filter((v,g)=>g<s.length?s[g]!==v:false)}}switch(typeof n){case "string":return {from:n,to:o,difference:o.replace(n,"")};case "object":return {from:n,to:o,difference:Object.fromEntries(Object.keys(n).map(s=>{let c=s;if(o[c]!==n[c])return [c,o[c]]}).filter(s=>!!s))};default:throw new Error("Not yet implemented bro!")}},l=250;return console.log(buildArray(l,s=>s===0||s===l?"/":"*").join(""),i()),i()},upsert:n=>{let o=typeof n=="function"?n(t.current.recent):n,i=t.current.recent;t.current={recent:o,stale:i},r?.onChange?.(o,i);},read:()=>t.current.recent,delete:()=>{t.current=void 0;}}}a();function _o(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Vn(){return useContext(wr)}a();function M(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function AD(e,r){let[t,n]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;n(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}a();function ND(e){let r=useContext(gr),{triggerRerender:t}=M(),n=c=>{throw new Error("Invalid key used in useEvent",{cause:`${c} with type "${typeof c}" provided, but a key with type "string" was expected.`})};return {emit:(c,...v)=>{if(typeof c!="string")return n(c);r.emit(c,v?.[0]),e?.rerenderOnEmit&&t();},on:(c,v,g)=>{if(typeof c!="string")return n(c);let u=r.on(c,v);return g?.rerender&&t(),u},listeners:c=>typeof c!="string"?n(c):r.listeners(c),dettach:c=>typeof c!="string"?n(c):r.dettach(c)}}a();function jD(e){let{triggerRerender:r}=M(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}a();export{Pt as AttachmentsButton,_t as AttachmentsDialog,ge as Avatar,Gv as AvatarGroup,eo as Badge,B as BasicButton,d as BasicDiv,me as BasicImg,Jr as BasicOl,jr as BasicOption,Ue as BasicSelect,p as BasicSpan,ll as BasicTable,Et as Calendar,nu as CalendarDialog,Ze as CancelButton,J as Card,An as Checkbox,oe as ColorResources,np as ConfirmationDialog,Ie as CopyButton,G as CssColors,ue as CssShapes,V as CssSpacing,ir as DeleteButton,D as Dialog,io as Disclaimer,Bk as DownloadButton,py as Drawer,sd as EditButton,Xy as Editable,ku as EmailComposer,br as EmptyState,Nt as ErrorTooltip,Qt as EventContainer,vd as ExpandableButton,fp as FancyFormDialog,Iy as FileDropzone,zp as FileViewer,L as FontSize,fo as Indicator,mo as ItemInfo,Vt as JsonViewer,Hf as JwtVerifier,kh as MediaCard,ec as Menu,Ld as MoneyDisplayCard,vk as NegativeButton,at as NextButton,di as NoButton,bt as OpenButton,Pd as OptionsButton,ly as PageIndicator,yC as PageSlider,XC as Paper,Wo as PasteButton,wd as PaymentOptionsButton,xt as PaymentOptionsDialog,ju as PictureUploader,Fe as Popover,gk as PositiveButton,lt as PreviousButton,Ih as ProfileCard,Nd as ReceiptCard,ct as SaveButton,St as SearchTextField,IC as SegmentedControls,Bt as SendButton,E_ as Separator,Zu as SignInWidget,xp as SimpleFormDialog,Qv as Spinner,To as Status,n_ as Stepper,st as SubmitButton,wo as Tag,ff as TaskLogger,Fr as TaskResultDialog,Wt as Terminal,q as TextField,P_ as Timeline,Tr as Tooltip,ar as UploadButton,T5 as UploadReceiptButton,xf as UserProfile,kt as VerifyButton,$t as VerifyTextField,ra as WavyUi,ci as YesButton,Ot as YesNoButtonGroup,Ru as YesOrNoForm,C as applyBasicStyle,px as bankTransferPaymentOption,i0 as borderRadius,r0 as buildCSS,g0 as computedCssVariable,na as convertHexUnitTo256,t0 as cssTransition,ni as definePaymentOption,a0 as disabledBorderRadius,l0 as dragElement,j as ellipsis,o0 as flexCenter,xr as getFileIcon,yc as getPaperDim,nn as getScrollParent,oa as hexToRgba,Cx as inAppPaymentOption,Mr as isOverflown,on as isSpanMultiLine,ta as isValidHex,c0 as nativeEllipsis,s0 as noSpaceStyle,hc as paperStyle,m0 as remAsPx,ia as remToPx,h as resolveBasicColor,Ve as restrictLineCount,d0 as rgbToRgba,u0 as screenHasMaxWidth,f0 as screenHasMinWidth,n0 as solidBorder,an as stripHtml,tn as tiledBackground,nD as useAsyncEffect,yD as useComputedStyle,ND as useEvent,E as useManagedRef,li as useModalControls,_o as usePageSliderController,Vn as usePopoverContext,sD as usePostRenderEffect,M as useRerender,AD as useSessionStorage,jD as useSmartState};
|