@percy.ai/heatmap 0.0.0-dev-20231228194129 → 0.0.0-dev-20231229193516

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.
@@ -63,7 +63,7 @@
63
63
  const d = (Array.isArray(e.props) ? e.props.slice() : Object.keys(e.props)).filter((s) => s !== "container"), f = {}, g = {}, m = {};
64
64
  for (const s of d) {
65
65
  f[s] = Array.isArray(e.props) ? "string" : e.props[s];
66
- const p = J$3(s);
66
+ const p = J$2(s);
67
67
  g[s] = p, m[p] = s;
68
68
  }
69
69
  class S extends HTMLElement {
@@ -122,7 +122,7 @@
122
122
  }
123
123
  return S;
124
124
  }
125
- function J$3(t = "") {
125
+ function J$2(t = "") {
126
126
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
127
127
  }
128
128
 
@@ -13888,7 +13888,7 @@ Defaulting to \`null\`.`;
13888
13888
 
13889
13889
  var le$2 = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
13890
13890
 
13891
- var ue$3='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$5='[cmdk-group-items=""]',de$2='[cmdk-group-heading=""]',ee$2='[cmdk-item=""]',Z$3=`${ee$2}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$4="data-value",fe$2=(n,a)=>le$2(n,a),te$2=React__namespace.createContext(void 0),k$5=()=>React__namespace.useContext(te$2),re$4=React__namespace.createContext(void 0),U$2=()=>React__namespace.useContext(re$4),ne$2=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$6(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$6(()=>new Set),l=x$6(()=>new Map),p=x$6(()=>new Map),f=x$6(()=>new Set),d=ae$2(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React__namespace.useId(),g=React__namespace.useId(),A=React__namespace.useId(),y=ye$1();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React__namespace.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React__namespace.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe$2;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue$3);I().sort((s,m)=>{let b=s.getAttribute(S$4),P=m.getAttribute(S$4);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N$5);m?m.appendChild(s.parentElement===m?s:s.closest(`${N$5} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N$5} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M$5}[${S$4}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S$4);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M$5))==null?void 0:i.querySelector(de$2))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$2}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z$3))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S$4));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S$4));}function J(e){let c=_(),i=c==null?void 0:c.closest(M$5),s;for(;i&&!s;)i=e>0?Se$1(i,M$5):Ce(i,M$5),s=i==null?void 0:i.querySelector(Z$3);s?h.setState("value",s.getAttribute(S$4)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React__namespace.createElement("div",{ref:H$3([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z$3);i.dispatchEvent(s);}}}}},React__namespace.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe$1},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$2.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$2),l=k$5(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$1(r,o,[n.value,n.children,o]),d=U$2(),v=T$4(g=>g.value&&g.value===f.current),E=T$4(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React__namespace.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z$3,R),()=>g.removeEventListener(z$3,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React__namespace.createElement("div",{ref:H$3([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=React__namespace.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React__namespace.useId(),p=React__namespace.useRef(null),f=React__namespace.useRef(null),d=React__namespace.useId(),v=k$5(),E=T$4(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$1(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$2.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$3([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React__namespace.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React__namespace.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge$1=React__namespace.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React__namespace.useRef(null),l=T$4(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve$2=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$2(),p=T$4(d=>d.search),f=k$5();return React__namespace.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React__namespace.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re$1=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$5();return React__namespace.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$1=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$4(u=>u.filtered.count===0);return React__namespace.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React__namespace.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee$2=React__namespace.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React__namespace.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React__namespace.createElement("div",{"aria-hidden":!0},o))}),Le$1=Object.assign(oe$2,{List:Re$1,Item:me$1,Input:ve$2,Group:pe,Separator:ge$1,Dialog:be$1,Empty:he$2,Loading:Ee$2});function Se$1(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae$2(n){let a=React__namespace.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect;function x$6(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$3(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$4(n){let a=U$2(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$1(n,a,r){let o=React__namespace.useRef(),u=k$5();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S$4,l),o.current=l;}),o}var ye$1=()=>{let[n,a]=React__namespace.useState(),r=x$6(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
13891
+ var ue$3='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$5='[cmdk-group-items=""]',de$2='[cmdk-group-heading=""]',ee$2='[cmdk-item=""]',Z$3=`${ee$2}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$4="data-value",fe$2=(n,a)=>le$2(n,a),te$2=React__namespace.createContext(void 0),k$5=()=>React__namespace.useContext(te$2),re$4=React__namespace.createContext(void 0),U$2=()=>React__namespace.useContext(re$4),ne$2=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$6(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$6(()=>new Set),l=x$6(()=>new Map),p=x$6(()=>new Map),f=x$6(()=>new Set),d=ae$2(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React__namespace.useId(),g=React__namespace.useId(),A=React__namespace.useId(),y=ye$1();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React__namespace.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React__namespace.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe$2;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue$3);I().sort((s,m)=>{let b=s.getAttribute(S$4),P=m.getAttribute(S$4);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N$5);m?m.appendChild(s.parentElement===m?s:s.closest(`${N$5} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N$5} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M$5}[${S$4}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S$4);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M$5))==null?void 0:i.querySelector(de$2))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$2}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z$3))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S$4));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S$4));}function J(e){let c=_(),i=c==null?void 0:c.closest(M$5),s;for(;i&&!s;)i=e>0?Se$1(i,M$5):Ce(i,M$5),s=i==null?void 0:i.querySelector(Z$3);s?h.setState("value",s.getAttribute(S$4)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React__namespace.createElement("div",{ref:H$3([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z$3);i.dispatchEvent(s);}}}}},React__namespace.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe$1},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$2.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$2),l=k$5(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$1(r,o,[n.value,n.children,o]),d=U$2(),v=T$4(g=>g.value&&g.value===f.current),E=T$4(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React__namespace.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z$3,R),()=>g.removeEventListener(z$3,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React__namespace.createElement("div",{ref:H$3([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=React__namespace.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React__namespace.useId(),p=React__namespace.useRef(null),f=React__namespace.useRef(null),d=React__namespace.useId(),v=k$5(),E=T$4(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$1(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$2.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$3([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React__namespace.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React__namespace.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge$1=React__namespace.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React__namespace.useRef(null),l=T$4(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve$2=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$2(),p=T$4(d=>d.search),f=k$5();return React__namespace.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React__namespace.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re$1=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$5();return React__namespace.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$2=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$4(u=>u.filtered.count===0);return React__namespace.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React__namespace.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee$2=React__namespace.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React__namespace.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React__namespace.createElement("div",{"aria-hidden":!0},o))}),Le$1=Object.assign(oe$2,{List:Re$1,Item:me$1,Input:ve$2,Group:pe,Separator:ge$1,Dialog:be$2,Empty:he$2,Loading:Ee$2});function Se$1(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae$2(n){let a=React__namespace.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect;function x$6(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$3(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$4(n){let a=U$2(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$1(n,a,r){let o=React__namespace.useRef(),u=k$5();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S$4,l),o.current=l;}),o}var ye$1=()=>{let[n,a]=React__namespace.useState(),r=x$6(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
13892
13892
 
13893
13893
  const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
13894
13894
  const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
@@ -64352,9 +64352,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
64352
64352
 
64353
64353
  const r$g=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M16.004 9.414l-8.607 8.607-1.414-1.414L14.589 8H7.004V6h11v11h-2V9.414z"}))};
64354
64354
 
64355
- const m$b={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.xl}},h$5={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.xl}},x$3={xs:{height:h$7.md.height,width:h$7.md.width},sm:{height:h$7.md.height,width:h$7.md.width},md:{height:h$7.md.height,width:h$7.md.width},lg:{height:h$7.lg.height,width:h$7.lg.width},xl:{height:h$7.xl.height,width:h$7.xl.width}},X$3={[e$5.Increase]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.ModerateIncrease]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.Decrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.ModerateDecrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.Unchanged]:{bgColor:c$l(a$j.Orange,e$4.background).bgColor,textColor:c$l(a$j.Orange,e$4.text).textColor}},c$i={[e$5.Increase]:r$h,[e$5.ModerateIncrease]:r$g,[e$5.Decrease]:r$k,[e$5.ModerateDecrease]:r$j,[e$5.Unchanged]:r$i};
64355
+ const m$b={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.xl}},h$5={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.xl}},x$3={xs:{height:h$7.md.height,width:h$7.md.width},sm:{height:h$7.md.height,width:h$7.md.width},md:{height:h$7.md.height,width:h$7.md.width},lg:{height:h$7.lg.height,width:h$7.lg.width},xl:{height:h$7.xl.height,width:h$7.xl.width}},X$4={[e$5.Increase]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.ModerateIncrease]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.Decrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.ModerateDecrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.Unchanged]:{bgColor:c$l(a$j.Orange,e$4.background).bgColor,textColor:c$l(a$j.Orange,e$4.text).textColor}},c$i={[e$5.Increase]:r$h,[e$5.ModerateIncrease]:r$g,[e$5.Decrease]:r$k,[e$5.ModerateDecrease]:r$j,[e$5.Unchanged]:r$i};
64356
64356
 
