@wavy/react-ui 0.0.44 → 0.0.46
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 +30 -16
- package/dist/main.js +30 -9
- package/package.json +6 -5
- package/types.d.ts +0 -1
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,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
|
|
1
|
+
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,AvatarGroup,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,useSegmentGroupItemContext,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as we from'react';import we__default,{createContext,memo,useState,useRef,useEffect,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 {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,run,coerceIn,format,hasIndex,upperFirst,parseFileSize,inferFilename,sort,readClipboardText,copyToClipboard,castReturn,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {SlArrowLeft,SlArrowRight}from'react-icons/sl';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import Ch from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import $y from'react-datepicker';import'react-datepicker/dist/react-datepicker.css';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import jb from'react-dom/server';var cd=Object.create;var rn=Object.defineProperty;var ld=Object.getOwnPropertyDescriptor;var sd=Object.getOwnPropertyNames;var ud=Object.getPrototypeOf,dd=Object.prototype.hasOwnProperty;var md=(e,r)=>()=>(e&&(r=e(e=0)),r);var fd=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),pd=(e,r)=>{for(var t in r)rn(e,t,{get:r[t],enumerable:true});},gd=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of sd(r))!dd.call(e,o)&&o!==t&&rn(e,o,{get:()=>r[o],enumerable:!(n=ld(r,o))||n.enumerable});return e};var vd=(e,r,t)=>(t=e!=null?cd(ud(e)):{},gd(!e||!e.__esModule?rn(t,"default",{value:e,enumerable:true}):t,e));var c=md(()=>{});var Si=fd((Hx,ze)=>{c();function cn(){return ze.exports=cn=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},ze.exports.__esModule=true,ze.exports.default=ze.exports,cn.apply(null,arguments)}ze.exports=cn,ze.exports.__esModule=true,ze.exports.default=ze.exports;});c();c();c();c();c();function Jo(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function Wo(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Pd(){let{colorMode:e}=Wo();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}we.forwardRef(function(r,t){let{toggleColorMode:n}=Wo();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(Pd,{})})})});we.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});we.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function Xo(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(Jo,{...e})})}c();c();var dt=createContext(null);function Ko(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(dt.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 Bd(e){return jsx(Xo,{children:jsx(Ko,{children:e.children})})}var Od=Bd;c();c();c();var Te=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 qo=(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))(qo||{}),Ee=qo;function T0(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function E0(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 R0(e){return `${e.thickness||"1px"} solid ${e.color}`}function Qo(e){let r=b(e.backgroundColor),t=b(e.borderColor),n=e.tileBorderThickness||"1px",o=e.tileSize||"1.5rem";return `
|
|
2
2
|
${e.fader||"radial"}-gradient(transparent, ${r} 75%),
|
|
3
3
|
repeating-linear-gradient(
|
|
4
4
|
${t},
|
|
@@ -14,11 +14,32 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
|
|
|
14
14
|
transparent ${o}
|
|
15
15
|
)
|
|
16
16
|
${r}
|
|
17
|
-
`}function u0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function f0(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 m0(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ue.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function g0(e){let r=0,t=0,n=0,o=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),n=c.clientX,o=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=n-c.clientX,t=o-c.clientY,n=c.clientX,o=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function v0(e){return {...e,margin:0,padding:0}}function j(e,r={apply:true}){return r.apply?He(1,e):e}function y0(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function on(e){let r=e;for(;r&&!Lr(r);)r=r.parentElement;return r}function an(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let n=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>n+2}function h(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),l=()=>G[n],s=()=>i?aa(oe[o],parseFloat(i)):oe[n];if(t==="css"){if(n in G)return l();if(o in oe)return s()}else if(t==="res"){if(o in oe)return s();if(n in G)return l()}return n}var ln=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",oa=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),ia=e=>parseInt(e.repeat(2/e.length),16);function aa(e,r=1){let t=(g,u)=>g.match(new RegExp(`.{${u}}`,"g")),n=g=>typeof g<"u"?g/255:typeof r!="number"||r<0||r>1?1:r;if(!oa(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[l,s,c,v]=i.map(ia);return `rgba(${l}, ${s}, ${c}, ${n(v)})`}function h0(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 p0(e){return window.matchMedia(`(max-width:${e})`).matches}function C0(e){return window.matchMedia(`(min-width:${e})`).matches}function He(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function la(e){return e*16}function _0(e){return `${la(e)}px`}function Lr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function b0(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var sa=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),V=sa;a();var ca=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),L=ca;var yr=["top","right","bottom","left"],sn=(e,r)=>`translate(${e}, ${r})`,cn=e=>`translateX(${e})`,dn=e=>`translateY(${e})`,da=(e,r)=>{let t=e.fontSize in L?L[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:[e.scrollbarColor?.thumb,e.scrollbarColor?.track].map(s=>s||"inherit").join(" "),transform:e.centerSelf===true?sn("-50%","-50%"):e.centerSelf==="x"?cn("-50%"):e.centerSelf==="y"?dn("-50%"):e.translate?.x&&e.translate?.y?sn(e.translate.x,e.translate.y):e.translate?.x?cn(e.translate.x):e.translate?.y?dn(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:ga(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:ua(e.borderColor),borderWidth:fa(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ma(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:va(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:h(e.backgroundColor),color:h(e.color),gap:ya(e.gap),overflowX:n,overflowY:o,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(l).forEach(s=>{let c=s,v=l[c];typeof v=="string"&&(v=v.trim()),!v&&v!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function ua(e){if(!e)return;let r="transparent";return typeof e=="string"?h(e):yr.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?h(n):r}return typeof e=="object"&&t in e?h(e[t]):r}).join(" ")}function fa(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:yr.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 ma(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:yr.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 ga(e){let t=n=>n?n in V?V[n]:n:"0px";return e?typeof e=="string"?t(e):yr.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 va(e){let t=o=>o?o in ue?ue[o]:o:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(o=>{let i=e?.[o];return o.includes("top")&&e?.top?t(e.top):o.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function ya(e){if(!(!e||typeof e!="string"))return e in V?V[e]:e}var C=da;var Pa=["inherit","sm","md","lg","xl","2xl","xs"],xa=["sm","md","lg","xl","2xl","xs","2xs"];function un(e){let[r,t]=useState(false),n=e.disabled||r,o=async u=>{if(!n){if(!e.async)return e.onClick?.(u);t(true),await e.onClick?.(u),setTimeout(()=>t(false),e.pendingDelay||1);}},i=u=>{if(u){if(typeof u==typeof FaFolder){let y=S=>typeof S=="string"&&[...Pa].includes(S);return jsx(Icon,{size:y(e.iconSize)?e.iconSize:void 0,boxSize:y(e.iconSize)?void 0:e.iconSize,as:u})}return u}},l=i(e.leadingEl),s=i(e.trailingEl),c=u=>typeof u=="string"&&[...xa].includes(u),{size:v,...g}=e;return jsxs(Button,{...de(e),disabled:n,size:c(v)?v:void 0,style:C({...g,size:c(v)?void 0:v,clickable:!n,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:n?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:o,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?h(e.spinnerColor):"blue.500"})})]})}var fe=e=>r=>jsx(un,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,l=i in n,s=[void 0,null].includes(n[i]);(!l||s)&&(n[i]=e.optional[i]);}return n})()}),B=un;a();a();a();a();a();function pr(){return pr=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},pr.apply(null,arguments)}a();a();function fn(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}a();var mn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};a();function Cr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var wa=/[A-Z]|^ms/g,Da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(r){return r.charCodeAt(1)===45},gn=function(r){return r!=null&&typeof r!="boolean"},Vr=Cr(function(e){return hn(e)?e:e.replace(wa,"-$&").toLowerCase()}),vn=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(Da,function(n,o,i){return Z={name:o,styles:i,next:Z},o})}return mn[r]!==1&&!hn(r)&&typeof t=="number"&&t!==0?t+"px":t};function We(e,r,t){if(t==null)return "";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case "boolean":return "";case "object":{var o=t;if(o.anim===1)return Z={name:o.name,styles:o.styles,next:Z},o.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Z={name:l.name,styles:l.styles,next:Z},l=l.next;var s=i.styles+";";return s}return Ea(e,r,t)}case "function":{if(e!==void 0){var c=Z,v=t(e);return Z=c,We(e,r,v)}break}}var g=t;if(r==null)return g;var u=r[g];return u!==void 0?u:g}function Ea(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=We(e,r,t[o])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":gn(s)&&(n+=Vr(i)+":"+vn(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)gn(l[c])&&(n+=Vr(i)+":"+vn(i,l[c])+";");else {var v=We(e,r,l);switch(i){case "animation":case "animationName":{n+=Vr(i)+":"+v+";";break}default:n+=i+"{"+v+"}";}}}}return n}var yn=/label:\s*([^\s;{]+)\s*(;|$)/g,Z;function pn(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=true,o="";Z=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=We(t,r,i);else {var l=i;o+=l[0];}for(var s=1;s<e.length;s++)if(o+=We(t,r,e[s]),n){var c=i;o+=c[s];}yn.lastIndex=0;for(var v="",g;(g=yn.exec(o))!==null;)v+="-"+g[1];var u=fn(o)+v;return {name:u,styles:o,next:Z}}a();var Ra=typeof document<"u",Cn=function(r){return r()},Fa=ie.useInsertionEffect?ie.useInsertionEffect:false,_n=Ra&&Fa||Cn;a();var Hr=typeof document<"u";function bn(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var Wr=function(r,t,n){var o=r.key+"-"+t.name;(n===false||Hr===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},Sn=function(r,t,n){Wr(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+o:"",l,r.sheet,true);!Hr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Hr&&i.length!==0)return i}};a();var za=/^((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)-.*))$/,Pn=Cr(function(e){return za.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var Aa=typeof document<"u",La=Pn,Va=function(r){return r!=="theme"},xn=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?La:Va},Bn=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},Ha=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;Wr(t,n,o);var i=_n(function(){return Sn(t,n,o)});if(!Aa&&i!==void 0){for(var l,s=n.name,c=n.next;c!==void 0;)s+=" "+c.name,c=c.next;return ie.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},kn=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=Bn(r,t,n),c=s||xn(o),v=!c("as");return function(){var g=arguments,u=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else {var y=g[0];u.push(y[0]);for(var S=g.length,R=1;R<S;R++)u.push(g[R],y[R]);}var _=withEmotionCache(function(b,k,x){var P=v&&b.as||o,I="",Ve=[],we=b;if(b.theme==null){we={};for(var Ut in b)we[Ut]=b[Ut];we.theme=ie.useContext(ThemeContext);}typeof b.className=="string"?I=bn(k.registered,Ve,b.className):b.className!=null&&(I=b.className+" ");var ur=pn(u.concat(Ve),k.registered,we);I+=k.key+"-"+ur.name,l!==void 0&&(I+=" "+l);var Fi=v&&s===void 0?xn(P):c,fr={};for(var mr in b)v&&mr==="as"||Fi(mr)&&(fr[mr]=b[mr]);return fr.className=I,x&&(fr.ref=x),ie.createElement(ie.Fragment,null,ie.createElement(Ha,{cache:k,serialized:ur,isStringTag:typeof P=="string"}),ie.createElement(P,fr))});return _.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",_.defaultProps=r.defaultProps,_.__emotion_real=_,_.__emotion_base=o,_.__emotion_styles=u,_.__emotion_forwardProp=s,Object.defineProperty(_,"toString",{value:function(){return "."+l}}),_.withComponent=function(b,k){var x=e(b,pr({},t,k,{shouldForwardProp:Bn(_,k,true)}));return x.apply(void 0,u)},_}};Wi(wn());var Wa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],De=kn.bind(null);Wa.forEach(function(e){De[e]=De(e);});var $r=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?h(n):n)}static span=r=>De.span({...this.getStyle(r)});static div=r=>De.div({...this.getStyle(r)});static img=r=>De.img({...this.getStyle(r)})},Te=$r;function Ua(e){let r=useRef(null),[t,n]=useState(false),o=E({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let g=o.read();r.current&&[g.top,g.left].some(u=>!!u)&&(r.current.scrollTop=g?.top??0,r.current.scrollLeft=g?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Lr(r.current)&&!t&&n(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=C({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?s:void 0,bottom:e.enableYFaders?s:void 0}}),v=Te.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(v,{...de(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:g=>{let u=r?.current?.scrollTop,y=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([u,y]))||o.upsert({top:u??0,left:y??0}),e.onScroll?.(g);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Ua;a();function ja(e){let r=!!e.tint,t=Te.img(e.sx);return jsx(t,{...de(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${h(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var me=ja;a();function qa(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx(Jr,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(d,{width:"full",children:[jsx(Jr,{index:o,bold:t,item:n.label,active:n.nestedItems.some(i=>e.isItemActive(i)),completed:n.nestedItems.every(i=>e.isItemCompleted(i)),onClick:n.nestedItems?.[0]?()=>r(n.nestedItems[0]):void 0}),jsx(d,{width:"full",children:n.nestedItems.map((i,l)=>jsx(Jr,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function Jr(e){let r=oe.white,t=G.onSurface,n=e.nested?t:G.tertiaryContainer,o=e.active?n:oe.carlsbergGreen,i=e.active&&!e.nested?n:G["onSurface[0.25]"],l=e.nested?G["onSurface[0.4]"]:G["onSurface[0.5]"],s=G["onSurface[0.2]"],c=()=>e.onClick?.(e.item),v=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:l,borderColor:e.completed?o:e.active?n:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?o:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(v,{fontSize:"1rem"}):jsx(p,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(v,{size:"1.25rem",opacity:.75})]})}var Xr=qa;a();function Qa(e){let r=i=>e.ellipsis?j(i):e.lineLimit?He(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=Te.span(e.sx);return jsx(o,{...de(e),ref:e.ref,style:r({...n,width:e.ellipsis?"100%":n.width,textAlign:n.textAlign||e.textAlign||"justify",fontStyle:n.fontStyle||e.italic?"italic":void 0,textDecoration:n.textDecoration||t()||void 0}),children:e.text||e.children})}var p=Qa;a();var br="1px",On=6,Re=createContext(null);function nl(e){let r=e.defaultColumnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",n=!!e.selectedRows,[o,i]=useState(e.defaultSelectedRows||[]),l=()=>e.columns.map(x=>{let P=typeof x=="object"?x:{};return {...P,name:Ee(x),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),s=x=>(e.selectable?`auto ${br}`:"")+l().map(I=>{let Ve=I.weight||r;return Ve==="auto"?x.find(we=>we.name===I.name)?.weight||"auto":Ve}).join(` ${br} `),[c,v]=useState(s(l())),g=o.length===e.entries.length&&e.entries.length>0,u=useRef(null),y=useRef(false),S=(Array.isArray(e.children)?e.children:[e.children]).filter((x,P)=>P<2),R=()=>{let x=[];g||(x=e.entries.map((P,I)=>I)),e.onSelectedRowsChange?.(x),n||i(x);},_=x=>{let P=[...o];P.includes(x)?P=P.filter(I=>I!==x):P.push(x),e.onSelectedRowsChange?.(P),n||i(P);},b=x=>{u.current?(x.forEach((P,I)=>{(u.current.get(I)||0)<P&&u.current.set(I,P);}),k()):(u.current=x,S.length===1&&k());},k=()=>{if(y.current){y.current=false;return}let x=l().map(P=>{let I=u.current.get(P.name);return I?{...P,weight:`${I}px`}:P});y.current=true,u.current=null,v(s(x));};return jsx(Re.Provider,{value:{...e,gridCols:c,selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:g,onSelectRowClick:_,onSelectAllRowsClick:R,columns:l(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:b},children:jsx(d,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"',...e.style||{}},children:S})})}function ol(e){let r=useContext(Re),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:br,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(An,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,l)=>{let s=Ee(o);return jsxs(ie__default.Fragment,{children:[jsx(p,{ref:c=>{c&&(n.current.set(s,parseFloat(getComputedStyle(c).width)+On),i===lastIndex(l)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(s):e.formatColumnName?.(s)??camelCaseToLetter(s),style:{flexGrow:1,textAlign:Ne("textAlign",o)}}),i!==l.length-1&&jsx(Gr,{color:e.separatorColor})]},s+i)})]})}function il(e){let r=useContext(Re),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(d,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((n,o)=>jsx(al,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=o===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function al(e){let r=useContext(Re),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{spill:"hidden",style:{gap:o,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(An,{selected:t,onClick:n}),r.columns.map((s,c,v)=>{let g=Ee(s),u=e.rowData[g],y=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),R=c+Ee(s),_=Ne("textAlign",s),b={textAlign:_,justifyContent:_,color:Ne("color",s),opacity:Ne("opacity",s,1),backgroundColor:Ne("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:g,columnIndex:c,rowIndex:e.index,data:typeof u=="string"?u:null,siblingData:{previous:c===0?null:run(e.rowData[Ee(v[c-1])],k=>typeof k=="string"?k:null),next:c===v.length-1?null:run(e.rowData[Ee(v[c+1])],k=>typeof k=="string"?k:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsxs(Fragment,{children:[jsx(ll,{data:u,style:b,onRender:S,placeholder:y,onWidthComputed:k=>e.onColWidthComputed(g,k)},R),c!==v.length-1&&jsx(Gr,{})]}):jsxs(Fragment,{children:[jsx(In,{data:u,style:b,placeholder:y,onRender:S},R),c!==v.length-1&&jsx(Gr,{})]})})]})}function ll(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+On):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(In,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function In(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}function Gr(e){let r=useContext(Re),t=e.color||r.separatorColor;return jsx(d,{width:br,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function An(e){let r=useContext(Re),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(Mn,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var Ee=e=>typeof e=="string"?e:e.name,Ne=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,sl={Root:nl,Header:ol,Body:il},cl=sl;a();a();function ul(e){return jsxs(d,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[!e.hideSelectedTick&&e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),e.leadingEl,jsx("span",{children:e.formatOption?.(`${e.value}`)||`${e.value}`,style:j({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var Yr=ul;var Vn=createContext(null);function hl(e){return jsx(Vn.Provider,{value:{...e,options:e.options.map(r=>typeof r=="string"||typeof r=="number"?{value:r.toString(),leadingEl:e.defaultLeadingEl,trailingEl:e.defaultTrailingEl}:{...r,leadingEl:r.leadingEl||e.defaultLeadingEl,trailingEl:r.trailingEl||e.defaultTrailingEl})},children:jsx(Fe,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(pl,{})})})}function pl(){let e=useContext(Vn),r=Hn(),[t,n]=useState(e.isSelected?e.options.findIndex((i,l)=>e.isSelected(i,l,e.options)):void 0),{triggerRerender:o}=M();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),n(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(Yr,{formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var Ge=hl;a();function ty(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(d,{size:"full",centerContent:true,children:jsx(Spinner,{})})}),jsx(Activity,{mode:r?"hidden":"visible",children:jsx(e.children,{})})]})}a();function sy(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}a();var wl=["sm","md","lg","xl","xs"];function gy(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=l=>l&&typeof l=="string"&&[...wl].includes(l);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:h(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}a();function Sy(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,l=e.totalPages-1,s=async g=>{if(g===t)return;let u=g===t+1,y=Math.abs(g-t)>1;r.current=y?null:u,y||(u?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(g),n(g),await e.afterPageChange?.(g);},c=async()=>s(t-1),v=async()=>s(t+1);return jsxs(d,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Nn,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:c}),jsx(d,{row:true,justify:l>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,g=>{let u=t===g;return jsx(d,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${g+1}`,corners:"circle",fade:u?1:.5,borderColor:u?void 0:"onSurface[0.1]",backgroundColor:u?"primary":void 0,color:u?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===l?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>s(g)},g)})}),jsx(Nn,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:v})]})}function Nn(e){return jsx(B,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}a();var $n=createContext(null);function Vl(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx($n.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(Wl,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Hl(){let e=useContext($n);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Wl(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var zy={Root:Vl,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:Hl,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};a();a();a();var Jn=["Google"],Xn=["pdf","word","excel","img","txt","unknown"],Un=Object.freeze({txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]});function jn(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:Nl(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Nl=e=>e.flatMap(r=>Un[r]);function Ky(e){return jsx(jn,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:h(e.backgroundColor||"transparent"),borderColor:h(e.borderColor||"outlineVariant"),color:h(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}a();var Qn=createContext(null);function ah(e){let r=E(null),t=E(e.defaultValue??""),[n,o]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",v=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},g=()=>{v(t.read());},u=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&l(true));},y=(P={asClick:true})=>{r.upsert("cancel"),g(),P.asClick&&e.onCancelClick?.(),l(false);},S=P=>{P.preventDefault(),l(false);},R=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),l(false);},_=()=>{r.upsert("edit"),e.onEditClick?.(),u();},b=()=>{R(false);},k=()=>{e.onContentClick?.(),u();},x={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Qn.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...x,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:L[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...x,grid:true,gap:e.columnGap??x.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(P=>e.hideControls.includes(P))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(q,{autoFocus:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:v,onBlur:S,onEnterKeyPressed:b,onEscapeKeyPressed:()=>y({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>y({asClick:false}):void 0,onClick:s==="click"?k:void 0,children:jsx(Fe,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:j({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Zl,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:y,onSave:R,onEdit:_}))]})]})})}function Zl(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Zr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Zr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Zr,{icon:LuPencilLine,onClick:e.onEdit})}function Zr(e){let{padding:r,iconSize:t}=useContext(Qn);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(B,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}a();var et=createContext(null);function rs(e){return jsx(et,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function ts(e){let{fade:r}=useContext(et);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function ns(e){let{fade:r}=useContext(et);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Sr={Root:rs,Indicator:ts,Content:ns};a();function ge(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&&ie__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:h(e.backgroundColor),color:h(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function to(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}a();var no=createContext(null);function ms(e){return jsx(no.Provider,{value:{gap:e.gap},children:jsx(d,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function oo(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:n,...c,row:o,spill:i,centerContent:l,align:s,children:t})}}function io(e){return r=>jsx("span",{style:(()=>{let n=C({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?j(n):He(r.truncateStyle.lineCount,n)})(),children:r.value})}var gs=oo(),vs=oo(),ys=e=>{let{gap:r=e.gap}=useContext(no);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},hs=io({fontWeight:"bold",fontSize:"xs",fade:.75}),ps=io({fontSize:"sm"}),J={Root:ms,LeadingAddOn:gs,TrailingAddOn:vs,Content:ys,Label:hs,Item:ps};a();function bs(e){let r=()=>{if(typeof e.fallback=="string"||ie__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(d,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(me,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Ss(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var Wh={Root:bs,Content:Ss};a();function Ps(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(ge,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:j(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:j(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var Kh={Root:Ps,Content:d};a();function Mn(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(d,{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}})})}a();a();function Ds(e){let{triggerRerender:r}=M(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var it=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;o?.[l]||(o=Object.assign(o,{[l]:r[l]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...o,children:t.children})})},Ts=it("Header",{fontSize:"xl",fontWeight:"bold"}),Es=it("Body",{gap:"md"}),Rs=it("Footer",{row:true,gap:"sm"}),Fs=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),zs=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),D={Root:Ds,Header:Ts,Body:Es,Footer:Rs,CloseTrigger:Fs,ActionTrigger:zs};function hp(e){let r=e.severity||"error",t=h(r,{preference:"res"});return jsxs(D.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(D.Header,{fontSize:"2xl",children:e.title}),jsxs(D.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
18
|
-
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(lo,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(D.Footer,{gap:"md",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(B,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var at=createContext(null);function kp(e){let r=e.sections.flatMap(_=>typeof _=="object"?_.nestedItems:_),t=e.defaultSection?r.findIndex(_=>_===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=M(),l=E([]),s=r[n],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),v=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((_,b)=>{u(_,b);}),i();},[]);let g=(_=l.read())=>r.filter(b=>!_.includes(b)&&!c.includes(b)),u=(_=s,b=n)=>{let k=l.read();if(!c.includes(_)){if(e.isSectionComplete(_)&&!k.includes(_))k=[...k,_];else if(!e.isSectionComplete(_)&&k.includes(_))k=k.filter((x,P)=>P!==b);else return;l.upsert(k),e.onSectionsStatusChange?.(g(k),k);}},y=_=>{u(),o(r.findIndex(b=>b===_));},S=()=>{n>=r.length-1||(u(),o(n+1));},R=()=>{v||(u(),o(n-1));};return jsx(at.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(D.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(D.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(Vs,{title:e.title,onSectionClick:y}),jsx(Hs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:v,onPreviousClick:R,onNextClick:S,incompleteSections:g(),onSubmitClick:e.onSubmit})]})})})}function Vs(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(at);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Xr,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function Hs(e){let{activeSection:r}=useContext(at),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(p,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(st,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(ct,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(lt,{onClick:e.onNextClick})]})]})}a();a();var Ws=fe({preset:{text:"Save",async:true}}),dt=Ws;function Lp(e){let{triggerRerender:r}=M(),t=E(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(D.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(D.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(D.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],v=t.read()?.[s]??"",g=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,u=y=>t.upsert(S=>({...S||{},[s]:y}));return c.options?jsx($s,{label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:u},l):jsx(q,{width:"full",placeholder:c.placeholder,label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:u},s)})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Qe,{fade:.5,size:n,onClick:i})}),jsx(D.ActionTrigger,{children:jsx(dt,{size:n,onClick:o})})]})]})}function $s(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Ge,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(q,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var te={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},rr=createContext(null);function Gs(e){let r=h(e.borderColor||"outline[0.1]"),t=ue.md;return jsx(rr.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${te.topbar} ${te.topbar}" "${te.sidebar} ${te.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function js(e){let{navThickness:r}=useContext(rr),t=Br(e.file.typeAlias);return jsxs(d,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${V.md})`}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(d,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(p,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Ys(e){let{navThickness:r}=useContext(rr),{children:t,...n}=e;return jsx(d,{...n,row:true,id:te.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:["md",["left","right"]],justify:e.justify||"space-between",style:{...e.style,gridArea:te.topbar},children:e.children})}var fo=createContext(null);function Ks(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(rr);return jsx(fo.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...n,id:te.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:te.sidebar},children:e.children})})}function qs(e){let{onOptionClick:r}=useContext(fo),t=()=>{e.onClick?.(),r(e.label);};return jsx(Fe,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function Zs(e){let{borderColor:r,corners:t}=useContext(rr),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],l=n.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${te[c]}`));i.every(c=>s.includes(c))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:te.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Qs(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...n,backgroundColor:e.color||"outline[0.1]"})}var Gp={Root:Gs,Sidebar:Ks,SidebarOption:qs,Topbar:Ys,Viewer:Zs,Indicator:js,Sep:Qs};a();var mo=(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))(mo||{});function go(e){let r=mo[e.size||"sm"];return jsx(d,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}a();function vo(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,l],s,c)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
|
|
19
|
-
${t(l,true)}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
translateX(calc(${y} * -5rem))`,filter:`blur(calc(${S} * .5rem))`},children:typeof g=="function"?jsx(g,{isActive:u===o}):g},u)}),!e.hideControls&&jsx(_o,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:c})]})})}function _o(e){let r=useContext(bo),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(d,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var Dr=createContext(null);function Fe(e){let r=E(e.open??false),{triggerRerender:t}=M(),n=`--${v4()}`,o=useRef(null),i=useRef(null),l=ie__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let v=e.placement||"bottom-left",g=["top","right","bottom","left"].includes(v),u=g?{positionArea:v}:Cc(e.anchorPoint||"top-left",pc(v));if(!e.visibleOnScroll){let S=on(o.current);S&&S.addEventListener("scroll",R=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${R.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${y}`]:e.offset??".25rem",...u,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let v=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",g=>{let u=g.newState==="open";u?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(u),r.upsert(u),!u&&e.rerenderOnClose&&t();}),v==="click")i.current?.addEventListener("click",()=>{c(()=>o.current?.togglePopover());});else if(v==="hover"){let g,y=()=>{g&&(g=null),c(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?g=setTimeout(y,20):y();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{g&&clearTimeout(g);}),o.current?.addEventListener("mouseleave",y));}},[]);let s=(v,g)=>v==="match-anchor"?getComputedStyle(i.current)?.width:v??g,c=(v,g)=>{let u=200;typeof e.delay=="number"?u=e.delay:e.delay&&g in e.delay&&(u=e.delay[g]),setTimeout(v,u);};return jsxs(Dr.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var pc=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Cc=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};a();function YC(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?h(e.backgroundColor):void 0,boxShadow:e.borderColor?`${h(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in V?V[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?h(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in V?V[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(Sc,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function Sc(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in L?L[e.fontSize]:e.fontSize,border:0,color:h(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}a();function To(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:h(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function i_(e){return jsx(d,{id:e.id,style:xc({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var Pc=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],xc=e=>{let{height:r,width:t}=Pc(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:h("paper"),color:h("onPaper"),overflow:"hidden"}};a();function Ro(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function h_(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}a();a();var Io=ie.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:v,...g}=r;return i?o:jsxs(Tooltip.Root,{...g,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!l,container:v,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function Er(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(Io,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var vt=createContext(null);function Ic(e){let r=E([]),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:h(t)}})}),jsx("p",{}),l]})),i=()=>{if(n.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===n.length)return "last"};return jsx(vt.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function Ac(e){let[r,t]=useState(),{register:n}=useContext(vt),{indicator:o,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let g=n();typeof g=="string"&&t(g);},[r]);let v=g=>r===g||r==="both";return jsxs(Fragment,{children:[jsx(Mo,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(Lo,{hide:v("first")}),jsx(d,{style:{...C({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Lo,{hide:v("last")})]}),jsx(Mo,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function Mo(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Lo(e){let{lineSeparatorColor:r}=useContext(vt);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var M_={Root:Ic,Item:Ac};a();function J_(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:h(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:h(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var yt=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function q(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=_=>typeof e.indent=="string"?e.indent:e.indent?.[_],v="md",{size:g,...u}=e,y={label:C({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...u,width:"full",padding:{top:v,left:e.leadingContent?c("left")||s:v,right:e.trailingContent||e.showCharCounter?c("right")||s:v,bottom:v},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=_=>{o.current.value=_,e.onChange(_,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let _=b=>{if(e.format!=="currency")return;let k=b;if(k=k.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((x,P)=>P<2).join("."),k&&takeLast(k.split(""))[0]!=="."){let x=parseFloat(k);if(!isNaN(x)){let P=new Intl.NumberFormat;S(P.format(x));}}};o.current?.addEventListener?.("beforeinput",b=>{let k=b.data,x=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";x==="all"||Array.isArray(x)&&x.includes("all")||k===null||(!Array.isArray(x)&&!yt(k,x)||Array.isArray(x)&&x.some(P=>!yt(k,P)))&&b.preventDefault();}),o.current?.addEventListener?.("paste",b=>{_(b.target.value);}),o.current?.addEventListener?.("input",b=>{_(b.target.value);});},[o.current]);let R=_=>{e.onChange?.(_,void 0),e.onPasteClick?.(_);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:y.root,children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...y.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Xc,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:R,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(p,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(o.current?getComputedStyle(o.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:g,zIndex:1,variant:e.variant,onKeyDown:_=>{_.key==="Enter"?e.onEnterKeyPressed?.():_.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:y.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":h(e.focusColor||"primary"),transition:"all 300ms linear"},_placeholder:e.slotProps?.placeholder?.color?{color:h(e.slotProps.placeholder.color)}:void 0,onChange:_=>{let b=_.currentTarget.value;switch(e.allowHtmlInput||(b=ln(b)),e.trimOnChange){case "start":b=b.trimStart();break;case "end":b=b.trimEnd();break;case true:b=b.trim();break}e.validateInput?.(b)!==false&&(e.onChange?.(b,_),n||t(b));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:y.helperText,children:e.helperText})]})}function Xc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:V.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Ae,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx($o,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function lo(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:h(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(an(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function Xo(e){return {FlyLeavingBox:Kc}[e]}var _t=createContext(null);function Qc(e){let r=E(e.attachments||[]),{triggerRerender:t}=M(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(_t.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let l=r.read();o==="add"&&(l=[...l,i]),o==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),o==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(D.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(D.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(D.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(td,{}):jsx(ed,{})})]})})}function ed(){let e=useContext(_t),r=E(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?o.filter(({name:u})=>u.toLowerCase().includes(t.toLowerCase())):o,s=isEmpty(l)&&!!t.trim(),c=u=>{i(y=>y.filter(({uid:S})=>S!==u.uid)),e?.onAttachmentDeleted?.(u),e?.attachmentsEventListener?.("delete",u);},v=(u,y)=>{let S=sanitizeLocalFile(y[0]);i([...o,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},g=u=>{e?.onOpenAttachment?.(u),e?.attachmentsEventListener?.("open",u);};return jsxs(Fragment,{children:[jsx(Pt,{width:"full",value:t,onChange:n}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((u,y,S)=>jsx(rd,{scrollIntoView:r.read()===false&&y===S.length-1,value:u,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(u):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(u):e?.openDisabled,onDelete:c,onOpen:g},u.uid))}),!e.hideUploadButton&&jsx(lr,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:v})]})}function rd(e){let{typeAlias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Br(r);return jsxs(J.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(J.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(me,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(J.Content,{gap:"sm",width:"full",children:[jsx(J.Item,{truncateStyle:"ellipsis",value:n}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(J.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(St,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(ar,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function td(){let e=useContext(_t);return jsxs(Sr.Root,{children:[jsx(Sr.Indicator,{size:"7rem",disableFade:true,element:jsx(me,{spill:"hidden",size:"full",src:Xo("FlyLeavingBox")})}),jsx(Sr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(lr,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(n));}),e.rerender();}})]})}var bt=Qc;function id(e){let r=E(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=M(),n=o=>{r.upsert(o);};return jsx(Er,{tooltip:"Attachments",placement:"right",children:jsx(to,{circleChild:true,asChild:!e.attachments,badge:jsx(go,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(ad,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function ad(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...l}=e;return r?t:jsx(bt,{...l,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var xt=id;a();var sd=fe({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Qe=sd;a();function ud(e){return jsx(B,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var ar=ud;a();function gd(e){let{iconOnly:r,...t}=e;return jsx(B,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var vd=gd;a();function bd(e){let r=E(e.initialState==="expanded"),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var Sd=bd;a();function Pd(e){return jsx(B,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var lt=Pd;a();function kd(e){return jsx(B,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var St=kd;a();function Td(e){return jsx(B,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var Ed=Td;a();function zd(e){let r=jsx(B,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(Bt,{triggerElement:r,options:e.options}):r}var Od=zd;a();function Id(e){return jsx(B,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var st=Id;a();function Ld(e){return jsx(B,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var kt=Ld;a();function Vd(e){return jsx(B,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var ct=Vd;a();function Nd(e){return jsx(B,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var wt=Nd;a();function Jd(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:nn({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Xd=Jd;a();function jd(e){return jsxs(J.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(J.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(me,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(J.Content,{width:"full",gap:"xs",children:[jsx(J.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(J.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(J.TrailingAddOn,{children:jsx(ar,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Yd=jd;a();function nu(e){let[r,t]=useState(e.selectedDate||new Date),n=E(r),o=e.minDate==="today"?new Date:ti(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?iu():ti(e.maxDate),l=u=>{t(u),e.onDateSelected?.(u);},s=u=>u.toDateString()===r.toDateString(),c=u=>u.toDateString()===new Date().toDateString(),v=u=>{let y=n.read();return y.getMonth()===u.getMonth()&&lu(u.getDate(),y.getMonth())},g=u=>n.upsert(u);return jsx(Qd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:g,onYearChange:g,renderCustomHeader:u=>jsx(ou,{...u,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:u=>["calendar-date",s(u)?"selected":"unselected",c(u)?"today":"",v(u)?"":"out-of-bounds",au(u,i)?"excluded":""].join(" ")})}function ou(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,v)=>{let g=e.date.getFullYear();return g===e.minDate.getFullYear()?v>=e.minDate.getMonth():g===e.maxDate.getFullYear()?v<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=c=>{e.changeMonth(r.findIndex(v=>v===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(ri,{label:n,isSelected:c=>n===c,options:t.map(c=>({value:c})),onOptionClick:o}),jsx(ri,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function ri(e){return jsx(Ge,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var ti=e=>{if(e)return e instanceof Date?e:new Date(e)};var iu=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var au=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},lu=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Rt=memo(nu);a();a();var su=fe({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),ni=su;function cu(e){let r=E(null),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=u=>{r.upsert(u),e.onDateSelected?.(u);},v=()=>{let u=r.read();u&&e.onDoneClick?.(u);},g=u=>{e.onOpenChange?.(u);};return jsxs(D.Root,{hideCloseButton:true,onOpenChange:g,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(D.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(D.Body,{children:jsx(Rt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Qe,{size:s,fade:.5})}),jsx(D.ActionTrigger,{children:jsx(ni,{size:s,onClick:v})})]})]})}var du=cu;a();function yu(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(D.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(D.Header,{children:"Payment Options"}),jsx(D.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:L.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===l&&jsx(o,{content:i.dropDownContent})]}),c]})})})]})}var ii=e=>e,zx=e=>ii({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}}),Ox=()=>ii({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Bt=yu;a();var ai=createContext(null);function Ft(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},v=({fontSize:g,lineHeight:u,opacity:y})=>({fontSize:g,lineHeight:u,opacity:y});return jsx(ai.Provider,{value:{color:i},children:jsxs(D.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(D.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:h(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:v(c.title),children:n}),jsx("span",{style:v(c.description),children:o})]})]}),jsxs(D.Footer,{row:true,gap:"md",align:"center",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(Bu,{...s}):void 0]})]})})}function Bu(e){let{color:r}=useContext(ai);return jsx(B,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var li=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Ft.tryAgainButton=li("Try Again");Ft.retryButton=li("Retry");var zr=Ft;a();var zt="onPaper[0.1]",Or=", ";function Du(e){let r=E(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=ci(),n=E({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(Or)??"",attachments:e.attachments||[]}),o=(s,c)=>{n.upsert(v=>({...v,[s]:c}));},i=()=>strictArray(n.read().recipients.split(Or)),l=async()=>{let{subject:s,body:c,attachments:v}=n.read(),g=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:v});if(typeof g!="object")return;let{error:u,response:y}=g;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(g)),u)return t.show({error:u});y!=="success"?t.show({response:y}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(zr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:zr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&n.read().recipients?jsx(Eu,{recipients:i()}):jsx(Tu,{readOnly:e.readOnly,recipients:i(),onChange:s=>o("recipients",s)}),jsx(Ru,{subject:n.read().subject,readOnly:e.readOnly,onChange:s=>o("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Fu,{defaultValue:n.read().body,readOnly:e.readOnly,onChange:s=>o("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(xt,{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(kt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function Tu(e){let[r,t]=useState(false),n=o=>jsx(p,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(si,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Or),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Eu(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[zt,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ge,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(Ot,{textToCopy:e.recipients.join(Or)})]})}function Ru(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[zt,"bottom"],children:[jsx(si,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Ot,{textToCopy:e.subject})]})}function Fu(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${h("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:L.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Ot,{textToCopy:e.defaultValue})})]})}function si(e){return jsx(q,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[zt,"bottom"],onChange:e.onChange})}function Ot(e){return jsx(Ae,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var zu=Du;a();a();function Ou(e){return jsxs(d,{row:true,gap:"md",children:[jsx(fi,{onClick:e.onNoClick}),jsx(ui,{onClick:e.onYesClick})]})}var It=Ou;function Mu(e){return jsxs(d,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(It,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Lu=Mu;a();function Hu(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Vt,{value:r})})}):jsx(Wu,{})})}function Wu(){let e=r=>jsx(p,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var Nu=["string","number","boolean"];function Mt(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function mi(e){return jsxs(Fragment,{children:[jsx(p,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Vt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(mi,{value:r}):jsx(Mt,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function Vt(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,v=e.value[c],g=()=>Nu.includes(typeof v)?jsx(Mt,{value:v}):Array.isArray(v)?jsx(mi,{value:v}):typeof v=="object"?jsx(Vt,{indent:true,value:v}):jsx(Mt,{value:`${v}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(g,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ht=Hu;a();a();a();function Gu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Xn].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],v=[],g=[],u=y=>strictArray(y).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let y of c){if(v.length+g.length>=t)break;r.includes(y.type)?v.push(y):g.push(y);}isEmpty(v)||e.onAccept?.(v,u(v)),isEmpty(g)||e.onReject?.(g,u(g));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(v=>v.kind==="file").map(v=>v.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let v=new DataTransfer;c.forEach(g=>v.items.add(g)),o(c);}},l=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...C(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var vi=Gu;function hi(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(vi,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(B,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var lr=hi({fileClass:"file"}),J5=hi({fileClass:"receipt",accepts:["img"]});function ef(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let n=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(p,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(n,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ge,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(lr,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var rf=ef;a();function nf(e){let r=e.authProviders||[...Jn.values()];return jsxs(d,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(d,{width:"full",color:"inherit",children:[jsx(p,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(of,{provider:t,onClick:e.onAuthProviderClick}))})]})}function of(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(B,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var af=nf;a();a();var _i={timestamp:Date.now(),status:"info",response:"Hello World!"};function uf(e){useEffect(()=>{e.initialMessage&&(_i.response=e.initialMessage);},[]);let r=[_i,...e.logs];return jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(ff,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function ff(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:h(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(To,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:h(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Nt=uf;function pf(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(vo,{item:o,info:n})})}),jsx(Nt,{initialMessage:"Awaiting registration process...",logs:r})]})}var Cf=pf;a();function Sf(e){return jsx(q,{...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 Pt=Sf;a();a();function xf(e){return e.error?jsx(Er,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var $t=xf;function wf(e){let r=E(e?.verifyError),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(q,{...e,leadingAdornment:jsx($t,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(Ro,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(wt,{onClick:o})})}var Jt=wf;a();function xi(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:l=o.fontSize||e.fontSize||".85rem",fontWeight:s=o.fontWeight,lineHeight:c=o.lineHeight=l}=e.slotProps?.[n]||{};return jsx(p,{ellipsis:true,fade:i,fontSize:l,fontWeight:s,text:n==="name"?r:e.email,style:{lineHeight:c in L?L[c]:c}})};return jsxs(d,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(ge,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(d,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}xi.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var Rf=xi;a();function Bi(e){return r=>{let[t,n]=useState(false);return jsx(B,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var $o=Bi({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"})}}),Ae=Bi({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});a();function wi(e){return r=>jsx(B,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var Ek=wi(BsPlus),Rk=wi(BsDash);a();function Di(e){return r=>jsx(B,{...e.defaults,text:e.label,onClick:r.onClick})}var ui=Di({label:"Yes"}),fi=Di({label:"No",defaults:{variant:"outline"}});a();var Wk=fe({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function Uf(e){let r=E(e.defaulValue?.token||""),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return o(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Jt,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx(Ae,{textToCopy:n.payload}),jsx(Ht,{fullSize:true,json:n?n.payload:void 0})]})]})}var Gf=Uf;a();a();function Br(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}a();a();a();a();var Ei=(w=>(w.white="#FFF",w.black="#000",w.gray="#808080",w.pdf="#F40F02",w.word="#41A5EE",w.excel="#21A366",w.img="#8d481f",w.txt="#8c61a9",w.deepSkyBlue="#00BFFF",w.lightSkyBlue="#87CEFA",w.sendBlue="#0a57d0",w.onSendBlue="#c3dfff",w.book_it="#009688",w.stickyNote="#EFAD03",w.matteBlack="#28282B",w.navyBlue="#000080",w.teal="#008080",w.paper="#ffffff",w.onPaper="#28282B",w.paperVariant="#E6E6E6",w.success="#4BB543",w.hyperlink="#2979ff",w.gold="#d4af37",w.carlsbergGreen="#17B169",w.billsRed="#C60C30",w.info="#1565c0",w.error="#C60C30",w.warning="#f9a825",w.jsonKey="#D56C75",w.string="#59A779",w.number="#D19A5A",w.boolean="#56B6C2",w.jsonBracket="#FFCA1D",w.arrayBracket="#DA68A7",w.delete="#C60C30",w.pdf_table_header="#28282B",w))(Ei||{}),oe=Ei;a();var am=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),G=am;a();a();function CD(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function xD(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function FD(e,r,t){let[n,o]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:n,timestamp:new Date().toLocaleTimeString()});},[n]),useEffect(()=>{let s=document.createElement(e),v=(Array.isArray(r.children)?r.children:[r.children]).map(y=>{let S=document.createElement(e);return S.innerHTML=um.renderToStaticMarkup(y),S});Object.assign(s.style,{...i,visibility:"hidden"}),v.forEach(y=>s.appendChild(y)),l.appendChild(s);let g=getComputedStyle(s),u=Object.keys(i).filter(y=>y in g&&typeof g[y]=="string").map(y=>{let R=g[y];return [y,y==="opacity"?R.toString():R===0?"0px":R]});o(Object.fromEntries(u)),l.removeChild(s);},[r]),{style:n}}a();function ci(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}a();function E(e,r){let t=useRef({recent:e,stale:void 0});return {debug:()=>{let n=t.current.stale,o=t.current.recent,i=()=>{if(Array.isArray(n)){let s=n;return {from:n,to:o,difference:o.filter((v,g)=>g<s.length?s[g]!==v:false)}}switch(typeof n){case "string":return {from:n,to:o,difference:o.replace(n,"")};case "object":return {from:n,to:o,difference:Object.fromEntries(Object.keys(n).map(s=>{let c=s;if(o[c]!==n[c])return [c,o[c]]}).filter(s=>!!s))};default:throw new Error("Not yet implemented bro!")}},l=250;return console.log(buildArray(l,s=>s===0||s===l?"/":"*").join(""),i()),i()},upsert:n=>{let o=typeof n=="function"?n(t.current.recent):n,i=t.current.recent;t.current={recent:o,stale:i},r?.onChange?.(o,i);},read:()=>t.current.recent,delete:()=>{t.current=void 0;}}}a();function So(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Hn(){return useContext(Dr)}a();function M(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function ZD(e,r){let[t,n]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;n(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}a();function oT(e){let r=useContext(vr),{triggerRerender:t}=M(),n=c=>{throw new Error("Invalid key used in useEvent",{cause:`${c} with type "${typeof c}" provided, but a key with type "string" was expected.`})};return {emit:(c,...v)=>{if(typeof c!="string")return n(c);r.emit(c,v?.[0]),e?.rerenderOnEmit&&t();},on:(c,v,g)=>{if(typeof c!="string")return n(c);let u=r.on(c,v);return g?.rerender&&t(),u},listeners:c=>typeof c!="string"?n(c):r.listeners(c),dettach:c=>typeof c!="string"?n(c):r.dettach(c)}}a();function dT(e){let{triggerRerender:r}=M(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}a();export{xt as AttachmentsButton,bt as AttachmentsDialog,ge as Avatar,sy as AvatarGroup,to as Badge,B as BasicButton,d as BasicDiv,me as BasicImg,Xr as BasicOl,Yr as BasicOption,Ge as BasicSelect,p as BasicSpan,cl as BasicTable,Rt as Calendar,du as CalendarDialog,Qe as CancelButton,J as Card,Mn as Checkbox,oe as ColorResources,hp as ConfirmationDialog,Ae as CopyButton,G as CssColors,ue as CssShapes,V as CssSpacing,ty as Debounce,ar as DeleteButton,D as Dialog,lo as Disclaimer,Wk as DownloadButton,zy as Drawer,vd as EditButton,ah as Editable,zu as EmailComposer,Sr as EmptyState,$t as ErrorTooltip,en as EventContainer,Sd as ExpandableButton,kp as FancyFormDialog,Ky as FileDropzone,Gp as FileViewer,L as FontSize,go as Indicator,vo as ItemInfo,Ht as JsonViewer,Gf as JwtVerifier,Wh as MediaCard,lc as Menu,Xd as MoneyDisplayCard,Rk as NegativeButton,lt as NextButton,fi as NoButton,St as OpenButton,Ed as OptionsButton,Sy as PageIndicator,EC as PageSlider,i_ as Paper,$o as PasteButton,Od as PaymentOptionsButton,Bt as PaymentOptionsDialog,rf as PictureUploader,Fe as Popover,Ek as PositiveButton,st as PreviousButton,Kh as ProfileCard,Yd as ReceiptCard,dt as SaveButton,Pt as SearchTextField,YC as SegmentedControls,kt as SendButton,J_ as Separator,af as SignInWidget,Lp as SimpleFormDialog,gy as Spinner,Ro as Status,h_ as Stepper,ct as SubmitButton,To as Tag,Cf as TaskLogger,zr as TaskResultDialog,Nt as Terminal,q as TextField,M_ as Timeline,Er as Tooltip,lr as UploadButton,J5 as UploadReceiptButton,Rf as UserProfile,wt as VerifyButton,Jt as VerifyTextField,na as WavyUi,ui as YesButton,It as YesNoButtonGroup,Lu as YesOrNoForm,C as applyBasicStyle,zx as bankTransferPaymentOption,f0 as borderRadius,s0 as buildCSS,b0 as computedCssVariable,ia as convertHexUnitTo256,c0 as cssTransition,ii as definePaymentOption,m0 as disabledBorderRadius,g0 as dragElement,j as ellipsis,u0 as flexCenter,Br as getFileIcon,Pc as getPaperDim,on as getScrollParent,aa as hexToRgba,Ox as inAppPaymentOption,Lr as isOverflown,an as isSpanMultiLine,oa as isValidHex,y0 as nativeEllipsis,v0 as noSpaceStyle,xc as paperStyle,_0 as remAsPx,la as remToPx,h as resolveBasicColor,He as restrictLineCount,h0 as rgbToRgba,p0 as screenHasMaxWidth,C0 as screenHasMinWidth,d0 as solidBorder,ln as stripHtml,nn as tiledBackground,CD as useAsyncEffect,FD as useComputedStyle,oT as useEvent,E as useManagedRef,ci as useModalControls,So as usePageSliderController,Hn as usePopoverContext,xD as usePostRenderEffect,M as useRerender,ZD as useSessionStorage,dT as useSmartState};
|
|
17
|
+
`}function j0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function F0(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 N0(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||Ee.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function A0(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 U0(e){return {...e,margin:0,padding:0}}function me(e,r={apply:true}){return r.apply?xr(1,e):e}function L0(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function ei(e){let r=e;for(;r&&!tn(r);)r=r.parentElement;return r}function ri(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 b(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),a=()=>se[n],l=()=>i?Rd($e[o],parseFloat(i)):$e[n];if(t==="css"){if(n in se)return a();if(o in $e)return l()}else if(t==="res"){if(o in $e)return l();if(n in se)return a()}return n}var ti=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",Td=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Ed=e=>parseInt(e.repeat(2/e.length),16);function Rd(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(!Td(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(Ed);return `rgba(${a}, ${l}, ${s}, ${n(u)})`}function Z0(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 M0(e){return window.matchMedia(`(max-width:${e})`).matches}function V0(e){return window.matchMedia(`(min-width:${e})`).matches}function xr(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function jd(e){return e*16}function J0(e){return `${jd(e)}px`}function tn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function W0(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}c();var Fd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),q=Fd;c();var Nd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),Y=Nd;var mt=["top","right","bottom","left"],ni=(e,r)=>`translate(${e}, ${r})`,oi=e=>`translateX(${e})`,ii=e=>`translateY(${e})`,Ad=(e,r)=>{let t=e.fontSize in Y?Y[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?ni("-50%","-50%"):e.centerSelf==="x"?oi("-50%"):e.centerSelf==="y"?ii("-50%"):e.translate?.x&&e.translate?.y?ni(e.translate.x,e.translate.y):e.translate?.x?oi(e.translate.x):e.translate?.y?ii(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:Md(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:Ud(e.borderColor),borderWidth:Ld(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:Zd(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:Vd(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:b(e.backgroundColor),color:b(e.color),gap:Jd(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 Ud(e){if(!e)return;let r="transparent";return typeof e=="string"?b(e):mt.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?b(n):r}return typeof e=="object"&&t in e?b(e[t]):r}).join(" ")}function Ld(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:mt.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 Zd(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:mt.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 Md(e){let t=n=>n?n in q?q[n]:n:"0px";return e?typeof e=="string"?t(e):mt.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 Vd(e){let t=o=>o?o in Ee?Ee[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 Jd(e){if(!(!e||typeof e!="string"))return e in q?q[e]:e}var C=Ad;var qd=["inherit","sm","md","lg","xl","2xl","xs"],Qd=["sm","md","lg","xl","2xl","xs","2xs"];function ai(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=_=>typeof _=="string"&&[...qd].includes(_);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"&&[...Qd].includes(p),{size:u,...f}=e;return jsxs(Button,{...Te(e),disabled:n,size:s(u)?u:void 0,style:C({...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?b(e.spinnerColor):"blue.500"})})]})}var Re=e=>r=>jsx(ai,{...(()=>{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})()}),O=ai;c();c();c();c();c();function pt(){return pt=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},pt.apply(null,arguments)}c();c();function ci(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 li={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 gt(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var tm=/[A-Z]|^ms/g,nm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mi=function(r){return r.charCodeAt(1)===45},si=function(r){return r!=null&&typeof r!="boolean"},nn=gt(function(e){return mi(e)?e:e.replace(tm,"-$&").toLowerCase()}),ui=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(nm,function(n,o,i){return ye={name:o,styles:i,next:ye},o})}return li[r]!==1&&!mi(r)&&typeof t=="number"&&t!==0?t+"px":t};function Sr(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 ye={name:o.name,styles:o.styles,next:ye},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ye={name:a.name,styles:a.styles,next:ye},a=a.next;var l=i.styles+";";return l}return im(e,r,t)}case "function":{if(e!==void 0){var s=ye,u=t(e);return ye=s,Sr(e,r,u)}break}}var f=t;if(r==null)return f;var p=r[f];return p!==void 0?p:f}function im(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Sr(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+=nn(i)+":"+ui(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+=nn(i)+":"+ui(i,a[s])+";");else {var u=Sr(e,r,a);switch(i){case "animation":case "animationName":{n+=nn(i)+":"+u+";";break}default:n+=i+"{"+u+"}";}}}}return n}var di=/label:\s*([^\s;{]+)\s*(;|$)/g,ye;function fi(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="";ye=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=Sr(t,r,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=Sr(t,r,e[l]),n){var s=i;o+=s[l];}di.lastIndex=0;for(var u="",f;(f=di.exec(o))!==null;)u+="-"+f[1];var p=ci(o)+u;return {name:p,styles:o,next:ye}}c();var am=typeof document<"u",pi=function(r){return r()},cm=we.useInsertionEffect?we.useInsertionEffect:false,gi=am&&cm||pi;c();var on=typeof document<"u";function vi(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var an=function(r,t,n){var o=r.key+"-"+t.name;(n===false||on===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},hi=function(r,t,n){an(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);!on&&l!==void 0&&(i+=l),a=a.next;}while(a!==void 0);if(!on&&i.length!==0)return i}};c();var lm=/^((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)-.*))$/,yi=gt(function(e){return lm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var dm=typeof document<"u",fm=yi,pm=function(r){return r!=="theme"},_i=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?fm:pm},bi=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},gm=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;an(t,n,o);var i=gi(function(){return hi(t,n,o)});if(!dm&&i!==void 0){for(var a,l=n.name,s=n.next;s!==void 0;)l+=" "+s.name,s=s.next;return we.createElement("style",(a={},a["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},xi=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=bi(r,t,n),s=l||_i(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 _=f.length,I=1;I<_;I++)p.push(f[I],h[I]);}var x=withEmotionCache(function(k,B,D){var P=u&&k.as||o,F="",de=[],nr=k;if(k.theme==null){nr={};for(var Mo in k)nr[Mo]=k[Mo];nr.theme=we.useContext(ThemeContext);}typeof k.className=="string"?F=vi(B.registered,de,k.className):k.className!=null&&(F=k.className+" ");var ct=fi(p.concat(de),B.registered,nr);F+=B.key+"-"+ct.name,a!==void 0&&(F+=" "+a);var ad=u&&l===void 0?_i(P):s,lt={};for(var st in k)u&&st==="as"||ad(st)&&(lt[st]=k[st]);return lt.className=F,D&&(lt.ref=D),we.createElement(we.Fragment,null,we.createElement(gm,{cache:B,serialized:ct,isStringTag:typeof P=="string"}),we.createElement(P,lt))});return x.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=r.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=p,x.__emotion_forwardProp=l,Object.defineProperty(x,"toString",{value:function(){return "."+a}}),x.withComponent=function(k,B){var D=e(k,pt({},t,B,{shouldForwardProp:bi(x,B,true)}));return D.apply(void 0,p)},x}};vd(Si());var vm=["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"],or=xi.bind(null);vm.forEach(function(e){or[e]=or(e);});var ln=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?b(n):n)}static span=r=>or.span({...this.getStyle(r)});static div=r=>or.div({...this.getStyle(r)});static img=r=>or.img({...this.getStyle(r)})},ir=ln;function xm(e){let r=useRef(null),[t,n]=useState(false),o=j({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&&tn(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=C({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?l:void 0,bottom:e.enableYFaders?l:void 0}}),u=ir.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(u,{...Te(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=xm;c();function Cm(e){let r=!!e.tint,t=ir.img(e.sx);return jsx(t,{...Te(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${b(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var je=Cm;c();function $m(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=$e.white,t=se.onSurface,n=e.nested?t:se.tertiaryContainer,o=e.active?n:$e.carlsbergGreen,i=e.active&&!e.nested?n:se["onSurface[0.25]"],a=e.nested?se["onSurface[0.4]"]:se["onSurface[0.5]"],l=se["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(S,{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 un=$m;c();function zm(e){let r=i=>e.ellipsis?me(i):e.lineLimit?xr(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=ir.span(e.sx);return jsx(o,{...Te(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 S=zm;c();var ht="1px",Di=6,cr=createContext(null);function Om(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(D=>{let P=typeof D=="object"?D:{};return {...P,name:ar(D),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),l=D=>(e.selectable?`auto ${ht}`:"")+a().map(F=>{let de=F.weight||r;return de==="auto"?D.find(nr=>nr.name===F.name)?.weight||"auto":de}).join(` ${ht} `),[s,u]=useState(l(a())),f=o.length===e.entries.length&&e.entries.length>0,p=useRef(null),h=useRef(false),_=(Array.isArray(e.children)?e.children:[e.children]).filter((D,P)=>P<2),I=()=>{let D=[];f||(D=e.entries.map((P,F)=>F)),e.onSelectedRowsChange?.(D),n||i(D);},x=D=>{let P=[...o];P.includes(D)?P=P.filter(F=>F!==D):P.push(D),e.onSelectedRowsChange?.(P),n||i(P);},k=D=>{p.current?(D.forEach((P,F)=>{(p.current.get(F)||0)<P&&p.current.set(F,P);}),B()):(p.current=D,_.length===1&&B());},B=()=>{if(h.current){h.current=false;return}let D=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(D));};return jsx(cr.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:f,onSelectRowClick:x,onSelectAllRowsClick:I,columns:a(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:k},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:_})})}function Tm(e){let r=useContext(cr),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:ht,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(Bi,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,a)=>{let l=ar(o);return jsxs(we__default.Fragment,{children:[jsx(S,{ref:s=>{s&&(n.current.set(l,parseFloat(getComputedStyle(s).width)+Di),i===lastIndex(a)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(l):e.formatColumnName?.(l)??camelCaseToLetter(l),style:{flexGrow:1,textAlign:Cr("textAlign",o)}}),i!==a.length-1&&jsx(mn,{color:e.separatorColor})]},l+i)})]})}function Em(e){let r=useContext(cr),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(Rm,{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 Rm(e){let r=useContext(cr),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:a}=C({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(Bi,{selected:t,onClick:n}),r.columns.map((l,s,u)=>{let f=ar(l),p=e.rowData[f],h=typeof l=="object"?l?.placeholder:void 0,_=()=>e.onCellRendered?.(s),I=s+ar(l),x=Cr("textAlign",l),k={textAlign:x,justifyContent:x,color:Cr("color",l),opacity:Cr("opacity",l,1),backgroundColor:Cr("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[ar(u[s-1])],B=>typeof B=="string"?B:null),next:s===u.length-1?null:run(e.rowData[ar(u[s+1])],B=>typeof B=="string"?B:null)}})||{}};return typeof l=="object"&&l.weight==="auto"?jsxs(Fragment,{children:[jsx(jm,{data:p,style:k,onRender:_,placeholder:h,onWidthComputed:B=>e.onColWidthComputed(f,B)},I),s!==u.length-1&&jsx(mn,{})]}):jsxs(Fragment,{children:[jsx(Ii,{data:p,style:k,placeholder:h,onRender:_},I),s!==u.length-1&&jsx(mn,{})]})})]})}function jm(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+Di):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Ii,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Ii(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(S,{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 mn(e){let r=useContext(cr),t=e.color||r.separatorColor;return jsx(g,{width:ht,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function Bi(e){let r=useContext(cr),{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(Oi,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var ar=e=>typeof e=="string"?e:e.name,Cr=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Fm={Root:Om,Header:Tm,Body:Em},Nm=Fm;c();c();function Um(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",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:me({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var pn=Um;var Ei=createContext(null);function Wm(e){return jsx(Ei.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(lr,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(Hm,{})})})}function Hm(){let e=useContext(Ei),r=Ri(),[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(pn,{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 zr=Wm;c();function wC(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 EC(e){let r=e.style?.borderRadius||e.corners||"md";return jsx(g,{...e,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 UC(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}c();var nf=["sm","md","lg","xl","xs"];function WC(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=a=>a&&typeof a=="string"&&[...nf].includes(a);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:b(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}c();function eP(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(Ni,{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(Ni,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:u})]})}function Ni(e){return jsx(O,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}c();var Ai=createContext(null);function vf(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(Ai.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(yf,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function hf(){let e=useContext(Ai);return jsx(g,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function yf(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var dP={Root:vf,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:hf,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 be=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},ur=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError";}},yt={};function xe(e){return yt}c();c();var y={};pd(y,{BIGINT_FORMAT_RANGES:()=>Mi,Class:()=>hn,NUMBER_FORMAT_RANGES:()=>Cn,aborted:()=>Le,allowsEval:()=>bn,assert:()=>Cf,assertEqual:()=>_f,assertIs:()=>xf,assertNever:()=>Sf,assertNotEqual:()=>bf,assignProp:()=>Fe,base64ToUint8Array:()=>Ji,base64urlToUint8Array:()=>Uf,cached:()=>Or,captureStackTrace:()=>bt,cleanEnum:()=>Af,cleanRegex:()=>Er,clone:()=>ge,cloneDef:()=>kf,createTransparentProxy:()=>Bf,defineLazy:()=>N,esc:()=>_t,escapeRegex:()=>Ue,extend:()=>Ef,finalizeIssue:()=>ve,floatSafeRemainder:()=>yn,getElementAtPath:()=>$f,getEnumValues:()=>Br,getLengthableOrigin:()=>Rr,getParsedType:()=>If,getSizableOrigin:()=>Vi,hexToUint8Array:()=>Zf,isObject:()=>dr,isPlainObject:()=>Ae,issue:()=>fr,joinValues:()=>z,jsonStringifyReplacer:()=>mr,merge:()=>jf,mergeDefs:()=>Ne,normalizeParams:()=>$,nullish:()=>Tr,numKeys:()=>Df,objectClone:()=>Pf,omit:()=>Tf,optionalKeys:()=>Sn,partial:()=>Ff,pick:()=>Of,prefixIssues:()=>De,primitiveTypes:()=>Zi,promiseAllObject:()=>wf,propertyKeyTypes:()=>xn,randomString:()=>zf,required:()=>Nf,safeExtend:()=>Rf,shallowClone:()=>Li,slugify:()=>_n,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>Wi,uint8ArrayToBase64url:()=>Lf,uint8ArrayToHex:()=>Mf,unwrapMessage:()=>Ir});c();function _f(e){return e}function bf(e){return e}function xf(e){}function Sf(e){throw new Error("Unexpected value in exhaustive check")}function Cf(e){}function Br(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 z(e,r="|"){return e.map(t=>w(t)).join(r)}function mr(e,r){return typeof r=="bigint"?r.toString():r}function Or(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Tr(e){return e==null}function Er(e){let r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function yn(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 Ui=Symbol("evaluating");function N(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==Ui)return n===void 0&&(n=Ui,n=t()),n},set(o){Object.defineProperty(e,r,{value:o});},configurable:true});}function Pf(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Fe(e,r,t){Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});}function Ne(...e){let r={};for(let t of e){let n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n);}return Object.defineProperties({},r)}function kf(e){return Ne(e._zod.def)}function $f(e,r){return r?r.reduce((t,n)=>t?.[n],e):e}function wf(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 zf(e=10){let r="abcdefghijklmnopqrstuvwxyz",t="";for(let n=0;n<e;n++)t+=r[Math.floor(Math.random()*r.length)];return t}function _t(e){return JSON.stringify(e)}function _n(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var bt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function dr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var bn=Or(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function Ae(e){if(dr(e)===false)return false;let r=e.constructor;if(r===void 0||typeof r!="function")return true;let t=r.prototype;return !(dr(t)===false||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===false)}function Li(e){return Ae(e)?{...e}:Array.isArray(e)?[...e]:e}function Df(e){let r=0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r++;return r}var If=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}`)}},xn=new Set(["string","number","symbol"]),Zi=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ge(e,r,t){let n=new e._zod.constr(r??e._zod.def);return (!r||t?.parent)&&(n._zod.parent=e),n}function $(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 Bf(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 w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Sn(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Cn={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]},Mi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Of(e,r){let t=e._zod.def,n=Ne(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 Fe(this,"shape",o),o},checks:[]});return ge(e,n)}function Tf(e,r){let t=e._zod.def,n=Ne(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 Fe(this,"shape",o),o},checks:[]});return ge(e,n)}function Ef(e,r){if(!Ae(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=Ne(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Fe(this,"shape",i),i},checks:[]});return ge(e,o)}function Rf(e,r){if(!Ae(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 Fe(this,"shape",n),n},checks:e._zod.def.checks};return ge(e,t)}function jf(e,r){let t=Ne(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Fe(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return ge(e,t)}function Ff(e,r,t){let n=Ne(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 Fe(this,"shape",i),i},checks:[]});return ge(r,n)}function Nf(e,r,t){let n=Ne(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 Fe(this,"shape",i),i},checks:[]});return ge(r,n)}function Le(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 De(e,r){return r.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ir(e){return typeof e=="string"?e:e?.message}function ve(e,r,t){let n={...e,path:e.path??[]};if(!e.message){let o=Ir(e.inst?._zod.def?.error?.(e))??Ir(r?.error?.(e))??Ir(t.customError?.(e))??Ir(t.localeError?.(e))??"Invalid input";n.message=o;}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function Vi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Rr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function fr(...e){let[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}function Af(e){return Object.entries(e).filter(([r,t])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Ji(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 Wi(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return btoa(r)}function Uf(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-r.length%4)%4);return Ji(r+t)}function Lf(e){return Wi(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Zf(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 Mf(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var hn=class{constructor(...r){}};var Hi=(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,mr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},xt=v("$ZodError",Hi),Pn=v("$ZodError",Hi,{Parent:Error});function Xi(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 Gi(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 St=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 be;if(a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>ve(s,i,xe())));throw bt(l,o?.callee),l}return a.value};var Ct=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=>ve(s,i,xe())));throw bt(l,o?.callee),l}return a.value};var jr=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 be;return i.issues.length?{success:false,error:new(e??xt)(i.issues.map(a=>ve(a,o,xe())))}:{success:true,data:i.value}},Ki=jr(Pn),Fr=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=>ve(a,o,xe())))}:{success:true,data:i.value}},Yi=Fr(Pn),qi=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return St(e)(r,t,o)};var Qi=e=>(r,t,n)=>St(e)(r,t,n);var ea=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ct(e)(r,t,o)};var ra=e=>async(r,t,n)=>Ct(e)(r,t,n);var ta=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return jr(e)(r,t,o)};var na=e=>(r,t,n)=>jr(e)(r,t,n);var oa=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Fr(e)(r,t,o)};var ia=e=>async(r,t,n)=>Fr(e)(r,t,n);c();c();c();var aa=/^[cC][^\s-]{8,}$/,ca=/^[0-9a-z]+$/,la=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sa=/^[0-9a-vA-V]{20}$/,ua=/^[A-Za-z0-9]{27}$/,da=/^[a-zA-Z0-9_-]{21}$/,ma=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var fa=/^([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})$/,kn=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 pa=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Jf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ga(){return new RegExp(Jf,"u")}var va=/^(?:(?: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])$/,ha=/^(([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 ya=/^((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])$/,_a=/^(([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])$/,ba=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,$n=/^[A-Za-z0-9_-]*$/;var xa=/^\+(?:[0-9]){6,14}[0-9]$/,Sa="(?:(?:\\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])))",Ca=new RegExp(`^${Sa}$`);function Pa(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 ka(e){return new RegExp(`^${Pa(e)}$`)}function $a(e){let r=Pa({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(`^${Sa}T(?:${n})$`)}var wa=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)};var za=/^-?\d+$/,Da=/^-?\d+(?:\.\d+)?/;var Ia=/^[^A-Z]*$/,Ba=/^[^a-z]*$/;var K=v("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[]);}),Oa={number:"number",bigint:"bigint",object:"date"},wn=v("$ZodCheckLessThan",(e,r)=>{K.init(e,r);let t=Oa[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});};}),zn=v("$ZodCheckGreaterThan",(e,r)=>{K.init(e,r);let t=Oa[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});};}),Ta=v("$ZodCheckMultipleOf",(e,r)=>{K.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):yn(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});};}),Ea=v("$ZodCheckNumberFormat",(e,r)=>{K.init(e,r),r.format=r.format||"float64";let t=r.format?.includes("int"),n=t?"int":"number",[o,i]=Cn[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 Ra=v("$ZodCheckMaxLength",(e,r)=>{var t;K.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Tr(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=Rr(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),ja=v("$ZodCheckMinLength",(e,r)=>{var t;K.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Tr(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=Rr(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Fa=v("$ZodCheckLengthEquals",(e,r)=>{var t;K.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Tr(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=Rr(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});};}),Nr=v("$ZodCheckStringFormat",(e,r)=>{var t,n;K.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=()=>{});}),Na=v("$ZodCheckRegex",(e,r)=>{Nr.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});};}),Aa=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ia),Nr.init(e,r);}),Ua=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Ba),Nr.init(e,r);}),La=v("$ZodCheckIncludes",(e,r)=>{K.init(e,r);let t=Ue(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});};}),Za=v("$ZodCheckStartsWith",(e,r)=>{K.init(e,r);let t=new RegExp(`^${Ue(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});};}),Ma=v("$ZodCheckEndsWith",(e,r)=>{K.init(e,r);let t=new RegExp(`.*${Ue(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 Va=v("$ZodCheckOverwrite",(e,r)=>{K.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value);};});c();var kt=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
|
+
`).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 Wa={major:4,minor:2,patch:1};var Z=v("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Wa;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=Le(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,_=p._zod.check(a);if(_ instanceof Promise&&s?.async===false)throw new be;if(f||_ instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await _,a.issues.length!==h&&(u||(u=Le(a,h)));});else {if(a.issues.length===h)continue;u||(u=Le(a,h));}}return f?f.then(()=>a):a},i=(a,l,s)=>{if(Le(a))return a.aborted=true,a;let u=o(l,n,s);if(u instanceof Promise){if(s.async===false)throw new be;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 be;return s.then(u=>o(u,n,l))}return o(s,n,l)};}e["~standard"]={validate:o=>{try{let i=Ki(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Yi(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1};}),Ar=v("$ZodString",(e,r)=>{Z.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wa(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};}),A=v("$ZodStringFormat",(e,r)=>{Nr.init(e,r),Ar.init(e,r);}),rc=v("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=fa),A.init(e,r);}),tc=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=kn(n));}else r.pattern??(r.pattern=kn());A.init(e,r);}),nc=v("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=pa),A.init(e,r);}),oc=v("$ZodURL",(e,r)=>{A.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});}};}),ic=v("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=ga()),A.init(e,r);}),ac=v("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=da),A.init(e,r);}),cc=v("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=aa),A.init(e,r);}),lc=v("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=ca),A.init(e,r);}),sc=v("$ZodULID",(e,r)=>{r.pattern??(r.pattern=la),A.init(e,r);}),uc=v("$ZodXID",(e,r)=>{r.pattern??(r.pattern=sa),A.init(e,r);}),dc=v("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=ua),A.init(e,r);}),mc=v("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=$a(r)),A.init(e,r);}),fc=v("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Ca),A.init(e,r);}),pc=v("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=ka(r)),A.init(e,r);}),gc=v("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=ma),A.init(e,r);}),vc=v("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=va),A.init(e,r),e._zod.bag.format="ipv4";}),hc=v("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=ha),A.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 yc=v("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=ya),A.init(e,r);}),_c=v("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=_a),A.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 bc(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var xc=v("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=ba),A.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=t=>{bc(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort});};});function Wf(e){if(!$n.test(e))return false;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return bc(t)}var Sc=v("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=$n),A.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=t=>{Wf(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort});};}),Cc=v("$ZodE164",(e,r)=>{r.pattern??(r.pattern=xa),A.init(e,r);});function Hf(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 Pc=v("$ZodJWT",(e,r)=>{A.init(e,r),e._zod.check=t=>{Hf(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort});};});var In=v("$ZodNumber",(e,r)=>{Z.init(e,r),e._zod.pattern=e._zod.bag.pattern??Da,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};}),kc=v("$ZodNumberFormat",(e,r)=>{Ea.init(e,r),In.init(e,r);});var $c=v("$ZodUnknown",(e,r)=>{Z.init(e,r),e._zod.parse=t=>t;}),wc=v("$ZodNever",(e,r)=>{Z.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t);});function Ha(e,r,t){e.issues.length&&r.issues.push(...De(t,e.issues)),r.value[t]=e.value;}var zc=v("$ZodArray",(e,r)=>{Z.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=>Ha(u,t,a))):Ha(s,t,a);}return i.length?Promise.all(i).then(()=>t):t};});function wt(e,r,t,n){e.issues.length&&r.issues.push(...De(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value;}function Dc(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=Sn(e.shape);return {...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Ic(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=>wt(h,t,f,r))):wt(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 Xf=v("$ZodObject",(e,r)=>{if(Z.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=Or(()=>Dc(r));N(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=dr,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 I=p[h]._zod.run({value:u[h],issues:[]},s);I instanceof Promise?f.push(I.then(x=>wt(x,l,h,u))):wt(I,l,h,u);}return i?Ic(f,u,l,s,n.value,e):f.length?Promise.all(f).then(()=>l):l};}),Bc=v("$ZodObjectJIT",(e,r)=>{Xf.init(e,r);let t=e._zod.parse,n=Or(()=>Dc(r)),o=h=>{let _=new kt(["shape","payload","ctx"]),I=n.value,x=P=>{let F=_t(P);return `shape[${F}]._zod.run({ value: input[${F}], issues: [] }, ctx)`};_.write("const input = payload.value;");let k=Object.create(null),B=0;for(let P of I.keys)k[P]=`key_${B++}`;_.write("const newResult = {};");for(let P of I.keys){let F=k[P],de=_t(P);_.write(`const ${F} = ${x(P)};`),_.write(`
|
|
20
|
+
if (${F}.issues.length) {
|
|
21
|
+
payload.issues = payload.issues.concat(${F}.issues.map(iss => ({
|
|
22
|
+
...iss,
|
|
23
|
+
path: iss.path ? [${de}, ...iss.path] : [${de}]
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
if (${F}.value === undefined) {
|
|
29
|
+
if (${de} in input) {
|
|
30
|
+
newResult[${de}] = undefined;
|
|
31
|
+
}
|
|
32
|
+
} else {
|
|
33
|
+
newResult[${de}] = ${F}.value;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
`);}_.write("payload.value = newResult;"),_.write("return payload;");let D=_.compile();return (P,F)=>D(h,P,F)},i,a=dr,l=!yt.jitless,u=l&&bn.value,f=r.catchall,p;e._zod.parse=(h,_)=>{p??(p=n.value);let I=h.value;return a(I)?l&&u&&_?.async===false&&_.jitless!==true?(i||(i=o(r.shape)),h=i(h,_),f?Ic([],I,h,_,p,e):h):t(h,_):(h.issues.push({expected:"object",code:"invalid_type",input:I,inst:e}),h)};});function Xa(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=>!Le(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=>ve(a,n,xe())))}),r)}var Oc=v("$ZodUnion",(e,r)=>{Z.init(e,r),N(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),N(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=>Er(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=>Xa(s,o,e,i)):Xa(l,o,e,i)};});var Tc=v("$ZodIntersection",(e,r)=>{Z.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])=>Ga(t,s,u)):Ga(t,i,a)};});function Dn(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(Ae(e)&&Ae(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=Dn(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=Dn(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 Ga(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Le(e))return e;let n=Dn(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 Ec=v("$ZodRecord",(e,r)=>{Z.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ae(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(...De(u,p.issues)),t.value[u]=p.value;})):(f.issues.length&&t.issues.push(...De(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=>ve(f,n,xe())),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(...De(l,f.issues)),t.value[s.value]=f.value;})):(u.issues.length&&t.issues.push(...De(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var Rc=v("$ZodEnum",(e,r)=>{Z.init(e,r);let t=Br(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>xn.has(typeof o)).map(o=>typeof o=="string"?Ue(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 jc=v("$ZodTransform",(e,r)=>{Z.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new ur(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 be;return t.value=o,t};});function Ka(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Fc=v("$ZodOptional",(e,r)=>{Z.init(e,r),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Er(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=>Ka(i,t.value)):Ka(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),Nc=v("$ZodNullable",(e,r)=>{Z.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Er(t.source)}|null)$`):void 0}),N(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);}),Ac=v("$ZodDefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",N(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=>Ya(i,r)):Ya(o,r)};});function Ya(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var Uc=v("$ZodPrefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",N(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));}),Lc=v("$ZodNonOptional",(e,r)=>{Z.init(e,r),N(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=>qa(i,e)):qa(o,e)};});function qa(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 Zc=v("$ZodCatch",(e,r)=>{Z.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(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=>ve(a,n,xe()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>ve(i,n,xe()))},input:t.value}),t.issues=[]),t)};});var Mc=v("$ZodPipe",(e,r)=>{Z.init(e,r),N(e._zod,"values",()=>r.in._zod.values),N(e._zod,"optin",()=>r.in._zod.optin),N(e._zod,"optout",()=>r.out._zod.optout),N(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=>$t(a,r.in,n)):$t(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>$t(i,r.out,n)):$t(o,r.out,n)};});function $t(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var Vc=v("$ZodReadonly",(e,r)=>{Z.init(e,r),N(e._zod,"propValues",()=>r.innerType._zod.propValues),N(e._zod,"values",()=>r.innerType._zod.values),N(e._zod,"optin",()=>r.innerType?._zod?.optin),N(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(Qa):Qa(o)};});function Qa(e){return e.value=Object.freeze(e.value),e}var Jc=v("$ZodCustom",(e,r)=>{K.init(e,r),Z.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=>ec(i,t,n,e));ec(o,t,n,e);};});function ec(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(fr(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 Wc,Bn=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 Qf(){return new Bn}(Wc=globalThis).__zod_globalRegistry??(Wc.__zod_globalRegistry=Qf());var Ze=globalThis.__zod_globalRegistry;c();function Hc(e,r){return new e({type:"string",...$(r)})}function On(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...$(r)})}function Tn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...$(r)})}function Xc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...$(r)})}function Gc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...$(r)})}function Kc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...$(r)})}function Yc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...$(r)})}function qc(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...$(r)})}function Qc(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...$(r)})}function el(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...$(r)})}function rl(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...$(r)})}function tl(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...$(r)})}function nl(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...$(r)})}function ol(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...$(r)})}function il(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...$(r)})}function al(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...$(r)})}function cl(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...$(r)})}function ll(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...$(r)})}function sl(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...$(r)})}function ul(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...$(r)})}function dl(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...$(r)})}function ml(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...$(r)})}function fl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...$(r)})}function pl(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...$(r)})}function gl(e,r){return new e({type:"string",format:"date",check:"string_format",...$(r)})}function vl(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...$(r)})}function hl(e,r){return new e({type:"string",format:"duration",check:"string_format",...$(r)})}function yl(e,r){return new e({type:"number",checks:[],...$(r)})}function _l(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...$(r)})}function bl(e){return new e({type:"unknown"})}function xl(e,r){return new e({type:"never",...$(r)})}function zt(e,r){return new wn({check:"less_than",...$(r),value:e,inclusive:false})}function Ur(e,r){return new wn({check:"less_than",...$(r),value:e,inclusive:true})}function Dt(e,r){return new zn({check:"greater_than",...$(r),value:e,inclusive:false})}function Lr(e,r){return new zn({check:"greater_than",...$(r),value:e,inclusive:true})}function It(e,r){return new Ta({check:"multiple_of",...$(r),value:e})}function Bt(e,r){return new Ra({check:"max_length",...$(r),maximum:e})}function pr(e,r){return new ja({check:"min_length",...$(r),minimum:e})}function Ot(e,r){return new Fa({check:"length_equals",...$(r),length:e})}function En(e,r){return new Na({check:"string_format",format:"regex",...$(r),pattern:e})}function Rn(e){return new Aa({check:"string_format",format:"lowercase",...$(e)})}function jn(e){return new Ua({check:"string_format",format:"uppercase",...$(e)})}function Fn(e,r){return new La({check:"string_format",format:"includes",...$(r),includes:e})}function Nn(e,r){return new Za({check:"string_format",format:"starts_with",...$(r),prefix:e})}function An(e,r){return new Ma({check:"string_format",format:"ends_with",...$(r),suffix:e})}function Me(e){return new Va({check:"overwrite",tx:e})}function Un(e){return Me(r=>r.normalize(e))}function Ln(){return Me(e=>e.trim())}function Zn(){return Me(e=>e.toLowerCase())}function Mn(){return Me(e=>e.toUpperCase())}function Vn(){return Me(e=>_n(e))}function Sl(e,r,t){return new e({type:"array",element:r,...$(t)})}function Cl(e,r,t){return new e({type:"custom",check:"custom",fn:r,...$(t)})}function Pl(e){let r=np(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(fr(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(fr(o));}},e(t.value,t)));return r}function np(e,r){let t=new K({check:"custom",...$(r)});return t._zod.check=e,t}c();function Tt(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??Ze,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 J(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,J(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,_=r.processors[o.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);_(e,r,h,f);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&Q(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 Et(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??(_=>_);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
|
+
|
|
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 Rt(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:Zr(r,"input"),output:Zr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Q(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 Q(n.element,t);if(n.type==="set")return Q(n.valueType,t);if(n.type==="lazy")return Q(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 Q(n.innerType,t);if(n.type==="intersection")return Q(n.left,t)||Q(n.right,t);if(n.type==="record"||n.type==="map")return Q(n.keyType,t)||Q(n.valueType,t);if(n.type==="pipe")return Q(n.in,t)||Q(n.out,t);if(n.type==="object"){for(let o in n.shape)if(Q(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(Q(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(Q(o,t))return true;return !!(n.rest&&Q(n.rest,t))}return false}var kl=(e,r={})=>t=>{let n=Tt({...t,processors:r});return J(e,n),Et(n,e),Rt(n,e)},Zr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Tt({...n??{},target:o,io:r,processors:{}});return J(e,i),Et(i,e),Rt(i,e)};c();var op={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},$l=(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=op[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}))]);}},wl=(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 Dl=(e,r,t,n)=>{};var Il=(e,r,t,n)=>{let o=e._zod.def,i=Br(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var Bl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Ol=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var Tl=(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=J(i.element,r,{...n,path:[...n.path,"items"]});},El=(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]=J(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=J(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Rl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>J(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},jl=(e,r,t,n)=>{let o=e._zod.def,i=J(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=J(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 Fl=(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=J(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=J(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},Nl=(e,r,t,n)=>{let o=e._zod.def,i=J(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"}];},Al=(e,r,t,n)=>{let o=e._zod.def;J(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},Ul=(e,r,t,n)=>{let o=e._zod.def;J(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},Ll=(e,r,t,n)=>{let o=e._zod.def;J(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)));},Zl=(e,r,t,n)=>{let o=e._zod.def;J(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;},Ml=(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;J(i,r,n);let a=r.seen.get(e);a.ref=i;},Vl=(e,r,t,n)=>{let o=e._zod.def;J(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var Jl=(e,r,t,n)=>{let o=e._zod.def;J(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var dp=v("ZodISODateTime",(e,r)=>{mc.init(e,r),L.init(e,r);});function Wl(e){return pl(dp,e)}var mp=v("ZodISODate",(e,r)=>{fc.init(e,r),L.init(e,r);});function Hl(e){return gl(mp,e)}var fp=v("ZodISOTime",(e,r)=>{pc.init(e,r),L.init(e,r);});function Xl(e){return vl(fp,e)}var pp=v("ZodISODuration",(e,r)=>{gc.init(e,r),L.init(e,r);});function Gl(e){return hl(pp,e)}c();c();var Kl=(e,r)=>{xt.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>Gi(e,t)},flatten:{value:t=>Xi(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,mr,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,mr,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",Kl);var oe=v("ZodError",Kl,{Parent:Error});var Yl=St(oe),ql=Ct(oe),Ql=jr(oe),es=Fr(oe),rs=qi(oe),ts=Qi(oe),ns=ea(oe),os=ra(oe),is=ta(oe),as=na(oe),cs=oa(oe),ls=ia(oe);var W=v("ZodType",(e,r)=>(Z.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:Zr(e,"input"),output:Zr(e,"output")}}),e.toJSONSchema=kl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(y.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>ge(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Yl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>ql(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>es(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>rs(e,t,n),e.decode=(t,n)=>ts(e,t,n),e.encodeAsync=async(t,n)=>ns(e,t,n),e.decodeAsync=async(t,n)=>os(e,t,n),e.safeEncode=(t,n)=>is(e,t,n),e.safeDecode=(t,n)=>as(e,t,n),e.safeEncodeAsync=async(t,n)=>cs(e,t,n),e.safeDecodeAsync=async(t,n)=>ls(e,t,n),e.refine=(t,n)=>e.check(ag(t,n)),e.superRefine=t=>e.check(cg(t)),e.overwrite=t=>e.check(Me(t)),e.optional=()=>ms(e),e.nullable=()=>fs(e),e.nullish=()=>ms(fs(e)),e.nonoptional=t=>Qp(e,t),e.array=()=>Nt(e),e.or=t=>Zp([e,t]),e.and=t=>Vp(e,t),e.transform=t=>ps(e,Hp(t)),e.default=t=>Kp(e,t),e.prefault=t=>qp(e,t),e.catch=t=>rg(e,t),e.pipe=t=>ps(e,t),e.readonly=()=>og(e),e.describe=t=>{let n=e.clone();return Ze.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Ze.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Ze.get(e);let n=e.clone();return Ze.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),gs=v("_ZodString",(e,r)=>{Ar.init(e,r),W.init(e,r),e._zod.processJSONSchema=(n,o,i)=>$l(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(En(...n)),e.includes=(...n)=>e.check(Fn(...n)),e.startsWith=(...n)=>e.check(Nn(...n)),e.endsWith=(...n)=>e.check(An(...n)),e.min=(...n)=>e.check(pr(...n)),e.max=(...n)=>e.check(Bt(...n)),e.length=(...n)=>e.check(Ot(...n)),e.nonempty=(...n)=>e.check(pr(1,...n)),e.lowercase=n=>e.check(Rn(n)),e.uppercase=n=>e.check(jn(n)),e.trim=()=>e.check(Ln()),e.normalize=(...n)=>e.check(Un(...n)),e.toLowerCase=()=>e.check(Zn()),e.toUpperCase=()=>e.check(Mn()),e.slugify=()=>e.check(Vn());}),yp=v("ZodString",(e,r)=>{Ar.init(e,r),gs.init(e,r),e.email=t=>e.check(On(vs,t)),e.url=t=>e.check(qc(_p,t)),e.jwt=t=>e.check(fl(Ep,t)),e.emoji=t=>e.check(Qc(bp,t)),e.guid=t=>e.check(Tn(ss,t)),e.uuid=t=>e.check(Xc(Ft,t)),e.uuidv4=t=>e.check(Gc(Ft,t)),e.uuidv6=t=>e.check(Kc(Ft,t)),e.uuidv7=t=>e.check(Yc(Ft,t)),e.nanoid=t=>e.check(el(xp,t)),e.guid=t=>e.check(Tn(ss,t)),e.cuid=t=>e.check(rl(Sp,t)),e.cuid2=t=>e.check(tl(Cp,t)),e.ulid=t=>e.check(nl(Pp,t)),e.base64=t=>e.check(ul(Bp,t)),e.base64url=t=>e.check(dl(Op,t)),e.xid=t=>e.check(ol(kp,t)),e.ksuid=t=>e.check(il($p,t)),e.ipv4=t=>e.check(al(wp,t)),e.ipv6=t=>e.check(cl(zp,t)),e.cidrv4=t=>e.check(ll(Dp,t)),e.cidrv6=t=>e.check(sl(Ip,t)),e.e164=t=>e.check(ml(Tp,t)),e.datetime=t=>e.check(Wl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Xl(t)),e.duration=t=>e.check(Gl(t));});function U(e){return Hc(yp,e)}var L=v("ZodStringFormat",(e,r)=>{A.init(e,r),gs.init(e,r);}),vs=v("ZodEmail",(e,r)=>{nc.init(e,r),L.init(e,r);});function hs(e){return On(vs,e)}var ss=v("ZodGUID",(e,r)=>{rc.init(e,r),L.init(e,r);});var Ft=v("ZodUUID",(e,r)=>{tc.init(e,r),L.init(e,r);});var _p=v("ZodURL",(e,r)=>{oc.init(e,r),L.init(e,r);});var bp=v("ZodEmoji",(e,r)=>{ic.init(e,r),L.init(e,r);});var xp=v("ZodNanoID",(e,r)=>{ac.init(e,r),L.init(e,r);});var Sp=v("ZodCUID",(e,r)=>{cc.init(e,r),L.init(e,r);});var Cp=v("ZodCUID2",(e,r)=>{lc.init(e,r),L.init(e,r);});var Pp=v("ZodULID",(e,r)=>{sc.init(e,r),L.init(e,r);});var kp=v("ZodXID",(e,r)=>{uc.init(e,r),L.init(e,r);});var $p=v("ZodKSUID",(e,r)=>{dc.init(e,r),L.init(e,r);});var wp=v("ZodIPv4",(e,r)=>{vc.init(e,r),L.init(e,r);});var zp=v("ZodIPv6",(e,r)=>{hc.init(e,r),L.init(e,r);});var Dp=v("ZodCIDRv4",(e,r)=>{yc.init(e,r),L.init(e,r);});var Ip=v("ZodCIDRv6",(e,r)=>{_c.init(e,r),L.init(e,r);});var Bp=v("ZodBase64",(e,r)=>{xc.init(e,r),L.init(e,r);});var Op=v("ZodBase64URL",(e,r)=>{Sc.init(e,r),L.init(e,r);});var Tp=v("ZodE164",(e,r)=>{Cc.init(e,r),L.init(e,r);});var Ep=v("ZodJWT",(e,r)=>{Pc.init(e,r),L.init(e,r);});var ys=v("ZodNumber",(e,r)=>{In.init(e,r),W.init(e,r),e._zod.processJSONSchema=(n,o,i)=>wl(e,n,o),e.gt=(n,o)=>e.check(Dt(n,o)),e.gte=(n,o)=>e.check(Lr(n,o)),e.min=(n,o)=>e.check(Lr(n,o)),e.lt=(n,o)=>e.check(zt(n,o)),e.lte=(n,o)=>e.check(Ur(n,o)),e.max=(n,o)=>e.check(Ur(n,o)),e.int=n=>e.check(us(n)),e.safe=n=>e.check(us(n)),e.positive=n=>e.check(Dt(0,n)),e.nonnegative=n=>e.check(Lr(0,n)),e.negative=n=>e.check(zt(0,n)),e.nonpositive=n=>e.check(Ur(0,n)),e.multipleOf=(n,o)=>e.check(It(n,o)),e.step=(n,o)=>e.check(It(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 gr(e){return yl(ys,e)}var Rp=v("ZodNumberFormat",(e,r)=>{kc.init(e,r),ys.init(e,r);});function us(e){return _l(Rp,e)}var jp=v("ZodUnknown",(e,r)=>{$c.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Dl();});function ds(){return bl(jp)}var Fp=v("ZodNever",(e,r)=>{wc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>zl(e,t,n);});function Np(e){return xl(Fp,e)}var Ap=v("ZodArray",(e,r)=>{zc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Tl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(pr(t,n)),e.nonempty=t=>e.check(pr(1,t)),e.max=(t,n)=>e.check(Bt(t,n)),e.length=(t,n)=>e.check(Ot(t,n)),e.unwrap=()=>e.element;});function Nt(e,r){return Sl(Ap,e,r)}var Up=v("ZodObject",(e,r)=>{Bc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>El(e,t,n,o),y.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ee(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ds()}),e.loose=()=>e.clone({...e._zod.def,catchall:ds()}),e.strict=()=>e.clone({...e._zod.def,catchall:Np()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>y.extend(e,t),e.safeExtend=t=>y.safeExtend(e,t),e.merge=t=>y.merge(e,t),e.pick=t=>y.pick(e,t),e.omit=t=>y.omit(e,t),e.partial=(...t)=>y.partial(_s,e,t[0]),e.required=(...t)=>y.required(bs,e,t[0]);});function ue(e,r){let t={type:"object",shape:e??{},...y.normalizeParams(r)};return new Up(t)}var Lp=v("ZodUnion",(e,r)=>{Oc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Rl(e,t,n,o),e.options=r.options;});function Zp(e,r){return new Lp({type:"union",options:e,...y.normalizeParams(r)})}var Mp=v("ZodIntersection",(e,r)=>{Tc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>jl(e,t,n,o);});function Vp(e,r){return new Mp({type:"intersection",left:e,right:r})}var Jp=v("ZodRecord",(e,r)=>{Ec.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Fl(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Mr(e,r,t){return new Jp({type:"record",keyType:e,valueType:r,...y.normalizeParams(t)})}var Jn=v("ZodEnum",(e,r)=>{Rc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Il(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 Jn({...r,checks:[],...y.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 Jn({...r,checks:[],...y.normalizeParams(o),entries:i})};});function ee(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Jn({type:"enum",entries:t,...y.normalizeParams(r)})}var Wp=v("ZodTransform",(e,r)=>{jc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ol(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new ur(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(y.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(y.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 Hp(e){return new Wp({type:"transform",transform:e})}var _s=v("ZodOptional",(e,r)=>{Fc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function ms(e){return new _s({type:"optional",innerType:e})}var Xp=v("ZodNullable",(e,r)=>{Nc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Nl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function fs(e){return new Xp({type:"nullable",innerType:e})}var Gp=v("ZodDefault",(e,r)=>{Ac.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ul(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function Kp(e,r){return new Gp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Yp=v("ZodPrefault",(e,r)=>{Uc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ll(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function qp(e,r){return new Yp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var bs=v("ZodNonOptional",(e,r)=>{Lc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Al(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function Qp(e,r){return new bs({type:"nonoptional",innerType:e,...y.normalizeParams(r)})}var eg=v("ZodCatch",(e,r)=>{Zc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Zl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function rg(e,r){return new eg({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var tg=v("ZodPipe",(e,r)=>{Mc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ml(e,t,n,o),e.in=r.in,e.out=r.out;});function ps(e,r){return new tg({type:"pipe",in:e,out:r})}var ng=v("ZodReadonly",(e,r)=>{Vc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Vl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function og(e){return new ng({type:"readonly",innerType:e})}var ig=v("ZodCustom",(e,r)=>{Jc.init(e,r),W.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Bl(e,t);});function ag(e,r={}){return Cl(ig,e,r)}function cg(e){return Pl(e)}var xs=ee(["Google"]),At=ee(["pdf","word","excel","img","txt","unknown"]);At.exclude(["unknown"]);var lg=ue({lastModified:gr().nullable(),uid:U().trim().optional(),uploadDate:gr().optional(),sizeInBytes:gr(),name:U().trim(),path:U().trim(),extension:U().trim().startsWith(".").lowercase(),description:U().trim().optional(),alias:At}),Ss={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:[]},sg=U().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),ug=ee(["first","last"]),dg=Mr(ug,U().trim()),mg=ee(["streetAddress","city","parish","country"]);Mr(mg,U().trim());var fg=ue({name:dg,photoUrl:U().optional(),email:hs(),phoneNumber:sg.optional()});ue({uid:U(),...fg.shape});ue({body:ue({text:U().trim(),html:U().optional()}),recipients:Nt(U().trim()),subject:U().trim(),attachments:Nt(lg)});ue({timestamp:gr(),status:ee(["success","error","info"]),response:U().trim().or(Mr(ee(["tag","message"]),U().trim()))});var pg=ee(["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"]);ue({code:pg,title:U().optional(),message:U().trim(),cause:U().optional()});ue({title:U().trim(),message:U().trim()});ee(["success","pending","error"]);ee(["JMD"]);function Ps(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:gg(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var gg=e=>e.flatMap(r=>Ss[r]);function HD(e){return jsx(Ps,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:b(e.backgroundColor||"transparent"),borderColor:b(e.borderColor||"outlineVariant"),color:b(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 Ds=createContext(null);function nI(e){let r=j(null),t=j(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);},_=P=>{P.preventDefault(),a(false);},I=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},x=()=>{r.upsert("edit"),e.onEditClick?.(),p();},k=()=>{I(false);},B=()=>{e.onContentClick?.(),p();},D={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Ds.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...D,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(S,{text:e.label,fontSize:Y[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...D,grid:true,gap:e.columnGap??D.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(he,{autoFocus:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:_,onEnterKeyPressed:k,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"?B:void 0,children:jsx(lr,{...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:me({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(kg,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:I,onEdit:x}))]})]})})}function kg(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Hn,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Hn,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Hn,{icon:LuPencilLine,onClick:e.onEdit})}function Hn(e){let{padding:r,iconSize:t}=useContext(Ds);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(O,{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 Gn=createContext(null);function zg(e){return jsx(Gn,{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 Dg(e){let{fade:r}=useContext(Gn);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Ig(e){let{fade:r}=useContext(Gn);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(S,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(S,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Ut={Root:zg,Indicator:Dg,Content:Ig};c();function Ve(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&&we__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:b(e.backgroundColor),color:b(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Os(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 Ts=createContext(null);function Ug(e){return jsx(Ts.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 Es(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 Rs(e){return r=>jsx("span",{style:(()=>{let n=C({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?me(n):xr(r.truncateStyle.lineCount,n)})(),children:r.value})}var Lg=Es(),Zg=Es(),Mg=e=>{let{gap:r=e.gap}=useContext(Ts);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Vg=Rs({fontWeight:"bold",fontSize:"xs",fade:.75}),Jg=Rs({fontSize:"sm"}),ae={Root:Ug,LeadingAddOn:Lg,TrailingAddOn:Zg,Content:Mg,Label:Vg,Item:Jg};c();function Xg(e){let r=()=>{if(typeof e.fallback=="string"||we__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(je,{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:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Gg(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var NI={Root:Xg,Content:Gg};c();function Kg(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(Ve,{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:me(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:me(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var HI={Root:Kg,Content:g};c();function Oi(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 rv(e){let{triggerRerender:r}=G(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var eo=(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})})},tv=eo("Header",{fontSize:"xl",fontWeight:"bold"}),nv=eo("Body",{gap:"md"}),ov=eo("Footer",{row:true,gap:"sm"}),iv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),av=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),E={Root:rv,Header:tv,Body:nv,Footer:ov,CloseTrigger:iv,ActionTrigger:av};function pB(e){let r=e.severity||"error",t=b(r,{preference:"res"});return jsxs(E.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(E.Header,{fontSize:"2xl",children:e.title}),jsxs(E.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
|
|
39
|
+
`).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(Fs,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(E.Footer,{gap:"md",children:[jsx(E.ActionTrigger,{children:jsx(O,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(O,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var ro=createContext(null);function CB(e){let r=e.sections.flatMap(x=>typeof x=="object"?x.nestedItems:x),t=e.defaultSection?r.findIndex(x=>x===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=G(),a=j([]),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((x,k)=>{p(x,k);}),i();},[]);let f=(x=a.read())=>r.filter(k=>!x.includes(k)&&!s.includes(k)),p=(x=l,k=n)=>{let B=a.read();if(!s.includes(x)){if(e.isSectionComplete(x)&&!B.includes(x))B=[...B,x];else if(!e.isSectionComplete(x)&&B.includes(x))B=B.filter((D,P)=>P!==k);else return;a.upsert(B),e.onSectionsStatusChange?.(f(B),B);}},h=x=>{p(),o(r.findIndex(k=>k===x));},_=()=>{n>=r.length-1||(p(),o(n+1));},I=()=>{u||(p(),o(n-1));};return jsx(ro.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(E.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(E.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(mv,{title:e.title,onSectionClick:h}),jsx(fv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:I,onNextClick:_,incompleteSections:f(),onSubmitClick:e.onSubmit})]})})})}function mv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(ro);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(un,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function fv(e){let{activeSection:r}=useContext(ro),{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(S,{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(no,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(oo,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(to,{onClick:e.onNextClick})]})]})}c();c();var pv=Re({preset:{text:"Save",async:true}}),io=pv;function RB(e){let{triggerRerender:r}=G(),t=j(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(E.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(E.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(E.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(_=>({..._||{},[l]:h}));return s.options?jsx(vv,{label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(he,{width:"full",placeholder:s.placeholder,label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(E.Footer,{children:[jsx(E.ActionTrigger,{children:jsx(Gr,{fade:.5,size:n,onClick:i})}),jsx(E.ActionTrigger,{children:jsx(io,{size:n,onClick:o})})]})]})}function vv(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(zr,{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(he,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var Pe={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Yr=createContext(null);function bv(e){let r=b(e.borderColor||"outline[0.1]"),t=Ee.md;return jsx(Yr.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:`"${Pe.topbar} ${Pe.topbar}" "${Pe.sidebar} ${Pe.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function xv(e){let{navThickness:r}=useContext(Yr),t=Mt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${q.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(S,{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(S,{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(S,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Sv(e){let{navThickness:r}=useContext(Yr),{children:t,...n}=e;return jsx(g,{...n,row:true,id:Pe.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:Pe.topbar},children:e.children})}var Ls=createContext(null);function Cv(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(Yr);return jsx(Ls.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:Pe.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:Pe.sidebar},children:e.children})})}function Pv(e){let{onOptionClick:r}=useContext(Ls),t=()=>{e.onClick?.(),r(e.label);};return jsx(lr,{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 kv(e){let{borderColor:r,corners:t}=useContext(Yr),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(`#${Pe[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:Pe.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 $v(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 VB={Root:bv,Sidebar:Cv,SidebarOption:Pv,Topbar:Sv,Viewer:kv,Indicator:xv,Sep:$v};c();var Zs=(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))(Zs||{});function Ms(e){let r=Zs[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 Vs(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
|
+
${t(a,true)}
|
|
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(S,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(S,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var Ws=createContext(null);function Ev(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(Ws.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(Rv,{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:b(r),color:b(t),style:C({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(Ev,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(Js,{isTrigger:true,value:o})}):jsx(Js,{...i,value:o})})})})})]})})}function Rv(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function Js(e){let{color:r,onItemClick:t}=useContext(Ws),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:b(e.backgroundColor||"transparent"),color:b(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:b(i),color:a?b(a):void 0},_active:e.sx?.[":active"]?{...C({...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 Ks=createContext(null);function wO(e){let[r,t]=useState(false),n=e.controller||Ys(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",_=o;if(!(f===_||r||!p?.ignoreOutOfBoundsCheck&&!e.children[f]))if(a?.(_,f),e.onChange?.(_,f),h==="smooth"){t(true);let I=_,x=setInterval(()=>{f>_?I++:I--,i(I),I===f&&(clearInterval(x),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=C({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(Ks.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(Gs,{disabled:o<=0,inset:"left",onClick:l}),e.children.map((f,p)=>{let h=Math.sign(o-p),_=Math.abs(o-p)/3,I=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:I?"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
|
+
scaleY(calc(1 + ${_} * -0.4))
|
|
44
|
+
translateZ(calc(${_} * -10rem))
|
|
45
|
+
translateX(calc(${h} * -5rem))`,filter:`blur(calc(${_} * .5rem))`},children:typeof f=="function"?jsx(f,{isActive:p===o}):f},p)}),!e.hideControls&&jsx(Gs,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function Gs(e){let r=useContext(Ks),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 Wt=createContext(null);function lr(e){let r=j(e.open??false),{triggerRerender:t}=G(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=we__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}:Wv(e.anchorPoint||"top-left",Jv(u));if(!e.visibleOnScroll){let _=ei(o.current);_&&_.addEventListener("scroll",I=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${I.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}:{},...C({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(Wt.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 Jv=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Wv=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function WO(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?b(e.backgroundColor):void 0,boxShadow:e.borderColor?`${b(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in q?q[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?b(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 q?q[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(Gv,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function Gv(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in Y?Y[e.fontSize]:e.fontSize,border:0,color:b(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function ou(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:b(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function tT(e){return jsx(g,{id:e.id,style:Yv({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var Kv=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],Yv=e=>{let{height:r,width:t}=Kv(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:b("paper"),color:b("onPaper"),overflow:"hidden"}};c();function au(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(S,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function pT(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 uu=we.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 Xt(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(uu,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var uo=createContext(null);function lh(e){let r=j([]),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:b(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(uo.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 sh(e){let[r,t]=useState(),{register:n}=useContext(uo),{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(mu,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(fu,{hide:u("first")}),jsx(g,{style:{...C({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(fu,{hide:u("last")})]}),jsx(mu,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function mu(e){return jsx(g,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function fu(e){let{lineSeparatorColor:r}=useContext(uo);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var ET={Root:lh,Item:sh};c();function LT(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:b(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:b(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var mo=(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 he(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=x=>typeof e.indent=="string"?e.indent:e.indent?.[x],u="md",{size:f,...p}=e,h={label:C({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...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})},_=x=>{o.current.value=x,e.onChange(x,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let x=k=>{if(e.format!=="currency")return;let B=k;if(B=B.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((D,P)=>P<2).join("."),B&&takeLast(B.split(""))[0]!=="."){let D=parseFloat(B);if(!isNaN(D)){let P=new Intl.NumberFormat;_(P.format(D));}}};o.current?.addEventListener?.("beforeinput",k=>{let B=k.data,D=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";D==="all"||Array.isArray(D)&&D.includes("all")||B===null||(!Array.isArray(D)&&!mo(B,D)||Array.isArray(D)&&D.some(P=>!mo(B,P)))&&k.preventDefault();}),o.current?.addEventListener?.("paste",k=>{x(k.target.value);}),o.current?.addEventListener?.("input",k=>{x(k.target.value);});},[o.current]);let I=x=>{e.onChange?.(x,void 0),e.onPasteClick?.(x);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:h.root,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(yh,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:I,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(S,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(o.current?getComputedStyle(o.current).fontSize: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,onKeyDown:x=>{x.key==="Enter"?e.onEnterKeyPressed?.():x.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":b(e.focusColor||"primary"),transition:"all 300ms linear"},_placeholder:e.slotProps?.placeholder?.color?{color:b(e.slotProps.placeholder.color)}:void 0,onChange:x=>{let k=x.currentTarget.value;switch(e.allowHtmlInput||(k=ti(k)),e.trimOnChange){case "start":k=k.trimStart();break;case "end":k=k.trimEnd();break;case true:k=k.trim();break}e.validateInput?.(k)!==false&&(e.onChange?.(k,x),n||t(k));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function yh(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:q.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(yr,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(yu,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function Fs(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:b(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(S,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(ri(s));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function bu(e){return {FlyLeavingBox:Ch}[e]}var vo=createContext(null);function $h(e){let r=j(e.attachments||[]),{triggerRerender:t}=G(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(vo.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(E.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(E.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(E.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Dh,{}):jsx(wh,{})})]})})}function wh(){let e=useContext(vo),r=j(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:_})=>_!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let _=h[0];i([...o,_]),e?.onAttachmentAdded?.(_),e?.attachmentsEventListener("add",_);},f=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(_o,{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,_)=>jsx(zh,{scrollIntoView:r.read()===false&&h===_.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(nt,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function zh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Mt(r);return jsxs(ae.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ae.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(je,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ae.Content,{gap:"sm",width:"full",children:[jsx(ae.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(S,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(S,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ae.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(yo,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(tt,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Dh(){let e=useContext(vo);return jsxs(Ut.Root,{children:[jsx(Ut.Indicator,{size:"7rem",disableFade:true,element:jsx(je,{spill:"hidden",size:"full",src:bu("FlyLeavingBox")})}),jsx(Ut.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(nt,{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 ho=$h;function Oh(e){let r=j(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=G(),n=o=>{r.upsert(o);};return jsx(Xt,{tooltip:"Attachments",placement:"right",children:jsx(Os,{circleChild:true,asChild:!e.attachments,badge:jsx(Ms,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Th,{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 Th(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(ho,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var bo=Oh;c();var Rh=Re({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Gr=Rh;c();function Nh(e){return jsx(O,{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 tt=Nh;c();function Lh(e){let{iconOnly:r,...t}=e;return jsx(O,{...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 Zh=Lh;c();function Xh(e){let r=j(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 Gh=Xh;c();function Kh(e){return jsx(O,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var to=Kh;c();function Qh(e){return jsx(O,{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 yo=Qh;c();function ty(e){return jsx(O,{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 ny=ty;c();function ay(e){let r=jsx(O,{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(xo,{triggerElement:r,options:e.options}):r}var cy=ay;c();function ly(e){return jsx(O,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var no=ly;c();function dy(e){return jsx(O,{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 So=dy;c();function my(e){return jsx(O,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var oo=my;c();function gy(e){return jsx(O,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var Co=gy;c();function hy(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:Qo({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(S,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsx(S,{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(S,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var yy=hy;c();function xy(e){return jsxs(ae.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(ae.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(je,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ae.Content,{width:"full",gap:"xs",children:[jsx(ae.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ae.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ae.TrailingAddOn,{children:jsx(tt,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Sy=xy;c();function Iy(e){let[r,t]=useState(e.selectedDate||new Date),n=j(r),o=e.minDate==="today"?new Date:Iu(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?Oy():Iu(e.maxDate),a=p=>{t(p),e.onDateSelected?.(p);},l=p=>p.toDateString()===r.toDateString(),s=p=>p.toDateString()===new Date().toDateString(),u=p=>{let h=n.read();return h.getMonth()===p.getMonth()&&Ey(p.getDate(),h.getMonth())},f=p=>n.upsert(p);return jsx($y,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:f,onYearChange:f,renderCustomHeader:p=>jsx(By,{...p,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:a,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:p=>["calendar-date",l(p)?"selected":"unselected",s(p)?"today":"",u(p)?"":"out-of-bounds",Ty(p,i)?"excluded":""].join(" ")})}function By(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((s,u)=>{let f=e.date.getFullYear();return f===e.minDate.getFullYear()?u>=e.minDate.getMonth():f===e.maxDate.getFullYear()?u<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=s=>{e.changeMonth(r.findIndex(u=>u===s));},i=s=>{e.changeYear(parseInt(s));},a=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),l=s=>["calendar-chevron","calendar-nav",s?"disabled":""].join(" ");return jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:l(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(g,{row:true,align:"center",gap:"md",children:[jsx(Du,{label:n,isSelected:s=>n===s,options:t.map(s=>({value:s})),onOptionClick:o}),jsx(Du,{label:`${e.date.getFullYear()}`,isSelected:s=>`${e.date.getFullYear()}`===s,options:a().map(s=>({value:s.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:l(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Du(e){return jsx(zr,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Iu=e=>{if(e)return e instanceof Date?e:new Date(e)};var Oy=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Ty=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},Ey=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var wo=memo(Iy);c();c();var Ry=Re({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Bu=Ry;function jy(e){let r=j(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(E.Root,{hideCloseButton:true,onOpenChange:f,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(E.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(E.Body,{children:jsx(wo,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(E.Footer,{children:[jsx(E.ActionTrigger,{children:jsx(Gr,{size:l,fade:.5})}),jsx(E.ActionTrigger,{children:jsx(Bu,{size:l,onClick:u})})]})]})}var Fy=jy;c();function My(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(E.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(E.Header,{children:"Payment Options"}),jsx(E.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(S,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:Y.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var Tu=e=>e,B6=e=>Tu({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}}),O6=()=>Tu({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),xo=My;c();var Eu=createContext(null);function zo(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:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:f,lineHeight:p,opacity:h})=>({fontSize:f,lineHeight:p,opacity:h});return jsx(Eu.Provider,{value:{color:i},children:jsxs(E.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(E.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:b(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(E.Footer,{row:true,gap:"md",align:"center",children:[jsx(E.ActionTrigger,{children:jsx(O,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(qy,{...l}):void 0]})]})})}function qy(e){let{color:r}=useContext(Eu);return jsx(O,{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 Ru=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});zo.tryAgainButton=Ru("Try Again");zo.retryButton=Ru("Retry");var Yt=zo;c();var Do="onPaper[0.1]",Io=", ";function r_(e){let r=j(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=Fu(),n=j({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(Yt,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:Yt.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(n_,{recipients:i()}):jsx(t_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Io))}),jsx(o_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(i_,{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(bo,{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(So,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function t_(e){let[r,t]=useState(false),n=o=>jsx(S,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(ju,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Io),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(S,{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 n_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Do,"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(Ve,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(S,{ellipsis:true,text:r})]}))}),jsx(Bo,{textToCopy:e.recipients.join(Io)})]})}function o_(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:[Do,"bottom"],children:[jsx(ju,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Bo,{textToCopy:e.subject})]})}function i_(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:`${b("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:Y.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(Bo,{textToCopy:e.defaultValue})})]})}function ju(e){return jsx(he,{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":[Do,"bottom"],onChange:e.onChange})}function Bo(e){return jsx(yr,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var a_=r_;c();c();function c_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(Uu,{onClick:e.onNoClick}),jsx(Au,{onClick:e.onYesClick})]})}var Oo=c_;function u_(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(Oo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var d_=u_;c();function f_(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(jo,{value:r})})}):jsx(p_,{})})}function p_(){let e=r=>jsx(S,{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(S,{color:"jsonKey",text:'"JSON"'}),":",jsx(S,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var g_=["string","number","boolean"];function Eo(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(S,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function Lu(e){return jsxs(Fragment,{children:[jsx(S,{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(jo,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(Lu,{value:r}):jsx(Eo,{value:r})})),jsx(S,{color:"arrayBracket",text:"]"})]})}function jo(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(S,{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=()=>g_.includes(typeof u)?jsx(Eo,{value:u}):Array.isArray(u)?jsx(Lu,{value:u}):typeof u=="object"?jsx(jo,{indent:true,value:u}):jsx(Eo,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(S,{color:"jsonKey",text:`"${s}"`})," : ",jsx(f,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(S,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Fo=f_;c();c();c();function b_(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...At.options].filter(l=>l!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...l)=>{if(e.disabled)return;let s="target"in l[0]?l[0].target.files:l[0],u=[],f=[],p=h=>strictArray(h).map(_=>toObject(_,{uploadDate:"now",filepath:e.getFilePath?.(_)}));for(let h of s){if(u.length+f.length>=t)break;r.includes(h.type)?u.push(h):f.push(h);}isEmpty(u)||e.onAccept?.(u,p(u)),isEmpty(f)||e.onReject?.(f,p(f));},i=l=>{if(l.preventDefault(),!e.allowDrop||e.disabled)return;let s=[];if(l.dataTransfer.items?s=[...l.dataTransfer.items].filter(u=>u.kind==="file").map(u=>u.getAsFile()):s=[...l.dataTransfer.files],!isEmpty(s)){let u=new DataTransfer;s.forEach(f=>u.items.add(f)),o(s);}},a=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...C(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:l=>l.preventDefault(),onClick:a,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var Mu=b_;function Ju(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(Mu,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(O,{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 nt=Ju({fileClass:"file"}),ZR=Ju({fileClass:"receipt",accepts:["img"]});function $_(e){let[r,t]=useState(e.defaultPicture.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(S,{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(Ve,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(nt,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var w_=$_;c();function D_(e){let r=e.authProviders||xs.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(S,{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(I_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function I_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(O,{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 B_=D_;c();c();var Xu={timestamp:Date.now(),status:"info",response:"Hello World!"};function j_(e){useEffect(()=>{e.initialMessage&&(Xu.response=e.initialMessage);},[]);let r=[Xu,...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(F_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function F_(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:b(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(ou,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:b(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Ao=j_;function M_(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(Vs,{item:o,info:n})})}),jsx(Ao,{initialMessage:"Awaiting registration process...",logs:r})]})}var V_=M_;c();function H_(e){return jsx(he,{...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 _o=H_;c();c();function G_(e){return e.error?jsx(Xt,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(S,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Uo=G_;function q_(e){let r=j(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(he,{...e,leadingAdornment:jsx(Uo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(au,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(Co,{onClick:o})})}var Lo=q_;c();function qu(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}=e.slotProps?.[n]||{};return jsx(S,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{lineHeight:s in Y?Y[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(Ve,{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]})}qu.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var tb=qu;c();function Qu(e){return r=>{let[t,n]=useState(false);return jsx(O,{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 yu=Qu({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"})}}),yr=Qu({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 rd(e){return r=>jsx(O,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var DF=rd(BsPlus),IF=rd(BsDash);c();function td(e){return r=>jsx(O,{...e.defaults,text:e.label,onClick:r.onClick})}var Au=td({label:"Yes"}),Uu=td({label:"No",defaults:{variant:"outline"}});c();var UF=Re({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function hb(e){let r=j(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(Lo,{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(yr,{textToCopy:n.payload}),jsx(Fo,{fullSize:true,json:n?n.payload:void 0})]})]})}var yb=hb;c();c();function Mt(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 od=(T=>(T.white="#FFF",T.black="#000",T.gray="#808080",T.pdf="#F40F02",T.word="#41A5EE",T.excel="#21A366",T.img="#8d481f",T.txt="#8c61a9",T.deepSkyBlue="#00BFFF",T.lightSkyBlue="#87CEFA",T.sendBlue="#0a57d0",T.onSendBlue="#c3dfff",T.book_it="#009688",T.stickyNote="#EFAD03",T.matteBlack="#28282B",T.navyBlue="#000080",T.teal="#008080",T.paper="#ffffff",T.onPaper="#28282B",T.paperVariant="#E6E6E6",T.success="#4BB543",T.hyperlink="#2979ff",T.gold="#d4af37",T.carlsbergGreen="#17B169",T.billsRed="#C60C30",T.info="#1565c0",T.error="#C60C30",T.warning="#f9a825",T.jsonKey="#D56C75",T.string="#59A779",T.number="#D19A5A",T.boolean="#56B6C2",T.jsonBracket="#FFCA1D",T.arrayBracket="#DA68A7",T.delete="#C60C30",T.pdf_table_header="#28282B",T))(od||{}),$e=od;c();var Bb=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)"}),se=Bb;c();c();function yA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function CA(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function BA(e,r,t){let[n,o]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let a=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:n,timestamp:new Date().toLocaleTimeString()});},[n]),useEffect(()=>{let l=document.createElement(e),u=(Array.isArray(r.children)?r.children:[r.children]).map(h=>{let _=document.createElement(e);return _.innerHTML=jb.renderToStaticMarkup(h),_});Object.assign(l.style,{...i,visibility:"hidden"}),u.forEach(h=>l.appendChild(h)),a.appendChild(l);let f=getComputedStyle(l),p=Object.keys(i).filter(h=>h in f&&typeof f[h]=="string").map(h=>{let I=f[h];return [h,h==="opacity"?I.toString():I===0?"0px":I]});o(Object.fromEntries(p)),a.removeChild(l);},[r]),{style:n}}c();function Fu(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();function j(e,r){let t=useRef({recent:e,stale:void 0});return {debug:()=>{let n=t.current.stale,o=t.current.recent,i=()=>{if(Array.isArray(n)){let l=n;return {from:n,to:o,difference:o.filter((u,f)=>f<l.length?l[f]!==u:false)}}switch(typeof n){case "string":return {from:n,to:o,difference:o.replace(n,"")};case "object":return {from:n,to:o,difference:Object.fromEntries(Object.keys(n).map(l=>{let s=l;if(o[s]!==n[s])return [s,o[s]]}).filter(l=>!!l))};default:throw new Error("Not yet implemented bro!")}},a=250;return console.log(buildArray(a,l=>l===0||l===a?"/":"*").join(""),i()),i()},upsert:n=>{let o=typeof n=="function"?n(t.current.recent):n,i=t.current.recent;t.current={recent:o,stale:i},r?.onChange?.(o,i);},read:()=>t.current.recent,delete:()=>{t.current=void 0;}}}c();function Ys(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Ri(){return useContext(Wt)}c();function G(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}c();function YA(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 nU(e){let r=useContext(dt),{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 sU(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();export{bo as AttachmentsButton,ho as AttachmentsDialog,Ve as Avatar,UC as AvatarGroup,Os as Badge,O as BasicButton,g as BasicDiv,je as BasicImg,un as BasicOl,pn as BasicOption,zr as BasicSelect,S as BasicSpan,Nm as BasicTable,wo as Calendar,Fy as CalendarDialog,Gr as CancelButton,ae as Card,Oi as Checkbox,$e as ColorResources,pB as ConfirmationDialog,yr as CopyButton,se as CssColors,Ee as CssShapes,q as CssSpacing,wC as Debounce,tt as DeleteButton,E as Dialog,Fs as Disclaimer,UF as DownloadButton,dP as Drawer,Zh as EditButton,nI as Editable,a_ as EmailComposer,Ut as EmptyState,Uo as ErrorTooltip,Ko as EventContainer,Gh as ExpandableButton,CB as FancyFormDialog,HD as FileDropzone,VB as FileViewer,Y as FontSize,Ms as Indicator,Vs as ItemInfo,Fo as JsonViewer,yb as JwtVerifier,NI as MediaCard,Ev as Menu,yy as MoneyDisplayCard,IF as NegativeButton,to as NextButton,Uu as NoButton,yo as OpenButton,ny as OptionsButton,eP as PageIndicator,wO as PageSlider,tT as Paper,yu as PasteButton,cy as PaymentOptionsButton,xo as PaymentOptionsDialog,w_ as PictureUploader,lr as Popover,DF as PositiveButton,no as PreviousButton,HI as ProfileCard,EC as ProgressBar,Sy as ReceiptCard,io as SaveButton,_o as SearchTextField,WO as SegmentedControls,So as SendButton,LT as Separator,B_ as SignInWidget,RB as SimpleFormDialog,WC as Spinner,au as Status,pT as Stepper,oo as SubmitButton,ou as Tag,V_ as TaskLogger,Yt as TaskResultDialog,Ao as Terminal,he as TextField,ET as Timeline,Xt as Tooltip,nt as UploadButton,ZR as UploadReceiptButton,tb as UserProfile,Co as VerifyButton,Lo as VerifyTextField,Od as WavyUi,Au as YesButton,Oo as YesNoButtonGroup,d_ as YesOrNoForm,C as applyBasicStyle,B6 as bankTransferPaymentOption,F0 as borderRadius,T0 as buildCSS,W0 as computedCssVariable,Ed as convertHexUnitTo256,E0 as cssTransition,Tu as definePaymentOption,N0 as disabledBorderRadius,A0 as dragElement,me as ellipsis,j0 as flexCenter,Mt as getFileIcon,Kv as getPaperDim,ei as getScrollParent,Rd as hexToRgba,O6 as inAppPaymentOption,tn as isOverflown,ri as isSpanMultiLine,Td as isValidHex,L0 as nativeEllipsis,U0 as noSpaceStyle,Yv as paperStyle,J0 as remAsPx,jd as remToPx,b as resolveBasicColor,xr as restrictLineCount,Z0 as rgbToRgba,M0 as screenHasMaxWidth,V0 as screenHasMinWidth,R0 as solidBorder,ti as stripHtml,Qo as tiledBackground,yA as useAsyncEffect,BA as useComputedStyle,nU as useEvent,j as useManagedRef,Fu as useModalControls,Ys as usePageSliderController,Ri as usePopoverContext,CA as usePostRenderEffect,G as useRerender,YA as useSessionStorage,sU as useSmartState};
|