youtopia-ui 0.1.6 → 0.1.8

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.
Files changed (27) hide show
  1. package/dist/assets/Sofia Pro Black Az-B-YUd0_U.woff +0 -0
  2. package/dist/assets/Sofia Pro Black Italic Az-BsdqhJAj.woff +0 -0
  3. package/dist/assets/Sofia Pro Bold Az-CXwBKyTL.woff +0 -0
  4. package/dist/assets/Sofia Pro Bold Italic Az-Ca2qxprA.woff +0 -0
  5. package/dist/assets/Sofia Pro ExtraLight Az-BY1nxyc8.woff +0 -0
  6. package/dist/assets/Sofia Pro ExtraLight Italic Az-D1lmmrUg.woff +0 -0
  7. package/dist/assets/Sofia Pro Light Az-CO26BgtM.woff +0 -0
  8. package/dist/assets/Sofia Pro Light Italic Az-wsibDT44.woff +0 -0
  9. package/dist/assets/Sofia Pro Medium Az-OsL6rLeu.woff +0 -0
  10. package/dist/assets/Sofia Pro Medium Italic Az-jdJS3-xJ.woff +0 -0
  11. package/dist/assets/Sofia Pro Regular Az-2H8o22au.woff +0 -0
  12. package/dist/assets/Sofia Pro Regular Italic Az-CNx1r_W5.woff +0 -0
  13. package/dist/assets/Sofia Pro Semi Bold Az-BTyiZWIV.woff +0 -0
  14. package/dist/assets/Sofia Pro Semi Bold Italic Az-O2ySwtl8.woff +0 -0
  15. package/dist/assets/Sofia Pro UltraLight Az-D-SUgAk0.woff +0 -0
  16. package/dist/assets/Sofia Pro UltraLight Italic Az-D1n632FB.woff +0 -0
  17. package/dist/assets/index-Br_R11qu.js +239 -0
  18. package/dist/assets/index-CmGU2K_d.css +1 -0
  19. package/dist/assets/youtopia-logo-CW-s6y4q.svg +7 -0
  20. package/dist/components/file-badge.d.ts.map +1 -1
  21. package/dist/components/select-field.d.ts +12 -4
  22. package/dist/components/select-field.d.ts.map +1 -1
  23. package/dist/index.html +13 -0
  24. package/dist/youtopia-ui.cjs +1 -1
  25. package/dist/youtopia-ui.css +1 -1
  26. package/dist/youtopia-ui.js +1 -0
  27. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),yl=require("@radix-ui/react-accordion"),t=require("react"),Fl=require("clsx"),Hl=require("tailwind-merge"),X2=require("@radix-ui/react-slot"),er=require("class-variance-authority"),le=require("lucide-react"),j1=require("react-day-picker"),kl=require("@radix-ui/react-checkbox"),bl=require("@radix-ui/react-label"),Ge=require("cmdk"),jl=require("@radix-ui/react-dialog"),Ll=require("@radix-ui/react-dropdown-menu"),Dl=require("@radix-ui/react-popover"),Nl=require("@radix-ui/react-scroll-area"),Sl=require("@radix-ui/react-select"),Vl=require("@radix-ui/react-separator"),Bl=require("@radix-ui/react-tabs"),Tl=require("@radix-ui/react-tooltip"),Ue=require("react-router-dom"),Kt=require("@tanstack/react-table"),Al=require("react-phone-number-input");function me(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const r in l)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(l,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>l[r]})}}return e.default=l,Object.freeze(e)}const Mt=me(yl),Ce=me(t),c2=me(kl),Il=me(bl),je=me(jl),ne=me(Ll),Ct=me(Dl),wt=me(Nl),oe=me(Sl),Ol=me(Vl),Oe=me(Bl),lt=me(Tl),L1=me(Al);function m(...l){return Hl.twMerge(Fl.clsx(l))}const tr=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 24 24",fill:"none",...l,children:[a.jsx("path",{d:"M16 12H8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),rr=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 24 24",fill:"none",...l,children:[a.jsx("path",{d:"M12 8V16M16 12H8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),C={h1:"font-light text-5xl leading-[4.5rem]",h2:"font-light text-[2.5rem] leading-[3.75rem]",h3:"font-light text-[2rem] leading-[3rem]",h4:"font-normal text-2xl leading-[2.25rem]",h5:"font-normal text-[1.375rem] leading-[2.25rem]",t1:"font-light text-lg leading-[1.125rem]",t2:"font-normal text-lg leading-[1.125rem]",t3:"font-light text-base leading-[1rem]",t4:"font-normal text-base leading-[1rem]",p1:"font-light text-lg leading-[2rem]",p2:"font-normal text-lg leading-[2rem]",p3:"font-light text-base leading-[1.75rem]",p4:"font-normal text-base leading-[1.75rem]",b1:"font-light text-xl leading-[2.25rem]",b2:"font-normal text-xl leading-[2.25rem]",b3:"font-light text-xl leading-[2.25rem] italic"};function Wl({...l}){return a.jsx(Mt.Root,{"data-slot":"accordion",...l})}function Rl({className:l,...e}){return a.jsx(Mt.Item,{"data-slot":"accordion-item",className:m("border-b border-b-support-5 text-lg",l),...e})}function _l({className:l,children:e,...r}){return a.jsx(Mt.Header,{className:"flex",children:a.jsxs(Mt.Trigger,{"data-slot":"accordion-trigger",className:m(C.t2,"focus-visible:text-primary-5 focus-visible:border-ring text-auxiliary-4 flex flex-1 items-start justify-between gap-4 rounded-md py-8 text-start hover:text-primary-5 active:text-primary-7 transition-all outline-none disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 group data-[state=open]:active:text-primary-7 data-[state=open]:text-primary-5 cursor-pointer",l),...r,children:[e,a.jsx(rr,{className:"size-6 shrink-0 text-primary-5 transition-transform duration-200 group-data-[state=open]:hidden"}),a.jsx(tr,{className:"size-6 shrink-0 text-auxilliary-3! transition-transform duration-200 group-data-[state=closed]:hidden"})]})})}function Pl({className:l,children:e,...r}){return a.jsx(Mt.Content,{"data-slot":"accordion-content",className:m(C.p1,"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-support-7"),...r,children:a.jsx("div",{className:m("pt-0 pb-8",l),children:e})})}const lr=er.cva(m(C.t4,"inline-flex items-center justify-center rounded-full border border-transparent w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5 transition-[color,box-shadow] overflow-hidden"),{variants:{variant:{default:"bg-auxiliary-7 text-primary-5 [a&]:hover:bg-secondary/90"},size:{default:"p-3",xs:"py-[0.375rem] px-3",sm:"py-[0.438rem] px-3"}},defaultVariants:{size:"default",variant:"default"}});function ot({className:l,variant:e,size:r,asChild:n=!1,...i}){const s=n?X2.Slot:"span";return a.jsx(s,{"data-slot":"badge",className:m(lr({variant:e,size:r}),l),...i})}const Jt=er.cva(m(C.t2,"inline-flex items-center w-full justify-center px-2 py-[0.938rem] active:scale-95 gap-2 whitespace-nowrap rounded-xl h-12 transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5"),{variants:{variant:{default:"focus-visible:ring-auxiliary-5 bg-primary-5 text-auxiliary-1 border-primary-5 active:bg-auxiliary-6 active:text-primary-5 hover:bg-auxiliary-6 hover:text-primary-5 focus:bg-auxiliary-6 focus:text-primary-5 disabled:text-auxiliary-1 disabled:bg-support-5",destructive:"focus-visible:ring-warning-6 bg-warning-1 text-warning-6 border-warning-1 active:bg-warning-3 active:text-warning-6 hover:bg-warning-3 hover:text-warning-6 focus:bg-warning-3 focus:text-warning-6 disabled:opacity-50",secondary:"focus-visible:ring-primary-1 border-primary-5 text-primary-5 border-2 hover:text-primary-3 hover:border-primary-3 active:text-primary-3 active:border-primary-3 focus:text-primary-3 focus:border-primary-3 disabled:text-support-5 disabled:border-support-5",outline:"border border-support-5 bg-auxiliary-1 hover:bg-auxiliary-2 active:bg-auxiliary-2 focus:bg-auxiliary-2 disabled:opacity-50",ghost:"text-primary-5 hover:text-primary-6 active:text-primary-6 focus:text-primary-6 disabled:text-support-5 hover:bg-accent/10 active:bg-accent/10 focus:bg-accent/10 disabled:bg-transparent",link:"text-primary-5 hover:text-primary-6 focus:text-primary-6 active:text-primary-6 underline-offset-4 hover:underline disabled:text-primary-5/50"},size:{default:"w-[15.313rem] has-[>svg]:px-3",sm:"w-[9.375rem] gap-1.5 has-[>svg]:px-2.5",lg:"w-[21.25rem] has-[>svg]:px-4",icon:"size-[2.625rem] p-2"}},defaultVariants:{variant:"default",size:"default"}});function ye({className:l,variant:e,size:r,asChild:n=!1,...i}){const s=n?X2.Slot:"button";return a.jsx(s,{"data-slot":"button",className:m(Jt({variant:e,size:r,className:l})),...i})}class $e extends Error{}class Zl extends $e{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Ul extends $e{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Gl extends $e{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class rt extends $e{}class nr extends $e{constructor(e){super(`Invalid unit ${e}`)}}class ae extends $e{}class Ve extends $e{constructor(){super("Zone is an abstract class")}}const F="numeric",Me="short",ue="long",Qt={year:F,month:F,day:F},ar={year:F,month:Me,day:F},$l={year:F,month:Me,day:F,weekday:Me},ir={year:F,month:ue,day:F},sr={year:F,month:ue,day:F,weekday:ue},or={hour:F,minute:F},cr={hour:F,minute:F,second:F},dr={hour:F,minute:F,second:F,timeZoneName:Me},hr={hour:F,minute:F,second:F,timeZoneName:ue},ur={hour:F,minute:F,hourCycle:"h23"},mr={hour:F,minute:F,second:F,hourCycle:"h23"},fr={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:Me},vr={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:ue},pr={year:F,month:F,day:F,hour:F,minute:F},gr={year:F,month:F,day:F,hour:F,minute:F,second:F},xr={year:F,month:Me,day:F,hour:F,minute:F},wr={year:F,month:Me,day:F,hour:F,minute:F,second:F},ql={year:F,month:Me,day:F,weekday:Me,hour:F,minute:F},Er={year:F,month:ue,day:F,hour:F,minute:F,timeZoneName:Me},zr={year:F,month:ue,day:F,hour:F,minute:F,second:F,timeZoneName:Me},Mr={year:F,month:ue,day:F,weekday:ue,hour:F,minute:F,timeZoneName:ue},Cr={year:F,month:ue,day:F,weekday:ue,hour:F,minute:F,second:F,timeZoneName:ue};class kt{get type(){throw new Ve}get name(){throw new Ve}get ianaName(){return this.name}get isUniversal(){throw new Ve}offsetName(e,r){throw new Ve}formatOffset(e,r){throw new Ve}offset(e){throw new Ve}equals(e){throw new Ve}get isValid(){throw new Ve}}let g1=null;class r1 extends kt{static get instance(){return g1===null&&(g1=new r1),g1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vr(e,r,n)}formatOffset(e,r){return Et(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const D1=new Map;function Yl(l){let e=D1.get(l);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),D1.set(l,e)),e}const Kl={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Jl(l,e){const r=l.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,s,o,c,d,f,p]=n;return[o,i,s,c,d,f,p]}function Ql(l,e){const r=l.formatToParts(e),n=[];for(let i=0;i<r.length;i++){const{type:s,value:o}=r[i],c=Kl[s];s==="era"?n[c]=o:V(c)||(n[c]=parseInt(o,10))}return n}const x1=new Map;class Le extends kt{static create(e){let r=x1.get(e);return r===void 0&&x1.set(e,r=new Le(e)),r}static resetCache(){x1.clear(),D1.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Le.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vr(e,r,n,this.name)}formatOffset(e,r){return Et(this.offset(e),r)}offset(e){if(!this.valid)return NaN;const r=new Date(e);if(isNaN(r))return NaN;const n=Yl(this.name);let[i,s,o,c,d,f,p]=n.formatToParts?Ql(n,r):Jl(n,r);c==="BC"&&(i=-Math.abs(i)+1);const E=n1({year:i,month:s,day:o,hour:d===24?0:d,minute:f,second:p,millisecond:0});let g=+r;const z=g%1e3;return g-=z>=0?z:1e3+z,(E-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let d2={};function Xl(l,e={}){const r=JSON.stringify([l,e]);let n=d2[r];return n||(n=new Intl.ListFormat(l,e),d2[r]=n),n}const N1=new Map;function S1(l,e={}){const r=JSON.stringify([l,e]);let n=N1.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(l,e),N1.set(r,n)),n}const V1=new Map;function en(l,e={}){const r=JSON.stringify([l,e]);let n=V1.get(r);return n===void 0&&(n=new Intl.NumberFormat(l,e),V1.set(r,n)),n}const B1=new Map;function tn(l,e={}){const{base:r,...n}=e,i=JSON.stringify([l,n]);let s=B1.get(i);return s===void 0&&(s=new Intl.RelativeTimeFormat(l,e),B1.set(i,s)),s}let pt=null;function rn(){return pt||(pt=new Intl.DateTimeFormat().resolvedOptions().locale,pt)}const T1=new Map;function yr(l){let e=T1.get(l);return e===void 0&&(e=new Intl.DateTimeFormat(l).resolvedOptions(),T1.set(l,e)),e}const A1=new Map;function ln(l){let e=A1.get(l);if(!e){const r=new Intl.Locale(l);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Fr,...e}),A1.set(l,e)}return e}function nn(l){const e=l.indexOf("-x-");e!==-1&&(l=l.substring(0,e));const r=l.indexOf("-u-");if(r===-1)return[l];{let n,i;try{n=S1(l).resolvedOptions(),i=l}catch{const d=l.substring(0,r);n=S1(d).resolvedOptions(),i=d}const{numberingSystem:s,calendar:o}=n;return[i,s,o]}}function an(l,e,r){return(r||e)&&(l.includes("-u-")||(l+="-u"),r&&(l+=`-ca-${r}`),e&&(l+=`-nu-${e}`)),l}function sn(l){const e=[];for(let r=1;r<=12;r++){const n=S.utc(2009,r,1);e.push(l(n))}return e}function on(l){const e=[];for(let r=1;r<=7;r++){const n=S.utc(2016,11,13+r);e.push(l(n))}return e}function At(l,e,r,n){const i=l.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function cn(l){return l.numberingSystem&&l.numberingSystem!=="latn"?!1:l.numberingSystem==="latn"||!l.locale||l.locale.startsWith("en")||yr(l.locale).numberingSystem==="latn"}class dn{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!r||Object.keys(o).length>0){const c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=en(e,c)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):K1(e,3);return te(r,this.padTo)}}}class hn{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Le.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=S1(r,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class un{constructor(e,r,n){this.opts={style:"long",...n},!r&&Nr()&&(this.rtf=tn(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Vn(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Fr={firstDay:1,minimalDays:4,weekend:[6,7]};class _{static fromOpts(e){return _.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,s=!1){const o=e||J.defaultLocale,c=o||(s?"en-US":rn()),d=r||J.defaultNumberingSystem,f=n||J.defaultOutputCalendar,p=O1(i)||J.defaultWeekSettings;return new _(c,d,f,p,o)}static resetCache(){pt=null,N1.clear(),V1.clear(),B1.clear(),T1.clear(),A1.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return _.create(e,r,n,i)}constructor(e,r,n,i,s){const[o,c,d]=nn(e);this.locale=o,this.numberingSystem=r||c||null,this.outputCalendar=n||d||null,this.weekSettings=i,this.intl=an(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cn(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:_.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,O1(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return At(this,e,Ar,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const i=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";if(!this.monthsCache[s][e]){const o=n?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[s][e]=sn(o)}return this.monthsCache[s][e]})}weekdays(e,r=!1){return At(this,e,Wr,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=on(s=>this.extract(s,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return At(this,void 0,()=>Rr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return At(this,e,_r,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const i=this.dtFormatter(e,r),s=i.formatToParts(),o=s.find(c=>c.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new dn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new hn(e,this.intl,r)}relFormatter(e={}){return new un(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Xl(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||yr(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Sr()?ln(this.locale):Fr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let w1=null;class se extends kt{static get utcInstance(){return w1===null&&(w1=new se(0)),w1}static instance(e){return e===0?se.utcInstance:new se(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new se(a1(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Et(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Et(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Et(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class mn extends kt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Te(l,e){if(V(l)||l===null)return e;if(l instanceof kt)return l;if(wn(l)){const r=l.toLowerCase();return r==="default"?e:r==="local"||r==="system"?r1.instance:r==="utc"||r==="gmt"?se.utcInstance:se.parseSpecifier(r)||Le.create(l)}else return Ie(l)?se.instance(l):typeof l=="object"&&"offset"in l&&typeof l.offset=="function"?l:new mn(l)}const G1={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},h2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fn=G1.hanidec.replace(/[\[|\]]/g,"").split("");function vn(l){let e=parseInt(l,10);if(isNaN(e)){e="";for(let r=0;r<l.length;r++){const n=l.charCodeAt(r);if(l[r].search(G1.hanidec)!==-1)e+=fn.indexOf(l[r]);else for(const i in h2){const[s,o]=h2[i];n>=s&&n<=o&&(e+=n-s)}}return parseInt(e,10)}else return e}const I1=new Map;function pn(){I1.clear()}function we({numberingSystem:l},e=""){const r=l||"latn";let n=I1.get(r);n===void 0&&(n=new Map,I1.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${G1[r]}${e}`),n.set(e,i)),i}let u2=()=>Date.now(),m2="system",f2=null,v2=null,p2=null,g2=60,x2,w2=null;class J{static get now(){return u2}static set now(e){u2=e}static set defaultZone(e){m2=e}static get defaultZone(){return Te(m2,r1.instance)}static get defaultLocale(){return f2}static set defaultLocale(e){f2=e}static get defaultNumberingSystem(){return v2}static set defaultNumberingSystem(e){v2=e}static get defaultOutputCalendar(){return p2}static set defaultOutputCalendar(e){p2=e}static get defaultWeekSettings(){return w2}static set defaultWeekSettings(e){w2=O1(e)}static get twoDigitCutoffYear(){return g2}static set twoDigitCutoffYear(e){g2=e%100}static get throwOnInvalid(){return x2}static set throwOnInvalid(e){x2=e}static resetCaches(){_.resetCache(),Le.resetCache(),S.resetCache(),pn()}}class ze{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Hr=[0,31,59,90,120,151,181,212,243,273,304,334],kr=[0,31,60,91,121,152,182,213,244,274,305,335];function ge(l,e){return new ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${l}, which is invalid`)}function $1(l,e,r){const n=new Date(Date.UTC(l,e-1,r));l<100&&l>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return i===0?7:i}function br(l,e,r){return r+(bt(l)?kr:Hr)[e-1]}function jr(l,e){const r=bt(l)?kr:Hr,n=r.findIndex(s=>s<e),i=e-r[n];return{month:n+1,day:i}}function q1(l,e){return(l-e+7)%7+1}function Xt(l,e=4,r=1){const{year:n,month:i,day:s}=l,o=br(n,i,s),c=q1($1(n,i,s),r);let d=Math.floor((o-c+14-e)/7),f;return d<1?(f=n-1,d=yt(f,e,r)):d>yt(n,e,r)?(f=n+1,d=1):f=n,{weekYear:f,weekNumber:d,weekday:c,...i1(l)}}function E2(l,e=4,r=1){const{weekYear:n,weekNumber:i,weekday:s}=l,o=q1($1(n,1,e),r),c=nt(n);let d=i*7+s-o-7+e,f;d<1?(f=n-1,d+=nt(f)):d>c?(f=n+1,d-=nt(n)):f=n;const{month:p,day:x}=jr(f,d);return{year:f,month:p,day:x,...i1(l)}}function E1(l){const{year:e,month:r,day:n}=l,i=br(e,r,n);return{year:e,ordinal:i,...i1(l)}}function z2(l){const{year:e,ordinal:r}=l,{month:n,day:i}=jr(e,r);return{year:e,month:n,day:i,...i1(l)}}function M2(l,e){if(!V(l.localWeekday)||!V(l.localWeekNumber)||!V(l.localWeekYear)){if(!V(l.weekday)||!V(l.weekNumber)||!V(l.weekYear))throw new rt("Cannot mix locale-based week fields with ISO-based week fields");return V(l.localWeekday)||(l.weekday=l.localWeekday),V(l.localWeekNumber)||(l.weekNumber=l.localWeekNumber),V(l.localWeekYear)||(l.weekYear=l.localWeekYear),delete l.localWeekday,delete l.localWeekNumber,delete l.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function gn(l,e=4,r=1){const n=l1(l.weekYear),i=xe(l.weekNumber,1,yt(l.weekYear,e,r)),s=xe(l.weekday,1,7);return n?i?s?!1:ge("weekday",l.weekday):ge("week",l.weekNumber):ge("weekYear",l.weekYear)}function xn(l){const e=l1(l.year),r=xe(l.ordinal,1,nt(l.year));return e?r?!1:ge("ordinal",l.ordinal):ge("year",l.year)}function Lr(l){const e=l1(l.year),r=xe(l.month,1,12),n=xe(l.day,1,e1(l.year,l.month));return e?r?n?!1:ge("day",l.day):ge("month",l.month):ge("year",l.year)}function Dr(l){const{hour:e,minute:r,second:n,millisecond:i}=l,s=xe(e,0,23)||e===24&&r===0&&n===0&&i===0,o=xe(r,0,59),c=xe(n,0,59),d=xe(i,0,999);return s?o?c?d?!1:ge("millisecond",i):ge("second",n):ge("minute",r):ge("hour",e)}function V(l){return typeof l>"u"}function Ie(l){return typeof l=="number"}function l1(l){return typeof l=="number"&&l%1===0}function wn(l){return typeof l=="string"}function En(l){return Object.prototype.toString.call(l)==="[object Date]"}function Nr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function zn(l){return Array.isArray(l)?l:[l]}function C2(l,e,r){if(l.length!==0)return l.reduce((n,i)=>{const s=[e(i),i];return n&&r(n[0],s[0])===n[0]?n:s},null)[1]}function Mn(l,e){return e.reduce((r,n)=>(r[n]=l[n],r),{})}function st(l,e){return Object.prototype.hasOwnProperty.call(l,e)}function O1(l){if(l==null)return null;if(typeof l!="object")throw new ae("Week settings must be an object");if(!xe(l.firstDay,1,7)||!xe(l.minimalDays,1,7)||!Array.isArray(l.weekend)||l.weekend.some(e=>!xe(e,1,7)))throw new ae("Invalid week settings");return{firstDay:l.firstDay,minimalDays:l.minimalDays,weekend:Array.from(l.weekend)}}function xe(l,e,r){return l1(l)&&l>=e&&l<=r}function Cn(l,e){return l-e*Math.floor(l/e)}function te(l,e=2){const r=l<0;let n;return r?n="-"+(""+-l).padStart(e,"0"):n=(""+l).padStart(e,"0"),n}function Be(l){if(!(V(l)||l===null||l===""))return parseInt(l,10)}function Re(l){if(!(V(l)||l===null||l===""))return parseFloat(l)}function Y1(l){if(!(V(l)||l===null||l==="")){const e=parseFloat("0."+l)*1e3;return Math.floor(e)}}function K1(l,e,r="round"){const n=10**e;switch(r){case"expand":return l>0?Math.ceil(l*n)/n:Math.floor(l*n)/n;case"trunc":return Math.trunc(l*n)/n;case"round":return Math.round(l*n)/n;case"floor":return Math.floor(l*n)/n;case"ceil":return Math.ceil(l*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function bt(l){return l%4===0&&(l%100!==0||l%400===0)}function nt(l){return bt(l)?366:365}function e1(l,e){const r=Cn(e-1,12)+1,n=l+(e-r)/12;return r===2?bt(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function n1(l){let e=Date.UTC(l.year,l.month-1,l.day,l.hour,l.minute,l.second,l.millisecond);return l.year<100&&l.year>=0&&(e=new Date(e),e.setUTCFullYear(l.year,l.month-1,l.day)),+e}function y2(l,e,r){return-q1($1(l,1,e),r)+e-1}function yt(l,e=4,r=1){const n=y2(l,e,r),i=y2(l+1,e,r);return(nt(l)-n+i)/7}function W1(l){return l>99?l:l>J.twoDigitCutoffYear?1900+l:2e3+l}function Vr(l,e,r,n=null){const i=new Date(l),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);const o={timeZoneName:e,...s},c=new Intl.DateTimeFormat(r,o).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function a1(l,e){let r=parseInt(l,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function Br(l){const e=Number(l);if(typeof l=="boolean"||l===""||!Number.isFinite(e))throw new ae(`Invalid unit value ${l}`);return e}function t1(l,e){const r={};for(const n in l)if(st(l,n)){const i=l[n];if(i==null)continue;r[e(n)]=Br(i)}return r}function Et(l,e){const r=Math.trunc(Math.abs(l/60)),n=Math.trunc(Math.abs(l%60)),i=l>=0?"+":"-";switch(e){case"short":return`${i}${te(r,2)}:${te(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${te(r,2)}${te(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function i1(l){return Mn(l,["hour","minute","second","millisecond"])}const yn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fn=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ar(l){switch(l){case"narrow":return[...Fn];case"short":return[...Tr];case"long":return[...yn];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ir=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Or=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Hn=["M","T","W","T","F","S","S"];function Wr(l){switch(l){case"narrow":return[...Hn];case"short":return[...Or];case"long":return[...Ir];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Rr=["AM","PM"],kn=["Before Christ","Anno Domini"],bn=["BC","AD"],jn=["B","A"];function _r(l){switch(l){case"narrow":return[...jn];case"short":return[...bn];case"long":return[...kn];default:return null}}function Ln(l){return Rr[l.hour<12?0:1]}function Dn(l,e){return Wr(e)[l.weekday-1]}function Nn(l,e){return Ar(e)[l.month-1]}function Sn(l,e){return _r(e)[l.year<0?0:1]}function Vn(l,e,r="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(l)===-1;if(r==="auto"&&s){const x=l==="days";switch(e){case 1:return x?"tomorrow":`next ${i[l][0]}`;case-1:return x?"yesterday":`last ${i[l][0]}`;case 0:return x?"today":`this ${i[l][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,f=i[l],p=n?d?f[1]:f[2]||f[1]:d?i[l][0]:l;return o?`${c} ${p} ago`:`in ${c} ${p}`}function F2(l,e){let r="";for(const n of l)n.literal?r+=n.val:r+=e(n.val);return r}const Bn={D:Qt,DD:ar,DDD:ir,DDDD:sr,t:or,tt:cr,ttt:dr,tttt:hr,T:ur,TT:mr,TTT:fr,TTTT:vr,f:pr,ff:xr,fff:Er,ffff:Mr,F:gr,FF:wr,FFF:zr,FFFF:Cr};class ie{static create(e,r={}){return new ie(e,r)}static parseFormat(e){let r=null,n="",i=!1;const s=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?((n.length>0||i)&&s.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return Bn[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return te(e,r);const i={...this.opts};return r>0&&(i.padTo=r),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(g,z)=>this.loc.extract(e,g,z),o=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",c=()=>n?Ln(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(g,z)=>n?Nn(e,g):s(z?{month:g}:{month:g,day:"numeric"},"month"),f=(g,z)=>n?Dn(e,g):s(z?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),p=g=>{const z=ie.macroTokenToFormatOpts(g);return z?this.formatWithSystemDefault(e,z):g},x=g=>n?Sn(e,g):s({era:g},"era"),E=g=>{switch(g){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(g)}};return F2(ie.parseFormat(r),E)}formatDurationFromString(e,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=p=>{switch(p[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=(p,x)=>E=>{const g=i(E);if(g){const z=x.isNegativeDuration&&g!==x.largestUnit?n:1;let v;return this.opts.signMode==="negativeLargestOnly"&&g!==x.largestUnit?v="never":this.opts.signMode==="all"?v="always":v="auto",this.num(p.get(g)*z,E.length,v)}else return E},o=ie.parseFormat(r),c=o.reduce((p,{literal:x,val:E})=>x?p:p.concat(E),[]),d=e.shiftTo(...c.map(i).filter(p=>p)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return F2(o,s(d,f))}}const Pr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ct(...l){const e=l.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function dt(...l){return e=>l.reduce(([r,n,i],s)=>{const[o,c,d]=s(e,i);return[{...r,...o},c||n,d]},[{},null,1]).slice(0,2)}function ht(l,...e){if(l==null)return[null,null];for(const[r,n]of e){const i=r.exec(l);if(i)return n(i)}return[null,null]}function Zr(...l){return(e,r)=>{const n={};let i;for(i=0;i<l.length;i++)n[l[i]]=Be(e[r+i]);return[n,null,r+i]}}const Ur=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Tn=`(?:${Ur.source}?(?:\\[(${Pr.source})\\])?)?`,J1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gr=RegExp(`${J1.source}${Tn}`),Q1=RegExp(`(?:[Tt]${Gr.source})?`),An=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,In=/(\d{4})-?W(\d\d)(?:-?(\d))?/,On=/(\d{4})-?(\d{3})/,Wn=Zr("weekYear","weekNumber","weekDay"),Rn=Zr("year","ordinal"),_n=/(\d{4})-(\d\d)-(\d\d)/,$r=RegExp(`${J1.source} ?(?:${Ur.source}|(${Pr.source}))?`),Pn=RegExp(`(?: ${$r.source})?`);function at(l,e,r){const n=l[e];return V(n)?r:Be(n)}function Zn(l,e){return[{year:at(l,e),month:at(l,e+1,1),day:at(l,e+2,1)},null,e+3]}function ut(l,e){return[{hours:at(l,e,0),minutes:at(l,e+1,0),seconds:at(l,e+2,0),milliseconds:Y1(l[e+3])},null,e+4]}function jt(l,e){const r=!l[e]&&!l[e+1],n=a1(l[e+1],l[e+2]),i=r?null:se.instance(n);return[{},i,e+3]}function Lt(l,e){const r=l[e]?Le.create(l[e]):null;return[{},r,e+1]}const Un=RegExp(`^T?${J1.source}$`),Gn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function $n(l){const[e,r,n,i,s,o,c,d,f]=l,p=e[0]==="-",x=d&&d[0]==="-",E=(g,z=!1)=>g!==void 0&&(z||g&&p)?-g:g;return[{years:E(Re(r)),months:E(Re(n)),weeks:E(Re(i)),days:E(Re(s)),hours:E(Re(o)),minutes:E(Re(c)),seconds:E(Re(d),d==="-0"),milliseconds:E(Y1(f),x)}]}const qn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function X1(l,e,r,n,i,s,o){const c={year:e.length===2?W1(Be(e)):Be(e),month:Tr.indexOf(r)+1,day:Be(n),hour:Be(i),minute:Be(s)};return o&&(c.second=Be(o)),l&&(c.weekday=l.length>3?Ir.indexOf(l)+1:Or.indexOf(l)+1),c}const Yn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kn(l){const[,e,r,n,i,s,o,c,d,f,p,x]=l,E=X1(e,i,n,r,s,o,c);let g;return d?g=qn[d]:f?g=0:g=a1(p,x),[E,new se(g)]}function Jn(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,e0=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function H2(l){const[,e,r,n,i,s,o,c]=l;return[X1(e,i,n,r,s,o,c),se.utcInstance]}function t0(l){const[,e,r,n,i,s,o,c]=l;return[X1(e,c,r,n,i,s,o),se.utcInstance]}const r0=ct(An,Q1),l0=ct(In,Q1),n0=ct(On,Q1),a0=ct(Gr),qr=dt(Zn,ut,jt,Lt),i0=dt(Wn,ut,jt,Lt),s0=dt(Rn,ut,jt,Lt),o0=dt(ut,jt,Lt);function c0(l){return ht(l,[r0,qr],[l0,i0],[n0,s0],[a0,o0])}function d0(l){return ht(Jn(l),[Yn,Kn])}function h0(l){return ht(l,[Qn,H2],[Xn,H2],[e0,t0])}function u0(l){return ht(l,[Gn,$n])}const m0=dt(ut);function f0(l){return ht(l,[Un,m0])}const v0=ct(_n,Pn),p0=ct($r),g0=dt(ut,jt,Lt);function x0(l){return ht(l,[v0,qr],[p0,g0])}const k2="Invalid Duration",Yr={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},w0={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Yr},pe=146097/400,Qe=146097/4800,E0={years:{quarters:4,months:12,weeks:pe/7,days:pe,hours:pe*24,minutes:pe*24*60,seconds:pe*24*60*60,milliseconds:pe*24*60*60*1e3},quarters:{months:3,weeks:pe/28,days:pe/4,hours:pe*24/4,minutes:pe*24*60/4,seconds:pe*24*60*60/4,milliseconds:pe*24*60*60*1e3/4},months:{weeks:Qe/7,days:Qe,hours:Qe*24,minutes:Qe*24*60,seconds:Qe*24*60*60,milliseconds:Qe*24*60*60*1e3},...Yr},Ze=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],z0=Ze.slice(0).reverse();function be(l,e,r=!1){const n={values:r?e.values:{...l.values,...e.values||{}},loc:l.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||l.conversionAccuracy,matrix:e.matrix||l.matrix};return new W(n)}function Kr(l,e){let r=e.milliseconds??0;for(const n of z0.slice(1))e[n]&&(r+=e[n]*l[n].milliseconds);return r}function b2(l,e){const r=Kr(l,e)<0?-1:1;Ze.reduceRight((n,i)=>{if(V(e[i]))return n;if(n){const s=e[n]*r,o=l[i][n],c=Math.floor(s/o);e[i]+=c*r,e[n]-=c*o*r}return i},null),Ze.reduce((n,i)=>{if(V(e[i]))return n;if(n){const s=e[n]%1;e[n]-=s,e[i]+=s*l[n][i]}return i},null)}function j2(l){const e={};for(const[r,n]of Object.entries(l))n!==0&&(e[r]=n);return e}class W{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?E0:w0;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||_.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return W.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ae(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new W({values:t1(e,W.normalizeUnit),loc:_.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ie(e))return W.fromMillis(e);if(W.isDuration(e))return e;if(typeof e=="object")return W.fromObject(e);throw new ae(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=u0(e);return n?W.fromObject(n,r):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=f0(e);return n?W.fromObject(n,r):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the Duration is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Gl(n);return new W({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new nr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ie.create(this.loc,n).formatDurationFromString(this,e):k2}toHuman(e={}){if(!this.isValid)return k2;const r=e.showZeros!==!1,n=Ze.map(i=>{const s=this.values[i];return V(s)||s===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=K1(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Kr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e),n={};for(const i of Ze)(st(r.values,i)||st(this.values,i))&&(n[i]=r.get(i)+this.get(i));return be(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Br(e(this.values[n],n));return be(this,{values:r},!0)}get(e){return this[W.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...t1(e,W.normalizeUnit)};return be(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return be(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return b2(this.matrix,e),be(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=j2(this.normalize().shiftToAll().toObject());return be(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>W.normalizeUnit(o));const r={},n={},i=this.toObject();let s;for(const o of Ze)if(e.indexOf(o)>=0){s=o;let c=0;for(const f in n)c+=this.matrix[f][o]*n[f],n[f]=0;Ie(i[o])&&(c+=i[o]);const d=Math.trunc(c);r[o]=d,n[o]=(c*1e3-d*1e3)/1e3}else Ie(i[o])&&(n[o]=i[o]);for(const o in n)n[o]!==0&&(r[s]+=o===s?n[o]:n[o]/this.matrix[s][o]);return b2(this.matrix,r),be(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return be(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=j2(this.values);return be(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(const n of Ze)if(!r(this.values[n],e.values[n]))return!1;return!0}}const Xe="Invalid Interval";function M0(l,e){return!l||!l.isValid?K.invalid("missing or invalid start"):!e||!e.isValid?K.invalid("missing or invalid end"):e<l?K.invalid("end before start",`The end of an interval must be after its start, but you had start=${l.toISO()} and end=${e.toISO()}`):null}class K{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the Interval is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Ul(n);return new K({invalid:n})}static fromDateTimes(e,r){const n=vt(e),i=vt(r),s=M0(n,i);return s??new K({start:n,end:i})}static after(e,r){const n=W.fromDurationLike(r),i=vt(e);return K.fromDateTimes(i,i.plus(n))}static before(e,r){const n=W.fromDurationLike(r),i=vt(e);return K.fromDateTimes(i.minus(n),i)}static fromISO(e,r){const[n,i]=(e||"").split("/",2);if(n&&i){let s,o;try{s=S.fromISO(n,r),o=s.isValid}catch{o=!1}let c,d;try{c=S.fromISO(i,r),d=c.isValid}catch{d=!1}if(o&&d)return K.fromDateTimes(s,c);if(o){const f=W.fromISO(i,r);if(f.isValid)return K.after(s,f)}else if(d){const f=W.fromISO(n,r);if(f.isValid)return K.before(c,f)}}return K.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(e,r);let i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?K.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(vt).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),n=[];let{s:i}=this,s=0;for(;i<this.e;){const o=r[s]||this.e,c=+o>+this.e?this.e:o;n.push(K.fromDateTimes(i,c)),i=c,s+=1}return n}splitBy(e){const r=W.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,s;const o=[];for(;n<this.e;){const c=this.start.plus(r.mapUnits(d=>d*i));s=+c>+this.e?this.e:c,o.push(K.fromDateTimes(n,s)),n=s,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:K.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return K.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((i,s)=>i.s-s.s).reduce(([i,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[i,s.union(o)]:[i.concat([s]),o]:[i,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const i=[],s=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...s),c=o.sort((d,f)=>d.time-f.time);for(const d of c)n+=d.type==="s"?1:-1,n===1?r=d.time:(r&&+r!=+d.time&&i.push(K.fromDateTimes(r,d.time)),r=null);return K.merge(i)}difference(...e){return K.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xe}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Qt,r={}){return this.isValid?ie.create(this.s.loc.clone(r),e).formatInterval(this):Xe}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Xe}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xe}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Xe}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Xe}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):W.invalid(this.invalidReason)}mapEndpoints(e){return K.fromDateTimes(e(this.s),e(this.e))}}class It{static hasDST(e=J.defaultZone){const r=S.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Le.isValidZone(e)}static normalizeZone(e){return Te(e,J.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||_.create(r,n,s)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||_.create(r,n,s)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return _.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return _.create(r,null,"gregory").eras(e)}static features(){return{relative:Nr(),localeWeek:Sr()}}}function L2(l,e){const r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(l);return Math.floor(W.fromMillis(n).as("days"))}function C0(l,e,r){const n=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const p=L2(d,f);return(p-p%7)/7}],["days",L2]],i={},s=l;let o,c;for(const[d,f]of n)r.indexOf(d)>=0&&(o=d,i[d]=f(l,e),c=s.plus(i),c>e?(i[d]--,l=s.plus(i),l>e&&(c=l,i[d]--,l=s.plus(i))):l=c);return[l,i,c,o]}function y0(l,e,r,n){let[i,s,o,c]=C0(l,e,r);const d=e-i,f=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);f.length===0&&(o<e&&(o=i.plus({[c]:1})),o!==i&&(s[c]=(s[c]||0)+d/(o-i)));const p=W.fromObject(s,n);return f.length>0?W.fromMillis(d,n).shiftTo(...f).plus(p):p}const F0="missing Intl.DateTimeFormat.formatToParts support";function R(l,e=r=>r){return{regex:l,deser:([r])=>e(vn(r))}}const H0=" ",Jr=`[ ${H0}]`,Qr=new RegExp(Jr,"g");function k0(l){return l.replace(/\./g,"\\.?").replace(Qr,Jr)}function D2(l){return l.replace(/\./g,"").replace(Qr," ").toLowerCase()}function Ee(l,e){return l===null?null:{regex:RegExp(l.map(k0).join("|")),deser:([r])=>l.findIndex(n=>D2(r)===D2(n))+e}}function N2(l,e){return{regex:l,deser:([,r,n])=>a1(r,n),groups:e}}function Ot(l){return{regex:l,deser:([e])=>e}}function b0(l){return l.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function j0(l,e){const r=we(e),n=we(e,"{2}"),i=we(e,"{3}"),s=we(e,"{4}"),o=we(e,"{6}"),c=we(e,"{1,2}"),d=we(e,"{1,3}"),f=we(e,"{1,6}"),p=we(e,"{1,9}"),x=we(e,"{2,4}"),E=we(e,"{4,6}"),g=w=>({regex:RegExp(b0(w.val)),deser:([M])=>M,literal:!0}),v=(w=>{if(l.literal)return g(w);switch(w.val){case"G":return Ee(e.eras("short"),0);case"GG":return Ee(e.eras("long"),0);case"y":return R(f);case"yy":return R(x,W1);case"yyyy":return R(s);case"yyyyy":return R(E);case"yyyyyy":return R(o);case"M":return R(c);case"MM":return R(n);case"MMM":return Ee(e.months("short",!0),1);case"MMMM":return Ee(e.months("long",!0),1);case"L":return R(c);case"LL":return R(n);case"LLL":return Ee(e.months("short",!1),1);case"LLLL":return Ee(e.months("long",!1),1);case"d":return R(c);case"dd":return R(n);case"o":return R(d);case"ooo":return R(i);case"HH":return R(n);case"H":return R(c);case"hh":return R(n);case"h":return R(c);case"mm":return R(n);case"m":return R(c);case"q":return R(c);case"qq":return R(n);case"s":return R(c);case"ss":return R(n);case"S":return R(d);case"SSS":return R(i);case"u":return Ot(p);case"uu":return Ot(c);case"uuu":return R(r);case"a":return Ee(e.meridiems(),0);case"kkkk":return R(s);case"kk":return R(x,W1);case"W":return R(c);case"WW":return R(n);case"E":case"c":return R(r);case"EEE":return Ee(e.weekdays("short",!1),1);case"EEEE":return Ee(e.weekdays("long",!1),1);case"ccc":return Ee(e.weekdays("short",!0),1);case"cccc":return Ee(e.weekdays("long",!0),1);case"Z":case"ZZ":return N2(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return N2(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Ot(/[a-z_+-/]{1,256}?/i);case" ":return Ot(/[^\S\n\r]/);default:return g(w)}})(l)||{invalidReason:F0};return v.token=l,v}const L0={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function D0(l,e,r){const{type:n,value:i}=l;if(n==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const s=e[n];let o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let c=L0[o];if(typeof c=="object"&&(c=c[s]),c)return{literal:!1,val:c}}function N0(l){return[`^${l.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,l]}function S0(l,e,r){const n=l.match(e);if(n){const i={};let s=1;for(const o in r)if(st(r,o)){const c=r[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(s,s+d))),s+=d}return[n,i]}else return[n,{}]}function V0(l){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return V(l.z)||(r=Le.create(l.z)),V(l.Z)||(r||(r=new se(l.Z)),n=l.Z),V(l.q)||(l.M=(l.q-1)*3+1),V(l.h)||(l.h<12&&l.a===1?l.h+=12:l.h===12&&l.a===0&&(l.h=0)),l.G===0&&l.y&&(l.y=-l.y),V(l.u)||(l.S=Y1(l.u)),[Object.keys(l).reduce((s,o)=>{const c=e(o);return c&&(s[c]=l[o]),s},{}),r,n]}let z1=null;function B0(){return z1||(z1=S.fromMillis(1555555555555)),z1}function T0(l,e){if(l.literal)return l;const r=ie.macroTokenToFormatOpts(l.val),n=r3(r,e);return n==null||n.includes(void 0)?l:n}function Xr(l,e){return Array.prototype.concat(...l.map(r=>T0(r,e)))}class e3{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Xr(ie.parseFormat(r),e),this.units=this.tokens.map(n=>j0(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,i]=N0(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){const[r,n]=S0(e,this.regex,this.handlers),[i,s,o]=n?V0(n):[null,null,void 0];if(st(n,"a")&&st(n,"H"))throw new rt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:s,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function t3(l,e,r){return new e3(l,r).explainFromTokens(e)}function A0(l,e,r){const{result:n,zone:i,specificOffset:s,invalidReason:o}=t3(l,e,r);return[n,i,s,o]}function r3(l,e){if(!l)return null;const n=ie.create(e,l).dtFormatter(B0()),i=n.formatToParts(),s=n.resolvedOptions();return i.map(o=>D0(o,l,s))}const M1="Invalid DateTime",S2=864e13;function gt(l){return new ze("unsupported zone",`the zone "${l.name}" is not supported`)}function C1(l){return l.weekData===null&&(l.weekData=Xt(l.c)),l.weekData}function y1(l){return l.localWeekData===null&&(l.localWeekData=Xt(l.c,l.loc.getMinDaysInFirstWeek(),l.loc.getStartOfWeek())),l.localWeekData}function _e(l,e){const r={ts:l.ts,zone:l.zone,c:l.c,o:l.o,loc:l.loc,invalid:l.invalid};return new S({...r,...e,old:r})}function l3(l,e,r){let n=l-e*60*1e3;const i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;const s=r.offset(n);return i===s?[n,i]:[l-Math.min(i,s)*60*1e3,Math.max(i,s)]}function Wt(l,e){l+=e*60*1e3;const r=new Date(l);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function _t(l,e,r){return l3(n1(l),e,r)}function V2(l,e){const r=l.o,n=l.c.year+Math.trunc(e.years),i=l.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...l.c,year:n,month:i,day:Math.min(l.c.day,e1(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=W.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=n1(s);let[d,f]=l3(c,r,l.zone);return o!==0&&(d+=o,f=l.zone.offset(d)),{ts:d,o:f}}function et(l,e,r,n,i,s){const{setZone:o,zone:c}=r;if(l&&Object.keys(l).length!==0||e){const d=e||c,f=S.fromObject(l,{...r,zone:d,specificOffset:s});return o?f:f.setZone(c)}else return S.invalid(new ze("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Rt(l,e,r=!0){return l.isValid?ie.create(_.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(l,e):null}function F1(l,e,r){const n=l.c.year>9999||l.c.year<0;let i="";if(n&&l.c.year>=0&&(i+="+"),i+=te(l.c.year,n?6:4),r==="year")return i;if(e){if(i+="-",i+=te(l.c.month),r==="month")return i;i+="-"}else if(i+=te(l.c.month),r==="month")return i;return i+=te(l.c.day),i}function B2(l,e,r,n,i,s,o){let c=!r||l.c.millisecond!==0||l.c.second!==0,d="";switch(o){case"day":case"month":case"year":break;default:if(d+=te(l.c.hour),o==="hour")break;if(e){if(d+=":",d+=te(l.c.minute),o==="minute")break;c&&(d+=":",d+=te(l.c.second))}else{if(d+=te(l.c.minute),o==="minute")break;c&&(d+=te(l.c.second))}if(o==="second")break;c&&(!n||l.c.millisecond!==0)&&(d+=".",d+=te(l.c.millisecond,3))}return i&&(l.isOffsetFixed&&l.offset===0&&!s?d+="Z":l.o<0?(d+="-",d+=te(Math.trunc(-l.o/60)),d+=":",d+=te(Math.trunc(-l.o%60))):(d+="+",d+=te(Math.trunc(l.o/60)),d+=":",d+=te(Math.trunc(l.o%60)))),s&&(d+="["+l.zone.ianaName+"]"),d}const n3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},I0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},O0={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pt=["year","month","day","hour","minute","second","millisecond"],W0=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],R0=["year","ordinal","hour","minute","second","millisecond"];function Zt(l){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[l.toLowerCase()];if(!e)throw new nr(l);return e}function T2(l){switch(l.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Zt(l)}}function _0(l){if(xt===void 0&&(xt=J.now()),l.type!=="iana")return l.offset(xt);const e=l.name;let r=R1.get(e);return r===void 0&&(r=l.offset(xt),R1.set(e,r)),r}function A2(l,e){const r=Te(e.zone,J.defaultZone);if(!r.isValid)return S.invalid(gt(r));const n=_.fromObject(e);let i,s;if(V(l.year))i=J.now();else{for(const d of Pt)V(l[d])&&(l[d]=n3[d]);const o=Lr(l)||Dr(l);if(o)return S.invalid(o);const c=_0(r);[i,s]=_t(l,c,r)}return new S({ts:i,zone:r,loc:n,o:s})}function I2(l,e,r){const n=V(r.round)?!0:r.round,i=V(r.rounding)?"trunc":r.rounding,s=(c,d)=>(c=K1(c,n||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(c,d)),o=c=>r.calendary?e.hasSame(l,c)?0:e.startOf(c).diff(l.startOf(c),c).get(c):e.diff(l,c).get(c);if(r.unit)return s(o(r.unit),r.unit);for(const c of r.units){const d=o(c);if(Math.abs(d)>=1)return s(d,c)}return s(l>e?-0:0,r.units[r.units.length-1])}function O2(l){let e={},r;return l.length>0&&typeof l[l.length-1]=="object"?(e=l[l.length-1],r=Array.from(l).slice(0,l.length-1)):r=Array.from(l),[e,r]}let xt;const R1=new Map;class S{constructor(e){const r=e.zone||J.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new ze("invalid input"):null)||(r.isValid?null:gt(r));this.ts=V(e.ts)?J.now():e.ts;let i=null,s=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,s]=[e.old.c,e.old.o];else{const c=Ie(e.o)&&!e.old?e.o:r.offset(this.ts);i=Wt(this.ts,c),n=Number.isNaN(i.year)?new ze("invalid input"):null,i=n?null:i,s=n?null:c}this._zone=r,this.loc=e.loc||_.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,r]=O2(arguments),[n,i,s,o,c,d,f]=r;return A2({year:n,month:i,day:s,hour:o,minute:c,second:d,millisecond:f},e)}static utc(){const[e,r]=O2(arguments),[n,i,s,o,c,d,f]=r;return e.zone=se.utcInstance,A2({year:n,month:i,day:s,hour:o,minute:c,second:d,millisecond:f},e)}static fromJSDate(e,r={}){const n=En(e)?e.valueOf():NaN;if(Number.isNaN(n))return S.invalid("invalid input");const i=Te(r.zone,J.defaultZone);return i.isValid?new S({ts:n,zone:i,loc:_.fromObject(r)}):S.invalid(gt(i))}static fromMillis(e,r={}){if(Ie(e))return e<-S2||e>S2?S.invalid("Timestamp out of range"):new S({ts:e,zone:Te(r.zone,J.defaultZone),loc:_.fromObject(r)});throw new ae(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Ie(e))return new S({ts:e*1e3,zone:Te(r.zone,J.defaultZone),loc:_.fromObject(r)});throw new ae("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=Te(r.zone,J.defaultZone);if(!n.isValid)return S.invalid(gt(n));const i=_.fromObject(r),s=t1(e,T2),{minDaysInFirstWeek:o,startOfWeek:c}=M2(s,i),d=J.now(),f=V(r.specificOffset)?n.offset(d):r.specificOffset,p=!V(s.ordinal),x=!V(s.year),E=!V(s.month)||!V(s.day),g=x||E,z=s.weekYear||s.weekNumber;if((g||p)&&z)throw new rt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(E&&p)throw new rt("Can't mix ordinal dates with month/day");const v=z||s.weekday&&!g;let w,M,y=Wt(d,f);v?(w=W0,M=I0,y=Xt(y,o,c)):p?(w=R0,M=O0,y=E1(y)):(w=Pt,M=n3);let L=!1;for(const q of w){const Q=s[q];V(Q)?L?s[q]=M[q]:s[q]=y[q]:L=!0}const I=v?gn(s,o,c):p?xn(s):Lr(s),N=I||Dr(s);if(N)return S.invalid(N);const b=v?E2(s,o,c):p?z2(s):s,[H,k]=_t(b,f,n),O=new S({ts:H,zone:n,o:k,loc:i});return s.weekday&&g&&e.weekday!==O.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${O.toISO()}`):O.isValid?O:S.invalid(O.invalid)}static fromISO(e,r={}){const[n,i]=c0(e);return et(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,i]=d0(e);return et(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,i]=h0(e);return et(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(V(e)||V(r))throw new ae("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[c,d,f,p]=A0(o,e,r);return p?S.invalid(p):et(c,d,n,`format ${r}`,e,f)}static fromString(e,r,n={}){return S.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,i]=x0(e);return et(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the DateTime is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Zl(n);return new S({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=r3(e,_.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Xr(ie.parseFormat(e),_.fromObject(r)).map(i=>i.val).join("")}static resetCache(){xt=void 0,R1.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?C1(this).weekYear:NaN}get weekNumber(){return this.isValid?C1(this).weekNumber:NaN}get weekday(){return this.isValid?C1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?y1(this).weekday:NaN}get localWeekNumber(){return this.isValid?y1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?y1(this).weekYear:NaN}get ordinal(){return this.isValid?E1(this.c).ordinal:NaN}get monthShort(){return this.isValid?It.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?It.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?It.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?It.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=n1(this.c),i=this.zone.offset(n-e),s=this.zone.offset(n+e),o=this.zone.offset(n-i*r),c=this.zone.offset(n-s*r);if(o===c)return[this];const d=n-o*r,f=n-c*r,p=Wt(d,o),x=Wt(f,c);return p.hour===x.hour&&p.minute===x.minute&&p.second===x.second&&p.millisecond===x.millisecond?[_e(this,{ts:d}),_e(this,{ts:f})]:[this]}get isInLeapYear(){return bt(this.year)}get daysInMonth(){return e1(this.year,this.month)}get daysInYear(){return this.isValid?nt(this.year):NaN}get weeksInWeekYear(){return this.isValid?yt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?yt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:i}=ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(se.instance(e),r)}toLocal(){return this.setZone(J.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Te(e,J.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){const s=e.offset(this.ts),o=this.toObject();[i]=_t(o,s,e)}return _e(this,{ts:i,zone:e})}else return S.invalid(gt(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return _e(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=t1(e,T2),{minDaysInFirstWeek:n,startOfWeek:i}=M2(r,this.loc),s=!V(r.weekYear)||!V(r.weekNumber)||!V(r.weekday),o=!V(r.ordinal),c=!V(r.year),d=!V(r.month)||!V(r.day),f=c||d,p=r.weekYear||r.weekNumber;if((f||o)&&p)throw new rt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new rt("Can't mix ordinal dates with month/day");let x;s?x=E2({...Xt(this.c,n,i),...r},n,i):V(r.ordinal)?(x={...this.toObject(),...r},V(r.day)&&(x.day=Math.min(e1(x.year,x.month),x.day))):x=z2({...E1(this.c),...r});const[E,g]=_t(x,this.o,this.zone);return _e(this,{ts:E,o:g})}plus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e);return _e(this,V2(this,r))}minus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e).negate();return _e(this,V2(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},i=W.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(r){const s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(n.weekNumber=this.weekNumber-1),n.weekday=s}else n.weekday=1;if(i==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?ie.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):M1}toLocaleString(e=Qt,r={}){return this.isValid?ie.create(this.loc.clone(r),e).formatDateTime(this):M1}toLocaleParts(e={}){return this.isValid?ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=Zt(o);const c=e==="extended";let d=F1(this,c,o);return Pt.indexOf(o)>=3&&(d+="T"),d+=B2(this,c,r,n,i,s,o),d}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?F1(this,e==="extended",Zt(r)):null}toISOWeekDate(){return Rt(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended",precision:c="milliseconds"}={}){return this.isValid?(c=Zt(c),(i&&Pt.indexOf(c)>=3?"T":"")+B2(this,o==="extended",r,e,n,s,c)):null}toRFC2822(){return Rt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?F1(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),Rt(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():M1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return W.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=zn(r).map(W.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,f=y0(c,d,s,i);return o?f.negate():f}diffNow(e="milliseconds",r={}){return this.diff(S.now(),e,r)}until(e){return this.isValid?K.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(r,n)<=i&&i<=s.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||S.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(i=e.unit,s=void 0),I2(r,this.plus(n),{...e,numeric:"always",units:i,unit:s})}toRelativeCalendar(e={}){return this.isValid?I2(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new ae("min requires all arguments be DateTimes");return C2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new ae("max requires all arguments be DateTimes");return C2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return t3(o,e,r)}static fromStringExplain(e,r,n={}){return S.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){const{locale:n=null,numberingSystem:i=null}=r,s=_.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new e3(s,e)}static fromFormatParser(e,r,n={}){if(V(e)||V(r))throw new ae("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});if(!o.equals(r.locale))throw new ae(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:p}=r.explainFromTokens(e);return p?S.invalid(p):et(c,d,n,`format ${r.format}`,e,f)}static get DATE_SHORT(){return Qt}static get DATE_MED(){return ar}static get DATE_MED_WITH_WEEKDAY(){return $l}static get DATE_FULL(){return ir}static get DATE_HUGE(){return sr}static get TIME_SIMPLE(){return or}static get TIME_WITH_SECONDS(){return cr}static get TIME_WITH_SHORT_OFFSET(){return dr}static get TIME_WITH_LONG_OFFSET(){return hr}static get TIME_24_SIMPLE(){return ur}static get TIME_24_WITH_SECONDS(){return mr}static get TIME_24_WITH_SHORT_OFFSET(){return fr}static get TIME_24_WITH_LONG_OFFSET(){return vr}static get DATETIME_SHORT(){return pr}static get DATETIME_SHORT_WITH_SECONDS(){return gr}static get DATETIME_MED(){return xr}static get DATETIME_MED_WITH_SECONDS(){return wr}static get DATETIME_MED_WITH_WEEKDAY(){return ql}static get DATETIME_FULL(){return Er}static get DATETIME_FULL_WITH_SECONDS(){return zr}static get DATETIME_HUGE(){return Mr}static get DATETIME_HUGE_WITH_SECONDS(){return Cr}}function vt(l){if(S.isDateTime(l))return l;if(l&&l.valueOf&&Ie(l.valueOf()))return S.fromJSDate(l);if(l&&typeof l=="object")return S.fromObject(l);throw new ae(`Unknown datetime argument: ${l}, of type ${typeof l}`)}function a3({className:l,classNames:e,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:i="ghost",formatters:s,components:o,...c}){const d=j1.getDefaultClassNames();return a.jsx(j1.DayPicker,{showOutsideDays:r,className:m("group/calendar p-3 [--cell-size:--spacing(8)] bg-auxiliary-1 w-[17.75rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,l),captionLayout:n,formatters:{formatMonthDropdown:f=>S.fromJSDate(f).toFormat("MMM"),formatWeekdayName:f=>S.fromJSDate(f).toFormat("ccc"),...s},classNames:{root:m("w-fit",d.root),months:m("flex gap-4 flex-col md:flex-row relative",d.months),month:m("flex flex-col w-full gap-3",d.month),nav:m("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",d.nav),button_previous:m(Jt({variant:i}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-support-6 hover:bg-transparent",d.button_previous),button_next:m(Jt({variant:i}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-support-6 hover:bg-transparent",d.button_next),month_caption:m("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",d.month_caption),dropdowns:m("w-full flex items-center text-sm font-medium justify-center h-(--cell-size)",d.dropdowns),dropdown_root:m("relative has-focus:border-ring border-input has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",d.dropdown_root),dropdown:m("absolute bg-popover inset-0 opacity-0",d.dropdown),caption_label:m("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",d.caption_label),table:"w-full border-collapse",weekdays:m("flex",d.weekdays),weekday:m("text-support-6 rounded-md flex-1 font-normal text-[0.688rem] font-semibold select-none mb-2",d.weekday),week:m("flex w-full",d.week),week_number_header:m("select-none w-(--cell-size)",d.week_number_header),week_number:m("text-[0.8rem] select-none text-muted-foreground",d.week_number),day:m("relative w-full h-full text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",d.day),range_start:m("rounded-l-md bg-accent",d.range_start),range_middle:m("rounded-none",d.range_middle),range_end:m("rounded-r-md bg-accent",d.range_end),today:m("bg-primary-5 rounded-lg [&>button]:text-auxiliary-1 data-[selected=true]:rounded-none",d.today),outside:m("[&>button]:text-support-5 aria-selected:text-muted-foreground",d.outside),disabled:m("text-muted-foreground opacity-50",d.disabled),hidden:m("invisible",d.hidden),...e},components:{Root:({className:f,rootRef:p,...x})=>a.jsx("div",{"data-slot":"calendar",ref:p,className:m(f),...x}),Chevron:({className:f,orientation:p,...x})=>p==="left"?a.jsx(le.ChevronLeftIcon,{className:m("size-4",f),...x}):p==="right"?a.jsx(le.ChevronRightIcon,{className:m("size-4",f),...x}):a.jsx(le.ChevronDownIcon,{className:m("size-4",f),...x}),DayButton:i3,WeekNumber:({children:f,...p})=>a.jsx("td",{...p,children:a.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:f})}),...o},...c})}function i3({className:l,day:e,modifiers:r,...n}){const i=j1.getDefaultClassNames(),s=Ce.useRef(null);return Ce.useEffect(()=>{r.focused&&s.current?.focus()},[r.focused]),a.jsx(ye,{ref:s,variant:"ghost",size:"icon","data-day":S.fromJSDate(e.date).toISODate(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:m("data-[selected-single=true]:text-primary-5 text-support-7 hover:rounded-lg !p-0 data-[selected-single=true]:font-semibold hover:bg-primary-5 hover:font-semibold hover:!text-auxiliary-1 text-[0.938rem] data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary-5 data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary-5 data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",i.day,l),...n})}function qe({className:l,...e}){return a.jsx("div",{"data-slot":"card",className:m("bg-auxiliary-1 text-card-foreground flex flex-col gap-6 rounded-xl border py-6 border-support-5",l),...e})}function P0({className:l,...e}){return a.jsx("div",{"data-slot":"card-header",className:m("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...e})}function s3({className:l,...e}){return a.jsx("div",{"data-slot":"card-title",className:m("leading-none font-semibold",l),...e})}function o3({className:l,...e}){return a.jsx("div",{"data-slot":"card-description",className:m("text-muted-foreground text-sm",l),...e})}function Z0({className:l,...e}){return a.jsx("div",{"data-slot":"card-action",className:m("col-start-2 row-span-2 row-start-1 self-start justify-self-end",l),...e})}function Ye({className:l,...e}){return a.jsx("div",{"data-slot":"card-content",className:m("px-6",l),...e})}function c3({className:l,...e}){return a.jsx("div",{"data-slot":"card-footer",className:m("flex items-center px-6 [.border-t]:pt-6",l),...e})}function e2({className:l,...e}){return a.jsx(Il.Root,{"data-slot":"label",className:m(C.t1,"text-auxiliary-4 flex items-center gap-2 select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",l),...e})}function d3({className:l,label:e,...r}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(c2.Root,{"data-slot":"checkbox",className:m("peer border-input hover:border-primary-5 bg-auxiliary-1 dark:bg-input/30 data-[state=checked]:bg-primary-5 data-[state=checked]:text-auxiliary-1 dark:data-[state=checked]:bg-primary-5 data-[state=checked]:border-primary-5 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5 size-6 shrink-0 rounded-[5px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",l),...r,children:a.jsx(c2.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:a.jsx(le.CheckIcon,{className:"size-4"})})}),a.jsx(e2,{htmlFor:r.id,className:C.t4,children:e})]})}function s1({...l}){return a.jsx(je.Root,{"data-slot":"dialog",...l})}function U0({...l}){return a.jsx(je.Trigger,{"data-slot":"dialog-trigger",...l})}function h3({...l}){return a.jsx(je.Portal,{"data-slot":"dialog-portal",...l})}function G0({...l}){return a.jsx(je.Close,{"data-slot":"dialog-close",...l})}function u3({className:l,...e}){return a.jsx(je.Overlay,{"data-slot":"dialog-overlay",className:m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-auxiliary-4/50",l),...e})}function o1({className:l,children:e,showCloseButton:r=!0,...n}){return a.jsxs(h3,{"data-slot":"dialog-portal",children:[a.jsx(u3,{}),a.jsxs(je.Content,{"data-slot":"dialog-content",className:m("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",l),...n,children:[e,r&&a.jsxs(je.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(le.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function c1({className:l,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:m("flex flex-col gap-2 text-center sm:text-start",l),...e})}function t2({className:l,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:m("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",l),...e})}function d1({className:l,...e}){return a.jsx(je.Title,{"data-slot":"dialog-title",className:m(C.h4,l),...e})}function h1({className:l,...e}){return a.jsx(je.Description,{"data-slot":"dialog-description",className:m(C.p1,"text-auxiliary-3",l),...e})}function mt({className:l,...e}){return a.jsx(Ge.Command,{"data-slot":"command",className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",l),...e})}function $0({title:l="Command Palette",description:e="Search for a command to run...",children:r,className:n,showCloseButton:i=!0,...s}){return a.jsxs(s1,{...s,children:[a.jsxs(c1,{className:"sr-only",children:[a.jsx(d1,{children:l}),a.jsx(h1,{children:e})]}),a.jsx(o1,{className:m("overflow-hidden p-0",n),showCloseButton:i,children:a.jsx(mt,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function Dt({className:l,containerClassName:e,showSearchIcon:r=!0,onContainerClick:n,...i}){return a.jsxs("div",{"data-slot":"command-input-wrapper",className:m("flex h-9 items-center gap-2 border-b px-3",e),onClick:n,children:[r&&a.jsx(le.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),a.jsx(Ge.Command.Input,{"data-slot":"command-input",className:m("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",l),...i})]})}function Nt({className:l,...e}){return a.jsx(Ge.Command.List,{"data-slot":"command-list",className:m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",l),...e})}function St({...l}){return a.jsx(Ge.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...l})}function Vt({className:l,...e}){return a.jsx(Ge.Command.Group,{"data-slot":"command-group",className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",l),...e})}function q0({className:l,...e}){return a.jsx(Ge.Command.Separator,{"data-slot":"command-separator",className:m("bg-border -mx-1 h-px",l),...e})}function Bt({className:l,...e}){return a.jsx(Ge.Command.Item,{"data-slot":"command-item",className:m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...e})}function Y0({className:l,...e}){return a.jsx("span",{"data-slot":"command-shortcut",className:m("text-muted-foreground ml-auto text-xs tracking-widest",l),...e})}function m3({...l}){return a.jsx(ne.Root,{"data-slot":"dropdown-menu",...l})}function K0({...l}){return a.jsx(ne.Portal,{"data-slot":"dropdown-menu-portal",...l})}function f3({...l}){return a.jsx(ne.Trigger,{"data-slot":"dropdown-menu-trigger",...l})}function v3({className:l,sideOffset:e=4,...r}){return a.jsx(ne.Portal,{children:a.jsx(ne.Content,{"data-slot":"dropdown-menu-content",sideOffset:e,className:m("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",l),...r})})}function J0({...l}){return a.jsx(ne.Group,{"data-slot":"dropdown-menu-group",...l})}function p3({className:l,inset:e,variant:r="default",...n}){return a.jsx(ne.Item,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":r,className:m("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...n})}function Q0({className:l,children:e,checked:r,...n}){return a.jsxs(ne.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:m("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),checked:r,...n,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(ne.ItemIndicator,{children:a.jsx(le.CheckIcon,{className:"size-4"})})}),e]})}function X0({...l}){return a.jsx(ne.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...l})}function ea({className:l,children:e,...r}){return a.jsxs(ne.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:m("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...r,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(ne.ItemIndicator,{children:a.jsx(le.CircleIcon,{className:"size-2 fill-current"})})}),e]})}function g3({className:l,inset:e,...r}){return a.jsx(ne.Label,{"data-slot":"dropdown-menu-label","data-inset":e,className:m("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",l),...r})}function ta({className:l,...e}){return a.jsx(ne.Separator,{"data-slot":"dropdown-menu-separator",className:m("bg-border -mx-1 my-1 h-px",l),...e})}function ra({className:l,...e}){return a.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:m("text-muted-foreground ml-auto text-xs tracking-widest",l),...e})}function la({...l}){return a.jsx(ne.Sub,{"data-slot":"dropdown-menu-sub",...l})}function na({className:l,inset:e,children:r,...n}){return a.jsxs(ne.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:m("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",l),...n,children:[r,a.jsx(le.ChevronRightIcon,{className:"ml-auto size-4"})]})}function aa({className:l,...e}){return a.jsx(ne.SubContent,{"data-slot":"dropdown-menu-sub-content",className:m("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",l),...e})}function We({className:l,type:e,...r}){return a.jsx("input",{type:e,"data-slot":"input",className:m(C.t1,"file:text-foreground bg-auxiliary-1 text-support-7 ring-primary-5 selection:bg-primary-5 selection:text-primary-foreground border-support-5 flex h-[2.625rem] w-full min-w-0 rounded-md border px-4 py-4 transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-support-5","focus-visible:border-primary-5","hover:border-primary-5 hover:ring-[1px]","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-support-5 disabled:opacity-50","aria-invalid:ring-warning-5 aria-invalid:border-warning-5",l),...r})}function ia({...l}){return a.jsx(Ct.Root,{"data-slot":"popover",...l})}function sa({...l}){return a.jsx(Ct.Trigger,{"data-slot":"popover-trigger",...l})}function oa({className:l,align:e="center",sideOffset:r=4,...n}){return a.jsx(Ct.Portal,{children:a.jsx(Ct.Content,{"data-slot":"popover-content",align:e,sideOffset:r,className:m("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",l),...n})})}function ca({...l}){return a.jsx(Ct.Anchor,{"data-slot":"popover-anchor",...l})}function da({className:l,children:e,...r}){return a.jsxs(wt.Root,{"data-slot":"scroll-area",className:m("relative",l),...r,children:[a.jsx(wt.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),a.jsx(x3,{}),a.jsx(wt.Corner,{})]})}function x3({className:l,orientation:e="vertical",...r}){return a.jsx(wt.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:e,className:m("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",l),...r,children:a.jsx(wt.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const Ke=({...l})=>a.jsxs("svg",{viewBox:"0 0 13 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsxs("g",{clipPath:"url(#clip0_2431_17670)",children:[a.jsx("path",{d:"M2.74414 1.49805L6.45162 6.50033",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round"}),a.jsx("path",{d:"M6.54941 6.499L10.2569 1.49672",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_2431_17670",children:a.jsx("rect",{width:"11.456",height:"7.457",fill:"white",transform:"translate(0.771484 0.271484)"})})})]});function w3({...l}){return a.jsx(oe.Root,{"data-slot":"select",...l})}function ha({...l}){return a.jsx(oe.Group,{"data-slot":"select-group",...l})}function E3({...l}){return a.jsx(oe.Value,{"data-slot":"select-value",...l})}function z3({className:l,size:e="default",children:r,...n}){return a.jsxs(oe.Trigger,{"data-slot":"select-trigger","data-size":e,className:m("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...n,children:[r,a.jsx(oe.Icon,{className:"size-3 text-support-7 group-data-[state=open]:rotate-180 group-data-[state=open]:text-primary",asChild:!0,children:a.jsx(Ke,{})})]})}function M3({className:l,children:e,position:r="popper",...n}){return a.jsx(oe.Portal,{children:a.jsxs(oe.Content,{side:"bottom","data-slot":"select-content",className:m("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[var(--radix-select-trigger-width)] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="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",l),position:r,...n,children:[a.jsx(C3,{}),a.jsx(oe.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:e}),a.jsx(y3,{})]})})}function ua({className:l,...e}){return a.jsx(oe.Label,{"data-slot":"select-label",className:m("text-muted-foreground px-2 py-1.5 text-xs",l),...e})}function _1({className:l,children:e,...r}){return a.jsxs(oe.Item,{"data-slot":"select-item",className:m("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),...r,children:[a.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:a.jsx(oe.ItemIndicator,{children:a.jsx(le.CheckIcon,{className:"size-4"})})}),a.jsx(oe.ItemText,{children:e})]})}function ma({className:l,...e}){return a.jsx(oe.Separator,{"data-slot":"select-separator",className:m("bg-border pointer-events-none -mx-1 my-1 h-px",l),...e})}function C3({className:l,...e}){return a.jsx(oe.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:m("flex cursor-default items-center justify-center py-1",l),...e,children:a.jsx(le.ChevronUpIcon,{className:"size-4"})})}function y3({className:l,...e}){return a.jsx(oe.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:m("flex cursor-default items-center justify-center py-1",l),...e,children:a.jsx(le.ChevronDownIcon,{className:"size-4"})})}function u1({className:l,orientation:e="horizontal",decorative:r=!0,...n}){return a.jsx(Ol.Root,{"data-slot":"separator",decorative:r,orientation:e,className:m("bg-support-5 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",l),...n})}function F3({className:l,containerClassname:e,...r}){return a.jsx("div",{"data-slot":"table-container",className:m("relative w-full overflow-x-auto",e),children:a.jsx("table",{"data-slot":"table",className:m("w-full caption-bottom text-sm",l),...r})})}function H3({className:l,...e}){return a.jsx("thead",{"data-slot":"table-header",className:m("[&_tr]:border-b",l),...e})}function Ut({className:l,...e}){return a.jsx("tbody",{"data-slot":"table-body",className:m("[&_tr:last-child]:border-0",l),...e})}function fa({className:l,...e}){return a.jsx("tfoot",{"data-slot":"table-footer",className:m("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",l),...e})}function zt({className:l,...e}){return a.jsx("tr",{"data-slot":"table-row",className:m("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",l),...e})}function k3({className:l,...e}){return a.jsx("th",{"data-slot":"table-head",className:m("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...e})}function Gt({className:l,...e}){return a.jsx("td",{"data-slot":"table-cell",className:m("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...e})}function va({className:l,...e}){return a.jsx("caption",{"data-slot":"table-caption",className:m("text-muted-foreground mt-4 text-sm",l),...e})}function pa({className:l,...e}){return a.jsx(Oe.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2 w-full",l),...e})}function ga({className:l,...e}){return a.jsx(Oe.List,{"data-slot":"tabs-list",className:m("bg-auxiliary-1 text-support-7 inline-flex flex-col p-8 sm:flex-row gap-6 sm:gap-4 items-center justify-center rounded-lg border border-support-5",l),...e})}function xa({className:l,...e}){return a.jsxs(a.Fragment,{children:[a.jsx(Oe.Trigger,{"data-slot":"tabs-trigger",className:m(C.t1,"data-[state=active]:text-primary-5 relative text-support-7 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","data-[state=active]:font-normal",l),...e}),a.jsx(u1,{orientation:"horizontal",className:"!h-px !w-7 last:hidden sm:!h-7 sm:!w-px sm:orientation-vertical"})]})}function wa({className:l,...e}){return a.jsx(Oe.Content,{"data-slot":"tabs-content",className:m("flex-1 outline-none",l),...e})}function b3({className:l,...e}){return a.jsx(Oe.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2 w-full","data-[orientation=vertical]:flex-row data-[orientation=vertical]:gap-6",l),...e})}function j3({className:l,...e}){return a.jsx(Oe.List,{"data-slot":"tabs-list",className:m("inline-flex sm:gap-12 items-center border-b border-b-support-5 justify-start w-full","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:gap-4 data-[orientation=vertical]:shrink-0","data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-r data-[orientation=vertical]:border-r-support-5",l),...e})}function L3({className:l,...e}){return a.jsx(Oe.Trigger,{"data-slot":"tabs-trigger",className:m(C.t1,"data-[state=active]:bg-transparent data-[state=active]:border-b-primary-5 text-auxiliary-4 active:border-b-primary-g border-b-3 border-b-transparent py-2 dark:data-[state=active]:text-foreground rounded-none focus-visible:border-ring hover:text-primary-5 focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 sm:flex-[unset] items-center justify-center gap-1.5 whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...e})}function D3({className:l,...e}){return a.jsx(Oe.Content,{"data-slot":"tabs-content",className:m("max-w-xl flex-1 outline-none",l),...e})}function N3({className:l,...e}){return a.jsx("textarea",{"data-slot":"textarea",className:m(C.t1,"border-support-5 text-auxiliary-4 placeholder:text-support-7 hover:ring-[1px] ring-primary-5 hover:border-primary-5 focus-visible:border-primary-5 aria-invalid:ring-warning-5 aria-invalid:border-warning-5 flex field-sizing-content min-h-16 w-full rounded-md border bg-auxiliary-1 px-4 py-4 transition-[color,box-shadow] outline-none disabled:ring-0 disabled:opacity-50 disabled:cursor-not-allowed disabled:border-support-5",l),...e})}function r2({delayDuration:l=0,...e}){return a.jsx(lt.Provider,{"data-slot":"tooltip-provider",delayDuration:l,...e})}function S3({...l}){return a.jsx(r2,{children:a.jsx(lt.Root,{"data-slot":"tooltip",...l})})}function V3({...l}){return a.jsx(lt.Trigger,{"data-slot":"tooltip-trigger",...l})}function B3({className:l,sideOffset:e=0,children:r,...n}){return a.jsx(lt.Portal,{children:a.jsxs(lt.Content,{"data-slot":"tooltip-content",sideOffset:e,className:m("bg-primary-5 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",l),...n,children:[r,a.jsx(lt.Arrow,{className:"bg-primary-5 fill-primary-5 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ea=({title:l,showCloseButton:e=!1,renderButtons:r,children:n,...i})=>a.jsx(s1,{...i,children:a.jsxs(o1,{showCloseButton:e,className:"gap-12 pt-8 pb-12 px-12 shadow-card sm:max-w-[33.125rem]",children:[a.jsxs(c1,{className:"gap-6",children:[a.jsx(d1,{className:"flex flex-col items-center gap-6",children:a.jsx("span",{className:m(C.p1,"text-center"),children:l})}),a.jsx(h1,{className:"hidden",children:l})]}),n,r&&a.jsx(t2,{className:"gap-8 flex flex-col sm:flex-col",children:r()})]})}),Je=({...l})=>a.jsxs("svg",{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M15.4994 15L9.5 9M9.50064 15L15.5 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22.5 12C22.5 6.47715 18.0228 2 12.5 2C6.97715 2 2.5 6.47715 2.5 12C2.5 17.5228 6.97715 22 12.5 22C18.0228 22 22.5 17.5228 22.5 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),he=({label:l,required:e,info:r,disabled:n,htmlFor:i})=>a.jsxs("div",{className:m("flex items-center gap-2 hover:ring-0",{"opacity-50 pointer-events-none":n}),children:[a.jsxs(e2,{htmlFor:i,className:"gap-1",children:[l,e&&a.jsx("span",{className:m(C.t2,"text-warning-5"),children:"*"})]}),r&&a.jsx(r2,{children:a.jsxs(S3,{open:n?!1:void 0,children:[a.jsx(V3,{asChild:!0,children:a.jsx(le.Info,{className:"w-[1.125rem] h-[1.125rem] text-support-7"})}),a.jsx(B3,{children:a.jsx("p",{children:r})})]})})]});function za({label:l,required:e,placeholder:r,onChange:n,id:i,info:s,disabled:o,addMoreLabel:c="Add more bullet points",values:d}){const[f,p]=t.useState(d??[""]),x=()=>{p([...f,""]),n?.([...f,""])},E=z=>{const v=f.filter((w,M)=>M!==z);p(v),n?.(v)},g=(z,v)=>{const w=[...f];w[z]=v,p(w),n?.(w)};return a.jsxs("div",{className:"space-y-6 w-full",children:[a.jsx("div",{className:"space-y-8",children:f.map((z,v)=>a.jsxs("div",{className:"space-y-3",children:[l&&a.jsx(he,{label:l,info:s,htmlFor:`${i}-point-${v}`,disabled:o,required:e}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(We,{id:`${i}-point-${v}`,placeholder:r,value:z,onChange:w=>g(v,w.target.value)}),v>0&&a.jsx("button",{onClick:()=>E(v),children:a.jsx(Je,{className:"size-6 text-auxiliary-3"})})]})]},v))}),a.jsxs("button",{type:"button",className:m(C.t4,"font-medium flex items-center gap-3 text-primary-5 group"),onClick:x,children:[a.jsx(le.PlusCircle,{className:"size-6"}),a.jsx("span",{className:"group-hover:text-primary-6",children:c})]})]})}const l2=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 28 28",fill:"none",...l,children:[a.jsx("path",{d:"M17.8333 7H10.1667C6.55256 7 4.74552 7 3.62276 8.09078C2.5 9.18155 2.5 10.9371 2.5 14.4483V17.5517C2.5 21.0628 2.5 22.8184 3.62276 23.9092C4.74552 25 6.55256 25 10.1667 25H17.8333C21.4474 25 23.2544 25 24.3772 23.9092C25.5 22.8184 25.5 21.0628 25.5 17.5517V14.4483C25.5 10.9371 25.5 9.18155 24.3772 8.09078C23.2544 7 21.4474 7 17.8333 7Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M9.5 7V6.28571C9.5 4.26541 9.5 3.25526 10.159 2.62763C10.818 2 11.8787 2 14 2C16.1213 2 17.182 2 17.8411 2.62763C18.5 3.25526 18.5 4.26541 18.5 6.28571V7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8.5 8L8.5 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.5 8L19.5 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),T3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M21.5835 20.811C22.7857 20.6345 23.64 20.2931 24.3 19.6331C25.6668 18.2664 25.6668 16.0664 25.6668 11.6666C25.6668 7.26687 25.6668 5.06699 24.3 3.70014C22.9332 2.33331 20.7332 2.33331 16.3335 2.33331H11.6668C7.26705 2.33331 5.06717 2.33331 3.70033 3.70014C2.3335 5.06699 2.3335 7.26687 2.3335 11.6666C2.3335 16.0664 2.3335 18.2664 3.70033 19.6331C4.6432 20.576 5.98248 20.8685 8.16683 20.9591",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M19.8332 8.16669H8.1665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16.9168 16.9167C16.9168 18.5275 15.611 19.8333 14.0002 19.8333C12.3893 19.8333 11.0835 18.5275 11.0835 16.9167C11.0835 15.3058 12.3893 14 14.0002 14C15.611 14 16.9168 15.3058 16.9168 16.9167Z",stroke:"currentColor",strokeWidth:"1.5"}),a.jsx("path",{d:"M11.0835 16.9167C11.0835 21.6602 13.0927 24.3491 14.0002 25.6667L15.7502 22.1667L17.7918 23.3334L19.8335 24.5C18.9763 23.6703 18.0903 21.055 18.0903 21.055",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),A3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M15.75 17.6009C15.2427 18.5891 14.3195 19.25 13.2647 19.25C11.6635 19.25 10.3653 17.7265 10.3653 15.8472V13.9028C10.3653 12.0235 11.6635 10.5 13.2647 10.5C14.3195 10.5 15.2427 11.1609 15.75 12.1491M8.75 14.875H13.5472",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M14.0002 4.73077C13.6171 4.68842 13.2278 4.66669 12.8335 4.66669C7.03451 4.66669 2.3335 9.3677 2.3335 15.1667C2.3335 20.9656 7.03451 25.6667 12.8335 25.6667C18.6324 25.6667 23.3335 20.9656 23.3335 15.1667C23.3335 14.7724 23.3118 14.383 23.2694 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M21.5833 2.33331V10.5M25.6667 6.41665H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),I3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M23.036 15.1666C23.9587 13.8439 24.4998 12.235 24.4998 10.5C24.4998 5.98966 20.8435 2.33331 16.3332 2.33331C11.8228 2.33331 8.1665 5.98965 8.1665 10.5C8.1665 11.7525 8.44848 12.9391 8.95241 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M18.6667 13.0442C18.2016 13.9665 17.3553 14.5834 16.3885 14.5834C14.9207 14.5834 13.7307 13.1614 13.7307 11.4074V9.59261C13.7307 7.8386 14.9207 6.41669 16.3885 6.41669C17.3553 6.41669 18.2016 7.03354 18.6667 7.95584M12.25 10.5H16.6474",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M3.5 16.3333H6.29396C6.63713 16.3333 6.97559 16.4107 7.28253 16.5592L9.66484 17.7118C9.97178 17.8604 10.3102 17.9376 10.6534 17.9376H11.8698C13.0463 17.9376 14 18.8605 14 19.999C14 20.0449 13.9685 20.0854 13.9228 20.098L10.9583 20.9177C10.4266 21.0647 9.85717 21.0135 9.3625 20.7741L6.8158 19.542M14 19.25L19.3583 17.6037C20.3082 17.3077 21.335 17.6586 21.93 18.4827C22.3602 19.0784 22.185 19.9315 21.5583 20.2932L12.7901 25.3522C12.2324 25.674 11.5744 25.7525 10.961 25.5705L3.5 23.3565",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),O3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M10.5719 5.63072L3.77896 11.5749C3.19643 12.0847 3.58701 12.99 4.38944 12.99C4.87969 12.99 5.27711 13.357 5.27711 13.8099V17.594C5.27711 20.8495 5.27711 22.4772 6.37205 23.4886C7.467 24.5 9.22929 24.5 12.7539 24.5H15.2461C18.7707 24.5 20.533 24.5 21.6279 23.4886C22.7229 22.4772 22.7229 20.8495 22.7229 17.594V13.8099C22.7229 13.357 23.1203 12.99 23.6105 12.99C24.413 12.99 24.8036 12.0847 24.221 11.5749L17.428 5.63072C15.8047 4.21024 14.9931 3.5 14 3.5C13.0069 3.5 12.1953 4.21024 10.5719 5.63072Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14 18.6667H14.0105",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),n2=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M12.8411 24.5H11.2065C7.02374 24.5 4.93235 24.5 3.63292 23.1759C2.3335 21.8518 2.3335 19.7207 2.3335 15.4584C2.3335 11.1961 2.3335 9.06493 3.63292 7.74081C4.93235 6.41669 7.02374 6.41669 11.2065 6.41669H15.6431C19.8258 6.41669 21.9173 6.41669 23.2167 7.74081C24.2164 8.75958 24.447 10.2561 24.5002 12.8334",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M20.4165 22.7792H20.426M20.4268 20.4167V18.0542M25.6665 20.4167C25.6665 23.3162 23.316 25.6667 20.4165 25.6667C17.517 25.6667 15.1665 23.3162 15.1665 20.4167C15.1665 17.5172 17.517 15.1667 20.4165 15.1667C23.316 15.1667 25.6665 17.5172 25.6665 20.4167Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M18.6665 6.41665L18.5507 6.05608C17.973 4.25935 17.6843 3.36099 16.9969 2.84715C16.3094 2.33331 15.3963 2.33331 13.57 2.33331H13.263C11.4367 2.33331 10.5236 2.33331 9.83613 2.84715C9.14867 3.36099 8.85992 4.25935 8.2824 6.05608L8.1665 6.41665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ma=({candidate:l,isBlur:e})=>a.jsx(qe,{className:"w-full py-8",children:a.jsxs(Ye,{className:"flex flex-col sm:flex-row gap-10 px-8 items-center",children:[a.jsxs("div",{className:"flex flex-col-reverse gap-[1.125rem] sm:flex-col items-center",children:[a.jsx("img",{className:m("w-[9.375rem] aspect-square bg-support-3 rounded-xl",{"blur-xs":e}),src:l.image,alt:l.name}),a.jsxs("p",{className:m(C.t1,"text-support-7 text-center"),children:["User ID: ",a.jsx("span",{className:"text-auxiliary-4",children:l.userId})]})]}),a.jsxs("div",{className:"space-y-6 flex-1",children:[a.jsx("h3",{className:m(C.h5,"text-auxiliary-3 text-center sm:text-start"),children:l.name}),a.jsxs("div",{className:m(C.t2,"items-center grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-x-10 gap-y-4"),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(T3,{className:"flex-none size-7 text-primary-5"}),a.jsx("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:l.degree})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(n2,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Looking for: "}),l.lookingFor]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(A3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[l.yearlyRate," yearly"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(O3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Remote Work: "}),l.remote?"Yes":"No"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(l2,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Status: "}),l.status]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(I3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Freelance: "}),l.hourlyRate," hourly"]})]})]}),a.jsx("div",{className:"flex flex-col md:flex-row items-center sm:items-start gap-4 md:gap-6 flex-wrap",children:l.tags.map(r=>a.jsx(ot,{children:r.label},r.value))})]})]})}),Ca=({items:l})=>a.jsx("dl",{className:"w-full flex items-center justify-center gap-8",children:l.map(e=>a.jsx(ya,{...e},e.label))}),ya=({label:l,value:e,icon:r})=>a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:m("flex flex-col items-center gap-3","md:flex-row"),children:[a.jsx(r,{className:"size-8 text-primary shrink-0"}),a.jsxs("div",{className:m("flex flex-col lg:flex-row items-center gap-3","md:items-start md:gap-1.5","text-auxiliary-4"),children:[a.jsx("dt",{className:m(C.t3,"text-support-7"),children:l}),a.jsx("dd",{className:C.t4,children:e})]})]}),a.jsx(u1,{className:"data-[orientation=vertical]:h-7 hidden sm:block last:hidden",orientation:"vertical"})]});function ft(l,e){t.useEffect(()=>{const r=n=>{!l.current||l.current.contains(n.target)||e()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[l,e])}const Fa=({id:l,placeholder:e,value:r,onChange:n,options:i,label:s,required:o,info:c,disabled:d,error:f})=>{const[p,x]=t.useState(!1),[E,g]=t.useState(r??""),z=t.useRef(null);ft(z,()=>x(!1));const v=i.find(y=>y.value===E),w=y=>{g(y),n?.(null)},M=y=>{g(y),x(!1),n?.(y)};return a.jsxs("div",{className:"space-y-2",children:[s&&a.jsx(he,{label:s,required:o,info:c,disabled:d,htmlFor:l}),a.jsxs(mt,{ref:z,className:m("h-auto overflow-visible relative","[&>[data-slot=command-input-wrapper]]:p-0 [&>[data-slot=command-input-wrapper]]:border-0 [&>[data-slot=command-input-wrapper]]:h-auto"),children:[a.jsx(Dt,{id:l,placeholder:e,value:v?.label??E,onValueChange:w,onContainerClick:()=>x(!0),"aria-invalid":!!f,className:m(C.t1,"bg-auxiliary-1 text-support-7 placeholder:text-support-5 ring-primary-5 selection:bg-primary-5 selection:text-auxiliary-1 border-input flex h-[2.625rem] w-full min-w-0 rounded-md border px-3 py-1 transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","hover:ring-[1px] hover:ring-primary-5 hover:border-primary-5 active:border-primary-5 focus:ring-primary-5 focus:ring-1","aria-invalid:ring-warning-5 aria-invalid:border-warning-5",p&&"rounded-b-none border-primary-5"),showSearchIcon:!1}),a.jsx(Ke,{className:m("size-3 text-support-7 absolute duration-200 top-1/2 right-4 transition-all -translate-y-1/2",p&&"rotate-180 text-primary-5")}),p&&a.jsxs(Nt,{className:"absolute top-full w-full bg-auxiliary-1 border border-input rounded-b-md z-10",children:[a.jsx(St,{children:"No options found."}),a.jsx(Vt,{children:i.map((y,L)=>a.jsx(Bt,{value:y.value,onSelect:M,className:m(C.t1,"data-[selected=true]:bg-auxiliary-1 data-[selected=true]:text-primary-5 cursor-pointer",L<i.length-1&&"mb-1"),children:y.label},y.value))})]})]}),f&&a.jsx("p",{className:m(C.t3,"text-warning-5"),children:f})]})},W3=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 32 32",fill:"none",...l,children:[a.jsx("path",{d:"M27.6987 24C28.6977 24 29.4924 23.3713 30.2059 22.4921C31.6665 20.6925 29.2684 19.2544 28.3537 18.5501C27.424 17.8341 26.3859 17.4285 25.3333 17.3333M24 14.6667C25.8409 14.6667 27.3333 13.1743 27.3333 11.3333C27.3333 9.49239 25.8409 8 24 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M4.30096 24C3.30188 24 2.50724 23.3713 1.79373 22.4921C0.333129 20.6925 2.73124 19.2544 3.64587 18.5501C4.57564 17.8341 5.61379 17.4285 6.66635 17.3333M7.33301 14.6667C5.49207 14.6667 3.99968 13.1743 3.99968 11.3333C3.99968 9.49239 5.49207 8 7.33301 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M10.7781 20.1483C9.41571 20.9907 5.84365 22.7108 8.01928 24.8632C9.08205 25.9147 10.2657 26.6667 11.7538 26.6667H20.2456C21.7337 26.6667 22.9173 25.9147 23.9801 24.8632C26.1557 22.7108 22.5837 20.9907 21.2213 20.1483C18.0265 18.1728 13.9728 18.1728 10.7781 20.1483Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M20.6664 10C20.6664 12.5773 18.577 14.6667 15.9997 14.6667C13.4224 14.6667 11.333 12.5773 11.333 10C11.333 7.42268 13.4224 5.33334 15.9997 5.33334C18.577 5.33334 20.6664 7.42268 20.6664 10Z",stroke:"currentColor",strokeWidth:"1.5"})]}),Ha=({company:l})=>a.jsx(qe,{className:"py-8 border-support-5 w-full",children:a.jsxs(Ye,{className:"flex flex-col-reverse sm:flex-row gap-6 px-8 items-center",children:[a.jsxs("div",{className:"flex flex-col items-center sm:items-start flex-1 gap-3",children:[a.jsx("h3",{className:m(C.h4,"text-auxiliary-4 text-center sm:text-start"),children:l.name}),a.jsxs("div",{className:m(C.t1,"text-auxiliary-4 flex flex-col sm:flex-row items-center gap-6 mb-3"),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(n2,{className:"size-7 text-primary-5"}),a.jsxs("span",{children:[l.openJobs," open jobs"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(W3,{className:"size-7 text-primary-5"}),a.jsxs("span",{children:[l.employees," employees"]})]})]}),a.jsx("div",{className:"flex items-center gap-4 flex-wrap",children:l.tags.map(e=>a.jsx(ot,{size:"sm",children:e.label},e.value))})]}),a.jsx("img",{className:m("flex-none size-[6.25rem] bg-support-3 rounded-md border border-support-5"),src:l.image,alt:l.name})]})}),ka=({tabs:l,...e})=>a.jsxs(b3,{orientation:"vertical",className:"data-[orientation=vertical]:flex-col lg:data-[orientation=vertical]:flex-row",...e,children:[a.jsx(j3,{className:m("items-start flex-wrap","data-[orientation=vertical]:border-0","data-[orientation=vertical]:w-full lg:data-[orientation=vertical]:w-xs","data-[orientation=vertical]:flex-row lg:data-[orientation=vertical]:flex-col"),children:l.map(({value:r,label:n})=>a.jsx(ba,{value:r,children:n},r))}),l.map(({value:r,content:n})=>a.jsx(D3,{value:r,children:n},r))]}),ba=l=>a.jsx(L3,{className:m(C.t3,"p-3 rounded-lg border-0 cursor-pointer h-auto","hover:text-auxiliary-3","data-[state=active]:bg-auxiliary-2"),...l}),ja=({title:l,description:e})=>a.jsxs("div",{children:[a.jsx("h1",{className:m(C.h3,"text-auxiliary-4 mb-6"),children:l}),a.jsx("p",{className:m(C.p1),children:e})]}),La=({title:l,description:e,children:r})=>a.jsxs("div",{children:[a.jsxs("div",{className:"border-b border-support-5 py-3 space-y-2",children:[a.jsx("h2",{className:m(C.h4,"text-auxiliary-4"),children:l}),e&&a.jsx("p",{className:C.t3,children:e})]}),r]}),R3=({title:l,description:e,imageSrc:r="https://placehold.co/200x200",action:n,className:i})=>a.jsxs("div",{className:m("flex flex-col items-center justify-center gap-6 py-12",i),children:[a.jsx("img",{src:r,alt:"",width:200,height:200,className:"rounded-lg","aria-hidden":"true"}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h3",{className:m(C.h5,"text-auxiliary-4"),children:l}),e&&a.jsx("p",{className:m(C.t1,"text-support-7 max-w-sm"),children:e})]}),n&&a.jsx(a.Fragment,{children:n.href?a.jsx(ye,{asChild:!0,size:"sm",children:a.jsx(Ue.Link,{to:n.href,children:n.label})}):a.jsx(ye,{size:"sm",onClick:n.onClick,children:n.label})})]}),Da=({column:l,label:e,className:r})=>a.jsxs("button",{onClick:()=>l.toggleSorting(l.getIsSorted()==="asc"),className:m(C.t4,"font-medium flex items-center cursor-pointer",r),children:[e,a.jsx(Ke,{className:m("ml-2 size-4 transition-transform duration-200",l.getIsSorted()==="asc"&&"rotate-180")})]}),Na=({groups:l,variant:e})=>a.jsx(H3,{className:e==="ordered"?"border-b-0":"",children:l.map(({id:r,headers:n})=>a.jsx(zt,{className:m([e==="ordered"&&"border-b-transparent hover:bg-transparent",e==="actioned"&&"hover:bg-transparent border-support-5",e==="mixed"&&"hover:bg-transparent"]),children:n.map(i=>a.jsx(k3,{className:m(e==="ordered"?C.t4:C.t2,[e==="ordered"&&"font-medium text-support-7 first:pl-8 hover:text-primary-5",e==="actioned"&&"text-support-7 hover:text-primary-5 py-8",e==="mixed"&&"text-support-7 hover:text-primary-5 py-8 border-b border-support-5"],i.column.columnDef.className,i.column.columnDef.headerClassName),children:i.isPlaceholder?null:Kt.flexRender(i.column.columnDef.header,i.getContext())},i.id))},r))}),Sa=({rowModel:l,columnLength:e,isLoading:r,emptyMessage:n="Nothing to see here.",emptyImageSrc:i,variant:s,onRowClick:o})=>r?a.jsx(Ut,{children:a.jsx(zt,{className:"hover:bg-transparent",children:a.jsx(Gt,{colSpan:e,className:"h-24",align:"center",children:a.jsx(le.Loader2,{className:"animate-spin"})})})}):!r&&l.rows.length===0?a.jsx(Ut,{children:a.jsx(zt,{className:"hover:bg-transparent",children:a.jsx(Gt,{colSpan:e,align:"center",children:a.jsx(R3,{title:n,imageSrc:i})})})}):a.jsx(Ut,{children:l.rows.map(c=>a.jsx(zt,{className:m([s==="ordered"&&m(C.t1,"outline outline-support-5 border-0 rounded-lg hover:outline-primary-5 hover:outline-2 cursor-pointer"),s==="actioned"&&"border-support-5 hover:bg-transparent",s==="mixed"&&"border-b-0 hover:bg-transparent"]),onClick:()=>o?.(c.original),children:c.getVisibleCells().map(d=>a.jsx(Gt,{className:m("text-auxiliary-4",[s==="ordered"&&"py-4 bg-auxiliary-1 first:pl-8 first:rounded-s-lg last:rounded-e-lg",s==="actioned"&&"py-5 leading-[20px]",s==="mixed"&&"py-5 leading-[20px]"],d.column.columnDef.className,d.column.columnDef.cellClassName),children:Kt.flexRender(d.column.columnDef.cell,d.getContext())},d.id))},c.id))}),Va=({isLoading:l,emptyMessage:e,emptyImageSrc:r,className:n,containerClassname:i,variant:s="ordered",onRowClick:o,...c})=>{const{getHeaderGroups:d,getRowModel:f}=Kt.useReactTable({getCoreRowModel:Kt.getCoreRowModel(),...c});return a.jsx("div",{className:m("w-full",n),children:a.jsxs(F3,{containerClassname:i,className:m(C.t1,"overflow-x-auto w-full px-[2px]",[s==="ordered"&&"border-separate border-spacing-y-4",s==="actioned"&&"border-spacing-y-4 border-collapse",s==="mixed"&&"border-spacing-y-4 border-collapse"]),children:[a.jsx(Na,{groups:d(),variant:s}),a.jsx(Sa,{rowModel:f(),columnLength:c.columns.length,isLoading:l,emptyMessage:e,emptyImageSrc:r,variant:s,onRowClick:o})]})})},_3=({...l})=>a.jsxs("svg",{viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M24.5 2.66602V5.33268M8.5 2.66602V5.33268",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16.4933 17.334H16.5053M16.4933 22.6673H16.5053M21.8207 17.334H21.8327M11.166 17.334H11.178M11.166 22.6673H11.178",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.16602 10.666H27.8327",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M3.83398 16.3243C3.83398 10.5146 3.83398 7.60971 5.50348 5.80485C7.17297 4 9.85997 4 15.234 4H17.7673C23.1413 4 25.8284 4 27.4978 5.80485C29.1673 7.60971 29.1673 10.5146 29.1673 16.3243V17.0091C29.1673 22.8188 29.1673 25.7236 27.4978 27.5285C25.8284 29.3333 23.1413 29.3333 17.7673 29.3333H15.234C9.85997 29.3333 7.17297 29.3333 5.50348 27.5285C3.83398 25.7236 3.83398 22.8188 3.83398 17.0091V16.3243Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M4.5 10.666H28.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ba=({error:l,disabled:e,value:r,onValueChange:n,label:i="Date of Birth",required:s=!1,info:o,id:c})=>{const d=t.useRef(null),[f,p]=t.useState(!1),[x,E]=t.useState(r);ft(d,()=>p(!1)),t.useEffect(()=>{r!==void 0&&E(r)},[r]);const g=z=>{E(z),n&&n(z)};return a.jsxs("div",{className:"flex flex-col gap-3 relative",children:[a.jsx(he,{label:i,info:o,required:s,disabled:e,htmlFor:c}),a.jsxs("div",{className:"relative flex gap-6",children:[a.jsx(We,{id:c,type:"date",className:m(C.t1,"flex-1 max-w-3xs bg-background appearance-none py-3 px-4 [&::-webkit-calendar-picker-indicator]:hidden",!x&&"text-support-5"),disabled:e,value:x?S.fromJSDate(x).toISODate()??"":"",onChange:z=>g(z.target.valueAsDate??void 0),"aria-invalid":!!l}),a.jsxs(ye,{variant:"outline",size:"icon",className:m("flex-none active:ring-0 active:border-primary-5 hover:border-primary-5 hover:ring-[1px] focus-visible:ring-1 hover:focus-visible:ring-2 ring-primary-5 aria-invalid:ring-warning-5",f&&"border-primary-5 ring-primary-5",e&&"opacity-50"),onClick:()=>p(!f),"aria-invalid":!!l,disabled:e,children:[a.jsx(_3,{className:"size-6"}),a.jsx("span",{className:"sr-only",children:"Select date"})]}),f&&a.jsx("div",{ref:d,className:"absolute inset-full start-0 z-10",children:a.jsx(a3,{mode:"single",selected:x,defaultMonth:x,captionLayout:"dropdown-years",onSelect:z=>{g(z),p(!1)},className:"shadow-none border border-border rounded-2xl",required:!0})})]}),l&&a.jsx("p",{className:m(C.t3,"self-end text-warning-5"),children:l})]})},P3=({error:l})=>l?a.jsx("p",{className:m(C.t3,"text-warning-5 text-right"),children:l}):null,a2=({fileName:l,onRemove:e})=>a.jsxs(ot,{size:"sm",className:"flex items-center gap-3",children:[a.jsx("span",{children:l}),a.jsx(ye,{variant:"ghost",className:"size-4.5 rounded-full p-0",onClick:e,children:a.jsx(Je,{className:"size-4.5"})})]}),i2=({...l})=>a.jsxs("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",strokeWidth:"1",...l,children:[a.jsx("path",{d:"M3.07918 8.33398C3.02702 8.71482 3 9.1044 3 9.50065C3 13.9189 6.35787 17.5007 10.5 17.5007C14.6422 17.5007 18 13.9189 18 9.50065C18 9.1044 17.973 8.71482 17.9208 8.33398",stroke:"currentColor",strokeLinecap:"round"}),a.jsx("path",{d:"M10.4993 2.5V10.8333M10.4993 2.5C9.91585 2.5 8.82562 4.16192 8.41602 4.58333M10.4993 2.5C11.0828 2.5 12.1731 4.16192 12.5827 4.58333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});function Ta({id:l,label:e="File",required:r,disabled:n,error:i,info:s}){const[o,c]=t.useState(null),d=t.useRef(null),f=x=>{x.target.files&&x.target.files[0]&&c(x.target.files[0])},p=()=>{c(null),d.current&&(d.current.value="")};return a.jsxs("div",{className:"space-y-3 w-full",children:[a.jsx(he,{label:e,info:s,htmlFor:l,disabled:n,required:r}),a.jsxs("div",{className:"flex items-center justify-between w-full gap-3",children:[a.jsxs("label",{className:m("bg-auxiliary-1 flex items-center flex-1 justify-between rounded-md border border-border border-dashed px-3 py-[0.688rem] cursor-pointer transition-colors",!n&&"hover:border-primary-5 ring-primary-5 hover:ring-[1px] focus-within:border-primary-5",n&&"cursor-not-allowed",i&&"border-warning-5 ring-warning-5 hover:border-warning-5"),children:[a.jsx("input",{ref:d,id:l,type:"file",className:"hidden",disabled:n,onChange:f}),a.jsx("span",{className:m(C.t1,"text-primary-6 truncate"),children:o?.name}),a.jsx("div",{className:"flex items-center gap-1",children:a.jsx(i2,{className:"size-5 text-muted-foreground"})})]}),o&&a.jsx("button",{type:"button",onClick:p,className:"rounded-full group cursor-pointer",children:a.jsx(Je,{className:"size-6 group-hover:text-warning-5 text-muted-foreground"})})]}),i&&a.jsx("p",{className:m(C.t3,"ml-auto w-fit text-warning-5"),children:i})]})}const Aa=({disabled:l,error:e,items:r=[],selectedValues:n,onChange:i})=>{const[s,o]=Ce.useState(!1),[c,d]=Ce.useState(""),f=Ce.useRef(null);ft(f,()=>{o(!1),d("")});const[p,x]=Ce.useState([]),E=n??p,g=w=>{i?i(w):x(w)},z=w=>{g(E.includes(w)?E.filter(M=>M!==w):[...E,w])},v=w=>{g(E.filter(M=>M!==w))};return a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:m("relative w-[250px] group",l&&"pointer-events-none"),children:a.jsxs(mt,{ref:f,className:m("h-auto overflow-visible relative","[&>[data-slot=command-input-wrapper]]:p-0 [&>[data-slot=command-input-wrapper]]:border-0 [&>[data-slot=command-input-wrapper]]:h-auto"),children:[a.jsx(Dt,{value:c,onValueChange:w=>{d(w),o(!0)},autoFocus:!0,onContainerClick:()=>o(!0),placeholder:E.length>0?`Filtered (${E.length})`:"Filter (00)",disabled:l,className:m(C.t1,"placeholder:text-auxiliary-4 py-3 px-4 h-10.5 border border-support-5 rounded-x-[0.625rem] ring-ring focus-visible:ring-0 focus-visible:border-ring group-active:ring-0 group-active:border-ring transition-[color,box-shadow]",e&&"border-warning-5 active:border-warning-5 focus-visible:border-warning-5",s&&"rounded-b-none",!s&&"group-hover:ring-[0.125rem] group-hover:border-transparent"),showSearchIcon:!1}),a.jsx(Ke,{className:m("size-3 text-support-7 absolute duration-200 top-1/2 right-4 -translate-y-1/2",l&&"opacity-50",s&&"rotate-180 text-primary-5")}),s&&a.jsx("div",{className:"absolute right-0 left-0 w-full top-[2.625rem] z-20",children:a.jsxs(Nt,{className:"overflow-hidden bg-auxiliary-1",children:[a.jsx(St,{className:"py-4 text-support-7 text-center border-b border-x border-border rounded-b-[0.625rem]",children:"No options found."}),a.jsx(Vt,{className:"p-0 border-b border-x border-border rounded-b-[0.625rem] pt-4",children:r.map(w=>a.jsxs(Bt,{onSelect:()=>z(w.value),className:m(C.t1,"px-4 pt-0 pb-4 group data-[selected=true]:bg-auxiliary-1 data-[selected=true]:text-primary-5"),children:[a.jsx(d3,{className:"group-data-[selected=true]:border-primary-5 [&_svg]:!text-auxiliary-1 size-[18px]",checked:E.includes(w.value)}),w.label]},w.value))})]})})]})}),E.length>0&&a.jsx("div",{className:"flex flex-wrap gap-3",children:E.map(w=>a.jsxs(ot,{size:"xs",className:m(C.t2,"flex items-center gap-3"),children:[w,a.jsx("button",{className:"cursor-pointer",onClick:()=>v(w),children:a.jsx(Je,{className:"!size-[1.125rem]"})})]},w))})]})},Ia="data:image/svg+xml,%3csvg%20width='221'%20height='48'%20viewBox='0%200%20221%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.6441%2024.6496C11.6441%2023.784%2010.9403%2023.0821%2010.0724%2023.0821C9.20453%2023.0821%208.5008%2023.784%208.5008%2024.6496C8.5008%2030.1814%2013.508%2033.6058%2018.1467%2033.6058C19.0146%2033.6058%2019.7183%2032.9039%2019.7183%2032.0382C19.7183%2031.1726%2019.0146%2030.4707%2018.1467%2030.4707C15.0198%2030.4708%2011.6441%2028.245%2011.6441%2024.6496Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M49.6378%2037.1228V34.3794L55.3048%2028.9738C55.9325%2028.3755%2055.9548%2027.3833%2055.3548%2026.7575C54.7554%2026.1315%2053.7587%2026.1101%2053.1332%2026.7082L49.6378%2030.0424V24.4534C49.6378%2023.5877%2048.9341%2022.8859%2048.0662%2022.8859C47.1983%2022.8859%2046.4945%2023.5877%2046.4945%2024.4534V30.0424L42.9991%2026.7082C42.3738%2026.1099%2041.3776%2026.1315%2040.7776%2026.7575C40.1775%2027.3832%2040.1998%2028.3755%2040.8275%2028.9738L46.4945%2034.3794V37.1242C43.6336%2036.7773%2040.9916%2035.4976%2038.9366%2033.4149L36.1357%2036.1633C38.9366%2039.0022%2042.5697%2040.7098%2046.4945%2041.0713V45.7248C46.4945%2046.5904%2047.1983%2047.2923%2048.0662%2047.2923C48.9341%2047.2923%2049.6378%2046.5904%2049.6378%2045.7248V41.0733C53.4094%2040.7236%2056.9308%2039.1212%2059.6866%2036.4694L56.9577%2033.6498C54.9409%2035.5915%2052.3834%2036.7879%2049.6378%2037.1228Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M95.0172%2022.1198C95.0408%2021.7828%2095.0565%2021.4379%2095.0565%2021.1009C95.0565%2020.615%2095.025%2020.1448%2094.9857%2019.6667L97.9248%2017.339L97.3511%2015.552L96.7852%2013.765L93.2727%2013.5691C92.9112%2012.8323%2092.4869%2012.1348%2092.0234%2011.4686L93.4064%207.98089L92.0234%206.71122L90.6326%205.44937L87.4893%207.02473C86.8135%206.57024%2086.1064%206.17047%2085.3596%205.81774L84.8174%202.11063L82.9866%201.70304L81.1478%201.29545L79.2149%204.21893C78.8377%204.19534%2078.4684%204.1797%2078.0834%204.1797C77.7454%204.1797%2077.3996%204.18752%2077.0617%204.21097L75.1288%201.29531L71.4669%202.11049L70.9325%205.76274C70.1625%206.11547%2069.4317%206.53088%2068.7323%206.99319L65.6521%205.44937L64.2613%206.71122L62.8783%207.98089L66.5008%2014.1883C69.1563%209.74153%2074.3211%206.9467%2080.0326%207.7498C86.049%208.5957%2090.8271%2013.5042%2091.5166%2019.525C92.448%2027.656%2086.0618%2034.5815%2078.0836%2034.5815C71.3257%2034.5815%2065.7231%2029.5968%2064.7408%2023.1309C63.8842%2017.4801%2060.8431%2013.6866%2060.8431%2013.6866C57.7706%2010.0656%2053.1894%207.76132%2048.066%207.76132C38.8407%207.76132%2031.3287%2015.2462%2031.3287%2024.4553V25.7484C31.3287%2032.1596%2024.2408%2037.1364%2018.143%2037.1364C12.0531%2037.1364%204.96513%2032.1594%204.96513%2025.7484C4.96513%2016.2258%2014.8112%207.99639%2018.1508%205.4805C19.7225%206.66405%2022.7476%209.12494%2025.5137%2012.409L28.0596%2015.2069L29.9926%2011.5469L28.4918%209.85399C24.2014%204.75954%2019.4393%201.56974%2019.235%201.42862L18.1429%200.70752L17.0584%201.42862C16.4061%201.86747%201.03606%2012.2366%201.03606%2025.7486C1.03606%2034.5032%2010.0727%2041.0554%2018.1429%2041.0554C26.2208%2041.0554%2035.2575%2034.5032%2035.2575%2025.7486V24.789C35.2575%2018.064%2040.331%2012.2362%2047.0536%2011.7191C52.0256%2011.3368%2056.4649%2013.7999%2058.8941%2017.6445C58.9413%2017.7072%2058.9885%2017.7699%2059.0278%2017.8405C60.136%2019.4604%2060.7797%2021.7692%2061.0943%2023.187C61.3645%2024.404%2061.7016%2025.6087%2062.1363%2026.7774C62.4779%2027.6964%2062.7131%2028.2409%2062.7131%2028.2409C63.0746%2029.0246%2063.4989%2029.7692%2063.9781%2030.4825L62.4223%2033.5157L63.6875%2034.9029L64.9447%2036.298L68.3788%2034.9657C69.0701%2035.4437%2069.7932%2035.8748%2070.5554%2036.251L70.7204%2039.6994L72.512%2040.2794L74.2958%2040.8594L76.6453%2037.9595C77.1244%2037.9987%2077.6039%2038.0222%2078.0834%2038.0222C78.6099%2038.0222%2079.1205%2037.9908%2079.6235%2037.9517L81.9888%2040.8594L83.7726%2040.2794L85.5561%2039.6994L85.737%2036.1961C86.4677%2035.8277%2087.167%2035.4045%2087.8272%2034.9421L91.3396%2036.298L92.5969%2034.9029L93.8541%2033.5157L92.2591%2030.3885C92.7068%2029.7145%2093.1076%2029.0013%2093.4533%2028.2566L97.1703%2027.6923L97.5631%2025.8583L97.9637%2024.0321L95.0172%2022.1198Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M121.787%2020H120.059V14.294L115.361%207.598H117.359L120.923%2012.62L124.523%207.598H126.539L121.787%2014.294V20ZM129.843%2020.18C127.449%2020.18%20125.451%2018.434%20125.451%2015.77C125.451%2013.106%20127.449%2011.414%20129.843%2011.414C132.237%2011.414%20134.253%2013.106%20134.253%2015.77C134.253%2018.434%20132.237%2020.18%20129.843%2020.18ZM129.843%2018.596C131.337%2018.596%20132.615%2017.498%20132.615%2015.77C132.615%2014.078%20131.337%2013.016%20129.843%2013.016C128.313%2013.016%20127.071%2014.078%20127.071%2015.77C127.071%2017.498%20128.313%2018.596%20129.843%2018.596ZM142.174%2016.13V11.594H143.812V20H142.174V18.74C141.652%2019.748%20140.482%2020.18%20139.564%2020.18C137.458%2020.18%20136.306%2018.83%20136.324%2016.454V11.594H137.962V16.346C137.962%2017.768%20138.646%2018.578%20139.798%2018.578C140.986%2018.578%20142.174%2017.93%20142.174%2016.13ZM148.808%2011.594H150.59V12.98H148.808V20H147.17V12.98H145.658V11.594H147.17V8.426H148.808V11.594ZM156.157%2020.18C153.763%2020.18%20151.765%2018.434%20151.765%2015.77C151.765%2013.106%20153.763%2011.414%20156.157%2011.414C158.551%2011.414%20160.567%2013.106%20160.567%2015.77C160.567%2018.434%20158.551%2020.18%20156.157%2020.18ZM156.157%2018.596C157.651%2018.596%20158.929%2017.498%20158.929%2015.77C158.929%2014.078%20157.651%2013.016%20156.157%2013.016C154.627%2013.016%20153.385%2014.078%20153.385%2015.77C153.385%2017.498%20154.627%2018.596%20156.157%2018.596ZM164.385%2011.594V12.908C164.961%2011.954%20166.131%2011.414%20167.319%2011.414C169.623%2011.414%20171.531%2013.16%20171.531%2015.824C171.531%2018.488%20169.623%2020.18%20167.319%2020.18C166.131%2020.18%20164.961%2019.694%20164.385%2018.74V24.086H162.747V11.594H164.385ZM164.403%2015.842C164.403%2017.642%20165.807%2018.578%20167.157%2018.578C168.669%2018.578%20169.875%2017.516%20169.875%2015.842C169.875%2014.168%20168.669%2013.016%20167.157%2013.016C165.681%2013.016%20164.403%2014.06%20164.403%2015.842ZM175.336%2011.594V20H173.716V11.594H175.336ZM173.392%208.498C173.392%207.868%20173.896%207.436%20174.526%207.436C175.156%207.436%20175.66%207.868%20175.66%208.498C175.66%209.128%20175.156%209.56%20174.526%209.56C173.896%209.56%20173.392%209.128%20173.392%208.498ZM184.735%2020V18.704C184.177%2019.64%20182.953%2020.18%20181.783%2020.18C179.479%2020.18%20177.517%2018.452%20177.517%2015.788C177.517%2013.106%20179.479%2011.414%20181.783%2011.414C182.953%2011.414%20184.159%2011.9%20184.735%2012.854V11.594H186.355V20H184.735ZM184.717%2015.77C184.717%2013.97%20183.295%2013.016%20181.927%2013.016C180.415%2013.016%20179.191%2014.114%20179.191%2015.77C179.191%2017.426%20180.415%2018.578%20181.927%2018.578C183.421%2018.578%20184.717%2017.552%20184.717%2015.77Z'%20fill='%23464646'/%3e%3cpath%20d='M122.082%2036.984L122.922%2037.692C122.19%2038.568%20121.086%2039.12%20119.79%2039.12C117.45%2039.12%20115.602%2037.236%20115.602%2034.884C115.602%2032.544%20117.45%2030.636%20119.79%2030.636C121.074%2030.636%20122.166%2031.176%20122.898%2032.04L122.058%2032.736C121.494%2032.124%20120.702%2031.716%20119.79%2031.716C118.05%2031.716%20116.718%2033.12%20116.718%2034.884C116.718%2036.648%20118.05%2038.04%20119.79%2038.04C120.714%2038.04%20121.518%2037.644%20122.082%2036.984ZM126.673%2039.12C125.077%2039.12%20123.745%2037.956%20123.745%2036.18C123.745%2034.404%20125.077%2033.276%20126.673%2033.276C128.269%2033.276%20129.613%2034.404%20129.613%2036.18C129.613%2037.956%20128.269%2039.12%20126.673%2039.12ZM126.673%2038.064C127.669%2038.064%20128.521%2037.332%20128.521%2036.18C128.521%2035.052%20127.669%2034.344%20126.673%2034.344C125.653%2034.344%20124.825%2035.052%20124.825%2036.18C124.825%2037.332%20125.653%2038.064%20126.673%2038.064ZM137.51%2034.344C136.586%2034.344%20136.022%2035.04%20136.022%2035.976V39H134.93V35.82C134.93%2034.896%20134.45%2034.344%20133.718%2034.344C132.938%2034.344%20132.158%2034.8%20132.158%2035.976V39H131.066V33.396H132.158V34.236C132.446%2033.612%20133.25%2033.336%20133.706%2033.3C133.922%2033.288%20134.126%2033.3%20134.318%2033.336C135.026%2033.444%20135.518%2033.816%20135.782%2034.428C136.298%2033.432%20137.186%2033.276%20137.726%2033.276C139.13%2033.276%20139.886%2034.176%20139.886%2035.76V39H138.794V35.832C138.794%2034.908%20138.326%2034.344%20137.51%2034.344ZM142.729%2033.396V34.272C143.113%2033.636%20143.893%2033.276%20144.685%2033.276C146.221%2033.276%20147.493%2034.44%20147.493%2036.216C147.493%2037.992%20146.221%2039.12%20144.685%2039.12C143.893%2039.12%20143.113%2038.796%20142.729%2038.16V41.724H141.637V33.396H142.729ZM142.741%2036.228C142.741%2037.428%20143.677%2038.052%20144.577%2038.052C145.585%2038.052%20146.389%2037.344%20146.389%2036.228C146.389%2035.112%20145.585%2034.344%20144.577%2034.344C143.593%2034.344%20142.741%2035.04%20142.741%2036.228ZM151.505%2039.12C149.909%2039.12%20148.577%2037.956%20148.577%2036.18C148.577%2034.404%20149.909%2033.276%20151.505%2033.276C153.101%2033.276%20154.445%2034.404%20154.445%2036.18C154.445%2037.956%20153.101%2039.12%20151.505%2039.12ZM151.505%2038.064C152.501%2038.064%20153.353%2037.332%20153.353%2036.18C153.353%2035.052%20152.501%2034.344%20151.505%2034.344C150.485%2034.344%20149.657%2035.052%20149.657%2036.18C149.657%2037.332%20150.485%2038.064%20151.505%2038.064ZM156.99%2035.976V39H155.898V33.396H156.99V34.236C157.314%2033.564%20158.13%2033.276%20158.742%2033.276C160.146%2033.276%20160.902%2034.176%20160.902%2035.76V39H159.81V35.832C159.81%2034.884%20159.342%2034.344%20158.574%2034.344C157.782%2034.344%20156.99%2034.788%20156.99%2035.976ZM163.38%2035.76H166.86C166.728%2034.812%20166.068%2034.26%20165.156%2034.26C164.232%2034.26%20163.512%2034.812%20163.38%2035.76ZM167.94%2036.18C167.94%2036.312%20167.94%2036.48%20167.928%2036.612H163.38C163.512%2037.56%20164.232%2038.136%20165.192%2038.136C165.864%2038.136%20166.476%2037.836%20166.8%2037.272C167.088%2037.404%20167.436%2037.5%20167.736%2037.632C167.256%2038.628%20166.248%2039.12%20165.156%2039.12C163.56%2039.12%20162.288%2037.956%20162.288%2036.18C162.288%2034.404%20163.56%2033.276%20165.156%2033.276C166.752%2033.276%20167.94%2034.404%20167.94%2036.18ZM170.42%2035.976V39H169.328V33.396H170.42V34.236C170.744%2033.564%20171.56%2033.276%20172.172%2033.276C173.576%2033.276%20174.332%2034.176%20174.332%2035.76V39H173.24V35.832C173.24%2034.884%20172.772%2034.344%20172.004%2034.344C171.212%2034.344%20170.42%2034.788%20170.42%2035.976ZM177.602%2033.396H178.79V34.32H177.602V39H176.51V34.32H175.502V33.396H176.51V31.284H177.602V33.396ZM183.138%2030.732H184.254V37.956H187.626V39H183.138V30.732ZM189.943%2033.396V39H188.863V33.396H189.943ZM188.647%2031.332C188.647%2030.912%20188.983%2030.624%20189.403%2030.624C189.823%2030.624%20190.159%2030.912%20190.159%2031.332C190.159%2031.752%20189.823%2032.04%20189.403%2032.04C188.983%2032.04%20188.647%2031.752%20188.647%2031.332ZM192.861%2038.136V39H191.769V30.348H192.861V34.236C193.233%2033.6%20194.013%2033.276%20194.829%2033.276C196.377%2033.276%20197.661%2034.404%20197.661%2036.192C197.661%2037.968%20196.353%2039.12%20194.817%2039.12C194.037%2039.12%20193.233%2038.76%20192.861%2038.136ZM192.873%2036.18C192.873%2037.368%20193.737%2038.052%20194.733%2038.052C195.741%2038.052%20196.545%2037.284%20196.545%2036.18C196.545%2035.076%20195.741%2034.344%20194.733%2034.344C193.821%2034.344%20192.873%2034.98%20192.873%2036.18ZM200.209%2036.96V39H199.117V33.396H200.209V34.656C200.497%2033.66%20201.037%2033.276%20201.769%2033.276C202.165%2033.276%20202.585%2033.384%20202.741%2033.492L202.573%2034.512C202.273%2034.368%20201.973%2034.32%20201.745%2034.32C200.665%2034.32%20200.209%2035.472%20200.209%2036.96ZM208.151%2039V38.136C207.779%2038.76%20206.963%2039.12%20206.183%2039.12C204.647%2039.12%20203.339%2037.968%20203.339%2036.192C203.339%2034.404%20204.647%2033.276%20206.183%2033.276C206.963%2033.276%20207.767%2033.6%20208.151%2034.236V33.396H209.231V39H208.151ZM208.139%2036.18C208.139%2034.98%20207.191%2034.344%20206.279%2034.344C205.271%2034.344%20204.455%2035.076%20204.455%2036.18C204.455%2037.284%20205.271%2038.052%20206.279%2038.052C207.275%2038.052%20208.139%2037.368%20208.139%2036.18ZM212.15%2036.96V39H211.058V33.396H212.15V34.656C212.438%2033.66%20212.978%2033.276%20213.71%2033.276C214.106%2033.276%20214.526%2033.384%20214.682%2033.492L214.514%2034.512C214.214%2034.368%20213.914%2034.32%20213.686%2034.32C212.606%2034.32%20212.15%2035.472%20212.15%2036.96ZM217.305%2041.724H216.165L217.341%2038.832L215.097%2033.396H216.261L217.941%2037.452L219.621%2033.396H220.785L217.305%2041.724Z'%20fill='%2300CAAF'/%3e%3c/svg%3e",Z3=()=>a.jsx(Ue.Link,{to:"/",className:"flex items-center gap-2",children:a.jsx("img",{src:Ia,alt:"Youtopia",className:"size-auto object-contain"})}),Oa={sm:576,md:768,lg:992,xl:1200,"2xl":1400,wide:1920},W2=l=>Object.entries(Oa).sort(([,i],[,s])=>i-s).find(([,i])=>l<i)?.[0]||"wide",U3=()=>{const[l,e]=t.useState(()=>typeof window>"u"?"md":W2(window.innerWidth));return t.useEffect(()=>{const r=()=>{e(W2(window.innerWidth))};return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),l},G3=[{label:"Buttons",href:"/buttons"},{label:"Cards",href:"/cards"},{label:"Forms",href:"/forms"},{label:"Miscellaneous",href:"/miscellaneous"},{label:"Popups",href:"/popups"},{label:"Tables",href:"/tables"}],$3=()=>{const l=U3();return["sm","md","lg"].includes(l)?a.jsx(_a,{}):a.jsx(Wa,{})},Wa=()=>a.jsx("nav",{className:"flex items-center gap-10",children:G3.map(l=>a.jsx(Ra,{...l},l.label))}),Ra=({label:l,href:e})=>{const{pathname:r}=Ue.useLocation(),n=r===e;return a.jsx(Ue.Link,{to:e,className:m(C.t1,"text-auxiliary-3 hover:text-primary",n&&"text-primary"),children:l})},_a=()=>a.jsxs(m3,{children:[a.jsx(f3,{asChild:!0,children:a.jsxs(ye,{variant:"link",className:"size-8 p-0",children:[a.jsx("span",{className:"sr-only",children:"Open Nav Menu"}),a.jsx(le.MenuIcon,{className:"size-6"})]})}),a.jsxs(v3,{align:"end",children:[a.jsx(g3,{className:"text-xs font-extrabold uppercase text-muted-foreground text-right",children:"Navigation"}),G3.map(l=>a.jsx(Pa,{...l},l.label))]})]}),Pa=({label:l,href:e})=>{const{pathname:r}=Ue.useLocation(),n=r===e;return a.jsx(p3,{className:m(C.t1,"text-auxiliary-3 hover:text-primary focus:bg-transparent justify-end",n&&"text-primary"),asChild:!0,children:a.jsx(Ue.Link,{to:e,children:l})})},Za=()=>a.jsxs("header",{className:"h-20 bg-auxiliary-1 border border-support-5 px-12 py-4 flex items-center justify-between lg:justify-start gap-20",children:[a.jsx(Z3,{}),a.jsx($3,{})]}),q3=({...l})=>a.jsxs("svg",{viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M19.166 12H24.4993",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M19.166 16.666H23.166",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M23.166 4H9.83268C6.15078 4 3.16602 6.98477 3.16602 10.6667V21.3333C3.16602 25.0152 6.15078 28 9.83268 28H23.166C26.8479 28 29.8327 25.0152 29.8327 21.3333V10.6667C29.8327 6.98477 26.8479 4 23.166 4Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),a.jsx("path",{d:"M7.16602 21.3327C8.7771 17.8912 14.7823 17.6648 16.4993 21.3327",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14.4993 12.0007C14.4993 13.4733 13.3054 14.6673 11.8327 14.6673C10.3599 14.6673 9.16602 13.4733 9.16602 12.0007C9.16602 10.5279 10.3599 9.33398 11.8327 9.33398C13.3054 9.33398 14.4993 10.5279 14.4993 12.0007Z",stroke:"currentColor",strokeWidth:"1.5"})]}),R2=["image/png","image/jpeg"],Ua=({label:l="Profile Photo",file:e,onFileSelect:r,disabled:n=!1})=>{const i=e?URL.createObjectURL(e):null,s=t.useRef(null),[o,c]=t.useState(!1),d=!!e,f=E=>{const g=E.target.files?.[0]??null;r(g),E.target.value=""},p=E=>{E.preventDefault(),c(!1);const g=E.dataTransfer.files?.[0];if(g){if(!R2.includes(g.type)){console.warn("Invalid file type:",g.type);return}r(g)}},x=()=>r(null);return t.useEffect(()=>()=>{i&&URL.revokeObjectURL(i)},[i]),a.jsxs("div",{className:"w-full flex flex-col gap-6",children:[a.jsx(qe,{className:m("py-0 max-w-[27.188rem] border-support-5","aria-invalid:ring-warning-5 aria-disabled:border-support-5",o&&"border-primary-5 bg-auxiliary-7"),"aria-disabled":n,children:a.jsx(Ye,{className:"w-full gap-6 p-0",children:a.jsxs("label",{tabIndex:0,className:"outline-primary-5 focus:outline-1 rounded-xl group flex items-center py-9 px-6 gap-6 transition cursor-pointer",onDragOver:E=>{E.preventDefault(),c(!0)},onDragLeave:()=>c(!1),onDrop:p,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),s.current?.click())},"aria-label":"Upload image file",role:"button",children:[a.jsx("input",{type:"file",accept:R2.join(","),className:"hidden",onChange:f,disabled:n,ref:s}),a.jsx("div",{className:m("relative size-[6.25rem] aspect-square flex justify-center items-center rounded-3xl overflow-hidden bg-auxiliary-7 outline-auxiliary-1",!i&&"outline -outline-offset-8"),children:i?a.jsx("img",{src:i,alt:"Preview",className:"object-cover size-full"}):a.jsx(q3,{className:"text-primary-5 size-12 group-hover:text-primary-6"})}),a.jsxs("div",{className:"flex flex-col gap-3",children:[a.jsx("p",{className:m(C.t1,"text-auxiliary-4 select-none"),children:l}),a.jsx("p",{className:m(C.t4,"text-primary-5 group-hover:text-primary-6 select-none",d&&"text-primary-6"),children:"Upload Image"})]})]})})}),e&&a.jsx(a2,{fileName:e.name,onRemove:x})]})},_2=["image/png","image/jpeg"],Ga=({label:l,description:e,maxFileSizeInMB:r,required:n,disabled:i,file:s,onFileSelect:o})=>{const c=s?URL.createObjectURL(s):null,d=E=>{E.preventDefault();const g=E.dataTransfer.files?.[0];if(g){if(!_2.includes(g.type)){console.warn("Invalid file type:",g.type);return}p(g)}},f=E=>{const g=E.target.files?.[0];g&&p(g)},p=E=>{if(E.size/1048576>r){console.warn(`File size exceeds the limit of ${r}MB`);return}o(E)},x=()=>o(null);return t.useEffect(()=>()=>{c&&URL.revokeObjectURL(c)},[c]),a.jsxs("div",{className:"flex flex-col gap-8 [&>div>label]:text-support-7",children:[l&&a.jsx(he,{label:l,required:n,disabled:i}),a.jsxs("div",{className:"flex items-center gap-8",children:[a.jsxs("label",{className:m("size-38 flex items-center justify-center rounded-lg bg-auxiliary-1 cursor-pointer overflow-hidden","border border-support-5 border-dashed","hover:border-primary"),onDragOver:E=>E.preventDefault(),onDrop:d,"aria-label":"Upload image file",role:"button",children:[c?a.jsx("img",{src:c,alt:"Preview",className:"size-full object-cover"}):a.jsx(i2,{className:"size-12"}),a.jsx("input",{type:"file",className:"hidden",onChange:f,accept:_2.join(",")})]}),a.jsxs("div",{className:m(C.p1),children:[e&&a.jsx("p",{className:"text-auxiliary-4",children:e}),a.jsxs("span",{className:"text-support-7",children:["Maximum file size: ",r,"MB"]})]})]}),s&&a.jsx(a2,{fileName:s.name,onRemove:x})]})},$a=({title:l,description:e,cta:r,...n})=>a.jsx(s1,{...n,children:a.jsxs(o1,{showCloseButton:!1,className:"gap-6 p-12 sm:max-w-[45rem] shadow-card",children:[a.jsxs(c1,{className:"gap-6",children:[a.jsxs(d1,{className:"flex items-center gap-6",children:[a.jsx("div",{className:"flex items-center justify-center p-3 size-14 bg-auxiliary-7 rounded-full",children:a.jsx(le.Info,{className:"text-primary-5 size-8"})}),a.jsx("span",{className:m(C.h4,"text-auxiliary-4"),children:l})]}),a.jsx(h1,{className:m(C.p1,"text-auxiliary-3"),children:e})]}),r&&a.jsx(t2,{children:a.jsx(ye,{className:"w-full",asChild:!!r.url,onClick:r.onClick,children:r.url?a.jsx(Ue.Link,{to:r.url,children:r.label}):r.label})})]})});function Y3(l,e){var r={};for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&e.indexOf(n)<0&&(r[n]=l[n]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(l);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(l,n[i])&&(r[n[i]]=l[n[i]]);return r}var Ft;(function(l){l.event="event",l.props="prop"})(Ft||(Ft={}));function Ae(){}function qa(l){var e,r=void 0;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e&&n.length===e.length&&n.every(function(s,o){return s===e[o]})||(e=n,r=l.apply(void 0,n)),r}}function Ht(l){return!!(l||"").match(/\d/)}function it(l){return l==null}function Ya(l){return typeof l=="number"&&isNaN(l)}function K3(l){return it(l)||Ya(l)||typeof l=="number"&&!isFinite(l)}function J3(l){return l.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ka(l){switch(l){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Ja(l,e,r){var n=Ka(r),i=l.search(/[1-9]/);return i=i===-1?l.length:i,l.substring(0,i)+l.substring(i,l.length).replace(n,"$1"+e)}function Qa(l){var e=t.useRef(l);e.current=l;var r=t.useRef(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e.current.apply(e,n)});return r.current}function s2(l,e){e===void 0&&(e=!0);var r=l[0]==="-",n=r&&e;l=l.replace("-","");var i=l.split("."),s=i[0],o=i[1]||"";return{beforeDecimal:s,afterDecimal:o,hasNegation:r,addNegation:n}}function Xa(l){if(!l)return l;var e=l[0]==="-";e&&(l=l.substring(1,l.length));var r=l.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(e?"-":"")+n+(i?"."+i:"")}function Q3(l,e,r){for(var n="",i=r?"0":"",s=0;s<=e-1;s++)n+=l[s]||i;return n}function P2(l,e){return Array(e+1).join(l)}function X3(l){var e=l+"",r=e[0]==="-"?"-":"";r&&(e=e.substring(1));var n=e.split(/[eE]/g),i=n[0],s=n[1];if(s=Number(s),!s)return r+i;i=i.replace(".","");var o=1+s,c=i.length;return o<0?i="0."+P2("0",Math.abs(o))+i:o>=c?i=i+P2("0",o-c):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function Z2(l,e,r){if(["","-"].indexOf(l)!==-1)return l;var n=(l.indexOf(".")!==-1||r)&&e,i=s2(l),s=i.beforeDecimal,o=i.afterDecimal,c=i.hasNegation,d=parseFloat("0."+(o||"0")),f=o.length<=e?"0."+o:d.toFixed(e),p=f.split("."),x=s;s&&Number(p[0])&&(x=s.split("").reverse().reduce(function(v,w,M){return v.length>M?(Number(v[0])+Number(w)).toString()+v.substring(1,v.length):w+v},p[0]));var E=Q3(p[1]||"",e,r),g=c?"-":"",z=n?".":"";return""+g+x+z+E}function Pe(l,e){if(l.value=l.value,l!==null){if(l.createTextRange){var r=l.createTextRange();return r.move("character",e),r.select(),!0}return l.selectionStart||l.selectionStart===0?(l.focus(),l.setSelectionRange(e,e),!0):(l.focus(),!1)}}var el=qa(function(l,e){for(var r=0,n=0,i=l.length,s=e.length;l[r]===e[r]&&r<i;)r++;for(;l[i-1-n]===e[s-1-n]&&s-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:s-n}}}),ei=function(l,e){var r=Math.min(l.selectionStart,e);return{from:{start:r,end:l.selectionEnd},to:{start:r,end:e}}};function ti(l,e,r){return Math.min(Math.max(l,e),r)}function H1(l){return Math.max(l.selectionStart,l.selectionEnd)}function ri(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function li(l){return{from:{start:0,end:0},to:{start:0,end:l.length},lastValue:""}}function ni(l){var e=l.currentValue,r=l.formattedValue,n=l.currentValueIndex,i=l.formattedValueIndex;return e[n]===r[i]}function ai(l,e,r,n,i,s,o){o===void 0&&(o=ni);var c=i.findIndex(function(I){return I}),d=l.slice(0,c);!e&&!r.startsWith(d)&&(e=d,r=d+r,n=n+d.length);for(var f=r.length,p=l.length,x={},E=new Array(f),g=0;g<f;g++){E[g]=-1;for(var z=0,v=p;z<v;z++){var w=o({currentValue:r,lastValue:e,formattedValue:l,currentValueIndex:g,formattedValueIndex:z});if(w&&x[z]!==!0){E[g]=z,x[z]=!0;break}}}for(var M=n;M<f&&(E[M]===-1||!s(r[M]));)M++;var y=M===f||E[M]===-1?p:E[M];for(M=n-1;M>0&&E[M]===-1;)M--;var L=M===-1||E[M]===-1?0:E[M]+1;return L>y?y:n-L<y-n?L:y}function U2(l,e,r,n){var i=l.length;if(e=ti(e,0,i),n==="left"){for(;e>=0&&!r[e];)e--;e===-1&&(e=r.indexOf(!0))}else{for(;e<=i&&!r[e];)e++;e>i&&(e=r.lastIndexOf(!0))}return e===-1&&(e=i),e}function ii(l){for(var e=Array.from({length:l.length+1}).map(function(){return!0}),r=0,n=e.length;r<n;r++)e[r]=!!(Ht(l[r])||Ht(l[r-1]));return e}function tl(l,e,r,n,i,s){s===void 0&&(s=Ae);var o=Qa(function(z,v){var w,M;return K3(z)?(M="",w=""):typeof z=="number"||v?(M=typeof z=="number"?X3(z):z,w=n(M)):(M=i(z,void 0),w=n(M)),{formattedValue:w,numAsString:M}}),c=t.useState(function(){return o(it(l)?e:l,r)}),d=c[0],f=c[1],p=function(z,v){z.formattedValue!==d.formattedValue&&f({formattedValue:z.formattedValue,numAsString:z.value}),s(z,v)},x=l,E=r;it(l)&&(x=d.numAsString,E=!0);var g=o(x,E);return t.useMemo(function(){f(g)},[g.formattedValue]),[d,p]}function si(l){return l.replace(/[^0-9]/g,"")}function oi(l){return l}function ci(l){var e=l.type;e===void 0&&(e="text");var r=l.displayType;r===void 0&&(r="input");var n=l.customInput,i=l.renderText,s=l.getInputRef,o=l.format;o===void 0&&(o=oi);var c=l.removeFormatting;c===void 0&&(c=si);var d=l.defaultValue,f=l.valueIsNumericString,p=l.onValueChange,x=l.isAllowed,E=l.onChange;E===void 0&&(E=Ae);var g=l.onKeyDown;g===void 0&&(g=Ae);var z=l.onMouseUp;z===void 0&&(z=Ae);var v=l.onFocus;v===void 0&&(v=Ae);var w=l.onBlur;w===void 0&&(w=Ae);var M=l.value,y=l.getCaretBoundary;y===void 0&&(y=ii);var L=l.isValidInputCharacter;L===void 0&&(L=Ht);var I=l.isCharacterSame,N=Y3(l,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),b=tl(M,d,!!f,o,c,p),H=b[0],k=H.formattedValue,O=H.numAsString,q=b[1],Q=t.useRef(),fe=t.useRef({formattedValue:k,numAsString:O}),ve=function(j,D){fe.current={formattedValue:j.formattedValue,numAsString:j.value},q(j,D)},P=t.useState(!1),ce=P[0],T=P[1],B=t.useRef(null),Z=t.useRef({setCaretTimeout:null,focusTimeout:null});t.useEffect(function(){return T(!0),function(){clearTimeout(Z.current.setCaretTimeout),clearTimeout(Z.current.focusTimeout)}},[]);var X=o,ee=function(j,D){var A=parseFloat(D);return{formattedValue:j,value:D,floatValue:isNaN(A)?void 0:A}},Y=function(j,D,A){j.selectionStart===0&&j.selectionEnd===j.value.length||(Pe(j,D),Z.current.setCaretTimeout=setTimeout(function(){j.value===A&&j.selectionStart!==D&&Pe(j,D)},0))},re=function(j,D,A){return U2(j,D,y(j),A)},Fe=function(j,D,A){var G=y(D),de=ai(D,k,j,A,G,L,I);return de=U2(D,de,G),de},He=function(j){var D=j.formattedValue;D===void 0&&(D="");var A=j.input,G=j.source,de=j.event,$=j.numAsString,U;if(A){var ke=j.inputValue||A.value,Ne=H1(A);A.value=D,U=Fe(ke,D,Ne),U!==void 0&&Y(A,U,D)}D!==k&&ve(ee(D,$),{event:de,source:G})};t.useEffect(function(){var j=fe.current,D=j.formattedValue,A=j.numAsString;(k!==D||O!==A)&&ve(ee(k,O),{event:void 0,source:Ft.props})},[k,O]);var De=B.current?H1(B.current):void 0,Tt=typeof window<"u"?t.useLayoutEffect:t.useEffect;Tt(function(){var j=B.current;if(k!==fe.current.formattedValue&&j){var D=Fe(fe.current.formattedValue,k,De);j.value=k,Y(j,D,k)}},[k]);var f1=function(j,D,A){var G=D.target,de=Q.current?ei(Q.current,G.selectionEnd):el(k,j),$=Object.assign(Object.assign({},de),{lastValue:k}),U=c(j,$),ke=X(U);if(U=c(ke,void 0),x&&!x(ee(ke,U))){var Ne=D.target,Se=H1(Ne),p1=Fe(j,k,Se);return Ne.value=k,Y(Ne,p1,k),!1}return He({formattedValue:ke,numAsString:U,inputValue:j,event:D,source:A,input:D.target}),!0},v1=function(j,D){D===void 0&&(D=0);var A=j.selectionStart,G=j.selectionEnd;Q.current={selectionStart:A,selectionEnd:G+D}},gl=function(j){var D=j.target,A=D.value,G=f1(A,j,Ft.event);G&&E(j),Q.current=void 0},xl=function(j){var D=j.target,A=j.key,G=D.selectionStart,de=D.selectionEnd,$=D.value;$===void 0&&($="");var U;A==="ArrowLeft"||A==="Backspace"?U=Math.max(G-1,0):A==="ArrowRight"?U=Math.min(G+1,$.length):A==="Delete"&&(U=G);var ke=0;A==="Delete"&&G===de&&(ke=1);var Ne=A==="ArrowLeft"||A==="ArrowRight";if(U===void 0||G!==de&&!Ne){g(j),v1(D,ke);return}var Se=U;if(Ne){var p1=A==="ArrowLeft"?"left":"right";Se=re($,U,p1),Se!==U&&j.preventDefault()}else A==="Delete"&&!L($[U])?Se=re($,U,"right"):A==="Backspace"&&!L($[U])&&(Se=re($,U,"left"));Se!==U&&Y(D,Se,$),g(j),v1(D,ke)},wl=function(j){var D=j.target,A=function(){var G=D.selectionStart,de=D.selectionEnd,$=D.value;if($===void 0&&($=""),G===de){var U=re($,G);U!==G&&Y(D,U,$)}};A(),requestAnimationFrame(function(){A()}),z(j),v1(D)},El=function(j){j.persist&&j.persist();var D=j.target,A=j.currentTarget;B.current=D,Z.current.focusTimeout=setTimeout(function(){var G=D.selectionStart,de=D.selectionEnd,$=D.value;$===void 0&&($="");var U=re($,G);U!==G&&!(G===0&&de===$.length)&&Y(D,U,$),v(Object.assign(Object.assign({},j),{currentTarget:A}))},0)},zl=function(j){B.current=null,clearTimeout(Z.current.focusTimeout),clearTimeout(Z.current.setCaretTimeout),w(j)},Ml=ce&&ri()?"numeric":void 0,o2=Object.assign({inputMode:Ml},N,{type:e,value:k,onChange:gl,onKeyDown:xl,onMouseUp:wl,onFocus:El,onBlur:zl});if(r==="text")return i?t.createElement(t.Fragment,null,i(k,N)||null):t.createElement("span",Object.assign({},N,{ref:s}),k);if(n){var Cl=n;return t.createElement(Cl,Object.assign({},o2,{ref:s}))}return t.createElement("input",Object.assign({},o2,{ref:s}))}function G2(l,e){var r=e.decimalScale,n=e.fixedDecimalScale,i=e.prefix;i===void 0&&(i="");var s=e.suffix;s===void 0&&(s="");var o=e.allowNegative,c=e.thousandsGroupStyle;if(c===void 0&&(c="thousand"),l===""||l==="-")return l;var d=m1(e),f=d.thousandSeparator,p=d.decimalSeparator,x=r!==0&&l.indexOf(".")!==-1||r&&n,E=s2(l,o),g=E.beforeDecimal,z=E.afterDecimal,v=E.addNegation;return r!==void 0&&(z=Q3(z,r,!!n)),f&&(g=Ja(g,f,c)),i&&(g=i+g),s&&(z=z+s),v&&(g="-"+g),l=g+(x&&p||"")+z,l}function m1(l){var e=l.decimalSeparator;e===void 0&&(e=".");var r=l.thousandSeparator,n=l.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:n}}function di(l,e){l===void 0&&(l="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(l),s=n.test(l);return l=l.replace(/-/g,""),i&&!s&&e&&(l="-"+l),l}function hi(l,e){return new RegExp("(^-)|[0-9]|"+J3(l),"g")}function ui(l,e,r){return l===""?!0:!e?.match(/\d/)&&!r?.match(/\d/)&&typeof l=="string"&&!isNaN(Number(l))}function mi(l,e,r){var n;e===void 0&&(e=li(l));var i=r.allowNegative,s=r.prefix;s===void 0&&(s="");var o=r.suffix;o===void 0&&(o="");var c=r.decimalScale,d=e.from,f=e.to,p=f.start,x=f.end,E=m1(r),g=E.allowedDecimalSeparators,z=E.decimalSeparator,v=l[x]===z;if(Ht(l)&&(l===s||l===o)&&e.lastValue==="")return l;if(x-p===1&&g.indexOf(l[p])!==-1){var w=c===0?"":z;l=l.substring(0,p)+w+l.substring(p+1,l.length)}var M=function(B,Z,X){var ee=!1,Y=!1;s.startsWith("-")?ee=!1:B.startsWith("--")?(ee=!1,Y=!0):o.startsWith("-")&&B.length===o.length?ee=!1:B[0]==="-"&&(ee=!0);var re=ee?1:0;return Y&&(re=2),re&&(B=B.substring(re),Z-=re,X-=re),{value:B,start:Z,end:X,hasNegation:ee}},y=M(l,p,x),L=y.hasNegation;n=y,l=n.value,p=n.start,x=n.end;var I=M(e.lastValue,d.start,d.end),N=I.start,b=I.end,H=I.value,k=l.substring(p,x);l.length&&H.length&&(N>H.length-o.length||b<s.length)&&!(k&&o.startsWith(k))&&(l=H);var O=0;l.startsWith(s)?O+=s.length:p<s.length&&(O=p),l=l.substring(O),x-=O;var q=l.length,Q=l.length-o.length;l.endsWith(o)?q=Q:(x>Q||x>l.length-o.length)&&(q=x),l=l.substring(0,q),l=di(L?"-"+l:l,i),l=(l.match(hi(z))||[]).join("");var fe=l.indexOf(z);l=l.replace(new RegExp(J3(z),"g"),function(B,Z){return Z===fe?".":""});var ve=s2(l,i),P=ve.beforeDecimal,ce=ve.afterDecimal,T=ve.addNegation;return f.end-f.start<d.end-d.start&&P===""&&v&&!parseFloat(ce)&&(l=T?"-":""),l}function fi(l,e){var r=e.prefix;r===void 0&&(r="");var n=e.suffix;n===void 0&&(n="");var i=Array.from({length:l.length+1}).map(function(){return!0}),s=l[0]==="-";i.fill(!1,0,r.length+(s?1:0));var o=l.length;return i.fill(!1,o-n.length+1,o+1),i}function vi(l){var e=m1(l),r=e.thousandSeparator,n=e.decimalSeparator,i=l.prefix;i===void 0&&(i="");var s=l.allowNegative;if(s===void 0&&(s=!0),r===n)throw new Error(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),yl=require("@radix-ui/react-accordion"),t=require("react"),Fl=require("clsx"),Hl=require("tailwind-merge"),X2=require("@radix-ui/react-slot"),er=require("class-variance-authority"),le=require("lucide-react"),j1=require("react-day-picker"),kl=require("@radix-ui/react-checkbox"),bl=require("@radix-ui/react-label"),Ge=require("cmdk"),jl=require("@radix-ui/react-dialog"),Ll=require("@radix-ui/react-dropdown-menu"),Dl=require("@radix-ui/react-popover"),Nl=require("@radix-ui/react-scroll-area"),Sl=require("@radix-ui/react-select"),Vl=require("@radix-ui/react-separator"),Bl=require("@radix-ui/react-tabs"),Tl=require("@radix-ui/react-tooltip"),Ue=require("react-router-dom"),Kt=require("@tanstack/react-table"),Al=require("react-phone-number-input");function me(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const r in l)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(l,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>l[r]})}}return e.default=l,Object.freeze(e)}const Mt=me(yl),Ce=me(t),c2=me(kl),Il=me(bl),je=me(jl),ne=me(Ll),Ct=me(Dl),wt=me(Nl),oe=me(Sl),Ol=me(Vl),Oe=me(Bl),lt=me(Tl),L1=me(Al);function m(...l){return Hl.twMerge(Fl.clsx(l))}const tr=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 24 24",fill:"none",...l,children:[a.jsx("path",{d:"M16 12H8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),rr=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 24 24",fill:"none",...l,children:[a.jsx("path",{d:"M12 8V16M16 12H8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),C={h1:"font-light text-5xl leading-[4.5rem]",h2:"font-light text-[2.5rem] leading-[3.75rem]",h3:"font-light text-[2rem] leading-[3rem]",h4:"font-normal text-2xl leading-[2.25rem]",h5:"font-normal text-[1.375rem] leading-[2.25rem]",t1:"font-light text-lg leading-[1.125rem]",t2:"font-normal text-lg leading-[1.125rem]",t3:"font-light text-base leading-[1rem]",t4:"font-normal text-base leading-[1rem]",p1:"font-light text-lg leading-[2rem]",p2:"font-normal text-lg leading-[2rem]",p3:"font-light text-base leading-[1.75rem]",p4:"font-normal text-base leading-[1.75rem]",b1:"font-light text-xl leading-[2.25rem]",b2:"font-normal text-xl leading-[2.25rem]",b3:"font-light text-xl leading-[2.25rem] italic"};function Wl({...l}){return a.jsx(Mt.Root,{"data-slot":"accordion",...l})}function Rl({className:l,...e}){return a.jsx(Mt.Item,{"data-slot":"accordion-item",className:m("border-b border-b-support-5 text-lg",l),...e})}function _l({className:l,children:e,...r}){return a.jsx(Mt.Header,{className:"flex",children:a.jsxs(Mt.Trigger,{"data-slot":"accordion-trigger",className:m(C.t2,"focus-visible:text-primary-5 focus-visible:border-ring text-auxiliary-4 flex flex-1 items-start justify-between gap-4 rounded-md py-8 text-start hover:text-primary-5 active:text-primary-7 transition-all outline-none disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 group data-[state=open]:active:text-primary-7 data-[state=open]:text-primary-5 cursor-pointer",l),...r,children:[e,a.jsx(rr,{className:"size-6 shrink-0 text-primary-5 transition-transform duration-200 group-data-[state=open]:hidden"}),a.jsx(tr,{className:"size-6 shrink-0 text-auxilliary-3! transition-transform duration-200 group-data-[state=closed]:hidden"})]})})}function Pl({className:l,children:e,...r}){return a.jsx(Mt.Content,{"data-slot":"accordion-content",className:m(C.p1,"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-support-7"),...r,children:a.jsx("div",{className:m("pt-0 pb-8",l),children:e})})}const lr=er.cva(m(C.t4,"inline-flex items-center justify-center rounded-full border border-transparent w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5 transition-[color,box-shadow] overflow-hidden"),{variants:{variant:{default:"bg-auxiliary-7 text-primary-5 [a&]:hover:bg-secondary/90"},size:{default:"p-3",xs:"py-[0.375rem] px-3",sm:"py-[0.438rem] px-3"}},defaultVariants:{size:"default",variant:"default"}});function ot({className:l,variant:e,size:r,asChild:n=!1,...i}){const s=n?X2.Slot:"span";return a.jsx(s,{"data-slot":"badge",className:m(lr({variant:e,size:r}),l),...i})}const Jt=er.cva(m(C.t2,"inline-flex items-center w-full justify-center px-2 py-[0.938rem] active:scale-95 gap-2 whitespace-nowrap rounded-xl h-12 transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5"),{variants:{variant:{default:"focus-visible:ring-auxiliary-5 bg-primary-5 text-auxiliary-1 border-primary-5 active:bg-auxiliary-6 active:text-primary-5 hover:bg-auxiliary-6 hover:text-primary-5 focus:bg-auxiliary-6 focus:text-primary-5 disabled:text-auxiliary-1 disabled:bg-support-5",destructive:"focus-visible:ring-warning-6 bg-warning-1 text-warning-6 border-warning-1 active:bg-warning-3 active:text-warning-6 hover:bg-warning-3 hover:text-warning-6 focus:bg-warning-3 focus:text-warning-6 disabled:opacity-50",secondary:"focus-visible:ring-primary-1 border-primary-5 text-primary-5 border-2 hover:text-primary-3 hover:border-primary-3 active:text-primary-3 active:border-primary-3 focus:text-primary-3 focus:border-primary-3 disabled:text-support-5 disabled:border-support-5",outline:"border border-support-5 bg-auxiliary-1 hover:bg-auxiliary-2 active:bg-auxiliary-2 focus:bg-auxiliary-2 disabled:opacity-50",ghost:"text-primary-5 hover:text-primary-6 active:text-primary-6 focus:text-primary-6 disabled:text-support-5 hover:bg-accent/10 active:bg-accent/10 focus:bg-accent/10 disabled:bg-transparent",link:"text-primary-5 hover:text-primary-6 focus:text-primary-6 active:text-primary-6 underline-offset-4 hover:underline disabled:text-primary-5/50"},size:{default:"w-[15.313rem] has-[>svg]:px-3",sm:"w-[9.375rem] gap-1.5 has-[>svg]:px-2.5",lg:"w-[21.25rem] has-[>svg]:px-4",icon:"size-[2.625rem] p-2"}},defaultVariants:{variant:"default",size:"default"}});function ye({className:l,variant:e,size:r,asChild:n=!1,...i}){const s=n?X2.Slot:"button";return a.jsx(s,{"data-slot":"button",className:m(Jt({variant:e,size:r,className:l})),...i})}class $e extends Error{}class Zl extends $e{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Ul extends $e{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Gl extends $e{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class rt extends $e{}class nr extends $e{constructor(e){super(`Invalid unit ${e}`)}}class ae extends $e{}class Ve extends $e{constructor(){super("Zone is an abstract class")}}const F="numeric",Me="short",ue="long",Qt={year:F,month:F,day:F},ar={year:F,month:Me,day:F},$l={year:F,month:Me,day:F,weekday:Me},ir={year:F,month:ue,day:F},sr={year:F,month:ue,day:F,weekday:ue},or={hour:F,minute:F},cr={hour:F,minute:F,second:F},dr={hour:F,minute:F,second:F,timeZoneName:Me},hr={hour:F,minute:F,second:F,timeZoneName:ue},ur={hour:F,minute:F,hourCycle:"h23"},mr={hour:F,minute:F,second:F,hourCycle:"h23"},fr={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:Me},vr={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:ue},pr={year:F,month:F,day:F,hour:F,minute:F},gr={year:F,month:F,day:F,hour:F,minute:F,second:F},xr={year:F,month:Me,day:F,hour:F,minute:F},wr={year:F,month:Me,day:F,hour:F,minute:F,second:F},ql={year:F,month:Me,day:F,weekday:Me,hour:F,minute:F},Er={year:F,month:ue,day:F,hour:F,minute:F,timeZoneName:Me},zr={year:F,month:ue,day:F,hour:F,minute:F,second:F,timeZoneName:Me},Mr={year:F,month:ue,day:F,weekday:ue,hour:F,minute:F,timeZoneName:ue},Cr={year:F,month:ue,day:F,weekday:ue,hour:F,minute:F,second:F,timeZoneName:ue};class kt{get type(){throw new Ve}get name(){throw new Ve}get ianaName(){return this.name}get isUniversal(){throw new Ve}offsetName(e,r){throw new Ve}formatOffset(e,r){throw new Ve}offset(e){throw new Ve}equals(e){throw new Ve}get isValid(){throw new Ve}}let g1=null;class r1 extends kt{static get instance(){return g1===null&&(g1=new r1),g1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vr(e,r,n)}formatOffset(e,r){return Et(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const D1=new Map;function Yl(l){let e=D1.get(l);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),D1.set(l,e)),e}const Kl={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Jl(l,e){const r=l.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,s,o,c,d,f,p]=n;return[o,i,s,c,d,f,p]}function Ql(l,e){const r=l.formatToParts(e),n=[];for(let i=0;i<r.length;i++){const{type:s,value:o}=r[i],c=Kl[s];s==="era"?n[c]=o:V(c)||(n[c]=parseInt(o,10))}return n}const x1=new Map;class Le extends kt{static create(e){let r=x1.get(e);return r===void 0&&x1.set(e,r=new Le(e)),r}static resetCache(){x1.clear(),D1.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Le.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vr(e,r,n,this.name)}formatOffset(e,r){return Et(this.offset(e),r)}offset(e){if(!this.valid)return NaN;const r=new Date(e);if(isNaN(r))return NaN;const n=Yl(this.name);let[i,s,o,c,d,f,p]=n.formatToParts?Ql(n,r):Jl(n,r);c==="BC"&&(i=-Math.abs(i)+1);const E=n1({year:i,month:s,day:o,hour:d===24?0:d,minute:f,second:p,millisecond:0});let g=+r;const z=g%1e3;return g-=z>=0?z:1e3+z,(E-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let d2={};function Xl(l,e={}){const r=JSON.stringify([l,e]);let n=d2[r];return n||(n=new Intl.ListFormat(l,e),d2[r]=n),n}const N1=new Map;function S1(l,e={}){const r=JSON.stringify([l,e]);let n=N1.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(l,e),N1.set(r,n)),n}const V1=new Map;function en(l,e={}){const r=JSON.stringify([l,e]);let n=V1.get(r);return n===void 0&&(n=new Intl.NumberFormat(l,e),V1.set(r,n)),n}const B1=new Map;function tn(l,e={}){const{base:r,...n}=e,i=JSON.stringify([l,n]);let s=B1.get(i);return s===void 0&&(s=new Intl.RelativeTimeFormat(l,e),B1.set(i,s)),s}let pt=null;function rn(){return pt||(pt=new Intl.DateTimeFormat().resolvedOptions().locale,pt)}const T1=new Map;function yr(l){let e=T1.get(l);return e===void 0&&(e=new Intl.DateTimeFormat(l).resolvedOptions(),T1.set(l,e)),e}const A1=new Map;function ln(l){let e=A1.get(l);if(!e){const r=new Intl.Locale(l);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Fr,...e}),A1.set(l,e)}return e}function nn(l){const e=l.indexOf("-x-");e!==-1&&(l=l.substring(0,e));const r=l.indexOf("-u-");if(r===-1)return[l];{let n,i;try{n=S1(l).resolvedOptions(),i=l}catch{const d=l.substring(0,r);n=S1(d).resolvedOptions(),i=d}const{numberingSystem:s,calendar:o}=n;return[i,s,o]}}function an(l,e,r){return(r||e)&&(l.includes("-u-")||(l+="-u"),r&&(l+=`-ca-${r}`),e&&(l+=`-nu-${e}`)),l}function sn(l){const e=[];for(let r=1;r<=12;r++){const n=S.utc(2009,r,1);e.push(l(n))}return e}function on(l){const e=[];for(let r=1;r<=7;r++){const n=S.utc(2016,11,13+r);e.push(l(n))}return e}function At(l,e,r,n){const i=l.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function cn(l){return l.numberingSystem&&l.numberingSystem!=="latn"?!1:l.numberingSystem==="latn"||!l.locale||l.locale.startsWith("en")||yr(l.locale).numberingSystem==="latn"}class dn{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!r||Object.keys(o).length>0){const c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=en(e,c)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):K1(e,3);return te(r,this.padTo)}}}class hn{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Le.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=S1(r,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class un{constructor(e,r,n){this.opts={style:"long",...n},!r&&Nr()&&(this.rtf=tn(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Vn(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Fr={firstDay:1,minimalDays:4,weekend:[6,7]};class _{static fromOpts(e){return _.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,s=!1){const o=e||J.defaultLocale,c=o||(s?"en-US":rn()),d=r||J.defaultNumberingSystem,f=n||J.defaultOutputCalendar,p=O1(i)||J.defaultWeekSettings;return new _(c,d,f,p,o)}static resetCache(){pt=null,N1.clear(),V1.clear(),B1.clear(),T1.clear(),A1.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return _.create(e,r,n,i)}constructor(e,r,n,i,s){const[o,c,d]=nn(e);this.locale=o,this.numberingSystem=r||c||null,this.outputCalendar=n||d||null,this.weekSettings=i,this.intl=an(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cn(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:_.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,O1(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return At(this,e,Ar,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const i=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";if(!this.monthsCache[s][e]){const o=n?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[s][e]=sn(o)}return this.monthsCache[s][e]})}weekdays(e,r=!1){return At(this,e,Wr,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=on(s=>this.extract(s,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return At(this,void 0,()=>Rr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return At(this,e,_r,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const i=this.dtFormatter(e,r),s=i.formatToParts(),o=s.find(c=>c.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new dn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new hn(e,this.intl,r)}relFormatter(e={}){return new un(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Xl(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||yr(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Sr()?ln(this.locale):Fr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let w1=null;class se extends kt{static get utcInstance(){return w1===null&&(w1=new se(0)),w1}static instance(e){return e===0?se.utcInstance:new se(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new se(a1(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Et(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Et(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Et(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class mn extends kt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Te(l,e){if(V(l)||l===null)return e;if(l instanceof kt)return l;if(wn(l)){const r=l.toLowerCase();return r==="default"?e:r==="local"||r==="system"?r1.instance:r==="utc"||r==="gmt"?se.utcInstance:se.parseSpecifier(r)||Le.create(l)}else return Ie(l)?se.instance(l):typeof l=="object"&&"offset"in l&&typeof l.offset=="function"?l:new mn(l)}const G1={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},h2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fn=G1.hanidec.replace(/[\[|\]]/g,"").split("");function vn(l){let e=parseInt(l,10);if(isNaN(e)){e="";for(let r=0;r<l.length;r++){const n=l.charCodeAt(r);if(l[r].search(G1.hanidec)!==-1)e+=fn.indexOf(l[r]);else for(const i in h2){const[s,o]=h2[i];n>=s&&n<=o&&(e+=n-s)}}return parseInt(e,10)}else return e}const I1=new Map;function pn(){I1.clear()}function we({numberingSystem:l},e=""){const r=l||"latn";let n=I1.get(r);n===void 0&&(n=new Map,I1.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${G1[r]}${e}`),n.set(e,i)),i}let u2=()=>Date.now(),m2="system",f2=null,v2=null,p2=null,g2=60,x2,w2=null;class J{static get now(){return u2}static set now(e){u2=e}static set defaultZone(e){m2=e}static get defaultZone(){return Te(m2,r1.instance)}static get defaultLocale(){return f2}static set defaultLocale(e){f2=e}static get defaultNumberingSystem(){return v2}static set defaultNumberingSystem(e){v2=e}static get defaultOutputCalendar(){return p2}static set defaultOutputCalendar(e){p2=e}static get defaultWeekSettings(){return w2}static set defaultWeekSettings(e){w2=O1(e)}static get twoDigitCutoffYear(){return g2}static set twoDigitCutoffYear(e){g2=e%100}static get throwOnInvalid(){return x2}static set throwOnInvalid(e){x2=e}static resetCaches(){_.resetCache(),Le.resetCache(),S.resetCache(),pn()}}class ze{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Hr=[0,31,59,90,120,151,181,212,243,273,304,334],kr=[0,31,60,91,121,152,182,213,244,274,305,335];function ge(l,e){return new ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${l}, which is invalid`)}function $1(l,e,r){const n=new Date(Date.UTC(l,e-1,r));l<100&&l>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return i===0?7:i}function br(l,e,r){return r+(bt(l)?kr:Hr)[e-1]}function jr(l,e){const r=bt(l)?kr:Hr,n=r.findIndex(s=>s<e),i=e-r[n];return{month:n+1,day:i}}function q1(l,e){return(l-e+7)%7+1}function Xt(l,e=4,r=1){const{year:n,month:i,day:s}=l,o=br(n,i,s),c=q1($1(n,i,s),r);let d=Math.floor((o-c+14-e)/7),f;return d<1?(f=n-1,d=yt(f,e,r)):d>yt(n,e,r)?(f=n+1,d=1):f=n,{weekYear:f,weekNumber:d,weekday:c,...i1(l)}}function E2(l,e=4,r=1){const{weekYear:n,weekNumber:i,weekday:s}=l,o=q1($1(n,1,e),r),c=nt(n);let d=i*7+s-o-7+e,f;d<1?(f=n-1,d+=nt(f)):d>c?(f=n+1,d-=nt(n)):f=n;const{month:p,day:x}=jr(f,d);return{year:f,month:p,day:x,...i1(l)}}function E1(l){const{year:e,month:r,day:n}=l,i=br(e,r,n);return{year:e,ordinal:i,...i1(l)}}function z2(l){const{year:e,ordinal:r}=l,{month:n,day:i}=jr(e,r);return{year:e,month:n,day:i,...i1(l)}}function M2(l,e){if(!V(l.localWeekday)||!V(l.localWeekNumber)||!V(l.localWeekYear)){if(!V(l.weekday)||!V(l.weekNumber)||!V(l.weekYear))throw new rt("Cannot mix locale-based week fields with ISO-based week fields");return V(l.localWeekday)||(l.weekday=l.localWeekday),V(l.localWeekNumber)||(l.weekNumber=l.localWeekNumber),V(l.localWeekYear)||(l.weekYear=l.localWeekYear),delete l.localWeekday,delete l.localWeekNumber,delete l.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function gn(l,e=4,r=1){const n=l1(l.weekYear),i=xe(l.weekNumber,1,yt(l.weekYear,e,r)),s=xe(l.weekday,1,7);return n?i?s?!1:ge("weekday",l.weekday):ge("week",l.weekNumber):ge("weekYear",l.weekYear)}function xn(l){const e=l1(l.year),r=xe(l.ordinal,1,nt(l.year));return e?r?!1:ge("ordinal",l.ordinal):ge("year",l.year)}function Lr(l){const e=l1(l.year),r=xe(l.month,1,12),n=xe(l.day,1,e1(l.year,l.month));return e?r?n?!1:ge("day",l.day):ge("month",l.month):ge("year",l.year)}function Dr(l){const{hour:e,minute:r,second:n,millisecond:i}=l,s=xe(e,0,23)||e===24&&r===0&&n===0&&i===0,o=xe(r,0,59),c=xe(n,0,59),d=xe(i,0,999);return s?o?c?d?!1:ge("millisecond",i):ge("second",n):ge("minute",r):ge("hour",e)}function V(l){return typeof l>"u"}function Ie(l){return typeof l=="number"}function l1(l){return typeof l=="number"&&l%1===0}function wn(l){return typeof l=="string"}function En(l){return Object.prototype.toString.call(l)==="[object Date]"}function Nr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function zn(l){return Array.isArray(l)?l:[l]}function C2(l,e,r){if(l.length!==0)return l.reduce((n,i)=>{const s=[e(i),i];return n&&r(n[0],s[0])===n[0]?n:s},null)[1]}function Mn(l,e){return e.reduce((r,n)=>(r[n]=l[n],r),{})}function st(l,e){return Object.prototype.hasOwnProperty.call(l,e)}function O1(l){if(l==null)return null;if(typeof l!="object")throw new ae("Week settings must be an object");if(!xe(l.firstDay,1,7)||!xe(l.minimalDays,1,7)||!Array.isArray(l.weekend)||l.weekend.some(e=>!xe(e,1,7)))throw new ae("Invalid week settings");return{firstDay:l.firstDay,minimalDays:l.minimalDays,weekend:Array.from(l.weekend)}}function xe(l,e,r){return l1(l)&&l>=e&&l<=r}function Cn(l,e){return l-e*Math.floor(l/e)}function te(l,e=2){const r=l<0;let n;return r?n="-"+(""+-l).padStart(e,"0"):n=(""+l).padStart(e,"0"),n}function Be(l){if(!(V(l)||l===null||l===""))return parseInt(l,10)}function Re(l){if(!(V(l)||l===null||l===""))return parseFloat(l)}function Y1(l){if(!(V(l)||l===null||l==="")){const e=parseFloat("0."+l)*1e3;return Math.floor(e)}}function K1(l,e,r="round"){const n=10**e;switch(r){case"expand":return l>0?Math.ceil(l*n)/n:Math.floor(l*n)/n;case"trunc":return Math.trunc(l*n)/n;case"round":return Math.round(l*n)/n;case"floor":return Math.floor(l*n)/n;case"ceil":return Math.ceil(l*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function bt(l){return l%4===0&&(l%100!==0||l%400===0)}function nt(l){return bt(l)?366:365}function e1(l,e){const r=Cn(e-1,12)+1,n=l+(e-r)/12;return r===2?bt(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function n1(l){let e=Date.UTC(l.year,l.month-1,l.day,l.hour,l.minute,l.second,l.millisecond);return l.year<100&&l.year>=0&&(e=new Date(e),e.setUTCFullYear(l.year,l.month-1,l.day)),+e}function y2(l,e,r){return-q1($1(l,1,e),r)+e-1}function yt(l,e=4,r=1){const n=y2(l,e,r),i=y2(l+1,e,r);return(nt(l)-n+i)/7}function W1(l){return l>99?l:l>J.twoDigitCutoffYear?1900+l:2e3+l}function Vr(l,e,r,n=null){const i=new Date(l),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);const o={timeZoneName:e,...s},c=new Intl.DateTimeFormat(r,o).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function a1(l,e){let r=parseInt(l,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function Br(l){const e=Number(l);if(typeof l=="boolean"||l===""||!Number.isFinite(e))throw new ae(`Invalid unit value ${l}`);return e}function t1(l,e){const r={};for(const n in l)if(st(l,n)){const i=l[n];if(i==null)continue;r[e(n)]=Br(i)}return r}function Et(l,e){const r=Math.trunc(Math.abs(l/60)),n=Math.trunc(Math.abs(l%60)),i=l>=0?"+":"-";switch(e){case"short":return`${i}${te(r,2)}:${te(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${te(r,2)}${te(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function i1(l){return Mn(l,["hour","minute","second","millisecond"])}const yn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fn=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ar(l){switch(l){case"narrow":return[...Fn];case"short":return[...Tr];case"long":return[...yn];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ir=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Or=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Hn=["M","T","W","T","F","S","S"];function Wr(l){switch(l){case"narrow":return[...Hn];case"short":return[...Or];case"long":return[...Ir];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Rr=["AM","PM"],kn=["Before Christ","Anno Domini"],bn=["BC","AD"],jn=["B","A"];function _r(l){switch(l){case"narrow":return[...jn];case"short":return[...bn];case"long":return[...kn];default:return null}}function Ln(l){return Rr[l.hour<12?0:1]}function Dn(l,e){return Wr(e)[l.weekday-1]}function Nn(l,e){return Ar(e)[l.month-1]}function Sn(l,e){return _r(e)[l.year<0?0:1]}function Vn(l,e,r="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(l)===-1;if(r==="auto"&&s){const x=l==="days";switch(e){case 1:return x?"tomorrow":`next ${i[l][0]}`;case-1:return x?"yesterday":`last ${i[l][0]}`;case 0:return x?"today":`this ${i[l][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,f=i[l],p=n?d?f[1]:f[2]||f[1]:d?i[l][0]:l;return o?`${c} ${p} ago`:`in ${c} ${p}`}function F2(l,e){let r="";for(const n of l)n.literal?r+=n.val:r+=e(n.val);return r}const Bn={D:Qt,DD:ar,DDD:ir,DDDD:sr,t:or,tt:cr,ttt:dr,tttt:hr,T:ur,TT:mr,TTT:fr,TTTT:vr,f:pr,ff:xr,fff:Er,ffff:Mr,F:gr,FF:wr,FFF:zr,FFFF:Cr};class ie{static create(e,r={}){return new ie(e,r)}static parseFormat(e){let r=null,n="",i=!1;const s=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?((n.length>0||i)&&s.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return Bn[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return te(e,r);const i={...this.opts};return r>0&&(i.padTo=r),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(g,z)=>this.loc.extract(e,g,z),o=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",c=()=>n?Ln(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(g,z)=>n?Nn(e,g):s(z?{month:g}:{month:g,day:"numeric"},"month"),f=(g,z)=>n?Dn(e,g):s(z?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),p=g=>{const z=ie.macroTokenToFormatOpts(g);return z?this.formatWithSystemDefault(e,z):g},x=g=>n?Sn(e,g):s({era:g},"era"),E=g=>{switch(g){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(g)}};return F2(ie.parseFormat(r),E)}formatDurationFromString(e,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=p=>{switch(p[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=(p,x)=>E=>{const g=i(E);if(g){const z=x.isNegativeDuration&&g!==x.largestUnit?n:1;let v;return this.opts.signMode==="negativeLargestOnly"&&g!==x.largestUnit?v="never":this.opts.signMode==="all"?v="always":v="auto",this.num(p.get(g)*z,E.length,v)}else return E},o=ie.parseFormat(r),c=o.reduce((p,{literal:x,val:E})=>x?p:p.concat(E),[]),d=e.shiftTo(...c.map(i).filter(p=>p)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return F2(o,s(d,f))}}const Pr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ct(...l){const e=l.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function dt(...l){return e=>l.reduce(([r,n,i],s)=>{const[o,c,d]=s(e,i);return[{...r,...o},c||n,d]},[{},null,1]).slice(0,2)}function ht(l,...e){if(l==null)return[null,null];for(const[r,n]of e){const i=r.exec(l);if(i)return n(i)}return[null,null]}function Zr(...l){return(e,r)=>{const n={};let i;for(i=0;i<l.length;i++)n[l[i]]=Be(e[r+i]);return[n,null,r+i]}}const Ur=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Tn=`(?:${Ur.source}?(?:\\[(${Pr.source})\\])?)?`,J1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gr=RegExp(`${J1.source}${Tn}`),Q1=RegExp(`(?:[Tt]${Gr.source})?`),An=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,In=/(\d{4})-?W(\d\d)(?:-?(\d))?/,On=/(\d{4})-?(\d{3})/,Wn=Zr("weekYear","weekNumber","weekDay"),Rn=Zr("year","ordinal"),_n=/(\d{4})-(\d\d)-(\d\d)/,$r=RegExp(`${J1.source} ?(?:${Ur.source}|(${Pr.source}))?`),Pn=RegExp(`(?: ${$r.source})?`);function at(l,e,r){const n=l[e];return V(n)?r:Be(n)}function Zn(l,e){return[{year:at(l,e),month:at(l,e+1,1),day:at(l,e+2,1)},null,e+3]}function ut(l,e){return[{hours:at(l,e,0),minutes:at(l,e+1,0),seconds:at(l,e+2,0),milliseconds:Y1(l[e+3])},null,e+4]}function jt(l,e){const r=!l[e]&&!l[e+1],n=a1(l[e+1],l[e+2]),i=r?null:se.instance(n);return[{},i,e+3]}function Lt(l,e){const r=l[e]?Le.create(l[e]):null;return[{},r,e+1]}const Un=RegExp(`^T?${J1.source}$`),Gn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function $n(l){const[e,r,n,i,s,o,c,d,f]=l,p=e[0]==="-",x=d&&d[0]==="-",E=(g,z=!1)=>g!==void 0&&(z||g&&p)?-g:g;return[{years:E(Re(r)),months:E(Re(n)),weeks:E(Re(i)),days:E(Re(s)),hours:E(Re(o)),minutes:E(Re(c)),seconds:E(Re(d),d==="-0"),milliseconds:E(Y1(f),x)}]}const qn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function X1(l,e,r,n,i,s,o){const c={year:e.length===2?W1(Be(e)):Be(e),month:Tr.indexOf(r)+1,day:Be(n),hour:Be(i),minute:Be(s)};return o&&(c.second=Be(o)),l&&(c.weekday=l.length>3?Ir.indexOf(l)+1:Or.indexOf(l)+1),c}const Yn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kn(l){const[,e,r,n,i,s,o,c,d,f,p,x]=l,E=X1(e,i,n,r,s,o,c);let g;return d?g=qn[d]:f?g=0:g=a1(p,x),[E,new se(g)]}function Jn(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,e0=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function H2(l){const[,e,r,n,i,s,o,c]=l;return[X1(e,i,n,r,s,o,c),se.utcInstance]}function t0(l){const[,e,r,n,i,s,o,c]=l;return[X1(e,c,r,n,i,s,o),se.utcInstance]}const r0=ct(An,Q1),l0=ct(In,Q1),n0=ct(On,Q1),a0=ct(Gr),qr=dt(Zn,ut,jt,Lt),i0=dt(Wn,ut,jt,Lt),s0=dt(Rn,ut,jt,Lt),o0=dt(ut,jt,Lt);function c0(l){return ht(l,[r0,qr],[l0,i0],[n0,s0],[a0,o0])}function d0(l){return ht(Jn(l),[Yn,Kn])}function h0(l){return ht(l,[Qn,H2],[Xn,H2],[e0,t0])}function u0(l){return ht(l,[Gn,$n])}const m0=dt(ut);function f0(l){return ht(l,[Un,m0])}const v0=ct(_n,Pn),p0=ct($r),g0=dt(ut,jt,Lt);function x0(l){return ht(l,[v0,qr],[p0,g0])}const k2="Invalid Duration",Yr={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},w0={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Yr},pe=146097/400,Qe=146097/4800,E0={years:{quarters:4,months:12,weeks:pe/7,days:pe,hours:pe*24,minutes:pe*24*60,seconds:pe*24*60*60,milliseconds:pe*24*60*60*1e3},quarters:{months:3,weeks:pe/28,days:pe/4,hours:pe*24/4,minutes:pe*24*60/4,seconds:pe*24*60*60/4,milliseconds:pe*24*60*60*1e3/4},months:{weeks:Qe/7,days:Qe,hours:Qe*24,minutes:Qe*24*60,seconds:Qe*24*60*60,milliseconds:Qe*24*60*60*1e3},...Yr},Ze=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],z0=Ze.slice(0).reverse();function be(l,e,r=!1){const n={values:r?e.values:{...l.values,...e.values||{}},loc:l.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||l.conversionAccuracy,matrix:e.matrix||l.matrix};return new W(n)}function Kr(l,e){let r=e.milliseconds??0;for(const n of z0.slice(1))e[n]&&(r+=e[n]*l[n].milliseconds);return r}function b2(l,e){const r=Kr(l,e)<0?-1:1;Ze.reduceRight((n,i)=>{if(V(e[i]))return n;if(n){const s=e[n]*r,o=l[i][n],c=Math.floor(s/o);e[i]+=c*r,e[n]-=c*o*r}return i},null),Ze.reduce((n,i)=>{if(V(e[i]))return n;if(n){const s=e[n]%1;e[n]-=s,e[i]+=s*l[n][i]}return i},null)}function j2(l){const e={};for(const[r,n]of Object.entries(l))n!==0&&(e[r]=n);return e}class W{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?E0:w0;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||_.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return W.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ae(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new W({values:t1(e,W.normalizeUnit),loc:_.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ie(e))return W.fromMillis(e);if(W.isDuration(e))return e;if(typeof e=="object")return W.fromObject(e);throw new ae(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=u0(e);return n?W.fromObject(n,r):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=f0(e);return n?W.fromObject(n,r):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the Duration is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Gl(n);return new W({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new nr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ie.create(this.loc,n).formatDurationFromString(this,e):k2}toHuman(e={}){if(!this.isValid)return k2;const r=e.showZeros!==!1,n=Ze.map(i=>{const s=this.values[i];return V(s)||s===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=K1(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Kr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e),n={};for(const i of Ze)(st(r.values,i)||st(this.values,i))&&(n[i]=r.get(i)+this.get(i));return be(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Br(e(this.values[n],n));return be(this,{values:r},!0)}get(e){return this[W.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...t1(e,W.normalizeUnit)};return be(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return be(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return b2(this.matrix,e),be(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=j2(this.normalize().shiftToAll().toObject());return be(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>W.normalizeUnit(o));const r={},n={},i=this.toObject();let s;for(const o of Ze)if(e.indexOf(o)>=0){s=o;let c=0;for(const f in n)c+=this.matrix[f][o]*n[f],n[f]=0;Ie(i[o])&&(c+=i[o]);const d=Math.trunc(c);r[o]=d,n[o]=(c*1e3-d*1e3)/1e3}else Ie(i[o])&&(n[o]=i[o]);for(const o in n)n[o]!==0&&(r[s]+=o===s?n[o]:n[o]/this.matrix[s][o]);return b2(this.matrix,r),be(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return be(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=j2(this.values);return be(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(const n of Ze)if(!r(this.values[n],e.values[n]))return!1;return!0}}const Xe="Invalid Interval";function M0(l,e){return!l||!l.isValid?K.invalid("missing or invalid start"):!e||!e.isValid?K.invalid("missing or invalid end"):e<l?K.invalid("end before start",`The end of an interval must be after its start, but you had start=${l.toISO()} and end=${e.toISO()}`):null}class K{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the Interval is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Ul(n);return new K({invalid:n})}static fromDateTimes(e,r){const n=vt(e),i=vt(r),s=M0(n,i);return s??new K({start:n,end:i})}static after(e,r){const n=W.fromDurationLike(r),i=vt(e);return K.fromDateTimes(i,i.plus(n))}static before(e,r){const n=W.fromDurationLike(r),i=vt(e);return K.fromDateTimes(i.minus(n),i)}static fromISO(e,r){const[n,i]=(e||"").split("/",2);if(n&&i){let s,o;try{s=S.fromISO(n,r),o=s.isValid}catch{o=!1}let c,d;try{c=S.fromISO(i,r),d=c.isValid}catch{d=!1}if(o&&d)return K.fromDateTimes(s,c);if(o){const f=W.fromISO(i,r);if(f.isValid)return K.after(s,f)}else if(d){const f=W.fromISO(n,r);if(f.isValid)return K.before(c,f)}}return K.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(e,r);let i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?K.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(vt).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),n=[];let{s:i}=this,s=0;for(;i<this.e;){const o=r[s]||this.e,c=+o>+this.e?this.e:o;n.push(K.fromDateTimes(i,c)),i=c,s+=1}return n}splitBy(e){const r=W.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,s;const o=[];for(;n<this.e;){const c=this.start.plus(r.mapUnits(d=>d*i));s=+c>+this.e?this.e:c,o.push(K.fromDateTimes(n,s)),n=s,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:K.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return K.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((i,s)=>i.s-s.s).reduce(([i,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[i,s.union(o)]:[i.concat([s]),o]:[i,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const i=[],s=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...s),c=o.sort((d,f)=>d.time-f.time);for(const d of c)n+=d.type==="s"?1:-1,n===1?r=d.time:(r&&+r!=+d.time&&i.push(K.fromDateTimes(r,d.time)),r=null);return K.merge(i)}difference(...e){return K.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xe}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Qt,r={}){return this.isValid?ie.create(this.s.loc.clone(r),e).formatInterval(this):Xe}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Xe}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xe}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Xe}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Xe}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):W.invalid(this.invalidReason)}mapEndpoints(e){return K.fromDateTimes(e(this.s),e(this.e))}}class It{static hasDST(e=J.defaultZone){const r=S.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Le.isValidZone(e)}static normalizeZone(e){return Te(e,J.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||_.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||_.create(r,n,s)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||_.create(r,n,s)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return _.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return _.create(r,null,"gregory").eras(e)}static features(){return{relative:Nr(),localeWeek:Sr()}}}function L2(l,e){const r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(l);return Math.floor(W.fromMillis(n).as("days"))}function C0(l,e,r){const n=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const p=L2(d,f);return(p-p%7)/7}],["days",L2]],i={},s=l;let o,c;for(const[d,f]of n)r.indexOf(d)>=0&&(o=d,i[d]=f(l,e),c=s.plus(i),c>e?(i[d]--,l=s.plus(i),l>e&&(c=l,i[d]--,l=s.plus(i))):l=c);return[l,i,c,o]}function y0(l,e,r,n){let[i,s,o,c]=C0(l,e,r);const d=e-i,f=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);f.length===0&&(o<e&&(o=i.plus({[c]:1})),o!==i&&(s[c]=(s[c]||0)+d/(o-i)));const p=W.fromObject(s,n);return f.length>0?W.fromMillis(d,n).shiftTo(...f).plus(p):p}const F0="missing Intl.DateTimeFormat.formatToParts support";function R(l,e=r=>r){return{regex:l,deser:([r])=>e(vn(r))}}const H0=" ",Jr=`[ ${H0}]`,Qr=new RegExp(Jr,"g");function k0(l){return l.replace(/\./g,"\\.?").replace(Qr,Jr)}function D2(l){return l.replace(/\./g,"").replace(Qr," ").toLowerCase()}function Ee(l,e){return l===null?null:{regex:RegExp(l.map(k0).join("|")),deser:([r])=>l.findIndex(n=>D2(r)===D2(n))+e}}function N2(l,e){return{regex:l,deser:([,r,n])=>a1(r,n),groups:e}}function Ot(l){return{regex:l,deser:([e])=>e}}function b0(l){return l.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function j0(l,e){const r=we(e),n=we(e,"{2}"),i=we(e,"{3}"),s=we(e,"{4}"),o=we(e,"{6}"),c=we(e,"{1,2}"),d=we(e,"{1,3}"),f=we(e,"{1,6}"),p=we(e,"{1,9}"),x=we(e,"{2,4}"),E=we(e,"{4,6}"),g=w=>({regex:RegExp(b0(w.val)),deser:([M])=>M,literal:!0}),v=(w=>{if(l.literal)return g(w);switch(w.val){case"G":return Ee(e.eras("short"),0);case"GG":return Ee(e.eras("long"),0);case"y":return R(f);case"yy":return R(x,W1);case"yyyy":return R(s);case"yyyyy":return R(E);case"yyyyyy":return R(o);case"M":return R(c);case"MM":return R(n);case"MMM":return Ee(e.months("short",!0),1);case"MMMM":return Ee(e.months("long",!0),1);case"L":return R(c);case"LL":return R(n);case"LLL":return Ee(e.months("short",!1),1);case"LLLL":return Ee(e.months("long",!1),1);case"d":return R(c);case"dd":return R(n);case"o":return R(d);case"ooo":return R(i);case"HH":return R(n);case"H":return R(c);case"hh":return R(n);case"h":return R(c);case"mm":return R(n);case"m":return R(c);case"q":return R(c);case"qq":return R(n);case"s":return R(c);case"ss":return R(n);case"S":return R(d);case"SSS":return R(i);case"u":return Ot(p);case"uu":return Ot(c);case"uuu":return R(r);case"a":return Ee(e.meridiems(),0);case"kkkk":return R(s);case"kk":return R(x,W1);case"W":return R(c);case"WW":return R(n);case"E":case"c":return R(r);case"EEE":return Ee(e.weekdays("short",!1),1);case"EEEE":return Ee(e.weekdays("long",!1),1);case"ccc":return Ee(e.weekdays("short",!0),1);case"cccc":return Ee(e.weekdays("long",!0),1);case"Z":case"ZZ":return N2(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return N2(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Ot(/[a-z_+-/]{1,256}?/i);case" ":return Ot(/[^\S\n\r]/);default:return g(w)}})(l)||{invalidReason:F0};return v.token=l,v}const L0={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function D0(l,e,r){const{type:n,value:i}=l;if(n==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const s=e[n];let o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let c=L0[o];if(typeof c=="object"&&(c=c[s]),c)return{literal:!1,val:c}}function N0(l){return[`^${l.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,l]}function S0(l,e,r){const n=l.match(e);if(n){const i={};let s=1;for(const o in r)if(st(r,o)){const c=r[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(s,s+d))),s+=d}return[n,i]}else return[n,{}]}function V0(l){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return V(l.z)||(r=Le.create(l.z)),V(l.Z)||(r||(r=new se(l.Z)),n=l.Z),V(l.q)||(l.M=(l.q-1)*3+1),V(l.h)||(l.h<12&&l.a===1?l.h+=12:l.h===12&&l.a===0&&(l.h=0)),l.G===0&&l.y&&(l.y=-l.y),V(l.u)||(l.S=Y1(l.u)),[Object.keys(l).reduce((s,o)=>{const c=e(o);return c&&(s[c]=l[o]),s},{}),r,n]}let z1=null;function B0(){return z1||(z1=S.fromMillis(1555555555555)),z1}function T0(l,e){if(l.literal)return l;const r=ie.macroTokenToFormatOpts(l.val),n=r3(r,e);return n==null||n.includes(void 0)?l:n}function Xr(l,e){return Array.prototype.concat(...l.map(r=>T0(r,e)))}class e3{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Xr(ie.parseFormat(r),e),this.units=this.tokens.map(n=>j0(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,i]=N0(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){const[r,n]=S0(e,this.regex,this.handlers),[i,s,o]=n?V0(n):[null,null,void 0];if(st(n,"a")&&st(n,"H"))throw new rt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:s,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function t3(l,e,r){return new e3(l,r).explainFromTokens(e)}function A0(l,e,r){const{result:n,zone:i,specificOffset:s,invalidReason:o}=t3(l,e,r);return[n,i,s,o]}function r3(l,e){if(!l)return null;const n=ie.create(e,l).dtFormatter(B0()),i=n.formatToParts(),s=n.resolvedOptions();return i.map(o=>D0(o,l,s))}const M1="Invalid DateTime",S2=864e13;function gt(l){return new ze("unsupported zone",`the zone "${l.name}" is not supported`)}function C1(l){return l.weekData===null&&(l.weekData=Xt(l.c)),l.weekData}function y1(l){return l.localWeekData===null&&(l.localWeekData=Xt(l.c,l.loc.getMinDaysInFirstWeek(),l.loc.getStartOfWeek())),l.localWeekData}function _e(l,e){const r={ts:l.ts,zone:l.zone,c:l.c,o:l.o,loc:l.loc,invalid:l.invalid};return new S({...r,...e,old:r})}function l3(l,e,r){let n=l-e*60*1e3;const i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;const s=r.offset(n);return i===s?[n,i]:[l-Math.min(i,s)*60*1e3,Math.max(i,s)]}function Wt(l,e){l+=e*60*1e3;const r=new Date(l);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function _t(l,e,r){return l3(n1(l),e,r)}function V2(l,e){const r=l.o,n=l.c.year+Math.trunc(e.years),i=l.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...l.c,year:n,month:i,day:Math.min(l.c.day,e1(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=W.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=n1(s);let[d,f]=l3(c,r,l.zone);return o!==0&&(d+=o,f=l.zone.offset(d)),{ts:d,o:f}}function et(l,e,r,n,i,s){const{setZone:o,zone:c}=r;if(l&&Object.keys(l).length!==0||e){const d=e||c,f=S.fromObject(l,{...r,zone:d,specificOffset:s});return o?f:f.setZone(c)}else return S.invalid(new ze("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Rt(l,e,r=!0){return l.isValid?ie.create(_.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(l,e):null}function F1(l,e,r){const n=l.c.year>9999||l.c.year<0;let i="";if(n&&l.c.year>=0&&(i+="+"),i+=te(l.c.year,n?6:4),r==="year")return i;if(e){if(i+="-",i+=te(l.c.month),r==="month")return i;i+="-"}else if(i+=te(l.c.month),r==="month")return i;return i+=te(l.c.day),i}function B2(l,e,r,n,i,s,o){let c=!r||l.c.millisecond!==0||l.c.second!==0,d="";switch(o){case"day":case"month":case"year":break;default:if(d+=te(l.c.hour),o==="hour")break;if(e){if(d+=":",d+=te(l.c.minute),o==="minute")break;c&&(d+=":",d+=te(l.c.second))}else{if(d+=te(l.c.minute),o==="minute")break;c&&(d+=te(l.c.second))}if(o==="second")break;c&&(!n||l.c.millisecond!==0)&&(d+=".",d+=te(l.c.millisecond,3))}return i&&(l.isOffsetFixed&&l.offset===0&&!s?d+="Z":l.o<0?(d+="-",d+=te(Math.trunc(-l.o/60)),d+=":",d+=te(Math.trunc(-l.o%60))):(d+="+",d+=te(Math.trunc(l.o/60)),d+=":",d+=te(Math.trunc(l.o%60)))),s&&(d+="["+l.zone.ianaName+"]"),d}const n3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},I0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},O0={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pt=["year","month","day","hour","minute","second","millisecond"],W0=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],R0=["year","ordinal","hour","minute","second","millisecond"];function Zt(l){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[l.toLowerCase()];if(!e)throw new nr(l);return e}function T2(l){switch(l.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Zt(l)}}function _0(l){if(xt===void 0&&(xt=J.now()),l.type!=="iana")return l.offset(xt);const e=l.name;let r=R1.get(e);return r===void 0&&(r=l.offset(xt),R1.set(e,r)),r}function A2(l,e){const r=Te(e.zone,J.defaultZone);if(!r.isValid)return S.invalid(gt(r));const n=_.fromObject(e);let i,s;if(V(l.year))i=J.now();else{for(const d of Pt)V(l[d])&&(l[d]=n3[d]);const o=Lr(l)||Dr(l);if(o)return S.invalid(o);const c=_0(r);[i,s]=_t(l,c,r)}return new S({ts:i,zone:r,loc:n,o:s})}function I2(l,e,r){const n=V(r.round)?!0:r.round,i=V(r.rounding)?"trunc":r.rounding,s=(c,d)=>(c=K1(c,n||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(c,d)),o=c=>r.calendary?e.hasSame(l,c)?0:e.startOf(c).diff(l.startOf(c),c).get(c):e.diff(l,c).get(c);if(r.unit)return s(o(r.unit),r.unit);for(const c of r.units){const d=o(c);if(Math.abs(d)>=1)return s(d,c)}return s(l>e?-0:0,r.units[r.units.length-1])}function O2(l){let e={},r;return l.length>0&&typeof l[l.length-1]=="object"?(e=l[l.length-1],r=Array.from(l).slice(0,l.length-1)):r=Array.from(l),[e,r]}let xt;const R1=new Map;class S{constructor(e){const r=e.zone||J.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new ze("invalid input"):null)||(r.isValid?null:gt(r));this.ts=V(e.ts)?J.now():e.ts;let i=null,s=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,s]=[e.old.c,e.old.o];else{const c=Ie(e.o)&&!e.old?e.o:r.offset(this.ts);i=Wt(this.ts,c),n=Number.isNaN(i.year)?new ze("invalid input"):null,i=n?null:i,s=n?null:c}this._zone=r,this.loc=e.loc||_.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,r]=O2(arguments),[n,i,s,o,c,d,f]=r;return A2({year:n,month:i,day:s,hour:o,minute:c,second:d,millisecond:f},e)}static utc(){const[e,r]=O2(arguments),[n,i,s,o,c,d,f]=r;return e.zone=se.utcInstance,A2({year:n,month:i,day:s,hour:o,minute:c,second:d,millisecond:f},e)}static fromJSDate(e,r={}){const n=En(e)?e.valueOf():NaN;if(Number.isNaN(n))return S.invalid("invalid input");const i=Te(r.zone,J.defaultZone);return i.isValid?new S({ts:n,zone:i,loc:_.fromObject(r)}):S.invalid(gt(i))}static fromMillis(e,r={}){if(Ie(e))return e<-S2||e>S2?S.invalid("Timestamp out of range"):new S({ts:e,zone:Te(r.zone,J.defaultZone),loc:_.fromObject(r)});throw new ae(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Ie(e))return new S({ts:e*1e3,zone:Te(r.zone,J.defaultZone),loc:_.fromObject(r)});throw new ae("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=Te(r.zone,J.defaultZone);if(!n.isValid)return S.invalid(gt(n));const i=_.fromObject(r),s=t1(e,T2),{minDaysInFirstWeek:o,startOfWeek:c}=M2(s,i),d=J.now(),f=V(r.specificOffset)?n.offset(d):r.specificOffset,p=!V(s.ordinal),x=!V(s.year),E=!V(s.month)||!V(s.day),g=x||E,z=s.weekYear||s.weekNumber;if((g||p)&&z)throw new rt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(E&&p)throw new rt("Can't mix ordinal dates with month/day");const v=z||s.weekday&&!g;let w,M,y=Wt(d,f);v?(w=W0,M=I0,y=Xt(y,o,c)):p?(w=R0,M=O0,y=E1(y)):(w=Pt,M=n3);let L=!1;for(const q of w){const Q=s[q];V(Q)?L?s[q]=M[q]:s[q]=y[q]:L=!0}const I=v?gn(s,o,c):p?xn(s):Lr(s),N=I||Dr(s);if(N)return S.invalid(N);const b=v?E2(s,o,c):p?z2(s):s,[H,k]=_t(b,f,n),O=new S({ts:H,zone:n,o:k,loc:i});return s.weekday&&g&&e.weekday!==O.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${O.toISO()}`):O.isValid?O:S.invalid(O.invalid)}static fromISO(e,r={}){const[n,i]=c0(e);return et(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,i]=d0(e);return et(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,i]=h0(e);return et(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(V(e)||V(r))throw new ae("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[c,d,f,p]=A0(o,e,r);return p?S.invalid(p):et(c,d,n,`format ${r}`,e,f)}static fromString(e,r,n={}){return S.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,i]=x0(e);return et(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ae("need to specify a reason the DateTime is invalid");const n=e instanceof ze?e:new ze(e,r);if(J.throwOnInvalid)throw new Zl(n);return new S({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=r3(e,_.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Xr(ie.parseFormat(e),_.fromObject(r)).map(i=>i.val).join("")}static resetCache(){xt=void 0,R1.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?C1(this).weekYear:NaN}get weekNumber(){return this.isValid?C1(this).weekNumber:NaN}get weekday(){return this.isValid?C1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?y1(this).weekday:NaN}get localWeekNumber(){return this.isValid?y1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?y1(this).weekYear:NaN}get ordinal(){return this.isValid?E1(this.c).ordinal:NaN}get monthShort(){return this.isValid?It.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?It.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?It.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?It.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=n1(this.c),i=this.zone.offset(n-e),s=this.zone.offset(n+e),o=this.zone.offset(n-i*r),c=this.zone.offset(n-s*r);if(o===c)return[this];const d=n-o*r,f=n-c*r,p=Wt(d,o),x=Wt(f,c);return p.hour===x.hour&&p.minute===x.minute&&p.second===x.second&&p.millisecond===x.millisecond?[_e(this,{ts:d}),_e(this,{ts:f})]:[this]}get isInLeapYear(){return bt(this.year)}get daysInMonth(){return e1(this.year,this.month)}get daysInYear(){return this.isValid?nt(this.year):NaN}get weeksInWeekYear(){return this.isValid?yt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?yt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:i}=ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(se.instance(e),r)}toLocal(){return this.setZone(J.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Te(e,J.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){const s=e.offset(this.ts),o=this.toObject();[i]=_t(o,s,e)}return _e(this,{ts:i,zone:e})}else return S.invalid(gt(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return _e(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=t1(e,T2),{minDaysInFirstWeek:n,startOfWeek:i}=M2(r,this.loc),s=!V(r.weekYear)||!V(r.weekNumber)||!V(r.weekday),o=!V(r.ordinal),c=!V(r.year),d=!V(r.month)||!V(r.day),f=c||d,p=r.weekYear||r.weekNumber;if((f||o)&&p)throw new rt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new rt("Can't mix ordinal dates with month/day");let x;s?x=E2({...Xt(this.c,n,i),...r},n,i):V(r.ordinal)?(x={...this.toObject(),...r},V(r.day)&&(x.day=Math.min(e1(x.year,x.month),x.day))):x=z2({...E1(this.c),...r});const[E,g]=_t(x,this.o,this.zone);return _e(this,{ts:E,o:g})}plus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e);return _e(this,V2(this,r))}minus(e){if(!this.isValid)return this;const r=W.fromDurationLike(e).negate();return _e(this,V2(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},i=W.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(r){const s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(n.weekNumber=this.weekNumber-1),n.weekday=s}else n.weekday=1;if(i==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?ie.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):M1}toLocaleString(e=Qt,r={}){return this.isValid?ie.create(this.loc.clone(r),e).formatDateTime(this):M1}toLocaleParts(e={}){return this.isValid?ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=Zt(o);const c=e==="extended";let d=F1(this,c,o);return Pt.indexOf(o)>=3&&(d+="T"),d+=B2(this,c,r,n,i,s,o),d}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?F1(this,e==="extended",Zt(r)):null}toISOWeekDate(){return Rt(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended",precision:c="milliseconds"}={}){return this.isValid?(c=Zt(c),(i&&Pt.indexOf(c)>=3?"T":"")+B2(this,o==="extended",r,e,n,s,c)):null}toRFC2822(){return Rt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?F1(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),Rt(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():M1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return W.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=zn(r).map(W.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,f=y0(c,d,s,i);return o?f.negate():f}diffNow(e="milliseconds",r={}){return this.diff(S.now(),e,r)}until(e){return this.isValid?K.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(r,n)<=i&&i<=s.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||S.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(i=e.unit,s=void 0),I2(r,this.plus(n),{...e,numeric:"always",units:i,unit:s})}toRelativeCalendar(e={}){return this.isValid?I2(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new ae("min requires all arguments be DateTimes");return C2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new ae("max requires all arguments be DateTimes");return C2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return t3(o,e,r)}static fromStringExplain(e,r,n={}){return S.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){const{locale:n=null,numberingSystem:i=null}=r,s=_.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new e3(s,e)}static fromFormatParser(e,r,n={}){if(V(e)||V(r))throw new ae("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:s=null}=n,o=_.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});if(!o.equals(r.locale))throw new ae(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:p}=r.explainFromTokens(e);return p?S.invalid(p):et(c,d,n,`format ${r.format}`,e,f)}static get DATE_SHORT(){return Qt}static get DATE_MED(){return ar}static get DATE_MED_WITH_WEEKDAY(){return $l}static get DATE_FULL(){return ir}static get DATE_HUGE(){return sr}static get TIME_SIMPLE(){return or}static get TIME_WITH_SECONDS(){return cr}static get TIME_WITH_SHORT_OFFSET(){return dr}static get TIME_WITH_LONG_OFFSET(){return hr}static get TIME_24_SIMPLE(){return ur}static get TIME_24_WITH_SECONDS(){return mr}static get TIME_24_WITH_SHORT_OFFSET(){return fr}static get TIME_24_WITH_LONG_OFFSET(){return vr}static get DATETIME_SHORT(){return pr}static get DATETIME_SHORT_WITH_SECONDS(){return gr}static get DATETIME_MED(){return xr}static get DATETIME_MED_WITH_SECONDS(){return wr}static get DATETIME_MED_WITH_WEEKDAY(){return ql}static get DATETIME_FULL(){return Er}static get DATETIME_FULL_WITH_SECONDS(){return zr}static get DATETIME_HUGE(){return Mr}static get DATETIME_HUGE_WITH_SECONDS(){return Cr}}function vt(l){if(S.isDateTime(l))return l;if(l&&l.valueOf&&Ie(l.valueOf()))return S.fromJSDate(l);if(l&&typeof l=="object")return S.fromObject(l);throw new ae(`Unknown datetime argument: ${l}, of type ${typeof l}`)}function a3({className:l,classNames:e,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:i="ghost",formatters:s,components:o,...c}){const d=j1.getDefaultClassNames();return a.jsx(j1.DayPicker,{showOutsideDays:r,className:m("group/calendar p-3 [--cell-size:--spacing(8)] bg-auxiliary-1 w-[17.75rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,l),captionLayout:n,formatters:{formatMonthDropdown:f=>S.fromJSDate(f).toFormat("MMM"),formatWeekdayName:f=>S.fromJSDate(f).toFormat("ccc"),...s},classNames:{root:m("w-fit",d.root),months:m("flex gap-4 flex-col md:flex-row relative",d.months),month:m("flex flex-col w-full gap-3",d.month),nav:m("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",d.nav),button_previous:m(Jt({variant:i}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-support-6 hover:bg-transparent",d.button_previous),button_next:m(Jt({variant:i}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-support-6 hover:bg-transparent",d.button_next),month_caption:m("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",d.month_caption),dropdowns:m("w-full flex items-center text-sm font-medium justify-center h-(--cell-size)",d.dropdowns),dropdown_root:m("relative has-focus:border-ring border-input has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",d.dropdown_root),dropdown:m("absolute bg-popover inset-0 opacity-0",d.dropdown),caption_label:m("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",d.caption_label),table:"w-full border-collapse",weekdays:m("flex",d.weekdays),weekday:m("text-support-6 rounded-md flex-1 font-normal text-[0.688rem] font-semibold select-none mb-2",d.weekday),week:m("flex w-full",d.week),week_number_header:m("select-none w-(--cell-size)",d.week_number_header),week_number:m("text-[0.8rem] select-none text-muted-foreground",d.week_number),day:m("relative w-full h-full text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",d.day),range_start:m("rounded-l-md bg-accent",d.range_start),range_middle:m("rounded-none",d.range_middle),range_end:m("rounded-r-md bg-accent",d.range_end),today:m("bg-primary-5 rounded-lg [&>button]:text-auxiliary-1 data-[selected=true]:rounded-none",d.today),outside:m("[&>button]:text-support-5 aria-selected:text-muted-foreground",d.outside),disabled:m("text-muted-foreground opacity-50",d.disabled),hidden:m("invisible",d.hidden),...e},components:{Root:({className:f,rootRef:p,...x})=>a.jsx("div",{"data-slot":"calendar",ref:p,className:m(f),...x}),Chevron:({className:f,orientation:p,...x})=>p==="left"?a.jsx(le.ChevronLeftIcon,{className:m("size-4",f),...x}):p==="right"?a.jsx(le.ChevronRightIcon,{className:m("size-4",f),...x}):a.jsx(le.ChevronDownIcon,{className:m("size-4",f),...x}),DayButton:i3,WeekNumber:({children:f,...p})=>a.jsx("td",{...p,children:a.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:f})}),...o},...c})}function i3({className:l,day:e,modifiers:r,...n}){const i=j1.getDefaultClassNames(),s=Ce.useRef(null);return Ce.useEffect(()=>{r.focused&&s.current?.focus()},[r.focused]),a.jsx(ye,{ref:s,variant:"ghost",size:"icon","data-day":S.fromJSDate(e.date).toISODate(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:m("data-[selected-single=true]:text-primary-5 text-support-7 hover:rounded-lg !p-0 data-[selected-single=true]:font-semibold hover:bg-primary-5 hover:font-semibold hover:!text-auxiliary-1 text-[0.938rem] data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary-5 data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary-5 data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",i.day,l),...n})}function qe({className:l,...e}){return a.jsx("div",{"data-slot":"card",className:m("bg-auxiliary-1 text-card-foreground flex flex-col gap-6 rounded-xl border py-6 border-support-5",l),...e})}function P0({className:l,...e}){return a.jsx("div",{"data-slot":"card-header",className:m("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...e})}function s3({className:l,...e}){return a.jsx("div",{"data-slot":"card-title",className:m("leading-none font-semibold",l),...e})}function o3({className:l,...e}){return a.jsx("div",{"data-slot":"card-description",className:m("text-muted-foreground text-sm",l),...e})}function Z0({className:l,...e}){return a.jsx("div",{"data-slot":"card-action",className:m("col-start-2 row-span-2 row-start-1 self-start justify-self-end",l),...e})}function Ye({className:l,...e}){return a.jsx("div",{"data-slot":"card-content",className:m("px-6",l),...e})}function c3({className:l,...e}){return a.jsx("div",{"data-slot":"card-footer",className:m("flex items-center px-6 [.border-t]:pt-6",l),...e})}function e2({className:l,...e}){return a.jsx(Il.Root,{"data-slot":"label",className:m(C.t1,"text-auxiliary-4 flex items-center gap-2 select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",l),...e})}function d3({className:l,label:e,...r}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(c2.Root,{"data-slot":"checkbox",className:m("peer border-input hover:border-primary-5 bg-auxiliary-1 dark:bg-input/30 data-[state=checked]:bg-primary-5 data-[state=checked]:text-auxiliary-1 dark:data-[state=checked]:bg-primary-5 data-[state=checked]:border-primary-5 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-warning-5 dark:aria-invalid:ring-warning-5 aria-invalid:border-warning-5 size-6 shrink-0 rounded-[5px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",l),...r,children:a.jsx(c2.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:a.jsx(le.CheckIcon,{className:"size-4"})})}),a.jsx(e2,{htmlFor:r.id,className:C.t4,children:e})]})}function s1({...l}){return a.jsx(je.Root,{"data-slot":"dialog",...l})}function U0({...l}){return a.jsx(je.Trigger,{"data-slot":"dialog-trigger",...l})}function h3({...l}){return a.jsx(je.Portal,{"data-slot":"dialog-portal",...l})}function G0({...l}){return a.jsx(je.Close,{"data-slot":"dialog-close",...l})}function u3({className:l,...e}){return a.jsx(je.Overlay,{"data-slot":"dialog-overlay",className:m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-auxiliary-4/50",l),...e})}function o1({className:l,children:e,showCloseButton:r=!0,...n}){return a.jsxs(h3,{"data-slot":"dialog-portal",children:[a.jsx(u3,{}),a.jsxs(je.Content,{"data-slot":"dialog-content",className:m("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",l),...n,children:[e,r&&a.jsxs(je.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(le.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function c1({className:l,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:m("flex flex-col gap-2 text-center sm:text-start",l),...e})}function t2({className:l,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:m("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",l),...e})}function d1({className:l,...e}){return a.jsx(je.Title,{"data-slot":"dialog-title",className:m(C.h4,l),...e})}function h1({className:l,...e}){return a.jsx(je.Description,{"data-slot":"dialog-description",className:m(C.p1,"text-auxiliary-3",l),...e})}function mt({className:l,...e}){return a.jsx(Ge.Command,{"data-slot":"command",className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",l),...e})}function $0({title:l="Command Palette",description:e="Search for a command to run...",children:r,className:n,showCloseButton:i=!0,...s}){return a.jsxs(s1,{...s,children:[a.jsxs(c1,{className:"sr-only",children:[a.jsx(d1,{children:l}),a.jsx(h1,{children:e})]}),a.jsx(o1,{className:m("overflow-hidden p-0",n),showCloseButton:i,children:a.jsx(mt,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function Dt({className:l,containerClassName:e,showSearchIcon:r=!0,onContainerClick:n,...i}){return a.jsxs("div",{"data-slot":"command-input-wrapper",className:m("flex h-9 items-center gap-2 border-b px-3",e),onClick:n,children:[r&&a.jsx(le.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),a.jsx(Ge.Command.Input,{"data-slot":"command-input",className:m("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",l),...i})]})}function Nt({className:l,...e}){return a.jsx(Ge.Command.List,{"data-slot":"command-list",className:m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",l),...e})}function St({...l}){return a.jsx(Ge.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...l})}function Vt({className:l,...e}){return a.jsx(Ge.Command.Group,{"data-slot":"command-group",className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",l),...e})}function q0({className:l,...e}){return a.jsx(Ge.Command.Separator,{"data-slot":"command-separator",className:m("bg-border -mx-1 h-px",l),...e})}function Bt({className:l,...e}){return a.jsx(Ge.Command.Item,{"data-slot":"command-item",className:m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...e})}function Y0({className:l,...e}){return a.jsx("span",{"data-slot":"command-shortcut",className:m("text-muted-foreground ml-auto text-xs tracking-widest",l),...e})}function m3({...l}){return a.jsx(ne.Root,{"data-slot":"dropdown-menu",...l})}function K0({...l}){return a.jsx(ne.Portal,{"data-slot":"dropdown-menu-portal",...l})}function f3({...l}){return a.jsx(ne.Trigger,{"data-slot":"dropdown-menu-trigger",...l})}function v3({className:l,sideOffset:e=4,...r}){return a.jsx(ne.Portal,{children:a.jsx(ne.Content,{"data-slot":"dropdown-menu-content",sideOffset:e,className:m("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",l),...r})})}function J0({...l}){return a.jsx(ne.Group,{"data-slot":"dropdown-menu-group",...l})}function p3({className:l,inset:e,variant:r="default",...n}){return a.jsx(ne.Item,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":r,className:m("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...n})}function Q0({className:l,children:e,checked:r,...n}){return a.jsxs(ne.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:m("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),checked:r,...n,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(ne.ItemIndicator,{children:a.jsx(le.CheckIcon,{className:"size-4"})})}),e]})}function X0({...l}){return a.jsx(ne.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...l})}function ea({className:l,children:e,...r}){return a.jsxs(ne.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:m("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...r,children:[a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(ne.ItemIndicator,{children:a.jsx(le.CircleIcon,{className:"size-2 fill-current"})})}),e]})}function g3({className:l,inset:e,...r}){return a.jsx(ne.Label,{"data-slot":"dropdown-menu-label","data-inset":e,className:m("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",l),...r})}function ta({className:l,...e}){return a.jsx(ne.Separator,{"data-slot":"dropdown-menu-separator",className:m("bg-border -mx-1 my-1 h-px",l),...e})}function ra({className:l,...e}){return a.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:m("text-muted-foreground ml-auto text-xs tracking-widest",l),...e})}function la({...l}){return a.jsx(ne.Sub,{"data-slot":"dropdown-menu-sub",...l})}function na({className:l,inset:e,children:r,...n}){return a.jsxs(ne.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:m("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",l),...n,children:[r,a.jsx(le.ChevronRightIcon,{className:"ml-auto size-4"})]})}function aa({className:l,...e}){return a.jsx(ne.SubContent,{"data-slot":"dropdown-menu-sub-content",className:m("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",l),...e})}function We({className:l,type:e,...r}){return a.jsx("input",{type:e,"data-slot":"input",className:m(C.t1,"file:text-foreground bg-auxiliary-1 text-support-7 ring-primary-5 selection:bg-primary-5 selection:text-primary-foreground border-support-5 flex h-[2.625rem] w-full min-w-0 rounded-md border px-4 py-4 transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-support-5","focus-visible:border-primary-5","hover:border-primary-5 hover:ring-[1px]","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-support-5 disabled:opacity-50","aria-invalid:ring-warning-5 aria-invalid:border-warning-5",l),...r})}function ia({...l}){return a.jsx(Ct.Root,{"data-slot":"popover",...l})}function sa({...l}){return a.jsx(Ct.Trigger,{"data-slot":"popover-trigger",...l})}function oa({className:l,align:e="center",sideOffset:r=4,...n}){return a.jsx(Ct.Portal,{children:a.jsx(Ct.Content,{"data-slot":"popover-content",align:e,sideOffset:r,className:m("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",l),...n})})}function ca({...l}){return a.jsx(Ct.Anchor,{"data-slot":"popover-anchor",...l})}function da({className:l,children:e,...r}){return a.jsxs(wt.Root,{"data-slot":"scroll-area",className:m("relative",l),...r,children:[a.jsx(wt.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),a.jsx(x3,{}),a.jsx(wt.Corner,{})]})}function x3({className:l,orientation:e="vertical",...r}){return a.jsx(wt.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:e,className:m("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",l),...r,children:a.jsx(wt.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const Ke=({...l})=>a.jsxs("svg",{viewBox:"0 0 13 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsxs("g",{clipPath:"url(#clip0_2431_17670)",children:[a.jsx("path",{d:"M2.74414 1.49805L6.45162 6.50033",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round"}),a.jsx("path",{d:"M6.54941 6.499L10.2569 1.49672",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_2431_17670",children:a.jsx("rect",{width:"11.456",height:"7.457",fill:"white",transform:"translate(0.771484 0.271484)"})})})]});function w3({...l}){return a.jsx(oe.Root,{"data-slot":"select",...l})}function ha({...l}){return a.jsx(oe.Group,{"data-slot":"select-group",...l})}function E3({...l}){return a.jsx(oe.Value,{"data-slot":"select-value",...l})}function z3({className:l,size:e="default",children:r,...n}){return a.jsxs(oe.Trigger,{"data-slot":"select-trigger","data-size":e,className:m("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...n,children:[r,a.jsx(oe.Icon,{className:"size-3 text-support-7 group-data-[state=open]:rotate-180 group-data-[state=open]:text-primary",asChild:!0,children:a.jsx(Ke,{})})]})}function M3({className:l,children:e,position:r="popper",...n}){return a.jsx(oe.Portal,{children:a.jsxs(oe.Content,{side:"bottom","data-slot":"select-content",className:m("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[var(--radix-select-trigger-width)] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="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",l),position:r,...n,children:[a.jsx(C3,{}),a.jsx(oe.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:e}),a.jsx(y3,{})]})})}function ua({className:l,...e}){return a.jsx(oe.Label,{"data-slot":"select-label",className:m("text-muted-foreground px-2 py-1.5 text-xs",l),...e})}function _1({className:l,children:e,...r}){return a.jsxs(oe.Item,{"data-slot":"select-item",className:m("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),...r,children:[a.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:a.jsx(oe.ItemIndicator,{children:a.jsx(le.CheckIcon,{className:"size-4"})})}),a.jsx(oe.ItemText,{children:e})]})}function ma({className:l,...e}){return a.jsx(oe.Separator,{"data-slot":"select-separator",className:m("bg-border pointer-events-none -mx-1 my-1 h-px",l),...e})}function C3({className:l,...e}){return a.jsx(oe.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:m("flex cursor-default items-center justify-center py-1",l),...e,children:a.jsx(le.ChevronUpIcon,{className:"size-4"})})}function y3({className:l,...e}){return a.jsx(oe.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:m("flex cursor-default items-center justify-center py-1",l),...e,children:a.jsx(le.ChevronDownIcon,{className:"size-4"})})}function u1({className:l,orientation:e="horizontal",decorative:r=!0,...n}){return a.jsx(Ol.Root,{"data-slot":"separator",decorative:r,orientation:e,className:m("bg-support-5 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",l),...n})}function F3({className:l,containerClassname:e,...r}){return a.jsx("div",{"data-slot":"table-container",className:m("relative w-full overflow-x-auto",e),children:a.jsx("table",{"data-slot":"table",className:m("w-full caption-bottom text-sm",l),...r})})}function H3({className:l,...e}){return a.jsx("thead",{"data-slot":"table-header",className:m("[&_tr]:border-b",l),...e})}function Ut({className:l,...e}){return a.jsx("tbody",{"data-slot":"table-body",className:m("[&_tr:last-child]:border-0",l),...e})}function fa({className:l,...e}){return a.jsx("tfoot",{"data-slot":"table-footer",className:m("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",l),...e})}function zt({className:l,...e}){return a.jsx("tr",{"data-slot":"table-row",className:m("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",l),...e})}function k3({className:l,...e}){return a.jsx("th",{"data-slot":"table-head",className:m("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...e})}function Gt({className:l,...e}){return a.jsx("td",{"data-slot":"table-cell",className:m("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...e})}function va({className:l,...e}){return a.jsx("caption",{"data-slot":"table-caption",className:m("text-muted-foreground mt-4 text-sm",l),...e})}function pa({className:l,...e}){return a.jsx(Oe.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2 w-full",l),...e})}function ga({className:l,...e}){return a.jsx(Oe.List,{"data-slot":"tabs-list",className:m("bg-auxiliary-1 text-support-7 inline-flex flex-col p-8 sm:flex-row gap-6 sm:gap-4 items-center justify-center rounded-lg border border-support-5",l),...e})}function xa({className:l,...e}){return a.jsxs(a.Fragment,{children:[a.jsx(Oe.Trigger,{"data-slot":"tabs-trigger",className:m(C.t1,"data-[state=active]:text-primary-5 relative text-support-7 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","data-[state=active]:font-normal",l),...e}),a.jsx(u1,{orientation:"horizontal",className:"!h-px !w-7 last:hidden sm:!h-7 sm:!w-px sm:orientation-vertical"})]})}function wa({className:l,...e}){return a.jsx(Oe.Content,{"data-slot":"tabs-content",className:m("flex-1 outline-none",l),...e})}function b3({className:l,...e}){return a.jsx(Oe.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2 w-full","data-[orientation=vertical]:flex-row data-[orientation=vertical]:gap-6",l),...e})}function j3({className:l,...e}){return a.jsx(Oe.List,{"data-slot":"tabs-list",className:m("inline-flex sm:gap-12 items-center border-b border-b-support-5 justify-start w-full","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:gap-4 data-[orientation=vertical]:shrink-0","data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-r data-[orientation=vertical]:border-r-support-5",l),...e})}function L3({className:l,...e}){return a.jsx(Oe.Trigger,{"data-slot":"tabs-trigger",className:m(C.t1,"data-[state=active]:bg-transparent data-[state=active]:border-b-primary-5 text-auxiliary-4 active:border-b-primary-g border-b-3 border-b-transparent py-2 dark:data-[state=active]:text-foreground rounded-none focus-visible:border-ring hover:text-primary-5 focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 sm:flex-[unset] items-center justify-center gap-1.5 whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...e})}function D3({className:l,...e}){return a.jsx(Oe.Content,{"data-slot":"tabs-content",className:m("max-w-xl flex-1 outline-none",l),...e})}function N3({className:l,...e}){return a.jsx("textarea",{"data-slot":"textarea",className:m(C.t1,"border-support-5 text-auxiliary-4 placeholder:text-support-7 hover:ring-[1px] ring-primary-5 hover:border-primary-5 focus-visible:border-primary-5 aria-invalid:ring-warning-5 aria-invalid:border-warning-5 flex field-sizing-content min-h-16 w-full rounded-md border bg-auxiliary-1 px-4 py-4 transition-[color,box-shadow] outline-none disabled:ring-0 disabled:opacity-50 disabled:cursor-not-allowed disabled:border-support-5",l),...e})}function r2({delayDuration:l=0,...e}){return a.jsx(lt.Provider,{"data-slot":"tooltip-provider",delayDuration:l,...e})}function S3({...l}){return a.jsx(r2,{children:a.jsx(lt.Root,{"data-slot":"tooltip",...l})})}function V3({...l}){return a.jsx(lt.Trigger,{"data-slot":"tooltip-trigger",...l})}function B3({className:l,sideOffset:e=0,children:r,...n}){return a.jsx(lt.Portal,{children:a.jsxs(lt.Content,{"data-slot":"tooltip-content",sideOffset:e,className:m("bg-primary-5 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",l),...n,children:[r,a.jsx(lt.Arrow,{className:"bg-primary-5 fill-primary-5 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ea=({title:l,showCloseButton:e=!1,renderButtons:r,children:n,...i})=>a.jsx(s1,{...i,children:a.jsxs(o1,{showCloseButton:e,className:"gap-12 pt-8 pb-12 px-12 shadow-card sm:max-w-[33.125rem]",children:[a.jsxs(c1,{className:"gap-6",children:[a.jsx(d1,{className:"flex flex-col items-center gap-6",children:a.jsx("span",{className:m(C.p1,"text-center"),children:l})}),a.jsx(h1,{className:"hidden",children:l})]}),n,r&&a.jsx(t2,{className:"gap-8 flex flex-col sm:flex-col",children:r()})]})}),Je=({...l})=>a.jsxs("svg",{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M15.4994 15L9.5 9M9.50064 15L15.5 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M22.5 12C22.5 6.47715 18.0228 2 12.5 2C6.97715 2 2.5 6.47715 2.5 12C2.5 17.5228 6.97715 22 12.5 22C18.0228 22 22.5 17.5228 22.5 12Z",stroke:"currentColor",strokeWidth:"1.5"})]}),he=({label:l,required:e,info:r,disabled:n,htmlFor:i})=>a.jsxs("div",{className:m("flex items-center gap-2 hover:ring-0",{"opacity-50 pointer-events-none":n}),children:[a.jsxs(e2,{htmlFor:i,className:"gap-1",children:[l,e&&a.jsx("span",{className:m(C.t2,"text-warning-5"),children:"*"})]}),r&&a.jsx(r2,{children:a.jsxs(S3,{open:n?!1:void 0,children:[a.jsx(V3,{asChild:!0,children:a.jsx(le.Info,{className:"w-[1.125rem] h-[1.125rem] text-support-7"})}),a.jsx(B3,{children:a.jsx("p",{children:r})})]})})]});function za({label:l,required:e,placeholder:r,onChange:n,id:i,info:s,disabled:o,addMoreLabel:c="Add more bullet points",values:d}){const[f,p]=t.useState(d??[""]),x=()=>{p([...f,""]),n?.([...f,""])},E=z=>{const v=f.filter((w,M)=>M!==z);p(v),n?.(v)},g=(z,v)=>{const w=[...f];w[z]=v,p(w),n?.(w)};return a.jsxs("div",{className:"space-y-6 w-full",children:[a.jsx("div",{className:"space-y-8",children:f.map((z,v)=>a.jsxs("div",{className:"space-y-3",children:[l&&a.jsx(he,{label:l,info:s,htmlFor:`${i}-point-${v}`,disabled:o,required:e}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(We,{id:`${i}-point-${v}`,placeholder:r,value:z,onChange:w=>g(v,w.target.value)}),v>0&&a.jsx("button",{onClick:()=>E(v),children:a.jsx(Je,{className:"size-6 text-auxiliary-3"})})]})]},v))}),a.jsxs("button",{type:"button",className:m(C.t4,"font-medium flex items-center gap-3 text-primary-5 group"),onClick:x,children:[a.jsx(le.PlusCircle,{className:"size-6"}),a.jsx("span",{className:"group-hover:text-primary-6",children:c})]})]})}const l2=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 28 28",fill:"none",...l,children:[a.jsx("path",{d:"M17.8333 7H10.1667C6.55256 7 4.74552 7 3.62276 8.09078C2.5 9.18155 2.5 10.9371 2.5 14.4483V17.5517C2.5 21.0628 2.5 22.8184 3.62276 23.9092C4.74552 25 6.55256 25 10.1667 25H17.8333C21.4474 25 23.2544 25 24.3772 23.9092C25.5 22.8184 25.5 21.0628 25.5 17.5517V14.4483C25.5 10.9371 25.5 9.18155 24.3772 8.09078C23.2544 7 21.4474 7 17.8333 7Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M9.5 7V6.28571C9.5 4.26541 9.5 3.25526 10.159 2.62763C10.818 2 11.8787 2 14 2C16.1213 2 17.182 2 17.8411 2.62763C18.5 3.25526 18.5 4.26541 18.5 6.28571V7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8.5 8L8.5 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.5 8L19.5 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),T3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M21.5835 20.811C22.7857 20.6345 23.64 20.2931 24.3 19.6331C25.6668 18.2664 25.6668 16.0664 25.6668 11.6666C25.6668 7.26687 25.6668 5.06699 24.3 3.70014C22.9332 2.33331 20.7332 2.33331 16.3335 2.33331H11.6668C7.26705 2.33331 5.06717 2.33331 3.70033 3.70014C2.3335 5.06699 2.3335 7.26687 2.3335 11.6666C2.3335 16.0664 2.3335 18.2664 3.70033 19.6331C4.6432 20.576 5.98248 20.8685 8.16683 20.9591",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M19.8332 8.16669H8.1665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16.9168 16.9167C16.9168 18.5275 15.611 19.8333 14.0002 19.8333C12.3893 19.8333 11.0835 18.5275 11.0835 16.9167C11.0835 15.3058 12.3893 14 14.0002 14C15.611 14 16.9168 15.3058 16.9168 16.9167Z",stroke:"currentColor",strokeWidth:"1.5"}),a.jsx("path",{d:"M11.0835 16.9167C11.0835 21.6602 13.0927 24.3491 14.0002 25.6667L15.7502 22.1667L17.7918 23.3334L19.8335 24.5C18.9763 23.6703 18.0903 21.055 18.0903 21.055",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),A3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M15.75 17.6009C15.2427 18.5891 14.3195 19.25 13.2647 19.25C11.6635 19.25 10.3653 17.7265 10.3653 15.8472V13.9028C10.3653 12.0235 11.6635 10.5 13.2647 10.5C14.3195 10.5 15.2427 11.1609 15.75 12.1491M8.75 14.875H13.5472",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M14.0002 4.73077C13.6171 4.68842 13.2278 4.66669 12.8335 4.66669C7.03451 4.66669 2.3335 9.3677 2.3335 15.1667C2.3335 20.9656 7.03451 25.6667 12.8335 25.6667C18.6324 25.6667 23.3335 20.9656 23.3335 15.1667C23.3335 14.7724 23.3118 14.383 23.2694 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M21.5833 2.33331V10.5M25.6667 6.41665H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),I3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M23.036 15.1666C23.9587 13.8439 24.4998 12.235 24.4998 10.5C24.4998 5.98966 20.8435 2.33331 16.3332 2.33331C11.8228 2.33331 8.1665 5.98965 8.1665 10.5C8.1665 11.7525 8.44848 12.9391 8.95241 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M18.6667 13.0442C18.2016 13.9665 17.3553 14.5834 16.3885 14.5834C14.9207 14.5834 13.7307 13.1614 13.7307 11.4074V9.59261C13.7307 7.8386 14.9207 6.41669 16.3885 6.41669C17.3553 6.41669 18.2016 7.03354 18.6667 7.95584M12.25 10.5H16.6474",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M3.5 16.3333H6.29396C6.63713 16.3333 6.97559 16.4107 7.28253 16.5592L9.66484 17.7118C9.97178 17.8604 10.3102 17.9376 10.6534 17.9376H11.8698C13.0463 17.9376 14 18.8605 14 19.999C14 20.0449 13.9685 20.0854 13.9228 20.098L10.9583 20.9177C10.4266 21.0647 9.85717 21.0135 9.3625 20.7741L6.8158 19.542M14 19.25L19.3583 17.6037C20.3082 17.3077 21.335 17.6586 21.93 18.4827C22.3602 19.0784 22.185 19.9315 21.5583 20.2932L12.7901 25.3522C12.2324 25.674 11.5744 25.7525 10.961 25.5705L3.5 23.3565",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),O3=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M10.5719 5.63072L3.77896 11.5749C3.19643 12.0847 3.58701 12.99 4.38944 12.99C4.87969 12.99 5.27711 13.357 5.27711 13.8099V17.594C5.27711 20.8495 5.27711 22.4772 6.37205 23.4886C7.467 24.5 9.22929 24.5 12.7539 24.5H15.2461C18.7707 24.5 20.533 24.5 21.6279 23.4886C22.7229 22.4772 22.7229 20.8495 22.7229 17.594V13.8099C22.7229 13.357 23.1203 12.99 23.6105 12.99C24.413 12.99 24.8036 12.0847 24.221 11.5749L17.428 5.63072C15.8047 4.21024 14.9931 3.5 14 3.5C13.0069 3.5 12.1953 4.21024 10.5719 5.63072Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14 18.6667H14.0105",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),n2=({...l})=>a.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M12.8411 24.5H11.2065C7.02374 24.5 4.93235 24.5 3.63292 23.1759C2.3335 21.8518 2.3335 19.7207 2.3335 15.4584C2.3335 11.1961 2.3335 9.06493 3.63292 7.74081C4.93235 6.41669 7.02374 6.41669 11.2065 6.41669H15.6431C19.8258 6.41669 21.9173 6.41669 23.2167 7.74081C24.2164 8.75958 24.447 10.2561 24.5002 12.8334",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M20.4165 22.7792H20.426M20.4268 20.4167V18.0542M25.6665 20.4167C25.6665 23.3162 23.316 25.6667 20.4165 25.6667C17.517 25.6667 15.1665 23.3162 15.1665 20.4167C15.1665 17.5172 17.517 15.1667 20.4165 15.1667C23.316 15.1667 25.6665 17.5172 25.6665 20.4167Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M18.6665 6.41665L18.5507 6.05608C17.973 4.25935 17.6843 3.36099 16.9969 2.84715C16.3094 2.33331 15.3963 2.33331 13.57 2.33331H13.263C11.4367 2.33331 10.5236 2.33331 9.83613 2.84715C9.14867 3.36099 8.85992 4.25935 8.2824 6.05608L8.1665 6.41665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ma=({candidate:l,isBlur:e})=>a.jsx(qe,{className:"w-full py-8",children:a.jsxs(Ye,{className:"flex flex-col sm:flex-row gap-10 px-8 items-center",children:[a.jsxs("div",{className:"flex flex-col-reverse gap-[1.125rem] sm:flex-col items-center",children:[a.jsx("img",{className:m("w-[9.375rem] aspect-square bg-support-3 rounded-xl",{"blur-xs":e}),src:l.image,alt:l.name}),a.jsxs("p",{className:m(C.t1,"text-support-7 text-center"),children:["User ID: ",a.jsx("span",{className:"text-auxiliary-4",children:l.userId})]})]}),a.jsxs("div",{className:"space-y-6 flex-1",children:[a.jsx("h3",{className:m(C.h5,"text-auxiliary-3 text-center sm:text-start"),children:l.name}),a.jsxs("div",{className:m(C.t2,"items-center grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-x-10 gap-y-4"),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(T3,{className:"flex-none size-7 text-primary-5"}),a.jsx("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:l.degree})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(n2,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Looking for: "}),l.lookingFor]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(A3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[l.yearlyRate," yearly"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(O3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Remote Work: "}),l.remote?"Yes":"No"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(l2,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Status: "}),l.status]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(I3,{className:"flex-none size-7 text-primary-5"}),a.jsxs("p",{className:m(C.t2,"flex-1 text-auxiliary-4 truncate"),children:[a.jsx("span",{className:"text-support-7",children:"Freelance: "}),l.hourlyRate," hourly"]})]})]}),a.jsx("div",{className:"flex flex-col md:flex-row items-center sm:items-start gap-4 md:gap-6 flex-wrap",children:l.tags.map(r=>a.jsx(ot,{children:r.label},r.value))})]})]})}),Ca=({items:l})=>a.jsx("dl",{className:"w-full flex items-center justify-center gap-8",children:l.map(e=>a.jsx(ya,{...e},e.label))}),ya=({label:l,value:e,icon:r})=>a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:m("flex flex-col items-center gap-3","md:flex-row"),children:[a.jsx(r,{className:"size-8 text-primary shrink-0"}),a.jsxs("div",{className:m("flex flex-col lg:flex-row items-center gap-3","md:items-start md:gap-1.5","text-auxiliary-4"),children:[a.jsx("dt",{className:m(C.t3,"text-support-7"),children:l}),a.jsx("dd",{className:C.t4,children:e})]})]}),a.jsx(u1,{className:"data-[orientation=vertical]:h-7 hidden sm:block last:hidden",orientation:"vertical"})]});function ft(l,e){t.useEffect(()=>{const r=n=>{!l.current||l.current.contains(n.target)||e()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[l,e])}const Fa=({id:l,placeholder:e,value:r,onChange:n,options:i,label:s,required:o,info:c,disabled:d,error:f})=>{const[p,x]=t.useState(!1),[E,g]=t.useState(r??""),z=t.useRef(null);ft(z,()=>x(!1));const v=i.find(y=>y.value===E),w=y=>{g(y),n?.(null)},M=y=>{g(y),x(!1),n?.(y)};return a.jsxs("div",{className:"space-y-2",children:[s&&a.jsx(he,{label:s,required:o,info:c,disabled:d,htmlFor:l}),a.jsxs(mt,{ref:z,className:m("h-auto overflow-visible relative","[&>[data-slot=command-input-wrapper]]:p-0 [&>[data-slot=command-input-wrapper]]:border-0 [&>[data-slot=command-input-wrapper]]:h-auto"),children:[a.jsx(Dt,{id:l,placeholder:e,value:v?.label??E,onValueChange:w,onContainerClick:()=>x(!0),"aria-invalid":!!f,className:m(C.t1,"bg-auxiliary-1 text-support-7 placeholder:text-support-5 ring-primary-5 selection:bg-primary-5 selection:text-auxiliary-1 border-input flex h-[2.625rem] w-full min-w-0 rounded-md border px-3 py-1 transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","hover:ring-[1px] hover:ring-primary-5 hover:border-primary-5 active:border-primary-5 focus:ring-primary-5 focus:ring-1","aria-invalid:ring-warning-5 aria-invalid:border-warning-5",p&&"rounded-b-none border-primary-5"),showSearchIcon:!1}),a.jsx(Ke,{className:m("size-3 text-support-7 absolute duration-200 top-1/2 right-4 transition-all -translate-y-1/2",p&&"rotate-180 text-primary-5")}),p&&a.jsxs(Nt,{className:"absolute top-full w-full bg-auxiliary-1 border border-input rounded-b-md z-10",children:[a.jsx(St,{children:"No options found."}),a.jsx(Vt,{children:i.map((y,L)=>a.jsx(Bt,{value:y.value,onSelect:M,className:m(C.t1,"data-[selected=true]:bg-auxiliary-1 data-[selected=true]:text-primary-5 cursor-pointer",L<i.length-1&&"mb-1"),children:y.label},y.value))})]})]}),f&&a.jsx("p",{className:m(C.t3,"text-warning-5"),children:f})]})},W3=({...l})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",viewBox:"0 0 32 32",fill:"none",...l,children:[a.jsx("path",{d:"M27.6987 24C28.6977 24 29.4924 23.3713 30.2059 22.4921C31.6665 20.6925 29.2684 19.2544 28.3537 18.5501C27.424 17.8341 26.3859 17.4285 25.3333 17.3333M24 14.6667C25.8409 14.6667 27.3333 13.1743 27.3333 11.3333C27.3333 9.49239 25.8409 8 24 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M4.30096 24C3.30188 24 2.50724 23.3713 1.79373 22.4921C0.333129 20.6925 2.73124 19.2544 3.64587 18.5501C4.57564 17.8341 5.61379 17.4285 6.66635 17.3333M7.33301 14.6667C5.49207 14.6667 3.99968 13.1743 3.99968 11.3333C3.99968 9.49239 5.49207 8 7.33301 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M10.7781 20.1483C9.41571 20.9907 5.84365 22.7108 8.01928 24.8632C9.08205 25.9147 10.2657 26.6667 11.7538 26.6667H20.2456C21.7337 26.6667 22.9173 25.9147 23.9801 24.8632C26.1557 22.7108 22.5837 20.9907 21.2213 20.1483C18.0265 18.1728 13.9728 18.1728 10.7781 20.1483Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M20.6664 10C20.6664 12.5773 18.577 14.6667 15.9997 14.6667C13.4224 14.6667 11.333 12.5773 11.333 10C11.333 7.42268 13.4224 5.33334 15.9997 5.33334C18.577 5.33334 20.6664 7.42268 20.6664 10Z",stroke:"currentColor",strokeWidth:"1.5"})]}),Ha=({company:l})=>a.jsx(qe,{className:"py-8 border-support-5 w-full",children:a.jsxs(Ye,{className:"flex flex-col-reverse sm:flex-row gap-6 px-8 items-center",children:[a.jsxs("div",{className:"flex flex-col items-center sm:items-start flex-1 gap-3",children:[a.jsx("h3",{className:m(C.h4,"text-auxiliary-4 text-center sm:text-start"),children:l.name}),a.jsxs("div",{className:m(C.t1,"text-auxiliary-4 flex flex-col sm:flex-row items-center gap-6 mb-3"),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(n2,{className:"size-7 text-primary-5"}),a.jsxs("span",{children:[l.openJobs," open jobs"]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(W3,{className:"size-7 text-primary-5"}),a.jsxs("span",{children:[l.employees," employees"]})]})]}),a.jsx("div",{className:"flex items-center gap-4 flex-wrap",children:l.tags.map(e=>a.jsx(ot,{size:"sm",children:e.label},e.value))})]}),a.jsx("img",{className:m("flex-none size-[6.25rem] bg-support-3 rounded-md border border-support-5"),src:l.image,alt:l.name})]})}),ka=({tabs:l,...e})=>a.jsxs(b3,{orientation:"vertical",className:"data-[orientation=vertical]:flex-col lg:data-[orientation=vertical]:flex-row",...e,children:[a.jsx(j3,{className:m("items-start flex-wrap","data-[orientation=vertical]:border-0","data-[orientation=vertical]:w-full lg:data-[orientation=vertical]:w-xs","data-[orientation=vertical]:flex-row lg:data-[orientation=vertical]:flex-col"),children:l.map(({value:r,label:n})=>a.jsx(ba,{value:r,children:n},r))}),l.map(({value:r,content:n})=>a.jsx(D3,{value:r,children:n},r))]}),ba=l=>a.jsx(L3,{className:m(C.t3,"p-3 rounded-lg border-0 cursor-pointer h-auto","hover:text-auxiliary-3","data-[state=active]:bg-auxiliary-2"),...l}),ja=({title:l,description:e})=>a.jsxs("div",{children:[a.jsx("h1",{className:m(C.h3,"text-auxiliary-4 mb-6"),children:l}),a.jsx("p",{className:m(C.p1),children:e})]}),La=({title:l,description:e,children:r})=>a.jsxs("div",{children:[a.jsxs("div",{className:"border-b border-support-5 py-3 space-y-2",children:[a.jsx("h2",{className:m(C.h4,"text-auxiliary-4"),children:l}),e&&a.jsx("p",{className:C.t3,children:e})]}),r]}),R3=({title:l,description:e,imageSrc:r="https://placehold.co/200x200",action:n,className:i})=>a.jsxs("div",{className:m("flex flex-col items-center justify-center gap-6 py-12",i),children:[a.jsx("img",{src:r,alt:"",width:200,height:200,className:"rounded-lg","aria-hidden":"true"}),a.jsxs("div",{className:"text-center space-y-2",children:[a.jsx("h3",{className:m(C.h5,"text-auxiliary-4"),children:l}),e&&a.jsx("p",{className:m(C.t1,"text-support-7 max-w-sm"),children:e})]}),n&&a.jsx(a.Fragment,{children:n.href?a.jsx(ye,{asChild:!0,size:"sm",children:a.jsx(Ue.Link,{to:n.href,children:n.label})}):a.jsx(ye,{size:"sm",onClick:n.onClick,children:n.label})})]}),Da=({column:l,label:e,className:r})=>a.jsxs("button",{onClick:()=>l.toggleSorting(l.getIsSorted()==="asc"),className:m(C.t4,"font-medium flex items-center cursor-pointer",r),children:[e,a.jsx(Ke,{className:m("ml-2 size-4 transition-transform duration-200",l.getIsSorted()==="asc"&&"rotate-180")})]}),Na=({groups:l,variant:e})=>a.jsx(H3,{className:e==="ordered"?"border-b-0":"",children:l.map(({id:r,headers:n})=>a.jsx(zt,{className:m([e==="ordered"&&"border-b-transparent hover:bg-transparent",e==="actioned"&&"hover:bg-transparent border-support-5",e==="mixed"&&"hover:bg-transparent"]),children:n.map(i=>a.jsx(k3,{className:m(e==="ordered"?C.t4:C.t2,[e==="ordered"&&"font-medium text-support-7 first:pl-8 hover:text-primary-5",e==="actioned"&&"text-support-7 hover:text-primary-5 py-8",e==="mixed"&&"text-support-7 hover:text-primary-5 py-8 border-b border-support-5"],i.column.columnDef.className,i.column.columnDef.headerClassName),children:i.isPlaceholder?null:Kt.flexRender(i.column.columnDef.header,i.getContext())},i.id))},r))}),Sa=({rowModel:l,columnLength:e,isLoading:r,emptyMessage:n="Nothing to see here.",emptyImageSrc:i,variant:s,onRowClick:o})=>r?a.jsx(Ut,{children:a.jsx(zt,{className:"hover:bg-transparent",children:a.jsx(Gt,{colSpan:e,className:"h-24",align:"center",children:a.jsx(le.Loader2,{className:"animate-spin"})})})}):!r&&l.rows.length===0?a.jsx(Ut,{children:a.jsx(zt,{className:"hover:bg-transparent",children:a.jsx(Gt,{colSpan:e,align:"center",children:a.jsx(R3,{title:n,imageSrc:i})})})}):a.jsx(Ut,{children:l.rows.map(c=>a.jsx(zt,{className:m([s==="ordered"&&m(C.t1,"outline outline-support-5 border-0 rounded-lg hover:outline-primary-5 hover:outline-2 cursor-pointer"),s==="actioned"&&"border-support-5 hover:bg-transparent",s==="mixed"&&"border-b-0 hover:bg-transparent"]),onClick:()=>o?.(c.original),children:c.getVisibleCells().map(d=>a.jsx(Gt,{className:m("text-auxiliary-4",[s==="ordered"&&"py-4 bg-auxiliary-1 first:pl-8 first:rounded-s-lg last:rounded-e-lg",s==="actioned"&&"py-5 leading-[20px]",s==="mixed"&&"py-5 leading-[20px]"],d.column.columnDef.className,d.column.columnDef.cellClassName),children:Kt.flexRender(d.column.columnDef.cell,d.getContext())},d.id))},c.id))}),Va=({isLoading:l,emptyMessage:e,emptyImageSrc:r,className:n,containerClassname:i,variant:s="ordered",onRowClick:o,...c})=>{const{getHeaderGroups:d,getRowModel:f}=Kt.useReactTable({getCoreRowModel:Kt.getCoreRowModel(),...c});return a.jsx("div",{className:m("w-full",n),children:a.jsxs(F3,{containerClassname:i,className:m(C.t1,"overflow-x-auto w-full px-[2px]",[s==="ordered"&&"border-separate border-spacing-y-4",s==="actioned"&&"border-spacing-y-4 border-collapse",s==="mixed"&&"border-spacing-y-4 border-collapse"]),children:[a.jsx(Na,{groups:d(),variant:s}),a.jsx(Sa,{rowModel:f(),columnLength:c.columns.length,isLoading:l,emptyMessage:e,emptyImageSrc:r,variant:s,onRowClick:o})]})})},_3=({...l})=>a.jsxs("svg",{viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M24.5 2.66602V5.33268M8.5 2.66602V5.33268",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16.4933 17.334H16.5053M16.4933 22.6673H16.5053M21.8207 17.334H21.8327M11.166 17.334H11.178M11.166 22.6673H11.178",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.16602 10.666H27.8327",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M3.83398 16.3243C3.83398 10.5146 3.83398 7.60971 5.50348 5.80485C7.17297 4 9.85997 4 15.234 4H17.7673C23.1413 4 25.8284 4 27.4978 5.80485C29.1673 7.60971 29.1673 10.5146 29.1673 16.3243V17.0091C29.1673 22.8188 29.1673 25.7236 27.4978 27.5285C25.8284 29.3333 23.1413 29.3333 17.7673 29.3333H15.234C9.85997 29.3333 7.17297 29.3333 5.50348 27.5285C3.83398 25.7236 3.83398 22.8188 3.83398 17.0091V16.3243Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M4.5 10.666H28.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ba=({error:l,disabled:e,value:r,onValueChange:n,label:i="Date of Birth",required:s=!1,info:o,id:c})=>{const d=t.useRef(null),[f,p]=t.useState(!1),[x,E]=t.useState(r);ft(d,()=>p(!1)),t.useEffect(()=>{r!==void 0&&E(r)},[r]);const g=z=>{E(z),n&&n(z)};return a.jsxs("div",{className:"flex flex-col gap-3 relative",children:[a.jsx(he,{label:i,info:o,required:s,disabled:e,htmlFor:c}),a.jsxs("div",{className:"relative flex gap-6",children:[a.jsx(We,{id:c,type:"date",className:m(C.t1,"flex-1 max-w-3xs bg-background appearance-none py-3 px-4 [&::-webkit-calendar-picker-indicator]:hidden",!x&&"text-support-5"),disabled:e,value:x?S.fromJSDate(x).toISODate()??"":"",onChange:z=>g(z.target.valueAsDate??void 0),"aria-invalid":!!l}),a.jsxs(ye,{variant:"outline",size:"icon",className:m("flex-none active:ring-0 active:border-primary-5 hover:border-primary-5 hover:ring-[1px] focus-visible:ring-1 hover:focus-visible:ring-2 ring-primary-5 aria-invalid:ring-warning-5",f&&"border-primary-5 ring-primary-5",e&&"opacity-50"),onClick:()=>p(!f),"aria-invalid":!!l,disabled:e,children:[a.jsx(_3,{className:"size-6"}),a.jsx("span",{className:"sr-only",children:"Select date"})]}),f&&a.jsx("div",{ref:d,className:"absolute inset-full start-0 z-10",children:a.jsx(a3,{mode:"single",selected:x,defaultMonth:x,captionLayout:"dropdown-years",onSelect:z=>{g(z),p(!1)},className:"shadow-none border border-border rounded-2xl",required:!0})})]}),l&&a.jsx("p",{className:m(C.t3,"self-end text-warning-5"),children:l})]})},P3=({error:l})=>l?a.jsx("p",{className:m(C.t3,"text-warning-5 text-right"),children:l}):null,a2=({fileName:l,onRemove:e})=>a.jsxs(ot,{size:"sm",className:"flex items-center gap-3",children:[a.jsx("span",{children:l}),a.jsx(ye,{type:"button",variant:"ghost",className:"size-4.5 rounded-full p-0",onClick:e,children:a.jsx(Je,{className:"size-4.5"})})]}),i2=({...l})=>a.jsxs("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",strokeWidth:"1",...l,children:[a.jsx("path",{d:"M3.07918 8.33398C3.02702 8.71482 3 9.1044 3 9.50065C3 13.9189 6.35787 17.5007 10.5 17.5007C14.6422 17.5007 18 13.9189 18 9.50065C18 9.1044 17.973 8.71482 17.9208 8.33398",stroke:"currentColor",strokeLinecap:"round"}),a.jsx("path",{d:"M10.4993 2.5V10.8333M10.4993 2.5C9.91585 2.5 8.82562 4.16192 8.41602 4.58333M10.4993 2.5C11.0828 2.5 12.1731 4.16192 12.5827 4.58333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});function Ta({id:l,label:e="File",required:r,disabled:n,error:i,info:s}){const[o,c]=t.useState(null),d=t.useRef(null),f=x=>{x.target.files&&x.target.files[0]&&c(x.target.files[0])},p=()=>{c(null),d.current&&(d.current.value="")};return a.jsxs("div",{className:"space-y-3 w-full",children:[a.jsx(he,{label:e,info:s,htmlFor:l,disabled:n,required:r}),a.jsxs("div",{className:"flex items-center justify-between w-full gap-3",children:[a.jsxs("label",{className:m("bg-auxiliary-1 flex items-center flex-1 justify-between rounded-md border border-border border-dashed px-3 py-[0.688rem] cursor-pointer transition-colors",!n&&"hover:border-primary-5 ring-primary-5 hover:ring-[1px] focus-within:border-primary-5",n&&"cursor-not-allowed",i&&"border-warning-5 ring-warning-5 hover:border-warning-5"),children:[a.jsx("input",{ref:d,id:l,type:"file",className:"hidden",disabled:n,onChange:f}),a.jsx("span",{className:m(C.t1,"text-primary-6 truncate"),children:o?.name}),a.jsx("div",{className:"flex items-center gap-1",children:a.jsx(i2,{className:"size-5 text-muted-foreground"})})]}),o&&a.jsx("button",{type:"button",onClick:p,className:"rounded-full group cursor-pointer",children:a.jsx(Je,{className:"size-6 group-hover:text-warning-5 text-muted-foreground"})})]}),i&&a.jsx("p",{className:m(C.t3,"ml-auto w-fit text-warning-5"),children:i})]})}const Aa=({disabled:l,error:e,items:r=[],selectedValues:n,onChange:i})=>{const[s,o]=Ce.useState(!1),[c,d]=Ce.useState(""),f=Ce.useRef(null);ft(f,()=>{o(!1),d("")});const[p,x]=Ce.useState([]),E=n??p,g=w=>{i?i(w):x(w)},z=w=>{g(E.includes(w)?E.filter(M=>M!==w):[...E,w])},v=w=>{g(E.filter(M=>M!==w))};return a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:m("relative w-[250px] group",l&&"pointer-events-none"),children:a.jsxs(mt,{ref:f,className:m("h-auto overflow-visible relative","[&>[data-slot=command-input-wrapper]]:p-0 [&>[data-slot=command-input-wrapper]]:border-0 [&>[data-slot=command-input-wrapper]]:h-auto"),children:[a.jsx(Dt,{value:c,onValueChange:w=>{d(w),o(!0)},autoFocus:!0,onContainerClick:()=>o(!0),placeholder:E.length>0?`Filtered (${E.length})`:"Filter (00)",disabled:l,className:m(C.t1,"placeholder:text-auxiliary-4 py-3 px-4 h-10.5 border border-support-5 rounded-x-[0.625rem] ring-ring focus-visible:ring-0 focus-visible:border-ring group-active:ring-0 group-active:border-ring transition-[color,box-shadow]",e&&"border-warning-5 active:border-warning-5 focus-visible:border-warning-5",s&&"rounded-b-none",!s&&"group-hover:ring-[0.125rem] group-hover:border-transparent"),showSearchIcon:!1}),a.jsx(Ke,{className:m("size-3 text-support-7 absolute duration-200 top-1/2 right-4 -translate-y-1/2",l&&"opacity-50",s&&"rotate-180 text-primary-5")}),s&&a.jsx("div",{className:"absolute right-0 left-0 w-full top-[2.625rem] z-20",children:a.jsxs(Nt,{className:"overflow-hidden bg-auxiliary-1",children:[a.jsx(St,{className:"py-4 text-support-7 text-center border-b border-x border-border rounded-b-[0.625rem]",children:"No options found."}),a.jsx(Vt,{className:"p-0 border-b border-x border-border rounded-b-[0.625rem] pt-4",children:r.map(w=>a.jsxs(Bt,{onSelect:()=>z(w.value),className:m(C.t1,"px-4 pt-0 pb-4 group data-[selected=true]:bg-auxiliary-1 data-[selected=true]:text-primary-5"),children:[a.jsx(d3,{className:"group-data-[selected=true]:border-primary-5 [&_svg]:!text-auxiliary-1 size-[18px]",checked:E.includes(w.value)}),w.label]},w.value))})]})})]})}),E.length>0&&a.jsx("div",{className:"flex flex-wrap gap-3",children:E.map(w=>a.jsxs(ot,{size:"xs",className:m(C.t2,"flex items-center gap-3"),children:[w,a.jsx("button",{className:"cursor-pointer",onClick:()=>v(w),children:a.jsx(Je,{className:"!size-[1.125rem]"})})]},w))})]})},Ia="data:image/svg+xml,%3csvg%20width='221'%20height='48'%20viewBox='0%200%20221%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.6441%2024.6496C11.6441%2023.784%2010.9403%2023.0821%2010.0724%2023.0821C9.20453%2023.0821%208.5008%2023.784%208.5008%2024.6496C8.5008%2030.1814%2013.508%2033.6058%2018.1467%2033.6058C19.0146%2033.6058%2019.7183%2032.9039%2019.7183%2032.0382C19.7183%2031.1726%2019.0146%2030.4707%2018.1467%2030.4707C15.0198%2030.4708%2011.6441%2028.245%2011.6441%2024.6496Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M49.6378%2037.1228V34.3794L55.3048%2028.9738C55.9325%2028.3755%2055.9548%2027.3833%2055.3548%2026.7575C54.7554%2026.1315%2053.7587%2026.1101%2053.1332%2026.7082L49.6378%2030.0424V24.4534C49.6378%2023.5877%2048.9341%2022.8859%2048.0662%2022.8859C47.1983%2022.8859%2046.4945%2023.5877%2046.4945%2024.4534V30.0424L42.9991%2026.7082C42.3738%2026.1099%2041.3776%2026.1315%2040.7776%2026.7575C40.1775%2027.3832%2040.1998%2028.3755%2040.8275%2028.9738L46.4945%2034.3794V37.1242C43.6336%2036.7773%2040.9916%2035.4976%2038.9366%2033.4149L36.1357%2036.1633C38.9366%2039.0022%2042.5697%2040.7098%2046.4945%2041.0713V45.7248C46.4945%2046.5904%2047.1983%2047.2923%2048.0662%2047.2923C48.9341%2047.2923%2049.6378%2046.5904%2049.6378%2045.7248V41.0733C53.4094%2040.7236%2056.9308%2039.1212%2059.6866%2036.4694L56.9577%2033.6498C54.9409%2035.5915%2052.3834%2036.7879%2049.6378%2037.1228Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M95.0172%2022.1198C95.0408%2021.7828%2095.0565%2021.4379%2095.0565%2021.1009C95.0565%2020.615%2095.025%2020.1448%2094.9857%2019.6667L97.9248%2017.339L97.3511%2015.552L96.7852%2013.765L93.2727%2013.5691C92.9112%2012.8323%2092.4869%2012.1348%2092.0234%2011.4686L93.4064%207.98089L92.0234%206.71122L90.6326%205.44937L87.4893%207.02473C86.8135%206.57024%2086.1064%206.17047%2085.3596%205.81774L84.8174%202.11063L82.9866%201.70304L81.1478%201.29545L79.2149%204.21893C78.8377%204.19534%2078.4684%204.1797%2078.0834%204.1797C77.7454%204.1797%2077.3996%204.18752%2077.0617%204.21097L75.1288%201.29531L71.4669%202.11049L70.9325%205.76274C70.1625%206.11547%2069.4317%206.53088%2068.7323%206.99319L65.6521%205.44937L64.2613%206.71122L62.8783%207.98089L66.5008%2014.1883C69.1563%209.74153%2074.3211%206.9467%2080.0326%207.7498C86.049%208.5957%2090.8271%2013.5042%2091.5166%2019.525C92.448%2027.656%2086.0618%2034.5815%2078.0836%2034.5815C71.3257%2034.5815%2065.7231%2029.5968%2064.7408%2023.1309C63.8842%2017.4801%2060.8431%2013.6866%2060.8431%2013.6866C57.7706%2010.0656%2053.1894%207.76132%2048.066%207.76132C38.8407%207.76132%2031.3287%2015.2462%2031.3287%2024.4553V25.7484C31.3287%2032.1596%2024.2408%2037.1364%2018.143%2037.1364C12.0531%2037.1364%204.96513%2032.1594%204.96513%2025.7484C4.96513%2016.2258%2014.8112%207.99639%2018.1508%205.4805C19.7225%206.66405%2022.7476%209.12494%2025.5137%2012.409L28.0596%2015.2069L29.9926%2011.5469L28.4918%209.85399C24.2014%204.75954%2019.4393%201.56974%2019.235%201.42862L18.1429%200.70752L17.0584%201.42862C16.4061%201.86747%201.03606%2012.2366%201.03606%2025.7486C1.03606%2034.5032%2010.0727%2041.0554%2018.1429%2041.0554C26.2208%2041.0554%2035.2575%2034.5032%2035.2575%2025.7486V24.789C35.2575%2018.064%2040.331%2012.2362%2047.0536%2011.7191C52.0256%2011.3368%2056.4649%2013.7999%2058.8941%2017.6445C58.9413%2017.7072%2058.9885%2017.7699%2059.0278%2017.8405C60.136%2019.4604%2060.7797%2021.7692%2061.0943%2023.187C61.3645%2024.404%2061.7016%2025.6087%2062.1363%2026.7774C62.4779%2027.6964%2062.7131%2028.2409%2062.7131%2028.2409C63.0746%2029.0246%2063.4989%2029.7692%2063.9781%2030.4825L62.4223%2033.5157L63.6875%2034.9029L64.9447%2036.298L68.3788%2034.9657C69.0701%2035.4437%2069.7932%2035.8748%2070.5554%2036.251L70.7204%2039.6994L72.512%2040.2794L74.2958%2040.8594L76.6453%2037.9595C77.1244%2037.9987%2077.6039%2038.0222%2078.0834%2038.0222C78.6099%2038.0222%2079.1205%2037.9908%2079.6235%2037.9517L81.9888%2040.8594L83.7726%2040.2794L85.5561%2039.6994L85.737%2036.1961C86.4677%2035.8277%2087.167%2035.4045%2087.8272%2034.9421L91.3396%2036.298L92.5969%2034.9029L93.8541%2033.5157L92.2591%2030.3885C92.7068%2029.7145%2093.1076%2029.0013%2093.4533%2028.2566L97.1703%2027.6923L97.5631%2025.8583L97.9637%2024.0321L95.0172%2022.1198Z'%20fill='%2300CAAF'/%3e%3cpath%20d='M121.787%2020H120.059V14.294L115.361%207.598H117.359L120.923%2012.62L124.523%207.598H126.539L121.787%2014.294V20ZM129.843%2020.18C127.449%2020.18%20125.451%2018.434%20125.451%2015.77C125.451%2013.106%20127.449%2011.414%20129.843%2011.414C132.237%2011.414%20134.253%2013.106%20134.253%2015.77C134.253%2018.434%20132.237%2020.18%20129.843%2020.18ZM129.843%2018.596C131.337%2018.596%20132.615%2017.498%20132.615%2015.77C132.615%2014.078%20131.337%2013.016%20129.843%2013.016C128.313%2013.016%20127.071%2014.078%20127.071%2015.77C127.071%2017.498%20128.313%2018.596%20129.843%2018.596ZM142.174%2016.13V11.594H143.812V20H142.174V18.74C141.652%2019.748%20140.482%2020.18%20139.564%2020.18C137.458%2020.18%20136.306%2018.83%20136.324%2016.454V11.594H137.962V16.346C137.962%2017.768%20138.646%2018.578%20139.798%2018.578C140.986%2018.578%20142.174%2017.93%20142.174%2016.13ZM148.808%2011.594H150.59V12.98H148.808V20H147.17V12.98H145.658V11.594H147.17V8.426H148.808V11.594ZM156.157%2020.18C153.763%2020.18%20151.765%2018.434%20151.765%2015.77C151.765%2013.106%20153.763%2011.414%20156.157%2011.414C158.551%2011.414%20160.567%2013.106%20160.567%2015.77C160.567%2018.434%20158.551%2020.18%20156.157%2020.18ZM156.157%2018.596C157.651%2018.596%20158.929%2017.498%20158.929%2015.77C158.929%2014.078%20157.651%2013.016%20156.157%2013.016C154.627%2013.016%20153.385%2014.078%20153.385%2015.77C153.385%2017.498%20154.627%2018.596%20156.157%2018.596ZM164.385%2011.594V12.908C164.961%2011.954%20166.131%2011.414%20167.319%2011.414C169.623%2011.414%20171.531%2013.16%20171.531%2015.824C171.531%2018.488%20169.623%2020.18%20167.319%2020.18C166.131%2020.18%20164.961%2019.694%20164.385%2018.74V24.086H162.747V11.594H164.385ZM164.403%2015.842C164.403%2017.642%20165.807%2018.578%20167.157%2018.578C168.669%2018.578%20169.875%2017.516%20169.875%2015.842C169.875%2014.168%20168.669%2013.016%20167.157%2013.016C165.681%2013.016%20164.403%2014.06%20164.403%2015.842ZM175.336%2011.594V20H173.716V11.594H175.336ZM173.392%208.498C173.392%207.868%20173.896%207.436%20174.526%207.436C175.156%207.436%20175.66%207.868%20175.66%208.498C175.66%209.128%20175.156%209.56%20174.526%209.56C173.896%209.56%20173.392%209.128%20173.392%208.498ZM184.735%2020V18.704C184.177%2019.64%20182.953%2020.18%20181.783%2020.18C179.479%2020.18%20177.517%2018.452%20177.517%2015.788C177.517%2013.106%20179.479%2011.414%20181.783%2011.414C182.953%2011.414%20184.159%2011.9%20184.735%2012.854V11.594H186.355V20H184.735ZM184.717%2015.77C184.717%2013.97%20183.295%2013.016%20181.927%2013.016C180.415%2013.016%20179.191%2014.114%20179.191%2015.77C179.191%2017.426%20180.415%2018.578%20181.927%2018.578C183.421%2018.578%20184.717%2017.552%20184.717%2015.77Z'%20fill='%23464646'/%3e%3cpath%20d='M122.082%2036.984L122.922%2037.692C122.19%2038.568%20121.086%2039.12%20119.79%2039.12C117.45%2039.12%20115.602%2037.236%20115.602%2034.884C115.602%2032.544%20117.45%2030.636%20119.79%2030.636C121.074%2030.636%20122.166%2031.176%20122.898%2032.04L122.058%2032.736C121.494%2032.124%20120.702%2031.716%20119.79%2031.716C118.05%2031.716%20116.718%2033.12%20116.718%2034.884C116.718%2036.648%20118.05%2038.04%20119.79%2038.04C120.714%2038.04%20121.518%2037.644%20122.082%2036.984ZM126.673%2039.12C125.077%2039.12%20123.745%2037.956%20123.745%2036.18C123.745%2034.404%20125.077%2033.276%20126.673%2033.276C128.269%2033.276%20129.613%2034.404%20129.613%2036.18C129.613%2037.956%20128.269%2039.12%20126.673%2039.12ZM126.673%2038.064C127.669%2038.064%20128.521%2037.332%20128.521%2036.18C128.521%2035.052%20127.669%2034.344%20126.673%2034.344C125.653%2034.344%20124.825%2035.052%20124.825%2036.18C124.825%2037.332%20125.653%2038.064%20126.673%2038.064ZM137.51%2034.344C136.586%2034.344%20136.022%2035.04%20136.022%2035.976V39H134.93V35.82C134.93%2034.896%20134.45%2034.344%20133.718%2034.344C132.938%2034.344%20132.158%2034.8%20132.158%2035.976V39H131.066V33.396H132.158V34.236C132.446%2033.612%20133.25%2033.336%20133.706%2033.3C133.922%2033.288%20134.126%2033.3%20134.318%2033.336C135.026%2033.444%20135.518%2033.816%20135.782%2034.428C136.298%2033.432%20137.186%2033.276%20137.726%2033.276C139.13%2033.276%20139.886%2034.176%20139.886%2035.76V39H138.794V35.832C138.794%2034.908%20138.326%2034.344%20137.51%2034.344ZM142.729%2033.396V34.272C143.113%2033.636%20143.893%2033.276%20144.685%2033.276C146.221%2033.276%20147.493%2034.44%20147.493%2036.216C147.493%2037.992%20146.221%2039.12%20144.685%2039.12C143.893%2039.12%20143.113%2038.796%20142.729%2038.16V41.724H141.637V33.396H142.729ZM142.741%2036.228C142.741%2037.428%20143.677%2038.052%20144.577%2038.052C145.585%2038.052%20146.389%2037.344%20146.389%2036.228C146.389%2035.112%20145.585%2034.344%20144.577%2034.344C143.593%2034.344%20142.741%2035.04%20142.741%2036.228ZM151.505%2039.12C149.909%2039.12%20148.577%2037.956%20148.577%2036.18C148.577%2034.404%20149.909%2033.276%20151.505%2033.276C153.101%2033.276%20154.445%2034.404%20154.445%2036.18C154.445%2037.956%20153.101%2039.12%20151.505%2039.12ZM151.505%2038.064C152.501%2038.064%20153.353%2037.332%20153.353%2036.18C153.353%2035.052%20152.501%2034.344%20151.505%2034.344C150.485%2034.344%20149.657%2035.052%20149.657%2036.18C149.657%2037.332%20150.485%2038.064%20151.505%2038.064ZM156.99%2035.976V39H155.898V33.396H156.99V34.236C157.314%2033.564%20158.13%2033.276%20158.742%2033.276C160.146%2033.276%20160.902%2034.176%20160.902%2035.76V39H159.81V35.832C159.81%2034.884%20159.342%2034.344%20158.574%2034.344C157.782%2034.344%20156.99%2034.788%20156.99%2035.976ZM163.38%2035.76H166.86C166.728%2034.812%20166.068%2034.26%20165.156%2034.26C164.232%2034.26%20163.512%2034.812%20163.38%2035.76ZM167.94%2036.18C167.94%2036.312%20167.94%2036.48%20167.928%2036.612H163.38C163.512%2037.56%20164.232%2038.136%20165.192%2038.136C165.864%2038.136%20166.476%2037.836%20166.8%2037.272C167.088%2037.404%20167.436%2037.5%20167.736%2037.632C167.256%2038.628%20166.248%2039.12%20165.156%2039.12C163.56%2039.12%20162.288%2037.956%20162.288%2036.18C162.288%2034.404%20163.56%2033.276%20165.156%2033.276C166.752%2033.276%20167.94%2034.404%20167.94%2036.18ZM170.42%2035.976V39H169.328V33.396H170.42V34.236C170.744%2033.564%20171.56%2033.276%20172.172%2033.276C173.576%2033.276%20174.332%2034.176%20174.332%2035.76V39H173.24V35.832C173.24%2034.884%20172.772%2034.344%20172.004%2034.344C171.212%2034.344%20170.42%2034.788%20170.42%2035.976ZM177.602%2033.396H178.79V34.32H177.602V39H176.51V34.32H175.502V33.396H176.51V31.284H177.602V33.396ZM183.138%2030.732H184.254V37.956H187.626V39H183.138V30.732ZM189.943%2033.396V39H188.863V33.396H189.943ZM188.647%2031.332C188.647%2030.912%20188.983%2030.624%20189.403%2030.624C189.823%2030.624%20190.159%2030.912%20190.159%2031.332C190.159%2031.752%20189.823%2032.04%20189.403%2032.04C188.983%2032.04%20188.647%2031.752%20188.647%2031.332ZM192.861%2038.136V39H191.769V30.348H192.861V34.236C193.233%2033.6%20194.013%2033.276%20194.829%2033.276C196.377%2033.276%20197.661%2034.404%20197.661%2036.192C197.661%2037.968%20196.353%2039.12%20194.817%2039.12C194.037%2039.12%20193.233%2038.76%20192.861%2038.136ZM192.873%2036.18C192.873%2037.368%20193.737%2038.052%20194.733%2038.052C195.741%2038.052%20196.545%2037.284%20196.545%2036.18C196.545%2035.076%20195.741%2034.344%20194.733%2034.344C193.821%2034.344%20192.873%2034.98%20192.873%2036.18ZM200.209%2036.96V39H199.117V33.396H200.209V34.656C200.497%2033.66%20201.037%2033.276%20201.769%2033.276C202.165%2033.276%20202.585%2033.384%20202.741%2033.492L202.573%2034.512C202.273%2034.368%20201.973%2034.32%20201.745%2034.32C200.665%2034.32%20200.209%2035.472%20200.209%2036.96ZM208.151%2039V38.136C207.779%2038.76%20206.963%2039.12%20206.183%2039.12C204.647%2039.12%20203.339%2037.968%20203.339%2036.192C203.339%2034.404%20204.647%2033.276%20206.183%2033.276C206.963%2033.276%20207.767%2033.6%20208.151%2034.236V33.396H209.231V39H208.151ZM208.139%2036.18C208.139%2034.98%20207.191%2034.344%20206.279%2034.344C205.271%2034.344%20204.455%2035.076%20204.455%2036.18C204.455%2037.284%20205.271%2038.052%20206.279%2038.052C207.275%2038.052%20208.139%2037.368%20208.139%2036.18ZM212.15%2036.96V39H211.058V33.396H212.15V34.656C212.438%2033.66%20212.978%2033.276%20213.71%2033.276C214.106%2033.276%20214.526%2033.384%20214.682%2033.492L214.514%2034.512C214.214%2034.368%20213.914%2034.32%20213.686%2034.32C212.606%2034.32%20212.15%2035.472%20212.15%2036.96ZM217.305%2041.724H216.165L217.341%2038.832L215.097%2033.396H216.261L217.941%2037.452L219.621%2033.396H220.785L217.305%2041.724Z'%20fill='%2300CAAF'/%3e%3c/svg%3e",Z3=()=>a.jsx(Ue.Link,{to:"/",className:"flex items-center gap-2",children:a.jsx("img",{src:Ia,alt:"Youtopia",className:"size-auto object-contain"})}),Oa={sm:576,md:768,lg:992,xl:1200,"2xl":1400,wide:1920},W2=l=>Object.entries(Oa).sort(([,i],[,s])=>i-s).find(([,i])=>l<i)?.[0]||"wide",U3=()=>{const[l,e]=t.useState(()=>typeof window>"u"?"md":W2(window.innerWidth));return t.useEffect(()=>{const r=()=>{e(W2(window.innerWidth))};return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),l},G3=[{label:"Buttons",href:"/buttons"},{label:"Cards",href:"/cards"},{label:"Forms",href:"/forms"},{label:"Miscellaneous",href:"/miscellaneous"},{label:"Popups",href:"/popups"},{label:"Tables",href:"/tables"}],$3=()=>{const l=U3();return["sm","md","lg"].includes(l)?a.jsx(_a,{}):a.jsx(Wa,{})},Wa=()=>a.jsx("nav",{className:"flex items-center gap-10",children:G3.map(l=>a.jsx(Ra,{...l},l.label))}),Ra=({label:l,href:e})=>{const{pathname:r}=Ue.useLocation(),n=r===e;return a.jsx(Ue.Link,{to:e,className:m(C.t1,"text-auxiliary-3 hover:text-primary",n&&"text-primary"),children:l})},_a=()=>a.jsxs(m3,{children:[a.jsx(f3,{asChild:!0,children:a.jsxs(ye,{variant:"link",className:"size-8 p-0",children:[a.jsx("span",{className:"sr-only",children:"Open Nav Menu"}),a.jsx(le.MenuIcon,{className:"size-6"})]})}),a.jsxs(v3,{align:"end",children:[a.jsx(g3,{className:"text-xs font-extrabold uppercase text-muted-foreground text-right",children:"Navigation"}),G3.map(l=>a.jsx(Pa,{...l},l.label))]})]}),Pa=({label:l,href:e})=>{const{pathname:r}=Ue.useLocation(),n=r===e;return a.jsx(p3,{className:m(C.t1,"text-auxiliary-3 hover:text-primary focus:bg-transparent justify-end",n&&"text-primary"),asChild:!0,children:a.jsx(Ue.Link,{to:e,children:l})})},Za=()=>a.jsxs("header",{className:"h-20 bg-auxiliary-1 border border-support-5 px-12 py-4 flex items-center justify-between lg:justify-start gap-20",children:[a.jsx(Z3,{}),a.jsx($3,{})]}),q3=({...l})=>a.jsxs("svg",{viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",...l,children:[a.jsx("path",{d:"M19.166 12H24.4993",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M19.166 16.666H23.166",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M23.166 4H9.83268C6.15078 4 3.16602 6.98477 3.16602 10.6667V21.3333C3.16602 25.0152 6.15078 28 9.83268 28H23.166C26.8479 28 29.8327 25.0152 29.8327 21.3333V10.6667C29.8327 6.98477 26.8479 4 23.166 4Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),a.jsx("path",{d:"M7.16602 21.3327C8.7771 17.8912 14.7823 17.6648 16.4993 21.3327",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14.4993 12.0007C14.4993 13.4733 13.3054 14.6673 11.8327 14.6673C10.3599 14.6673 9.16602 13.4733 9.16602 12.0007C9.16602 10.5279 10.3599 9.33398 11.8327 9.33398C13.3054 9.33398 14.4993 10.5279 14.4993 12.0007Z",stroke:"currentColor",strokeWidth:"1.5"})]}),R2=["image/png","image/jpeg"],Ua=({label:l="Profile Photo",file:e,onFileSelect:r,disabled:n=!1})=>{const i=e?URL.createObjectURL(e):null,s=t.useRef(null),[o,c]=t.useState(!1),d=!!e,f=E=>{const g=E.target.files?.[0]??null;r(g),E.target.value=""},p=E=>{E.preventDefault(),c(!1);const g=E.dataTransfer.files?.[0];if(g){if(!R2.includes(g.type)){console.warn("Invalid file type:",g.type);return}r(g)}},x=()=>r(null);return t.useEffect(()=>()=>{i&&URL.revokeObjectURL(i)},[i]),a.jsxs("div",{className:"w-full flex flex-col gap-6",children:[a.jsx(qe,{className:m("py-0 max-w-[27.188rem] border-support-5","aria-invalid:ring-warning-5 aria-disabled:border-support-5",o&&"border-primary-5 bg-auxiliary-7"),"aria-disabled":n,children:a.jsx(Ye,{className:"w-full gap-6 p-0",children:a.jsxs("label",{tabIndex:0,className:"outline-primary-5 focus:outline-1 rounded-xl group flex items-center py-9 px-6 gap-6 transition cursor-pointer",onDragOver:E=>{E.preventDefault(),c(!0)},onDragLeave:()=>c(!1),onDrop:p,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),s.current?.click())},"aria-label":"Upload image file",role:"button",children:[a.jsx("input",{type:"file",accept:R2.join(","),className:"hidden",onChange:f,disabled:n,ref:s}),a.jsx("div",{className:m("relative size-[6.25rem] aspect-square flex justify-center items-center rounded-3xl overflow-hidden bg-auxiliary-7 outline-auxiliary-1",!i&&"outline -outline-offset-8"),children:i?a.jsx("img",{src:i,alt:"Preview",className:"object-cover size-full"}):a.jsx(q3,{className:"text-primary-5 size-12 group-hover:text-primary-6"})}),a.jsxs("div",{className:"flex flex-col gap-3",children:[a.jsx("p",{className:m(C.t1,"text-auxiliary-4 select-none"),children:l}),a.jsx("p",{className:m(C.t4,"text-primary-5 group-hover:text-primary-6 select-none",d&&"text-primary-6"),children:"Upload Image"})]})]})})}),e&&a.jsx(a2,{fileName:e.name,onRemove:x})]})},_2=["image/png","image/jpeg"],Ga=({label:l,description:e,maxFileSizeInMB:r,required:n,disabled:i,file:s,onFileSelect:o})=>{const c=s?URL.createObjectURL(s):null,d=E=>{E.preventDefault();const g=E.dataTransfer.files?.[0];if(g){if(!_2.includes(g.type)){console.warn("Invalid file type:",g.type);return}p(g)}},f=E=>{const g=E.target.files?.[0];g&&p(g)},p=E=>{if(E.size/1048576>r){console.warn(`File size exceeds the limit of ${r}MB`);return}o(E)},x=()=>o(null);return t.useEffect(()=>()=>{c&&URL.revokeObjectURL(c)},[c]),a.jsxs("div",{className:"flex flex-col gap-8 [&>div>label]:text-support-7",children:[l&&a.jsx(he,{label:l,required:n,disabled:i}),a.jsxs("div",{className:"flex items-center gap-8",children:[a.jsxs("label",{className:m("size-38 flex items-center justify-center rounded-lg bg-auxiliary-1 cursor-pointer overflow-hidden","border border-support-5 border-dashed","hover:border-primary"),onDragOver:E=>E.preventDefault(),onDrop:d,"aria-label":"Upload image file",role:"button",children:[c?a.jsx("img",{src:c,alt:"Preview",className:"size-full object-cover"}):a.jsx(i2,{className:"size-12"}),a.jsx("input",{type:"file",className:"hidden",onChange:f,accept:_2.join(",")})]}),a.jsxs("div",{className:m(C.p1),children:[e&&a.jsx("p",{className:"text-auxiliary-4",children:e}),a.jsxs("span",{className:"text-support-7",children:["Maximum file size: ",r,"MB"]})]})]}),s&&a.jsx(a2,{fileName:s.name,onRemove:x})]})},$a=({title:l,description:e,cta:r,...n})=>a.jsx(s1,{...n,children:a.jsxs(o1,{showCloseButton:!1,className:"gap-6 p-12 sm:max-w-[45rem] shadow-card",children:[a.jsxs(c1,{className:"gap-6",children:[a.jsxs(d1,{className:"flex items-center gap-6",children:[a.jsx("div",{className:"flex items-center justify-center p-3 size-14 bg-auxiliary-7 rounded-full",children:a.jsx(le.Info,{className:"text-primary-5 size-8"})}),a.jsx("span",{className:m(C.h4,"text-auxiliary-4"),children:l})]}),a.jsx(h1,{className:m(C.p1,"text-auxiliary-3"),children:e})]}),r&&a.jsx(t2,{children:a.jsx(ye,{className:"w-full",asChild:!!r.url,onClick:r.onClick,children:r.url?a.jsx(Ue.Link,{to:r.url,children:r.label}):r.label})})]})});function Y3(l,e){var r={};for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&e.indexOf(n)<0&&(r[n]=l[n]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(l);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(l,n[i])&&(r[n[i]]=l[n[i]]);return r}var Ft;(function(l){l.event="event",l.props="prop"})(Ft||(Ft={}));function Ae(){}function qa(l){var e,r=void 0;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e&&n.length===e.length&&n.every(function(s,o){return s===e[o]})||(e=n,r=l.apply(void 0,n)),r}}function Ht(l){return!!(l||"").match(/\d/)}function it(l){return l==null}function Ya(l){return typeof l=="number"&&isNaN(l)}function K3(l){return it(l)||Ya(l)||typeof l=="number"&&!isFinite(l)}function J3(l){return l.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ka(l){switch(l){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Ja(l,e,r){var n=Ka(r),i=l.search(/[1-9]/);return i=i===-1?l.length:i,l.substring(0,i)+l.substring(i,l.length).replace(n,"$1"+e)}function Qa(l){var e=t.useRef(l);e.current=l;var r=t.useRef(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e.current.apply(e,n)});return r.current}function s2(l,e){e===void 0&&(e=!0);var r=l[0]==="-",n=r&&e;l=l.replace("-","");var i=l.split("."),s=i[0],o=i[1]||"";return{beforeDecimal:s,afterDecimal:o,hasNegation:r,addNegation:n}}function Xa(l){if(!l)return l;var e=l[0]==="-";e&&(l=l.substring(1,l.length));var r=l.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(e?"-":"")+n+(i?"."+i:"")}function Q3(l,e,r){for(var n="",i=r?"0":"",s=0;s<=e-1;s++)n+=l[s]||i;return n}function P2(l,e){return Array(e+1).join(l)}function X3(l){var e=l+"",r=e[0]==="-"?"-":"";r&&(e=e.substring(1));var n=e.split(/[eE]/g),i=n[0],s=n[1];if(s=Number(s),!s)return r+i;i=i.replace(".","");var o=1+s,c=i.length;return o<0?i="0."+P2("0",Math.abs(o))+i:o>=c?i=i+P2("0",o-c):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function Z2(l,e,r){if(["","-"].indexOf(l)!==-1)return l;var n=(l.indexOf(".")!==-1||r)&&e,i=s2(l),s=i.beforeDecimal,o=i.afterDecimal,c=i.hasNegation,d=parseFloat("0."+(o||"0")),f=o.length<=e?"0."+o:d.toFixed(e),p=f.split("."),x=s;s&&Number(p[0])&&(x=s.split("").reverse().reduce(function(v,w,M){return v.length>M?(Number(v[0])+Number(w)).toString()+v.substring(1,v.length):w+v},p[0]));var E=Q3(p[1]||"",e,r),g=c?"-":"",z=n?".":"";return""+g+x+z+E}function Pe(l,e){if(l.value=l.value,l!==null){if(l.createTextRange){var r=l.createTextRange();return r.move("character",e),r.select(),!0}return l.selectionStart||l.selectionStart===0?(l.focus(),l.setSelectionRange(e,e),!0):(l.focus(),!1)}}var el=qa(function(l,e){for(var r=0,n=0,i=l.length,s=e.length;l[r]===e[r]&&r<i;)r++;for(;l[i-1-n]===e[s-1-n]&&s-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:s-n}}}),ei=function(l,e){var r=Math.min(l.selectionStart,e);return{from:{start:r,end:l.selectionEnd},to:{start:r,end:e}}};function ti(l,e,r){return Math.min(Math.max(l,e),r)}function H1(l){return Math.max(l.selectionStart,l.selectionEnd)}function ri(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function li(l){return{from:{start:0,end:0},to:{start:0,end:l.length},lastValue:""}}function ni(l){var e=l.currentValue,r=l.formattedValue,n=l.currentValueIndex,i=l.formattedValueIndex;return e[n]===r[i]}function ai(l,e,r,n,i,s,o){o===void 0&&(o=ni);var c=i.findIndex(function(I){return I}),d=l.slice(0,c);!e&&!r.startsWith(d)&&(e=d,r=d+r,n=n+d.length);for(var f=r.length,p=l.length,x={},E=new Array(f),g=0;g<f;g++){E[g]=-1;for(var z=0,v=p;z<v;z++){var w=o({currentValue:r,lastValue:e,formattedValue:l,currentValueIndex:g,formattedValueIndex:z});if(w&&x[z]!==!0){E[g]=z,x[z]=!0;break}}}for(var M=n;M<f&&(E[M]===-1||!s(r[M]));)M++;var y=M===f||E[M]===-1?p:E[M];for(M=n-1;M>0&&E[M]===-1;)M--;var L=M===-1||E[M]===-1?0:E[M]+1;return L>y?y:n-L<y-n?L:y}function U2(l,e,r,n){var i=l.length;if(e=ti(e,0,i),n==="left"){for(;e>=0&&!r[e];)e--;e===-1&&(e=r.indexOf(!0))}else{for(;e<=i&&!r[e];)e++;e>i&&(e=r.lastIndexOf(!0))}return e===-1&&(e=i),e}function ii(l){for(var e=Array.from({length:l.length+1}).map(function(){return!0}),r=0,n=e.length;r<n;r++)e[r]=!!(Ht(l[r])||Ht(l[r-1]));return e}function tl(l,e,r,n,i,s){s===void 0&&(s=Ae);var o=Qa(function(z,v){var w,M;return K3(z)?(M="",w=""):typeof z=="number"||v?(M=typeof z=="number"?X3(z):z,w=n(M)):(M=i(z,void 0),w=n(M)),{formattedValue:w,numAsString:M}}),c=t.useState(function(){return o(it(l)?e:l,r)}),d=c[0],f=c[1],p=function(z,v){z.formattedValue!==d.formattedValue&&f({formattedValue:z.formattedValue,numAsString:z.value}),s(z,v)},x=l,E=r;it(l)&&(x=d.numAsString,E=!0);var g=o(x,E);return t.useMemo(function(){f(g)},[g.formattedValue]),[d,p]}function si(l){return l.replace(/[^0-9]/g,"")}function oi(l){return l}function ci(l){var e=l.type;e===void 0&&(e="text");var r=l.displayType;r===void 0&&(r="input");var n=l.customInput,i=l.renderText,s=l.getInputRef,o=l.format;o===void 0&&(o=oi);var c=l.removeFormatting;c===void 0&&(c=si);var d=l.defaultValue,f=l.valueIsNumericString,p=l.onValueChange,x=l.isAllowed,E=l.onChange;E===void 0&&(E=Ae);var g=l.onKeyDown;g===void 0&&(g=Ae);var z=l.onMouseUp;z===void 0&&(z=Ae);var v=l.onFocus;v===void 0&&(v=Ae);var w=l.onBlur;w===void 0&&(w=Ae);var M=l.value,y=l.getCaretBoundary;y===void 0&&(y=ii);var L=l.isValidInputCharacter;L===void 0&&(L=Ht);var I=l.isCharacterSame,N=Y3(l,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),b=tl(M,d,!!f,o,c,p),H=b[0],k=H.formattedValue,O=H.numAsString,q=b[1],Q=t.useRef(),fe=t.useRef({formattedValue:k,numAsString:O}),ve=function(j,D){fe.current={formattedValue:j.formattedValue,numAsString:j.value},q(j,D)},P=t.useState(!1),ce=P[0],T=P[1],B=t.useRef(null),Z=t.useRef({setCaretTimeout:null,focusTimeout:null});t.useEffect(function(){return T(!0),function(){clearTimeout(Z.current.setCaretTimeout),clearTimeout(Z.current.focusTimeout)}},[]);var X=o,ee=function(j,D){var A=parseFloat(D);return{formattedValue:j,value:D,floatValue:isNaN(A)?void 0:A}},Y=function(j,D,A){j.selectionStart===0&&j.selectionEnd===j.value.length||(Pe(j,D),Z.current.setCaretTimeout=setTimeout(function(){j.value===A&&j.selectionStart!==D&&Pe(j,D)},0))},re=function(j,D,A){return U2(j,D,y(j),A)},Fe=function(j,D,A){var G=y(D),de=ai(D,k,j,A,G,L,I);return de=U2(D,de,G),de},He=function(j){var D=j.formattedValue;D===void 0&&(D="");var A=j.input,G=j.source,de=j.event,$=j.numAsString,U;if(A){var ke=j.inputValue||A.value,Ne=H1(A);A.value=D,U=Fe(ke,D,Ne),U!==void 0&&Y(A,U,D)}D!==k&&ve(ee(D,$),{event:de,source:G})};t.useEffect(function(){var j=fe.current,D=j.formattedValue,A=j.numAsString;(k!==D||O!==A)&&ve(ee(k,O),{event:void 0,source:Ft.props})},[k,O]);var De=B.current?H1(B.current):void 0,Tt=typeof window<"u"?t.useLayoutEffect:t.useEffect;Tt(function(){var j=B.current;if(k!==fe.current.formattedValue&&j){var D=Fe(fe.current.formattedValue,k,De);j.value=k,Y(j,D,k)}},[k]);var f1=function(j,D,A){var G=D.target,de=Q.current?ei(Q.current,G.selectionEnd):el(k,j),$=Object.assign(Object.assign({},de),{lastValue:k}),U=c(j,$),ke=X(U);if(U=c(ke,void 0),x&&!x(ee(ke,U))){var Ne=D.target,Se=H1(Ne),p1=Fe(j,k,Se);return Ne.value=k,Y(Ne,p1,k),!1}return He({formattedValue:ke,numAsString:U,inputValue:j,event:D,source:A,input:D.target}),!0},v1=function(j,D){D===void 0&&(D=0);var A=j.selectionStart,G=j.selectionEnd;Q.current={selectionStart:A,selectionEnd:G+D}},gl=function(j){var D=j.target,A=D.value,G=f1(A,j,Ft.event);G&&E(j),Q.current=void 0},xl=function(j){var D=j.target,A=j.key,G=D.selectionStart,de=D.selectionEnd,$=D.value;$===void 0&&($="");var U;A==="ArrowLeft"||A==="Backspace"?U=Math.max(G-1,0):A==="ArrowRight"?U=Math.min(G+1,$.length):A==="Delete"&&(U=G);var ke=0;A==="Delete"&&G===de&&(ke=1);var Ne=A==="ArrowLeft"||A==="ArrowRight";if(U===void 0||G!==de&&!Ne){g(j),v1(D,ke);return}var Se=U;if(Ne){var p1=A==="ArrowLeft"?"left":"right";Se=re($,U,p1),Se!==U&&j.preventDefault()}else A==="Delete"&&!L($[U])?Se=re($,U,"right"):A==="Backspace"&&!L($[U])&&(Se=re($,U,"left"));Se!==U&&Y(D,Se,$),g(j),v1(D,ke)},wl=function(j){var D=j.target,A=function(){var G=D.selectionStart,de=D.selectionEnd,$=D.value;if($===void 0&&($=""),G===de){var U=re($,G);U!==G&&Y(D,U,$)}};A(),requestAnimationFrame(function(){A()}),z(j),v1(D)},El=function(j){j.persist&&j.persist();var D=j.target,A=j.currentTarget;B.current=D,Z.current.focusTimeout=setTimeout(function(){var G=D.selectionStart,de=D.selectionEnd,$=D.value;$===void 0&&($="");var U=re($,G);U!==G&&!(G===0&&de===$.length)&&Y(D,U,$),v(Object.assign(Object.assign({},j),{currentTarget:A}))},0)},zl=function(j){B.current=null,clearTimeout(Z.current.focusTimeout),clearTimeout(Z.current.setCaretTimeout),w(j)},Ml=ce&&ri()?"numeric":void 0,o2=Object.assign({inputMode:Ml},N,{type:e,value:k,onChange:gl,onKeyDown:xl,onMouseUp:wl,onFocus:El,onBlur:zl});if(r==="text")return i?t.createElement(t.Fragment,null,i(k,N)||null):t.createElement("span",Object.assign({},N,{ref:s}),k);if(n){var Cl=n;return t.createElement(Cl,Object.assign({},o2,{ref:s}))}return t.createElement("input",Object.assign({},o2,{ref:s}))}function G2(l,e){var r=e.decimalScale,n=e.fixedDecimalScale,i=e.prefix;i===void 0&&(i="");var s=e.suffix;s===void 0&&(s="");var o=e.allowNegative,c=e.thousandsGroupStyle;if(c===void 0&&(c="thousand"),l===""||l==="-")return l;var d=m1(e),f=d.thousandSeparator,p=d.decimalSeparator,x=r!==0&&l.indexOf(".")!==-1||r&&n,E=s2(l,o),g=E.beforeDecimal,z=E.afterDecimal,v=E.addNegation;return r!==void 0&&(z=Q3(z,r,!!n)),f&&(g=Ja(g,f,c)),i&&(g=i+g),s&&(z=z+s),v&&(g="-"+g),l=g+(x&&p||"")+z,l}function m1(l){var e=l.decimalSeparator;e===void 0&&(e=".");var r=l.thousandSeparator,n=l.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:n}}function di(l,e){l===void 0&&(l="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(l),s=n.test(l);return l=l.replace(/-/g,""),i&&!s&&e&&(l="-"+l),l}function hi(l,e){return new RegExp("(^-)|[0-9]|"+J3(l),"g")}function ui(l,e,r){return l===""?!0:!e?.match(/\d/)&&!r?.match(/\d/)&&typeof l=="string"&&!isNaN(Number(l))}function mi(l,e,r){var n;e===void 0&&(e=li(l));var i=r.allowNegative,s=r.prefix;s===void 0&&(s="");var o=r.suffix;o===void 0&&(o="");var c=r.decimalScale,d=e.from,f=e.to,p=f.start,x=f.end,E=m1(r),g=E.allowedDecimalSeparators,z=E.decimalSeparator,v=l[x]===z;if(Ht(l)&&(l===s||l===o)&&e.lastValue==="")return l;if(x-p===1&&g.indexOf(l[p])!==-1){var w=c===0?"":z;l=l.substring(0,p)+w+l.substring(p+1,l.length)}var M=function(B,Z,X){var ee=!1,Y=!1;s.startsWith("-")?ee=!1:B.startsWith("--")?(ee=!1,Y=!0):o.startsWith("-")&&B.length===o.length?ee=!1:B[0]==="-"&&(ee=!0);var re=ee?1:0;return Y&&(re=2),re&&(B=B.substring(re),Z-=re,X-=re),{value:B,start:Z,end:X,hasNegation:ee}},y=M(l,p,x),L=y.hasNegation;n=y,l=n.value,p=n.start,x=n.end;var I=M(e.lastValue,d.start,d.end),N=I.start,b=I.end,H=I.value,k=l.substring(p,x);l.length&&H.length&&(N>H.length-o.length||b<s.length)&&!(k&&o.startsWith(k))&&(l=H);var O=0;l.startsWith(s)?O+=s.length:p<s.length&&(O=p),l=l.substring(O),x-=O;var q=l.length,Q=l.length-o.length;l.endsWith(o)?q=Q:(x>Q||x>l.length-o.length)&&(q=x),l=l.substring(0,q),l=di(L?"-"+l:l,i),l=(l.match(hi(z))||[]).join("");var fe=l.indexOf(z);l=l.replace(new RegExp(J3(z),"g"),function(B,Z){return Z===fe?".":""});var ve=s2(l,i),P=ve.beforeDecimal,ce=ve.afterDecimal,T=ve.addNegation;return f.end-f.start<d.end-d.start&&P===""&&v&&!parseFloat(ce)&&(l=T?"-":""),l}function fi(l,e){var r=e.prefix;r===void 0&&(r="");var n=e.suffix;n===void 0&&(n="");var i=Array.from({length:l.length+1}).map(function(){return!0}),s=l[0]==="-";i.fill(!1,0,r.length+(s?1:0));var o=l.length;return i.fill(!1,o-n.length+1,o+1),i}function vi(l){var e=m1(l),r=e.thousandSeparator,n=e.decimalSeparator,i=l.prefix;i===void 0&&(i="");var s=l.allowNegative;if(s===void 0&&(s=!0),r===n)throw new Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+n+` (default value for decimalSeparator is .)