64357
- const u$7=$$1("BadgeDelta"),h$4=React.forwardRef(((n,h)=>{const{deltaType:j=e$5.Increase,isIncreasePositive:x=!0,size:w=r$o.SM,tooltip:y,children:N,className:T}=n,E=__rest$2(n,["deltaType","isIncreasePositive","size","tooltip","children","className"]),P=c$i[j],R=r$n(j,x),k=N?h$5:m$b,{tooltipProps:v,getReferenceProps:z}=f$c();return React.createElement("span",Object.assign({ref:n$i([h,v.refs.setReference]),className:t$e(u$7("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full bg-opacity-20 dark:bg-opacity-25",X$3[R].bgColor,X$3[R].textColor,k[w].paddingX,k[w].paddingY,k[w].fontSize,T)},z,E),React.createElement(u$8,Object.assign({text:y},v)),React.createElement(P,{className:t$e(u$7("icon"),"shrink-0",N?t$e(t$g.twoXs.negativeMarginLeft,t$g.xs.marginRight):x$3[w].height,x$3[w].width)}),N?React.createElement("p",{className:t$e(u$7("text"),"text-sm whitespace-nowrap")},N):null)}));h$4.displayName="BadgeDelta";
64357
+ const u$7=$$1("BadgeDelta"),h$4=React.forwardRef(((n,h)=>{const{deltaType:j=e$5.Increase,isIncreasePositive:x=!0,size:w=r$o.SM,tooltip:y,children:N,className:T}=n,E=__rest$2(n,["deltaType","isIncreasePositive","size","tooltip","children","className"]),P=c$i[j],R=r$n(j,x),k=N?h$5:m$b,{tooltipProps:v,getReferenceProps:z}=f$c();return React.createElement("span",Object.assign({ref:n$i([h,v.refs.setReference]),className:t$e(u$7("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full bg-opacity-20 dark:bg-opacity-25",X$4[R].bgColor,X$4[R].textColor,k[w].paddingX,k[w].paddingY,k[w].fontSize,T)},z,E),React.createElement(u$8,Object.assign({text:y},v)),React.createElement(P,{className:t$e(u$7("icon"),"shrink-0",N?t$e(t$g.twoXs.negativeMarginLeft,t$g.xs.marginRight):x$3[w].height,x$3[w].width)}),N?React.createElement("p",{className:t$e(u$7("text"),"text-sm whitespace-nowrap")},N):null)}));h$4.displayName="BadgeDelta";
64358
64358
 
64359
64359
  const i$i={xs:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},sm:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},md:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},lg:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},xl:{paddingX:t$g.md.paddingX,paddingY:t$g.md.paddingY}},n$e={xs:{height:h$7.sm.height,width:h$7.sm.width},sm:{height:h$7.lg.height,width:h$7.lg.width},md:{height:h$7.lg.height,width:h$7.lg.width},lg:{height:h$7.twoXl.height,width:h$7.twoXl.width},xl:{height:h$7.threeXl.height,width:h$7.threeXl.width}},g$b={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:r$m.sm.all,ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:r$m.md.all,ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:r$m.sm.all,ring:"ring-2",shadow:""}},b$7=(r,d)=>{switch(r){case"simple":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:d?c$l(d,e$4.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:d?t$e(c$l(d,e$4.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}};
64360
64360
 
@@ -64876,7 +64876,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
64876
64876
 
64877
64877
  function t$8(...r){return Array.from(new Set(r.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}
64878
64878
 
64879
- var S$2=(a=>(a[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a))(S$2||{}),j$2=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j$2||{});function X$2({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N$2(t,r);if(n)return c$g(o,e,a,f);let u=s!=null?s:0;if(u&2){let{static:l=!1,...p}=o;if(l)return c$g(p,e,a,f)}if(u&1){let{unmount:l=!0,...p}=o;return u$6(l?0:1,{[0](){return null},[1](){return c$g({...p,hidden:!0,style:{display:"none"}},e,a,f)}})}return c$g(o,e,a,f)}function c$g(r,t={},e,a){let{as:s=e,children:n,refName:f="ref",...o}=g$7(r,["unmount","static"]),u=r.ref!==void 0?{[f]:r.ref}:{},l=typeof n=="function"?n(t):n;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let p={};if(t){let i=!1,m=[];for(let[y,d]of Object.entries(t))typeof d=="boolean"&&(i=!0),d===!0&&m.push(y);i&&(p["data-headlessui-state"]=m.join(" "));}if(s===React.Fragment&&Object.keys(R$1(o)).length>0){if(!React.isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(d=>` - ${d}`).join(`
64879
+ var S$2=(a=>(a[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a))(S$2||{}),j$2=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j$2||{});function X$3({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N$2(t,r);if(n)return c$g(o,e,a,f);let u=s!=null?s:0;if(u&2){let{static:l=!1,...p}=o;if(l)return c$g(p,e,a,f)}if(u&1){let{unmount:l=!0,...p}=o;return u$6(l?0:1,{[0](){return null},[1](){return c$g({...p,hidden:!0,style:{display:"none"}},e,a,f)}})}return c$g(o,e,a,f)}function c$g(r,t={},e,a){let{as:s=e,children:n,refName:f="ref",...o}=g$7(r,["unmount","static"]),u=r.ref!==void 0?{[f]:r.ref}:{},l=typeof n=="function"?n(t):n;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let p={};if(t){let i=!1,m=[];for(let[y,d]of Object.entries(t))typeof d=="boolean"&&(i=!0),d===!0&&m.push(y);i&&(p["data-headlessui-state"]=m.join(" "));}if(s===React.Fragment&&Object.keys(R$1(o)).length>0){if(!React.isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(d=>` - ${d}`).join(`
64880
64880
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
64881
64881
  `)].join(`
64882
64882
  `));let i=l.props,m=typeof(i==null?void 0:i.className)=="function"?(...d)=>t$8(i==null?void 0:i.className(...d),o.className):t$8(i==null?void 0:i.className,o.className),y=m?{className:m}:{};return React.cloneElement(l,Object.assign({},N$2(l.props,R$1(g$7(o,["ref"]))),p,u,w$3(l.ref,u.ref),y))}return React.createElement(s,Object.assign({},g$7(o,["ref"]),s!==React.Fragment&&u,s!==React.Fragment&&p),l)}function w$3(...r){return {ref:r.every(t=>t==null)?void 0:t=>{for(let e of r)e!=null&&(typeof e=="function"?e(t):e.current=t);}}}function N$2(...r){if(r.length===0)return {};if(r.length===1)return r[0];let t={},e={};for(let s of r)for(let n in s)n.startsWith("on")&&typeof s[n]=="function"?((e[n])!=null||(e[n]=[]),e[n].push(s[n])):t[n]=s[n];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(e).map(s=>[s,void 0])));for(let s in e)Object.assign(t,{[s](n,...f){let o=e[s];for(let u of o){if((n instanceof Event||(n==null?void 0:n.nativeEvent)instanceof Event)&&n.defaultPrevented)return;u(n,...f);}}});return t}function D$1(r){var t;return Object.assign(React.forwardRef(r),{displayName:(t=r.displayName)!=null?t:r.name})}function R$1(r){let t=Object.assign({},r);for(let e in t)t[e]===void 0&&delete t[e];return t}function g$7(r,t=[]){let e=Object.assign({},r);for(let a of t)a in e&&delete e[a];return e}
@@ -64885,7 +64885,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
64885
64885
 
64886
64886
  function e$1(i={},s=null,t=[]){for(let[r,n]of Object.entries(i))o$b(t,f$7(s,r),n);return t}function f$7(i,s){return i?i+"["+s+"]":s}function o$b(i,s,t){if(Array.isArray(t))for(let[r,n]of t.entries())o$b(i,f$7(s,r.toString()),n);else t instanceof Date?i.push([s,t.toISOString()]):typeof t=="boolean"?i.push([s,t?"1":"0"]):typeof t=="string"?i.push([s,t]):typeof t=="number"?i.push([s,`${t}`]):t==null?i.push([s,""]):e$1(t,s,i);}function p$8(i){var t,r;let s=(t=i==null?void 0:i.form)!=null?t:i.closest("form");if(s){for(let n of s.elements)if(n!==i&&(n.tagName==="INPUT"&&n.type==="submit"||n.tagName==="BUTTON"&&n.type==="submit"||n.nodeName==="INPUT"&&n.type==="image")){n.click();return}(r=s.requestSubmit)==null||r.call(s);}}
64887
64887
 
64888
- let a$d="div";var p$7=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(p$7||{});function s$c(t,o){let{features:n=1,...e}=t,d={ref:o,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return X$2({ourProps:d,theirProps:e,slot:{},defaultTag:a$d,name:"Hidden"})}let c$f=D$1(s$c);
64888
+ let a$d="div";var p$7=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(p$7||{});function s$c(t,o){let{features:n=1,...e}=t,d={ref:o,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return X$3({ourProps:d,theirProps:e,slot:{},defaultTag:a$d,name:"Hidden"})}let c$f=D$1(s$c);
64889
64889
 
64890
64890
  let n$c=React.createContext(null);n$c.displayName="OpenClosedContext";var d$f=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(d$f||{});function C$2(){return React.useContext(n$c)}function c$e({value:o,children:r}){return React.createElement(n$c.Provider,{value:o},r)}
64891
64891
 
@@ -64901,7 +64901,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
64901
64901
 
64902
64902
  function n$a(...e){return React.useMemo(()=>e$2(...e),[...e])}
64903
64903
 
64904
- var we$2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(we$2||{}),Ue$1=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ue$1||{}),Ne$3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ne$3||{}),He$2=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(He$2||{});function ae$1(t,a=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,r=I$1(a(t.options.slice()),b=>b.dataRef.current.domRef.current),l=e?r.indexOf(e):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let Ge$4={[1](t){var a;return (a=t.dataRef.current)!=null&&a.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var e;if((e=t.dataRef.current)!=null&&e.disabled||t.comboboxState===0)return t;let a=t.activeOptionIndex;if(t.dataRef.current){let{isSelected:r}=t.dataRef.current,l=t.options.findIndex(b=>r(b.dataRef.current.value));l!==-1&&(a=l);}return {...t,comboboxState:0,activeOptionIndex:a}},[2](t,a){var l,b,n,d;if((l=t.dataRef.current)!=null&&l.disabled||(b=t.dataRef.current)!=null&&b.optionsRef.current&&!((n=t.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&t.comboboxState===1)return t;let e=ae$1(t);if(e.activeOptionIndex===null){let o=e.options.findIndex(i=>!i.dataRef.current.disabled);o!==-1&&(e.activeOptionIndex=o);}let r=x$1(a,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return {...t,...e,activeOptionIndex:r,activationTrigger:(d=a.trigger)!=null?d:1}},[3]:(t,a)=>{var b,n;let e={id:a.id,dataRef:a.dataRef},r=ae$1(t,d=>[...d,e]);t.activeOptionIndex===null&&(b=t.dataRef.current)!=null&&b.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(e));let l={...t,...r,activationTrigger:1};return (n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},[4]:(t,a)=>{let e=ae$1(t,r=>{let l=r.findIndex(b=>b.id===a.id);return l!==-1&&r.splice(l,1),r});return {...t,...e,activationTrigger:1}},[5]:(t,a)=>({...t,labelId:a.id})},le$1=React.createContext(null);le$1.displayName="ComboboxActionsContext";function Z$2(t){let a=React.useContext(le$1);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Z$2),e}return a}let ie$2=React.createContext(null);ie$2.displayName="ComboboxDataContext";function J$2(t){let a=React.useContext(ie$2);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,J$2),e}return a}function Xe$2(t,a){return u$6(a.type,Ge$4,t,a)}let je$2=React.Fragment;function Je$2(t,a){let{value:e,defaultValue:r,onChange:l,form:b,name:n,by:d=(u,T)=>u===T,disabled:o=!1,__demoMode:i=!1,nullable:A=!1,multiple:O=!1,...C}=t,[f=O?[]:void 0,g]=T(e,l,r),[m,c]=React.useReducer(Xe$2,{dataRef:React.createRef(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),D=React.useRef(!1),_=React.useRef({static:!1,hold:!1}),w=React.useRef(null),U=React.useRef(null),N=React.useRef(null),K=React.useRef(null),h=o$d(typeof d=="string"?(u,T)=>{let v=d;return (u==null?void 0:u[v])===(T==null?void 0:T[v])}:d),H=React.useCallback(u=>u$6(p.mode,{[1]:()=>f.some(T=>h(T,u)),[0]:()=>h(f,u)}),[f]),p=React.useMemo(()=>({...m,optionsPropsRef:_,labelRef:w,inputRef:U,buttonRef:N,optionsRef:K,value:f,defaultValue:r,disabled:o,mode:O?1:0,get activeOptionIndex(){if(D.current&&m.activeOptionIndex===null&&m.options.length>0){let u=m.options.findIndex(T=>!T.dataRef.current.disabled);if(u!==-1)return u}return m.activeOptionIndex},compare:h,isSelected:H,nullable:A,__demoMode:i}),[f,r,o,O,A,i,m]),y=React.useRef(p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null);React.useEffect(()=>{let u=p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null;y.current!==u&&(y.current=u);}),l$f(()=>{m.dataRef.current=p;},[p]),h$2([p.buttonRef,p.inputRef,p.optionsRef],()=>te.closeCombobox(),p.comboboxState===0);let E=React.useMemo(()=>({open:p.comboboxState===0,disabled:o,activeIndex:p.activeOptionIndex,activeOption:p.activeOptionIndex===null?null:p.options[p.activeOptionIndex].dataRef.current.value,value:f}),[p,o,f]),B=o$d(u=>{let T=p.options.find(v=>v.id===u);T&&V(T.dataRef.current.value);}),s=o$d(()=>{if(p.activeOptionIndex!==null){let{dataRef:u,id:T}=p.options[p.activeOptionIndex];V(u.current.value),te.goToOption(a$e.Specific,T);}}),W=o$d(()=>{c({type:0}),D.current=!0;}),L=o$d(()=>{c({type:1}),D.current=!1;}),$=o$d((u,T,v)=>(D.current=!1,u===a$e.Specific?c({type:2,focus:a$e.Specific,id:T,trigger:v}):c({type:2,focus:u,trigger:v}))),P=o$d((u,T)=>(c({type:3,id:u,dataRef:T}),()=>{var v;((v=y.current)==null?void 0:v.id)===u&&(D.current=!0),c({type:4,id:u});})),F=o$d(u=>(c({type:5,id:u}),()=>c({type:5,id:null}))),V=o$d(u=>u$6(p.mode,{[0](){return g==null?void 0:g(u)},[1](){let T=p.value.slice(),v=T.findIndex(q=>h(q,u));return v===-1?T.push(u):T.splice(v,1),g==null?void 0:g(T)}})),te=React.useMemo(()=>({onChange:V,registerOption:P,registerLabel:F,goToOption:$,closeCombobox:L,openCombobox:W,selectActiveOption:s,selectOption:B}),[]),Te=a===null?{}:{ref:a},z=React.useRef(null),me=p$9();return React.useEffect(()=>{z.current&&r!==void 0&&me.addEventListener(z.current,"reset",()=>{g==null||g(r);});},[z,g]),React.createElement(le$1.Provider,{value:te},React.createElement(ie$2.Provider,{value:p},React.createElement(c$e,{value:u$6(p.comboboxState,{[0]:d$f.Open,[1]:d$f.Closed})},n!=null&&f!=null&&e$1({[n]:f}).map(([u,T],v)=>React.createElement(c$f,{features:p$7.Hidden,ref:v===0?q=>{var ue;z.current=(ue=q==null?void 0:q.closest("form"))!=null?ue:null;}:void 0,...R$1({key:u,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,name:u,value:T})})),X$2({ourProps:Te,theirProps:C,slot:E,defaultTag:je$2,name:"Combobox"}))))}let Ke$2="input";function We$2(t,a){var p,y,E,B;let e=I$2(),{id:r=`headlessui-combobox-input-${e}`,onChange:l,displayValue:b,type:n="text",...d}=t,o=J$2("Combobox.Input"),i=Z$2("Combobox.Input"),A=y$3(o.inputRef,a),O=n$a(o.inputRef),C=React.useRef(!1),f=p$9(),g=o$d(()=>{i.onChange(null),o.optionsRef.current&&(o.optionsRef.current.scrollTop=0),i.goToOption(a$e.Nothing);}),m=function(){var s;return typeof b=="function"&&o.value!==void 0?(s=b(o.value))!=null?s:"":typeof o.value=="string"?o.value:""}();m$a(([s,W],[L,$])=>{if(C.current)return;let P=o.inputRef.current;P&&(($===0&&W===1||s!==L)&&(P.value=s),requestAnimationFrame(()=>{if(C.current||!P||(O==null?void 0:O.activeElement)!==P)return;let{selectionStart:F,selectionEnd:V}=P;Math.abs((V!=null?V:0)-(F!=null?F:0))===0&&F===0&&P.setSelectionRange(P.value.length,P.value.length);}));},[m,o.comboboxState,O]),m$a(([s],[W])=>{if(s===0&&W===1){if(C.current)return;let L=o.inputRef.current;if(!L)return;let $=L.value,{selectionStart:P,selectionEnd:F,selectionDirection:V}=L;L.value="",L.value=$,V!==null?L.setSelectionRange(P,F,V):L.setSelectionRange(P,F);}},[o.comboboxState]);let c=React.useRef(!1),D=o$d(()=>{c.current=!0;}),_=o$d(()=>{f.nextFrame(()=>{c.current=!1;});}),w=o$d(s=>{switch(C.current=!0,s.key){case o$a.Enter:if(C.current=!1,o.comboboxState!==0||c.current)return;if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex===null){i.closeCombobox();return}i.selectActiveOption(),o.mode===0&&i.closeCombobox();break;case o$a.ArrowDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Next);},[1]:()=>{i.openCombobox();}});case o$a.ArrowUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Previous);},[1]:()=>{i.openCombobox(),f.nextFrame(()=>{o.value||i.goToOption(a$e.Last);});}});case o$a.Home:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.PageUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.End:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.PageDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.Escape:return C.current=!1,o.comboboxState!==0?void 0:(s.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&s.stopPropagation(),o.nullable&&o.mode===0&&o.value===null&&g(),i.closeCombobox());case o$a.Tab:if(C.current=!1,o.comboboxState!==0)return;o.mode===0&&i.selectActiveOption(),i.closeCombobox();break}}),U=o$d(s=>{l==null||l(s),o.nullable&&o.mode===0&&s.target.value===""&&g(),i.openCombobox();}),N=o$d(()=>{C.current=!1;}),K=i$f(()=>{if(o.labelId)return [o.labelId].join(" ")},[o.labelId]),h=React.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]),H={ref:A,id:r,role:"combobox",type:n,"aria-controls":(p=o.optionsRef.current)==null?void 0:p.id,"aria-expanded":o.comboboxState===0,"aria-activedescendant":o.activeOptionIndex===null||(y=o.options[o.activeOptionIndex])==null?void 0:y.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(B=(E=t.defaultValue)!=null?E:o.defaultValue!==void 0?b==null?void 0:b(o.defaultValue):null)!=null?B:o.defaultValue,disabled:o.disabled,onCompositionStart:D,onCompositionEnd:_,onKeyDown:w,onChange:U,onBlur:N};return X$2({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$2="button";function qe$2(t,a){var g;let e=J$2("Combobox.Button"),r=Z$2("Combobox.Button"),l=y$3(e.buttonRef,a),b=I$2(),{id:n=`headlessui-combobox-button-${b}`,...d}=t,o=p$9(),i=o$d(m=>{switch(m.key){case o$a.ArrowDown:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&r.openCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.ArrowUp:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&(r.openCombobox(),o.nextFrame(()=>{e.value||r.goToOption(a$e.Last);})),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.Escape:return e.comboboxState!==0?void 0:(m.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&m.stopPropagation(),r.closeCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})}));default:return}}),A=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e.comboboxState===0?r.closeCombobox():(m.preventDefault(),r.openCombobox()),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});}),O=i$f(()=>{if(e.labelId)return [e.labelId,n].join(" ")},[e.labelId,n]),C=React.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled,value:e.value}),[e]),f={ref:l,id:n,type:s$d(t,e.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(g=e.optionsRef.current)==null?void 0:g.id,"aria-expanded":e.comboboxState===0,"aria-labelledby":O,disabled:e.disabled,onClick:A,onKeyDown:i};return X$2({ourProps:f,theirProps:d,slot:C,defaultTag:$e$2,name:"Combobox.Button"})}let Qe$2="label";function Ye$2(t,a){let e=I$2(),{id:r=`headlessui-combobox-label-${e}`,...l}=t,b=J$2("Combobox.Label"),n=Z$2("Combobox.Label"),d=y$3(b.labelRef,a);l$f(()=>n.registerLabel(r),[r]);let o=o$d(()=>{var O;return (O=b.inputRef.current)==null?void 0:O.focus({preventScroll:!0})}),i=React.useMemo(()=>({open:b.comboboxState===0,disabled:b.disabled}),[b]);return X$2({ourProps:{ref:d,id:r,onClick:o},theirProps:l,slot:i,defaultTag:Qe$2,name:"Combobox.Label"})}let Ze$2="ul",ze$2=S$2.RenderStrategy|S$2.Static;function eo$1(t,a){let e=I$2(),{id:r=`headlessui-combobox-options-${e}`,hold:l=!1,...b}=t,n=J$2("Combobox.Options"),d=y$3(n.optionsRef,a),o=C$2(),i=(()=>o!==null?(o&d$f.Open)===d$f.Open:n.comboboxState===0)();l$f(()=>{var f;n.optionsPropsRef.current.static=(f=t.static)!=null?f:!1;},[n.optionsPropsRef,t.static]),l$f(()=>{n.optionsPropsRef.current.hold=l;},[n.optionsPropsRef,l]),F$1({container:n.optionsRef.current,enabled:n.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none");}});let A=i$f(()=>{var f,g;return (g=n.labelId)!=null?g:(f=n.buttonRef.current)==null?void 0:f.id},[n.labelId,n.buttonRef.current]),O=React.useMemo(()=>({open:n.comboboxState===0}),[n]),C={"aria-labelledby":A,role:"listbox","aria-multiselectable":n.mode===1?!0:void 0,id:r,ref:d};return X$2({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo$1="li";function to$1(t,a){var H,p;let e=I$2(),{id:r=`headlessui-combobox-option-${e}`,disabled:l=!1,value:b,...n}=t,d=J$2("Combobox.Option"),o=Z$2("Combobox.Option"),i=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,A=d.isSelected(b),O=React.useRef(null),C=s$g({disabled:l,value:b,domRef:O,textValue:(p=(H=O.current)==null?void 0:H.textContent)==null?void 0:p.toLowerCase()}),f=y$3(a,O),g=o$d(()=>o.selectOption(r));l$f(()=>o.registerOption(r,C),[C,r]);let m=React.useRef(!d.__demoMode);l$f(()=>{if(!d.__demoMode)return;let y=o$e();return y.requestAnimationFrame(()=>{m.current=!0;}),y.dispose},[]),l$f(()=>{if(d.comboboxState!==0||!i||!m.current||d.activationTrigger===0)return;let y=o$e();return y.requestAnimationFrame(()=>{var E,B;(B=(E=O.current)==null?void 0:E.scrollIntoView)==null||B.call(E,{block:"nearest"});}),y.dispose},[O,i,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let c=o$d(y=>{if(l)return y.preventDefault();g(),d.mode===0&&o.closeCombobox(),n$b()||requestAnimationFrame(()=>{var E;return (E=d.inputRef.current)==null?void 0:E.focus()});}),D=o$d(()=>{if(l)return o.goToOption(a$e.Nothing);o.goToOption(a$e.Specific,r);}),_=u$4(),w=o$d(y=>_.update(y)),U=o$d(y=>{_.wasMoved(y)&&(l||i||o.goToOption(a$e.Specific,r,0));}),N=o$d(y=>{_.wasMoved(y)&&(l||i&&(d.optionsPropsRef.current.hold||o.goToOption(a$e.Nothing)));}),K=React.useMemo(()=>({active:i,selected:A,disabled:l}),[i,A,l]);return X$2({ourProps:{id:r,ref:f,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:c,onFocus:D,onPointerEnter:w,onMouseEnter:w,onPointerMove:U,onMouseMove:U,onPointerLeave:N,onMouseLeave:N},theirProps:n,slot:K,defaultTag:oo$1,name:"Combobox.Option"})}let no$1=D$1(Je$2),ro$1=D$1(qe$2),ao$1=D$1(We$2),lo$1=D$1(Ye$2),io$1=D$1(eo$1),uo=D$1(to$1),qo$1=Object.assign(no$1,{Input:ao$1,Button:ro$1,Label:lo$1,Options:io$1,Option:uo});
64904
+ var we$2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(we$2||{}),Ue$1=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ue$1||{}),Ne$3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ne$3||{}),He$2=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(He$2||{});function ae$1(t,a=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,r=I$1(a(t.options.slice()),b=>b.dataRef.current.domRef.current),l=e?r.indexOf(e):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let Ge$3={[1](t){var a;return (a=t.dataRef.current)!=null&&a.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var e;if((e=t.dataRef.current)!=null&&e.disabled||t.comboboxState===0)return t;let a=t.activeOptionIndex;if(t.dataRef.current){let{isSelected:r}=t.dataRef.current,l=t.options.findIndex(b=>r(b.dataRef.current.value));l!==-1&&(a=l);}return {...t,comboboxState:0,activeOptionIndex:a}},[2](t,a){var l,b,n,d;if((l=t.dataRef.current)!=null&&l.disabled||(b=t.dataRef.current)!=null&&b.optionsRef.current&&!((n=t.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&t.comboboxState===1)return t;let e=ae$1(t);if(e.activeOptionIndex===null){let o=e.options.findIndex(i=>!i.dataRef.current.disabled);o!==-1&&(e.activeOptionIndex=o);}let r=x$1(a,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return {...t,...e,activeOptionIndex:r,activationTrigger:(d=a.trigger)!=null?d:1}},[3]:(t,a)=>{var b,n;let e={id:a.id,dataRef:a.dataRef},r=ae$1(t,d=>[...d,e]);t.activeOptionIndex===null&&(b=t.dataRef.current)!=null&&b.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(e));let l={...t,...r,activationTrigger:1};return (n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},[4]:(t,a)=>{let e=ae$1(t,r=>{let l=r.findIndex(b=>b.id===a.id);return l!==-1&&r.splice(l,1),r});return {...t,...e,activationTrigger:1}},[5]:(t,a)=>({...t,labelId:a.id})},le$1=React.createContext(null);le$1.displayName="ComboboxActionsContext";function Z$2(t){let a=React.useContext(le$1);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Z$2),e}return a}let ie$2=React.createContext(null);ie$2.displayName="ComboboxDataContext";function J$1(t){let a=React.useContext(ie$2);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,J$1),e}return a}function Xe$2(t,a){return u$6(a.type,Ge$3,t,a)}let je$2=React.Fragment;function Je$2(t,a){let{value:e,defaultValue:r,onChange:l,form:b,name:n,by:d=(u,T)=>u===T,disabled:o=!1,__demoMode:i=!1,nullable:A=!1,multiple:O=!1,...C}=t,[f=O?[]:void 0,g]=T(e,l,r),[m,c]=React.useReducer(Xe$2,{dataRef:React.createRef(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),D=React.useRef(!1),_=React.useRef({static:!1,hold:!1}),w=React.useRef(null),U=React.useRef(null),N=React.useRef(null),K=React.useRef(null),h=o$d(typeof d=="string"?(u,T)=>{let v=d;return (u==null?void 0:u[v])===(T==null?void 0:T[v])}:d),H=React.useCallback(u=>u$6(p.mode,{[1]:()=>f.some(T=>h(T,u)),[0]:()=>h(f,u)}),[f]),p=React.useMemo(()=>({...m,optionsPropsRef:_,labelRef:w,inputRef:U,buttonRef:N,optionsRef:K,value:f,defaultValue:r,disabled:o,mode:O?1:0,get activeOptionIndex(){if(D.current&&m.activeOptionIndex===null&&m.options.length>0){let u=m.options.findIndex(T=>!T.dataRef.current.disabled);if(u!==-1)return u}return m.activeOptionIndex},compare:h,isSelected:H,nullable:A,__demoMode:i}),[f,r,o,O,A,i,m]),y=React.useRef(p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null);React.useEffect(()=>{let u=p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null;y.current!==u&&(y.current=u);}),l$f(()=>{m.dataRef.current=p;},[p]),h$2([p.buttonRef,p.inputRef,p.optionsRef],()=>te.closeCombobox(),p.comboboxState===0);let E=React.useMemo(()=>({open:p.comboboxState===0,disabled:o,activeIndex:p.activeOptionIndex,activeOption:p.activeOptionIndex===null?null:p.options[p.activeOptionIndex].dataRef.current.value,value:f}),[p,o,f]),B=o$d(u=>{let T=p.options.find(v=>v.id===u);T&&V(T.dataRef.current.value);}),s=o$d(()=>{if(p.activeOptionIndex!==null){let{dataRef:u,id:T}=p.options[p.activeOptionIndex];V(u.current.value),te.goToOption(a$e.Specific,T);}}),W=o$d(()=>{c({type:0}),D.current=!0;}),L=o$d(()=>{c({type:1}),D.current=!1;}),$=o$d((u,T,v)=>(D.current=!1,u===a$e.Specific?c({type:2,focus:a$e.Specific,id:T,trigger:v}):c({type:2,focus:u,trigger:v}))),P=o$d((u,T)=>(c({type:3,id:u,dataRef:T}),()=>{var v;((v=y.current)==null?void 0:v.id)===u&&(D.current=!0),c({type:4,id:u});})),F=o$d(u=>(c({type:5,id:u}),()=>c({type:5,id:null}))),V=o$d(u=>u$6(p.mode,{[0](){return g==null?void 0:g(u)},[1](){let T=p.value.slice(),v=T.findIndex(q=>h(q,u));return v===-1?T.push(u):T.splice(v,1),g==null?void 0:g(T)}})),te=React.useMemo(()=>({onChange:V,registerOption:P,registerLabel:F,goToOption:$,closeCombobox:L,openCombobox:W,selectActiveOption:s,selectOption:B}),[]),Te=a===null?{}:{ref:a},z=React.useRef(null),me=p$9();return React.useEffect(()=>{z.current&&r!==void 0&&me.addEventListener(z.current,"reset",()=>{g==null||g(r);});},[z,g]),React.createElement(le$1.Provider,{value:te},React.createElement(ie$2.Provider,{value:p},React.createElement(c$e,{value:u$6(p.comboboxState,{[0]:d$f.Open,[1]:d$f.Closed})},n!=null&&f!=null&&e$1({[n]:f}).map(([u,T],v)=>React.createElement(c$f,{features:p$7.Hidden,ref:v===0?q=>{var ue;z.current=(ue=q==null?void 0:q.closest("form"))!=null?ue:null;}:void 0,...R$1({key:u,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,name:u,value:T})})),X$3({ourProps:Te,theirProps:C,slot:E,defaultTag:je$2,name:"Combobox"}))))}let Ke$2="input";function We$2(t,a){var p,y,E,B;let e=I$2(),{id:r=`headlessui-combobox-input-${e}`,onChange:l,displayValue:b,type:n="text",...d}=t,o=J$1("Combobox.Input"),i=Z$2("Combobox.Input"),A=y$3(o.inputRef,a),O=n$a(o.inputRef),C=React.useRef(!1),f=p$9(),g=o$d(()=>{i.onChange(null),o.optionsRef.current&&(o.optionsRef.current.scrollTop=0),i.goToOption(a$e.Nothing);}),m=function(){var s;return typeof b=="function"&&o.value!==void 0?(s=b(o.value))!=null?s:"":typeof o.value=="string"?o.value:""}();m$a(([s,W],[L,$])=>{if(C.current)return;let P=o.inputRef.current;P&&(($===0&&W===1||s!==L)&&(P.value=s),requestAnimationFrame(()=>{if(C.current||!P||(O==null?void 0:O.activeElement)!==P)return;let{selectionStart:F,selectionEnd:V}=P;Math.abs((V!=null?V:0)-(F!=null?F:0))===0&&F===0&&P.setSelectionRange(P.value.length,P.value.length);}));},[m,o.comboboxState,O]),m$a(([s],[W])=>{if(s===0&&W===1){if(C.current)return;let L=o.inputRef.current;if(!L)return;let $=L.value,{selectionStart:P,selectionEnd:F,selectionDirection:V}=L;L.value="",L.value=$,V!==null?L.setSelectionRange(P,F,V):L.setSelectionRange(P,F);}},[o.comboboxState]);let c=React.useRef(!1),D=o$d(()=>{c.current=!0;}),_=o$d(()=>{f.nextFrame(()=>{c.current=!1;});}),w=o$d(s=>{switch(C.current=!0,s.key){case o$a.Enter:if(C.current=!1,o.comboboxState!==0||c.current)return;if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex===null){i.closeCombobox();return}i.selectActiveOption(),o.mode===0&&i.closeCombobox();break;case o$a.ArrowDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Next);},[1]:()=>{i.openCombobox();}});case o$a.ArrowUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Previous);},[1]:()=>{i.openCombobox(),f.nextFrame(()=>{o.value||i.goToOption(a$e.Last);});}});case o$a.Home:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.PageUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.End:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.PageDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.Escape:return C.current=!1,o.comboboxState!==0?void 0:(s.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&s.stopPropagation(),o.nullable&&o.mode===0&&o.value===null&&g(),i.closeCombobox());case o$a.Tab:if(C.current=!1,o.comboboxState!==0)return;o.mode===0&&i.selectActiveOption(),i.closeCombobox();break}}),U=o$d(s=>{l==null||l(s),o.nullable&&o.mode===0&&s.target.value===""&&g(),i.openCombobox();}),N=o$d(()=>{C.current=!1;}),K=i$f(()=>{if(o.labelId)return [o.labelId].join(" ")},[o.labelId]),h=React.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]),H={ref:A,id:r,role:"combobox",type:n,"aria-controls":(p=o.optionsRef.current)==null?void 0:p.id,"aria-expanded":o.comboboxState===0,"aria-activedescendant":o.activeOptionIndex===null||(y=o.options[o.activeOptionIndex])==null?void 0:y.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(B=(E=t.defaultValue)!=null?E:o.defaultValue!==void 0?b==null?void 0:b(o.defaultValue):null)!=null?B:o.defaultValue,disabled:o.disabled,onCompositionStart:D,onCompositionEnd:_,onKeyDown:w,onChange:U,onBlur:N};return X$3({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$2="button";function qe$3(t,a){var g;let e=J$1("Combobox.Button"),r=Z$2("Combobox.Button"),l=y$3(e.buttonRef,a),b=I$2(),{id:n=`headlessui-combobox-button-${b}`,...d}=t,o=p$9(),i=o$d(m=>{switch(m.key){case o$a.ArrowDown:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&r.openCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.ArrowUp:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&(r.openCombobox(),o.nextFrame(()=>{e.value||r.goToOption(a$e.Last);})),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.Escape:return e.comboboxState!==0?void 0:(m.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&m.stopPropagation(),r.closeCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})}));default:return}}),A=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e.comboboxState===0?r.closeCombobox():(m.preventDefault(),r.openCombobox()),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});}),O=i$f(()=>{if(e.labelId)return [e.labelId,n].join(" ")},[e.labelId,n]),C=React.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled,value:e.value}),[e]),f={ref:l,id:n,type:s$d(t,e.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(g=e.optionsRef.current)==null?void 0:g.id,"aria-expanded":e.comboboxState===0,"aria-labelledby":O,disabled:e.disabled,onClick:A,onKeyDown:i};return X$3({ourProps:f,theirProps:d,slot:C,defaultTag:$e$2,name:"Combobox.Button"})}let Qe$2="label";function Ye$2(t,a){let e=I$2(),{id:r=`headlessui-combobox-label-${e}`,...l}=t,b=J$1("Combobox.Label"),n=Z$2("Combobox.Label"),d=y$3(b.labelRef,a);l$f(()=>n.registerLabel(r),[r]);let o=o$d(()=>{var O;return (O=b.inputRef.current)==null?void 0:O.focus({preventScroll:!0})}),i=React.useMemo(()=>({open:b.comboboxState===0,disabled:b.disabled}),[b]);return X$3({ourProps:{ref:d,id:r,onClick:o},theirProps:l,slot:i,defaultTag:Qe$2,name:"Combobox.Label"})}let Ze$2="ul",ze$2=S$2.RenderStrategy|S$2.Static;function eo$1(t,a){let e=I$2(),{id:r=`headlessui-combobox-options-${e}`,hold:l=!1,...b}=t,n=J$1("Combobox.Options"),d=y$3(n.optionsRef,a),o=C$2(),i=(()=>o!==null?(o&d$f.Open)===d$f.Open:n.comboboxState===0)();l$f(()=>{var f;n.optionsPropsRef.current.static=(f=t.static)!=null?f:!1;},[n.optionsPropsRef,t.static]),l$f(()=>{n.optionsPropsRef.current.hold=l;},[n.optionsPropsRef,l]),F$1({container:n.optionsRef.current,enabled:n.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none");}});let A=i$f(()=>{var f,g;return (g=n.labelId)!=null?g:(f=n.buttonRef.current)==null?void 0:f.id},[n.labelId,n.buttonRef.current]),O=React.useMemo(()=>({open:n.comboboxState===0}),[n]),C={"aria-labelledby":A,role:"listbox","aria-multiselectable":n.mode===1?!0:void 0,id:r,ref:d};return X$3({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo$1="li";function to$1(t,a){var H,p;let e=I$2(),{id:r=`headlessui-combobox-option-${e}`,disabled:l=!1,value:b,...n}=t,d=J$1("Combobox.Option"),o=Z$2("Combobox.Option"),i=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,A=d.isSelected(b),O=React.useRef(null),C=s$g({disabled:l,value:b,domRef:O,textValue:(p=(H=O.current)==null?void 0:H.textContent)==null?void 0:p.toLowerCase()}),f=y$3(a,O),g=o$d(()=>o.selectOption(r));l$f(()=>o.registerOption(r,C),[C,r]);let m=React.useRef(!d.__demoMode);l$f(()=>{if(!d.__demoMode)return;let y=o$e();return y.requestAnimationFrame(()=>{m.current=!0;}),y.dispose},[]),l$f(()=>{if(d.comboboxState!==0||!i||!m.current||d.activationTrigger===0)return;let y=o$e();return y.requestAnimationFrame(()=>{var E,B;(B=(E=O.current)==null?void 0:E.scrollIntoView)==null||B.call(E,{block:"nearest"});}),y.dispose},[O,i,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let c=o$d(y=>{if(l)return y.preventDefault();g(),d.mode===0&&o.closeCombobox(),n$b()||requestAnimationFrame(()=>{var E;return (E=d.inputRef.current)==null?void 0:E.focus()});}),D=o$d(()=>{if(l)return o.goToOption(a$e.Nothing);o.goToOption(a$e.Specific,r);}),_=u$4(),w=o$d(y=>_.update(y)),U=o$d(y=>{_.wasMoved(y)&&(l||i||o.goToOption(a$e.Specific,r,0));}),N=o$d(y=>{_.wasMoved(y)&&(l||i&&(d.optionsPropsRef.current.hold||o.goToOption(a$e.Nothing)));}),K=React.useMemo(()=>({active:i,selected:A,disabled:l}),[i,A,l]);return X$3({ourProps:{id:r,ref:f,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:c,onFocus:D,onPointerEnter:w,onMouseEnter:w,onPointerMove:U,onMouseMove:U,onPointerLeave:N,onMouseLeave:N},theirProps:n,slot:K,defaultTag:oo$1,name:"Combobox.Option"})}let no$1=D$1(Je$2),ro$1=D$1(qe$3),ao$1=D$1(We$2),lo$1=D$1(Ye$2),io$1=D$1(eo$1),uo=D$1(to$1),qo$1=Object.assign(no$1,{Input:ao$1,Button:ro$1,Label:lo$1,Options:io$1,Option:uo});
64905
64905
 
64906
64906
  var s$b=(r=>(r[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r))(s$b||{});function n$9(){let e=React.useRef(0);return s$e("keydown",o=>{o.key==="Tab"&&(e.current=o.shiftKey?1:0);},!0),e}
64907
64907
 
@@ -64913,33 +64913,33 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
64913
64913
 
64914
64914
  let e=React.createContext(!1);function l$d(){return React.useContext(e)}
64915
64915
 
64916
- function F(p){let l=l$d(),n=React.useContext(v$3),e=n$a(p),[a,o]=React.useState(()=>{if(!l&&n!==null||s$h.isServer)return null;let t=e==null?void 0:e.getElementById("headlessui-portal-root");if(t)return t;if(e===null)return null;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)});return React.useEffect(()=>{a!==null&&(e!=null&&e.body.contains(a)||e==null||e.body.appendChild(a));},[a,e]),React.useEffect(()=>{l||n!==null&&o(n.current);},[n,o,l]),a}let U$1=React.Fragment;function N$1(p,l){let n=p,e=React.useRef(null),a=y$3(T$1(u=>{e.current=u;}),l),o=n$a(e),t=F(e),[r]=React.useState(()=>{var u;return s$h.isServer?null:(u=o==null?void 0:o.createElement("div"))!=null?u:null}),i=React.useContext(f$5),C=l$e();return l$f(()=>{!t||!r||t.contains(r)||(r.setAttribute("data-headlessui-portal",""),t.appendChild(r));},[t,r]),l$f(()=>{if(r&&i)return i.register(r)},[i,r]),c$d(()=>{var u;!t||!r||(r instanceof Node&&t.contains(r)&&t.removeChild(r),t.childNodes.length<=0&&((u=t.parentElement)==null||u.removeChild(t)));}),C?!t||!r?null:ReactDOM.createPortal(X$2({ourProps:{ref:a},theirProps:n,defaultTag:U$1,name:"Portal"}),r):null}let S$1=React.Fragment,v$3=React.createContext(null);function j$1(p,l){let{target:n,...e}=p,o={ref:y$3(l)};return React.createElement(v$3.Provider,{value:n},X$2({ourProps:o,theirProps:e,defaultTag:S$1,name:"Popover.Group"}))}let f$5=React.createContext(null);function ae(){let p=React.useContext(f$5),l=React.useRef([]),n=o$d(o=>(l.current.push(o),p&&p.register(o),()=>e(o))),e=o$d(o=>{let t=l.current.indexOf(o);t!==-1&&l.current.splice(t,1),p&&p.unregister(o);}),a=React.useMemo(()=>({register:n,unregister:e,portals:l}),[n,e,l]);return [l,React.useMemo(()=>function({children:t}){return React.createElement(f$5.Provider,{value:a},t)},[a])]}let D=D$1(N$1),I=D$1(j$1);Object.assign(D,{Group:I});
64916
+ function F(p){let l=l$d(),n=React.useContext(v$3),e=n$a(p),[a,o]=React.useState(()=>{if(!l&&n!==null||s$h.isServer)return null;let t=e==null?void 0:e.getElementById("headlessui-portal-root");if(t)return t;if(e===null)return null;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)});return React.useEffect(()=>{a!==null&&(e!=null&&e.body.contains(a)||e==null||e.body.appendChild(a));},[a,e]),React.useEffect(()=>{l||n!==null&&o(n.current);},[n,o,l]),a}let U$1=React.Fragment;function N$1(p,l){let n=p,e=React.useRef(null),a=y$3(T$1(u=>{e.current=u;}),l),o=n$a(e),t=F(e),[r]=React.useState(()=>{var u;return s$h.isServer?null:(u=o==null?void 0:o.createElement("div"))!=null?u:null}),i=React.useContext(f$5),C=l$e();return l$f(()=>{!t||!r||t.contains(r)||(r.setAttribute("data-headlessui-portal",""),t.appendChild(r));},[t,r]),l$f(()=>{if(r&&i)return i.register(r)},[i,r]),c$d(()=>{var u;!t||!r||(r instanceof Node&&t.contains(r)&&t.removeChild(r),t.childNodes.length<=0&&((u=t.parentElement)==null||u.removeChild(t)));}),C?!t||!r?null:ReactDOM.createPortal(X$3({ourProps:{ref:a},theirProps:n,defaultTag:U$1,name:"Portal"}),r):null}let S$1=React.Fragment,v$3=React.createContext(null);function j$1(p,l){let{target:n,...e}=p,o={ref:y$3(l)};return React.createElement(v$3.Provider,{value:n},X$3({ourProps:o,theirProps:e,defaultTag:S$1,name:"Popover.Group"}))}let f$5=React.createContext(null);function ae(){let p=React.useContext(f$5),l=React.useRef([]),n=o$d(o=>(l.current.push(o),p&&p.register(o),()=>e(o))),e=o$d(o=>{let t=l.current.indexOf(o);t!==-1&&l.current.splice(t,1),p&&p.unregister(o);}),a=React.useMemo(()=>({register:n,unregister:e,portals:l}),[n,e,l]);return [l,React.useMemo(()=>function({children:t}){return React.createElement(f$5.Provider,{value:a},t)},[a])]}let D=D$1(N$1),I=D$1(j$1);Object.assign(D,{Group:I});
64917
64917
 
64918
- let d$e=React.createContext(null);function f$4(){let r=React.useContext(d$e);if(r===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,f$4),t}return r}function M$3(){let[r,t]=React.useState([]);return [r.length>0?r.join(" "):void 0,React.useMemo(()=>function(e){let i=o$d(s=>(t(o=>[...o,s]),()=>t(o=>{let p=o.slice(),c=p.indexOf(s);return c!==-1&&p.splice(c,1),p}))),n=React.useMemo(()=>({register:i,slot:e.slot,name:e.name,props:e.props}),[i,e.slot,e.name,e.props]);return React.createElement(d$e.Provider,{value:n},e.children)},[t])]}let S="p";function h$1(r,t){let a=I$2(),{id:e=`headlessui-description-${a}`,...i}=r,n=f$4(),s=y$3(t);l$f(()=>n.register(e),[e,n.register]);let o={ref:s,...n.props,id:e};return X$2({ourProps:o,theirProps:i,slot:n.slot||{},defaultTag:S,name:n.name||"Description"})}let y$2=D$1(h$1),b$5=Object.assign(y$2,{});
64918
+ let d$e=React.createContext(null);function f$4(){let r=React.useContext(d$e);if(r===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,f$4),t}return r}function M$3(){let[r,t]=React.useState([]);return [r.length>0?r.join(" "):void 0,React.useMemo(()=>function(e){let i=o$d(s=>(t(o=>[...o,s]),()=>t(o=>{let p=o.slice(),c=p.indexOf(s);return c!==-1&&p.splice(c,1),p}))),n=React.useMemo(()=>({register:i,slot:e.slot,name:e.name,props:e.props}),[i,e.slot,e.name,e.props]);return React.createElement(d$e.Provider,{value:n},e.children)},[t])]}let S="p";function h$1(r,t){let a=I$2(),{id:e=`headlessui-description-${a}`,...i}=r,n=f$4(),s=y$3(t);l$f(()=>n.register(e),[e,n.register]);let o={ref:s,...n.props,id:e};return X$3({ourProps:o,theirProps:i,slot:n.slot||{},defaultTag:S,name:n.name||"Description"})}let y$2=D$1(h$1),b$5=Object.assign(y$2,{});
64919
64919
 
64920
64920
  function j({defaultContainers:t=[],portals:r,mainTreeNodeRef:u}={}){var c;let o=React.useRef((c=u==null?void 0:u.current)!=null?c:null),l=n$a(o),f=o$d(()=>{var i;let n=[];for(let e of t)e!==null&&(e instanceof HTMLElement?n.push(e):"current"in e&&e.current instanceof HTMLElement&&n.push(e.current));if(r!=null&&r.current)for(let e of r.current)n.push(e);for(let e of (i=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?i:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&e.id!=="headlessui-portal-root"&&(e.contains(o.current)||n.some(T=>e.contains(T))||n.push(e));return n});return {resolveContainers:f,contains:o$d(n=>f().some(i=>i.contains(n))),mainTreeNodeRef:o,MainTreeNode:React.useMemo(()=>function(){return u!=null?null:React.createElement(c$f,{features:p$7.Hidden,ref:o})},[o,u])}}function y$1(){let t=React.useRef(null);return {mainTreeNodeRef:t,MainTreeNode:React.useMemo(()=>function(){return React.createElement(c$f,{features:p$7.Hidden,ref:t})},[t])}}
64921
64921
 
64922
64922
  var t$5;let a$c=(t$5=React.startTransition)!=null?t$5:function(i){i();};
64923
64923
 
64924
- var q$2=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(q$2||{}),z$1=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(z$1||{});let Q={[0]:e=>({...e,disclosureState:u$6(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},k$2=React.createContext(null);k$2.displayName="DisclosureContext";function M$2(e){let n=React.useContext(k$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,M$2),o}return n}let v$2=React.createContext(null);v$2.displayName="DisclosureAPIContext";function w$2(e){let n=React.useContext(v$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,w$2),o}return n}let H$1=React.createContext(null);H$1.displayName="DisclosurePanelContext";function V(){return React.useContext(H$1)}function Y$1(e,n){return u$6(n.type,Q,e,n)}let Z$1=React.Fragment;function ee$1(e,n){let{defaultOpen:o=!1,...u}=e,T=React.useRef(null),l=y$3(n,T$1(a=>{T.current=a;},e.as===void 0||e.as===React.Fragment)),t=React.useRef(null),f=React.useRef(null),s=React.useReducer(Y$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:f,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:i,buttonId:c},D]=s,d=o$d(a=>{D({type:1});let r=e$2(T);if(!r||!c)return;let p=(()=>a?a instanceof HTMLElement?a:a.current instanceof HTMLElement?a.current:r.getElementById(c):r.getElementById(c))();p==null||p.focus();}),P=React.useMemo(()=>({close:d}),[d]),b=React.useMemo(()=>({open:i===0,close:d}),[i,d]),y={ref:l};return React.createElement(k$2.Provider,{value:s},React.createElement(v$2.Provider,{value:P},React.createElement(c$e,{value:u$6(i,{[0]:d$f.Open,[1]:d$f.Closed})},X$2({ourProps:y,theirProps:u,slot:b,defaultTag:Z$1,name:"Disclosure"}))))}let te$1="button";function ne$1(e,n){let o=I$2(),{id:u=`headlessui-disclosure-button-${o}`,...T}=e,[l,t]=M$2("Disclosure.Button"),f=V(),s=f===null?!1:f===l.panelId,i=React.useRef(null),c=y$3(i,n,s?null:l.buttonRef);React.useEffect(()=>{if(!s)return t({type:2,buttonId:u}),()=>{t({type:2,buttonId:null});}},[u,t,s]);let D=o$d(r=>{var p;if(s){if(l.disclosureState===1)return;switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),t({type:0}),(p=l.buttonRef.current)==null||p.focus();break}}else switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),t({type:0});break}}),d=o$d(r=>{switch(r.key){case o$a.Space:r.preventDefault();break}}),P=o$d(r=>{var p;r$d(r.currentTarget)||e.disabled||(s?(t({type:0}),(p=l.buttonRef.current)==null||p.focus()):t({type:0}));}),b=React.useMemo(()=>({open:l.disclosureState===0}),[l]),y=s$d(e,i),a=s?{ref:c,type:y,onKeyDown:D,onClick:P}:{ref:c,id:u,type:y,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,onKeyDown:D,onKeyUp:d,onClick:P};return X$2({ourProps:a,theirProps:T,slot:b,defaultTag:te$1,name:"Disclosure.Button"})}let le="div",oe$1=S$2.RenderStrategy|S$2.Static;function re$2(e,n){let o=I$2(),{id:u=`headlessui-disclosure-panel-${o}`,...T}=e,[l,t]=M$2("Disclosure.Panel"),{close:f}=w$2("Disclosure.Panel"),s=y$3(n,l.panelRef,P=>{a$c(()=>t({type:P?4:5}));});React.useEffect(()=>(t({type:3,panelId:u}),()=>{t({type:3,panelId:null});}),[u,t]);let i=C$2(),c=(()=>i!==null?(i&d$f.Open)===d$f.Open:l.disclosureState===0)(),D=React.useMemo(()=>({open:l.disclosureState===0,close:f}),[l,f]),d={ref:s,id:u};return React.createElement(H$1.Provider,{value:l.panelId},X$2({ourProps:d,theirProps:T,slot:D,defaultTag:le,features:oe$1,visible:c,name:"Disclosure.Panel"}))}let se=D$1(ee$1),ue$2=D$1(ne$1),ie$1=D$1(re$2),ve$1=Object.assign(se,{Button:ue$2,Panel:ie$1});
64924
+ var q$2=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(q$2||{}),z$1=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(z$1||{});let Q={[0]:e=>({...e,disclosureState:u$6(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},k$2=React.createContext(null);k$2.displayName="DisclosureContext";function M$2(e){let n=React.useContext(k$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,M$2),o}return n}let v$2=React.createContext(null);v$2.displayName="DisclosureAPIContext";function w$2(e){let n=React.useContext(v$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,w$2),o}return n}let H$1=React.createContext(null);H$1.displayName="DisclosurePanelContext";function V(){return React.useContext(H$1)}function Y$1(e,n){return u$6(n.type,Q,e,n)}let Z$1=React.Fragment;function ee$1(e,n){let{defaultOpen:o=!1,...u}=e,T=React.useRef(null),l=y$3(n,T$1(a=>{T.current=a;},e.as===void 0||e.as===React.Fragment)),t=React.useRef(null),f=React.useRef(null),s=React.useReducer(Y$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:f,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:i,buttonId:c},D]=s,d=o$d(a=>{D({type:1});let r=e$2(T);if(!r||!c)return;let p=(()=>a?a instanceof HTMLElement?a:a.current instanceof HTMLElement?a.current:r.getElementById(c):r.getElementById(c))();p==null||p.focus();}),P=React.useMemo(()=>({close:d}),[d]),b=React.useMemo(()=>({open:i===0,close:d}),[i,d]),y={ref:l};return React.createElement(k$2.Provider,{value:s},React.createElement(v$2.Provider,{value:P},React.createElement(c$e,{value:u$6(i,{[0]:d$f.Open,[1]:d$f.Closed})},X$3({ourProps:y,theirProps:u,slot:b,defaultTag:Z$1,name:"Disclosure"}))))}let te$1="button";function ne$1(e,n){let o=I$2(),{id:u=`headlessui-disclosure-button-${o}`,...T}=e,[l,t]=M$2("Disclosure.Button"),f=V(),s=f===null?!1:f===l.panelId,i=React.useRef(null),c=y$3(i,n,s?null:l.buttonRef);React.useEffect(()=>{if(!s)return t({type:2,buttonId:u}),()=>{t({type:2,buttonId:null});}},[u,t,s]);let D=o$d(r=>{var p;if(s){if(l.disclosureState===1)return;switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),t({type:0}),(p=l.buttonRef.current)==null||p.focus();break}}else switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),t({type:0});break}}),d=o$d(r=>{switch(r.key){case o$a.Space:r.preventDefault();break}}),P=o$d(r=>{var p;r$d(r.currentTarget)||e.disabled||(s?(t({type:0}),(p=l.buttonRef.current)==null||p.focus()):t({type:0}));}),b=React.useMemo(()=>({open:l.disclosureState===0}),[l]),y=s$d(e,i),a=s?{ref:c,type:y,onKeyDown:D,onClick:P}:{ref:c,id:u,type:y,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,onKeyDown:D,onKeyUp:d,onClick:P};return X$3({ourProps:a,theirProps:T,slot:b,defaultTag:te$1,name:"Disclosure.Button"})}let le="div",oe$1=S$2.RenderStrategy|S$2.Static;function re$2(e,n){let o=I$2(),{id:u=`headlessui-disclosure-panel-${o}`,...T}=e,[l,t]=M$2("Disclosure.Panel"),{close:f}=w$2("Disclosure.Panel"),s=y$3(n,l.panelRef,P=>{a$c(()=>t({type:P?4:5}));});React.useEffect(()=>(t({type:3,panelId:u}),()=>{t({type:3,panelId:null});}),[u,t]);let i=C$2(),c=(()=>i!==null?(i&d$f.Open)===d$f.Open:l.disclosureState===0)(),D=React.useMemo(()=>({open:l.disclosureState===0,close:f}),[l,f]),d={ref:s,id:u};return React.createElement(H$1.Provider,{value:l.panelId},X$3({ourProps:d,theirProps:T,slot:D,defaultTag:le,features:oe$1,visible:c,name:"Disclosure.Panel"}))}let se=D$1(ee$1),ue$2=D$1(ne$1),ie$1=D$1(re$2),ve$1=Object.assign(se,{Button:ue$2,Panel:ie$1});
64925
64925
 
64926
64926
  let a$b=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o$9(e){var r,i;let n=(r=e.innerText)!=null?r:"",t=e.cloneNode(!0);if(!(t instanceof HTMLElement))return n;let u=!1;for(let f of t.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))f.remove(),u=!0;let l=u?(i=t.innerText)!=null?i:"":n;return a$b.test(l)&&(l=l.replace(a$b,"")),l}function g$6(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let u=t.split(" ").map(l=>{let r=document.getElementById(l);if(r){let i=r.getAttribute("aria-label");return typeof i=="string"?i.trim():o$9(r).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return o$9(e).trim()}
64927
64927
 
64928
64928
  function b$4(c){let t=React.useRef(""),r=React.useRef("");return o$d(()=>{let e=c.current;if(!e)return "";let u=e.innerText;if(t.current===u)return r.current;let n=g$6(e).trim().toLowerCase();return t.current=u,r.current=n,n})}
64929
64929
 
64930
- var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$1=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$1||{}),Ge$3=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$3||{}),Ne$2=(i=>(i[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterOption=5]="RegisterOption",i[i.UnregisterOption=6]="UnregisterOption",i[i.RegisterLabel=7]="RegisterLabel",i))(Ne$2||{});function z(e,a=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=I$1(a(e.options.slice()),t=>t.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let je$1={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let a=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(l=>n(l.dataRef.current.value));return r!==-1&&(a=r),{...e,listboxState:0,activeOptionIndex:a}},[2](e,a){var l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=z(e),r=x$1(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J$1=React.createContext(null);J$1.displayName="ListboxActionsContext";function _(e){let a=React.useContext(J$1);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_),n}return a}let q$1=React.createContext(null);q$1.displayName="ListboxDataContext";function U(e){let a=React.useContext(q$1);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,U),n}return a}function Ve$1(e,a){return u$6(a.type,je$1,e,a)}let Ke$1=React.Fragment;function Qe$1(e,a){let{value:n,defaultValue:r,form:l,name:t,onChange:p,by:u=(s,c)=>s===c,disabled:i=!1,horizontal:b=!1,multiple:R=!1,...m}=e;const P=b?"horizontal":"vertical";let S=y$3(a),[L=R?[]:void 0,y]=T(n,p,r),[T$1,o]=React.useReducer(Ve$1,{dataRef:React.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=React.useRef({static:!1,hold:!1}),E=React.useRef(null),B=React.useRef(null),W=React.useRef(null),C=o$d(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React.useCallback(s=>u$6(d.mode,{[1]:()=>L.some(c=>C(c,s)),[0]:()=>C(L,s)}),[L]),d=React.useMemo(()=>({...T$1,value:L,disabled:i,mode:R?1:0,orientation:P,compare:C,isSelected:A,optionsPropsRef:x,labelRef:E,buttonRef:B,optionsRef:W}),[L,i,R,T$1]);l$f(()=>{T$1.dataRef.current=d;},[d]),h$2([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$3(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React.useMemo(()=>({open:d.listboxState===0,disabled:i,value:L}),[d,i,L]),ie=o$d(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$d(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:a$e.Specific,id:c});}}),ae=o$d(()=>o({type:0})),le=o$d(()=>o({type:1})),se=o$d((s,c,O)=>s===a$e.Specific?o({type:2,focus:a$e.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$d((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$d(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$d(s=>u$6(d.mode,{[0](){return y==null?void 0:y(s)},[1](){let c=d.value.slice(),O=c.findIndex(F=>C(F,s));return O===-1?c.push(s):c.splice(O,1),y==null?void 0:y(c)}})),de=o$d(s=>o({type:3,value:s})),ce=o$d(()=>o({type:4})),fe=React.useMemo(()=>({onChange:X,registerOption:pe,registerLabel:ue,goToOption:se,closeListbox:le,openListbox:ae,selectActiveOption:re,selectOption:ie,search:de,clearSearch:ce}),[]),Te={ref:S},G=React.useRef(null),be=p$9();return React.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{y==null||y(r);});},[G,y]),React.createElement(J$1.Provider,{value:fe},React.createElement(q$1.Provider,{value:d},React.createElement(c$e,{value:u$6(d.listboxState,{[0]:d$f.Open,[1]:d$f.Closed})},t!=null&&L!=null&&e$1({[t]:L}).map(([s,c],O)=>React.createElement(c$f,{features:p$7.Hidden,ref:O===0?F=>{var Y;G.current=(Y=F==null?void 0:F.closest("form"))!=null?Y:null;}:void 0,...R$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),X$2({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$1,name:"Listbox"}))))}let We$1="button";function Xe$1(e,a){var y;let n=I$2(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=U("Listbox.Button"),p=_("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$9(),b=o$d(T=>{switch(T.key){case o$a.Space:case o$a.Enter:case o$a.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.First);});break;case o$a.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.Last);});break}}),R=o$d(T=>{switch(T.key){case o$a.Space:T.preventDefault();break}}),m=o$d(T=>{if(r$d(T.currentTarget))return T.preventDefault();t.listboxState===0?(p.closeListbox(),i.nextFrame(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.focus({preventScroll:!0})})):(T.preventDefault(),p.openListbox());}),P=i$f(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),L={ref:u,id:r,type:s$d(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(y=t.optionsRef.current)==null?void 0:y.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return X$2({ourProps:L,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$1="label";function ze$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=U("Listbox.Label"),p=_("Listbox.Label"),u=y$3(t.labelRef,a);l$f(()=>p.registerLabel(r),[r]);let i=o$d(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return X$2({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$1,name:"Listbox.Label"})}let Je$1="ul",qe$1=S$2.RenderStrategy|S$2.Static;function Ye$1(e,a){var T;let n=I$2(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=U("Listbox.Options"),p=_("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$9(),b=p$9(),R=C$2(),m=(()=>R!==null?(R&d$f.Open)===d$f.Open:t.listboxState===0)();React.useEffect(()=>{var x;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((x=e$2(o))==null?void 0:x.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$d(o=>{switch(b.dispose(),o.key){case o$a.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$a.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:x}=t.options[t.activeOptionIndex];p.onChange(x.current.value);}t.mode===0&&(p.closeListbox(),o$e().nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}));break;case u$6(t.orientation,{vertical:o$a.ArrowDown,horizontal:o$a.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Next);case u$6(t.orientation,{vertical:o$a.ArrowUp,horizontal:o$a.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Previous);case o$a.Home:case o$a.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.First);case o$a.End:case o$a.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Last);case o$a.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$a.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$f(()=>{var o,x,E;return (E=(o=t.labelRef.current)==null?void 0:o.id)!=null?E:(x=t.buttonRef.current)==null?void 0:x.id},[t.labelRef.current,t.buttonRef.current]),L=React.useMemo(()=>({open:t.listboxState===0}),[t]),y={"aria-activedescendant":t.activeOptionIndex===null||(T=t.options[t.activeOptionIndex])==null?void 0:T.id,"aria-multiselectable":t.mode===1?!0:void 0,"aria-labelledby":S,"aria-orientation":t.orientation,id:r,onKeyDown:P,role:"listbox",tabIndex:0,ref:u};return X$2({ourProps:y,theirProps:l,slot:L,defaultTag:Je$1,features:qe$1,visible:m,name:"Listbox.Options"})}let Ze$1="li";function et$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=U("Listbox.Option"),i=_("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React.useRef(null),P=b$4(m),S=s$g({disabled:l,value:t,domRef:m,get textValue(){return P()}}),L=y$3(a,m);l$f(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$e();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$f(()=>i.registerOption(r,S),[S,r]);let y=o$d(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$e().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$d(()=>{if(l)return i.goToOption(a$e.Nothing);i.goToOption(a$e.Specific,r);}),o=u$4(),x=o$d(A=>o.update(A)),E=o$d(A=>{o.wasMoved(A)&&(l||b||i.goToOption(a$e.Specific,r,0));}),B=o$d(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(a$e.Nothing));}),W=React.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return X$2({ourProps:{id:r,ref:L,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:x,onMouseEnter:x,onPointerMove:E,onMouseMove:E,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$1,name:"Listbox.Option"})}let tt$1=D$1(Qe$1),ot$1=D$1(Xe$1),nt=D$1(ze$1),it=D$1(Ye$1),rt$1=D$1(et$1),Nt=Object.assign(tt$1,{Button:ot$1,Label:nt,Options:it,Option:rt$1});
64930
+ var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$1=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$1||{}),Ge$2=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$2||{}),Ne$2=(i=>(i[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterOption=5]="RegisterOption",i[i.UnregisterOption=6]="UnregisterOption",i[i.RegisterLabel=7]="RegisterLabel",i))(Ne$2||{});function z(e,a=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=I$1(a(e.options.slice()),t=>t.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let je$1={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let a=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(l=>n(l.dataRef.current.value));return r!==-1&&(a=r),{...e,listboxState:0,activeOptionIndex:a}},[2](e,a){var l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=z(e),r=x$1(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J=React.createContext(null);J.displayName="ListboxActionsContext";function _(e){let a=React.useContext(J);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_),n}return a}let q$1=React.createContext(null);q$1.displayName="ListboxDataContext";function U(e){let a=React.useContext(q$1);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,U),n}return a}function Ve$1(e,a){return u$6(a.type,je$1,e,a)}let Ke$1=React.Fragment;function Qe$1(e,a){let{value:n,defaultValue:r,form:l,name:t,onChange:p,by:u=(s,c)=>s===c,disabled:i=!1,horizontal:b=!1,multiple:R=!1,...m}=e;const P=b?"horizontal":"vertical";let S=y$3(a),[L=R?[]:void 0,y]=T(n,p,r),[T$1,o]=React.useReducer(Ve$1,{dataRef:React.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=React.useRef({static:!1,hold:!1}),E=React.useRef(null),B=React.useRef(null),W=React.useRef(null),C=o$d(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React.useCallback(s=>u$6(d.mode,{[1]:()=>L.some(c=>C(c,s)),[0]:()=>C(L,s)}),[L]),d=React.useMemo(()=>({...T$1,value:L,disabled:i,mode:R?1:0,orientation:P,compare:C,isSelected:A,optionsPropsRef:x,labelRef:E,buttonRef:B,optionsRef:W}),[L,i,R,T$1]);l$f(()=>{T$1.dataRef.current=d;},[d]),h$2([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$3(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React.useMemo(()=>({open:d.listboxState===0,disabled:i,value:L}),[d,i,L]),ie=o$d(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$d(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:a$e.Specific,id:c});}}),ae=o$d(()=>o({type:0})),le=o$d(()=>o({type:1})),se=o$d((s,c,O)=>s===a$e.Specific?o({type:2,focus:a$e.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$d((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$d(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$d(s=>u$6(d.mode,{[0](){return y==null?void 0:y(s)},[1](){let c=d.value.slice(),O=c.findIndex(F=>C(F,s));return O===-1?c.push(s):c.splice(O,1),y==null?void 0:y(c)}})),de=o$d(s=>o({type:3,value:s})),ce=o$d(()=>o({type:4})),fe=React.useMemo(()=>({onChange:X,registerOption:pe,registerLabel:ue,goToOption:se,closeListbox:le,openListbox:ae,selectActiveOption:re,selectOption:ie,search:de,clearSearch:ce}),[]),Te={ref:S},G=React.useRef(null),be=p$9();return React.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{y==null||y(r);});},[G,y]),React.createElement(J.Provider,{value:fe},React.createElement(q$1.Provider,{value:d},React.createElement(c$e,{value:u$6(d.listboxState,{[0]:d$f.Open,[1]:d$f.Closed})},t!=null&&L!=null&&e$1({[t]:L}).map(([s,c],O)=>React.createElement(c$f,{features:p$7.Hidden,ref:O===0?F=>{var Y;G.current=(Y=F==null?void 0:F.closest("form"))!=null?Y:null;}:void 0,...R$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),X$3({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$1,name:"Listbox"}))))}let We$1="button";function Xe$1(e,a){var y;let n=I$2(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=U("Listbox.Button"),p=_("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$9(),b=o$d(T=>{switch(T.key){case o$a.Space:case o$a.Enter:case o$a.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.First);});break;case o$a.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.Last);});break}}),R=o$d(T=>{switch(T.key){case o$a.Space:T.preventDefault();break}}),m=o$d(T=>{if(r$d(T.currentTarget))return T.preventDefault();t.listboxState===0?(p.closeListbox(),i.nextFrame(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.focus({preventScroll:!0})})):(T.preventDefault(),p.openListbox());}),P=i$f(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),L={ref:u,id:r,type:s$d(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(y=t.optionsRef.current)==null?void 0:y.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return X$3({ourProps:L,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$1="label";function ze$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=U("Listbox.Label"),p=_("Listbox.Label"),u=y$3(t.labelRef,a);l$f(()=>p.registerLabel(r),[r]);let i=o$d(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return X$3({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$1,name:"Listbox.Label"})}let Je$1="ul",qe$2=S$2.RenderStrategy|S$2.Static;function Ye$1(e,a){var T;let n=I$2(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=U("Listbox.Options"),p=_("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$9(),b=p$9(),R=C$2(),m=(()=>R!==null?(R&d$f.Open)===d$f.Open:t.listboxState===0)();React.useEffect(()=>{var x;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((x=e$2(o))==null?void 0:x.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$d(o=>{switch(b.dispose(),o.key){case o$a.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$a.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:x}=t.options[t.activeOptionIndex];p.onChange(x.current.value);}t.mode===0&&(p.closeListbox(),o$e().nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}));break;case u$6(t.orientation,{vertical:o$a.ArrowDown,horizontal:o$a.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Next);case u$6(t.orientation,{vertical:o$a.ArrowUp,horizontal:o$a.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Previous);case o$a.Home:case o$a.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.First);case o$a.End:case o$a.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Last);case o$a.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$a.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$f(()=>{var o,x,E;return (E=(o=t.labelRef.current)==null?void 0:o.id)!=null?E:(x=t.buttonRef.current)==null?void 0:x.id},[t.labelRef.current,t.buttonRef.current]),L=React.useMemo(()=>({open:t.listboxState===0}),[t]),y={"aria-activedescendant":t.activeOptionIndex===null||(T=t.options[t.activeOptionIndex])==null?void 0:T.id,"aria-multiselectable":t.mode===1?!0:void 0,"aria-labelledby":S,"aria-orientation":t.orientation,id:r,onKeyDown:P,role:"listbox",tabIndex:0,ref:u};return X$3({ourProps:y,theirProps:l,slot:L,defaultTag:Je$1,features:qe$2,visible:m,name:"Listbox.Options"})}let Ze$1="li";function et$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=U("Listbox.Option"),i=_("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React.useRef(null),P=b$4(m),S=s$g({disabled:l,value:t,domRef:m,get textValue(){return P()}}),L=y$3(a,m);l$f(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$e();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$f(()=>i.registerOption(r,S),[S,r]);let y=o$d(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$e().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$d(()=>{if(l)return i.goToOption(a$e.Nothing);i.goToOption(a$e.Specific,r);}),o=u$4(),x=o$d(A=>o.update(A)),E=o$d(A=>{o.wasMoved(A)&&(l||b||i.goToOption(a$e.Specific,r,0));}),B=o$d(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(a$e.Nothing));}),W=React.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return X$3({ourProps:{id:r,ref:L,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:x,onMouseEnter:x,onPointerMove:E,onMouseMove:E,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$1,name:"Listbox.Option"})}let tt$1=D$1(Qe$1),ot$1=D$1(Xe$1),nt=D$1(ze$1),it=D$1(Ye$1),rt$1=D$1(et$1),Nt=Object.assign(tt$1,{Button:ot$1,Label:nt,Options:it,Option:rt$1});
64931
64931
 
64932
- var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(He||{});let _e$1={[0]:t=>{let o={...t,popoverState:u$6(t.popoverState,{[0]:1,[1]:0})};return o.popoverState===0&&(o.__demoMode=!1),o},[1](t){return t.popoverState===1?t:{...t,popoverState:1}},[2](t,o){return t.button===o.button?t:{...t,button:o.button}},[3](t,o){return t.buttonId===o.buttonId?t:{...t,buttonId:o.buttonId}},[4](t,o){return t.panel===o.panel?t:{...t,panel:o.panel}},[5](t,o){return t.panelId===o.panelId?t:{...t,panelId:o.panelId}}},ue$1=React.createContext(null);ue$1.displayName="PopoverContext";function oe(t){let o=React.useContext(ue$1);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,oe),u}return o}let ie=React.createContext(null);ie.displayName="PopoverAPIContext";function fe$1(t){let o=React.useContext(ie);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,fe$1),u}return o}let Pe$2=React.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React.useContext(Pe$2)}let re$1=React.createContext(null);re$1.displayName="PopoverPanelContext";function Ge$2(){return React.useContext(re$1)}function Ne$1(t,o){return u$6(o.type,_e$1,t,o)}let ke="div";function we$1(t,o){var D;let{__demoMode:u=!1,...R}=t,O=React.useRef(null),n=y$3(o,T$1(l=>{O.current=l;})),e=React.useRef([]),v=React.useReducer(Ne$1,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React.createRef(),afterPanelSentinel:React.createRef()}),[{popoverState:P,button:s,buttonId:I,panel:p,panelId:T,beforePanelSentinel:m,afterPanelSentinel:S},i]=v,a=n$a((D=O.current)!=null?D:s),E$1=React.useMemo(()=>{if(!s||!p)return !1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(s))^Number(K==null?void 0:K.contains(p)))return !0;let l=f$9(),F=l.indexOf(s),q=(F+l.length-1)%l.length,W=(F+1)%l.length,z=l[q],be=l[W];return !p.contains(z)&&!p.contains(be)},[s,p]),C=s$g(I),H=s$g(T),x=React.useMemo(()=>({buttonId:C,panelId:H,close:()=>i({type:1})}),[C,H,i]),M=Ee$1(),h=M==null?void 0:M.registerPopover,f=o$d(()=>{var l;return (l=M==null?void 0:M.isFocusWithinPopoverGroup())!=null?l:(a==null?void 0:a.activeElement)&&((s==null?void 0:s.contains(a.activeElement))||(p==null?void 0:p.contains(a.activeElement)))});React.useEffect(()=>h==null?void 0:h(x),[h,x]);let[y,b]=ae(),d=j({mainTreeNodeRef:M==null?void 0:M.mainTreeNodeRef,portals:y,defaultContainers:[s,p]});E(a==null?void 0:a.defaultView,"focus",l=>{var F,q,W,z;l.target!==window&&l.target instanceof HTMLElement&&P===0&&(f()||s&&p&&(d.contains(l.target)||(q=(F=m.current)==null?void 0:F.contains)!=null&&q.call(F,l.target)||(z=(W=S.current)==null?void 0:W.contains)!=null&&z.call(W,l.target)||i({type:1})));},!0),h$2(d.resolveContainers,(l,F)=>{i({type:1}),h$3(F,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},P===0);let L=o$d(l=>{i({type:1});let F=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();F==null||F.focus();}),r=React.useMemo(()=>({close:L,isPortalled:E$1}),[L,E$1]),c=React.useMemo(()=>({open:P===0,close:L}),[P,L]),B={ref:n};return React.createElement(re$1.Provider,{value:null},React.createElement(ue$1.Provider,{value:v},React.createElement(ie.Provider,{value:r},React.createElement(c$e,{value:u$6(P,{[0]:d$f.Open,[1]:d$f.Closed})},React.createElement(b,null,X$2({ourProps:B,theirProps:R,slot:c,defaultTag:ke,name:"Popover"}),React.createElement(d.MainTreeNode,null))))))}let Ue="button";function We(t,o){let u=I$2(),{id:R=`headlessui-popover-button-${u}`,...O$1}=t,[n,e]=oe("Popover.Button"),{isPortalled:v}=fe$1("Popover.Button"),P=React.useRef(null),s=`headlessui-focus-sentinel-${I$2()}`,I=Ee$1(),p=I==null?void 0:I.closeOthers,m=Ge$2()!==null;React.useEffect(()=>{if(!m)return e({type:3,buttonId:R}),()=>{e({type:3,buttonId:null});}},[m,R,e]);let[S]=React.useState(()=>Symbol()),i=y$3(P,o,m?null:r=>{if(r)n.buttons.current.push(S);else {let c=n.buttons.current.indexOf(S);c!==-1&&n.buttons.current.splice(c,1);}n.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),r&&e({type:2,button:r});}),a=y$3(P,o),E=n$a(P),C=o$d(r=>{var c,B,D;if(m){if(n.popoverState===1)return;switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),(B=(c=r.target).click)==null||B.call(c),e({type:1}),(D=n.button)==null||D.focus();break}}else switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0});break;case o$a.Escape:if(n.popoverState!==0)return p==null?void 0:p(n.buttonId);if(!P.current||E!=null&&E.activeElement&&!P.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),H=o$d(r=>{m||r.key===o$a.Space&&r.preventDefault();}),x=o$d(r=>{var c,B;r$d(r.currentTarget)||t.disabled||(m?(e({type:1}),(c=n.button)==null||c.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0}),(B=n.button)==null||B.focus()));}),M=o$d(r=>{r.preventDefault(),r.stopPropagation();}),h=n.popoverState===0,f=React.useMemo(()=>({open:h}),[h]),y=s$d(t,P),b=m?{ref:a,type:y,onKeyDown:C,onClick:x}:{ref:i,id:n.buttonId,type:y,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:C,onKeyUp:H,onClick:x,onMouseDown:M},d=n$9(),L=o$d(()=>{let r=n.panel;if(!r)return;function c(){u$6(d.current,{[s$b.Forwards]:()=>O(r,M$4.First),[s$b.Backwards]:()=>O(r,M$4.Last)})===N$3.Error&&O(f$9().filter(D=>D.dataset.headlessuiFocusGuard!=="true"),u$6(d.current,{[s$b.Forwards]:M$4.Next,[s$b.Backwards]:M$4.Previous}),{relativeTo:n.button});}c();});return React.createElement(React.Fragment,null,X$2({ourProps:b,theirProps:O$1,slot:f,defaultTag:Ue,name:"Popover.Button"}),h&&!m&&v&&React.createElement(c$f,{id:s,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}))}let Ke="div",je=S$2.RenderStrategy|S$2.Static;function Ve(t,o){let u=I$2(),{id:R=`headlessui-popover-overlay-${u}`,...O}=t,[{popoverState:n},e]=oe("Popover.Overlay"),v=y$3(o),P=C$2(),s=(()=>P!==null?(P&d$f.Open)===d$f.Open:n===0)(),I=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e({type:1});}),p=React.useMemo(()=>({open:n===0}),[n]);return X$2({ourProps:{ref:v,id:R,"aria-hidden":!0,onClick:I},theirProps:O,slot:p,defaultTag:Ke,features:je,visible:s,name:"Popover.Overlay"})}let $e="div",Je=S$2.RenderStrategy|S$2.Static;function Xe(t,o){let u=I$2(),{id:R=`headlessui-popover-panel-${u}`,focus:O$1=!1,...n}=t,[e,v]=oe("Popover.Panel"),{close:P,isPortalled:s}=fe$1("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$2()}`,p=`headlessui-focus-sentinel-after-${I$2()}`,T=React.useRef(null),m=y$3(T,o,f=>{v({type:4,panel:f});}),S=n$a(T);l$f(()=>(v({type:5,panelId:R}),()=>{v({type:5,panelId:null});}),[R,v]);let i=C$2(),a=(()=>i!==null?(i&d$f.Open)===d$f.Open:e.popoverState===0)(),E=o$d(f=>{var y;switch(f.key){case o$a.Escape:if(e.popoverState!==0||!T.current||S!=null&&S.activeElement&&!T.current.contains(S.activeElement))return;f.preventDefault(),f.stopPropagation(),v({type:1}),(y=e.button)==null||y.focus();break}});React.useEffect(()=>{var f;t.static||e.popoverState===1&&((f=t.unmount)==null||f)&&v({type:4,panel:null});},[e.popoverState,t.unmount,t.static,v]),React.useEffect(()=>{if(e.__demoMode||!O$1||e.popoverState!==0||!T.current)return;let f=S==null?void 0:S.activeElement;T.current.contains(f)||O(T.current,M$4.First);},[e.__demoMode,O$1,T,e.popoverState]);let C=React.useMemo(()=>({open:e.popoverState===0,close:P}),[e,P]),H={ref:m,id:R,onKeyDown:E,onBlur:O$1&&e.popoverState===0?f=>{var b,d,L,r,c;let y=f.relatedTarget;y&&T.current&&((b=T.current)!=null&&b.contains(y)||(v({type:1}),((L=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&L.call(d,y)||(c=(r=e.afterPanelSentinel.current)==null?void 0:r.contains)!=null&&c.call(r,y))&&y.focus({preventScroll:!0})));}:void 0,tabIndex:-1},x=n$9(),M=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var d;O(f,M$4.First)===N$3.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$b.Backwards]:()=>{var b;(b=e.button)==null||b.focus({preventScroll:!0});}});}y();}),h=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var B;if(!e.button)return;let b=f$9(),d=b.indexOf(e.button),L=b.slice(0,d+1),c=[...b.slice(d+1),...L];for(let D of c.slice())if(D.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(D)){let l=c.indexOf(D);l!==-1&&c.splice(l,1);}O(c,M$4.First,{sorted:!1});},[s$b.Backwards]:()=>{var d;O(f,M$4.Previous)===N$3.Error&&((d=e.button)==null||d.focus());}});}y();});return React.createElement(re$1.Provider,{value:R},a&&s&&React.createElement(c$f,{id:I,ref:e.beforePanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:M}),X$2({ourProps:H,theirProps:n,slot:C,defaultTag:$e,features:Je,visible:a,name:"Popover.Panel"}),a&&s&&React.createElement(c$f,{id:p,ref:e.afterPanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}))}let Ye="div";function qe(t,o){let u=React.useRef(null),R=y$3(u,o),[O,n]=React.useState([]),e=y$1(),v=o$d(i=>{n(a=>{let E=a.indexOf(i);if(E!==-1){let C=a.slice();return C.splice(E,1),C}return a});}),P=o$d(i=>(n(a=>[...a,i]),()=>v(i))),s=o$d(()=>{var E;let i=e$2(u);if(!i)return !1;let a=i.activeElement;return (E=u.current)!=null&&E.contains(a)?!0:O.some(C=>{var H,x;return ((H=i.getElementById(C.buttonId.current))==null?void 0:H.contains(a))||((x=i.getElementById(C.panelId.current))==null?void 0:x.contains(a))})}),I=o$d(i=>{for(let a of O)a.buttonId.current!==i&&a.close();}),p=React.useMemo(()=>({registerPopover:P,unregisterPopover:v,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[P,v,s,I,e.mainTreeNodeRef]),T=React.useMemo(()=>({}),[]),m=t,S={ref:R};return React.createElement(Pe$2.Provider,{value:p},X$2({ourProps:S,theirProps:m,slot:T,defaultTag:Ye,name:"Popover.Group"}),React.createElement(e.MainTreeNode,null))}let ze=D$1(we$1),Qe=D$1(We),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
64932
+ var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(He||{});let _e$1={[0]:t=>{let o={...t,popoverState:u$6(t.popoverState,{[0]:1,[1]:0})};return o.popoverState===0&&(o.__demoMode=!1),o},[1](t){return t.popoverState===1?t:{...t,popoverState:1}},[2](t,o){return t.button===o.button?t:{...t,button:o.button}},[3](t,o){return t.buttonId===o.buttonId?t:{...t,buttonId:o.buttonId}},[4](t,o){return t.panel===o.panel?t:{...t,panel:o.panel}},[5](t,o){return t.panelId===o.panelId?t:{...t,panelId:o.panelId}}},ue$1=React.createContext(null);ue$1.displayName="PopoverContext";function oe(t){let o=React.useContext(ue$1);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,oe),u}return o}let ie=React.createContext(null);ie.displayName="PopoverAPIContext";function fe$1(t){let o=React.useContext(ie);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,fe$1),u}return o}let Pe$2=React.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React.useContext(Pe$2)}let re$1=React.createContext(null);re$1.displayName="PopoverPanelContext";function Ge$1(){return React.useContext(re$1)}function Ne$1(t,o){return u$6(o.type,_e$1,t,o)}let ke="div";function we$1(t,o){var D;let{__demoMode:u=!1,...R}=t,O=React.useRef(null),n=y$3(o,T$1(l=>{O.current=l;})),e=React.useRef([]),v=React.useReducer(Ne$1,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React.createRef(),afterPanelSentinel:React.createRef()}),[{popoverState:P,button:s,buttonId:I,panel:p,panelId:T,beforePanelSentinel:m,afterPanelSentinel:S},i]=v,a=n$a((D=O.current)!=null?D:s),E$1=React.useMemo(()=>{if(!s||!p)return !1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(s))^Number(K==null?void 0:K.contains(p)))return !0;let l=f$9(),F=l.indexOf(s),q=(F+l.length-1)%l.length,W=(F+1)%l.length,z=l[q],be=l[W];return !p.contains(z)&&!p.contains(be)},[s,p]),C=s$g(I),H=s$g(T),x=React.useMemo(()=>({buttonId:C,panelId:H,close:()=>i({type:1})}),[C,H,i]),M=Ee$1(),h=M==null?void 0:M.registerPopover,f=o$d(()=>{var l;return (l=M==null?void 0:M.isFocusWithinPopoverGroup())!=null?l:(a==null?void 0:a.activeElement)&&((s==null?void 0:s.contains(a.activeElement))||(p==null?void 0:p.contains(a.activeElement)))});React.useEffect(()=>h==null?void 0:h(x),[h,x]);let[y,b]=ae(),d=j({mainTreeNodeRef:M==null?void 0:M.mainTreeNodeRef,portals:y,defaultContainers:[s,p]});E(a==null?void 0:a.defaultView,"focus",l=>{var F,q,W,z;l.target!==window&&l.target instanceof HTMLElement&&P===0&&(f()||s&&p&&(d.contains(l.target)||(q=(F=m.current)==null?void 0:F.contains)!=null&&q.call(F,l.target)||(z=(W=S.current)==null?void 0:W.contains)!=null&&z.call(W,l.target)||i({type:1})));},!0),h$2(d.resolveContainers,(l,F)=>{i({type:1}),h$3(F,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},P===0);let L=o$d(l=>{i({type:1});let F=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();F==null||F.focus();}),r=React.useMemo(()=>({close:L,isPortalled:E$1}),[L,E$1]),c=React.useMemo(()=>({open:P===0,close:L}),[P,L]),B={ref:n};return React.createElement(re$1.Provider,{value:null},React.createElement(ue$1.Provider,{value:v},React.createElement(ie.Provider,{value:r},React.createElement(c$e,{value:u$6(P,{[0]:d$f.Open,[1]:d$f.Closed})},React.createElement(b,null,X$3({ourProps:B,theirProps:R,slot:c,defaultTag:ke,name:"Popover"}),React.createElement(d.MainTreeNode,null))))))}let Ue="button";function We(t,o){let u=I$2(),{id:R=`headlessui-popover-button-${u}`,...O$1}=t,[n,e]=oe("Popover.Button"),{isPortalled:v}=fe$1("Popover.Button"),P=React.useRef(null),s=`headlessui-focus-sentinel-${I$2()}`,I=Ee$1(),p=I==null?void 0:I.closeOthers,m=Ge$1()!==null;React.useEffect(()=>{if(!m)return e({type:3,buttonId:R}),()=>{e({type:3,buttonId:null});}},[m,R,e]);let[S]=React.useState(()=>Symbol()),i=y$3(P,o,m?null:r=>{if(r)n.buttons.current.push(S);else {let c=n.buttons.current.indexOf(S);c!==-1&&n.buttons.current.splice(c,1);}n.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),r&&e({type:2,button:r});}),a=y$3(P,o),E=n$a(P),C=o$d(r=>{var c,B,D;if(m){if(n.popoverState===1)return;switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),(B=(c=r.target).click)==null||B.call(c),e({type:1}),(D=n.button)==null||D.focus();break}}else switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0});break;case o$a.Escape:if(n.popoverState!==0)return p==null?void 0:p(n.buttonId);if(!P.current||E!=null&&E.activeElement&&!P.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),H=o$d(r=>{m||r.key===o$a.Space&&r.preventDefault();}),x=o$d(r=>{var c,B;r$d(r.currentTarget)||t.disabled||(m?(e({type:1}),(c=n.button)==null||c.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0}),(B=n.button)==null||B.focus()));}),M=o$d(r=>{r.preventDefault(),r.stopPropagation();}),h=n.popoverState===0,f=React.useMemo(()=>({open:h}),[h]),y=s$d(t,P),b=m?{ref:a,type:y,onKeyDown:C,onClick:x}:{ref:i,id:n.buttonId,type:y,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:C,onKeyUp:H,onClick:x,onMouseDown:M},d=n$9(),L=o$d(()=>{let r=n.panel;if(!r)return;function c(){u$6(d.current,{[s$b.Forwards]:()=>O(r,M$4.First),[s$b.Backwards]:()=>O(r,M$4.Last)})===N$3.Error&&O(f$9().filter(D=>D.dataset.headlessuiFocusGuard!=="true"),u$6(d.current,{[s$b.Forwards]:M$4.Next,[s$b.Backwards]:M$4.Previous}),{relativeTo:n.button});}c();});return React.createElement(React.Fragment,null,X$3({ourProps:b,theirProps:O$1,slot:f,defaultTag:Ue,name:"Popover.Button"}),h&&!m&&v&&React.createElement(c$f,{id:s,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}))}let Ke="div",je=S$2.RenderStrategy|S$2.Static;function Ve(t,o){let u=I$2(),{id:R=`headlessui-popover-overlay-${u}`,...O}=t,[{popoverState:n},e]=oe("Popover.Overlay"),v=y$3(o),P=C$2(),s=(()=>P!==null?(P&d$f.Open)===d$f.Open:n===0)(),I=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e({type:1});}),p=React.useMemo(()=>({open:n===0}),[n]);return X$3({ourProps:{ref:v,id:R,"aria-hidden":!0,onClick:I},theirProps:O,slot:p,defaultTag:Ke,features:je,visible:s,name:"Popover.Overlay"})}let $e="div",Je=S$2.RenderStrategy|S$2.Static;function Xe(t,o){let u=I$2(),{id:R=`headlessui-popover-panel-${u}`,focus:O$1=!1,...n}=t,[e,v]=oe("Popover.Panel"),{close:P,isPortalled:s}=fe$1("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$2()}`,p=`headlessui-focus-sentinel-after-${I$2()}`,T=React.useRef(null),m=y$3(T,o,f=>{v({type:4,panel:f});}),S=n$a(T);l$f(()=>(v({type:5,panelId:R}),()=>{v({type:5,panelId:null});}),[R,v]);let i=C$2(),a=(()=>i!==null?(i&d$f.Open)===d$f.Open:e.popoverState===0)(),E=o$d(f=>{var y;switch(f.key){case o$a.Escape:if(e.popoverState!==0||!T.current||S!=null&&S.activeElement&&!T.current.contains(S.activeElement))return;f.preventDefault(),f.stopPropagation(),v({type:1}),(y=e.button)==null||y.focus();break}});React.useEffect(()=>{var f;t.static||e.popoverState===1&&((f=t.unmount)==null||f)&&v({type:4,panel:null});},[e.popoverState,t.unmount,t.static,v]),React.useEffect(()=>{if(e.__demoMode||!O$1||e.popoverState!==0||!T.current)return;let f=S==null?void 0:S.activeElement;T.current.contains(f)||O(T.current,M$4.First);},[e.__demoMode,O$1,T,e.popoverState]);let C=React.useMemo(()=>({open:e.popoverState===0,close:P}),[e,P]),H={ref:m,id:R,onKeyDown:E,onBlur:O$1&&e.popoverState===0?f=>{var b,d,L,r,c;let y=f.relatedTarget;y&&T.current&&((b=T.current)!=null&&b.contains(y)||(v({type:1}),((L=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&L.call(d,y)||(c=(r=e.afterPanelSentinel.current)==null?void 0:r.contains)!=null&&c.call(r,y))&&y.focus({preventScroll:!0})));}:void 0,tabIndex:-1},x=n$9(),M=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var d;O(f,M$4.First)===N$3.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$b.Backwards]:()=>{var b;(b=e.button)==null||b.focus({preventScroll:!0});}});}y();}),h=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var B;if(!e.button)return;let b=f$9(),d=b.indexOf(e.button),L=b.slice(0,d+1),c=[...b.slice(d+1),...L];for(let D of c.slice())if(D.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(D)){let l=c.indexOf(D);l!==-1&&c.splice(l,1);}O(c,M$4.First,{sorted:!1});},[s$b.Backwards]:()=>{var d;O(f,M$4.Previous)===N$3.Error&&((d=e.button)==null||d.focus());}});}y();});return React.createElement(re$1.Provider,{value:R},a&&s&&React.createElement(c$f,{id:I,ref:e.beforePanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:M}),X$3({ourProps:H,theirProps:n,slot:C,defaultTag:$e,features:Je,visible:a,name:"Popover.Panel"}),a&&s&&React.createElement(c$f,{id:p,ref:e.afterPanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}))}let Ye="div";function qe$1(t,o){let u=React.useRef(null),R=y$3(u,o),[O,n]=React.useState([]),e=y$1(),v=o$d(i=>{n(a=>{let E=a.indexOf(i);if(E!==-1){let C=a.slice();return C.splice(E,1),C}return a});}),P=o$d(i=>(n(a=>[...a,i]),()=>v(i))),s=o$d(()=>{var E;let i=e$2(u);if(!i)return !1;let a=i.activeElement;return (E=u.current)!=null&&E.contains(a)?!0:O.some(C=>{var H,x;return ((H=i.getElementById(C.buttonId.current))==null?void 0:H.contains(a))||((x=i.getElementById(C.panelId.current))==null?void 0:x.contains(a))})}),I=o$d(i=>{for(let a of O)a.buttonId.current!==i&&a.close();}),p=React.useMemo(()=>({registerPopover:P,unregisterPopover:v,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[P,v,s,I,e.mainTreeNodeRef]),T=React.useMemo(()=>({}),[]),m=t,S={ref:R};return React.createElement(Pe$2.Provider,{value:p},X$3({ourProps:S,theirProps:m,slot:T,defaultTag:Ye,name:"Popover.Group"}),React.createElement(e.MainTreeNode,null))}let ze=D$1(we$1),Qe=D$1(We),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe$1),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
64933
64933
 
64934
- let d$d=React.createContext(null);function u$3(){let o=React.useContext(d$d);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u$3),t}return o}function H(){let[o,t]=React.useState([]);return [o.length>0?o.join(" "):void 0,React.useMemo(()=>function(e){let s=o$d(r=>(t(l=>[...l,r]),()=>t(l=>{let n=l.slice(),p=n.indexOf(r);return p!==-1&&n.splice(p,1),n}))),a=React.useMemo(()=>({register:s,slot:e.slot,name:e.name,props:e.props}),[s,e.slot,e.name,e.props]);return React.createElement(d$d.Provider,{value:a},e.children)},[t])]}let A$1="label";function h(o,t){let i=I$2(),{id:e=`headlessui-label-${i}`,passive:s=!1,...a}=o,r=u$3(),l=y$3(t);l$f(()=>r.register(e),[e,r.register]);let n={ref:l,...r.props,id:e};return s&&("onClick"in n&&(delete n.htmlFor,delete n.onClick),"onClick"in a&&delete a.onClick),X$2({ourProps:n,theirProps:a,slot:r.slot||{},defaultTag:A$1,name:r.name||"Label"})}let v$1=D$1(h),M$1=Object.assign(v$1,{});
64934
+ let d$d=React.createContext(null);function u$3(){let o=React.useContext(d$d);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u$3),t}return o}function H(){let[o,t]=React.useState([]);return [o.length>0?o.join(" "):void 0,React.useMemo(()=>function(e){let s=o$d(r=>(t(l=>[...l,r]),()=>t(l=>{let n=l.slice(),p=n.indexOf(r);return p!==-1&&n.splice(p,1),n}))),a=React.useMemo(()=>({register:s,slot:e.slot,name:e.name,props:e.props}),[s,e.slot,e.name,e.props]);return React.createElement(d$d.Provider,{value:a},e.children)},[t])]}let A$1="label";function h(o,t){let i=I$2(),{id:e=`headlessui-label-${i}`,passive:s=!1,...a}=o,r=u$3(),l=y$3(t);l$f(()=>r.register(e),[e,r.register]);let n={ref:l,...r.props,id:e};return s&&("onClick"in n&&(delete n.htmlFor,delete n.onClick),"onClick"in a&&delete a.onClick),X$3({ourProps:n,theirProps:a,slot:r.slot||{},defaultTag:A$1,name:r.name||"Label"})}let v$1=D$1(h),M$1=Object.assign(v$1,{});
64935
64935
 
