@wavy/react-ui 0.0.60 → 0.0.62
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 +2 -0
- package/dist/main.js +8 -8
- package/package.json +3 -3
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,Switch,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 Be from'react';import Be__default,{createContext,useRef,useEffect,useState,useContext,Activity,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 {isEmpty,strictArray,camelCaseToLetter,lastIndex,run,coerceIn,buildArray,format,hasIndex,upperFirst,parseFileSize,inferFilename,range,castReturn,sort,readClipboardText,copyToClipboard,takeLast,castArray,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 {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 Nh from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import {LiaAngleLeftSolid,LiaAngleDownSolid}from'react-icons/lia';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 Wb from'react-dom/server';var
|
|
1
|
+
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,Switch,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 Be from'react';import Be__default,{createContext,useRef,useEffect,useState,useContext,Activity,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 {isEmpty,strictArray,camelCaseToLetter,lastIndex,run,coerceIn,buildArray,format,hasIndex,upperFirst,parseFileSize,inferFilename,range,castReturn,sort,readClipboardText,copyToClipboard,takeLast,castArray,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 {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 Nh from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import {LiaAngleLeftSolid,LiaAngleDownSolid}from'react-icons/lia';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 Wb from'react-dom/server';var Sd=Object.create;var gn=Object.defineProperty;var Cd=Object.getOwnPropertyDescriptor;var Pd=Object.getOwnPropertyNames;var kd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var wd=(e,r)=>()=>(e&&(r=e(e=0)),r);var zd=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dd=(e,r)=>{for(var t in r)gn(e,t,{get:r[t],enumerable:true});},Id=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Pd(r))!$d.call(e,o)&&o!==t&&gn(e,o,{get:()=>r[o],enumerable:!(n=Cd(r,o))||n.enumerable});return e};var Bd=(e,r,t)=>(t=e!=null?Sd(kd(e)):{},Id(!e||!e.__esModule?gn(t,"default",{value:e,enumerable:true}):t,e));var c=wd(()=>{});var Fi=zd((sS,Oe)=>{c();function bn(){return Oe.exports=bn=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},Oe.exports.__esModule=true,Oe.exports.default=Oe.exports,bn.apply(null,arguments)}Oe.exports=bn,Oe.exports.__esModule=true,Oe.exports.default=Oe.exports;});c();c();c();c();c();function ii(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function ai(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Ad(){let{colorMode:e}=ai();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}Be.forwardRef(function(r,t){let{toggleColorMode:n}=ai();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(Ad,{})})})});Be.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});Be.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function li(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(ii,{...e})})}c();c();var _t=createContext(null);function ui(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(_t.Provider,{value:{emit:(n,o)=>{let i=t.current.get(n)||[];for(let{method:a}of i)a?.(o);},on:(n,o)=>{let i=v4(),a=t.current.get(n)||[];if(a.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,[...a,{uid:i,method:o}]),e.onListenerAccepted?.(n),()=>{let s=t.current.get(n)||[];s.length===0?t.current.delete(n):t.current.set(n,s.filter(({uid:u})=>u!==i));}},dettach:n=>t.current.has(n)?(t.current.delete(n),true):false,listeners:n=>t.current.get(n)?.length},children:e.children})}function Wd(e){return jsx(li,{children:jsx(ui,{children:e.children})})}var Hd=Wd;c();c();c();var je=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]]))};c();c();c();var mi=(s=>(s.xs=".125rem",s.sm=".25rem",s.md=".5rem",s.lg="1rem",s.xl="1.5rem",s.xxl="2rem",s.circle="100%",s.popover="1rem",s))(mi||{}),ge=mi;function G0(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function K0(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 Y0(e){return `${e.thickness||"1px"} solid ${e.color}`}function fi(e){let r=x(e.backgroundColor),t=x(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,9 +14,9 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
|
|
|
14
14
|
transparent ${o}
|
|
15
15
|
)
|
|
16
16
|
${r}
|
|
17
|
-
`}function q0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function Q0(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 ex(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ge.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function rx(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(s){s.preventDefault(),n=s.clientX,o=s.clientY,document.onmouseup=l,document.onmousemove=a;}function a(s){s.preventDefault(),r=n-s.clientX,t=o-s.clientY,n=s.clientX,o=s.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function l(){document.onmouseup=null,document.onmousemove=null;}}function tx(e){return {...e,margin:0,padding:0}}function ve(e,r={apply:true}){return r.apply?Br(1,e):e}function nx(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function fi(e){let r=e;for(;r&&!gn(r);)r=r.parentElement;return r}function pi(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 x(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),a=()=>fe[n],l=()=>i?Gd(Ie[o],parseFloat(i)):Ie[n];if(t==="css"){if(n in fe)return a();if(o in Ie)return l()}else if(t==="res"){if(o in Ie)return l();if(n in fe)return a()}return n}var gi=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",Hd=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Xd=e=>parseInt(e.repeat(2/e.length),16);function Gd(e,r=1){let t=(f,p)=>f.match(new RegExp(`.{${p}}`,"g")),n=f=>typeof f<"u"?f/255:typeof r!="number"||r<0||r>1?1:r;if(!Hd(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[a,l,s,u]=i.map(Xd);return `rgba(${a}, ${l}, ${s}, ${n(u)})`}function ox(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 ix(e){return window.matchMedia(`(max-width:${e})`).matches}function ax(e){return window.matchMedia(`(min-width:${e})`).matches}function Br(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Kd(e){return e*16}function cx(e){return `${Kd(e)}px`}function gn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function lx(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}c();var Yd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),H=Yd;c();var qd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),j=qd;var xt=["top","right","bottom","left"],vi=(e,r)=>`translate(${e}, ${r})`,hi=e=>`translateX(${e})`,yi=e=>`translateY(${e})`,Qd=(e,r)=>{let t=e.fontSize in j?j[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let l=e?.spill||{};if(l)return {overflowX:typeof l=="string"?l:l?.x||"visible",overflowY:typeof l=="string"?l:l?.y||"visible"}})();function i(l){return e.style?.[l]?e.style[l]:(e.size||e.size===0)&&(l==="height"||l==="width")?e.size==="full"?"100%":e.size:e[l]==="full"?"100%":e[l]}let a={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(l=>l||"inherit").join(" "),transform:e.centerSelf===true?vi("-50%","-50%"):e.centerSelf==="x"?hi("-50%"):e.centerSelf==="y"?yi("-50%"):e.translate?.x&&e.translate?.y?vi(e.translate.x,e.translate.y):e.translate?.x?hi(e.translate.x):e.translate?.y?yi(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:nm(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:em(e.borderColor),borderWidth:rm(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:tm(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:om(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:x(e.backgroundColor),color:x(e.color),gap:im(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(a).forEach(l=>{let s=l,u=a[s];typeof u=="string"&&(u=u.trim()),!u&&u!==0&&delete a[s];}),(r||e.debug)&&console.log({props:e,style:a}),a};function em(e){if(!e)return;let r="transparent";return typeof e=="string"?x(e):xt.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?x(n):r}return typeof e=="object"&&t in e?x(e[t]):r}).join(" ")}function rm(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:xt.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 tm(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:xt.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 nm(e){let t=n=>n?n in H?H[n]:n:"0px";return e?typeof e=="string"?t(e):xt.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 om(e){let t=o=>o?o in ge?ge[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 im(e){if(!(!e||typeof e!="string"))return e in H?H[e]:e}var k=Qd;var mm=["inherit","sm","md","lg","xl","2xl","xs"],fm=["sm","md","lg","xl","2xl","xs","2xs"];function _i(e){let[r,t]=useState(false),n=e.disabled||r,o=async p=>{if(!n){if(!e.async)return e.onClick?.(p);t(true),await e.onClick?.(p),setTimeout(()=>t(false),e.pendingDelay||1);}},i=p=>{if(p){if(typeof p==typeof FaFolder){let h=y=>typeof y=="string"&&[...mm].includes(y);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:p})}return p}},a=i(e.leadingEl),l=i(e.trailingEl),s=p=>typeof p=="string"&&[...fm].includes(p),{size:u,...f}=e;return jsxs(Button,{...je(e),disabled:n,size:s(u)?u:void 0,style:k({...f,size:s(u)?void 0:u,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:[a,e.text,e.children,l,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?x(e.spinnerColor):"blue.500"})})]})}var Ne=e=>r=>jsx(_i,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,a=i in n,l=[void 0,null].includes(n[i]);(!a||l)&&(n[i]=e.optional[i]);}return n})()}),T=_i;c();c();c();c();c();function Ct(){return Ct=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},Ct.apply(null,arguments)}c();c();function bi(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)}c();var xi={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};c();function Pt(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var vm=/[A-Z]|^ms/g,hm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ki=function(r){return r.charCodeAt(1)===45},Si=function(r){return r!=null&&typeof r!="boolean"},vn=Pt(function(e){return ki(e)?e:e.replace(vm,"-$&").toLowerCase()}),Ci=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(hm,function(n,o,i){return Se={name:o,styles:i,next:Se},o})}return xi[r]!==1&&!ki(r)&&typeof t=="number"&&t!==0?t+"px":t};function Or(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 Se={name:o.name,styles:o.styles,next:Se},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Se={name:a.name,styles:a.styles,next:Se},a=a.next;var l=i.styles+";";return l}return _m(e,r,t)}case "function":{if(e!==void 0){var s=Se,u=t(e);return Se=s,Or(e,r,u)}break}}var f=t;if(r==null)return f;var p=r[f];return p!==void 0?p:f}function _m(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Or(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var l=a;r!=null&&r[l]!==void 0?n+=i+"{"+r[l]+"}":Si(l)&&(n+=vn(i)+":"+Ci(i,l)+";");}else {if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var s=0;s<a.length;s++)Si(a[s])&&(n+=vn(i)+":"+Ci(i,a[s])+";");else {var u=Or(e,r,a);switch(i){case "animation":case "animationName":{n+=vn(i)+":"+u+";";break}default:n+=i+"{"+u+"}";}}}}return n}var Pi=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function $i(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="";Se=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=Or(t,r,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=Or(t,r,e[l]),n){var s=i;o+=s[l];}Pi.lastIndex=0;for(var u="",f;(f=Pi.exec(o))!==null;)u+="-"+f[1];var p=bi(o)+u;return {name:p,styles:o,next:Se}}c();var bm=typeof document<"u",wi=function(r){return r()},xm=Be.useInsertionEffect?Be.useInsertionEffect:false,zi=bm&&xm||wi;c();var hn=typeof document<"u";function Di(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var yn=function(r,t,n){var o=r.key+"-"+t.name;(n===false||hn===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},Ii=function(r,t,n){yn(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",a=t;do{var l=r.insert(t===a?"."+o:"",a,r.sheet,true);!hn&&l!==void 0&&(i+=l),a=a.next;}while(a!==void 0);if(!hn&&i.length!==0)return i}};c();var Sm=/^((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)-.*))$/,Bi=Pt(function(e){return Sm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var km=typeof document<"u",wm=Bi,zm=function(r){return r!=="theme"},Oi=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?wm:zm},Ti=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},Dm=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;yn(t,n,o);var i=zi(function(){return Ii(t,n,o)});if(!km&&i!==void 0){for(var a,l=n.name,s=n.next;s!==void 0;)l+=" "+s.name,s=s.next;return Be.createElement("style",(a={},a["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Ei=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var l=Ti(r,t,n),s=l||Oi(o),u=!s("as");return function(){var f=arguments,p=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else {var h=f[0];p.push(h[0]);for(var y=f.length,z=1;z<y;z++)p.push(f[z],h[z]);}var b=withEmotionCache(function(S,$,w){var P=u&&S.as||o,F="",ee=[],Fe=S;if(S.theme==null){Fe={};for(var Dr in S)Fe[Dr]=S[Dr];Fe.theme=Be.useContext(ThemeContext);}typeof S.className=="string"?F=Di($.registered,ee,S.className):S.className!=null&&(F=S.className+" ");var sr=$i(p.concat(ee),$.registered,Fe);F+=$.key+"-"+sr.name,a!==void 0&&(F+=" "+a);var Ir=u&&l===void 0?Oi(P):s,ur={};for(var Ye in S)u&&Ye==="as"||Ir(Ye)&&(ur[Ye]=S[Ye]);return ur.className=F,w&&(ur.ref=w),Be.createElement(Be.Fragment,null,Be.createElement(Dm,{cache:$,serialized:sr,isStringTag:typeof P=="string"}),Be.createElement(P,ur))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=p,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return "."+a}}),b.withComponent=function(S,$){var w=e(S,Ct({},t,$,{shouldForwardProp:Ti(b,$,true)}));return w.apply(void 0,p)},b}};Id(Ri());var Im=["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"],dr=Ei.bind(null);Im.forEach(function(e){dr[e]=dr(e);});var bn=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?x(n):n)}static span=r=>dr.span({...this.getStyle(r)});static div=r=>dr.div({...this.getStyle(r)});static img=r=>dr.img({...this.getStyle(r)})},mr=bn;function Rm(e){let r=useRef(null),[t,n]=useState(false),o=A({defaultValue:{top:0,left:0}});e.rememberScrollPos&&useEffect(()=>{let f=o.read();r.current&&[f.top,f.left].some(p=>!!p)&&(r.current.scrollTop=f?.top??0,r.current.scrollLeft=f?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&gn(r.current)&&!t&&n(true);},[]);let i="10%",a=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,l=e.decreaseYFaderPadding?"2vh":"5rem",s=k({...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?l:void 0,bottom:e.enableYFaders?l:void 0}}),u=mr.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(u,{...je(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:f=>{let p=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([p,h]))||o.upsert({top:p??0,left:h??0}),e.onScroll?.(f);},style:{...s,display:e.grid?"grid":s.display||"flex",flexWrap:s.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:s?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:s?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&a,maskImage:e.enableYFaders&&a},children:e.children})}var g=Rm;c();function jm(e){let r=!!e.tint,t=mr.img(e.sx);return jsx(t,{...je(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...k(e),filter:r?`drop-shadow(0px 1000px 0 ${x(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var Ae=jm;c();function Um(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(g,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx(xn,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(g,{width:"full",children:[jsx(xn,{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(g,{width:"full",children:n.nestedItems.map((i,a)=>jsx(xn,{index:a,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function xn(e){let r=Ie.white,t=fe.onSurface,n=e.nested?t:fe.tertiaryContainer,o=e.active?n:Ie.carlsbergGreen,i=e.active&&!e.nested?n:fe["onSurface[0.25]"],a=e.nested?fe["onSurface[0.4]"]:fe["onSurface[0.5]"],l=fe["onSurface[0.2]"],s=()=>e.onClick?.(e.item),u=IoMdCheckmark;return jsxs(g,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:s,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:a,borderColor:e.completed?o:e.active?n:l,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(g,{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(u,{fontSize:"1rem"}):jsx(C,{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(u,{size:"1.25rem",opacity:.75})]})}var Sn=Um;c();function Zm(e){let r=i=>e.ellipsis?ve(i):e.lineLimit?Br(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=k({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=mr.span(e.sx);return jsx(o,{...je(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 C=Zm;c();var $t="1px",Zi=6,pr=createContext(null);function Wm(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||[]),a=()=>e.columns.map(w=>{let P=typeof w=="object"?w:{};return {...P,name:fr(w),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),l=w=>(e.selectable?`auto ${$t}`:"")+a().map(F=>{let ee=F.weight||r;return ee==="auto"?w.find(Fe=>Fe.name===F.name)?.weight||"auto":ee}).join(` ${$t} `),[s,u]=useState(l(a())),f=o.length===e.entries.length&&e.entries.length>0,p=useRef(null),h=useRef(false),y=(Array.isArray(e.children)?e.children:[e.children]).filter((w,P)=>P<2),z=()=>{let w=[];f||(w=e.entries.map((P,F)=>F)),e.onSelectedRowsChange?.(w),n||i(w);},b=w=>{let P=[...o];P.includes(w)?P=P.filter(F=>F!==w):P.push(w),e.onSelectedRowsChange?.(P),n||i(P);},S=w=>{p.current?(w.forEach((P,F)=>{(p.current.get(F)||0)<P&&p.current.set(F,P);}),$()):(p.current=w,y.length===1&&$());},$=()=>{if(h.current){h.current=false;return}let w=a().map(P=>{let F=p.current.get(P.name);return F?{...P,weight:`${F}px`}:P});h.current=true,p.current=null,u(l(w));};return jsx(pr.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:f,onSelectRowClick:b,onSelectAllRowsClick:z,columns:a(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:S},children:jsx(g,{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:y})})}function Hm(e){let r=useContext(pr),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(g,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:$t,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(Mi,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,a)=>{let l=fr(o);return jsxs(Be__default.Fragment,{children:[jsx(C,{ref:s=>{s&&(n.current.set(l,parseFloat(getComputedStyle(s).width)+Zi),i===lastIndex(a)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(l):e.formatColumnName?.(l)??camelCaseToLetter(l),style:{flexGrow:1,textAlign:Tr("textAlign",o)}}),i!==a.length-1&&jsx(Pn,{color:e.separatorColor})]},l+i)})]})}function Xm(e){let r=useContext(pr),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(g,{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(Gm,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,a)=>{let l=t.current.get(i);(!l||a>l)&&t.current.set(i,a);},onCellRendered:i=>{let a=o===lastIndex(r.entries),l=i===lastIndex(r.columns);a&&l&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function Gm(e){let r=useContext(pr),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:a}=k({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(g,{spill:"hidden",style:{gap:o,padding:i,backgroundColor:a,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(Mi,{selected:t,onClick:n}),r.columns.map((l,s,u)=>{let f=fr(l),p=e.rowData[f],h=typeof l=="object"?l?.placeholder:void 0,y=()=>e.onCellRendered?.(s),z=s+fr(l),b=Tr("textAlign",l),S={textAlign:b,justifyContent:b,color:Tr("color",l),opacity:Tr("opacity",l,1),backgroundColor:Tr("backgroundColor",l),...e.styleCell?.({cellIndex:e.index*r.columns.length+s,columnName:f,columnIndex:s,rowIndex:e.index,data:typeof p=="string"?p:null,siblingData:{previous:s===0?null:run(e.rowData[fr(u[s-1])],$=>typeof $=="string"?$:null),next:s===u.length-1?null:run(e.rowData[fr(u[s+1])],$=>typeof $=="string"?$:null)}})||{}};return typeof l=="object"&&l.weight==="auto"?jsxs(Fragment,{children:[jsx(Km,{data:p,style:S,onRender:y,placeholder:h,onWidthComputed:$=>e.onColWidthComputed(f,$)},z),s!==u.length-1&&jsx(Pn,{})]}):jsxs(Fragment,{children:[jsx(Vi,{data:p,style:S,placeholder:h,onRender:y},z),s!==u.length-1&&jsx(Pn,{})]})})]})}function Km(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+Zi):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Vi,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Vi(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(C,{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 Pn(e){let r=useContext(pr),t=e.color||r.separatorColor;return jsx(g,{width:$t,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function Mi(e){let r=useContext(pr),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(g,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(Ji,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var fr=e=>typeof e=="string"?e:e.name,Tr=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Ym={Root:Wm,Header:Hm,Body:Xm},qm=Ym;c();c();function ef(e){return jsxs(g,{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",fontWeight:e.fontWeight,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:ve({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var $n=ef;var Hi=createContext(null);function cf(e){return jsx(Hi.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(gr,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(lf,{})})})}function lf(){let e=useContext(Hi),r=Xi(),[t,n]=useState(e.isSelected?e.options.findIndex((i,a)=>e.isSelected(i,a,e.options)):void 0),{triggerRerender:o}=G();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(g,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,a)=>{let l=a===t,s=()=>{i.onClick?.(),e.onOptionClick?.(i,a,e.options),n(a),r.close();};return (!i||!i?.value)&&console.error(`Index ${a} is not defined in ${e.options.join()}`),jsx($n,{scrollIntoView:l,fontSize:e.fontSize,fontWeight:e.fontWeight,formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:l,onClick:s},a)})})}var Nr=cf;c();function HC(e){let r=A({defaultValue:e.defaultChecked,reactive:true}),t=e.checked??r.read(),n=i=>{if(i)return {...i||{},backgroundColor:x(i.backgroundColor),color:x(i.color),borderColor:x(i.borderColor),fontSize:i.fontSize in j?j[i.fontSize]:i.fontSize}},o=({checked:i})=>{e.disabled||(typeof e.checked!="boolean"&&r.upsert(i),e.onChange?.(i));};return jsxs(Switch.Root,{disabled:e.disabled,checked:t,size:e.size,variant:e.variant,onCheckedChange:o,children:[jsx(Switch.HiddenInput,{}),jsxs(Switch.Control,{style:n(e.trackStyle?.(t)),children:[jsx(Switch.Thumb,{style:n(e.thumbStyle?.(t)),children:e.thumbIndicator&&jsx(Switch.ThumbIndicator,{fallback:e.thumbIndicator?.off,children:e.thumbIndicator?.on})}),e.trackIndicator&&jsx(Switch.Indicator,{fallback:e.trackIndicator?.off,children:e.trackIndicator?.on})]}),jsx(Activity,{mode:e.label?"visible":"hidden",children:jsx(Switch.Label,{children:typeof e.label=="function"?e.label(t):e.label,style:n(e.labelStyle?.(t))})})]})}c();function rP(e){let[r,t]=useState(true);return useEffect(()=>{setTimeout(async()=>{e.isDataLoaded&&await new Promise(n=>{for(;!e.isDataLoaded(););n();}),t(false);},e.delay||300);},[]),jsxs(Fragment,{children:[jsx(Activity,{mode:r?"visible":"hidden",children:e.LoadingScreen?jsx(e.LoadingScreen,{}):jsx(g,{size:"full",centerContent:true,children:jsx(Spinner,{})})}),jsx(Activity,{mode:r?"hidden":"visible",children:jsx(e.children,{})})]})}c();function lP(e){let r=e.style?.borderRadius||e.corners||"md";return jsx(g,{...e,spill:e.spill||"hidden",borderColor:e.borderColor||"onSurface[0.1]",width:e.width||"full",height:e.height||".7rem",corners:r,style:{...e.style||{},boxShadow:e.style?.boxShadow||"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:jsx(g,{corners:r,width:`${coerceIn([e.value],0,1)[0]*100}%`,height:"full",backgroundColor:e.accentColor||"seed",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"}})})}c();function pP(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}c();var _f=["sm","md","lg","xl","xs"];function bP(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=a=>a&&typeof a=="string"&&[..._f].includes(a);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:x(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}c();function zP(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,a=e.totalPages-1,l=async f=>{if(f===t)return;let p=f===t+1,h=Math.abs(f-t)>1;r.current=h?null:p,h||(p?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(f),n(f),await e.afterPageChange?.(f);},s=async()=>l(t-1),u=async()=>l(t+1);return jsxs(g,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(qi,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:s}),jsx(g,{row:true,justify:a>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,f=>{let p=t===f;return jsx(g,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${f+1}`,corners:"circle",fade:p?1:.5,borderColor:p?void 0:"onSurface[0.1]",backgroundColor:p?"primary":void 0,color:p?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===a?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>l(f)},f)})}),jsx(qi,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:u})]})}function qi(e){return jsx(T,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}c();var Qi=createContext(null);function Bf(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(Qi.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(Tf,{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:k({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Of(){let e=useContext(Qi);return jsx(g,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Tf(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var AP={Root:Bf,Header:e=>jsx(Drawer.Header,{style:k({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:k({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:k({...e,width:e.width??"full"}),children:e.children}),Sep:Of,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};c();c();c();c();c();function v(e,r,t){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:false}),l._zod.traits.has(e))return;l._zod.traits.add(e),r(l,s);let u=a.prototype,f=Object.keys(u);for(let p=0;p<f.length;p++){let h=f[p];h in l||(l[h]=u[h].bind(l));}}let o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let u=t?.Parent?new i:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>t?.Parent&&l instanceof t.Parent?true:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Pe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},yr=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError";}},wt={};function ke(e){return wt}c();c();var _={};zd(_,{BIGINT_FORMAT_RANGES:()=>na,Class:()=>Dn,NUMBER_FORMAT_RANGES:()=>Rn,aborted:()=>Me,allowsEval:()=>On,assert:()=>Nf,assertEqual:()=>Ef,assertIs:()=>Ff,assertNever:()=>jf,assertNotEqual:()=>Rf,assignProp:()=>Ue,base64ToUint8Array:()=>ia,base64urlToUint8Array:()=>rp,cached:()=>Zr,captureStackTrace:()=>Dt,cleanEnum:()=>ep,cleanRegex:()=>Mr,clone:()=>_e,cloneDef:()=>Uf,createTransparentProxy:()=>Wf,defineLazy:()=>U,esc:()=>zt,escapeRegex:()=>Ve,extend:()=>Gf,finalizeIssue:()=>be,floatSafeRemainder:()=>In,getElementAtPath:()=>Lf,getEnumValues:()=>Lr,getLengthableOrigin:()=>Jr,getParsedType:()=>Jf,getSizableOrigin:()=>oa,hexToUint8Array:()=>np,isObject:()=>_r,isPlainObject:()=>Ze,issue:()=>xr,joinValues:()=>B,jsonStringifyReplacer:()=>br,merge:()=>Yf,mergeDefs:()=>Le,normalizeParams:()=>D,nullish:()=>Vr,numKeys:()=>Mf,objectClone:()=>Af,omit:()=>Xf,optionalKeys:()=>En,partial:()=>qf,pick:()=>Hf,prefixIssues:()=>Te,primitiveTypes:()=>ta,promiseAllObject:()=>Zf,propertyKeyTypes:()=>Tn,randomString:()=>Vf,required:()=>Qf,safeExtend:()=>Kf,shallowClone:()=>ra,slugify:()=>Bn,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>aa,uint8ArrayToBase64url:()=>tp,uint8ArrayToHex:()=>op,unwrapMessage:()=>Ur});c();function Ef(e){return e}function Rf(e){return e}function Ff(e){}function jf(e){throw new Error("Unexpected value in exhaustive check")}function Nf(e){}function Lr(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function B(e,r="|"){return e.map(t=>I(t)).join(r)}function br(e,r){return typeof r=="bigint"?r.toString():r}function Zr(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vr(e){return e==null}function Mr(e){let r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function In(e,r){let t=(e.toString().split(".")[1]||"").length,n=r.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(o=Number.parseInt(s[1]));}let i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(r.toFixed(i).replace(".",""));return a%l/10**i}var ea=Symbol("evaluating");function U(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==ea)return n===void 0&&(n=ea,n=t()),n},set(o){Object.defineProperty(e,r,{value:o});},configurable:true});}function Af(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,r,t){Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});}function Le(...e){let r={};for(let t of e){let n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n);}return Object.defineProperties({},r)}function Uf(e){return Le(e._zod.def)}function Lf(e,r){return r?r.reduce((t,n)=>t?.[n],e):e}function Zf(e){let r=Object.keys(e),t=r.map(n=>e[n]);return Promise.all(t).then(n=>{let o={};for(let i=0;i<r.length;i++)o[r[i]]=n[i];return o})}function Vf(e=10){let r="abcdefghijklmnopqrstuvwxyz",t="";for(let n=0;n<e;n++)t+=r[Math.floor(Math.random()*r.length)];return t}function zt(e){return JSON.stringify(e)}function Bn(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Dt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var On=Zr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function Ze(e){if(_r(e)===false)return false;let r=e.constructor;if(r===void 0||typeof r!="function")return true;let t=r.prototype;return !(_r(t)===false||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===false)}function ra(e){return Ze(e)?{...e}:Array.isArray(e)?[...e]:e}function Mf(e){let r=0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r++;return r}var Jf=e=>{let r=typeof e;switch(r){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Tn=new Set(["string","number","symbol"]),ta=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,t){let n=new e._zod.constr(r??e._zod.def);return (!r||t?.parent)&&(n._zod.parent=e),n}function D(e){let r=e;if(!r)return {};if(typeof r=="string")return {error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message;}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Wf(e){let r;return new Proxy({},{get(t,n,o){return r??(r=e()),Reflect.get(r,n,o)},set(t,n,o,i){return r??(r=e()),Reflect.set(r,n,o,i)},has(t,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(t,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(t){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(t,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(t,n,o){return r??(r=e()),Reflect.defineProperty(r,n,o)}})}function I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function En(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Rn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},na={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Hf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i]);}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Xf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i];}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Gf(e,r){if(!Ze(r))throw new Error("Invalid input to extend: expected a plain object");let t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let o=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ue(this,"shape",i),i},checks:[]});return _e(e,o)}function Kf(e,r){if(!Ze(r))throw new Error("Invalid input to safeExtend: expected a plain object");let t={...e._zod.def,get shape(){let n={...e._zod.def.shape,...r};return Ue(this,"shape",n),n},checks:e._zod.def.checks};return _e(e,t)}function Yf(e,r){let t=Le(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ue(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return _e(e,t)}function qf(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a]);}else for(let a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function Qf(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}));}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function Me(e,r=0){if(e.aborted===true)return true;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==true)return true;return false}function Te(e,r){return r.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ur(e){return typeof e=="string"?e:e?.message}function be(e,r,t){let n={...e,path:e.path??[]};if(!e.message){let o=Ur(e.inst?._zod.def?.error?.(e))??Ur(r?.error?.(e))??Ur(t.customError?.(e))??Ur(t.localeError?.(e))??"Invalid input";n.message=o;}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function oa(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Jr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xr(...e){let[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}function ep(e){return Object.entries(e).filter(([r,t])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function ia(e){let r=atob(e),t=new Uint8Array(r.length);for(let n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t}function aa(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return btoa(r)}function rp(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-r.length%4)%4);return ia(r+t)}function tp(e){return aa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function np(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let t=new Uint8Array(r.length/2);for(let n=0;n<r.length;n+=2)t[n/2]=Number.parseInt(r.slice(n,n+2),16);return t}function op(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Dn=class{constructor(...r){}};var ca=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:r,enumerable:false}),e.message=JSON.stringify(r,br,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},It=v("$ZodError",ca),Fn=v("$ZodError",ca,{Parent:Error});function la(e,r=t=>t.message){let t={},n=[];for(let o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return {formErrors:n,fieldErrors:t}}function sa(e,r=t=>t.message){let t={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)t._errors.push(r(i));else {let a=t,l=0;for(;l<i.path.length;){let s=i.path[l];l===i.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(r(i))):a[s]=a[s]||{_errors:[]},a=a[s],l++;}}};return n(e),t}var Bt=e=>(r,t,n,o)=>{let i=n?Object.assign(n,{async:false}):{async:false},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Pe;if(a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw Dt(l,o?.callee),l}return a.value};var Ot=e=>async(r,t,n,o)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw Dt(l,o?.callee),l}return a.value};var Wr=e=>(r,t,n)=>{let o=n?{...n,async:false}:{async:false},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new Pe;return i.issues.length?{success:false,error:new(e??It)(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},ua=Wr(Fn),Hr=e=>async(r,t,n)=>{let o=n?Object.assign(n,{async:true}):{async:true},i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:false,error:new e(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},da=Hr(Fn),ma=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bt(e)(r,t,o)};var fa=e=>(r,t,n)=>Bt(e)(r,t,n);var pa=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ot(e)(r,t,o)};var ga=e=>async(r,t,n)=>Ot(e)(r,t,n);var va=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Wr(e)(r,t,o)};var ha=e=>(r,t,n)=>Wr(e)(r,t,n);var ya=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Hr(e)(r,t,o)};var _a=e=>async(r,t,n)=>Hr(e)(r,t,n);c();c();c();var ba=/^[cC][^\s-]{8,}$/,xa=/^[0-9a-z]+$/,Sa=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ca=/^[0-9a-vA-V]{20}$/,Pa=/^[A-Za-z0-9]{27}$/,ka=/^[a-zA-Z0-9_-]{21}$/,$a=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var wa=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,jn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var za=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var ap="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Da(){return new RegExp(ap,"u")}var Ia=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ba=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Oa=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ta=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ea=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nn=/^[A-Za-z0-9_-]*$/;var Ra=/^\+(?:[0-9]){6,14}[0-9]$/,Fa="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ja=new RegExp(`^${Fa}$`);function Na(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Aa(e){return new RegExp(`^${Na(e)}$`)}function Ua(e){let r=Na({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Fa}T(?:${n})$`)}var La=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)};var Za=/^-?\d+$/,Va=/^-?\d+(?:\.\d+)?/;var Ma=/^[^A-Z]*$/,Ja=/^[^a-z]*$/;var Q=v("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[]);}),Wa={number:"number",bigint:"bigint",object:"date"},An=v("$ZodCheckLessThan",(e,r)=>{Q.init(e,r);let t=Wa[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Un=v("$ZodCheckGreaterThan",(e,r)=>{Q.init(e,r);let t=Wa[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Ha=v("$ZodCheckMultipleOf",(e,r)=>{Q.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value);}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):In(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort});};}),Xa=v("$ZodCheckNumberFormat",(e,r)=>{Q.init(e,r),r.format=r.format||"float64";let t=r.format?.includes("int"),n=t?"int":"number",[o,i]=Rn[r.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=r.format,l.minimum=o,l.maximum=i,t&&(l.pattern=Za);}),e._zod.check=a=>{let l=a.value;if(t){if(!Number.isInteger(l)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:false,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:true,inst:e,continue:!r.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e});};});var Ga=v("$ZodCheckMaxLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum);}),e._zod.check=n=>{let o=n.value;if(o.length<=r.maximum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Ka=v("$ZodCheckMinLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum);}),e._zod.check=n=>{let o=n.value;if(o.length>=r.minimum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Ya=v("$ZodCheckLengthEquals",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length;}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===r.length)return;let a=Jr(o),l=i>r.length;n.issues.push({origin:a,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!r.abort});};}),Xr=v("$ZodCheckStringFormat",(e,r)=>{var t,n;Q.init(e,r),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern));}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort});}):(n=e._zod).check??(n.check=()=>{});}),qa=v("$ZodCheckRegex",(e,r)=>{Xr.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort});};}),Qa=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ma),Xr.init(e,r);}),ec=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Ja),Xr.init(e,r);}),rc=v("$ZodCheckIncludes",(e,r)=>{Q.init(e,r);let t=Ve(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n);}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort});};}),tc=v("$ZodCheckStartsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`^${Ve(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort});};}),nc=v("$ZodCheckEndsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`.*${Ve(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort});};});var oc=v("$ZodCheckOverwrite",(e,r)=>{Q.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value);};});c();var Et=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r);}indented(r){this.indent+=1,r(this),this.indent-=1;}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(`
|
|
17
|
+
`}function q0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function Q0(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 ex(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ge.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function rx(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(s){s.preventDefault(),n=s.clientX,o=s.clientY,document.onmouseup=l,document.onmousemove=a;}function a(s){s.preventDefault(),r=n-s.clientX,t=o-s.clientY,n=s.clientX,o=s.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function l(){document.onmouseup=null,document.onmousemove=null;}}function tx(e){return {...e,margin:0,padding:0}}function ve(e,r={apply:true}){return r.apply?Br(1,e):e}function nx(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function pi(e){let r=e;for(;r&&!vn(r);)r=r.parentElement;return r}function gi(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 x(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),a=()=>pe[n],l=()=>i?Kd(Ie[o],parseFloat(i)):Ie[n];if(t==="css"){if(n in pe)return a();if(o in Ie)return l()}else if(t==="res"){if(o in Ie)return l();if(n in pe)return a()}return n}var vi=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",Xd=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Gd=e=>parseInt(e.repeat(2/e.length),16);function Kd(e,r=1){let t=(f,p)=>f.match(new RegExp(`.{${p}}`,"g")),n=f=>typeof f<"u"?f/255:typeof r!="number"||r<0||r>1?1:r;if(!Xd(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[a,l,s,u]=i.map(Gd);return `rgba(${a}, ${l}, ${s}, ${n(u)})`}function ox(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 ix(e){return window.matchMedia(`(max-width:${e})`).matches}function ax(e){return window.matchMedia(`(min-width:${e})`).matches}function Br(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Yd(e){return e*16}function cx(e){return `${Yd(e)}px`}function vn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function lx(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}c();var qd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),H=qd;c();var Qd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),j=Qd;var bt=["top","right","bottom","left"],hi=(e,r)=>`translate(${e}, ${r})`,yi=e=>`translateX(${e})`,_i=e=>`translateY(${e})`,em=(e,r)=>{let t=e.fontSize in j?j[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let l=e?.spill||{};if(l)return {overflowX:typeof l=="string"?l:l?.x||"visible",overflowY:typeof l=="string"?l:l?.y||"visible"}})();function i(l){return e.style?.[l]?e.style[l]:(e.size||e.size===0)&&(l==="height"||l==="width")?e.size==="full"?"100%":e.size:e[l]==="full"?"100%":e[l]}let a={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(l=>l||"inherit").join(" "),transform:e.centerSelf===true?hi("-50%","-50%"):e.centerSelf==="x"?yi("-50%"):e.centerSelf==="y"?_i("-50%"):e.translate?.x&&e.translate?.y?hi(e.translate.x,e.translate.y):e.translate?.x?yi(e.translate.x):e.translate?.y?_i(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:om(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:rm(e.borderColor),borderWidth:tm(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:nm(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:im(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:x(e.backgroundColor),color:x(e.color),gap:am(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(a).forEach(l=>{let s=l,u=a[s];typeof u=="string"&&(u=u.trim()),!u&&u!==0&&delete a[s];}),(r||e.debug)&&console.log({props:e,style:a}),a};function rm(e){if(!e)return;let r="transparent";return typeof e=="string"?x(e):bt.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?x(n):r}return typeof e=="object"&&t in e?x(e[t]):r}).join(" ")}function tm(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.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 nm(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.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 om(e){let t=n=>n?n in H?H[n]:n:"0px";return e?typeof e=="string"?t(e):bt.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 im(e){let t=o=>o?o in ge?ge[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 am(e){if(!(!e||typeof e!="string"))return e in H?H[e]:e}var k=em;var fm=["inherit","sm","md","lg","xl","2xl","xs"],pm=["sm","md","lg","xl","2xl","xs","2xs"];function bi(e){let[r,t]=useState(false),n=e.disabled||r,o=async p=>{if(!n){if(!e.async)return e.onClick?.(p);t(true),await e.onClick?.(p),setTimeout(()=>t(false),e.pendingDelay||1);}},i=p=>{if(p){if(typeof p==typeof FaFolder){let h=y=>typeof y=="string"&&[...fm].includes(y);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:p})}return p}},a=i(e.leadingEl),l=i(e.trailingEl),s=p=>typeof p=="string"&&[...pm].includes(p),{size:u,...f}=e;return jsxs(Button,{...je(e),disabled:n,size:s(u)?u:void 0,style:k({...f,size:s(u)?void 0:u,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:[a,e.text,e.children,l,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?x(e.spinnerColor):"blue.500"})})]})}var Ne=e=>r=>jsx(bi,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,a=i in n,l=[void 0,null].includes(n[i]);(!a||l)&&(n[i]=e.optional[i]);}return n})()}),T=bi;c();c();c();c();c();function St(){return St=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},St.apply(null,arguments)}c();c();function xi(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)}c();var Si={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};c();function Ct(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var hm=/[A-Z]|^ms/g,ym=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$i=function(r){return r.charCodeAt(1)===45},Ci=function(r){return r!=null&&typeof r!="boolean"},hn=Ct(function(e){return $i(e)?e:e.replace(hm,"-$&").toLowerCase()}),Pi=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ym,function(n,o,i){return Se={name:o,styles:i,next:Se},o})}return Si[r]!==1&&!$i(r)&&typeof t=="number"&&t!==0?t+"px":t};function Or(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 Se={name:o.name,styles:o.styles,next:Se},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Se={name:a.name,styles:a.styles,next:Se},a=a.next;var l=i.styles+";";return l}return bm(e,r,t)}case "function":{if(e!==void 0){var s=Se,u=t(e);return Se=s,Or(e,r,u)}break}}var f=t;if(r==null)return f;var p=r[f];return p!==void 0?p:f}function bm(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Or(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var l=a;r!=null&&r[l]!==void 0?n+=i+"{"+r[l]+"}":Ci(l)&&(n+=hn(i)+":"+Pi(i,l)+";");}else {if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var s=0;s<a.length;s++)Ci(a[s])&&(n+=hn(i)+":"+Pi(i,a[s])+";");else {var u=Or(e,r,a);switch(i){case "animation":case "animationName":{n+=hn(i)+":"+u+";";break}default:n+=i+"{"+u+"}";}}}}return n}var ki=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function wi(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="";Se=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=Or(t,r,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=Or(t,r,e[l]),n){var s=i;o+=s[l];}ki.lastIndex=0;for(var u="",f;(f=ki.exec(o))!==null;)u+="-"+f[1];var p=xi(o)+u;return {name:p,styles:o,next:Se}}c();var xm=typeof document<"u",zi=function(r){return r()},Sm=Be.useInsertionEffect?Be.useInsertionEffect:false,Di=xm&&Sm||zi;c();var yn=typeof document<"u";function Ii(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var _n=function(r,t,n){var o=r.key+"-"+t.name;(n===false||yn===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},Bi=function(r,t,n){_n(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",a=t;do{var l=r.insert(t===a?"."+o:"",a,r.sheet,true);!yn&&l!==void 0&&(i+=l),a=a.next;}while(a!==void 0);if(!yn&&i.length!==0)return i}};c();var Cm=/^((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)-.*))$/,Oi=Ct(function(e){return Cm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var $m=typeof document<"u",zm=Oi,Dm=function(r){return r!=="theme"},Ti=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?zm:Dm},Ei=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},Im=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;_n(t,n,o);var i=Di(function(){return Bi(t,n,o)});if(!$m&&i!==void 0){for(var a,l=n.name,s=n.next;s!==void 0;)l+=" "+s.name,s=s.next;return Be.createElement("style",(a={},a["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Ri=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var l=Ei(r,t,n),s=l||Ti(o),u=!s("as");return function(){var f=arguments,p=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else {var h=f[0];p.push(h[0]);for(var y=f.length,z=1;z<y;z++)p.push(f[z],h[z]);}var b=withEmotionCache(function(S,$,w){var P=u&&S.as||o,F="",ee=[],Fe=S;if(S.theme==null){Fe={};for(var Dr in S)Fe[Dr]=S[Dr];Fe.theme=Be.useContext(ThemeContext);}typeof S.className=="string"?F=Ii($.registered,ee,S.className):S.className!=null&&(F=S.className+" ");var sr=wi(p.concat(ee),$.registered,Fe);F+=$.key+"-"+sr.name,a!==void 0&&(F+=" "+a);var Ir=u&&l===void 0?Ti(P):s,ur={};for(var Ye in S)u&&Ye==="as"||Ir(Ye)&&(ur[Ye]=S[Ye]);return ur.className=F,w&&(ur.ref=w),Be.createElement(Be.Fragment,null,Be.createElement(Im,{cache:$,serialized:sr,isStringTag:typeof P=="string"}),Be.createElement(P,ur))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=p,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return "."+a}}),b.withComponent=function(S,$){var w=e(S,St({},t,$,{shouldForwardProp:Ei(b,$,true)}));return w.apply(void 0,p)},b}};Bd(Fi());var Bm=["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"],dr=Ri.bind(null);Bm.forEach(function(e){dr[e]=dr(e);});var xn=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?x(n):n)}static span=r=>dr.span({...this.getStyle(r)});static div=r=>dr.div({...this.getStyle(r)});static img=r=>dr.img({...this.getStyle(r)})},mr=xn;function Fm(e){let r=useRef(null),[t,n]=useState(false),o=A({defaultValue:{top:0,left:0}});e.rememberScrollPos&&useEffect(()=>{let f=o.read();r.current&&[f.top,f.left].some(p=>!!p)&&(r.current.scrollTop=f?.top??0,r.current.scrollLeft=f?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&vn(r.current)&&!t&&n(true);},[]);let i="10%",a=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,l=e.decreaseYFaderPadding?"2vh":"5rem",s=k({...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?l:void 0,bottom:e.enableYFaders?l:void 0}}),u=mr.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(u,{...je(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:f=>{let p=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([p,h]))||o.upsert({top:p??0,left:h??0}),e.onScroll?.(f);},style:{...s,display:e.grid?"grid":s.display||"flex",flexWrap:s.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:s?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:s?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&a,maskImage:e.enableYFaders&&a},children:e.children})}var g=Fm;c();function Nm(e){let r=!!e.tint,t=mr.img(e.sx);return jsx(t,{...je(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...k(e),filter:r?`drop-shadow(0px 1000px 0 ${x(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var Ae=Nm;c();function Lm(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(g,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx(Sn,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(g,{width:"full",children:[jsx(Sn,{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(g,{width:"full",children:n.nestedItems.map((i,a)=>jsx(Sn,{index:a,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function Sn(e){let r=Ie.white,t=pe.onSurface,n=e.nested?t:pe.tertiaryContainer,o=e.active?n:Ie.carlsbergGreen,i=e.active&&!e.nested?n:pe["onSurface[0.25]"],a=e.nested?pe["onSurface[0.4]"]:pe["onSurface[0.5]"],l=pe["onSurface[0.2]"],s=()=>e.onClick?.(e.item),u=IoMdCheckmark;return jsxs(g,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:s,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:a,borderColor:e.completed?o:e.active?n:l,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(g,{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(u,{fontSize:"1rem"}):jsx(C,{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(u,{size:"1.25rem",opacity:.75})]})}var Cn=Lm;c();function Vm(e){let r=i=>e.ellipsis?ve(i):e.lineLimit?Br(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=k({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=mr.span(e.sx);return jsx(o,{...je(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 C=Vm;c();var kt="1px",Vi=6,pr=createContext(null);function Hm(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||[]),a=()=>e.columns.map(w=>{let P=typeof w=="object"?w:{};return {...P,name:fr(w),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),l=w=>(e.selectable?`auto ${kt}`:"")+a().map(F=>{let ee=F.weight||r;return ee==="auto"?w.find(Fe=>Fe.name===F.name)?.weight||"auto":ee}).join(` ${kt} `),[s,u]=useState(l(a())),f=o.length===e.entries.length&&e.entries.length>0,p=useRef(null),h=useRef(false),y=(Array.isArray(e.children)?e.children:[e.children]).filter((w,P)=>P<2),z=()=>{let w=[];f||(w=e.entries.map((P,F)=>F)),e.onSelectedRowsChange?.(w),n||i(w);},b=w=>{let P=[...o];P.includes(w)?P=P.filter(F=>F!==w):P.push(w),e.onSelectedRowsChange?.(P),n||i(P);},S=w=>{p.current?(w.forEach((P,F)=>{(p.current.get(F)||0)<P&&p.current.set(F,P);}),$()):(p.current=w,y.length===1&&$());},$=()=>{if(h.current){h.current=false;return}let w=a().map(P=>{let F=p.current.get(P.name);return F?{...P,weight:`${F}px`}:P});h.current=true,p.current=null,u(l(w));};return jsx(pr.Provider,{value:{...e,gridCols:s,justify:e.justify||"space-between",selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:f,onSelectRowClick:b,onSelectAllRowsClick:z,columns:a(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:S},children:jsx(g,{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:y})})}function Xm(e){let r=useContext(pr),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(g,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:kt,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",justifyContent:r.justify},children:[r.selectable&&jsx(Ji,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,a)=>{let l=fr(o);return jsxs(Be__default.Fragment,{children:[jsx(C,{ref:s=>{s&&(n.current.set(l,parseFloat(getComputedStyle(s).width)+Vi),i===lastIndex(a)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(l):e.formatColumnName?.(l)??camelCaseToLetter(l),style:{flexGrow:1,textAlign:Tr("textAlign",o)}}),i!==a.length-1&&jsx(kn,{color:e.separatorColor})]},l+i)})]})}function Gm(e){let r=useContext(pr),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(g,{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(Km,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,a)=>{let l=t.current.get(i);(!l||a>l)&&t.current.set(i,a);},onCellRendered:i=>{let a=o===lastIndex(r.entries),l=i===lastIndex(r.columns);a&&l&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function Km(e){let r=useContext(pr),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:a}=k({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(g,{spill:"hidden",justify:"space-between",style:{gap:o,padding:i,backgroundColor:a,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style,justifyContent:r.justify},children:[r.selectable&&jsx(Ji,{selected:t,onClick:n}),r.columns.map((l,s,u)=>{let f=fr(l),p=e.rowData[f],h=typeof l=="object"?l?.placeholder:void 0,y=()=>e.onCellRendered?.(s),z=s+fr(l),b=Tr("textAlign",l),S={textAlign:b,justifyContent:b,color:Tr("color",l),opacity:Tr("opacity",l,1),backgroundColor:Tr("backgroundColor",l),...e.styleCell?.({cellIndex:e.index*r.columns.length+s,columnName:f,columnIndex:s,rowIndex:e.index,data:typeof p=="string"?p:null,siblingData:{previous:s===0?null:run(e.rowData[fr(u[s-1])],$=>typeof $=="string"?$:null),next:s===u.length-1?null:run(e.rowData[fr(u[s+1])],$=>typeof $=="string"?$:null)}})||{}};return typeof l=="object"&&l.weight==="auto"?jsxs(Fragment,{children:[jsx(Ym,{data:p,style:S,onRender:y,placeholder:h,onWidthComputed:$=>e.onColWidthComputed(f,$)},z),s!==u.length-1&&jsx(kn,{})]}):jsxs(Fragment,{children:[jsx(Mi,{data:p,style:S,placeholder:h,onRender:y},z),s!==u.length-1&&jsx(kn,{})]})})]})}function Ym(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+Vi):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Mi,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Mi(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(C,{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 kn(e){let r=useContext(pr),t=e.color||r.separatorColor;return jsx(g,{width:kt,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function Ji(e){let r=useContext(pr),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(g,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(Wi,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var fr=e=>typeof e=="string"?e:e.name,Tr=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,qm={Root:Hm,Header:Xm,Body:Gm},Qm=qm;c();c();function rf(e){return jsxs(g,{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",fontWeight:e.fontWeight,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:ve({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var wn=rf;var Xi=createContext(null);function lf(e){return jsx(Xi.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(gr,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(sf,{})})})}function sf(){let e=useContext(Xi),r=Gi(),[t,n]=useState(e.isSelected?e.options.findIndex((i,a)=>e.isSelected(i,a,e.options)):void 0),{triggerRerender:o}=G();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(g,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,a)=>{let l=a===t,s=()=>{i.onClick?.(),e.onOptionClick?.(i,a,e.options),n(a),r.close();};return (!i||!i?.value)&&console.error(`Index ${a} is not defined in ${e.options.join()}`),jsx(wn,{scrollIntoView:l,fontSize:e.fontSize,fontWeight:e.fontWeight,formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:l,onClick:s},a)})})}var Nr=lf;c();function HC(e){let r=A({defaultValue:e.defaultChecked,reactive:true}),t=e.checked??r.read(),n=i=>{if(i)return {...i||{},backgroundColor:x(i.backgroundColor),color:x(i.color),borderColor:x(i.borderColor),fontSize:i.fontSize in j?j[i.fontSize]:i.fontSize}},o=({checked:i})=>{e.disabled||(typeof e.checked!="boolean"&&r.upsert(i),e.onChange?.(i));};return jsxs(Switch.Root,{disabled:e.disabled,checked:t,size:e.size,variant:e.variant,onCheckedChange:o,children:[jsx(Switch.HiddenInput,{}),jsxs(Switch.Control,{style:n(e.trackStyle?.(t)),children:[jsx(Switch.Thumb,{style:n(e.thumbStyle?.(t)),children:e.thumbIndicator&&jsx(Switch.ThumbIndicator,{fallback:e.thumbIndicator?.off,children:e.thumbIndicator?.on})}),e.trackIndicator&&jsx(Switch.Indicator,{fallback:e.trackIndicator?.off,children:e.trackIndicator?.on})]}),jsx(Activity,{mode:e.label?"visible":"hidden",children:jsx(Switch.Label,{children:typeof e.label=="function"?e.label(t):e.label,style:n(e.labelStyle?.(t))})})]})}c();function rP(e){let[r,t]=useState(true);return useEffect(()=>{setTimeout(async()=>{e.isDataLoaded&&await new Promise(n=>{for(;!e.isDataLoaded(););n();}),t(false);},e.delay||300);},[]),jsxs(Fragment,{children:[jsx(Activity,{mode:r?"visible":"hidden",children:e.LoadingScreen?jsx(e.LoadingScreen,{}):jsx(g,{size:"full",centerContent:true,children:jsx(Spinner,{})})}),jsx(Activity,{mode:r?"hidden":"visible",children:jsx(e.children,{})})]})}c();function lP(e){let r=e.style?.borderRadius||e.corners||"md";return jsx(g,{...e,spill:e.spill||"hidden",borderColor:e.borderColor||"onSurface[0.1]",width:e.width||"full",height:e.height||".7rem",corners:r,style:{...e.style||{},boxShadow:e.style?.boxShadow||"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:jsx(g,{corners:r,width:`${coerceIn([e.value],0,1)[0]*100}%`,height:"full",backgroundColor:e.accentColor||"seed",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"}})})}c();function pP(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}c();var bf=["sm","md","lg","xl","xs"];function bP(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=a=>a&&typeof a=="string"&&[...bf].includes(a);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:x(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}c();function zP(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,a=e.totalPages-1,l=async f=>{if(f===t)return;let p=f===t+1,h=Math.abs(f-t)>1;r.current=h?null:p,h||(p?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(f),n(f),await e.afterPageChange?.(f);},s=async()=>l(t-1),u=async()=>l(t+1);return jsxs(g,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Qi,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:s}),jsx(g,{row:true,justify:a>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,f=>{let p=t===f;return jsx(g,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${f+1}`,corners:"circle",fade:p?1:.5,borderColor:p?void 0:"onSurface[0.1]",backgroundColor:p?"primary":void 0,color:p?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===a?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>l(f)},f)})}),jsx(Qi,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:u})]})}function Qi(e){return jsx(T,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}c();var ea=createContext(null);function Of(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(ea.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(Ef,{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:k({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Tf(){let e=useContext(ea);return jsx(g,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Ef(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var AP={Root:Of,Header:e=>jsx(Drawer.Header,{style:k({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:k({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:k({...e,width:e.width??"full"}),children:e.children}),Sep:Tf,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};c();c();c();c();c();function v(e,r,t){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:false}),l._zod.traits.has(e))return;l._zod.traits.add(e),r(l,s);let u=a.prototype,f=Object.keys(u);for(let p=0;p<f.length;p++){let h=f[p];h in l||(l[h]=u[h].bind(l));}}let o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let u=t?.Parent?new i:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>t?.Parent&&l instanceof t.Parent?true:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Pe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},yr=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError";}},$t={};function ke(e){return $t}c();c();var _={};Dd(_,{BIGINT_FORMAT_RANGES:()=>oa,Class:()=>In,NUMBER_FORMAT_RANGES:()=>Fn,aborted:()=>Me,allowsEval:()=>Tn,assert:()=>Af,assertEqual:()=>Rf,assertIs:()=>jf,assertNever:()=>Nf,assertNotEqual:()=>Ff,assignProp:()=>Ue,base64ToUint8Array:()=>aa,base64urlToUint8Array:()=>tp,cached:()=>Zr,captureStackTrace:()=>zt,cleanEnum:()=>rp,cleanRegex:()=>Mr,clone:()=>_e,cloneDef:()=>Lf,createTransparentProxy:()=>Hf,defineLazy:()=>U,esc:()=>wt,escapeRegex:()=>Ve,extend:()=>Kf,finalizeIssue:()=>be,floatSafeRemainder:()=>Bn,getElementAtPath:()=>Zf,getEnumValues:()=>Lr,getLengthableOrigin:()=>Jr,getParsedType:()=>Wf,getSizableOrigin:()=>ia,hexToUint8Array:()=>op,isObject:()=>_r,isPlainObject:()=>Ze,issue:()=>xr,joinValues:()=>B,jsonStringifyReplacer:()=>br,merge:()=>qf,mergeDefs:()=>Le,normalizeParams:()=>D,nullish:()=>Vr,numKeys:()=>Jf,objectClone:()=>Uf,omit:()=>Gf,optionalKeys:()=>Rn,partial:()=>Qf,pick:()=>Xf,prefixIssues:()=>Te,primitiveTypes:()=>na,promiseAllObject:()=>Vf,propertyKeyTypes:()=>En,randomString:()=>Mf,required:()=>ep,safeExtend:()=>Yf,shallowClone:()=>ta,slugify:()=>On,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>ca,uint8ArrayToBase64url:()=>np,uint8ArrayToHex:()=>ip,unwrapMessage:()=>Ur});c();function Rf(e){return e}function Ff(e){return e}function jf(e){}function Nf(e){throw new Error("Unexpected value in exhaustive check")}function Af(e){}function Lr(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function B(e,r="|"){return e.map(t=>I(t)).join(r)}function br(e,r){return typeof r=="bigint"?r.toString():r}function Zr(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vr(e){return e==null}function Mr(e){let r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function Bn(e,r){let t=(e.toString().split(".")[1]||"").length,n=r.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(o=Number.parseInt(s[1]));}let i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(r.toFixed(i).replace(".",""));return a%l/10**i}var ra=Symbol("evaluating");function U(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==ra)return n===void 0&&(n=ra,n=t()),n},set(o){Object.defineProperty(e,r,{value:o});},configurable:true});}function Uf(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,r,t){Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});}function Le(...e){let r={};for(let t of e){let n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n);}return Object.defineProperties({},r)}function Lf(e){return Le(e._zod.def)}function Zf(e,r){return r?r.reduce((t,n)=>t?.[n],e):e}function Vf(e){let r=Object.keys(e),t=r.map(n=>e[n]);return Promise.all(t).then(n=>{let o={};for(let i=0;i<r.length;i++)o[r[i]]=n[i];return o})}function Mf(e=10){let r="abcdefghijklmnopqrstuvwxyz",t="";for(let n=0;n<e;n++)t+=r[Math.floor(Math.random()*r.length)];return t}function wt(e){return JSON.stringify(e)}function On(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var zt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Tn=Zr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function Ze(e){if(_r(e)===false)return false;let r=e.constructor;if(r===void 0||typeof r!="function")return true;let t=r.prototype;return !(_r(t)===false||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===false)}function ta(e){return Ze(e)?{...e}:Array.isArray(e)?[...e]:e}function Jf(e){let r=0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r++;return r}var Wf=e=>{let r=typeof e;switch(r){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},En=new Set(["string","number","symbol"]),na=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,t){let n=new e._zod.constr(r??e._zod.def);return (!r||t?.parent)&&(n._zod.parent=e),n}function D(e){let r=e;if(!r)return {};if(typeof r=="string")return {error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message;}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Hf(e){let r;return new Proxy({},{get(t,n,o){return r??(r=e()),Reflect.get(r,n,o)},set(t,n,o,i){return r??(r=e()),Reflect.set(r,n,o,i)},has(t,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(t,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(t){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(t,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(t,n,o){return r??(r=e()),Reflect.defineProperty(r,n,o)}})}function I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Rn(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Fn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},oa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Xf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i]);}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Gf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i];}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Kf(e,r){if(!Ze(r))throw new Error("Invalid input to extend: expected a plain object");let t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let o=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ue(this,"shape",i),i},checks:[]});return _e(e,o)}function Yf(e,r){if(!Ze(r))throw new Error("Invalid input to safeExtend: expected a plain object");let t={...e._zod.def,get shape(){let n={...e._zod.def.shape,...r};return Ue(this,"shape",n),n},checks:e._zod.def.checks};return _e(e,t)}function qf(e,r){let t=Le(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ue(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return _e(e,t)}function Qf(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a]);}else for(let a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function ep(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}));}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function Me(e,r=0){if(e.aborted===true)return true;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==true)return true;return false}function Te(e,r){return r.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ur(e){return typeof e=="string"?e:e?.message}function be(e,r,t){let n={...e,path:e.path??[]};if(!e.message){let o=Ur(e.inst?._zod.def?.error?.(e))??Ur(r?.error?.(e))??Ur(t.customError?.(e))??Ur(t.localeError?.(e))??"Invalid input";n.message=o;}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function ia(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Jr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xr(...e){let[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}function rp(e){return Object.entries(e).filter(([r,t])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function aa(e){let r=atob(e),t=new Uint8Array(r.length);for(let n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t}function ca(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return btoa(r)}function tp(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-r.length%4)%4);return aa(r+t)}function np(e){return ca(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function op(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let t=new Uint8Array(r.length/2);for(let n=0;n<r.length;n+=2)t[n/2]=Number.parseInt(r.slice(n,n+2),16);return t}function ip(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var In=class{constructor(...r){}};var la=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:r,enumerable:false}),e.message=JSON.stringify(r,br,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},Dt=v("$ZodError",la),jn=v("$ZodError",la,{Parent:Error});function sa(e,r=t=>t.message){let t={},n=[];for(let o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return {formErrors:n,fieldErrors:t}}function ua(e,r=t=>t.message){let t={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)t._errors.push(r(i));else {let a=t,l=0;for(;l<i.path.length;){let s=i.path[l];l===i.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(r(i))):a[s]=a[s]||{_errors:[]},a=a[s],l++;}}};return n(e),t}var It=e=>(r,t,n,o)=>{let i=n?Object.assign(n,{async:false}):{async:false},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Pe;if(a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var Bt=e=>async(r,t,n,o)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var Wr=e=>(r,t,n)=>{let o=n?{...n,async:false}:{async:false},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new Pe;return i.issues.length?{success:false,error:new(e??Dt)(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},da=Wr(jn),Hr=e=>async(r,t,n)=>{let o=n?Object.assign(n,{async:true}):{async:true},i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:false,error:new e(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},ma=Hr(jn),fa=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return It(e)(r,t,o)};var pa=e=>(r,t,n)=>It(e)(r,t,n);var ga=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bt(e)(r,t,o)};var va=e=>async(r,t,n)=>Bt(e)(r,t,n);var ha=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Wr(e)(r,t,o)};var ya=e=>(r,t,n)=>Wr(e)(r,t,n);var _a=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Hr(e)(r,t,o)};var ba=e=>async(r,t,n)=>Hr(e)(r,t,n);c();c();c();var xa=/^[cC][^\s-]{8,}$/,Sa=/^[0-9a-z]+$/,Ca=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pa=/^[0-9a-vA-V]{20}$/,ka=/^[A-Za-z0-9]{27}$/,$a=/^[a-zA-Z0-9_-]{21}$/,wa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var za=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Nn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var Da=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var cp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ia(){return new RegExp(cp,"u")}var Ba=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Oa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Ta=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ea=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ra=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,An=/^[A-Za-z0-9_-]*$/;var Fa=/^\+(?:[0-9]){6,14}[0-9]$/,ja="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Na=new RegExp(`^${ja}$`);function Aa(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ua(e){return new RegExp(`^${Aa(e)}$`)}function La(e){let r=Aa({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${t.join("|")})`;return new RegExp(`^${ja}T(?:${n})$`)}var Za=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)};var Va=/^-?\d+$/,Ma=/^-?\d+(?:\.\d+)?/;var Ja=/^[^A-Z]*$/,Wa=/^[^a-z]*$/;var Q=v("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[]);}),Ha={number:"number",bigint:"bigint",object:"date"},Un=v("$ZodCheckLessThan",(e,r)=>{Q.init(e,r);let t=Ha[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Ln=v("$ZodCheckGreaterThan",(e,r)=>{Q.init(e,r);let t=Ha[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Xa=v("$ZodCheckMultipleOf",(e,r)=>{Q.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value);}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):Bn(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort});};}),Ga=v("$ZodCheckNumberFormat",(e,r)=>{Q.init(e,r),r.format=r.format||"float64";let t=r.format?.includes("int"),n=t?"int":"number",[o,i]=Fn[r.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=r.format,l.minimum=o,l.maximum=i,t&&(l.pattern=Va);}),e._zod.check=a=>{let l=a.value;if(t){if(!Number.isInteger(l)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:false,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:true,inst:e,continue:!r.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e});};});var Ka=v("$ZodCheckMaxLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum);}),e._zod.check=n=>{let o=n.value;if(o.length<=r.maximum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Ya=v("$ZodCheckMinLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum);}),e._zod.check=n=>{let o=n.value;if(o.length>=r.minimum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),qa=v("$ZodCheckLengthEquals",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length;}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===r.length)return;let a=Jr(o),l=i>r.length;n.issues.push({origin:a,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!r.abort});};}),Xr=v("$ZodCheckStringFormat",(e,r)=>{var t,n;Q.init(e,r),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern));}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort});}):(n=e._zod).check??(n.check=()=>{});}),Qa=v("$ZodCheckRegex",(e,r)=>{Xr.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort});};}),ec=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ja),Xr.init(e,r);}),rc=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Wa),Xr.init(e,r);}),tc=v("$ZodCheckIncludes",(e,r)=>{Q.init(e,r);let t=Ve(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n);}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort});};}),nc=v("$ZodCheckStartsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`^${Ve(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort});};}),oc=v("$ZodCheckEndsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`.*${Ve(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort});};});var ic=v("$ZodCheckOverwrite",(e,r)=>{Q.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value);};});c();var Tt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r);}indented(r){this.indent+=1,r(this),this.indent-=1;}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(`
|
|
18
18
|
`).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a);}compile(){let r=Function,t=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...t,o.join(`
|
|
19
|
-
`))}};c();var
|
|
19
|
+
`))}};c();var cc={major:4,minor:2,patch:1};var M=v("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=cc;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let o=(a,l,s)=>{let u=Me(a),f;for(let p of l){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,y=p._zod.check(a);if(y instanceof Promise&&s?.async===false)throw new Pe;if(f||y instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await y,a.issues.length!==h&&(u||(u=Me(a,h)));});else {if(a.issues.length===h)continue;u||(u=Me(a,h));}}return f?f.then(()=>a):a},i=(a,l,s)=>{if(Me(a))return a.aborted=true,a;let u=o(l,n,s);if(u instanceof Promise){if(s.async===false)throw new Pe;return u.then(f=>e._zod.parse(f,s))}return e._zod.parse(u,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:true});return u instanceof Promise?u.then(f=>i(f,a,l)):i(u,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===false)throw new Pe;return s.then(u=>o(u,n,l))}return o(s,n,l)};}e["~standard"]={validate:o=>{try{let i=da(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ma(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1};}),Gr=v("$ZodString",(e,r)=>{M.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Za(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value);}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t};}),Z=v("$ZodStringFormat",(e,r)=>{Xr.init(e,r),Gr.init(e,r);}),vc=v("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=za),Z.init(e,r);}),hc=v("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Nn(n));}else r.pattern??(r.pattern=Nn());Z.init(e,r);}),yc=v("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Da),Z.init(e,r);}),_c=v("$ZodURL",(e,r)=>{Z.init(e,r),e._zod.check=t=>{try{let n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort});}};}),bc=v("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ia()),Z.init(e,r);}),xc=v("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=$a),Z.init(e,r);}),Sc=v("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=xa),Z.init(e,r);}),Cc=v("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Sa),Z.init(e,r);}),Pc=v("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Ca),Z.init(e,r);}),kc=v("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Pa),Z.init(e,r);}),$c=v("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=ka),Z.init(e,r);}),wc=v("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=La(r)),Z.init(e,r);}),zc=v("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Na),Z.init(e,r);}),Dc=v("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Ua(r)),Z.init(e,r);}),Ic=v("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=wa),Z.init(e,r);}),Bc=v("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Ba),Z.init(e,r),e._zod.bag.format="ipv4";}),Oc=v("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Oa),Z.init(e,r),e._zod.bag.format="ipv6",e._zod.check=t=>{try{new URL(`http://[${t.value}]`);}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort});}};});var Tc=v("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ta),Z.init(e,r);}),Ec=v("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Ea),Z.init(e,r),e._zod.check=t=>{let n=t.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`);}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort});}};});function Rc(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var Fc=v("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Ra),Z.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=t=>{Rc(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort});};});function lp(e){if(!An.test(e))return false;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return Rc(t)}var jc=v("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=An),Z.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=t=>{lp(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort});};}),Nc=v("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Fa),Z.init(e,r);});function sp(e,r=null){try{let t=e.split(".");if(t.length!==3)return !1;let[n]=t;if(!n)return !1;let o=JSON.parse(atob(n));return !("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return false}}var Ac=v("$ZodJWT",(e,r)=>{Z.init(e,r),e._zod.check=t=>{sp(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort});};});var Vn=v("$ZodNumber",(e,r)=>{M.init(e,r),e._zod.pattern=e._zod.bag.pattern??Ma,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value);}catch{}let o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t};}),Uc=v("$ZodNumberFormat",(e,r)=>{Ga.init(e,r),Vn.init(e,r);});var Lc=v("$ZodUnknown",(e,r)=>{M.init(e,r),e._zod.parse=t=>t;}),Zc=v("$ZodNever",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t);});function lc(e,r,t){e.issues.length&&r.issues.push(...Te(t,e.issues)),r.value[t]=e.value;}var Vc=v("$ZodArray",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);let i=[];for(let a=0;a<o.length;a++){let l=o[a],s=r.element._zod.run({value:l,issues:[]},n);s instanceof Promise?i.push(s.then(u=>lc(u,t,a))):lc(s,t,a);}return i.length?Promise.all(i).then(()=>t):t};});function Rt(e,r,t,n){e.issues.length&&r.issues.push(...Te(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value;}function Mc(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let t=Rn(e.shape);return {...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Jc(e,r,t,n,o,i){let a=[],l=o.keySet,s=o.catchall._zod,u=s.def.type;for(let f in r){if(l.has(f))continue;if(u==="never"){a.push(f);continue}let p=s.run({value:r[f],issues:[]},n);p instanceof Promise?e.push(p.then(h=>Rt(h,t,f,r))):Rt(p,t,f,r);}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}var up=v("$ZodObject",(e,r)=>{if(M.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let l=r.shape;Object.defineProperty(r,"shape",{get:()=>{let s={...l};return Object.defineProperty(r,"shape",{value:s}),s}});}let n=Zr(()=>Mc(r));U(e._zod,"propValues",()=>{let l=r.shape,s={};for(let u in l){let f=l[u]._zod;if(f.values){s[u]??(s[u]=new Set);for(let p of f.values)s[u].add(p);}}return s});let o=_r,i=r.catchall,a;e._zod.parse=(l,s)=>{a??(a=n.value);let u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let f=[],p=a.shape;for(let h of a.keys){let z=p[h]._zod.run({value:u[h],issues:[]},s);z instanceof Promise?f.push(z.then(b=>Rt(b,l,h,u))):Rt(z,l,h,u);}return i?Jc(f,u,l,s,n.value,e):f.length?Promise.all(f).then(()=>l):l};}),Wc=v("$ZodObjectJIT",(e,r)=>{up.init(e,r);let t=e._zod.parse,n=Zr(()=>Mc(r)),o=h=>{let y=new Tt(["shape","payload","ctx"]),z=n.value,b=P=>{let F=wt(P);return `shape[${F}]._zod.run({ value: input[${F}], issues: [] }, ctx)`};y.write("const input = payload.value;");let S=Object.create(null),$=0;for(let P of z.keys)S[P]=`key_${$++}`;y.write("const newResult = {};");for(let P of z.keys){let F=S[P],ee=wt(P);y.write(`const ${F} = ${b(P)};`),y.write(`
|
|
20
20
|
if (${F}.issues.length) {
|
|
21
21
|
payload.issues = payload.issues.concat(${F}.issues.map(iss => ({
|
|
22
22
|
...iss,
|
|
@@ -33,13 +33,13 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
|
|
|
33
33
|
newResult[${ee}] = ${F}.value;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
`);}y.write("payload.value = newResult;"),y.write("return payload;");let w=y.compile();return (P,F)=>w(h,P,F)},i,a=_r,l=!wt.jitless,u=l&&On.value,f=r.catchall,p;e._zod.parse=(h,y)=>{p??(p=n.value);let z=h.value;return a(z)?l&&u&&y?.async===false&&y.jitless!==true?(i||(i=o(r.shape)),h=i(h,y),f?Mc([],z,h,y,p,e):h):t(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),h)};});function lc(e,r,t,n){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let o=e.filter(i=>!Me(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>be(a,n,ke())))}),r)}var Wc=v("$ZodUnion",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),U(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Mr(i.source)).join("|")})$`)}});let t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=false,l=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)l.push(u),a=true;else {if(u.issues.length===0)return u;l.push(u);}}return a?Promise.all(l).then(s=>lc(s,o,e,i)):lc(l,o,e,i)};});var Hc=v("$ZodIntersection",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,u])=>sc(t,s,u)):sc(t,i,a)};});function Ln(e,r){if(e===r)return {valid:true,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return {valid:true,data:e};if(Ze(e)&&Ze(r)){let t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(let i of n){let a=Ln(e[i],r[i]);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data;}return {valid:true,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return {valid:false,mergeErrorPath:[]};let t=[];for(let n=0;n<e.length;n++){let o=e[n],i=r[n],a=Ln(o,i);if(!a.valid)return {valid:false,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data);}return {valid:true,data:t}}return {valid:false,mergeErrorPath:[]}}function sc(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Me(e))return e;let n=Ln(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var Xc=v("$ZodRecord",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ze(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),t;let i=[],a=r.keyType._zod.values;if(a){t.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let f=r.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&t.issues.push(...Te(u,p.issues)),t.value[u]=p.value;})):(f.issues.length&&t.issues.push(...Te(u,f.issues)),t.value[u]=f.value);}let s;for(let u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s});}else {t.value={};for(let l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let s=r.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.mode==="loose"?t.value[l]=o[l]:t.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>be(f,n,ke())),input:l,path:[l],inst:e});continue}let u=r.valueType._zod.run({value:o[l],issues:[]},n);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&t.issues.push(...Te(l,f.issues)),t.value[s.value]=f.value;})):(u.issues.length&&t.issues.push(...Te(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var Gc=v("$ZodEnum",(e,r)=>{M.init(e,r);let t=Lr(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Tn.has(typeof o)).map(o=>typeof o=="string"?Ve(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o};});var Kc=v("$ZodTransform",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);let o=r.transform(t.value,t);if(n.async)return (o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new Pe;return t.value=o,t};});function uc(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Yc=v("$ZodOptional",(e,r)=>{M.init(e,r),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>uc(i,t.value)):uc(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),qc=v("$ZodNullable",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)}|null)$`):void 0}),U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n);}),Qc=v("$ZodDefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>dc(i,r)):dc(o,r)};});function dc(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var el=v("$ZodPrefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n));}),rl=v("$ZodNonOptional",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>{let t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>mc(i,e)):mc(o,e)};});function mc(e,r){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var tl=v("$ZodCatch",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>be(a,n,ke()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>be(i,n,ke()))},input:t.value}),t.issues=[]),t)};});var nl=v("$ZodPipe",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>r.in._zod.values),U(e._zod,"optin",()=>r.in._zod.optin),U(e._zod,"optout",()=>r.out._zod.optout),U(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>Rt(a,r.in,n)):Rt(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>Rt(i,r.out,n)):Rt(o,r.out,n)};});function Rt(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var ol=v("$ZodReadonly",(e,r)=>{M.init(e,r),U(e._zod,"propValues",()=>r.innerType._zod.propValues),U(e._zod,"values",()=>r.innerType._zod.values),U(e._zod,"optin",()=>r.innerType?._zod?.optin),U(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(fc):fc(o)};});function fc(e){return e.value=Object.freeze(e.value),e}var il=v("$ZodCustom",(e,r)=>{Q.init(e,r),M.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{let n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>pc(i,t,n,e));pc(o,t,n,e);};});function pc(e,r,t,n){if(!e){let o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(xr(o));}}c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var al,Vn=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(r,...t){let n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){let t=r._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function pp(){return new Vn}(al=globalThis).__zod_globalRegistry??(al.__zod_globalRegistry=pp());var Je=globalThis.__zod_globalRegistry;c();function cl(e,r){return new e({type:"string",...D(r)})}function Mn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...D(r)})}function Jn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...D(r)})}function ll(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...D(r)})}function sl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...D(r)})}function ul(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...D(r)})}function dl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...D(r)})}function ml(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...D(r)})}function fl(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...D(r)})}function pl(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...D(r)})}function gl(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...D(r)})}function vl(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...D(r)})}function hl(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...D(r)})}function yl(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...D(r)})}function _l(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...D(r)})}function bl(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...D(r)})}function xl(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...D(r)})}function Sl(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...D(r)})}function Cl(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...D(r)})}function Pl(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...D(r)})}function kl(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...D(r)})}function $l(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...D(r)})}function wl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...D(r)})}function zl(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...D(r)})}function Dl(e,r){return new e({type:"string",format:"date",check:"string_format",...D(r)})}function Il(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...D(r)})}function Bl(e,r){return new e({type:"string",format:"duration",check:"string_format",...D(r)})}function Ol(e,r){return new e({type:"number",checks:[],...D(r)})}function Tl(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...D(r)})}function El(e){return new e({type:"unknown"})}function Rl(e,r){return new e({type:"never",...D(r)})}function jt(e,r){return new An({check:"less_than",...D(r),value:e,inclusive:false})}function Kr(e,r){return new An({check:"less_than",...D(r),value:e,inclusive:true})}function Nt(e,r){return new Un({check:"greater_than",...D(r),value:e,inclusive:false})}function Yr(e,r){return new Un({check:"greater_than",...D(r),value:e,inclusive:true})}function At(e,r){return new Ha({check:"multiple_of",...D(r),value:e})}function Ut(e,r){return new Ga({check:"max_length",...D(r),maximum:e})}function Sr(e,r){return new Ka({check:"min_length",...D(r),minimum:e})}function Lt(e,r){return new Ya({check:"length_equals",...D(r),length:e})}function Wn(e,r){return new qa({check:"string_format",format:"regex",...D(r),pattern:e})}function Hn(e){return new Qa({check:"string_format",format:"lowercase",...D(e)})}function Xn(e){return new ec({check:"string_format",format:"uppercase",...D(e)})}function Gn(e,r){return new rc({check:"string_format",format:"includes",...D(r),includes:e})}function Kn(e,r){return new tc({check:"string_format",format:"starts_with",...D(r),prefix:e})}function Yn(e,r){return new nc({check:"string_format",format:"ends_with",...D(r),suffix:e})}function We(e){return new oc({check:"overwrite",tx:e})}function qn(e){return We(r=>r.normalize(e))}function Qn(){return We(e=>e.trim())}function eo(){return We(e=>e.toLowerCase())}function ro(){return We(e=>e.toUpperCase())}function to(){return We(e=>Bn(e))}function Fl(e,r,t){return new e({type:"array",element:r,...D(t)})}function jl(e,r,t){return new e({type:"custom",check:"custom",fn:r,...D(t)})}function Nl(e){let r=yp(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(xr(n,t.value,r._zod.def));else {let o=n;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(xr(o));}},e(t.value,t)));return r}function yp(e,r){let t=new Q({check:"custom",...D(r)});return t._zod.check=e,t}c();function Zt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Je,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,t={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=r.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};r.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else {let f={...t,schemaPath:[...t.schemaPath,e],path:t.path},p=e._zod.parent;if(p)a.ref=p,X(p,r,f),r.seen.get(p).isParent=true;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,f);else {let h=a.schema,y=r.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,r,h,f);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&te(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}function Vt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,p=e.external.uri??(y=>y);if(f)return {ref:p(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${p("__shared")}#/${a}/${h}`}}if(i[1]===t)return {ref:"#"};let s=`#/${a}/`,u=i[1].schema.id??`__schema${e.counter++}`;return {defId:u,ref:s+u}},o=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:l,defId:s}=n(i);a.def={...a.schema},s&&(a.defId=s);let u=a.schema;for(let f in u)delete u[f];u.$ref=l;};if(e.cycles==="throw")for(let i of e.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
36
|
+
`);}y.write("payload.value = newResult;"),y.write("return payload;");let w=y.compile();return (P,F)=>w(h,P,F)},i,a=_r,l=!$t.jitless,u=l&&Tn.value,f=r.catchall,p;e._zod.parse=(h,y)=>{p??(p=n.value);let z=h.value;return a(z)?l&&u&&y?.async===false&&y.jitless!==true?(i||(i=o(r.shape)),h=i(h,y),f?Jc([],z,h,y,p,e):h):t(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),h)};});function sc(e,r,t,n){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let o=e.filter(i=>!Me(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>be(a,n,ke())))}),r)}var Hc=v("$ZodUnion",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),U(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Mr(i.source)).join("|")})$`)}});let t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=false,l=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)l.push(u),a=true;else {if(u.issues.length===0)return u;l.push(u);}}return a?Promise.all(l).then(s=>sc(s,o,e,i)):sc(l,o,e,i)};});var Xc=v("$ZodIntersection",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,u])=>uc(t,s,u)):uc(t,i,a)};});function Zn(e,r){if(e===r)return {valid:true,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return {valid:true,data:e};if(Ze(e)&&Ze(r)){let t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(let i of n){let a=Zn(e[i],r[i]);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data;}return {valid:true,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return {valid:false,mergeErrorPath:[]};let t=[];for(let n=0;n<e.length;n++){let o=e[n],i=r[n],a=Zn(o,i);if(!a.valid)return {valid:false,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data);}return {valid:true,data:t}}return {valid:false,mergeErrorPath:[]}}function uc(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Me(e))return e;let n=Zn(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var Gc=v("$ZodRecord",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ze(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),t;let i=[],a=r.keyType._zod.values;if(a){t.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let f=r.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&t.issues.push(...Te(u,p.issues)),t.value[u]=p.value;})):(f.issues.length&&t.issues.push(...Te(u,f.issues)),t.value[u]=f.value);}let s;for(let u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s});}else {t.value={};for(let l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let s=r.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.mode==="loose"?t.value[l]=o[l]:t.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>be(f,n,ke())),input:l,path:[l],inst:e});continue}let u=r.valueType._zod.run({value:o[l],issues:[]},n);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&t.issues.push(...Te(l,f.issues)),t.value[s.value]=f.value;})):(u.issues.length&&t.issues.push(...Te(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var Kc=v("$ZodEnum",(e,r)=>{M.init(e,r);let t=Lr(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>En.has(typeof o)).map(o=>typeof o=="string"?Ve(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o};});var Yc=v("$ZodTransform",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);let o=r.transform(t.value,t);if(n.async)return (o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new Pe;return t.value=o,t};});function dc(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var qc=v("$ZodOptional",(e,r)=>{M.init(e,r),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>dc(i,t.value)):dc(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),Qc=v("$ZodNullable",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)}|null)$`):void 0}),U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n);}),el=v("$ZodDefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>mc(i,r)):mc(o,r)};});function mc(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var rl=v("$ZodPrefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n));}),tl=v("$ZodNonOptional",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>{let t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>fc(i,e)):fc(o,e)};});function fc(e,r){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var nl=v("$ZodCatch",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>be(a,n,ke()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>be(i,n,ke()))},input:t.value}),t.issues=[]),t)};});var ol=v("$ZodPipe",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>r.in._zod.values),U(e._zod,"optin",()=>r.in._zod.optin),U(e._zod,"optout",()=>r.out._zod.optout),U(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>Et(a,r.in,n)):Et(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>Et(i,r.out,n)):Et(o,r.out,n)};});function Et(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var il=v("$ZodReadonly",(e,r)=>{M.init(e,r),U(e._zod,"propValues",()=>r.innerType._zod.propValues),U(e._zod,"values",()=>r.innerType._zod.values),U(e._zod,"optin",()=>r.innerType?._zod?.optin),U(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(pc):pc(o)};});function pc(e){return e.value=Object.freeze(e.value),e}var al=v("$ZodCustom",(e,r)=>{Q.init(e,r),M.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{let n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>gc(i,t,n,e));gc(o,t,n,e);};});function gc(e,r,t,n){if(!e){let o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(xr(o));}}c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var cl,Mn=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(r,...t){let n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){let t=r._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function gp(){return new Mn}(cl=globalThis).__zod_globalRegistry??(cl.__zod_globalRegistry=gp());var Je=globalThis.__zod_globalRegistry;c();function ll(e,r){return new e({type:"string",...D(r)})}function Jn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...D(r)})}function Wn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...D(r)})}function sl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...D(r)})}function ul(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...D(r)})}function dl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...D(r)})}function ml(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...D(r)})}function fl(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...D(r)})}function pl(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...D(r)})}function gl(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...D(r)})}function vl(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...D(r)})}function hl(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...D(r)})}function yl(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...D(r)})}function _l(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...D(r)})}function bl(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...D(r)})}function xl(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...D(r)})}function Sl(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...D(r)})}function Cl(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...D(r)})}function Pl(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...D(r)})}function kl(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...D(r)})}function $l(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...D(r)})}function wl(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...D(r)})}function zl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...D(r)})}function Dl(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...D(r)})}function Il(e,r){return new e({type:"string",format:"date",check:"string_format",...D(r)})}function Bl(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...D(r)})}function Ol(e,r){return new e({type:"string",format:"duration",check:"string_format",...D(r)})}function Tl(e,r){return new e({type:"number",checks:[],...D(r)})}function El(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...D(r)})}function Rl(e){return new e({type:"unknown"})}function Fl(e,r){return new e({type:"never",...D(r)})}function Ft(e,r){return new Un({check:"less_than",...D(r),value:e,inclusive:false})}function Kr(e,r){return new Un({check:"less_than",...D(r),value:e,inclusive:true})}function jt(e,r){return new Ln({check:"greater_than",...D(r),value:e,inclusive:false})}function Yr(e,r){return new Ln({check:"greater_than",...D(r),value:e,inclusive:true})}function Nt(e,r){return new Xa({check:"multiple_of",...D(r),value:e})}function At(e,r){return new Ka({check:"max_length",...D(r),maximum:e})}function Sr(e,r){return new Ya({check:"min_length",...D(r),minimum:e})}function Ut(e,r){return new qa({check:"length_equals",...D(r),length:e})}function Hn(e,r){return new Qa({check:"string_format",format:"regex",...D(r),pattern:e})}function Xn(e){return new ec({check:"string_format",format:"lowercase",...D(e)})}function Gn(e){return new rc({check:"string_format",format:"uppercase",...D(e)})}function Kn(e,r){return new tc({check:"string_format",format:"includes",...D(r),includes:e})}function Yn(e,r){return new nc({check:"string_format",format:"starts_with",...D(r),prefix:e})}function qn(e,r){return new oc({check:"string_format",format:"ends_with",...D(r),suffix:e})}function We(e){return new ic({check:"overwrite",tx:e})}function Qn(e){return We(r=>r.normalize(e))}function eo(){return We(e=>e.trim())}function ro(){return We(e=>e.toLowerCase())}function to(){return We(e=>e.toUpperCase())}function no(){return We(e=>On(e))}function jl(e,r,t){return new e({type:"array",element:r,...D(t)})}function Nl(e,r,t){return new e({type:"custom",check:"custom",fn:r,...D(t)})}function Al(e){let r=_p(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(xr(n,t.value,r._zod.def));else {let o=n;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(xr(o));}},e(t.value,t)));return r}function _p(e,r){let t=new Q({check:"custom",...D(r)});return t._zod.check=e,t}c();function Lt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Je,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,t={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=r.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};r.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else {let f={...t,schemaPath:[...t.schemaPath,e],path:t.path},p=e._zod.parent;if(p)a.ref=p,X(p,r,f),r.seen.get(p).isParent=true;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,f);else {let h=a.schema,y=r.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,r,h,f);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&te(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}function Zt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,p=e.external.uri??(y=>y);if(f)return {ref:p(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${p("__shared")}#/${a}/${h}`}}if(i[1]===t)return {ref:"#"};let s=`#/${a}/`,u=i[1].schema.id??`__schema${e.counter++}`;return {defId:u,ref:s+u}},o=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:l,defId:s}=n(i);a.def={...a.schema},s&&(a.defId=s);let u=a.schema;for(let f in u)delete u[f];u.$ref=l;};if(e.cycles==="throw")for(let i of e.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
37
37
|
|
|
38
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Mt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let f=l.ref;if(l.ref=null,f){n(f);let p=e.seen.get(f).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:qr(r,"input"),output:qr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function te(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return te(n.element,t);if(n.type==="set")return te(n.valueType,t);if(n.type==="lazy")return te(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return te(n.innerType,t);if(n.type==="intersection")return te(n.left,t)||te(n.right,t);if(n.type==="record"||n.type==="map")return te(n.keyType,t)||te(n.valueType,t);if(n.type==="pipe")return te(n.in,t)||te(n.out,t);if(n.type==="object"){for(let o in n.shape)if(te(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(te(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(te(o,t))return true;return !!(n.rest&&te(n.rest,t))}return false}var Al=(e,r={})=>t=>{let n=Zt({...t,processors:r});return X(e,n),Vt(n,e),Mt(n,e)},qr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Zt({...n??{},target:o,io:r,processors:{}});return X(e,i),Vt(i,e),Mt(i,e)};c();var _p={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ul=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=_p[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let f=[...s];f.length===1?o.pattern=f[0].source:f.length>1&&(o.allOf=[...f.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Ll=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:f}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof f=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=f,o.exclusiveMinimum=true):o.exclusiveMinimum=f),typeof i=="number"&&(o.minimum=i,typeof f=="number"&&r.target!=="draft-04"&&(f>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Zl=(e,r,t,n)=>{t.not={};};var Vl=(e,r,t,n)=>{};var Ml=(e,r,t,n)=>{let o=e._zod.def,i=Lr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var Jl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Wl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var Hl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=X(i.element,r,{...n,path:[...n.path,"items"]});},Xl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=X(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let f=i.shape[u]._zod;return r.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=X(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Gl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>X(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},Kl=(e,r,t,n)=>{let o=e._zod.def,i=X(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=X(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var Yl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=X(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=X(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},ql=(e,r,t,n)=>{let o=e._zod.def,i=X(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},Ql=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},es=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},rs=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},ts=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},ns=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;X(i,r,n);let a=r.seen.get(e);a.ref=i;},os=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var is=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var $p=v("ZodISODateTime",(e,r)=>{$c.init(e,r),V.init(e,r);});function as(e){return zl($p,e)}var wp=v("ZodISODate",(e,r)=>{wc.init(e,r),V.init(e,r);});function cs(e){return Dl(wp,e)}var zp=v("ZodISOTime",(e,r)=>{zc.init(e,r),V.init(e,r);});function ls(e){return Il(zp,e)}var Dp=v("ZodISODuration",(e,r)=>{Dc.init(e,r),V.init(e,r);});function ss(e){return Bl(Dp,e)}c();c();var us=(e,r)=>{It.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>sa(e,t)},flatten:{value:t=>la(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,br,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,br,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",us);var ce=v("ZodError",us,{Parent:Error});var ds=Bt(ce),ms=Ot(ce),fs=Wr(ce),ps=Hr(ce),gs=ma(ce),vs=fa(ce),hs=pa(ce),ys=ga(ce),_s=va(ce),bs=ha(ce),xs=ya(ce),Ss=_a(ce);var K=v("ZodType",(e,r)=>(M.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:qr(e,"input"),output:qr(e,"output")}}),e.toJSONSchema=Al(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>_e(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ds(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>fs(e,t,n),e.parseAsync=async(t,n)=>ms(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ps(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>gs(e,t,n),e.decode=(t,n)=>vs(e,t,n),e.encodeAsync=async(t,n)=>hs(e,t,n),e.decodeAsync=async(t,n)=>ys(e,t,n),e.safeEncode=(t,n)=>_s(e,t,n),e.safeDecode=(t,n)=>bs(e,t,n),e.safeEncodeAsync=async(t,n)=>xs(e,t,n),e.safeDecodeAsync=async(t,n)=>Ss(e,t,n),e.refine=(t,n)=>e.check(xg(t,n)),e.superRefine=t=>e.check(Sg(t)),e.overwrite=t=>e.check(We(t)),e.optional=()=>$s(e),e.nullable=()=>ws(e),e.nullish=()=>$s(ws(e)),e.nonoptional=t=>pg(e,t),e.array=()=>Ht(e),e.or=t=>ng([e,t]),e.and=t=>ig(e,t),e.transform=t=>zs(e,lg(t)),e.default=t=>dg(e,t),e.prefault=t=>fg(e,t),e.catch=t=>vg(e,t),e.pipe=t=>zs(e,t),e.readonly=()=>_g(e),e.describe=t=>{let n=e.clone();return Je.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Je.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Je.get(e);let n=e.clone();return Je.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ds=v("_ZodString",(e,r)=>{Gr.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Ul(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Wn(...n)),e.includes=(...n)=>e.check(Gn(...n)),e.startsWith=(...n)=>e.check(Kn(...n)),e.endsWith=(...n)=>e.check(Yn(...n)),e.min=(...n)=>e.check(Sr(...n)),e.max=(...n)=>e.check(Ut(...n)),e.length=(...n)=>e.check(Lt(...n)),e.nonempty=(...n)=>e.check(Sr(1,...n)),e.lowercase=n=>e.check(Hn(n)),e.uppercase=n=>e.check(Xn(n)),e.trim=()=>e.check(Qn()),e.normalize=(...n)=>e.check(qn(...n)),e.toLowerCase=()=>e.check(eo()),e.toUpperCase=()=>e.check(ro()),e.slugify=()=>e.check(to());}),Tp=v("ZodString",(e,r)=>{Gr.init(e,r),Ds.init(e,r),e.email=t=>e.check(Mn(Is,t)),e.url=t=>e.check(ml(Ep,t)),e.jwt=t=>e.check(wl(Gp,t)),e.emoji=t=>e.check(fl(Rp,t)),e.guid=t=>e.check(Jn(Cs,t)),e.uuid=t=>e.check(ll(Wt,t)),e.uuidv4=t=>e.check(sl(Wt,t)),e.uuidv6=t=>e.check(ul(Wt,t)),e.uuidv7=t=>e.check(dl(Wt,t)),e.nanoid=t=>e.check(pl(Fp,t)),e.guid=t=>e.check(Jn(Cs,t)),e.cuid=t=>e.check(gl(jp,t)),e.cuid2=t=>e.check(vl(Np,t)),e.ulid=t=>e.check(hl(Ap,t)),e.base64=t=>e.check(Pl(Wp,t)),e.base64url=t=>e.check(kl(Hp,t)),e.xid=t=>e.check(yl(Up,t)),e.ksuid=t=>e.check(_l(Lp,t)),e.ipv4=t=>e.check(bl(Zp,t)),e.ipv6=t=>e.check(xl(Vp,t)),e.cidrv4=t=>e.check(Sl(Mp,t)),e.cidrv6=t=>e.check(Cl(Jp,t)),e.e164=t=>e.check($l(Xp,t)),e.datetime=t=>e.check(as(t)),e.date=t=>e.check(cs(t)),e.time=t=>e.check(ls(t)),e.duration=t=>e.check(ss(t));});function L(e){return cl(Tp,e)}var V=v("ZodStringFormat",(e,r)=>{Z.init(e,r),Ds.init(e,r);}),Is=v("ZodEmail",(e,r)=>{hc.init(e,r),V.init(e,r);});function Bs(e){return Mn(Is,e)}var Cs=v("ZodGUID",(e,r)=>{gc.init(e,r),V.init(e,r);});var Wt=v("ZodUUID",(e,r)=>{vc.init(e,r),V.init(e,r);});var Ep=v("ZodURL",(e,r)=>{yc.init(e,r),V.init(e,r);});var Rp=v("ZodEmoji",(e,r)=>{_c.init(e,r),V.init(e,r);});var Fp=v("ZodNanoID",(e,r)=>{bc.init(e,r),V.init(e,r);});var jp=v("ZodCUID",(e,r)=>{xc.init(e,r),V.init(e,r);});var Np=v("ZodCUID2",(e,r)=>{Sc.init(e,r),V.init(e,r);});var Ap=v("ZodULID",(e,r)=>{Cc.init(e,r),V.init(e,r);});var Up=v("ZodXID",(e,r)=>{Pc.init(e,r),V.init(e,r);});var Lp=v("ZodKSUID",(e,r)=>{kc.init(e,r),V.init(e,r);});var Zp=v("ZodIPv4",(e,r)=>{Ic.init(e,r),V.init(e,r);});var Vp=v("ZodIPv6",(e,r)=>{Bc.init(e,r),V.init(e,r);});var Mp=v("ZodCIDRv4",(e,r)=>{Oc.init(e,r),V.init(e,r);});var Jp=v("ZodCIDRv6",(e,r)=>{Tc.init(e,r),V.init(e,r);});var Wp=v("ZodBase64",(e,r)=>{Rc.init(e,r),V.init(e,r);});var Hp=v("ZodBase64URL",(e,r)=>{Fc.init(e,r),V.init(e,r);});var Xp=v("ZodE164",(e,r)=>{jc.init(e,r),V.init(e,r);});var Gp=v("ZodJWT",(e,r)=>{Nc.init(e,r),V.init(e,r);});var Os=v("ZodNumber",(e,r)=>{Zn.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Ll(e,n,o),e.gt=(n,o)=>e.check(Nt(n,o)),e.gte=(n,o)=>e.check(Yr(n,o)),e.min=(n,o)=>e.check(Yr(n,o)),e.lt=(n,o)=>e.check(jt(n,o)),e.lte=(n,o)=>e.check(Kr(n,o)),e.max=(n,o)=>e.check(Kr(n,o)),e.int=n=>e.check(Ps(n)),e.safe=n=>e.check(Ps(n)),e.positive=n=>e.check(Nt(0,n)),e.nonnegative=n=>e.check(Yr(0,n)),e.negative=n=>e.check(jt(0,n)),e.nonpositive=n=>e.check(Kr(0,n)),e.multipleOf=(n,o)=>e.check(At(n,o)),e.step=(n,o)=>e.check(At(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function Cr(e){return Ol(Os,e)}var Kp=v("ZodNumberFormat",(e,r)=>{Ac.init(e,r),Os.init(e,r);});function Ps(e){return Tl(Kp,e)}var Yp=v("ZodUnknown",(e,r)=>{Uc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Vl();});function ks(){return El(Yp)}var qp=v("ZodNever",(e,r)=>{Lc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Zl(e,t,n);});function Qp(e){return Rl(qp,e)}var eg=v("ZodArray",(e,r)=>{Zc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Hl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(Sr(t,n)),e.nonempty=t=>e.check(Sr(1,t)),e.max=(t,n)=>e.check(Ut(t,n)),e.length=(t,n)=>e.check(Lt(t,n)),e.unwrap=()=>e.element;});function Ht(e,r){return Fl(eg,e,r)}var rg=v("ZodObject",(e,r)=>{Jc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ne(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ks()}),e.loose=()=>e.clone({...e._zod.def,catchall:ks()}),e.strict=()=>e.clone({...e._zod.def,catchall:Qp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Ts,e,t[0]),e.required=(...t)=>_.required(Es,e,t[0]);});function pe(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new rg(t)}var tg=v("ZodUnion",(e,r)=>{Wc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Gl(e,t,n,o),e.options=r.options;});function ng(e,r){return new tg({type:"union",options:e,..._.normalizeParams(r)})}var og=v("ZodIntersection",(e,r)=>{Hc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Kl(e,t,n,o);});function ig(e,r){return new og({type:"intersection",left:e,right:r})}var ag=v("ZodRecord",(e,r)=>{Xc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Yl(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Qr(e,r,t){return new ag({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var no=v("ZodEnum",(e,r)=>{Gc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Ml(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new no({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new no({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ne(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new no({type:"enum",entries:t,..._.normalizeParams(r)})}var cg=v("ZodTransform",(e,r)=>{Kc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Wl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function lg(e){return new cg({type:"transform",transform:e})}var Ts=v("ZodOptional",(e,r)=>{Yc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>is(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function $s(e){return new Ts({type:"optional",innerType:e})}var sg=v("ZodNullable",(e,r)=>{qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ql(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function ws(e){return new sg({type:"nullable",innerType:e})}var ug=v("ZodDefault",(e,r)=>{Qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>es(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function dg(e,r){return new ug({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var mg=v("ZodPrefault",(e,r)=>{el.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>rs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function fg(e,r){return new mg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Es=v("ZodNonOptional",(e,r)=>{rl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ql(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function pg(e,r){return new Es({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var gg=v("ZodCatch",(e,r)=>{tl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ts(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function vg(e,r){return new gg({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var hg=v("ZodPipe",(e,r)=>{nl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ns(e,t,n,o),e.in=r.in,e.out=r.out;});function zs(e,r){return new hg({type:"pipe",in:e,out:r})}var yg=v("ZodReadonly",(e,r)=>{ol.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>os(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function _g(e){return new yg({type:"readonly",innerType:e})}var bg=v("ZodCustom",(e,r)=>{il.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl(e,t);});function xg(e,r={}){return jl(bg,e,r)}function Sg(e){return Nl(e)}var Rs=ne(["Google"]),Xt=ne(["pdf","word","excel","img","txt","unknown"]);Xt.exclude(["unknown"]);var Cg=pe({lastModified:Cr().nullable(),uid:L().trim().optional(),uploadDate:Cr().optional(),sizeInBytes:Cr(),name:L().trim(),path:L().trim(),extension:L().trim().startsWith(".").lowercase(),description:L().trim().optional(),mime:L().trim().includes("/"),alias:Xt}),Fs={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:[]},Pg=L().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),kg=ne(["first","last"]),$g=Qr(kg,L().trim()),wg=ne(["streetAddress","city","parish","country"]);Qr(wg,L().trim());var zg=pe({name:$g,photoUrl:L().optional(),email:Bs(),phoneNumber:Pg.optional()});pe({uid:L(),...zg.shape});pe({body:pe({text:L().trim(),html:L().optional()}),recipients:Ht(L().trim()),subject:L().trim(),attachments:Ht(Cg)});pe({timestamp:Cr(),status:ne(["success","error","info"]),response:L().trim().or(Qr(ne(["tag","message"]),L().trim()))});var Dg=ne(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);pe({code:Dg,title:L().optional(),message:L().trim(),cause:L().optional()});pe({title:L().trim(),message:L().trim()});ne(["success","pending","error"]);ne(["JMD"]);function Ns(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:Ig(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Ig=e=>e.flatMap(r=>Fs[r]);function xI(e){return jsx(Ns,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:x(e.backgroundColor||"transparent"),borderColor:x(e.borderColor||"outlineVariant"),color:x(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"})]})})]})})}c();var Vs=createContext(null);function BI(e){let r=A({defaultValue:null}),t=A({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},f=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(P={asClick:true})=>{r.upsert("cancel"),f(),P.asClick&&e.onCancelClick?.(),a(false);},y=P=>{P.preventDefault(),a(false);},z=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},S=()=>{z(false);},$=()=>{e.onContentClick?.(),p();},w={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Vs.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...w,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:j[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...w,grid:true,gap:e.columnGap??w.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(g,{width:"full",align:"center",gap:"md",children:jsx(xe,{autoFocus:true,disableTransition: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||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:S,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?$:void 0,children:jsx(gr,{...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:ve({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Ug,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:z,onEdit:b}))]})]})})}function Ug(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(io,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(io,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(io,{icon:LuPencilLine,onClick:e.onEdit})}function io(e){let{padding:r,iconSize:t}=useContext(Vs);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(T,{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();}})})}c();var co=createContext(null);function Vg(e){return jsx(co,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Mg(e){let{fade:r}=useContext(co);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Jg(e){let{fade:r}=useContext(co);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(C,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Gt={Root:Vg,Indicator:Mg,Content:Jg};c();function He(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&Be__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:x(e.backgroundColor),color:x(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Ws(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})]})}c();var Hs=createContext(null);function rv(e){return jsx(Hs.Provider,{value:{gap:e.gap},children:jsx(g,{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 Xs(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function Gs(e){return r=>jsx("span",{style:(()=>{let n=k({...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"?ve(n):Br(r.truncateStyle.lineCount,n)})(),children:r.value})}var tv=Xs(),nv=Xs(),ov=e=>{let{gap:r=e.gap}=useContext(Hs);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},iv=Gs({fontWeight:"bold",fontSize:"xs",fade:.75}),av=Gs({fontSize:"sm"}),se={Root:rv,LeadingAddOn:tv,TrailingAddOn:nv,Content:ov,Label:iv,Item:av};c();function sv(e){let r=()=>{if(typeof e.fallback=="string"||Be__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{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(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(Ae,{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(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:k({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:k({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function uv(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var mB={Root:sv,Content:uv};c();function dv(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(g,{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(g,{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(He,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:ve(k({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:ve(k({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var xB={Root:dv,Content:g};c();function Ji(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(g,{centerContent:true,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}})})}c();c();function vv(e){let{triggerRerender:r}=G(),t=k({...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 fo=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},hv=fo("Header",{fontSize:"xl",fontWeight:"bold"}),yv=fo("Body",{gap:"md"}),_v=fo("Footer",{row:true,gap:"sm"}),bv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),xv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),R={Root:vv,Header:hv,Body:yv,Footer:_v,CloseTrigger:bv,ActionTrigger:xv};function ZB(e){let r=e.severity||"error",t=x(r,{preference:"res"});return jsxs(R.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(R.Header,{fontSize:"2xl",children:e.title}),jsxs(R.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
39
|
-
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(Ys,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(R.Footer,{gap:"md",children:[jsx(R.ActionTrigger,{children:jsx(T,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(T,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var po=createContext(null);function YB(e){let r=e.sections.flatMap(b=>typeof b=="object"?b.nestedItems:b),t=e.defaultSection?r.findIndex(b=>b===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=G(),a=A({defaultValue:[]}),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((b,S)=>{p(b,S);}),i();},[]);let f=(b=a.read())=>r.filter(S=>!b.includes(S)&&!s.includes(S)),p=(b=l,S=n)=>{let $=a.read();if(!s.includes(b)){if(e.isSectionComplete(b)&&!$.includes(b))$=[...$,b];else if(!e.isSectionComplete(b)&&$.includes(b))$=$.filter((w,P)=>P!==S);else return;a.upsert($),e.onSectionsStatusChange?.(f($),$);}},h=b=>{p(),o(r.findIndex(S=>S===b));},y=()=>{n>=r.length-1||(p(),o(n+1));},z=()=>{u||(p(),o(n-1));};return jsx(po.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(R.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(R.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(wv,{title:e.title,onSectionClick:h}),jsx(zv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:z,onNextClick:y,incompleteSections:f(),onSubmitClick:e.onSubmit})]})})})}function wv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(po);return jsxs(g,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(g,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Sn,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function zv(e){let{activeSection:r}=useContext(po),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(g,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(g,{children:[jsx(C,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(g,{size:"full",gap:"lg",children:i}),jsxs(g,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(vo,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(ho,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(go,{onClick:e.onNextClick})]})]})}c();c();var Dv=Ne({preset:{text:"Save",async:true}}),yo=Dv;function sO(e){let{triggerRerender:r}=G(),t=A({defaultValue:Object.fromEntries(Object.entries(e.fields).map(([a,l])=>[a,typeof l=="object"&&"defaultValue"in l?l.defaultValue:e.defaultValue?.[a]??""]))}),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(R.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(R.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(R.Body,{padding:"xs",children:Object.keys(e.fields).map(a=>{let l=a,s=e.fields[l],u=t.read()?.[l]??"",f=typeof s.label=="function"?s.label(a):!s.label||s.label==="prop-name"?e?.formatFieldPropName?.(a)??a:s.label,p=h=>t.upsert(y=>({...y||{},[l]:h}));return s.options?jsx(Bv,{label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(xe,{width:"full",placeholder:s.placeholder,label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(R.Footer,{children:[jsx(R.ActionTrigger,{children:jsx(it,{fade:.5,size:n,onClick:i})}),jsx(R.ActionTrigger,{children:jsx(yo,{size:n,onClick:o})})]})]})}function Bv(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Nr,{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(xe,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var ze={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},ct=createContext(null);function Rv(e){let r=x(e.borderColor||"outline[0.1]"),t=ge.md;return jsx(ct.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(g,{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:`"${ze.topbar} ${ze.topbar}" "${ze.sidebar} ${ze.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Fv(e){let{navThickness:r}=useContext(ct),t=qt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:k({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:k({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${H.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(C,{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(g,{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(C,{fontWeight:"bold",text:(e.file.extension||e.file.alias)?.toUpperCase()}),jsx(g,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(C,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function jv(e){let{navThickness:r}=useContext(ct),{children:t,...n}=e;return jsx(g,{...n,row:true,id:ze.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",justify:e.justify||"space-between",style:{...e.style||{},padding:e.style?.padding||"0px .5rem",gridArea:ze.topbar},children:e.children})}var ru=createContext(null);function Nv(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(ct);return jsx(ru.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:ze.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:ze.sidebar},children:e.children})})}function Av(e){let{onOptionClick:r}=useContext(ru),t=()=>{e.onClick?.(),r(e.label);};return jsx(gr,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(g,{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 Uv(e){let{borderColor:r,corners:t}=useContext(ct),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(a=>{for(let l of a)l.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],a=n.current?.parentElement,l=i.filter(s=>a?.querySelector(`#${ze[s]}`));i.every(s=>l.includes(s))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):l.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):l.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(g,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:ze.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 Lv(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(g,{...n,backgroundColor:e.color||"outline[0.1]"})}var yO={Root:Rv,Sidebar:Nv,SidebarOption:Av,Topbar:jv,Viewer:Uv,Indicator:Fv,Sep:Lv};c();var tu=(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))(tu||{});function nu(e){let r=tu[e.size||"sm"];return jsx(g,{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})}c();function ou(e){return jsxs(g,{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,a],l,s)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(a)?null:typeof a=="object"?`{
|
|
38
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Vt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let f=l.ref;if(l.ref=null,f){n(f);let p=e.seen.get(f).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:qr(r,"input"),output:qr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function te(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return te(n.element,t);if(n.type==="set")return te(n.valueType,t);if(n.type==="lazy")return te(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return te(n.innerType,t);if(n.type==="intersection")return te(n.left,t)||te(n.right,t);if(n.type==="record"||n.type==="map")return te(n.keyType,t)||te(n.valueType,t);if(n.type==="pipe")return te(n.in,t)||te(n.out,t);if(n.type==="object"){for(let o in n.shape)if(te(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(te(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(te(o,t))return true;return !!(n.rest&&te(n.rest,t))}return false}var Ul=(e,r={})=>t=>{let n=Lt({...t,processors:r});return X(e,n),Zt(n,e),Vt(n,e)},qr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Lt({...n??{},target:o,io:r,processors:{}});return X(e,i),Zt(i,e),Vt(i,e)};c();var bp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ll=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=bp[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let f=[...s];f.length===1?o.pattern=f[0].source:f.length>1&&(o.allOf=[...f.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Zl=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:f}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof f=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=f,o.exclusiveMinimum=true):o.exclusiveMinimum=f),typeof i=="number"&&(o.minimum=i,typeof f=="number"&&r.target!=="draft-04"&&(f>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Vl=(e,r,t,n)=>{t.not={};};var Ml=(e,r,t,n)=>{};var Jl=(e,r,t,n)=>{let o=e._zod.def,i=Lr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var Wl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Hl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var Xl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=X(i.element,r,{...n,path:[...n.path,"items"]});},Gl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=X(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let f=i.shape[u]._zod;return r.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=X(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Kl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>X(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},Yl=(e,r,t,n)=>{let o=e._zod.def,i=X(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=X(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var ql=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=X(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=X(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},Ql=(e,r,t,n)=>{let o=e._zod.def,i=X(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},es=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},rs=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},ts=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},ns=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},os=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;X(i,r,n);let a=r.seen.get(e);a.ref=i;},is=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var as=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var wp=v("ZodISODateTime",(e,r)=>{wc.init(e,r),V.init(e,r);});function cs(e){return Dl(wp,e)}var zp=v("ZodISODate",(e,r)=>{zc.init(e,r),V.init(e,r);});function ls(e){return Il(zp,e)}var Dp=v("ZodISOTime",(e,r)=>{Dc.init(e,r),V.init(e,r);});function ss(e){return Bl(Dp,e)}var Ip=v("ZodISODuration",(e,r)=>{Ic.init(e,r),V.init(e,r);});function us(e){return Ol(Ip,e)}c();c();var ds=(e,r)=>{Dt.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ua(e,t)},flatten:{value:t=>sa(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,br,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,br,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",ds);var ce=v("ZodError",ds,{Parent:Error});var ms=It(ce),fs=Bt(ce),ps=Wr(ce),gs=Hr(ce),vs=fa(ce),hs=pa(ce),ys=ga(ce),_s=va(ce),bs=ha(ce),xs=ya(ce),Ss=_a(ce),Cs=ba(ce);var K=v("ZodType",(e,r)=>(M.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:qr(e,"input"),output:qr(e,"output")}}),e.toJSONSchema=Ul(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>_e(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ms(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ps(e,t,n),e.parseAsync=async(t,n)=>fs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>gs(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>vs(e,t,n),e.decode=(t,n)=>hs(e,t,n),e.encodeAsync=async(t,n)=>ys(e,t,n),e.decodeAsync=async(t,n)=>_s(e,t,n),e.safeEncode=(t,n)=>bs(e,t,n),e.safeDecode=(t,n)=>xs(e,t,n),e.safeEncodeAsync=async(t,n)=>Ss(e,t,n),e.safeDecodeAsync=async(t,n)=>Cs(e,t,n),e.refine=(t,n)=>e.check(Sg(t,n)),e.superRefine=t=>e.check(Cg(t)),e.overwrite=t=>e.check(We(t)),e.optional=()=>ws(e),e.nullable=()=>zs(e),e.nullish=()=>ws(zs(e)),e.nonoptional=t=>gg(e,t),e.array=()=>Wt(e),e.or=t=>og([e,t]),e.and=t=>ag(e,t),e.transform=t=>Ds(e,sg(t)),e.default=t=>mg(e,t),e.prefault=t=>pg(e,t),e.catch=t=>hg(e,t),e.pipe=t=>Ds(e,t),e.readonly=()=>bg(e),e.describe=t=>{let n=e.clone();return Je.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Je.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Je.get(e);let n=e.clone();return Je.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Is=v("_ZodString",(e,r)=>{Gr.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Ll(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Hn(...n)),e.includes=(...n)=>e.check(Kn(...n)),e.startsWith=(...n)=>e.check(Yn(...n)),e.endsWith=(...n)=>e.check(qn(...n)),e.min=(...n)=>e.check(Sr(...n)),e.max=(...n)=>e.check(At(...n)),e.length=(...n)=>e.check(Ut(...n)),e.nonempty=(...n)=>e.check(Sr(1,...n)),e.lowercase=n=>e.check(Xn(n)),e.uppercase=n=>e.check(Gn(n)),e.trim=()=>e.check(eo()),e.normalize=(...n)=>e.check(Qn(...n)),e.toLowerCase=()=>e.check(ro()),e.toUpperCase=()=>e.check(to()),e.slugify=()=>e.check(no());}),Ep=v("ZodString",(e,r)=>{Gr.init(e,r),Is.init(e,r),e.email=t=>e.check(Jn(Bs,t)),e.url=t=>e.check(fl(Rp,t)),e.jwt=t=>e.check(zl(Kp,t)),e.emoji=t=>e.check(pl(Fp,t)),e.guid=t=>e.check(Wn(Ps,t)),e.uuid=t=>e.check(sl(Jt,t)),e.uuidv4=t=>e.check(ul(Jt,t)),e.uuidv6=t=>e.check(dl(Jt,t)),e.uuidv7=t=>e.check(ml(Jt,t)),e.nanoid=t=>e.check(gl(jp,t)),e.guid=t=>e.check(Wn(Ps,t)),e.cuid=t=>e.check(vl(Np,t)),e.cuid2=t=>e.check(hl(Ap,t)),e.ulid=t=>e.check(yl(Up,t)),e.base64=t=>e.check(kl(Hp,t)),e.base64url=t=>e.check($l(Xp,t)),e.xid=t=>e.check(_l(Lp,t)),e.ksuid=t=>e.check(bl(Zp,t)),e.ipv4=t=>e.check(xl(Vp,t)),e.ipv6=t=>e.check(Sl(Mp,t)),e.cidrv4=t=>e.check(Cl(Jp,t)),e.cidrv6=t=>e.check(Pl(Wp,t)),e.e164=t=>e.check(wl(Gp,t)),e.datetime=t=>e.check(cs(t)),e.date=t=>e.check(ls(t)),e.time=t=>e.check(ss(t)),e.duration=t=>e.check(us(t));});function L(e){return ll(Ep,e)}var V=v("ZodStringFormat",(e,r)=>{Z.init(e,r),Is.init(e,r);}),Bs=v("ZodEmail",(e,r)=>{yc.init(e,r),V.init(e,r);});function Os(e){return Jn(Bs,e)}var Ps=v("ZodGUID",(e,r)=>{vc.init(e,r),V.init(e,r);});var Jt=v("ZodUUID",(e,r)=>{hc.init(e,r),V.init(e,r);});var Rp=v("ZodURL",(e,r)=>{_c.init(e,r),V.init(e,r);});var Fp=v("ZodEmoji",(e,r)=>{bc.init(e,r),V.init(e,r);});var jp=v("ZodNanoID",(e,r)=>{xc.init(e,r),V.init(e,r);});var Np=v("ZodCUID",(e,r)=>{Sc.init(e,r),V.init(e,r);});var Ap=v("ZodCUID2",(e,r)=>{Cc.init(e,r),V.init(e,r);});var Up=v("ZodULID",(e,r)=>{Pc.init(e,r),V.init(e,r);});var Lp=v("ZodXID",(e,r)=>{kc.init(e,r),V.init(e,r);});var Zp=v("ZodKSUID",(e,r)=>{$c.init(e,r),V.init(e,r);});var Vp=v("ZodIPv4",(e,r)=>{Bc.init(e,r),V.init(e,r);});var Mp=v("ZodIPv6",(e,r)=>{Oc.init(e,r),V.init(e,r);});var Jp=v("ZodCIDRv4",(e,r)=>{Tc.init(e,r),V.init(e,r);});var Wp=v("ZodCIDRv6",(e,r)=>{Ec.init(e,r),V.init(e,r);});var Hp=v("ZodBase64",(e,r)=>{Fc.init(e,r),V.init(e,r);});var Xp=v("ZodBase64URL",(e,r)=>{jc.init(e,r),V.init(e,r);});var Gp=v("ZodE164",(e,r)=>{Nc.init(e,r),V.init(e,r);});var Kp=v("ZodJWT",(e,r)=>{Ac.init(e,r),V.init(e,r);});var Ts=v("ZodNumber",(e,r)=>{Vn.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Zl(e,n,o),e.gt=(n,o)=>e.check(jt(n,o)),e.gte=(n,o)=>e.check(Yr(n,o)),e.min=(n,o)=>e.check(Yr(n,o)),e.lt=(n,o)=>e.check(Ft(n,o)),e.lte=(n,o)=>e.check(Kr(n,o)),e.max=(n,o)=>e.check(Kr(n,o)),e.int=n=>e.check(ks(n)),e.safe=n=>e.check(ks(n)),e.positive=n=>e.check(jt(0,n)),e.nonnegative=n=>e.check(Yr(0,n)),e.negative=n=>e.check(Ft(0,n)),e.nonpositive=n=>e.check(Kr(0,n)),e.multipleOf=(n,o)=>e.check(Nt(n,o)),e.step=(n,o)=>e.check(Nt(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function Cr(e){return Tl(Ts,e)}var Yp=v("ZodNumberFormat",(e,r)=>{Uc.init(e,r),Ts.init(e,r);});function ks(e){return El(Yp,e)}var qp=v("ZodUnknown",(e,r)=>{Lc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ml();});function $s(){return Rl(qp)}var Qp=v("ZodNever",(e,r)=>{Zc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Vl(e,t,n);});function eg(e){return Fl(Qp,e)}var rg=v("ZodArray",(e,r)=>{Vc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(Sr(t,n)),e.nonempty=t=>e.check(Sr(1,t)),e.max=(t,n)=>e.check(At(t,n)),e.length=(t,n)=>e.check(Ut(t,n)),e.unwrap=()=>e.element;});function Wt(e,r){return jl(rg,e,r)}var tg=v("ZodObject",(e,r)=>{Wc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Gl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ie(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$s()}),e.loose=()=>e.clone({...e._zod.def,catchall:$s()}),e.strict=()=>e.clone({...e._zod.def,catchall:eg()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Es,e,t[0]),e.required=(...t)=>_.required(Rs,e,t[0]);});function le(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new tg(t)}var ng=v("ZodUnion",(e,r)=>{Hc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Kl(e,t,n,o),e.options=r.options;});function og(e,r){return new ng({type:"union",options:e,..._.normalizeParams(r)})}var ig=v("ZodIntersection",(e,r)=>{Xc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Yl(e,t,n,o);});function ag(e,r){return new ig({type:"intersection",left:e,right:r})}var cg=v("ZodRecord",(e,r)=>{Gc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ql(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Ht(e,r,t){return new cg({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var oo=v("ZodEnum",(e,r)=>{Kc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Jl(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new oo({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new oo({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ie(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new oo({type:"enum",entries:t,..._.normalizeParams(r)})}var lg=v("ZodTransform",(e,r)=>{Yc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Hl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function sg(e){return new lg({type:"transform",transform:e})}var Es=v("ZodOptional",(e,r)=>{qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>as(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function ws(e){return new Es({type:"optional",innerType:e})}var ug=v("ZodNullable",(e,r)=>{Qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ql(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function zs(e){return new ug({type:"nullable",innerType:e})}var dg=v("ZodDefault",(e,r)=>{el.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>rs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function mg(e,r){return new dg({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var fg=v("ZodPrefault",(e,r)=>{rl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ts(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function pg(e,r){return new fg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Rs=v("ZodNonOptional",(e,r)=>{tl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>es(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function gg(e,r){return new Rs({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var vg=v("ZodCatch",(e,r)=>{nl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ns(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function hg(e,r){return new vg({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var yg=v("ZodPipe",(e,r)=>{ol.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>os(e,t,n,o),e.in=r.in,e.out=r.out;});function Ds(e,r){return new yg({type:"pipe",in:e,out:r})}var _g=v("ZodReadonly",(e,r)=>{il.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>is(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function bg(e){return new _g({type:"readonly",innerType:e})}var xg=v("ZodCustom",(e,r)=>{al.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Wl(e,t);});function Sg(e,r={}){return Nl(xg,e,r)}function Cg(e){return Al(e)}var Fs=ie(["Google"]),Gt=ie(["pdf","word","excel","img","txt","unknown"]);Gt.exclude(["unknown"]);var Pg=le({lastModified:Cr().nullable(),uid:L().trim().optional(),uploadDate:Cr().optional(),sizeInBytes:Cr(),name:L().trim(),path:L().trim(),extension:L().trim().startsWith(".").lowercase(),description:L().trim().optional(),mime:L().trim().includes("/"),alias:Gt}),js={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:[]},kg=L().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),$g=ie(["first","last"]),wg=Ht($g,L().trim()),Xt=L().trim();le({streetAddress:Xt,city:Xt.optional(),parish:Xt,country:Xt});var zg=le({name:wg,photoUrl:L().nullish(),email:Os(),phoneNumber:kg.optional()});le({uid:L(),...zg.shape});le({body:le({text:L().trim(),html:L().optional()}),recipients:Wt(L().trim()),subject:L().trim(),attachments:Wt(Pg)});le({timestamp:Cr(),status:ie(["success","error","info"]),response:L().trim().or(Ht(ie(["tag","message"]),L().trim()))});var Dg=ie(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);le({code:Dg,title:L().optional(),message:L().trim(),cause:L().optional()});le({title:L().trim(),message:L().trim()});ie(["success","pending","error"]);ie(["JMD"]);function As(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:Ig(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Ig=e=>e.flatMap(r=>js[r]);function xI(e){return jsx(As,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:x(e.backgroundColor||"transparent"),borderColor:x(e.borderColor||"outlineVariant"),color:x(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"})]})})]})})}c();var Ms=createContext(null);function BI(e){let r=A({defaultValue:null}),t=A({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},f=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(P={asClick:true})=>{r.upsert("cancel"),f(),P.asClick&&e.onCancelClick?.(),a(false);},y=P=>{P.preventDefault(),a(false);},z=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},S=()=>{z(false);},$=()=>{e.onContentClick?.(),p();},w={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Ms.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...w,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:j[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...w,grid:true,gap:e.columnGap??w.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(g,{width:"full",align:"center",gap:"md",children:jsx(xe,{autoFocus:true,disableTransition: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||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:S,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?$:void 0,children:jsx(gr,{...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:ve({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Ug,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:z,onEdit:b}))]})]})})}function Ug(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(ao,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(ao,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(ao,{icon:LuPencilLine,onClick:e.onEdit})}function ao(e){let{padding:r,iconSize:t}=useContext(Ms);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(T,{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();}})})}c();var lo=createContext(null);function Vg(e){return jsx(lo,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Mg(e){let{fade:r}=useContext(lo);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Jg(e){let{fade:r}=useContext(lo);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(C,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Kt={Root:Vg,Indicator:Mg,Content:Jg};c();function He(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&Be__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:x(e.backgroundColor),color:x(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Hs(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})]})}c();var Xs=createContext(null);function rv(e){return jsx(Xs.Provider,{value:{gap:e.gap},children:jsx(g,{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 Gs(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function Ks(e){return r=>jsx("span",{style:(()=>{let n=k({...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"?ve(n):Br(r.truncateStyle.lineCount,n)})(),children:r.value})}var tv=Gs(),nv=Gs(),ov=e=>{let{gap:r=e.gap}=useContext(Xs);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},iv=Ks({fontWeight:"bold",fontSize:"xs",fade:.75}),av=Ks({fontSize:"sm"}),ue={Root:rv,LeadingAddOn:tv,TrailingAddOn:nv,Content:ov,Label:iv,Item:av};c();function sv(e){let r=()=>{if(typeof e.fallback=="string"||Be__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{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(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(Ae,{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(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:k({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:k({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function uv(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var mB={Root:sv,Content:uv};c();function dv(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(g,{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(g,{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(He,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:ve(k({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:ve(k({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var xB={Root:dv,Content:g};c();function Wi(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(g,{centerContent:true,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}})})}c();c();function vv(e){let{triggerRerender:r}=G(),t=k({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i),i||e.onClose?.();},o=()=>{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 po=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},hv=po("Header",{fontSize:"xl",fontWeight:"bold"}),yv=po("Body",{gap:"md"}),_v=po("Footer",{row:true,gap:"sm"}),bv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),xv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),R={Root:vv,Header:hv,Body:yv,Footer:_v,CloseTrigger:bv,ActionTrigger:xv};function ZB(e){let r=e.severity||"error",t=x(r,{preference:"res"});return jsxs(R.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(R.Header,{fontSize:"2xl",children:e.title}),jsxs(R.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
39
|
+
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(qs,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(R.Footer,{gap:"md",children:[jsx(R.ActionTrigger,{children:jsx(T,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(T,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var go=createContext(null);function YB(e){let r=e.sections.flatMap(b=>typeof b=="object"?b.nestedItems:b),t=e.defaultSection?r.findIndex(b=>b===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=G(),a=A({defaultValue:[]}),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((b,S)=>{p(b,S);}),i();},[]);let f=(b=a.read())=>r.filter(S=>!b.includes(S)&&!s.includes(S)),p=(b=l,S=n)=>{let $=a.read();if(!s.includes(b)){if(e.isSectionComplete(b)&&!$.includes(b))$=[...$,b];else if(!e.isSectionComplete(b)&&$.includes(b))$=$.filter((w,P)=>P!==S);else return;a.upsert($),e.onSectionsStatusChange?.(f($),$);}},h=b=>{p(),o(r.findIndex(S=>S===b));},y=()=>{n>=r.length-1||(p(),o(n+1));},z=()=>{u||(p(),o(n-1));};return jsx(go.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(R.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(R.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(wv,{title:e.title,onSectionClick:h}),jsx(zv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:z,onNextClick:y,incompleteSections:f(),onSubmitClick:e.onSubmit})]})})})}function wv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(go);return jsxs(g,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(g,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Cn,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function zv(e){let{activeSection:r}=useContext(go),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(g,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(g,{children:[jsx(C,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(g,{size:"full",gap:"lg",children:i}),jsxs(g,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(ho,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(yo,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(vo,{onClick:e.onNextClick})]})]})}c();c();var Dv=Ne({preset:{text:"Save",async:true}}),_o=Dv;function sO(e){let{triggerRerender:r}=G(),t=A({defaultValue:Object.fromEntries(Object.entries(e.fields).map(([a,l])=>[a,typeof l=="object"&&"defaultValue"in l?l.defaultValue:e.defaultValue?.[a]??""]))}),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(R.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(R.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(R.Body,{padding:"xs",children:Object.keys(e.fields).map(a=>{let l=a,s=e.fields[l],u=t.read()?.[l]??"",f=typeof s.label=="function"?s.label(a):!s.label||s.label==="prop-name"?e?.formatFieldPropName?.(a)??a:s.label,p=h=>t.upsert(y=>({...y||{},[l]:h}));return s.options?jsx(Bv,{label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(xe,{width:"full",placeholder:s.placeholder,label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(R.Footer,{children:[jsx(R.ActionTrigger,{children:jsx(ot,{fade:.5,size:n,onClick:i})}),jsx(R.ActionTrigger,{children:jsx(_o,{size:n,onClick:o})})]})]})}function Bv(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Nr,{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(xe,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var ze={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},at=createContext(null);function Rv(e){let r=x(e.borderColor||"outline[0.1]"),t=ge.md;return jsx(at.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(g,{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:`"${ze.topbar} ${ze.topbar}" "${ze.sidebar} ${ze.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Fv(e){let{navThickness:r}=useContext(at),t=Qt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:k({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:k({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${H.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(C,{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(g,{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(C,{fontWeight:"bold",text:(e.file.extension||e.file.alias)?.toUpperCase()}),jsx(g,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(C,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function jv(e){let{navThickness:r}=useContext(at),{children:t,...n}=e;return jsx(g,{...n,row:true,id:ze.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",justify:e.justify||"space-between",style:{...e.style||{},padding:e.style?.padding||"0px .5rem",gridArea:ze.topbar},children:e.children})}var tu=createContext(null);function Nv(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(at);return jsx(tu.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:ze.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:ze.sidebar},children:e.children})})}function Av(e){let{onOptionClick:r}=useContext(tu),t=()=>{e.onClick?.(),r(e.label);};return jsx(gr,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(g,{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 Uv(e){let{borderColor:r,corners:t}=useContext(at),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(a=>{for(let l of a)l.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],a=n.current?.parentElement,l=i.filter(s=>a?.querySelector(`#${ze[s]}`));i.every(s=>l.includes(s))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):l.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):l.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(g,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:ze.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 Lv(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(g,{...n,backgroundColor:e.color||"outline[0.1]"})}var yO={Root:Rv,Sidebar:Nv,SidebarOption:Av,Topbar:jv,Viewer:Uv,Indicator:Fv,Sep:Lv};c();var nu=(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))(nu||{});function ou(e){let r=nu[e.size||"sm"];return jsx(g,{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})}c();function iu(e){return jsxs(g,{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,a],l,s)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(a)?null:typeof a=="object"?`{
|
|
40
40
|
${t(a,true)}
|
|
41
41
|
}`:a}`+(l===lastIndex(s)?"":",")).join(`
|
|
42
|
-
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(g,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(g,{gap:"sm",children:[jsx(C,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(C,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var
|
|
42
|
+
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(g,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(g,{gap:"sm",children:[jsx(C,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(C,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var cu=createContext(null);function Gv(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(cu.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(Kv,{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:x(r),color:x(t),style:k({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(Gv,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(au,{isTrigger:true,value:o})}):jsx(au,{...i,value:o})})})})})]})})}function Kv(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function au(e){let{color:r,onItemClick:t}=useContext(cu),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:a}=e.sx?.[":hover"]||{},l={disabled:e.disabled,backgroundColor:x(e.backgroundColor||"transparent"),color:x(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:x(i),color:a?x(a):void 0},_active:e.sx?.[":active"]?{...k({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:o};return e.isTrigger?jsxs(Menu.TriggerItem,{...l,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...l,value:e.value,children:[e.leadingEl,jsx(g,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(n,{})]})}c();var du=createContext(null);function rT(e){let[r,t]=useState(false),n=e.controller||mu(0),[o,i]=useState(n.defaultPage??0),a;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),n.goTo=useCallback((f,p)=>{let h=p?.transition||"smooth",y=o;if(!(f===y||r||!p?.ignoreOutOfBoundsCheck&&!e.children[f]))if(a?.(y,f),e.onChange?.(y,f),h==="smooth"){t(true);let z=y,b=setInterval(()=>{f>y?z++:z--,i(z),z===f&&(clearInterval(b),t(false));},p?.transitionDuration||200);}else i(f);},[o,e.children,r]),n.echo=e.onEcho,n.isPageActive=useCallback(f=>f===o,[o]),n.onPageChange=useCallback(f=>{a=f;},[]),n.getActivePage=useCallback(()=>o,[o]),useEffect(()=>()=>{for(let p of Object.keys(n)){let h=p;typeof n[h]=="function"&&(n[h]=null);}a=null;},[]);let l=()=>n.goTo(o-1),s=()=>n.goTo(o+1),u=k({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(du.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:u.height,width:u.width??"100%",justifyContent:"center",gap:u.gap??".5rem",overflow:u.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(uu,{disabled:o<=0,inset:"left",onClick:l}),e.children.map((f,p)=>{let h=Math.sign(o-p),y=Math.abs(o-p)/3,z=Math.abs(o-p)>(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:z?"none":"flex",position:"absolute",opacity:p!==o&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,justifyContent:"center",alignItems:"center",transform:`
|
|
43
43
|
scaleY(calc(1 + ${y} * -0.4))
|
|
44
44
|
translateZ(calc(${y} * -10rem))
|
|
45
|
-
translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof f=="function"?jsx(f,{isActive:p===o}):f},p)}),!e.hideControls&&jsx(su,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function su(e){let r=useContext(uu),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{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})})}c();c();var rn=createContext(null);function gr(e){let r=A({defaultValue:e.open??false}),{triggerRerender:t}=G(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=Be__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 u=e.placement||"bottom-left",f=["top","right","bottom","left"].includes(u),p=f?{positionArea:u}:ch(e.anchorPoint||"top-left",ah(u));if(!e.visibleOnScroll){let y=fi(o.current);y&&y.addEventListener("scroll",z=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${z.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...k({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(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 u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",f=>{let p=f.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let f,h=()=>{f&&(f=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?f=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{f&&clearTimeout(f);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,f)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??f,s=(u,f)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&f in e.delay&&(p=e.delay[f]),setTimeout(u,p);};return jsxs(rn.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var ah=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},ch=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function bT(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?x(e.backgroundColor):void 0,boxShadow:e.borderColor?`${x(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in H?H[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?x(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 H?H[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(uh,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function uh(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in j?j[e.fontSize]:e.fontSize,border:0,color:x(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function yu(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:x(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function IT(e){return jsx(g,{id:e.id,style:mh({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var dh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],mh=e=>{let{height:r,width:t}=dh(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:x("paper"),color:x("onPaper"),overflow:"hidden"}};c();function bu(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function ZT(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"})})]})]})]})}c();c();var Pu=Be.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...f}=r;return i?o:jsxs(Tooltip.Root,{...f,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function nn(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=k({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(Pu,{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?{...k(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var Co=createContext(null);function Ch(e){let r=A({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:x(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx(Co.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function Ph(e){let[r,t]=useState(),{register:n}=useContext(Co),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let f=n();typeof f=="string"&&t(f);},[r]);let u=f=>r===f||r==="both";return jsxs(Fragment,{children:[jsx($u,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(wu,{hide:u("first")}),jsx(g,{style:{...k({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(wu,{hide:u("last")})]}),jsx($u,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function $u(e){return jsx(g,{size:"full",style:{...k({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function wu(e){let{lineSeparatorColor:r}=useContext(Co);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var lE={Root:Ch,Item:Ph};c();function gE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:x(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:x(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var Po=(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 xe(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:f,...p}=e,h={label:k({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof f=="string"&&f in j?f:void 0)}),helperText:k({...e?.slotProps?.helperText}),root:k({width:e.width}),input:k({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none",...e.style}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=S=>{if(e.format!=="currency")return;let $=S;if($=$.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((w,P)=>P<2).join("."),$&&takeLast($.split(""))[0]!=="."){let w=parseFloat($);if(!isNaN(w)){let P=new Intl.NumberFormat;y(P.format(w));}}};o.current?.addEventListener?.("beforeinput",S=>{let $=S.data,w=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";w==="all"||Array.isArray(w)&&w.includes("all")||$===null||(!Array.isArray(w)&&!Po($,w)||Array.isArray(w)&&w.some(P=>!Po($,P)))&&S.preventDefault();}),o.current?.addEventListener?.("paste",S=>{b(S.target.value);}),o.current?.addEventListener?.("input",S=>{b(S.target.value);});},[o.current]);let z=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Th,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:z,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in j?j[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):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:f,zIndex:1,variant:e.variant,css:{transition:e.disableTransition?"none":"all 200ms ease-in","--focus-color":x(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:x(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let S=b.currentTarget.value;switch(e.allowHtmlInput||(S=gi(S)),e.trimOnChange){case "start":S=S.trimStart();break;case "end":S=S.trimEnd();break;case true:S=S.trim();break}e.validateInput?.(S)!==false&&(e.onChange?.(S,b),n||t(S));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Th(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:H.sm,width:"100%"},children:[e.children,e.useCopy&&jsx($r,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Ou,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function Ys(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:x(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?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(pi(s));},style:k({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${k({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function Eu(e){return {FlyLeavingBox:Nh}[e]}var zo=createContext(null);function Lh(e){let r=A({defaultValue:e.attachments||[]}),{triggerRerender:t}=G(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(zo.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(R.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(R.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(R.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Mh,{}):jsx(Zh,{})})]})})}function Zh(){let e=useContext(zo),r=A(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},f=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(Bo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Vh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:f},p.uid))}),!e.hideUploadButton&&jsx(ft,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Vh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=qt(r);return jsxs(se.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(se.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(Ae,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(se.Content,{gap:"sm",width:"full",children:[jsx(se.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(se.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(Io,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(mt,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Mh(){let e=useContext(zo);return jsxs(Gt.Root,{children:[jsx(Gt.Indicator,{size:"7rem",disableFade:true,element:jsx(Ae,{spill:"hidden",size:"full",src:Eu("FlyLeavingBox")})}),jsx(Gt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(ft,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var Do=Lh;function Hh(e){let r=A({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=G(),n=o=>{r.upsert(o);};return jsx(nn,{tooltip:"Attachments",placement:"right",children:jsx(Ws,{circleChild:true,asChild:!e.attachments,badge:jsx(nu,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Xh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{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 Xh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(Do,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var Oo=Hh;c();var Kh=Ne({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),it=Kh;c();function Qh(e){return jsx(T,{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 mt=Qh;c();function ty(e){let{iconOnly:r,...t}=e;return jsx(T,{...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 ny=ty;c();function sy(e){let r=A({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var uy=sy;c();function dy(e){return jsx(T,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var go=dy;c();function py(e){return jsx(T,{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 Io=py;c();function hy(e){return jsx(T,{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 yy=hy;c();function xy(e){let r=jsx(T,{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(To,{triggerElement:r,options:e.options}):r}var Sy=xy;c();function Cy(e){return jsx(T,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var vo=Cy;c();function $y(e){return jsx(T,{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 Eo=$y;c();function wy(e){return jsx(T,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var ho=wy;c();function Iy(e){return jsx(T,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var Ro=Iy;c();function Oy(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:mi({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsx(C,{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(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Ty=Oy;c();function Fy(e){return jsxs(se.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(se.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(Ae,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(se.Content,{width:"full",gap:"xs",children:[jsx(se.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(se.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(se.TrailingAddOn,{children:jsx(mt,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var jy=Fy;c();c();var Ny=Ne({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Vu=Ny;c();function an(e){let[r,t]=useState(e.selectedDate||new Date),[n,o]=useState(new Date(r)),i=useRef(false);Ju(()=>{i.current=false,e.onDateSelected?.(r);},[r]);let a=()=>{let O=new Date(n);return O.setMonth(n.getMonth()-1),O},l=()=>{let O=new Date(n);return O.setMonth(n.getMonth()+1),O},s=()=>{let O=new Date(n);return O.setDate(1),O.getDay()},u=()=>{let O=new Date(n);return O.setDate(Vy(O)),O.getDay()},f=O=>{let re=new Date;return O===re.getDate()&&n.getMonth()===re.getMonth()&&n.getFullYear()===re.getFullYear()},p=O=>{if(O===r.getDate())return;i.current=true;let re=new Date(n);re.setDate(O),t(re);},h=O=>{if(O===n.getMonth())return;let re=new Date(n);re.setMonth(O),o(re);},y=O=>{if(O===n.getFullYear())return;let re=new Date(n);re.setFullYear(O),o(re);},z=()=>{let O=new Date(n);O.setMonth(O.getMonth()+1),o(O);},b=()=>{let O=new Date(n);O.setMonth(O.getMonth()-1),o(O);},{fontSize:S,arrowSize:$,gap:w,...P}=e,F=new Date(e.minDate==="today"?Date.now():e.minDate||new Date("Jan 1, 1900")),ee=new Date(e.maxDate==="today"?Date.now():e.maxDate==="end-of-year"?`Dec 31 ${new Date().getFullYear()}`:e.maxDate||"Jan 1, 2050"),Fe=No(n),Dr=e.gap||"lg",sr="repeat(7, 1fr)",Ir=e.fontSize in j?j[e.fontSize]:e.fontSize||j.xs,ur=e.arrowSize in j?j[e.arrowSize]:e.arrowSize||"1.2rem",Ye=`calc(${Ir} * 1.14)`,ri=e.yearFontSize in j?j[e.yearFontSize]:e.yearFontSize||Ye,ti=e.monthFontSize in j?j[e.monthFontSize]:e.monthFontSize||Ye;return jsxs(g,{...P,gap:Dr,style:{userSelect:"none",...e.style},children:[jsx(ir,{arrowSize:ur,monthFontSize:e.monthFontSize==="match-year"?ri:ti,yearFontSize:e.yearFontSize==="match-month"?ti:ri,minDate:F,maxDate:ee,activeDate:n,goNextMonth:z,goPreviousMonth:b,onMonthChange:h,onYearChange:y}),jsx(Wu,{in:true,duration:"300ms",skipAnimation:e.disableAnimations||i.current,children:jsxs(g,{grid:true,width:"full",gridCols:sr,style:{gap:e.dateGap in H?H[e.dateGap]:e.dateGap||H.sm},children:[an.DAYS_OF_WEEK.map(O=>jsx(C,{text:O,fontSize:Ir,fontWeight:"bold",textAlign:"center",fade:.75,padding:[Dr,"bottom"]})),[...s()>0?No(a()).slice(-s()):[],...Fe,...u()<6?No(l()).slice(0,6-u()):[]].map((O,re)=>{let yt=O>7&&re<6||O<7&&re>14||n.getMonth()===F.getMonth()&&n.getFullYear()===F.getFullYear()&&O<F.getDate()||n.getMonth()===ee.getMonth()&&n.getFullYear()===ee.getFullYear()&&O>ee.getDate(),fn=O===r.getDate()&&n.getMonth()===r.getMonth()&&n.getFullYear()===r.getFullYear();return jsx(g,{centerContent:true,aspectRatio:1,fade:yt?.5:1,style:{padding:e.datePadding in H?H[e.datePadding]:e.datePadding||H.sm,borderRadius:e.dateCorners in ge?ge[e.dateCorners]:e.dateCorners||".5rem"},css:{cursor:yt?"not-allowed":"pointer",backgroundColor:fn?"primaryContainer":f(O)?"primaryContainer[0.5]":void 0,color:fn?"onPrimaryContainer":f(O)?"onPrimaryContainer[0.75]":void 0,border:"1px solid transparent",transition:"all 300ms linear",borderColor:fn?x("onPrimaryContainer"):void 0,":hover":yt?void 0:{borderColor:x("onPrimaryContainer[0.5]")}},onClick:yt?void 0:()=>p(O),children:jsx(C,{fontSize:Ir,text:`${O}`,textAlign:"center"})})})]})})]})}function ir(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((o,i)=>{let a=e.activeDate?.getFullYear?.();return a===e.minDate?.getFullYear?.()?i>=e.minDate.getMonth():a===e.maxDate?.getFullYear?.()?i<=e.maxDate.getMonth():true}),n=range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1).reverse();return jsxs(g,{row:true,gap:"md",width:"full",align:"center",justify:"space-between",children:[jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.minDate.getMonth()>=e.activeDate.getMonth()&&e.minDate.getFullYear()>=e.activeDate.getFullYear(),direction:"left",onClick:e.goPreviousMonth}),jsxs(g,{row:true,gap:"md",children:[jsx(ir.Dropdown,{fontSize:e.monthFontSize,arrowSize:e.arrowSize,selectedOption:r[e.activeDate.getMonth()],options:t,onSelectedChange:o=>e.onMonthChange(r.findIndex(i=>i===o))}),jsx(ir.Dropdown,{arrowSize:e.arrowSize,fontSize:e.yearFontSize,selectedOption:e.activeDate.getFullYear().toString(),options:n.map(o=>o.toString()),onSelectedChange:o=>e.onYearChange(parseInt(o))})]}),jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.maxDate.getMonth()<=e.activeDate.getMonth()&&e.maxDate.getFullYear()<=e.activeDate.getFullYear(),direction:"right",onClick:e.goNextMonth})]})}ir.Nav=e=>jsx(LiaAngleLeftSolid,{size:e.arrowSize,style:{cursor:e.disabled?"not-allowed":"pointer",color:x("primary"),opacity:e.disabled?.5:1,transform:e.direction==="right"?"rotate(180deg)":void 0},onClick:e.disabled?void 0:e.onClick});ir.Dropdown=e=>{let[r,t]=useState(e.selectedOption),n=o=>{e.onSelectedChange?.(o.value),t(o.value);};return jsx(Nr,{wrap:true,fontSize:`calc(${e.fontSize} * .76)`,maxHeight:"10rem",isSelected:o=>o.value===r,options:e.options,onOptionClick:n,children:jsxs(g,{row:true,align:"center",gap:"sm",cursor:"pointer",children:[jsx(C,{fontSize:e.fontSize,fontWeight:"bold",text:r}),jsx(LiaAngleDownSolid,{size:`calc(${e.arrowSize} * .625)`,style:{color:x("primary")}})]})})};an.DAYS_OF_WEEK=["Su","Mo","Tu","We","Th","Fr","Sa"];var No=e=>{let r=[],t=new Date(castReturn(e));for(t.setDate(1),r.push(1);;){let n=t.getDate()+1;if(t.setDate(n),t.getMonth()===castReturn(e).getMonth())r.push(n);else break}return r},Vy=e=>{let r=new Date(e);for(;r.getMonth()===e.getMonth();)r.setDate(r.getDate()+1);return r.setDate(r.getDate()-1),r.getDate()};function My(e){let r=A({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},f=p=>{e.onOpenChange?.(p);};return jsxs(R.Root,{hideCloseButton:true,onOpenChange:f,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(R.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(R.Body,{children:jsx(an,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(R.Footer,{children:[jsx(R.ActionTrigger,{children:jsx(it,{size:l,fade:.5})}),jsx(R.ActionTrigger,{children:jsx(Vu,{size:l,onClick:u})})]})]})}var Jy=My;c();function Yy(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(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(R.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(R.Header,{children:"Payment Options"}),jsx(R.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{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===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:j.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var Xu=e=>e,rR=e=>Xu({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}}),tR=()=>Xu({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),To=Yy;c();var Gu=createContext(null);function Uo(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:k({fontSize:e.titleFontSize||"lg"}),description:k({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:f,lineHeight:p,opacity:h})=>({fontSize:f,lineHeight:p,opacity:h});return jsx(Gu.Provider,{value:{color:i},children:jsxs(R.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(R.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:x(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(R.Footer,{row:true,gap:"md",align:"center",children:[jsx(R.ActionTrigger,{children:jsx(T,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(a_,{...l}):void 0]})]})})}function a_(e){let{color:r}=useContext(Gu);return jsx(T,{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 Ku=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Uo.tryAgainButton=Ku("Try Again");Uo.retryButton=Ku("Retry");var ln=Uo;c();var Lo="onPaper[0.1]",Zo=", ";function s_(e){let r=A({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=qu(),n=A({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),f=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof f!="object")return;let{error:p,response:h}=f;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(f)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{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(ln,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:ln.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(d_,{recipients:i()}):jsx(u_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Zo))}),jsx(m_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(f_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(Oo,{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(Eo,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function u_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Yu,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Zo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function d_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Lo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(He,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(Vo,{textToCopy:e.recipients.join(Zo)})]})}function m_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Lo,"bottom"],children:[jsx(Yu,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Vo,{textToCopy:e.subject})]})}function f_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${x("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:j.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Vo,{textToCopy:e.defaultValue})})]})}function Yu(e){return jsx(xe,{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":[Lo,"bottom"],onChange:e.onChange})}function Vo(e){return jsx($r,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var p_=s_;c();c();function g_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(rd,{onClick:e.onNoClick}),jsx(ed,{onClick:e.onYesClick})]})}var Mo=g_;function y_(e){return jsxs(g,{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(Mo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var __=y_;c();function x_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{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(Xo,{value:r})})}):jsx(S_,{})})}function S_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{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(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var C_=["string","number","boolean"];function Wo(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(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function td(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="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(Xo,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(td,{value:r}):jsx(Wo,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function Xo(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],f=()=>C_.includes(typeof u)?jsx(Wo,{value:u}):Array.isArray(u)?jsx(td,{value:u}):typeof u=="object"?jsx(Xo,{indent:true,value:u}):jsx(Wo,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(f,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Go=x_;c();c();c();function D_(e){let r=e.accepts?castArray(e.accepts):[...Xt.options].filter(s=>s!=="unknown");console.log({accepts:e.accepts,_accepts:r});let t=getMimeTypes(distinct(strictArray(r))),n=e.multiple?1/0:e.maxFiles??1,o=useRef(null),i=(...s)=>{if(e.disabled)return;let u="target"in s[0]?s[0].target.files:s[0],f=[],p=[],h=y=>strictArray(y).map(z=>toObject(z,{uploadDate:"now",filepath:e.getFilePath?.(z)}));for(let y of u){if(f.length+p.length>=n)break;t.includes(y.type)?f.push(y):p.push(y);}isEmpty(f)||e.onAccept?.(f,h(f)),isEmpty(p)||e.onReject?.(p,h(p));},a=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let u=[];if(s.dataTransfer.items?u=[...s.dataTransfer.items].filter(f=>f.kind==="file").map(f=>f.getAsFile()):u=[...s.dataTransfer.files],!isEmpty(u)){let f=new DataTransfer;u.forEach(p=>f.items.add(p)),i(u);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...k(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:a,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:i,accept:t.join(", "),multiple:e.multiple})]})}var od=D_;function ad(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(od,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(T,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,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 ft=ad({fileClass:"file"}),mF=ad({fileClass:"receipt",accepts:["img"]});function R_(e){let[r,t]=useState(e.defaultPicture?.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{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,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(He,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null,style:e.slotProps?.avatar?.style}),jsx(ft,{size:e.slotProps?.uploadButton?.size,fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var F_=R_;c();function N_(e){let r=e.authProviders||Rs.options;return jsxs(g,{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(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(A_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function A_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(T,{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 U_=N_;c();c();var sd={timestamp:Date.now(),status:"info",response:"Hello World!"};function J_(e){useEffect(()=>{e.initialMessage&&(sd.response=e.initialMessage);},[]);let r=[sd,...e.logs];return jsx(g,{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(W_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function W_(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:x(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(yu,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:x(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Yo=J_;function q_(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(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{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(ou,{item:o,info:n})})}),jsx(Yo,{initialMessage:"Awaiting registration process...",logs:r})]})}var Q_=q_;c();function tb(e){return jsx(xe,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var Bo=tb;c();c();function ob(e){return e.error?jsx(nn,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var qo=ob;function cb(e){let r=A({defaultValue: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(xe,{...e,leadingAdornment:jsx(qo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(bu,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(Ro,{onClick:o})})}var Qo=cb;c();function fd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in j?j[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(He,{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(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}fd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var db=fd;c();function pd(e){return r=>{let[t,n]=useState(false);return jsx(T,{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 Ou=pd({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"})}}),$r=pd({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:{code:"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"}}});c();function vd(e){return r=>jsx(T,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var Qj=vd(BsPlus),eN=vd(BsDash);c();function hd(e){return r=>jsx(T,{...e.defaults,text:e.label,onClick:r.onClick})}var ed=hd({label:"Yes"}),rd=hd({label:"No",defaults:{variant:"outline"}});c();var uN=Ne({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function $b(e){let r=A({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Qo,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx($r,{textToCopy:n.payload}),jsx(Go,{fullSize:true,json:n?n.payload:void 0})]})]})}var wb=$b;c();c();function qt(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}}c();c();c();c();var _d=(E=>(E.white="#FFF",E.black="#000",E.gray="#808080",E.pdf="#F40F02",E.word="#41A5EE",E.excel="#21A366",E.img="#8d481f",E.txt="#8c61a9",E.deepSkyBlue="#00BFFF",E.lightSkyBlue="#87CEFA",E.sendBlue="#0a57d0",E.onSendBlue="#c3dfff",E.book_it="#009688",E.stickyNote="#EFAD03",E.matteBlack="#28282B",E.navyBlue="#000080",E.teal="#008080",E.paper="#ffffff",E.onPaper="#28282B",E.paperVariant="#E6E6E6",E.success="#4BB543",E.hyperlink="#2979ff",E.gold="#d4af37",E.carlsbergGreen="#17B169",E.billsRed="#C60C30",E.info="#1565c0",E.error="#C60C30",E.warning="#f9a825",E.jsonKey="#D56C75",E.string="#59A779",E.number="#D19A5A",E.boolean="#56B6C2",E.jsonBracket="#FFCA1D",E.arrayBracket="#DA68A7",E.delete="#C60C30",E.pdf_table_header="#28282B",E))(_d||{}),Ie=_d;c();var Ub=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)"}),fe=Ub;c();c();function ZA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function Ju(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function eU(e){let[r,t]=useState({}),n=k(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Wb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),f=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(f)),o.removeChild(a);},[e.style]),{style:r}}c();function qu(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)}}c();c();function G(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function A(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),n=castReturn(e?.defaultValue),{triggerRerender:o}=G(),i=useRef({fresh:(()=>{if(typeof n=="function")throw console.error(t),t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??n}return n})(),stale:null}),a=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let p=i.current.stale,h=i.current.fresh,y=()=>{if(Array.isArray(p)){let b=p;return {from:p,to:h,difference:h.filter(($,w)=>w<b.length?b[w]!==$:false)}}switch(typeof p){case "string":return {from:p,to:h,difference:h.replace(p,"")};case "object":return {from:p,to:h,difference:Object.fromEntries(Object.keys(p).map(b=>{let S=b;if(h[S]!==p[S])return [S,h[S]]}).filter(b=>!!b))};default:throw new Error("Not yet implemented bro!")}},z=250;return console.log(buildArray(z,b=>b===0||b===z?"/":"*").join(""),y()),y()},upsert:(p,...h)=>{let{skipOnChange:y=false,skipRender:z=false,skipValidation:b=false,skipTransform:S=false}=h[0]||{},$=typeof p=="function"?p(i.current.fresh):p,w=i.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&a.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${$}`});if(e?.readOnly==="lazy"&&!a.current&&(a.current=true),!S&&e?.transform&&($=e.transform($)),typeof $=="function")throw console.error(t),t;if(JSON.stringify($)!==JSON.stringify(w)){if(!b&&e?.validate?.($)===false){e?.onValidationFail?.($);return}i.current={fresh:$,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify($)),y||e?.onChange?.($,w),!z&&e.reactive&&o();}},read:()=>structuredClone(i.current.fresh),delete:()=>{let p=structuredClone(i.current.fresh),h=structuredClone(i.current.stale);i.current.fresh=n,i.current.stale=null,e?.onDelete?.(p,h),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function du(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Xi(){return useContext(rn)}c();function xU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function wU(e){let r=useContext(bt),{triggerRerender:t}=G(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,f)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return f?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function TU(e){let{triggerRerender:r}=G(),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]}c();function mn(e){useEffect(()=>{e.skipAnimation||Object.assign(e.ref.current.style,{opacity:e.in?1:0,animationName:e.animationName(e.in),animationIterationCount:1,animationTimingFunction:e.in?"ease-in":"ease-out",animationDuration:e.duration||"300ms",animationDelay:typeof e.delay=="object"?e.in?e.delay?.exit:e.delay?.enter:e.delay});},[e.in,e.skipAnimation]);}c();c();c();function Wu(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return mn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity":"fadeOutOpacity"}),t}c();function f2(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return mn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity, scaleIn":"fadeOutOpacity, scaleOut"}),t}export{Oo as AttachmentsButton,Do as AttachmentsDialog,He as Avatar,pP as AvatarGroup,Ws as Badge,T as BasicButton,g as BasicDiv,Ae as BasicImg,Sn as BasicOl,$n as BasicOption,Nr as BasicSelect,C as BasicSpan,qm as BasicTable,an as Calendar,Jy as CalendarDialog,it as CancelButton,se as Card,Ji as Checkbox,Ie as ColorResources,ZB as ConfirmationDialog,$r as CopyButton,fe as CssColors,ge as CssShapes,H as CssSpacing,rP as Debounce,mt as DeleteButton,R as Dialog,Ys as Disclaimer,uN as DownloadButton,AP as Drawer,ny as EditButton,BI as Editable,p_ as EmailComposer,Gt as EmptyState,qo as ErrorTooltip,si as EventContainer,uy as ExpandableButton,Wu as Fade,YB as FancyFormDialog,xI as FileDropzone,yO as FileViewer,j as FontSize,nu as Indicator,ou as ItemInfo,Go as JsonViewer,wb as JwtVerifier,mB as MediaCard,Gv as Menu,Ty as MoneyDisplayCard,eN as NegativeButton,go as NextButton,rd as NoButton,Io as OpenButton,yy as OptionsButton,zP as PageIndicator,rT as PageSlider,IT as Paper,Ou as PasteButton,Sy as PaymentOptionsButton,To as PaymentOptionsDialog,F_ as PictureUploader,gr as Popover,Qj as PositiveButton,vo as PreviousButton,xB as ProfileCard,lP as ProgressBar,jy as ReceiptCard,yo as SaveButton,f2 as Scale,Bo as SearchTextField,bT as SegmentedControls,Eo as SendButton,gE as Separator,U_ as SignInWidget,sO as SimpleFormDialog,bP as Spinner,bu as Status,ZT as Stepper,ho as SubmitButton,HC as Switch,yu as Tag,Q_ as TaskLogger,ln as TaskResultDialog,Yo as Terminal,xe as TextField,lE as Timeline,nn as Tooltip,ft as UploadButton,mF as UploadReceiptButton,db as UserProfile,Ro as VerifyButton,Qo as VerifyTextField,Wd as WavyUi,ed as YesButton,Mo as YesNoButtonGroup,__ as YesOrNoForm,k as applyBasicStyle,rR as bankTransferPaymentOption,Q0 as borderRadius,G0 as buildCSS,lx as computedCssVariable,Xd as convertHexUnitTo256,K0 as cssTransition,Xu as definePaymentOption,ex as disabledBorderRadius,rx as dragElement,ve as ellipsis,q0 as flexCenter,qt as getFileIcon,dh as getPaperDim,fi as getScrollParent,Gd as hexToRgba,tR as inAppPaymentOption,gn as isOverflown,pi as isSpanMultiLine,Hd as isValidHex,nx as nativeEllipsis,tx as noSpaceStyle,mh as paperStyle,cx as remAsPx,Kd as remToPx,x as resolveBasicColor,Br as restrictLineCount,ox as rgbToRgba,ix as screenHasMaxWidth,ax as screenHasMinWidth,Y0 as solidBorder,gi as stripHtml,mi as tiledBackground,mn as useAnimation,ZA as useAsyncEffect,eU as useComputedStyle,wU as useEvent,qu as useModalControls,du as usePageSliderController,Xi as usePopoverContext,Ju as usePostRenderEffect,G as useRerender,xU as useSessionStorage,TU as useSmartState,A as useStore};
|
|
45
|
+
translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof f=="function"?jsx(f,{isActive:p===o}):f},p)}),!e.hideControls&&jsx(uu,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function uu(e){let r=useContext(du),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{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})})}c();c();var tn=createContext(null);function gr(e){let r=A({defaultValue:e.open??false}),{triggerRerender:t}=G(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=Be__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 u=e.placement||"bottom-left",f=["top","right","bottom","left"].includes(u),p=f?{positionArea:u}:ch(e.anchorPoint||"top-left",ah(u));if(!e.visibleOnScroll){let y=pi(o.current);y&&y.addEventListener("scroll",z=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${z.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...k({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(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 u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",f=>{let p=f.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let f,h=()=>{f&&(f=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?f=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{f&&clearTimeout(f);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,f)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??f,s=(u,f)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&f in e.delay&&(p=e.delay[f]),setTimeout(u,p);};return jsxs(tn.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var ah=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},ch=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function bT(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?x(e.backgroundColor):void 0,boxShadow:e.borderColor?`${x(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in H?H[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?x(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 H?H[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(uh,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function uh(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in j?j[e.fontSize]:e.fontSize,border:0,color:x(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function _u(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:x(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function IT(e){return jsx(g,{id:e.id,style:mh({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var dh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],mh=e=>{let{height:r,width:t}=dh(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:x("paper"),color:x("onPaper"),overflow:"hidden"}};c();function xu(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function ZT(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"})})]})]})]})}c();c();var ku=Be.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...f}=r;return i?o:jsxs(Tooltip.Root,{...f,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function on(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=k({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(ku,{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?{...k(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var Po=createContext(null);function Ch(e){let r=A({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:x(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx(Po.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function Ph(e){let[r,t]=useState(),{register:n}=useContext(Po),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let f=n();typeof f=="string"&&t(f);},[r]);let u=f=>r===f||r==="both";return jsxs(Fragment,{children:[jsx(wu,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(zu,{hide:u("first")}),jsx(g,{style:{...k({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(zu,{hide:u("last")})]}),jsx(wu,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function wu(e){return jsx(g,{size:"full",style:{...k({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function zu(e){let{lineSeparatorColor:r}=useContext(Po);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var lE={Root:Ch,Item:Ph};c();function gE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:x(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:x(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var ko=(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 xe(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:f,...p}=e,h={label:k({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof f=="string"&&f in j?f:void 0)}),helperText:k({...e?.slotProps?.helperText}),root:k({width:e.width}),input:k({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none",...e.style}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=S=>{if(e.format!=="currency")return;let $=S;if($=$.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((w,P)=>P<2).join("."),$&&takeLast($.split(""))[0]!=="."){let w=parseFloat($);if(!isNaN(w)){let P=new Intl.NumberFormat;y(P.format(w));}}};o.current?.addEventListener?.("beforeinput",S=>{let $=S.data,w=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";w==="all"||Array.isArray(w)&&w.includes("all")||$===null||(!Array.isArray(w)&&!ko($,w)||Array.isArray(w)&&w.some(P=>!ko($,P)))&&S.preventDefault();}),o.current?.addEventListener?.("paste",S=>{b(S.target.value);}),o.current?.addEventListener?.("input",S=>{b(S.target.value);});},[o.current]);let z=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Th,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:z,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in j?j[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):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:f,zIndex:1,variant:e.variant,css:{transition:e.disableTransition?"none":"all 200ms ease-in","--focus-color":x(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:x(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let S=b.currentTarget.value;switch(e.allowHtmlInput||(S=vi(S)),e.trimOnChange){case "start":S=S.trimStart();break;case "end":S=S.trimEnd();break;case true:S=S.trim();break}e.validateInput?.(S)!==false&&(e.onChange?.(S,b),n||t(S));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Th(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:H.sm,width:"100%"},children:[e.children,e.useCopy&&jsx($r,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Tu,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function qs(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:x(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?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(gi(s));},style:k({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${k({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function Ru(e){return {FlyLeavingBox:Nh}[e]}var Do=createContext(null);function Lh(e){let r=A({defaultValue:e.attachments||[]}),{triggerRerender:t}=G(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(Do.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(R.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(R.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(R.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Mh,{}):jsx(Zh,{})})]})})}function Zh(){let e=useContext(Do),r=A(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},f=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(Oo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Vh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:f},p.uid))}),!e.hideUploadButton&&jsx(mt,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Vh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Qt(r);return jsxs(ue.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ue.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(Ae,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ue.Content,{gap:"sm",width:"full",children:[jsx(ue.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ue.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(Bo,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(dt,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Mh(){let e=useContext(Do);return jsxs(Kt.Root,{children:[jsx(Kt.Indicator,{size:"7rem",disableFade:true,element:jsx(Ae,{spill:"hidden",size:"full",src:Ru("FlyLeavingBox")})}),jsx(Kt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(mt,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var Io=Lh;function Hh(e){let r=A({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=G(),n=o=>{r.upsert(o);};return jsx(on,{tooltip:"Attachments",placement:"right",children:jsx(Hs,{circleChild:true,asChild:!e.attachments,badge:jsx(ou,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Xh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{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 Xh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(Io,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var To=Hh;c();var Kh=Ne({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),ot=Kh;c();function Qh(e){return jsx(T,{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 dt=Qh;c();function ty(e){let{iconOnly:r,...t}=e;return jsx(T,{...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 ny=ty;c();function sy(e){let r=A({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var uy=sy;c();function dy(e){return jsx(T,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var vo=dy;c();function py(e){return jsx(T,{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 Bo=py;c();function hy(e){return jsx(T,{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 yy=hy;c();function xy(e){let r=jsx(T,{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(Eo,{triggerElement:r,options:e.options}):r}var Sy=xy;c();function Cy(e){return jsx(T,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var ho=Cy;c();function $y(e){return jsx(T,{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 Ro=$y;c();function wy(e){return jsx(T,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var yo=wy;c();function Iy(e){return jsx(T,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var Fo=Iy;c();function Oy(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:fi({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsx(C,{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(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Ty=Oy;c();function Fy(e){return jsxs(ue.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(ue.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(Ae,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ue.Content,{width:"full",gap:"xs",children:[jsx(ue.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ue.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ue.TrailingAddOn,{children:jsx(dt,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var jy=Fy;c();c();var Ny=Ne({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Mu=Ny;c();function cn(e){let[r,t]=useState(e.selectedDate||new Date),[n,o]=useState(new Date(r)),i=useRef(false);Wu(()=>{i.current=false,e.onDateSelected?.(r);},[r]);let a=()=>{let O=new Date(n);return O.setMonth(n.getMonth()-1),O},l=()=>{let O=new Date(n);return O.setMonth(n.getMonth()+1),O},s=()=>{let O=new Date(n);return O.setDate(1),O.getDay()},u=()=>{let O=new Date(n);return O.setDate(Vy(O)),O.getDay()},f=O=>{let re=new Date;return O===re.getDate()&&n.getMonth()===re.getMonth()&&n.getFullYear()===re.getFullYear()},p=O=>{if(O===r.getDate())return;i.current=true;let re=new Date(n);re.setDate(O),t(re);},h=O=>{if(O===n.getMonth())return;let re=new Date(n);re.setMonth(O),o(re);},y=O=>{if(O===n.getFullYear())return;let re=new Date(n);re.setFullYear(O),o(re);},z=()=>{let O=new Date(n);O.setMonth(O.getMonth()+1),o(O);},b=()=>{let O=new Date(n);O.setMonth(O.getMonth()-1),o(O);},{fontSize:S,arrowSize:$,gap:w,...P}=e,F=new Date(e.minDate==="today"?Date.now():e.minDate||new Date("Jan 1, 1900")),ee=new Date(e.maxDate==="today"?Date.now():e.maxDate==="end-of-year"?`Dec 31 ${new Date().getFullYear()}`:e.maxDate||"Jan 1, 2050"),Fe=Ao(n),Dr=e.gap||"lg",sr="repeat(7, 1fr)",Ir=e.fontSize in j?j[e.fontSize]:e.fontSize||j.xs,ur=e.arrowSize in j?j[e.arrowSize]:e.arrowSize||"1.2rem",Ye=`calc(${Ir} * 1.14)`,ti=e.yearFontSize in j?j[e.yearFontSize]:e.yearFontSize||Ye,ni=e.monthFontSize in j?j[e.monthFontSize]:e.monthFontSize||Ye;return jsxs(g,{...P,gap:Dr,style:{userSelect:"none",...e.style},children:[jsx(ir,{arrowSize:ur,monthFontSize:e.monthFontSize==="match-year"?ti:ni,yearFontSize:e.yearFontSize==="match-month"?ni:ti,minDate:F,maxDate:ee,activeDate:n,goNextMonth:z,goPreviousMonth:b,onMonthChange:h,onYearChange:y}),jsx(Hu,{in:true,duration:"300ms",skipAnimation:e.disableAnimations||i.current,children:jsxs(g,{grid:true,width:"full",gridCols:sr,style:{gap:e.dateGap in H?H[e.dateGap]:e.dateGap||H.sm},children:[cn.DAYS_OF_WEEK.map(O=>jsx(C,{text:O,fontSize:Ir,fontWeight:"bold",textAlign:"center",fade:.75,padding:[Dr,"bottom"]})),[...s()>0?Ao(a()).slice(-s()):[],...Fe,...u()<6?Ao(l()).slice(0,6-u()):[]].map((O,re)=>{let ht=O>7&&re<6||O<7&&re>14||n.getMonth()===F.getMonth()&&n.getFullYear()===F.getFullYear()&&O<F.getDate()||n.getMonth()===ee.getMonth()&&n.getFullYear()===ee.getFullYear()&&O>ee.getDate(),pn=O===r.getDate()&&n.getMonth()===r.getMonth()&&n.getFullYear()===r.getFullYear();return jsx(g,{centerContent:true,aspectRatio:1,fade:ht?.5:1,style:{padding:e.datePadding in H?H[e.datePadding]:e.datePadding||H.sm,borderRadius:e.dateCorners in ge?ge[e.dateCorners]:e.dateCorners||".5rem"},css:{cursor:ht?"not-allowed":"pointer",backgroundColor:pn?"primaryContainer":f(O)?"primaryContainer[0.5]":void 0,color:pn?"onPrimaryContainer":f(O)?"onPrimaryContainer[0.75]":void 0,border:"1px solid transparent",transition:"all 300ms linear",borderColor:pn?x("onPrimaryContainer"):void 0,":hover":ht?void 0:{borderColor:x("onPrimaryContainer[0.5]")}},onClick:ht?void 0:()=>p(O),children:jsx(C,{fontSize:Ir,text:`${O}`,textAlign:"center"})})})]})})]})}function ir(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((o,i)=>{let a=e.activeDate?.getFullYear?.();return a===e.minDate?.getFullYear?.()?i>=e.minDate.getMonth():a===e.maxDate?.getFullYear?.()?i<=e.maxDate.getMonth():true}),n=range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1).reverse();return jsxs(g,{row:true,gap:"md",width:"full",align:"center",justify:"space-between",children:[jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.minDate.getMonth()>=e.activeDate.getMonth()&&e.minDate.getFullYear()>=e.activeDate.getFullYear(),direction:"left",onClick:e.goPreviousMonth}),jsxs(g,{row:true,gap:"md",children:[jsx(ir.Dropdown,{fontSize:e.monthFontSize,arrowSize:e.arrowSize,selectedOption:r[e.activeDate.getMonth()],options:t,onSelectedChange:o=>e.onMonthChange(r.findIndex(i=>i===o))}),jsx(ir.Dropdown,{arrowSize:e.arrowSize,fontSize:e.yearFontSize,selectedOption:e.activeDate.getFullYear().toString(),options:n.map(o=>o.toString()),onSelectedChange:o=>e.onYearChange(parseInt(o))})]}),jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.maxDate.getMonth()<=e.activeDate.getMonth()&&e.maxDate.getFullYear()<=e.activeDate.getFullYear(),direction:"right",onClick:e.goNextMonth})]})}ir.Nav=e=>jsx(LiaAngleLeftSolid,{size:e.arrowSize,style:{cursor:e.disabled?"not-allowed":"pointer",color:x("primary"),opacity:e.disabled?.5:1,transform:e.direction==="right"?"rotate(180deg)":void 0},onClick:e.disabled?void 0:e.onClick});ir.Dropdown=e=>{let[r,t]=useState(e.selectedOption),n=o=>{e.onSelectedChange?.(o.value),t(o.value);};return jsx(Nr,{wrap:true,fontSize:`calc(${e.fontSize} * .76)`,maxHeight:"10rem",isSelected:o=>o.value===r,options:e.options,onOptionClick:n,children:jsxs(g,{row:true,align:"center",gap:"sm",cursor:"pointer",children:[jsx(C,{fontSize:e.fontSize,fontWeight:"bold",text:r}),jsx(LiaAngleDownSolid,{size:`calc(${e.arrowSize} * .625)`,style:{color:x("primary")}})]})})};cn.DAYS_OF_WEEK=["Su","Mo","Tu","We","Th","Fr","Sa"];var Ao=e=>{let r=[],t=new Date(castReturn(e));for(t.setDate(1),r.push(1);;){let n=t.getDate()+1;if(t.setDate(n),t.getMonth()===castReturn(e).getMonth())r.push(n);else break}return r},Vy=e=>{let r=new Date(e);for(;r.getMonth()===e.getMonth();)r.setDate(r.getDate()+1);return r.setDate(r.getDate()-1),r.getDate()};function My(e){let r=A({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},f=p=>{e.onOpenChange?.(p);};return jsxs(R.Root,{hideCloseButton:true,onOpenChange:f,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(R.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(R.Body,{children:jsx(cn,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(R.Footer,{children:[jsx(R.ActionTrigger,{children:jsx(ot,{size:l,fade:.5})}),jsx(R.ActionTrigger,{children:jsx(Mu,{size:l,onClick:u})})]})]})}var Jy=My;c();function Yy(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(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(R.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(R.Header,{children:"Payment Options"}),jsx(R.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{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===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:j.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var Gu=e=>e,rR=e=>Gu({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}}),tR=()=>Gu({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Eo=Yy;c();var Ku=createContext(null);function Lo(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:k({fontSize:e.titleFontSize||"lg"}),description:k({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:f,lineHeight:p,opacity:h})=>({fontSize:f,lineHeight:p,opacity:h});return jsx(Ku.Provider,{value:{color:i},children:jsxs(R.Root,{onOpenChange:f=>console.log("Task result open state ",{isOpen:f}),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(R.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:x(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(R.Footer,{row:true,gap:"md",align:"center",children:[jsx(R.ActionTrigger,{children:jsx(T,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(a_,{...l}):void 0]})]})})}function a_(e){let{color:r}=useContext(Ku);return jsx(T,{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 Yu=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Lo.tryAgainButton=Yu("Try Again");Lo.retryButton=Yu("Retry");var sn=Lo;c();var Zo="onPaper[0.1]",Vo=", ";function s_(e){let r=A({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=Qu(),n=A({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),f=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof f!="object")return;let{error:p,response:h}=f;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(f)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{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(sn,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:sn.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(d_,{recipients:i()}):jsx(u_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Vo))}),jsx(m_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(f_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(To,{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(Ro,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function u_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(qu,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Vo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function d_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Zo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(He,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(Mo,{textToCopy:e.recipients.join(Vo)})]})}function m_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Zo,"bottom"],children:[jsx(qu,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Mo,{textToCopy:e.subject})]})}function f_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${x("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:j.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Mo,{textToCopy:e.defaultValue})})]})}function qu(e){return jsx(xe,{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":[Zo,"bottom"],onChange:e.onChange})}function Mo(e){return jsx($r,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var p_=s_;c();c();function g_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(td,{onClick:e.onNoClick}),jsx(rd,{onClick:e.onYesClick})]})}var Jo=g_;function y_(e){return jsxs(g,{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(Jo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var __=y_;c();function x_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{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(Go,{value:r})})}):jsx(S_,{})})}function S_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{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(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var C_=["string","number","boolean"];function Ho(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(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function nd(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="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(Go,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(nd,{value:r}):jsx(Ho,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function Go(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],f=()=>C_.includes(typeof u)?jsx(Ho,{value:u}):Array.isArray(u)?jsx(nd,{value:u}):typeof u=="object"?jsx(Go,{indent:true,value:u}):jsx(Ho,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(f,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ko=x_;c();c();c();function D_(e){let r=e.accepts?castArray(e.accepts):[...Gt.options].filter(s=>s!=="unknown");console.log({accepts:e.accepts,_accepts:r});let t=getMimeTypes(distinct(strictArray(r))),n=e.multiple?1/0:e.maxFiles??1,o=useRef(null),i=(...s)=>{if(e.disabled)return;let u="target"in s[0]?s[0].target.files:s[0],f=[],p=[],h=y=>strictArray(y).map(z=>toObject(z,{uploadDate:"now",filepath:e.getFilePath?.(z)}));for(let y of u){if(f.length+p.length>=n)break;t.includes(y.type)?f.push(y):p.push(y);}isEmpty(f)||e.onAccept?.(f,h(f)),isEmpty(p)||e.onReject?.(p,h(p));},a=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let u=[];if(s.dataTransfer.items?u=[...s.dataTransfer.items].filter(f=>f.kind==="file").map(f=>f.getAsFile()):u=[...s.dataTransfer.files],!isEmpty(u)){let f=new DataTransfer;u.forEach(p=>f.items.add(p)),i(u);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...k(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:a,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:i,accept:t.join(", "),multiple:e.multiple})]})}var id=D_;function cd(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(id,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(T,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,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 mt=cd({fileClass:"file"}),mF=cd({fileClass:"receipt",accepts:["img"]});function R_(e){let[r,t]=useState(e.defaultPicture?.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{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,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(He,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null,style:e.slotProps?.avatar?.style}),jsx(mt,{size:e.slotProps?.uploadButton?.size,fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var F_=R_;c();function N_(e){let r=e.authProviders||Fs.options;return jsxs(g,{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(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(A_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function A_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(T,{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 U_=N_;c();c();var ud={timestamp:Date.now(),status:"info",response:"Hello World!"};function J_(e){useEffect(()=>{e.initialMessage&&(ud.response=e.initialMessage);},[]);let r=[ud,...e.logs];return jsx(g,{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(W_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function W_(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:x(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(_u,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:x(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var qo=J_;function q_(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(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{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(iu,{item:o,info:n})})}),jsx(qo,{initialMessage:"Awaiting registration process...",logs:r})]})}var Q_=q_;c();function tb(e){return jsx(xe,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var Oo=tb;c();c();function ob(e){return e.error?jsx(on,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Qo=ob;function cb(e){let r=A({defaultValue: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(xe,{...e,leadingAdornment:jsx(Qo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(xu,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(Fo,{onClick:o})})}var ei=cb;c();function pd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in j?j[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(He,{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(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}pd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var db=pd;c();function gd(e){return r=>{let[t,n]=useState(false);return jsx(T,{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 Tu=gd({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"})}}),$r=gd({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:{code:"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"}}});c();function hd(e){return r=>jsx(T,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var Qj=hd(BsPlus),eN=hd(BsDash);c();function yd(e){return r=>jsx(T,{...e.defaults,text:e.label,onClick:r.onClick})}var rd=yd({label:"Yes"}),td=yd({label:"No",defaults:{variant:"outline"}});c();var uN=Ne({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function $b(e){let r=A({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(ei,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx($r,{textToCopy:n.payload}),jsx(Ko,{fullSize:true,json:n?n.payload:void 0})]})]})}var wb=$b;c();c();function Qt(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}}c();c();c();c();var bd=(E=>(E.white="#FFF",E.black="#000",E.gray="#808080",E.pdf="#F40F02",E.word="#41A5EE",E.excel="#21A366",E.img="#8d481f",E.txt="#8c61a9",E.deepSkyBlue="#00BFFF",E.lightSkyBlue="#87CEFA",E.sendBlue="#0a57d0",E.onSendBlue="#c3dfff",E.book_it="#009688",E.stickyNote="#EFAD03",E.matteBlack="#28282B",E.navyBlue="#000080",E.teal="#008080",E.paper="#ffffff",E.onPaper="#28282B",E.paperVariant="#E6E6E6",E.success="#4BB543",E.hyperlink="#2979ff",E.gold="#d4af37",E.carlsbergGreen="#17B169",E.billsRed="#C60C30",E.info="#1565c0",E.error="#C60C30",E.warning="#f9a825",E.jsonKey="#D56C75",E.string="#59A779",E.number="#D19A5A",E.boolean="#56B6C2",E.jsonBracket="#FFCA1D",E.arrayBracket="#DA68A7",E.delete="#C60C30",E.pdf_table_header="#28282B",E))(bd||{}),Ie=bd;c();var Ub=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)"}),pe=Ub;c();c();function ZA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function Wu(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function eU(e){let[r,t]=useState({}),n=k(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Wb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),f=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(f)),o.removeChild(a);},[e.style]),{style:r}}c();function Qu(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);}}}c();c();function G(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function A(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),n=castReturn(e?.defaultValue),{triggerRerender:o}=G(),i=useRef({fresh:(()=>{if(typeof n=="function")throw console.error(t),t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??n}return n})(),stale:null}),a=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let p=i.current.stale,h=i.current.fresh,y=()=>{if(Array.isArray(p)){let b=p;return {from:p,to:h,difference:h.filter(($,w)=>w<b.length?b[w]!==$:false)}}switch(typeof p){case "string":return {from:p,to:h,difference:h.replace(p,"")};case "object":return {from:p,to:h,difference:Object.fromEntries(Object.keys(p).map(b=>{let S=b;if(h[S]!==p[S])return [S,h[S]]}).filter(b=>!!b))};default:throw new Error("Not yet implemented bro!")}},z=250;return console.log(buildArray(z,b=>b===0||b===z?"/":"*").join(""),y()),y()},upsert:(p,...h)=>{let{skipOnChange:y=false,skipRender:z=false,skipValidation:b=false,skipTransform:S=false}=h[0]||{},$=typeof p=="function"?p(i.current.fresh):p,w=i.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&a.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${$}`});if(e?.readOnly==="lazy"&&!a.current&&(a.current=true),!S&&e?.transform&&($=e.transform($)),typeof $=="function")throw console.error(t),t;if(JSON.stringify($)!==JSON.stringify(w)){if(!b&&e?.validate?.($)===false){e?.onValidationFail?.($);return}i.current={fresh:$,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify($)),y||e?.onChange?.($,w),!z&&e.reactive&&o();}},read:()=>structuredClone(i.current.fresh),delete:()=>{let p=structuredClone(i.current.fresh),h=structuredClone(i.current.stale);i.current.fresh=n,i.current.stale=null,e?.onDelete?.(p,h),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function mu(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Gi(){return useContext(tn)}c();function xU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function wU(e){let r=useContext(_t),{triggerRerender:t}=G(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,f)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return f?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function TU(e){let{triggerRerender:r}=G(),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]}c();function fn(e){useEffect(()=>{e.skipAnimation||Object.assign(e.ref.current.style,{opacity:e.in?1:0,animationName:e.animationName(e.in),animationIterationCount:1,animationTimingFunction:e.in?"ease-in":"ease-out",animationDuration:e.duration||"300ms",animationDelay:typeof e.delay=="object"?e.in?e.delay?.exit:e.delay?.enter:e.delay});},[e.in,e.skipAnimation]);}c();c();c();function Hu(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return fn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity":"fadeOutOpacity"}),t}c();function f2(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return fn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity, scaleIn":"fadeOutOpacity, scaleOut"}),t}export{To as AttachmentsButton,Io as AttachmentsDialog,He as Avatar,pP as AvatarGroup,Hs as Badge,T as BasicButton,g as BasicDiv,Ae as BasicImg,Cn as BasicOl,wn as BasicOption,Nr as BasicSelect,C as BasicSpan,Qm as BasicTable,cn as Calendar,Jy as CalendarDialog,ot as CancelButton,ue as Card,Wi as Checkbox,Ie as ColorResources,ZB as ConfirmationDialog,$r as CopyButton,pe as CssColors,ge as CssShapes,H as CssSpacing,rP as Debounce,dt as DeleteButton,R as Dialog,qs as Disclaimer,uN as DownloadButton,AP as Drawer,ny as EditButton,BI as Editable,p_ as EmailComposer,Kt as EmptyState,Qo as ErrorTooltip,ui as EventContainer,uy as ExpandableButton,Hu as Fade,YB as FancyFormDialog,xI as FileDropzone,yO as FileViewer,j as FontSize,ou as Indicator,iu as ItemInfo,Ko as JsonViewer,wb as JwtVerifier,mB as MediaCard,Gv as Menu,Ty as MoneyDisplayCard,eN as NegativeButton,vo as NextButton,td as NoButton,Bo as OpenButton,yy as OptionsButton,zP as PageIndicator,rT as PageSlider,IT as Paper,Tu as PasteButton,Sy as PaymentOptionsButton,Eo as PaymentOptionsDialog,F_ as PictureUploader,gr as Popover,Qj as PositiveButton,ho as PreviousButton,xB as ProfileCard,lP as ProgressBar,jy as ReceiptCard,_o as SaveButton,f2 as Scale,Oo as SearchTextField,bT as SegmentedControls,Ro as SendButton,gE as Separator,U_ as SignInWidget,sO as SimpleFormDialog,bP as Spinner,xu as Status,ZT as Stepper,yo as SubmitButton,HC as Switch,_u as Tag,Q_ as TaskLogger,sn as TaskResultDialog,qo as Terminal,xe as TextField,lE as Timeline,on as Tooltip,mt as UploadButton,mF as UploadReceiptButton,db as UserProfile,Fo as VerifyButton,ei as VerifyTextField,Hd as WavyUi,rd as YesButton,Jo as YesNoButtonGroup,__ as YesOrNoForm,k as applyBasicStyle,rR as bankTransferPaymentOption,Q0 as borderRadius,G0 as buildCSS,lx as computedCssVariable,Gd as convertHexUnitTo256,K0 as cssTransition,Gu as definePaymentOption,ex as disabledBorderRadius,rx as dragElement,ve as ellipsis,q0 as flexCenter,Qt as getFileIcon,dh as getPaperDim,pi as getScrollParent,Kd as hexToRgba,tR as inAppPaymentOption,vn as isOverflown,gi as isSpanMultiLine,Xd as isValidHex,nx as nativeEllipsis,tx as noSpaceStyle,mh as paperStyle,cx as remAsPx,Yd as remToPx,x as resolveBasicColor,Br as restrictLineCount,ox as rgbToRgba,ix as screenHasMaxWidth,ax as screenHasMinWidth,Y0 as solidBorder,vi as stripHtml,fi as tiledBackground,fn as useAnimation,ZA as useAsyncEffect,eU as useComputedStyle,wU as useEvent,Qu as useModalControls,mu as usePageSliderController,Gi as usePopoverContext,Wu as usePostRenderEffect,G as useRerender,xU as useSessionStorage,TU as useSmartState,A as useStore};
|