64936
- let y=React.createContext(null);y.displayName="GroupContext";let Y=React.Fragment;function Z(s){var d;let[n,p]=React.useState(null),[c,f]=H(),[r,h]=M$3(),l=React.useMemo(()=>({switch:n,setSwitch:p,labelledby:c,describedby:r}),[n,p,c,r]),T={},b=s;return React.createElement(h,{name:"Switch.Description"},React.createElement(f,{name:"Switch.Label",props:{htmlFor:(d=l.switch)==null?void 0:d.id,onClick(t){n&&(t.currentTarget.tagName==="LABEL"&&t.preventDefault(),n.click(),n.focus({preventScroll:!0}));}}},React.createElement(y.Provider,{value:l},X$2({ourProps:T,theirProps:b,defaultTag:Y,name:"Switch.Group"}))))}let ee="button";function te(s,n){let p=I$2(),{id:c=`headlessui-switch-${p}`,checked:f,defaultChecked:r=!1,onChange:h,name:l,value:T$1,form:b,...d}=s,t=React.useContext(y),u=React.useRef(null),D=y$3(u,n,t===null?null:t.setSwitch),[o,a]=T(f,h,r),S=o$d(()=>a==null?void 0:a(!o)),C=o$d(e=>{if(r$d(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$d(e=>{e.key===o$a.Space?(e.preventDefault(),S()):e.key===o$a.Enter&&p$8(e.currentTarget);}),v=o$d(e=>e.preventDefault()),G=React.useMemo(()=>({checked:o}),[o]),R={id:c,ref:D,role:"switch",type:s$d(s,u),tabIndex:0,"aria-checked":o,"aria-labelledby":t==null?void 0:t.labelledby,"aria-describedby":t==null?void 0:t.describedby,onClick:C,onKeyUp:L,onKeyPress:v},k=p$9();return React.useEffect(()=>{var w;let e=(w=u.current)==null?void 0:w.closest("form");e&&r!==void 0&&k.addEventListener(e,"reset",()=>{a(r);});},[u,a]),React.createElement(React.Fragment,null,l!=null&&o&&React.createElement(c$f,{features:p$7.Hidden,...R$1({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X$2({ourProps:R,theirProps:d,slot:G,defaultTag:ee,name:"Switch"}))}let ne=D$1(te),re=Z,Ge$1=Object.assign(ne,{Group:re,Label:M$1,Description:b$5});
64936
+ let y=React.createContext(null);y.displayName="GroupContext";let Y=React.Fragment;function Z(s){var d;let[n,p]=React.useState(null),[c,f]=H(),[r,h]=M$3(),l=React.useMemo(()=>({switch:n,setSwitch:p,labelledby:c,describedby:r}),[n,p,c,r]),T={},b=s;return React.createElement(h,{name:"Switch.Description"},React.createElement(f,{name:"Switch.Label",props:{htmlFor:(d=l.switch)==null?void 0:d.id,onClick(t){n&&(t.currentTarget.tagName==="LABEL"&&t.preventDefault(),n.click(),n.focus({preventScroll:!0}));}}},React.createElement(y.Provider,{value:l},X$3({ourProps:T,theirProps:b,defaultTag:Y,name:"Switch.Group"}))))}let ee="button";function te(s,n){let p=I$2(),{id:c=`headlessui-switch-${p}`,checked:f,defaultChecked:r=!1,onChange:h,name:l,value:T$1,form:b,...d}=s,t=React.useContext(y),u=React.useRef(null),D=y$3(u,n,t===null?null:t.setSwitch),[o,a]=T(f,h,r),S=o$d(()=>a==null?void 0:a(!o)),C=o$d(e=>{if(r$d(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$d(e=>{e.key===o$a.Space?(e.preventDefault(),S()):e.key===o$a.Enter&&p$8(e.currentTarget);}),v=o$d(e=>e.preventDefault()),G=React.useMemo(()=>({checked:o}),[o]),R={id:c,ref:D,role:"switch",type:s$d(s,u),tabIndex:0,"aria-checked":o,"aria-labelledby":t==null?void 0:t.labelledby,"aria-describedby":t==null?void 0:t.describedby,onClick:C,onKeyUp:L,onKeyPress:v},k=p$9();return React.useEffect(()=>{var w;let e=(w=u.current)==null?void 0:w.closest("form");e&&r!==void 0&&k.addEventListener(e,"reset",()=>{a(r);});},[u,a]),React.createElement(React.Fragment,null,l!=null&&o&&React.createElement(c$f,{features:p$7.Hidden,...R$1({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X$3({ourProps:R,theirProps:d,slot:G,defaultTag:ee,name:"Switch"}))}let ne=D$1(te),re=Z,Ge=Object.assign(ne,{Group:re,Label:M$1,Description:b$5});
64937
64937
 
64938
64938
  function A({onFocus:n}){let[r,o]=React.useState(!0),u=f$6();return r?React.createElement(c$f,{as:"button",type:"button",features:p$7.Focusable,onFocus:a=>{a.preventDefault();let e,i=50;function t(){if(i--<=0){e&&cancelAnimationFrame(e);return}if(n()){if(cancelAnimationFrame(e),!u.current)return;o(!1);return}e=requestAnimationFrame(t);}e=requestAnimationFrame(t);}}):null}
64939
64939
 
64940
64940
  const s$a=React__namespace.createContext(null);function a$a(){return {groups:new Map,get(n,t){var c;let e=this.groups.get(n);e||(e=new Map,this.groups.set(n,e));let l=(c=e.get(t))!=null?c:0;e.set(t,l+1);let o=Array.from(e.keys()).indexOf(t);function i(){let u=e.get(t);u>1?e.set(t,u-1):e.delete(t);}return [o,i]}}}function C$1({children:n}){let t=React__namespace.useRef(a$a());return React__namespace.createElement(s$a.Provider,{value:t},n)}function d$c(n){let t=React__namespace.useContext(s$a);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let e=f$3(),[l,o]=t.current.get(n,e);return React__namespace.useEffect(()=>o,[]),l}function f$3(){var l,o,i;let n=(i=(o=(l=React__namespace.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:l.ReactCurrentOwner)==null?void 0:o.current)!=null?i:null;if(!n)return Symbol();let t=[],e=n;for(;e;)t.push(e.index),e=e.return;return "$."+t.join(".")}
64941
64941
 
64942
- var ue=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue||{}),Te=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te||{}),de$1=(r=>(r[r.SetSelectedIndex=0]="SetSelectedIndex",r[r.RegisterTab=1]="RegisterTab",r[r.UnregisterTab=2]="UnregisterTab",r[r.RegisterPanel=3]="RegisterPanel",r[r.UnregisterPanel=4]="UnregisterPanel",r))(de$1||{});let ce={[0](e,n){var u;let t=I$1(e.tabs,T=>T.current),o=I$1(e.panels,T=>T.current),s=t.filter(T=>{var l;return !((l=T.current)!=null&&l.hasAttribute("disabled"))}),r={...e,tabs:t,panels:o};if(n.index<0||n.index>t.length-1){let T=u$6(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>u$6(Math.sign(n.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(s.length===0)return r;let l=u$6(T,{[0]:()=>t.indexOf(s[0]),[1]:()=>t.indexOf(s[s.length-1])});return {...r,selectedIndex:l===-1?e.selectedIndex:l}}let i=t.slice(0,n.index),b=[...t.slice(n.index),...i].find(T=>s.includes(T));if(!b)return r;let c=(u=t.indexOf(b))!=null?u:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...r,selectedIndex:c}},[1](e,n){var r;if(e.tabs.includes(n.tab))return e;let t=e.tabs[e.selectedIndex],o=I$1([...e.tabs,n.tab],i=>i.current),s=(r=o.indexOf(t))!=null?r:e.selectedIndex;return s===-1&&(s=e.selectedIndex),{...e,tabs:o,selectedIndex:s}},[2](e,n){return {...e,tabs:e.tabs.filter(t=>t!==n.tab)}},[3](e,n){return e.panels.includes(n.panel)?e:{...e,panels:I$1([...e.panels,n.panel],t=>t.current)}},[4](e,n){return {...e,panels:e.panels.filter(t=>t!==n.panel)}}},X$1=React.createContext(null);X$1.displayName="TabsDataContext";function M(e){let n=React.useContext(X$1);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return n}let $=React.createContext(null);$.displayName="TabsActionsContext";function q(e){let n=React.useContext($);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q),t}return n}function fe(e,n){return u$6(n.type,ce,e,n)}let be=React.Fragment;function me(e,n){let{defaultIndex:t=0,vertical:o=!1,manual:s=!1,onChange:r,selectedIndex:i=null,...R}=e;const b=o?"vertical":"horizontal",c=s?"manual":"auto";let u=i!==null,T=y$3(n),[l,d]=React.useReducer(fe,{selectedIndex:i!=null?i:t,tabs:[],panels:[]}),g=React.useMemo(()=>({selectedIndex:l.selectedIndex}),[l.selectedIndex]),m=s$g(r||(()=>{})),y=s$g(l.tabs),E=React.useMemo(()=>({orientation:b,activation:c,...l}),[b,c,l]),I=o$d(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A$1=o$d(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$d(p=>{C.current!==p&&m.current(p),u||d({type:0,index:p});}),C=s$g(u?e.selectedIndex:l.selectedIndex),N=React.useMemo(()=>({registerTab:I,registerPanel:A$1,change:L}),[]);l$f(()=>{d({type:0,index:i!=null?i:t});},[i]),l$f(()=>{if(C.current===void 0||l.tabs.length<=0)return;let p=I$1(l.tabs,a=>a.current);p.some((a,f)=>l.tabs[f]!==a)&&L(p.indexOf(l.tabs[C.current]));});let B={ref:T};return React.createElement(C$1,null,React.createElement($.Provider,{value:N},React.createElement(X$1.Provider,{value:E},E.tabs.length<=0&&React.createElement(A,{onFocus:()=>{var p,D;for(let a of y.current)if(((p=a.current)==null?void 0:p.tabIndex)===0)return (D=a.current)==null||D.focus(),!0;return !1}}),X$2({ourProps:B,theirProps:R,slot:g,defaultTag:be,name:"Tabs"}))))}let Pe$1="div";function xe(e,n){let{orientation:t,selectedIndex:o}=M("Tab.List"),s=y$3(n);return X$2({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe$1,name:"Tabs.List"})}let ge="button";function ye(e,n){var p,D;let t=I$2(),{id:o=`headlessui-tabs-tab-${t}`,...s}=e,{orientation:r,activation:i,selectedIndex:R,tabs:b,panels:c}=M("Tab"),u=q("Tab"),T=M("Tab"),l=React.useRef(null),d=y$3(l,n);l$f(()=>u.registerTab(l),[u,l]);let g=d$c("tabs"),m=b.indexOf(l);m===-1&&(m=g);let y=m===R,E=o$d(a=>{var j;let f=a();if(f===N$3.Success&&i==="auto"){let W=(j=e$2(l))==null?void 0:j.activeElement,z=T.tabs.findIndex(te=>te.current===W);z!==-1&&u.change(z);}return f}),I=o$d(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$a.Space||a.key===o$a.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$a.Home:case o$a.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.First));case o$a.End:case o$a.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.Last))}if(E(()=>u$6(r,{vertical(){return a.key===o$a.ArrowUp?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowDown?O(f,M$4.Next|M$4.WrapAround):N$3.Error},horizontal(){return a.key===o$a.ArrowLeft?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowRight?O(f,M$4.Next|M$4.WrapAround):N$3.Error}}))===N$3.Success)return a.preventDefault()}),A=React.useRef(!1),L=o$d(()=>{var a;A.current||(A.current=!0,(a=l.current)==null||a.focus({preventScroll:!0}),u.change(m),t$9(()=>{A.current=!1;}));}),C=o$d(a=>{a.preventDefault();}),N=React.useMemo(()=>({selected:y}),[y]),B={ref:d,onKeyDown:I,onMouseDown:C,onClick:L,id:o,role:"tab",type:s$d(e,l),"aria-controls":(D=(p=c[m])==null?void 0:p.current)==null?void 0:D.id,"aria-selected":y,tabIndex:y?0:-1};return X$2({ourProps:B,theirProps:s,slot:N,defaultTag:ge,name:"Tabs.Tab"})}let Ee="div";function Ae(e,n){let{selectedIndex:t}=M("Tab.Panels"),o=y$3(n),s=React.useMemo(()=>({selectedIndex:t}),[t]);return X$2({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re="div",Le=S$2.RenderStrategy|S$2.Static;function Se(e,n){var E,I,A,L;let t=I$2(),{id:o=`headlessui-tabs-panel-${t}`,tabIndex:s=0,...r}=e,{selectedIndex:i,tabs:R,panels:b}=M("Tab.Panel"),c=q("Tab.Panel"),u=React.useRef(null),T=y$3(u,n);l$f(()=>c.registerPanel(u),[c,u]);let l=d$c("panels"),d=b.indexOf(u);d===-1&&(d=l);let g=d===i,m=React.useMemo(()=>({selected:g}),[g]),y={ref:T,id:o,role:"tabpanel","aria-labelledby":(I=(E=R[d])==null?void 0:E.current)==null?void 0:I.id,tabIndex:g?s:-1};return !g&&((A=r.unmount)==null||A)&&!((L=r.static)!=null&&L)?React.createElement(c$f,{as:"span",...y}):X$2({ourProps:y,theirProps:r,slot:m,defaultTag:Re,features:Le,visible:g,name:"Tabs.Panel"})}let Ie$1=D$1(ye),De=D$1(me),Fe=D$1(xe),he=D$1(Ae),Me=D$1(Se),rt=Object.assign(Ie$1,{Group:De,List:Fe,Panels:he,Panel:Me});
64942
+ var ue=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue||{}),Te=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te||{}),de$1=(r=>(r[r.SetSelectedIndex=0]="SetSelectedIndex",r[r.RegisterTab=1]="RegisterTab",r[r.UnregisterTab=2]="UnregisterTab",r[r.RegisterPanel=3]="RegisterPanel",r[r.UnregisterPanel=4]="UnregisterPanel",r))(de$1||{});let ce={[0](e,n){var u;let t=I$1(e.tabs,T=>T.current),o=I$1(e.panels,T=>T.current),s=t.filter(T=>{var l;return !((l=T.current)!=null&&l.hasAttribute("disabled"))}),r={...e,tabs:t,panels:o};if(n.index<0||n.index>t.length-1){let T=u$6(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>u$6(Math.sign(n.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(s.length===0)return r;let l=u$6(T,{[0]:()=>t.indexOf(s[0]),[1]:()=>t.indexOf(s[s.length-1])});return {...r,selectedIndex:l===-1?e.selectedIndex:l}}let i=t.slice(0,n.index),b=[...t.slice(n.index),...i].find(T=>s.includes(T));if(!b)return r;let c=(u=t.indexOf(b))!=null?u:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...r,selectedIndex:c}},[1](e,n){var r;if(e.tabs.includes(n.tab))return e;let t=e.tabs[e.selectedIndex],o=I$1([...e.tabs,n.tab],i=>i.current),s=(r=o.indexOf(t))!=null?r:e.selectedIndex;return s===-1&&(s=e.selectedIndex),{...e,tabs:o,selectedIndex:s}},[2](e,n){return {...e,tabs:e.tabs.filter(t=>t!==n.tab)}},[3](e,n){return e.panels.includes(n.panel)?e:{...e,panels:I$1([...e.panels,n.panel],t=>t.current)}},[4](e,n){return {...e,panels:e.panels.filter(t=>t!==n.panel)}}},X$2=React.createContext(null);X$2.displayName="TabsDataContext";function M(e){let n=React.useContext(X$2);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return n}let $=React.createContext(null);$.displayName="TabsActionsContext";function q(e){let n=React.useContext($);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q),t}return n}function fe(e,n){return u$6(n.type,ce,e,n)}let be$1=React.Fragment;function me(e,n){let{defaultIndex:t=0,vertical:o=!1,manual:s=!1,onChange:r,selectedIndex:i=null,...R}=e;const b=o?"vertical":"horizontal",c=s?"manual":"auto";let u=i!==null,T=y$3(n),[l,d]=React.useReducer(fe,{selectedIndex:i!=null?i:t,tabs:[],panels:[]}),g=React.useMemo(()=>({selectedIndex:l.selectedIndex}),[l.selectedIndex]),m=s$g(r||(()=>{})),y=s$g(l.tabs),E=React.useMemo(()=>({orientation:b,activation:c,...l}),[b,c,l]),I=o$d(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A$1=o$d(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$d(p=>{C.current!==p&&m.current(p),u||d({type:0,index:p});}),C=s$g(u?e.selectedIndex:l.selectedIndex),N=React.useMemo(()=>({registerTab:I,registerPanel:A$1,change:L}),[]);l$f(()=>{d({type:0,index:i!=null?i:t});},[i]),l$f(()=>{if(C.current===void 0||l.tabs.length<=0)return;let p=I$1(l.tabs,a=>a.current);p.some((a,f)=>l.tabs[f]!==a)&&L(p.indexOf(l.tabs[C.current]));});let B={ref:T};return React.createElement(C$1,null,React.createElement($.Provider,{value:N},React.createElement(X$2.Provider,{value:E},E.tabs.length<=0&&React.createElement(A,{onFocus:()=>{var p,D;for(let a of y.current)if(((p=a.current)==null?void 0:p.tabIndex)===0)return (D=a.current)==null||D.focus(),!0;return !1}}),X$3({ourProps:B,theirProps:R,slot:g,defaultTag:be$1,name:"Tabs"}))))}let Pe$1="div";function xe(e,n){let{orientation:t,selectedIndex:o}=M("Tab.List"),s=y$3(n);return X$3({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe$1,name:"Tabs.List"})}let ge="button";function ye(e,n){var p,D;let t=I$2(),{id:o=`headlessui-tabs-tab-${t}`,...s}=e,{orientation:r,activation:i,selectedIndex:R,tabs:b,panels:c}=M("Tab"),u=q("Tab"),T=M("Tab"),l=React.useRef(null),d=y$3(l,n);l$f(()=>u.registerTab(l),[u,l]);let g=d$c("tabs"),m=b.indexOf(l);m===-1&&(m=g);let y=m===R,E=o$d(a=>{var j;let f=a();if(f===N$3.Success&&i==="auto"){let W=(j=e$2(l))==null?void 0:j.activeElement,z=T.tabs.findIndex(te=>te.current===W);z!==-1&&u.change(z);}return f}),I=o$d(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$a.Space||a.key===o$a.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$a.Home:case o$a.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.First));case o$a.End:case o$a.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.Last))}if(E(()=>u$6(r,{vertical(){return a.key===o$a.ArrowUp?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowDown?O(f,M$4.Next|M$4.WrapAround):N$3.Error},horizontal(){return a.key===o$a.ArrowLeft?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowRight?O(f,M$4.Next|M$4.WrapAround):N$3.Error}}))===N$3.Success)return a.preventDefault()}),A=React.useRef(!1),L=o$d(()=>{var a;A.current||(A.current=!0,(a=l.current)==null||a.focus({preventScroll:!0}),u.change(m),t$9(()=>{A.current=!1;}));}),C=o$d(a=>{a.preventDefault();}),N=React.useMemo(()=>({selected:y}),[y]),B={ref:d,onKeyDown:I,onMouseDown:C,onClick:L,id:o,role:"tab",type:s$d(e,l),"aria-controls":(D=(p=c[m])==null?void 0:p.current)==null?void 0:D.id,"aria-selected":y,tabIndex:y?0:-1};return X$3({ourProps:B,theirProps:s,slot:N,defaultTag:ge,name:"Tabs.Tab"})}let Ee="div";function Ae(e,n){let{selectedIndex:t}=M("Tab.Panels"),o=y$3(n),s=React.useMemo(()=>({selectedIndex:t}),[t]);return X$3({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re="div",Le=S$2.RenderStrategy|S$2.Static;function Se(e,n){var E,I,A,L;let t=I$2(),{id:o=`headlessui-tabs-panel-${t}`,tabIndex:s=0,...r}=e,{selectedIndex:i,tabs:R,panels:b}=M("Tab.Panel"),c=q("Tab.Panel"),u=React.useRef(null),T=y$3(u,n);l$f(()=>c.registerPanel(u),[c,u]);let l=d$c("panels"),d=b.indexOf(u);d===-1&&(d=l);let g=d===i,m=React.useMemo(()=>({selected:g}),[g]),y={ref:T,id:o,role:"tabpanel","aria-labelledby":(I=(E=R[d])==null?void 0:E.current)==null?void 0:I.id,tabIndex:g?s:-1};return !g&&((A=r.unmount)==null||A)&&!((L=r.static)!=null&&L)?React.createElement(c$f,{as:"span",...y}):X$3({ourProps:y,theirProps:r,slot:m,defaultTag:Re,features:Le,visible:g,name:"Tabs.Panel"})}let Ie=D$1(ye),De=D$1(me),Fe=D$1(xe),he=D$1(Ae),Me=D$1(Se),rt=Object.assign(Ie,{Group:De,List:Fe,Panels:he,Panel:Me});
64943
64943
 
64944
64944
  const t$4=t=>{var r=__rest$2(t,[]);return React.createElement("svg",Object.assign({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),React.createElement("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"}))};
64945
64945
 
@@ -67171,7 +67171,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
67171
67171
 
67172
67172
  const i$b=$$1("SelectItem"),s$8=React.forwardRef(((o,s)=>{const{value:c,icon:d,className:l,children:u}=o,g=__rest$2(o,["value","icon","className","children"]),p=d;return React.createElement(Nt.Option,Object.assign({className:t$e(i$b("root"),"flex justify-start items-center cursor-default text-tremor-default","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",t$g.md.paddingX,t$g.md.paddingY,l),ref:s,key:c,value:c},g),p&&React.createElement(p,{className:t$e(i$b("icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.width,t$g.xs.marginRight)}),React.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:c))}));s$8.displayName="SelectItem";
67173
67173
 
67174
- const C=startOfToday(),X=React.forwardRef(((m,X)=>{var R,D;const{value:O,defaultValue:V,onValueChange:B,enableSelect:I=!0,minDate:_,maxDate:z,placeholder:F="Select range",selectPlaceholder:M="Select range",disabled:P=!1,locale:Y=y$7,enableClear:L=!0,displayFormat:T,children:U,className:q,enableYearNavigation:A=!1,weekStartsOn:G=0}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn"]),[J,K]=o$8(V,O),[Q,W]=React.useState(!1),[Z,$]=React.useState(!1),ee=React.useMemo((()=>{const e=[];return _&&e.push({before:_}),z&&e.push({after:z}),e}),[_,z]),re=React.useMemo((()=>{const e=new Map;return U?React.Children.forEach(U,(r=>{var t;e.set(r.props.value,{text:null!==(t=t$2(r))&&void 0!==t?t:r.props.value,from:r.props.from,to:r.props.to});})):d$b.forEach((r=>{e.set(r.value,{text:r.text,from:r.from,to:C});})),e}),[U]),te=React.useMemo((()=>{if(U)return o$7(U);const e=new Map;return d$b.forEach((r=>e.set(r.value,r.text))),e}),[U]),ae=(null==J?void 0:J.selectValue)||"",oe=f$2(null==J?void 0:J.from,_,ae,re),de=s$9(null==J?void 0:J.to,z,ae,re),le=oe||de?g$5(oe,de,Y,T):F,ne=startOfMonth(null!==(D=null!==(R=null!=de?de:oe)&&void 0!==R?R:z)&&void 0!==D?D:C),me=L&&!P;return React.createElement("div",Object.assign({ref:X,className:t$e("w-full min-w-[10rem] relative flex justify-between text-tremor-default max-w-sm shadow-tremor-input dark:shadow-dark-tremor-input rounded-tremor-default",q)},H),React.createElement(kt,{as:"div",className:t$e("w-full overflow-hidden",I?"rounded-l-tremor-default":"rounded-tremor-default",Q&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10")},React.createElement("div",{className:"relative w-full overflow-hidden"},React.createElement(kt.Button,{onFocus:()=>W(!0),onBlur:()=>W(!1),disabled:P,className:t$e("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-l-tremor-default flex flex-nowrap","rounded-l-tremor-default border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",I?"rounded-l-tremor-default":"rounded-tremor-default",t$g.lg.paddingLeft,me?t$g.fourXl.paddingRight:t$g.twoXl.paddingRight,t$g.sm.paddingY,r$m.sm.all,a$9(d$a(oe||de),P))},React.createElement(t$4,{className:t$e(c$c("calendarIcon"),"flex-none shrink-0","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.threeXs.negativeMarginLeft,t$g.sm.marginRight),"aria-hidden":"true"}),React.createElement("p",{className:"truncate"},le)),me&&oe?React.createElement("button",{type:"button",className:t$e("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100",t$g.twoXl.marginRight),onClick:e=>{e.preventDefault(),null==B||B({}),K({});}},React.createElement(l$c,{className:t$e(c$c("clearIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null),React.createElement(kt.Panel,{focus:!0,className:t$e("absolute z-10 divide-y overflow-y-auto min-w-min left-0 outline-none rounded-tremor-default p-3","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$m.sm.all)},React.createElement(u$2,Object.assign({mode:"range",showOutsideDays:!0,defaultMonth:ne,selected:{from:oe,to:de},onSelect:e=>{null==B||B({from:null==e?void 0:e.from,to:null==e?void 0:e.to}),K({from:null==e?void 0:e.from,to:null==e?void 0:e.to});},locale:Y,disabled:ee,enableYearNavigation:A,classNames:{day_range_middle:t$e("!rounded-none aria-selected:!bg-tremor-background-subtle aria-selected:dark:!bg-dark-tremor-background-subtle aria-selected:!text-tremor-content aria-selected:dark:!bg-dark-tremor-background-subtle"),day_range_start:"rounded-r-none rounded-l-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted",day_range_end:"rounded-l-none rounded-r-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted"},weekStartsOn:G},m)))),I&&React.createElement(Nt,{as:"div",className:t$e("w-48 overflow-hidden -ml-px rounded-r-tremor-default",Z&&"ring-2 ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted z-10"),value:ae,onChange:e=>{const{from:r,to:t}=re.get(e),a=null!=t?t:C;null==B||B({from:r,to:a,selectValue:e}),K({from:r,to:a,selectValue:e});},disabled:P},(({value:e})=>{var r;return React.createElement(React.Fragment,null,React.createElement(Nt.Button,{onFocus:()=>$(!0),onBlur:()=>$(!1),className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-r-tremor-default transition duration-100","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle",t$g.twoXl.paddingLeft,t$g.twoXl.paddingRight,t$g.sm.paddingY,r$m.sm.all,a$9(d$a(e),P))},e&&null!==(r=te.get(e))&&void 0!==r?r:M),React.createElement(Nt.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto w-full inset-x-0 right-0 outline-none","shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default","dark:shadow-dark-tremor-dropdown dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$m.sm.all)},null!=U?U:d$b.map((e=>React.createElement(s$8,{key:e.value,value:e.value},e.text)))))})))}));X.displayName="DateRangePicker";
67174
+ const C=startOfToday(),X$1=React.forwardRef(((m,X)=>{var R,D;const{value:O,defaultValue:V,onValueChange:B,enableSelect:I=!0,minDate:_,maxDate:z,placeholder:F="Select range",selectPlaceholder:M="Select range",disabled:P=!1,locale:Y=y$7,enableClear:L=!0,displayFormat:T,children:U,className:q,enableYearNavigation:A=!1,weekStartsOn:G=0}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn"]),[J,K]=o$8(V,O),[Q,W]=React.useState(!1),[Z,$]=React.useState(!1),ee=React.useMemo((()=>{const e=[];return _&&e.push({before:_}),z&&e.push({after:z}),e}),[_,z]),re=React.useMemo((()=>{const e=new Map;return U?React.Children.forEach(U,(r=>{var t;e.set(r.props.value,{text:null!==(t=t$2(r))&&void 0!==t?t:r.props.value,from:r.props.from,to:r.props.to});})):d$b.forEach((r=>{e.set(r.value,{text:r.text,from:r.from,to:C});})),e}),[U]),te=React.useMemo((()=>{if(U)return o$7(U);const e=new Map;return d$b.forEach((r=>e.set(r.value,r.text))),e}),[U]),ae=(null==J?void 0:J.selectValue)||"",oe=f$2(null==J?void 0:J.from,_,ae,re),de=s$9(null==J?void 0:J.to,z,ae,re),le=oe||de?g$5(oe,de,Y,T):F,ne=startOfMonth(null!==(D=null!==(R=null!=de?de:oe)&&void 0!==R?R:z)&&void 0!==D?D:C),me=L&&!P;return React.createElement("div",Object.assign({ref:X,className:t$e("w-full min-w-[10rem] relative flex justify-between text-tremor-default max-w-sm shadow-tremor-input dark:shadow-dark-tremor-input rounded-tremor-default",q)},H),React.createElement(kt,{as:"div",className:t$e("w-full overflow-hidden",I?"rounded-l-tremor-default":"rounded-tremor-default",Q&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10")},React.createElement("div",{className:"relative w-full overflow-hidden"},React.createElement(kt.Button,{onFocus:()=>W(!0),onBlur:()=>W(!1),disabled:P,className:t$e("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-l-tremor-default flex flex-nowrap","rounded-l-tremor-default border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",I?"rounded-l-tremor-default":"rounded-tremor-default",t$g.lg.paddingLeft,me?t$g.fourXl.paddingRight:t$g.twoXl.paddingRight,t$g.sm.paddingY,r$m.sm.all,a$9(d$a(oe||de),P))},React.createElement(t$4,{className:t$e(c$c("calendarIcon"),"flex-none shrink-0","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.threeXs.negativeMarginLeft,t$g.sm.marginRight),"aria-hidden":"true"}),React.createElement("p",{className:"truncate"},le)),me&&oe?React.createElement("button",{type:"button",className:t$e("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100",t$g.twoXl.marginRight),onClick:e=>{e.preventDefault(),null==B||B({}),K({});}},React.createElement(l$c,{className:t$e(c$c("clearIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null),React.createElement(kt.Panel,{focus:!0,className:t$e("absolute z-10 divide-y overflow-y-auto min-w-min left-0 outline-none rounded-tremor-default p-3","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$m.sm.all)},React.createElement(u$2,Object.assign({mode:"range",showOutsideDays:!0,defaultMonth:ne,selected:{from:oe,to:de},onSelect:e=>{null==B||B({from:null==e?void 0:e.from,to:null==e?void 0:e.to}),K({from:null==e?void 0:e.from,to:null==e?void 0:e.to});},locale:Y,disabled:ee,enableYearNavigation:A,classNames:{day_range_middle:t$e("!rounded-none aria-selected:!bg-tremor-background-subtle aria-selected:dark:!bg-dark-tremor-background-subtle aria-selected:!text-tremor-content aria-selected:dark:!bg-dark-tremor-background-subtle"),day_range_start:"rounded-r-none rounded-l-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted",day_range_end:"rounded-l-none rounded-r-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted"},weekStartsOn:G},m)))),I&&React.createElement(Nt,{as:"div",className:t$e("w-48 overflow-hidden -ml-px rounded-r-tremor-default",Z&&"ring-2 ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted z-10"),value:ae,onChange:e=>{const{from:r,to:t}=re.get(e),a=null!=t?t:C;null==B||B({from:r,to:a,selectValue:e}),K({from:r,to:a,selectValue:e});},disabled:P},(({value:e})=>{var r;return React.createElement(React.Fragment,null,React.createElement(Nt.Button,{onFocus:()=>$(!0),onBlur:()=>$(!1),className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-r-tremor-default transition duration-100","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle",t$g.twoXl.paddingLeft,t$g.twoXl.paddingRight,t$g.sm.paddingY,r$m.sm.all,a$9(d$a(e),P))},e&&null!==(r=te.get(e))&&void 0!==r?r:M),React.createElement(Nt.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto w-full inset-x-0 right-0 outline-none","shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default","dark:shadow-dark-tremor-dropdown dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$m.sm.all)},null!=U?U:d$b.map((e=>React.createElement(s$8,{key:e.value,value:e.value},e.text)))))})))}));X$1.displayName="DateRangePicker";
67175
67175
 
67176
67176
  const l$b=React.forwardRef(((l,r)=>{const{value:c,className:s,children:m}=l,o=__rest$2(l,["value","className","children"]);return React.createElement(s$8,Object.assign({ref:r,className:s,value:c},o),null!=m?m:c)}));l$b.displayName="DateRangePickerItem";
67177
67177
 
@@ -67221,7 +67221,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
67221
67221
 
67222
67222
  const o$4=$$1("TextInput"),p$3=React.forwardRef(((e,p)=>{const{type:s="text"}=e,a=__rest$2(e,["type"]);return React.createElement(b$3,Object.assign({ref:p,type:s,makeInputClassName:o$4},a))}));p$3.displayName="TextInput";
67223
67223
 
67224
- const c$9=$$1("Switch"),d$6=React.forwardRef(((i,d)=>{const{checked:m,defaultChecked:u=!1,onChange:b,color:h="blue",name:f,error:p,errorMessage:g,disabled:k,required:w,id:x}=i,C=__rest$2(i,["checked","defaultChecked","onChange","color","name","error","errorMessage","disabled","required","id"]),[E,N]=o$8(u,m),[y,j]=React.useState(!1);return React.createElement(React.Fragment,null,React.createElement("div",Object.assign({ref:d,className:t$e(c$9("root"),"flex flex-col relative h-5")},C),React.createElement("input",{type:"checkbox",className:t$e(c$9("input"),"absolute w-5 h-5 cursor-pointer left-0 top-0 opacity-0"),name:f,required:w,checked:E,onChange:e=>{e.preventDefault();}}),React.createElement(Ge$1,{checked:E,onChange:e=>{N(e),null==b||b(e);},disabled:k,className:t$e(c$9("switch"),"w-10 h-5 group relative inline-flex flex-shrink-0 cursor-pointer items-center justify-center rounded-tremor-full","focus:outline-none",k?"opacity-0 cursor-not-allowed":""),onFocus:()=>j(!0),onBlur:()=>j(!1),id:x},React.createElement("span",{className:t$e(c$9("sr-only"),"sr-only")},"Switch ",E?"on":"off"),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("background"),E?c$l(h,e$4.background).bgColor:"bg-tremor-border dark:bg-dark-tremor-border","pointer-events-none absolute mx-auto h-3 w-9 rounded-tremor-full transition-colors duration-100 ease-in-out")}),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("round"),E?t$e(c$l(h,e$4.background).bgColor,"translate-x-5 border-white"):"translate-x-0 bg-tremor-border dark:bg-dark-tremor-border border-white","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-tremor-full border-2 shadow-tremor-input duration-100 ease-in-out transition",y?t$e("ring-2 ring-blue-200"):"")}))),p&&g?React.createElement("p",{className:t$e(c$9("errorMessage"),"text-sm text-rose-500 mt-1 ")},g):null)}));d$6.displayName="Switch";
67224
+ const c$9=$$1("Switch"),d$6=React.forwardRef(((i,d)=>{const{checked:m,defaultChecked:u=!1,onChange:b,color:h="blue",name:f,error:p,errorMessage:g,disabled:k,required:w,id:x}=i,C=__rest$2(i,["checked","defaultChecked","onChange","color","name","error","errorMessage","disabled","required","id"]),[E,N]=o$8(u,m),[y,j]=React.useState(!1);return React.createElement(React.Fragment,null,React.createElement("div",Object.assign({ref:d,className:t$e(c$9("root"),"flex flex-col relative h-5")},C),React.createElement("input",{type:"checkbox",className:t$e(c$9("input"),"absolute w-5 h-5 cursor-pointer left-0 top-0 opacity-0"),name:f,required:w,checked:E,onChange:e=>{e.preventDefault();}}),React.createElement(Ge,{checked:E,onChange:e=>{N(e),null==b||b(e);},disabled:k,className:t$e(c$9("switch"),"w-10 h-5 group relative inline-flex flex-shrink-0 cursor-pointer items-center justify-center rounded-tremor-full","focus:outline-none",k?"opacity-0 cursor-not-allowed":""),onFocus:()=>j(!0),onBlur:()=>j(!1),id:x},React.createElement("span",{className:t$e(c$9("sr-only"),"sr-only")},"Switch ",E?"on":"off"),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("background"),E?c$l(h,e$4.background).bgColor:"bg-tremor-border dark:bg-dark-tremor-border","pointer-events-none absolute mx-auto h-3 w-9 rounded-tremor-full transition-colors duration-100 ease-in-out")}),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("round"),E?t$e(c$l(h,e$4.background).bgColor,"translate-x-5 border-white"):"translate-x-0 bg-tremor-border dark:bg-dark-tremor-border border-white","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-tremor-full border-2 shadow-tremor-input duration-100 ease-in-out transition",y?t$e("ring-2 ring-blue-200"):"")}))),p&&g?React.createElement("p",{className:t$e(c$9("errorMessage"),"text-sm text-rose-500 mt-1 ")},g):null)}));d$6.displayName="Switch";
67225
67225
 
67226
67226
  const l$9=$$1("Accordion"),i$6=React.createContext({isOpen:!1}),c$8=React.forwardRef(((s,m)=>{var c;const{defaultOpen:p=!1,children:f,className:u}=s,b=__rest$2(s,["defaultOpen","children","className"]),x=null!==(c=React.useContext(t$1))&&void 0!==c?c:t$e(r$m.sm.all,"rounded-tremor-default");return React.createElement(ve$1,Object.assign({as:"div",ref:m,className:t$e(l$9("root"),"overflow-hidden","bg-tremor-background border-tremor-border","dark:bg-dark-tremor-background dark:border-dark-tremor-border",x,u),defaultOpen:p},b),(({open:e})=>React.createElement(i$6.Provider,{value:{isOpen:e}},f)))}));c$8.displayName="Accordion";
67227
67227
 
@@ -67291,7 +67291,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
67291
67291
 
67292
67292
  const n=$$1("Tracker"),p=React.forwardRef(((r,s)=>{const{color:p,tooltip:f}=r,d=__rest$2(r,["color","tooltip"]),{tooltipProps:u,getReferenceProps:b}=f$c();return React.createElement("div",Object.assign({ref:n$i([s,u.refs.setReference]),className:t$e(n("trackingBlock"),"w-full h-full rounded-tremor-small",c$l(null!=p?p:"gray",e$4.background).bgColor)},d,b),React.createElement(u$8,Object.assign({text:f},u)))}));p.displayName="TrackerBlock";const f=React.forwardRef(((t,l)=>{const{data:a=[],className:s}=t,i=__rest$2(t,["data","className"]);return React.createElement("div",Object.assign({ref:l,className:t$e(n("root"),"w-full flex items-center h-10",t$g.threeXs.spaceX,s)},i),a.map(((e,r)=>{var t;return React.createElement(p,{key:null!==(t=e.key)&&void 0!==t?t:r,color:e.color,tooltip:e.tooltip})})))}));f.displayName="Tracker";
67293
67293
 
67294
- function r(...t){return twMerge(clsx(t))}var Pn="https://api-dev.liberty.percyai.io/key_service/v1/jwt/generate",Vr=async({clientKey:t})=>{try{return t?await(await fetch(Pn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:t})})).json():void 0}catch(e){console.error("Error requesting token:",e);return}},N=(t,e)=>t?.config?t.config.find(o=>o.name===e):{};var eo=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),J=React__namespace.forwardRef(({className:t,variant:e,size:o,asChild:a=!1,...n},s)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:r(eo({variant:e,size:o,className:t})),ref:s,...n}));J.displayName="Button";var to=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",t),...e}));to.displayName="Card";var oo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",t),...e}));oo.displayName="CardHeader";var Yr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",t),...e}));Yr.displayName="CardTitle";var Sn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Sn.displayName="CardDescription";var ro=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",t),...e}));ro.displayName="CardContent";var ao=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",t),...e}));ao.displayName="CardFooter";var Gr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e}));Gr.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var wn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:o,className:r("aspect-square h-full w-full",t),...e}));wn.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e}));qr.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var Wr=React__namespace.forwardRef(({className:t,value:e,...o},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...o},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})));Wr.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var io=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));io.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var Fa=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Fa.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Va=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));Va.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Un=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Hn=React__namespace.forwardRef(({side:t="right",className:e,children:o,...a},n)=>React__namespace.createElement(Fa,null,React__namespace.createElement(Va,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:r(Un({side:t}),e),...a},o,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));Hn.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var Vn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold text-foreground",t),...e}));Vn.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Yn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Yn.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:o,className:r("w-full caption-bottom text-sm",t),...e})));zr.displayName="Table";var Qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",t),...e}));Qr.displayName="TableHeader";var $r=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",t),...e}));$r.displayName="TableBody";var jr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",t),...e}));jr.displayName="TableFooter";var Fo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tr",{ref:o,className:r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Fo.displayName="TableRow";var Ht=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("th",{ref:o,className:r("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Ht.displayName="TableHead";var Bt=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Bt.displayName="TableCell";var Xr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",t),...e}));Xr.displayName="TableCaption";var qn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",t),...e}));qn.displayName="AccordionItem";var Wn=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$8b251419efc915eb,{className:"flex"},React__namespace.createElement($1bf158f521e1b1b4$export$41fb9f06171c75f4,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...o},e,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));Wn.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var zn=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$7c6e2c02157bb7d2,{ref:a,className:r("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",t),...o},React__namespace.createElement("div",{className:"pb-4 pt-0"},e)));zn.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var $n=cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),no=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r($n({variant:e}),t),...o}));no.displayName="Alert";var so=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",t),...e}));so.displayName="AlertTitle";var lo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",t),...e}));lo.displayName="AlertDescription";var Ya=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,Ga=$905f4ae918aab1aa$export$41fb9f06171c75f4,qa=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(t),...e});qa.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var Wa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$c6fdb837b070b4ff,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));Wa.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Kr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(qa,null,React__namespace.createElement(Wa,null),React__namespace.createElement($905f4ae918aab1aa$export$7c6e2c02157bb7d2,{ref:o,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...e})));Kr.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var Jr=({className:t,...e})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Jr.displayName="AlertDialogFooter";var Zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",t),...e}));Zr.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var Xn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Xn.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(eo(),t),...e}));ea.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var Kn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(eo({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));Kn.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($e698a72e93240346$export$be92b6f5f03c0fe9,{ref:o,className:r("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e},React__namespace.createElement($e698a72e93240346$export$adb584737d712b70,{className:r("flex items-center justify-center text-current")},React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))));ta.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var za=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});za.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Qa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{ref:o,className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));Qa.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var mo=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement(za,null,React__namespace.createElement(Qa,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...o},e,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));mo.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var aa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",t),...e}));aa.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var ia=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));ia.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var sr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));sr.displayName=Le$1.displayName;var na=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":""},React__namespace.createElement(MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),React__namespace.createElement(Le$1.Input,{ref:o,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})));na.displayName=Le$1.Input.displayName;var sa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));sa.displayName=Le$1.List.displayName;var la=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$1.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));la.displayName=Le$1.Empty.displayName;var ma=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Group,{ref:o,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...e}));ma.displayName=Le$1.Group.displayName;var is=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Separator,{ref:o,className:r("-mx-1 h-px bg-border",t),...e}));is.displayName=Le$1.Separator.displayName;var ca=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Item,{ref:o,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e}));ca.displayName=Le$1.Item.displayName;var cs=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));cs.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var ds=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));ds.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var ps=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$602eac185826482c,null,React__namespace.createElement($1b0217ee4a91d156$export$7c6e2c02157bb7d2,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e})));ps.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var us=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));us.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var fs=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));fs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var gs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));gs.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var Es=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",e&&"pl-8",t),...o}));Es.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var hs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-border",t),...e}));hs.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var bs=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));bs.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var Ns=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));Ns.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var da=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));da.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var vs=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));vs.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var _s=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));_s.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var As=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));As.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var Ps=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));Ps.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var Is=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));Is.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var Ss=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ua=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(Ss(),t),...e}));ua.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var Xa=React__namespace.createContext({}),cr=()=>{let t=React__namespace.useContext(Xa),e=React__namespace.useContext(Ka),{getFieldState:o,formState:a}=useFormContext(),n=o(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:s}=e;return {id:s,name:t.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},Ka=React__namespace.createContext({}),Ne=React__namespace.forwardRef(({className:t,...e},o)=>{let a=React__namespace.useId();return React__namespace.createElement(Ka.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",t),...e}))});Ne.displayName="FormItem";var we=React__namespace.forwardRef(({className:t,...e},o)=>{let{error:a,formItemId:n}=cr();return React__namespace.createElement(ua,{ref:o,className:r(a&&"text-destructive",t),htmlFor:n,...e})});we.displayName="FormLabel";var ve=React__namespace.forwardRef(({...t},e)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:s}=cr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":o?`${n} ${s}`:`${n}`,"aria-invalid":!!o,...t})});ve.displayName="FormControl";var ks=React__namespace.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:a}=cr();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",t),...e})});ks.displayName="FormDescription";var Ge=React__namespace.forwardRef(({className:t,children:e,...o},a)=>{let{error:n,formMessageId:s}=cr(),c=n?String(n?.message):e;return c?React__namespace.createElement("p",{ref:a,id:s,className:r("text-[0.8rem] font-medium text-destructive",t),...o},c):null});Ge.displayName="FormMessage";var _e=React__namespace.forwardRef(({className:t,type:e,...o},a)=>React__namespace.createElement("input",{type:e,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...o}));_e.displayName="Input";var Fs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{ref:o,className:r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...e}));Fs.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var Vs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$41fb9f06171c75f4,{ref:o,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...e}));Vs.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Ys=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Ys.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var Gs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));Gs.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var qs=React__namespace.forwardRef(({className:t,align:e="start",alignOffset:o=-4,sideOffset:a=8,...n},s)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:s,align:e,alignOffset:o,sideOffset:a,className:r("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})));qs.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var Ws=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));Ws.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var zs=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));zs.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Qs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Qs.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var $s=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));$s.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var js=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));js.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var Zs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$be92b6f5f03c0fe9,{ref:a,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...o},e,React__namespace.createElement(Ja,null)));Zs.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var el=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));el.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var tl=cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),ol=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(tl(),"group",t),...o},e," ",React__namespace.createElement(ChevronDownIcon,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})));ol.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$7c6e2c02157bb7d2,{ref:o,className:r("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));rl.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var Ja=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:r("absolute left-0 top-full flex justify-center")},React__namespace.createElement($322c88a641701f3b$export$d5c6c08dc2d3ca7,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o,...e})));Ja.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var al=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$adb584737d712b70,{ref:o,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));al.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var il=React__namespace.forwardRef(({className:t,align:e="center",sideOffset:o=4,...a},n)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:n,align:e,sideOffset:o,className:r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})));il.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var sl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",t),...e,ref:o}));sl.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var ll=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},React__namespace.createElement($f99a8c78507165f7$export$adb584737d712b70,{className:"flex items-center justify-center"},React__namespace.createElement(CheckIcon$1,{className:"h-3.5 w-3.5 fill-primary"}))));ll.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var ml=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:r("relative overflow-hidden",t),...o},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},e),React__namespace.createElement(Za,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));ml.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var Za=React__namespace.forwardRef(({className:t,orientation:e="vertical",...o},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:e,className:r("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...o},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));Za.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var Go=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4,{ref:a,className:r("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},e,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Go.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var qo=React__namespace.forwardRef(({className:t,children:e,position:o="popper",...a},n)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:n,className:r("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,...a},React__namespace.createElement($cc7e05a45900e73f$export$d5c6c08dc2d3ca7,{className:r("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},e))));qo.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var pl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",t),...e}));pl.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var ot=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($cc7e05a45900e73f$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),React__namespace.createElement($cc7e05a45900e73f$export$d6e5bf9c43ea9319,null,e)));ot.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var ul=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));ul.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var fl=React__namespace.forwardRef(({className:t,orientation:e="horizontal",decorative:o=!0,...a},n)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:n,decorative:o,orientation:e,className:r("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));fl.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var ga=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex w-full touch-none select-none items-center",t),...e},React__namespace.createElement($faa2e61a3361514f$export$13921ac0cc260818,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20"},React__namespace.createElement($faa2e61a3361514f$export$9a58ef0d7ad3278c,{className:"absolute h-full bg-primary"})),React__namespace.createElement($faa2e61a3361514f$export$6521433ed15a34db,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})));ga.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var gl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9,{className:r("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:o},React__namespace.createElement($6be4966fd9bbc698$export$6521433ed15a34db,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})));gl.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var El=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5,{ref:o,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));El.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var hl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$41fb9f06171c75f4,{ref:o,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...e}));hl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var Rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2,{ref:o,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));Rl.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var Ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:o,...e}));Ea.displayName="Textarea";var ha=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$d5c6c08dc2d3ca7,{ref:o,className:r("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));ha.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var Tl=cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ra=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(Tl({variant:e}),t),...o}));Ra.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var bl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$e19cd5f9376f8cee,{ref:o,className:r("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));bl.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f39c2d165cd861fe,{ref:o,className:r("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));ya.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var xa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",t),...e}));xa.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",t),...e}));Ta.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var Ll=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Cl=React__namespace.forwardRef(({className:t,variant:e,size:o,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:r(Ll({variant:e,size:o,className:t})),...a}));Cl.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var _a=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(_a||{});var R=class R{};R.ESTIMATES_ENDPOINT_URL="https://api-dev.liberty.percyai.io/property/v1/estimates",R.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",R.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",R.ESTIMATED_VALUES_DIALOG_DESCRIPTION="The values generated here are based on automated computer modeling from public records and may not represent the true value of the home.",R.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",R.FORM_TITLE="Learn more about my options",R.FORM_DESCRIPTION="Get more insights on how your property valuation",R.FORM_FIRST_NAME_LABEL="First Name *",R.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",R.FORM_EMAIL_ADDRESS_LABEL="Email Address *",R.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",R.FORM_LAST_NAME_LABEL="Last Name *",R.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",R.FORM_PHONE_NUMBER_LABEL="Phone Number *",R.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",R.FORM_USER_TYPE_LABEL="I am: *",R.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",R.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",R.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",R.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",R.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",R.FORM_ACTION_BUTTOM="Submit",R.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",R.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",R.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",R.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",R.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",R.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",R.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",R.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",R.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",R.BUYER="A Buyer",R.SELLER="A Seller",R.BUYER_SELLER="A Buyer and Seller",R.BROKER="A Broker/Agent",R.PERIOD_1="Immediately",R.PERIOD_2="1 to 3 Months",R.PERIOD_3="3 to 6 Months",R.PERIOD_4="6 to 12 Months",R.PERIOD_5="12+ Months",R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",R.sellerBuyerSharedContent=[{label:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],R.DYNAMIC_VALUES={buyer:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:R.sellerBuyerSharedContent,"buyer-seller":R.sellerBuyerSharedContent,broker:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var P=R;var Ql=nativeEnumType(_a,{required_error:P.IAM_REQUIRED_VALIDATION_MESSAGE});objectType({firstName:stringType().min(2,{message:P.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:P.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:P.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:P.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:P.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:Ql,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:P.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});var i=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(e,o,a,n,s){return `Public records show a ${e} year loan at ${o} for ${a} from ${n}, giving you an estimated loan balance of ${s}. All calculations on this report are based on these numbers, so we want to make sure we get this right!`}static HOW_CALCULATE_INFORMATION_DESCRIPTION(e,o,a,n){return `These numbers are all based on your ${a} year loan at ${e} for ${o} from ${n}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(e,o,a,n){return `Based on your ${e} year loan at ${o} for ${a} from ${n}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(e){return `You would also be done with the loan and no longer making payments ${e} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(e){return `Long term ${e}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(e,o){return `Payment may go ${e} by ${o}/mo`}static USING_YOUR_EQUITY_SUBTITLE(e){return `With your ${e} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(e,o){return `Using ${e} of your estimated equity, you could make a 20% down payment on a new house worth around ${o}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(e,o){return `Your new monthly principal and interest payment on a 30-year mortgage at ${e} APR is estimated at ${o}/mo`}static USING_EQUITY_REMINDER(e,o){return `Reminder: You'll pay ${e}-${o} in fees and commissions when you sell your current home. This cost varies by agent, location, and company.`}static USING_EQUITY_SELL_CASH_HEADLINE(e){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${e}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(e,o){return `You could use around ${e} of your equity as a 30% down payment on an investment home worth ${o}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(e,o){return `With your ${e} in equity, you could have about ${o} to work with depending on market rates, your current financial situation, home occupancy status, and refi goals. (And, it is smart to leave at least 25% of your equity in your home.)`}};i.ACTION_OK_BUTTON_LABEL="OK",i.DESCRIPTION_YEARS_LABEL="Years",i.YEAR=" year",i.PLURAL="s ",i.AND=" and ",i.MONTH=" month",i.RATE=" rate",i.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",i.HOME_GUIDE="homeguide.com 2020",i.EL_ISSA="El Issa, 2019",i.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",i.TICAS="TICAS, Student Debt and the Class of 2018",i.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",i.NO_DATA_AVAILABLE_LABEL="No Data Available",i.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",i.LEARN_MORE_LABEL="Learn more about this",i.EDIT_DETAILS_LABEL="Edit Details",i.WHY_PAY_MORE_LABEL="Why Pay More?",i.EARLY_LOAN_LABEL="Early Loan Payoff Information",i.ASK_AGENT_LABEL="Ask an Agent",i.CONFIGURATION_ERROR_LABEL="Configuration Error",i.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",i.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",i.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",i.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",i.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",i.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",i.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",i.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",i.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",i.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",i.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",i.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",i.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",i.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",i.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT="This message is for information purposes only and is not an advertisement to extend customer credit as defined by Section 12 CFR 1026.2 Regulation Z. Program rates, terms, and conditions are subject to change at any time. All examples of potential mortgage products above are estimates for illustration purposes only. All programs and mortgage products are subject to borrower income, credit, and property approval. Not all borrowers will qualify. This is not an offer for extension of credit or a commitment to lend. Home valuations are estimates purchased from a third-party data provider. Actual appraised value at the time of a transaction may vary. Equal Housing Lender. Interest rates used are based on a reasonably current index and margin from the Freddie Mac Primary Mortgage Market Survey.",i.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",i.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',i.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",i.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",i.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",i.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",i.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",i.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",i.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",i.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",i.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",i.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",i.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",i.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION="Your mortgage payment is typically defined as your principal and interest payment. When you pay extra on your principal balance, you can reduce the amount of your loan and save money on interest.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION="contact your mortgage servicer to indicate your extra payment is for principal reduction (to ensure it is not accidentally applied to an extra payment, extra interest, or towards escrow).",i.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",i.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",i.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",i.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",i.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",i.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
67294
+ function r(...t){return twMerge(clsx(t))}var Cn="https://api.liberty.percyai.io/key_service/v1/jwt/generate",Vr=async({clientKey:t})=>{try{return t?await(await fetch(Cn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:t})})).json():void 0}catch(e){console.error("Error requesting token:",e);return}},N=(t,e)=>t?.config?t.config.find(o=>o.name===e):{};var eo=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),X=React__namespace.forwardRef(({className:t,variant:e,size:o,asChild:a=!1,...n},s)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:r(eo({variant:e,size:o,className:t})),ref:s,...n}));X.displayName="Button";var to=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",t),...e}));to.displayName="Card";var oo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",t),...e}));oo.displayName="CardHeader";var Yr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",t),...e}));Yr.displayName="CardTitle";var Mn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Mn.displayName="CardDescription";var ro=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",t),...e}));ro.displayName="CardContent";var ao=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",t),...e}));ao.displayName="CardFooter";var Gr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e}));Gr.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var On=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:o,className:r("aspect-square h-full w-full",t),...e}));On.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e}));qr.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var Wr=React__namespace.forwardRef(({className:t,value:e,...o},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...o},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})));Wr.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var io=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));io.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var Va=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Va.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));Ya.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Fn=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vn=React__namespace.forwardRef(({side:t="right",className:e,children:o,...a},n)=>React__namespace.createElement(Va,null,React__namespace.createElement(Ya,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:r(Fn({side:t}),e),...a},o,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));Vn.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var qn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold text-foreground",t),...e}));qn.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Wn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Wn.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:o,className:r("w-full caption-bottom text-sm",t),...e})));zr.displayName="Table";var Qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",t),...e}));Qr.displayName="TableHeader";var $r=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",t),...e}));$r.displayName="TableBody";var jr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",t),...e}));jr.displayName="TableFooter";var Fo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tr",{ref:o,className:r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Fo.displayName="TableRow";var Ht=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("th",{ref:o,className:r("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Ht.displayName="TableHead";var Bt=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Bt.displayName="TableCell";var Xr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",t),...e}));Xr.displayName="TableCaption";var Qn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",t),...e}));Qn.displayName="AccordionItem";var $n=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$8b251419efc915eb,{className:"flex"},React__namespace.createElement($1bf158f521e1b1b4$export$41fb9f06171c75f4,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...o},e,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));$n.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var jn=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$7c6e2c02157bb7d2,{ref:a,className:r("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",t),...o},React__namespace.createElement("div",{className:"pb-4 pt-0"},e)));jn.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Kn=cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),no=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Kn({variant:e}),t),...o}));no.displayName="Alert";var so=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",t),...e}));so.displayName="AlertTitle";var lo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",t),...e}));lo.displayName="AlertDescription";var Ga=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,qa=$905f4ae918aab1aa$export$41fb9f06171c75f4,Wa=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(t),...e});Wa.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var za=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$c6fdb837b070b4ff,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));za.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Kr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Wa,null,React__namespace.createElement(za,null),React__namespace.createElement($905f4ae918aab1aa$export$7c6e2c02157bb7d2,{ref:o,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...e})));Kr.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var Jr=({className:t,...e})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Jr.displayName="AlertDialogFooter";var Zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",t),...e}));Zr.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var Zn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Zn.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(eo(),t),...e}));ea.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var es=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(eo({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));es.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($e698a72e93240346$export$be92b6f5f03c0fe9,{ref:o,className:r("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e},React__namespace.createElement($e698a72e93240346$export$adb584737d712b70,{className:r("flex items-center justify-center text-current")},React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))));ta.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Qa=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Qa.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var $a=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{ref:o,className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));$a.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var mo=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement(Qa,null,React__namespace.createElement($a,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...o},e,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));mo.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var aa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",t),...e}));aa.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var ia=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));ia.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var sr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));sr.displayName=Le$1.displayName;var na=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":""},React__namespace.createElement(MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),React__namespace.createElement(Le$1.Input,{ref:o,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})));na.displayName=Le$1.Input.displayName;var sa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));sa.displayName=Le$1.List.displayName;var la=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$1.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));la.displayName=Le$1.Empty.displayName;var ma=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Group,{ref:o,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...e}));ma.displayName=Le$1.Group.displayName;var ls=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Separator,{ref:o,className:r("-mx-1 h-px bg-border",t),...e}));ls.displayName=Le$1.Separator.displayName;var ca=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Item,{ref:o,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e}));ca.displayName=Le$1.Item.displayName;var us=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));us.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var fs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));fs.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var gs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$602eac185826482c,null,React__namespace.createElement($1b0217ee4a91d156$export$7c6e2c02157bb7d2,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e})));gs.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var Es=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));Es.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var hs=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));hs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var Rs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Rs.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var xs=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",e&&"pl-8",t),...o}));xs.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var ys=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-border",t),...e}));ys.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var As=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));As.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var _s=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));_s.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var da=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));da.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var Ps=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));Ps.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var Is=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));Is.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var Ls=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Ls.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var Cs=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));Cs.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var Ss=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));Ss.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var Ms=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ua=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(Ms(),t),...e}));ua.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var Ka=React__namespace.createContext({}),cr=()=>{let t=React__namespace.useContext(Ka),e=React__namespace.useContext(Ja),{getFieldState:o,formState:a}=useFormContext(),n=o(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:s}=e;return {id:s,name:t.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},Ja=React__namespace.createContext({}),be=React__namespace.forwardRef(({className:t,...e},o)=>{let a=React__namespace.useId();return React__namespace.createElement(Ja.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",t),...e}))});be.displayName="FormItem";var we=React__namespace.forwardRef(({className:t,...e},o)=>{let{error:a,formItemId:n}=cr();return React__namespace.createElement(ua,{ref:o,className:r(a&&"text-destructive",t),htmlFor:n,...e})});we.displayName="FormLabel";var Ne=React__namespace.forwardRef(({...t},e)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:s}=cr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":o?`${n} ${s}`:`${n}`,"aria-invalid":!!o,...t})});Ne.displayName="FormControl";var Bs=React__namespace.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:a}=cr();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",t),...e})});Bs.displayName="FormDescription";var qe=React__namespace.forwardRef(({className:t,children:e,...o},a)=>{let{error:n,formMessageId:s}=cr(),c=n?String(n?.message):e;return c?React__namespace.createElement("p",{ref:a,id:s,className:r("text-[0.8rem] font-medium text-destructive",t),...o},c):null});qe.displayName="FormMessage";var ve=React__namespace.forwardRef(({className:t,type:e,...o},a)=>React__namespace.createElement("input",{type:e,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...o}));ve.displayName="Input";var Gs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{ref:o,className:r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...e}));Gs.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var qs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$41fb9f06171c75f4,{ref:o,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...e}));qs.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Ws=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Ws.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var zs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));zs.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Qs=React__namespace.forwardRef(({className:t,align:e="start",alignOffset:o=-4,sideOffset:a=8,...n},s)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:s,align:e,alignOffset:o,sideOffset:a,className:r("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})));Qs.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var $s=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));$s.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var js=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));js.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Xs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Xs.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Ks=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));Ks.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var Js=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));Js.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var ol=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$be92b6f5f03c0fe9,{ref:a,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...o},e,React__namespace.createElement(Za,null)));ol.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));rl.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var al=cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),il=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(al(),"group",t),...o},e," ",React__namespace.createElement(ChevronDownIcon,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})));il.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var nl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$7c6e2c02157bb7d2,{ref:o,className:r("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));nl.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var Za=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:r("absolute left-0 top-full flex justify-center")},React__namespace.createElement($322c88a641701f3b$export$d5c6c08dc2d3ca7,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o,...e})));Za.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var sl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$adb584737d712b70,{ref:o,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));sl.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var fa=React__namespace.forwardRef(({className:t,align:e="center",sideOffset:o=4,...a},n)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:n,align:e,sideOffset:o,className:r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})));fa.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var ml=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",t),...e,ref:o}));ml.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var cl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},React__namespace.createElement($f99a8c78507165f7$export$adb584737d712b70,{className:"flex items-center justify-center"},React__namespace.createElement(CheckIcon$1,{className:"h-3.5 w-3.5 fill-primary"}))));cl.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var dl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:r("relative overflow-hidden",t),...o},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},e),React__namespace.createElement(oi,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));dl.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var oi=React__namespace.forwardRef(({className:t,orientation:e="vertical",...o},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:e,className:r("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...o},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));oi.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var Go=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4,{ref:a,className:r("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},e,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Go.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var qo=React__namespace.forwardRef(({className:t,children:e,position:o="popper",...a},n)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:n,className:r("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,...a},React__namespace.createElement($cc7e05a45900e73f$export$d5c6c08dc2d3ca7,{className:r("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},e))));qo.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var fl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",t),...e}));fl.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var ot=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($cc7e05a45900e73f$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),React__namespace.createElement($cc7e05a45900e73f$export$d6e5bf9c43ea9319,null,e)));ot.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var gl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));gl.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var El=React__namespace.forwardRef(({className:t,orientation:e="horizontal",decorative:o=!0,...a},n)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:n,decorative:o,orientation:e,className:r("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));El.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var Ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex w-full touch-none select-none items-center",t),...e},React__namespace.createElement($faa2e61a3361514f$export$13921ac0cc260818,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20"},React__namespace.createElement($faa2e61a3361514f$export$9a58ef0d7ad3278c,{className:"absolute h-full bg-primary"})),React__namespace.createElement($faa2e61a3361514f$export$6521433ed15a34db,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})));Ea.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var hl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9,{className:r("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:o},React__namespace.createElement($6be4966fd9bbc698$export$6521433ed15a34db,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})));hl.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var Rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5,{ref:o,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));Rl.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var xl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$41fb9f06171c75f4,{ref:o,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...e}));xl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var yl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2,{ref:o,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));yl.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var ha=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:o,...e}));ha.displayName="Textarea";var Ra=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$d5c6c08dc2d3ca7,{ref:o,className:r("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Ra.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var Nl=cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xa=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(Nl({variant:e}),t),...o}));xa.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var vl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$e19cd5f9376f8cee,{ref:o,className:r("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));vl.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f39c2d165cd861fe,{ref:o,className:r("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));ya.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",t),...e}));Ta.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var ba=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",t),...e}));ba.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var Sl=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),wl=React__namespace.forwardRef(({className:t,variant:e,size:o,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:r(Sl({variant:e,size:o,className:t})),...a}));wl.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var _a=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(_a||{});var R=class R{};R.ESTIMATES_ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/estimates",R.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",R.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",R.ESTIMATED_VALUES_DIALOG_DESCRIPTION="The values generated here are based on automated computer modeling from public records and may not represent the true value of the home.",R.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",R.FORM_TITLE="Learn more about my options",R.FORM_DESCRIPTION="Get more insights on how your property valuation",R.FORM_FIRST_NAME_LABEL="First Name *",R.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",R.FORM_EMAIL_ADDRESS_LABEL="Email Address *",R.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",R.FORM_LAST_NAME_LABEL="Last Name *",R.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",R.FORM_PHONE_NUMBER_LABEL="Phone Number *",R.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",R.FORM_USER_TYPE_LABEL="I am: *",R.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",R.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",R.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",R.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",R.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",R.FORM_ACTION_BUTTOM="Submit",R.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",R.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",R.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",R.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",R.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",R.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",R.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",R.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",R.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",R.BUYER="A Buyer",R.SELLER="A Seller",R.BUYER_SELLER="A Buyer and Seller",R.BROKER="A Broker/Agent",R.PERIOD_1="Immediately",R.PERIOD_2="1 to 3 Months",R.PERIOD_3="3 to 6 Months",R.PERIOD_4="6 to 12 Months",R.PERIOD_5="12+ Months",R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",R.sellerBuyerSharedContent=[{label:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],R.DYNAMIC_VALUES={buyer:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:R.sellerBuyerSharedContent,"buyer-seller":R.sellerBuyerSharedContent,broker:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var P=R;var jl=nativeEnumType(_a,{required_error:P.IAM_REQUIRED_VALIDATION_MESSAGE});objectType({firstName:stringType().min(2,{message:P.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:P.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:P.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:P.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:P.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:jl,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:P.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});var i=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(e,o,a,n,s){return `Public records show a ${e} year loan at ${o} for ${a} from ${n}, giving you an estimated loan balance of ${s}. All calculations on this report are based on these numbers, so we want to make sure we get this right!`}static HOW_CALCULATE_INFORMATION_DESCRIPTION(e,o,a,n){return `These numbers are all based on your ${a} year loan at ${e} for ${o} from ${n}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(e,o,a,n){return `Based on your ${e} year loan at ${o} for ${a} from ${n}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(e){return `You would also be done with the loan and no longer making payments ${e} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(e){return `Long term ${e}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(e,o){return `Payment may go ${e} by ${o}/mo`}static USING_YOUR_EQUITY_SUBTITLE(e){return `With your ${e} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(e,o){return `Using ${e} of your estimated equity, you could make a 20% down payment on a new house worth around ${o}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(e,o){return `Your new monthly principal and interest payment on a 30-year mortgage at ${e} APR is estimated at ${o}/mo`}static USING_EQUITY_REMINDER(e,o){return `Reminder: You'll pay ${e}-${o} in fees and commissions when you sell your current home. This cost varies by agent, location, and company.`}static USING_EQUITY_SELL_CASH_HEADLINE(e){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${e}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(e,o){return `You could use around ${e} of your equity as a 30% down payment on an investment home worth ${o}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(e,o){return `With your ${e} in equity, you could have about ${o} to work with depending on market rates, your current financial situation, home occupancy status, and refi goals. (And, it is smart to leave at least 25% of your equity in your home.)`}};i.ACTION_OK_BUTTON_LABEL="OK",i.DESCRIPTION_YEARS_LABEL="Years",i.YEAR=" year",i.PLURAL="s ",i.AND=" and ",i.MONTH=" month",i.RATE=" rate",i.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",i.HOME_GUIDE="homeguide.com 2020",i.EL_ISSA="El Issa, 2019",i.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",i.TICAS="TICAS, Student Debt and the Class of 2018",i.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",i.NO_DATA_AVAILABLE_LABEL="No Data Available",i.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",i.LEARN_MORE_LABEL="Learn more about this",i.EDIT_DETAILS_LABEL="Edit Details",i.WHY_PAY_MORE_LABEL="Why Pay More?",i.EARLY_LOAN_LABEL="Early Loan Payoff Information",i.ASK_AGENT_LABEL="Ask an Agent",i.CONFIGURATION_ERROR_LABEL="Configuration Error",i.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",i.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",i.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",i.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",i.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",i.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",i.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",i.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",i.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",i.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",i.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",i.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",i.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",i.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",i.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT="This message is for information purposes only and is not an advertisement to extend customer credit as defined by Section 12 CFR 1026.2 Regulation Z. Program rates, terms, and conditions are subject to change at any time. All examples of potential mortgage products above are estimates for illustration purposes only. All programs and mortgage products are subject to borrower income, credit, and property approval. Not all borrowers will qualify. This is not an offer for extension of credit or a commitment to lend. Home valuations are estimates purchased from a third-party data provider. Actual appraised value at the time of a transaction may vary. Equal Housing Lender. Interest rates used are based on a reasonably current index and margin from the Freddie Mac Primary Mortgage Market Survey.",i.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",i.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',i.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",i.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",i.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",i.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",i.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",i.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",i.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",i.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",i.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",i.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",i.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",i.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION="Your mortgage payment is typically defined as your principal and interest payment. When you pay extra on your principal balance, you can reduce the amount of your loan and save money on interest.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION="contact your mortgage servicer to indicate your extra payment is for principal reduction (to ensure it is not accidentally applied to an extra payment, extra interest, or towards escrow).",i.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",i.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",i.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",i.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",i.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",i.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
67295
67295
  All loans are subject to credit approval. Interest rates are subject to
67296
67296
  change daily and without notice. Current interest rates shown are
67297
67297
  indicative of market conditions and individual qualifications and will
@@ -67303,9 +67303,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
67303
67303
  nightly with the previous day's locks. Contact a loan officer for the
67304
67304
  most up-to-date rates with specific loan quote details, and check
67305
67305
  current market.
67306
- `,i.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",i.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",i.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",i.REFINANCE_OPTIONS_LOSS_LABEL="loss",i.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",i.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",i.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",i.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",i.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",i.REFINANCE_OPTIONS_UP_LABEL="up",i.REFINANCE_OPTIONS_DOWN_LABEL="down",i.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",i.USING_EQUITY_BUY_NEW_HOME="Buy a new home",i.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",i.USING_EQUITY_SELL_CASH_DESCRIPTION_1="You may be exempt from capital gains taxes if you've owned and lived in the home for at least two out of the last five years.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_2="Up to $250,000 in profit may be tax-free for unmarried individuals and up to $500,000 for married couples.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",i.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",i.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",i.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",i.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",i.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",i.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",i.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",i.USING_EQUITY_SELL_CASH="Sell & pocket cash",i.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",i.USING_EQUITY_LIVABLE_SPACE="Add more livable space",i.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",i.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",i.USING_EQUITY_VACATION="Splurge on a dream vacation",i.USING_EQUITY_STUDENT_LOANS="Pay down student loans",i.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE="Renovations can make us happier in the place we call home and using equity is a great way to let your home pay for its own improvements. To ensure you're choosing a project that will yield a return on investment, consult a loan officer or real estate expert.",i.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR="The highest value improvements are garage door replacement (and other curb appeal projects), minor kitchen remodels, and universal bathroom remodels.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",i.USING_EQUITY_EMERGENCY_FUND_HEADLINE="During uncertain times, you still have some things within your control. Having access to 6-12 months of living expenses can prepare you for whatever happens next. ",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2="A cash-out refi or second loan can give you easy access to cash for when you need it most.",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",i.USING_EQUITY_LIVABLE_SPACE_HEADLINE="The average cost to build a home addition or add a room is $48,000, with most homeowners spending between $22,500 and $74,000.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",i.USING_EQUITY_STUDENT_LOANS_HEADLINE="Borrowers from the Class of 2018 owed an average of $29,200, a 2 percent increase from the average of $28,650 in 2017. Using equity to pay off your loans could be an option as long as you understand the associated risks. ",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3="Equity lines and loans use your house as collateral and may disqualify you from many student debt forgiveness or cancellation programs.",i.USING_EQUITY_CREDIT_DEBT_HEADLINE="The average U.S. household with revolving credit card debt has an estimated balance of $6,849 as of September 2019 [2], costing an average of $1,162 in annual interest [3]. ",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2="You can consolidate multiple high-interest balances into a single monthly payment and potentially improve your monthly cash flow.",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3="Be disciplined and create a short-term plan to pay off this debt because your house is used as collateral.",i.USING_EQUITY_VACATION_HEADLINE="Using home equity on your dream vacation is not a wise financial decision. Focus your home equity on wealth building activities or paying down debt. If you really want that dream vacation to the Maldives, plan ahead and put some savings aside each month. Try these options instead:",i.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",i.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",i.EXCELENT_INVESTMENT="Excellent Investment",i.MODERATE_INVESTMENT="Moderate Investment",i.POOR_INVESTMENT="Poor Investment",i.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",i.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",i.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function Pe({children:t}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},t)}function xt({trigger:t,content:e,title:o,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(Ya,null,React__namespace.createElement(Ga,{asChild:a},t),React__namespace.createElement(Kr,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(Zr,null,o),e,React__namespace.createElement(Jr,null,React__namespace.createElement(ea,null,n))))}function Ri({title:t,infoTitle:e,icon:o,infoDescription:a,titleDescription:n,showInfo:s=!0}){let c=React__namespace.cloneElement(o,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:r("flex flex-col items-start")},React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:r("flex flex-col items-center bg-slate-50 rounded-[100px] p-2")},c),React__namespace.createElement("h3",{className:r("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},t),s&&React__namespace.createElement(xt,{asChild:!0,title:e,trigger:React__namespace.createElement(Info,{className:r("w-5 h-5 text-gray-400")}),content:a})),n&&React__namespace.createElement("p",{className:r("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm")},n))}function Ie({icon:t,infoDescription:e,title:o,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:m=!1}){return React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row justify-between items-stretch py-3 shadow-sm pr-1 ")},React__namespace.createElement(Ri,{title:o,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),m&&s&&s)}function ut(){return {address:useReadLocalStorage("selectedAddress")}}var de=({clientKey:t,apiKey:e,loadingInitialState:o="loading"})=>{let[a,n]=useLocalStorage("percy-tokens",void 0),[s,c]=React__namespace.useState(()=>o==="loading"),m=!!t;React__namespace.useEffect(()=>{async function d(){let p=await Vr({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let l=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...b}=u??{},v=a,x={"Content-Type":"application/json",...v?.token&&{Authorization:`Bearer ${v?.token}`},...e&&{"x-api-key":e},...f};try{if(m&&!a?.token||!m&&!e)return;c(!0),!a?.token&&t&&(v=await Vr({clientKey:t}),n(v));let h=await(await fetch(p,{headers:x,...b})).json();return c(!1),h}catch(T){console.error(`Error requesting ${p}`,T);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:l,isExternal:m}};var Ai="AIzaSyCDNlq-LeVQGoubUXL_a8p6LYPXR5Bjs_Q";function sm({apiKey:t,mapOptions:e,geoJsonLayerInput:o,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[m,l]=React__namespace.useState(null),[d,p]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??Ai}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&u(c.current,e);});},[]);let u=(x,T)=>{l(new window.google.maps.Map(x,{...T,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}})),o&&v(o),b(a),p(!0);},f=(x,T)=>{m&&(m.setCenter(x),m.setZoom(T));},b=(x,T,h)=>{if(!m||!x)return;let g=new google.maps.LatLngBounds;x.forEach((y,M)=>{g.extend(new google.maps.LatLng(y.lat,y.lng));let _=new google.maps.Marker({position:{lat:y.lat,lng:y.lng},map:m,icon:y.icon??n,label:y.label});s&&s(M,_);}),m.setCenter(g.getCenter()),m.setZoom(T??3),h&&new window.google.maps.Marker({position:g.getCenter(),map:m,icon:h});},v=({center:x,geoJson:T})=>{if(!m||!T)return;x&&(m.setCenter(x),new window.google.maps.Marker({position:x,map:m}));let h=new window.google.maps.Data;h.addGeoJson(T),h.setStyle(g=>({fillColor:g.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),h.setMap(m);};return {mapRef:c,setGeojson:v,setMarkers:b,zoomHandler:f,isMapReady:d}}var Co=sm;function So({message:t=i.NO_DATA_AVAILABLE_LABEL,mapHeight:e="420px"}){let o="text-gray-500";return React__namespace.createElement("div",{className:"absolute top-0 left-0 w-full h-full rounded-lg flex flex-col justify-center items-center",style:{maxHeight:e,height:e,backgroundColor:"rgb(255 255 255 / 0.6)"}},React__namespace.createElement(XOctagon,{strokeWidth:.4,size:96,className:r(o)}),React__namespace.createElement("p",{className:r(o)},t))}var Pi=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],Ii="https://api.liberty.percyai.io/location/v1/heatmap";function Li(){return React__namespace.createElement("div",{className:r("absolute top-4 left-4 bg-white bg-opacity-70 p-2 shadow-lg flex flex-col")},React__namespace.createElement("div",{className:r("flex justify-between")},React__namespace.createElement("div",{className:r("text-left text-xs")},"Active"),React__namespace.createElement("div",{className:r("text-right text-xs")},"Very Active")),React__namespace.createElement("div",{className:r("flex flex-col items-center space-y-2")},React__namespace.createElement("div",{className:r("flex")},Pi.map((t,e)=>React__namespace.createElement("div",{key:e,className:r("w-4 h-4"),style:{backgroundColor:t}})))))}function Xg({zipcode:t,url:e=Ii,zoomLevel:o=10,zoomControl:a=!0,googleApiKey:n,clientKey:s,apiKey:c,height:m="420px"}){let[l,d]=React__namespace.useState(!1),{request:p,isLoading:u,tokens:f,isExternal:b}=de({clientKey:s,apiKey:c}),{address:v}=ut(),x=t||v?.zipcode,T=N(f?.meta,"color"),h=React__namespace.useMemo(()=>({zoom:o,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,mapId:""}),[o,a]),{mapRef:g,setGeojson:y,isMapReady:M}=Co({mapOptions:h,apiKey:n});return React__namespace.useEffect(()=>{async function _(){if(x?.length&&e.length&&M){let A=new URL(e);A.searchParams.set("zipcode",x),T?.value&&A.searchParams.set("colors",T?.value);try{let w=await p({url:A.toString()});(!b&&!w?.data||f&&b&&!w?.data)&&d(!0),w?.data&&y(w.data);}catch(w){console.error("Error fetching heatmap data:",w);}}}_();},[s,c,f,M]),React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Ie,{title:"Heat Map",infoDescription:"The best way to visualize the distribution of data in a geographical area.",infoTitle:"Heat Map",icon:React__namespace.createElement(MapPin,null)}),React__namespace.createElement(Pe,null,React__namespace.createElement("div",{className:r("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:r("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":u}),style:{maxHeight:m,height:m}},React__namespace.createElement("div",{ref:g,className:r("w-full h-full")}),React__namespace.createElement(Li,null),l&&React__namespace.createElement(So,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.forwardRef(({linkTextColor:t="text-gray-500",icon:e,text:o},a)=>React__namespace.createElement("div",{ref:a,className:r("flex flex-row items-center gap-2")},e&&React__namespace.cloneElement(e,{className:r("h-4 w-4",t,e.props.className)}),React__namespace.createElement("p",{className:r("text-sm hover:cursor-pointer",t)},o)));
67306
+ `,i.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",i.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",i.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",i.REFINANCE_OPTIONS_LOSS_LABEL="loss",i.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",i.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",i.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",i.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",i.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",i.REFINANCE_OPTIONS_UP_LABEL="up",i.REFINANCE_OPTIONS_DOWN_LABEL="down",i.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",i.USING_EQUITY_BUY_NEW_HOME="Buy a new home",i.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",i.USING_EQUITY_SELL_CASH_DESCRIPTION_1="You may be exempt from capital gains taxes if you've owned and lived in the home for at least two out of the last five years.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_2="Up to $250,000 in profit may be tax-free for unmarried individuals and up to $500,000 for married couples.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",i.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",i.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",i.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",i.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",i.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",i.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",i.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",i.USING_EQUITY_SELL_CASH="Sell & pocket cash",i.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",i.USING_EQUITY_LIVABLE_SPACE="Add more livable space",i.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",i.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",i.USING_EQUITY_VACATION="Splurge on a dream vacation",i.USING_EQUITY_STUDENT_LOANS="Pay down student loans",i.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE="Renovations can make us happier in the place we call home and using equity is a great way to let your home pay for its own improvements. To ensure you're choosing a project that will yield a return on investment, consult a loan officer or real estate expert.",i.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR="The highest value improvements are garage door replacement (and other curb appeal projects), minor kitchen remodels, and universal bathroom remodels.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",i.USING_EQUITY_EMERGENCY_FUND_HEADLINE="During uncertain times, you still have some things within your control. Having access to 6-12 months of living expenses can prepare you for whatever happens next. ",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2="A cash-out refi or second loan can give you easy access to cash for when you need it most.",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",i.USING_EQUITY_LIVABLE_SPACE_HEADLINE="The average cost to build a home addition or add a room is $48,000, with most homeowners spending between $22,500 and $74,000.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",i.USING_EQUITY_STUDENT_LOANS_HEADLINE="Borrowers from the Class of 2018 owed an average of $29,200, a 2 percent increase from the average of $28,650 in 2017. Using equity to pay off your loans could be an option as long as you understand the associated risks. ",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3="Equity lines and loans use your house as collateral and may disqualify you from many student debt forgiveness or cancellation programs.",i.USING_EQUITY_CREDIT_DEBT_HEADLINE="The average U.S. household with revolving credit card debt has an estimated balance of $6,849 as of September 2019 [2], costing an average of $1,162 in annual interest [3]. ",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2="You can consolidate multiple high-interest balances into a single monthly payment and potentially improve your monthly cash flow.",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3="Be disciplined and create a short-term plan to pay off this debt because your house is used as collateral.",i.USING_EQUITY_VACATION_HEADLINE="Using home equity on your dream vacation is not a wise financial decision. Focus your home equity on wealth building activities or paying down debt. If you really want that dream vacation to the Maldives, plan ahead and put some savings aside each month. Try these options instead:",i.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",i.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",i.EXCELENT_INVESTMENT="Excellent Investment",i.MODERATE_INVESTMENT="Moderate Investment",i.POOR_INVESTMENT="Poor Investment",i.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",i.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",i.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function _e({children:t}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},t)}function yt({trigger:t,content:e,title:o,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(Ga,null,React__namespace.createElement(qa,{asChild:a},t),React__namespace.createElement(Kr,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(Zr,null,o),e,React__namespace.createElement(Jr,null,React__namespace.createElement(ea,null,n))))}function Ti({title:t,infoTitle:e,icon:o,infoDescription:a,titleDescription:n,showInfo:s=!0}){let c=React__namespace.cloneElement(o,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:r("flex flex-col items-start")},React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:r("flex flex-col items-center bg-slate-50 rounded-[100px] p-2")},c),React__namespace.createElement("h3",{className:r("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},t),s&&React__namespace.createElement(yt,{asChild:!0,title:e,trigger:React__namespace.createElement(Info,{className:r("w-5 h-5 text-gray-400")}),content:a})),n&&React__namespace.createElement("p",{className:r("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm")},n))}function Pe({icon:t,infoDescription:e,title:o,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:m=!1}){return React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row justify-between items-stretch py-3 shadow-sm pr-1 ")},React__namespace.createElement(Ti,{title:o,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),m&&s&&s)}function ut(){return {address:useReadLocalStorage("selectedAddress")}}var de=({clientKey:t,apiKey:e,loadingInitialState:o="loading"})=>{let[a,n]=useLocalStorage("percy-tokens",void 0),[s,c]=React__namespace.useState(()=>o==="loading"),m=!!t;React__namespace.useEffect(()=>{async function d(){let p=await Vr({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let l=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...b}=u??{},v=a,y={"Content-Type":"application/json",...v?.token&&{Authorization:`Bearer ${v?.token}`},...e&&{"x-api-key":e},...f};try{if(m&&!a?.token||!m&&!e)return;c(!0),!a?.token&&t&&(v=await Vr({clientKey:t}),n(v));let h=await(await fetch(p,{headers:y,...b})).json();return c(!1),h}catch(T){console.error(`Error requesting ${p}`,T);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:l,isExternal:m}};var Li="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";function mm({apiKey:t,mapOptions:e,geoJsonLayerInput:o,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[m,l]=React__namespace.useState(null),[d,p]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??Li}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&u(c.current,e);});},[]);let u=(y,T)=>{l(new window.google.maps.Map(y,{...T,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}})),o&&v(o),b(a),p(!0);},f=(y,T)=>{m&&(m.setCenter(y),m.setZoom(T));},b=(y,T,h)=>{if(!m||!y)return;let g=new google.maps.LatLngBounds;y.forEach((x,M)=>{g.extend(new google.maps.LatLng(x.lat,x.lng));let A=new google.maps.Marker({position:{lat:x.lat,lng:x.lng},map:m,icon:x.icon??n,label:x.label});s&&s(M,A);}),m.setCenter(g.getCenter()),m.setZoom(T??3),h&&new window.google.maps.Marker({position:g.getCenter(),map:m,icon:h});},v=({center:y,geoJson:T})=>{if(!m||!T)return;y&&(m.setCenter(y),new window.google.maps.Marker({position:y,map:m}));let h=new window.google.maps.Data;h.addGeoJson(T),h.setStyle(g=>({fillColor:g.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),h.setMap(m);};return {mapRef:c,setGeojson:v,setMarkers:b,zoomHandler:f,isMapReady:d}}var Co=mm;function So({message:t=i.NO_DATA_AVAILABLE_LABEL,mapHeight:e="420px"}){let o="text-gray-500";return React__namespace.createElement("div",{className:"absolute top-0 left-0 w-full h-full rounded-lg flex flex-col justify-center items-center",style:{maxHeight:e,height:e,backgroundColor:"rgb(255 255 255 / 0.6)"}},React__namespace.createElement(XOctagon,{strokeWidth:.4,size:96,className:r(o)}),React__namespace.createElement("p",{className:r(o)},t))}var Ci=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],Si="https://api.liberty.percyai.io/location/v1/heatmap";function wi(){return React__namespace.createElement("div",{className:r("absolute top-4 left-4 bg-white bg-opacity-70 p-2 shadow-lg flex flex-col")},React__namespace.createElement("div",{className:r("flex justify-between")},React__namespace.createElement("div",{className:r("text-left text-xs")},"Active"),React__namespace.createElement("div",{className:r("text-right text-xs")},"Very Active")),React__namespace.createElement("div",{className:r("flex flex-col items-center space-y-2")},React__namespace.createElement("div",{className:r("flex")},Ci.map((t,e)=>React__namespace.createElement("div",{key:e,className:r("w-4 h-4"),style:{backgroundColor:t}})))))}function Kg({zipcode:t,url:e=Si,zoomLevel:o=10,zoomControl:a=!0,googleApiKey:n,clientKey:s,apiKey:c,height:m="420px"}){let[l,d]=React__namespace.useState(!1),{request:p,isLoading:u,tokens:f,isExternal:b}=de({clientKey:s,apiKey:c}),{address:v}=ut(),y=t||v?.zipcode,T=N(f?.meta,"color"),h=React__namespace.useMemo(()=>({zoom:o,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,mapId:""}),[o,a]),{mapRef:g,setGeojson:x,isMapReady:M}=Co({mapOptions:h,apiKey:n});return React__namespace.useEffect(()=>{async function A(){if(y?.length&&e.length&&M){let _=new URL(e);_.searchParams.set("zipcode",y),T?.value&&_.searchParams.set("colors",T?.value);try{let w=await p({url:_.toString()});(!b&&!w?.data||f&&b&&!w?.data)&&d(!0),w?.data&&x(w.data);}catch(w){console.error("Error fetching heatmap data:",w);}}}A();},[s,c,f,M]),React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Pe,{title:"Heat Map",infoDescription:"The best way to visualize the distribution of data in a geographical area.",infoTitle:"Heat Map",icon:React__namespace.createElement(MapPin,null)}),React__namespace.createElement(_e,null,React__namespace.createElement("div",{className:r("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:r("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":u}),style:{maxHeight:m,height:m}},React__namespace.createElement("div",{ref:g,className:r("w-full h-full")}),React__namespace.createElement(wi,null),l&&React__namespace.createElement(So,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.forwardRef(({linkTextColor:t="text-gray-500",icon:e,text:o},a)=>React__namespace.createElement("div",{ref:a,className:r("flex flex-row items-center gap-2")},e&&React__namespace.cloneElement(e,{className:r("h-4 w-4",t,e.props.className)}),React__namespace.createElement("p",{className:r("text-sm hover:cursor-pointer",t)},o)));
67307
67307
 
67308
- var t=p$b(Xg,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
67308
+ var t=p$b(Kg,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
67309
67309
 
67310
67310
  }));
67311
67311
  //# sourceMappingURL=heatmap.js.map