meyi-insight-ui-dev 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
11
11
|
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!r.stack)r.stack=i;else if(i){const o=i.indexOf(`
|
|
12
12
|
`),l=o===-1?-1:i.indexOf(`
|
|
13
13
|
`,o+1),c=l===-1?"":i.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
14
|
-
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=as(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&$c.assertOptions(r,{silentJSONParsing:qn.transitional(qn.boolean),forcedJSONParsing:qn.transitional(qn.boolean),clarifyTimeoutError:qn.transitional(qn.boolean),legacyInterceptorReqResOrdering:qn.transitional(qn.boolean)},!1),a!=null&&(ce.isFunction(a)?n.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:qn.function,serialize:qn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$c.assertOptions(n,{baseUrl:qn.spelling("baseURL"),withXsrfToken:qn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ce.merge(i.common,i[n.method]);i&&ce.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete i[h]}),n.headers=xn.concat(o,i);const l=[];let c=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;c=c&&g.synchronous;const b=n.transitional||Ph;b&&b.legacyInterceptorReqResOrdering?l.unshift(g.fulfilled,g.rejected):l.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let p,d=0,f;if(!c){const h=[_S.bind(this),void 0];for(h.unshift(...l),h.push(...u),f=h.length,p=Promise.resolve(n);d<f;)p=p.then(h[d++],h[d++]);return p}f=l.length;let m=n;for(;d<f;){const h=l[d++],g=l[d++];try{m=h(m)}catch(b){g.call(this,b);break}}try{p=_S.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,f=u.length;d<f;)p=p.then(u[d++],u[d++]);return p}getUri(t){t=as(this.defaults,t);const n=gC(t.baseURL,t.url,t.allowAbsoluteUrls);return pC(n,t.params,t.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(t){ts.prototype[t]=function(n,r){return this.request(as(r||{},{method:t,url:n,data:(r||{}).data}))}});ce.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(as(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ts.prototype[t]=n(),t!=="query"&&(ts.prototype[t+"Form"]=n(!0))});let iP=class EC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new cl(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new EC(function(a){t=a}),cancel:t}}};function oP(e){return function(n){return e.apply(null,n)}}function lP(e){return ce.isObject(e)&&e.isAxiosError===!0}const vm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vm).forEach(([e,t])=>{vm[t]=e});function vC(e){const t=new ts(e),n=eC(ts.prototype.request,t);return ce.extend(n,ts.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return vC(as(e,a))},n}const Pt=vC(ll);Pt.Axios=ts;Pt.CanceledError=cl;Pt.CancelToken=iP;Pt.isCancel=mC;Pt.VERSION=Bh;Pt.toFormData=Yu;Pt.AxiosError=qe;Pt.Cancel=Pt.CanceledError;Pt.all=function(t){return Promise.all(t)};Pt.spread=oP;Pt.isAxiosError=lP;Pt.mergeConfig=as;Pt.AxiosHeaders=xn;Pt.formToJSON=e=>fC(ce.isHTMLForm(e)?new FormData(e):e);Pt.getAdapter=yC.getAdapter;Pt.HttpStatusCode=vm;Pt.default=Pt;const{Axios:sde,AxiosError:ide,CanceledError:ode,isCancel:lde,CancelToken:cde,VERSION:ude,all:dde,Cancel:pde,isAxiosError:fde,spread:mde,toFormData:hde,AxiosHeaders:gde,HttpStatusCode:bde,formToJSON:xde,getAdapter:yde,mergeConfig:Ede,create:vde}=Pt,cP={},Te=Pt.create({baseURL:"/api/v1/insight"}),uP=cP?.VITE_INSIGHT_DEFAULT_TENANT_ID||"default";Te.interceptors.request.use(e=>(typeof window<"u"&&(e.headers=e.headers||{},e.headers["X-Tenant-Id"]=window.localStorage.getItem("insightTenantId")||uP),e));function SC(e,t){Te.defaults.baseURL=`${e}/insight`,t&&(Te.defaults.headers.common.Authorization=`Bearer ${t}`)}function dP(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const pP=e=>{switch(e){case"success":return hP;case"info":return bP;case"warning":return gP;case"error":return xP;default:return null}},fP=Array(12).fill(0),mP=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},fP.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),hP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),gP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),bP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),xP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),EP=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Sm=1;class vP{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Sm++,o=this.toasts.find(c=>c.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:r}),{...c,...t,id:i,dismissible:l,title:r}):c):this.addToast({title:r,...a,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,o;const l=a.then(async u=>{if(o=["resolve",u],w.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(wP(u)&&!u.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(u instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...h})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){i=!1;const p=typeof n.error=="function"?await n.error(u):n.error,d=typeof n.description=="function"?await n.description(u):n.description,m=typeof p=="object"&&!w.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:d,...m})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,p)=>l.then(()=>o[0]==="reject"?p(o[1]):u(o[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||Sm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const An=new vP,SP=(e,t)=>{const n=t?.id||Sm++;return An.addToast({title:e,...t,id:n}),n},wP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TP=SP,NP=()=>An.toasts,CP=()=>An.getActiveToasts(),ne=Object.assign(TP,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:NP,getToasts:CP});dP("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Xl(e){return e.label!==void 0}const AP=3,_P="24px",RP="16px",kS=4e3,kP=356,IP=14,DP=45,OP=200;function Er(...e){return e.filter(Boolean).join(" ")}function LP(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const jP=e=>{var t,n,r,a,i,o,l,c,u;const{invert:p,toast:d,unstyled:f,interacting:m,setHeights:h,visibleToasts:g,heights:b,index:x,toasts:S,expanded:T,removeToast:N,defaultRichColors:_,closeButton:C,style:k,cancelButtonStyle:O,actionButtonStyle:M,className:A="",descriptionClassName:P="",duration:H,position:G,gap:U,expandByDefault:j,classNames:W,icons:se,closeButtonAriaLabel:B="Close toast"}=e,[z,I]=w.useState(null),[V,Z]=w.useState(null),[D,ie]=w.useState(!1),[Q,re]=w.useState(!1),[K,Y]=w.useState(!1),[J,Ne]=w.useState(!1),[pe,te]=w.useState(!1),[Ae,$e]=w.useState(0),[Ee,Qe]=w.useState(0),Ke=w.useRef(d.duration||H||kS),st=w.useRef(null),lt=w.useRef(null),Et=x===0,$t=x+1<=g,Se=d.type,ke=d.dismissible!==!1,Ue=d.className||"",He=d.descriptionClassName||"",le=w.useMemo(()=>b.findIndex(ye=>ye.toastId===d.id)||0,[b,d.id]),_e=w.useMemo(()=>{var ye;return(ye=d.closeButton)!=null?ye:C},[d.closeButton,C]),Xe=w.useMemo(()=>d.duration||H||kS,[d.duration,H]),tt=w.useRef(0),v=w.useRef(0),ee=w.useRef(0),fe=w.useRef(null),[he,de]=G.split("-"),Ce=w.useMemo(()=>b.reduce((ye,Le,Me)=>Me>=le?ye:ye+Le.height,0),[b,le]),R=EP(),X=d.invert||p,ge=Se==="loading";v.current=w.useMemo(()=>le*U+Ce,[le,Ce]),w.useEffect(()=>{Ke.current=Xe},[Xe]),w.useEffect(()=>{ie(!0)},[]),w.useEffect(()=>{const ye=lt.current;if(ye){const Le=ye.getBoundingClientRect().height;return Qe(Le),h(Me=>[{toastId:d.id,height:Le,position:d.position},...Me]),()=>h(Me=>Me.filter(Ye=>Ye.toastId!==d.id))}},[h,d.id]),w.useLayoutEffect(()=>{if(!D)return;const ye=lt.current,Le=ye.style.height;ye.style.height="auto";const Me=ye.getBoundingClientRect().height;ye.style.height=Le,Qe(Me),h(Ye=>Ye.find(Tt=>Tt.toastId===d.id)?Ye.map(Tt=>Tt.toastId===d.id?{...Tt,height:Me}:Tt):[{toastId:d.id,height:Me,position:d.position},...Ye])},[D,d.title,d.description,h,d.id,d.jsx,d.action,d.cancel]);const oe=w.useCallback(()=>{re(!0),$e(v.current),h(ye=>ye.filter(Le=>Le.toastId!==d.id)),setTimeout(()=>{N(d)},OP)},[d,N,h,v]);w.useEffect(()=>{if(d.promise&&Se==="loading"||d.duration===1/0||d.type==="loading")return;let ye;return T||m||R?(()=>{if(ee.current<tt.current){const Ye=new Date().getTime()-tt.current;Ke.current=Ke.current-Ye}ee.current=new Date().getTime()})():Ke.current!==1/0&&(tt.current=new Date().getTime(),ye=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),oe()},Ke.current)),()=>clearTimeout(ye)},[T,m,d,Se,R,oe]),w.useEffect(()=>{d.delete&&(oe(),d.onDismiss==null||d.onDismiss.call(d,d))},[oe,d.delete]);function xe(){var ye;if(se?.loading){var Le;return w.createElement("div",{className:Er(W?.loader,d==null||(Le=d.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":Se==="loading"},se.loading)}return w.createElement(mP,{className:Er(W?.loader,d==null||(ye=d.classNames)==null?void 0:ye.loader),visible:Se==="loading"})}const we=d.icon||se?.[Se]||pP(Se);var be,Fe;return w.createElement("li",{tabIndex:0,ref:lt,className:Er(A,Ue,W?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,W?.default,W?.[Se],d==null||(n=d.classNames)==null?void 0:n[Se]),"data-sonner-toast":"","data-rich-colors":(be=d.richColors)!=null?be:_,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":D,"data-promise":!!d.promise,"data-swiped":pe,"data-removed":Q,"data-visible":$t,"data-y-position":he,"data-x-position":de,"data-index":x,"data-front":Et,"data-swiping":K,"data-dismissible":ke,"data-type":Se,"data-invert":X,"data-swipe-out":J,"data-swipe-direction":V,"data-expanded":!!(T||j&&D),"data-testid":d.testId,style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Q?Ae:v.current}px`,"--initial-height":j?"auto":`${Ee}px`,...k,...d.style},onDragEnd:()=>{Y(!1),I(null),fe.current=null},onPointerDown:ye=>{ye.button!==2&&(ge||!ke||(st.current=new Date,$e(v.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(Y(!0),fe.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,Le,Me;if(J||!ke)return;fe.current=null;const Ye=Number(((ye=lt.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pt=Number(((Le=lt.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Tt=new Date().getTime()-((Me=st.current)==null?void 0:Me.getTime()),Ft=z==="x"?Ye:pt,Wt=Math.abs(Ft)/Tt;if(Math.abs(Ft)>=DP||Wt>.11){$e(v.current),d.onDismiss==null||d.onDismiss.call(d,d),Z(z==="x"?Ye>0?"right":"left":pt>0?"down":"up"),oe(),Ne(!0);return}else{var gn,Wn;(gn=lt.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(Wn=lt.current)==null||Wn.style.setProperty("--swipe-amount-y","0px")}te(!1),Y(!1),I(null)},onPointerMove:ye=>{var Le,Me,Ye;if(!fe.current||!ke||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;const Tt=ye.clientY-fe.current.y,Ft=ye.clientX-fe.current.x;var Wt;const gn=(Wt=e.swipeDirections)!=null?Wt:LP(G);!z&&(Math.abs(Ft)>1||Math.abs(Tt)>1)&&I(Math.abs(Ft)>Math.abs(Tt)?"x":"y");let Wn={x:0,y:0};const vp=oa=>1/(1.5+Math.abs(oa)/20);if(z==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&Tt<0||gn.includes("bottom")&&Tt>0)Wn.y=Tt;else{const oa=Tt*vp(Tt);Wn.y=Math.abs(oa)<Math.abs(Tt)?oa:Tt}}else if(z==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&Ft<0||gn.includes("right")&&Ft>0)Wn.x=Ft;else{const oa=Ft*vp(Ft);Wn.x=Math.abs(oa)<Math.abs(Ft)?oa:Ft}(Math.abs(Wn.x)>0||Math.abs(Wn.y)>0)&&te(!0),(Me=lt.current)==null||Me.style.setProperty("--swipe-amount-x",`${Wn.x}px`),(Ye=lt.current)==null||Ye.style.setProperty("--swipe-amount-y",`${Wn.y}px`)}},_e&&!d.jsx&&Se!=="loading"?w.createElement("button",{"aria-label":B,"data-disabled":ge,"data-close-button":!0,onClick:ge||!ke?()=>{}:()=>{oe(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Er(W?.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(Fe=se?.close)!=null?Fe:yP):null,(Se||d.icon||d.promise)&&d.icon!==null&&(se?.[Se]!==null||d.icon)?w.createElement("div",{"data-icon":"",className:Er(W?.icon,d==null||(a=d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||xe():null,d.type!=="loading"?we:null):null,w.createElement("div",{"data-content":"",className:Er(W?.content,d==null||(i=d.classNames)==null?void 0:i.content)},w.createElement("div",{"data-title":"",className:Er(W?.title,d==null||(o=d.classNames)==null?void 0:o.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:Er(P,He,W?.description,d==null||(l=d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Xl(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||O,onClick:ye=>{Xl(d.cancel)&&ke&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,ye),oe())},className:Er(W?.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Xl(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||M,onClick:ye=>{Xl(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,ye),!ye.defaultPrevented&&oe())},className:Er(W?.actionButton,d==null||(u=d.classNames)==null?void 0:u.actionButton)},d.action.label):null)};function IS(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function MP(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,o=i?"--mobile-offset":"--offset",l=i?RP:_P;function c(u){["top","right","bottom","left"].forEach(p=>{n[`${o}-${p}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=l:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}const PP=w.forwardRef(function(t,n){const{id:r,invert:a,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:p,mobileOffset:d,theme:f="light",richColors:m,duration:h,style:g,visibleToasts:b=AP,toastOptions:x,dir:S=IS(),gap:T=IP,icons:N,containerAriaLabel:_="Notifications"}=t,[C,k]=w.useState([]),O=w.useMemo(()=>r?C.filter(D=>D.toasterId===r):C.filter(D=>!D.toasterId),[C,r]),M=w.useMemo(()=>Array.from(new Set([i].concat(O.filter(D=>D.position).map(D=>D.position)))),[O,i]),[A,P]=w.useState([]),[H,G]=w.useState(!1),[U,j]=w.useState(!1),[W,se]=w.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=w.useRef(null),z=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=w.useRef(null),V=w.useRef(!1),Z=w.useCallback(D=>{k(ie=>{var Q;return(Q=ie.find(re=>re.id===D.id))!=null&&Q.delete||An.dismiss(D.id),ie.filter(({id:re})=>re!==D.id)})},[]);return w.useEffect(()=>An.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{k(ie=>ie.map(Q=>Q.id===D.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{Bu.flushSync(()=>{k(ie=>{const Q=ie.findIndex(re=>re.id===D.id);return Q!==-1?[...ie.slice(0,Q),{...ie[Q],...D},...ie.slice(Q+1)]:[D,...ie]})})})}),[C]),w.useEffect(()=>{if(f!=="system"){se(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:ie})=>{se(ie?"dark":"light")})}catch{D.addListener(({matches:Q})=>{try{se(Q?"dark":"light")}catch(re){console.error(re)}})}},[f]),w.useEffect(()=>{C.length<=1&&G(!1)},[C]),w.useEffect(()=>{const D=ie=>{var Q;if(o.every(Y=>ie[Y]||ie.code===Y)){var K;G(!0),(K=B.current)==null||K.focus()}ie.code==="Escape"&&(document.activeElement===B.current||(Q=B.current)!=null&&Q.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),w.useEffect(()=>{if(B.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,V.current=!1)}},[B.current]),w.createElement("section",{ref:n,"aria-label":`${_} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((D,ie)=>{var Q;const[re,K]=D.split("-");return O.length?w.createElement("ol",{key:D,dir:S==="auto"?IS():S,tabIndex:-1,ref:B,className:u,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":re,"data-x-position":K,style:{"--front-toast-height":`${((Q=A[0])==null?void 0:Q.height)||0}px`,"--width":`${kP}px`,"--gap":`${T}px`,...g,...MP(p,d)},onBlur:Y=>{V.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(V.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||V.current||(V.current=!0,I.current=Y.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{U||G(!1)},onDragEnd:()=>G(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},O.filter(Y=>!Y.position&&ie===0||Y.position===D).map((Y,J)=>{var Ne,pe;return w.createElement(jP,{key:Y.id,icons:N,index:J,toast:Y,defaultRichColors:m,duration:(Ne=x?.duration)!=null?Ne:h,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:a,visibleToasts:b,closeButton:(pe=x?.closeButton)!=null?pe:c,interacting:U,position:D,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,closeButtonAriaLabel:x?.closeButtonAriaLabel,removeToast:Z,toasts:O.filter(te=>te.position==Y.position),heights:A.filter(te=>te.position==Y.position),setHeights:P,expandByDefault:l,gap:T,expanded:H,swipeDirections:t.swipeDirections})})):null}))});const FP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),DS=e=>{const t=BP(e);return t.charAt(0).toUpperCase()+t.slice(1)},wC=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),UP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var $P={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const HP=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},c)=>w.createElement("svg",{ref:c,...$P,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wC("lucide",a),...!i&&!UP(l)&&{"aria-hidden":"true"},...l},[...o.map(([u,p])=>w.createElement(u,p)),...Array.isArray(i)?i:[i]]));const Be=(e,t)=>{const n=w.forwardRef(({className:r,...a},i)=>w.createElement(HP,{ref:i,iconNode:t,className:wC(`lucide-${FP(DS(e))}`,`lucide-${e}`,r),...a}));return n.displayName=DS(e),n};const zP=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],_a=Be("activity",zP);const GP=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],OS=Be("arrow-down",GP);const VP=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Yr=Be("arrow-left",VP);const WP=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],LS=Be("arrow-up",WP);const qP=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],YP=Be("bell",qP);const KP=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],jS=Be("book-open",KP);const XP=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],ZP=Be("book-plus",XP);const QP=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],TC=Be("boxes",QP);const JP=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],yo=Be("brain-circuit",JP);const e4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],t4=Be("chart-column",e4);const n4=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],$h=Be("chart-no-axes-column",n4);const r4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kt=Be("check",r4);const a4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xu=Be("chevron-down",a4);const s4=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],NC=Be("chevron-left",s4);const i4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],CC=Be("chevron-right",i4);const o4=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],l4=Be("chevron-up",o4);const c4=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],AC=Be("chevrons-left",c4);const u4=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],_C=Be("chevrons-right",u4);const d4=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],RC=Be("chevrons-up-down",d4);const p4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],f4=Be("circle-alert",p4);const m4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],Hh=Be("circle-arrow-up",m4);const h4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ni=Be("circle-check",h4);const g4=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],MS=Be("circle-check-big",g4);const b4=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kC=Be("circle-user-round",b4);const x4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],IC=Be("circle-x",x4);const y4=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],E4=Be("clipboard-list",y4);const v4=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ss=Be("clock",v4);const S4=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],PS=Be("cloud-upload",S4);const w4=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],cu=Be("cloud",w4);const T4=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],N4=Be("code-xml",T4);const C4=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],DC=Be("container",C4);const A4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],yn=Be("copy",A4);const _4=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],OC=Be("cpu",_4);const R4=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],k4=Be("dollar-sign",R4);const I4=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fo=Be("download",I4);const D4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],O4=Be("ellipsis-vertical",D4);const L4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Oa=Be("ellipsis",L4);const j4=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pi=Be("external-link",j4);const M4=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],P4=Be("eye-off",M4);const F4=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],LC=Be("eye",F4);const B4=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],zh=Be("file-code-2",B4);const U4=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],fi=Be("file-text",U4);const $4=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],wm=Be("folder-open",$4);const H4=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],jC=Be("gauge",H4);const z4=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],G4=Be("git-branch",z4);const V4=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],W4=Be("history",V4);const q4=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Y4=Be("inbox",q4);const K4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zu=Be("info",K4);const X4=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Z4=Be("key-round",X4);const Q4=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],J4=Be("layout-dashboard",Q4);const eF=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Gh=Be("layers",eF);const tF=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],MC=Be("layout-grid",tF);const nF=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],rF=Be("list-tree",nF);const aF=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],PC=Be("list",aF);const sF=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ze=Be("loader-circle",sF);const iF=[["path",{d:"M12 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4",key:"11da1y"}],["path",{d:"M16 3h6v6",key:"1bx56c"}],["path",{d:"m16 9 6-6",key:"m4dnic"}]],oF=Be("message-square-share",iF);const lF=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],cF=Be("octagon-alert",lF);const uF=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],dF=Be("package",uF);const pF=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Qu=Be("pencil",pF);const fF=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],mF=Be("percent",fF);const hF=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],Ju=Be("plug",hF);const gF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],cr=Be("plus",gF);const bF=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Qr=Be("refresh-ccw",bF);const xF=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],yF=Be("save",xF);const EF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],La=Be("search",EF);const vF=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],FC=Be("server",vF);const SF=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Vh=Be("settings-2",SF);const wF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],TF=Be("shield-alert",wF);const NF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],FS=Be("shield-check",NF);const CF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ul=Be("shield",CF);const AF=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],dl=Be("sparkles",AF);const _F=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ti=Be("square-pen",_F);const RF=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],BC=Be("table",RF);const kF=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],ed=Be("tag",kF);const IF=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],DF=Be("terminal",IF);const OF=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],pl=Be("trash-2",OF);const LF=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wh=Be("trash",LF);const jF=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bs=Be("triangle-alert",jF);const MF=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],UC=Be("user-plus",MF);const PF=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],qh=Be("user",PF);const FF=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],BF=Be("webhook",FF);const UF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],In=Be("x",UF);const $F=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],$C=Be("zap",$F);async function Yn(e,t){try{return await e()}catch(n){if(n?.response?.status===404)return t();throw n}}async function BS(e,t){try{return await e()}catch{return t()}}const _r=e=>e?new Date(e).getTime():0,qp=e=>e.status==="in_progress"?"P1":e.status==="resolved"?"P3":"P2";function HF(e){if(!e)return!1;const t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function Tm(e){return e.length?Math.round(e.reduce((t,n)=>t+n,0)/e.length):0}function zF(e){const t=Date.now(),n=u=>u?Math.max(0,Math.floor((t-_r(u))/6e4)):0,r=e.filter(u=>u.status!=="resolved"&&u.status!=="closed"),a=e.filter(u=>u.status==="resolved"&&HF(u.resolvedAt)),i=a.filter(u=>u.resolvedAt&&u.createdAt).map(u=>Math.max(0,Math.floor((_r(u.resolvedAt)-_r(u.createdAt))/6e4))),o=r.slice(0,6).map(u=>({id:u.id,aliasId:u.aliasId,name:u.name,resourceName:u.resourceName,status:u.status,priority:qp(u),createdAt:u.createdAt,assigneeIds:u.assigneeIds??[]})),l=[];for(const u of e){const p=u.aliasId?`INC-${String(u.aliasId).padStart(3,"0")}`:String(u.id).slice(0,7);u.createdAt&&l.push({t:u.createdAt,kind:"created",incidentId:u.id,label:p,resourceName:u.resourceName}),u.analysisCompletedAt&&l.push({t:u.analysisCompletedAt,kind:"ai_completed",incidentId:u.id,label:p,resourceName:u.resourceName}),u.status==="in_progress"&&u.analysisTriggeredAt&&l.push({t:u.analysisTriggeredAt,kind:"investigating",incidentId:u.id,label:p,resourceName:u.resourceName}),u.resolvedAt&&l.push({t:u.resolvedAt,kind:"resolved",incidentId:u.id,label:p,resourceName:u.resourceName})}const c=l.filter(u=>u.t).sort((u,p)=>_r(p.t)-_r(u.t)).slice(0,6);return{stats:{p1:r.filter(u=>qp(u)==="P1").length,p2:r.filter(u=>qp(u)==="P2").length,unacked:r.filter(u=>!u.assigneeIds?.length&&n(u.createdAt)>15).length,mttrMinutes:Tm(i),resolvedToday:a.length},openIncidents:o,activity:c}}function GF(e,t){const n=t==="30d"?30:7,r=Date.now()-n*864e5,a=e.filter(S=>S.createdAt&&_r(S.createdAt)>=r),i=(S,T)=>S&&T?Math.max(0,Math.floor((_r(T)-_r(S))/6e4)):null,o=Tm(a.map(S=>i(S.createdAt,S.analysisTriggeredAt)).filter(S=>S!==null)),l=Tm(a.filter(S=>S.status==="resolved").map(S=>i(S.createdAt,S.resolvedAt)).filter(S=>S!==null)),c=new Map;for(const S of a)S.resourceName&&c.set(S.resourceName,(c.get(S.resourceName)??0)+1);const u=[...c.values()].filter(S=>S>1).reduce((S,T)=>S+T,0),p=S=>{if(S.status==="resolved"||S.status==="closed"||!S.createdAt)return!1;const T=(Date.now()-_r(S.createdAt))/6e4,N=S.status!=="open",_=String(S.projectTag||"").toLowerCase();let C=30,k=120;return _==="critical"?(C=10,k=60):_==="high"&&(C=30,k=120),!N&&T>C||T>k},d=a.filter(p).length,f=a.length?Math.round(a.filter(S=>S.analysisStatus==="completed").length/a.length*100):0,m=[];for(let S=n-1;S>=0;S--){const T=new Date;T.setHours(0,0,0,0),T.setDate(T.getDate()-S);const N=T.getTime(),_=N+864e5;m.push({date:T.toISOString(),count:a.filter(C=>{const k=_r(C.createdAt);return k>=N&&k<_}).length})}const h=new Map;for(const S of a){const T=String(S.source||"custom").toLowerCase();h.set(T,(h.get(T)??0)+1)}const g=a.length||1,b=[...h.entries()].map(([S,T])=>({label:S,value:T,pct:Math.round(T/g*100)})).sort((S,T)=>T.value-S.value).slice(0,6),x=[...c.entries()].map(([S,T])=>({name:S,value:T})).sort((S,T)=>T.value-S.value).slice(0,5);return{range:t,totals:{total:a.length,mttaMinutes:o,mttrMinutes:l,repeat:u,sla:d,aiPct:f},timeline:m,bySource:b,topResources:x}}const Re={listIncidents:e=>{const t={...e,sourceTypes:e?.sourceTypes?.join(",")};return Te.get("/incidents",{params:t}).then(n=>n.data)},getIncidentDashboard:e=>BS(()=>Te.get("/incidents/dashboard",{params:{sourceTypes:e?.join(",")}}).then(t=>t.data),async()=>{const t=await Te.get("/incidents",{params:{page:1,limit:200,sourceTypes:e?.join(",")}}).then(n=>n.data);return{ok:!0,...zF(t.incidents??[])}}),getIncidentAnalytics:(e,t)=>BS(()=>Te.get("/incidents/analytics",{params:{range:e,sourceTypes:t?.join(",")}}).then(n=>n.data),async()=>{const n=await Te.get("/incidents",{params:{page:1,limit:500,sourceTypes:t?.join(",")}}).then(r=>r.data);return{ok:!0,...GF(n.incidents??[],e)}}),getIncident:e=>Te.get(`/incidents/${e}`).then(t=>t.data),createIncident:e=>Te.post("/incidents",e).then(t=>t.data),getIncidentStatus:e=>Te.get(`/incidents/${e}/status`).then(t=>t.data),triggerAnalysis:e=>Te.post(`/incidents/${e}/analyse`).then(t=>t.data),assignIncident:(e,t)=>Te.patch(`/incidents/${e}/assign`,{assigneeIds:t}).then(n=>n.data),updateIncident:(e,t)=>Te.patch(`/incidents/${e}`,t).then(n=>n.data),deleteIncident:e=>Te.delete(`/incidents/${e}`).then(t=>t.data),addIncidentComment:(e,t)=>Te.post(`/incidents/${e}/comments`,t).then(n=>n.data),listAlerts:e=>Te.get("/alerts",{params:e}).then(t=>t.data),getAlert:e=>Te.get(`/alerts/${e}`).then(t=>t.data),getAlertSummary:e=>Te.get("/alerts/summary",{params:e}).then(t=>t.data),convertAlert:e=>Te.post(`/alerts/${e}/convert`).then(t=>t.data),dismissAlert:e=>Te.post(`/alerts/${e}/dismiss`).then(t=>t.data),updateAlert:(e,t)=>Te.patch(`/alerts/${e}`,t).then(n=>n.data),async deleteAlert(e){return(await Te.delete(`/alerts/${e}`)).data},listSources:e=>Te.get("/sources",{params:e}).then(t=>t.data),createSource:e=>Te.post("/sources",e).then(t=>t.data),getSource:e=>Te.get(`/sources/${e}`).then(t=>t.data),getSourceOverview:e=>Te.get(`/sources/${e}/overview`).then(t=>t.data),listSourceAlarms:(e,t)=>Te.get(`/sources/${e}/alarms`,{params:t}).then(n=>n.data),listSourceLogs:(e,t)=>Te.get(`/sources/${e}/logs`,{params:t}).then(n=>n.data),testSource:e=>Te.post(`/sources/${e}/test`).then(t=>t.data),updateSource:(e,t)=>Te.patch(`/sources/${e}`,t).then(n=>n.data),rotateToken:e=>Te.post(`/sources/${e}/rotate-token`).then(t=>t.data),getSourceTokenPolicy:e=>Te.get(`/sources/${e}/token-policy`).then(t=>t.data),updateSourceTokenPolicy:(e,t)=>Te.patch(`/sources/${e}/token-policy`,t).then(n=>n.data),discoverCloudWatch:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/discover`,t).then(n=>n.data),getCloudWatchSetup:e=>Te.get(`/sources/${e}/aws/cloudwatch/setup`).then(t=>t.data),getCloudWatchConsoleDeploy:(e,t)=>Te.get(`/sources/${e}/aws/cloudwatch/console-deploy`,{params:t}).then(n=>n.data),startCloudWatchConsoleDeploy:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/console-deploy/start`,t).then(n=>n.data),deployCloudWatch:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/deploy`,t).then(n=>n.data),getGrafanaOnboarding:e=>Te.get(`/sources/${e}/grafana/onboarding`).then(t=>t.data),saveGrafanaSetup:(e,t)=>Te.post(`/sources/${e}/grafana/save`,t).then(n=>n.data),setupGrafana:(e,t)=>Te.post(`/sources/${e}/grafana/setup`,t).then(n=>n.data),getPrometheusOnboarding:e=>Te.get(`/sources/${e}/prometheus/onboarding`).then(t=>t.data),checkPrometheusStatus:(e,t)=>Te.post(`/sources/${e}/prometheus/check-status`,t).then(n=>n.data),getDatadogOnboarding:e=>Te.get(`/sources/${e}/datadog/onboarding`).then(t=>t.data),setupDatadog:(e,t)=>Te.post(`/sources/${e}/datadog/setup`,t).then(n=>n.data),getCloudTrailConsoleDeploy:(e,t)=>Te.get(`/sources/${e}/aws/cloudtrail/console-deploy`,{params:t}).then(n=>n.data),startCloudTrailConsoleDeploy:(e,t)=>Te.post(`/sources/${e}/aws/cloudtrail/console-deploy/start`,t).then(n=>n.data),deleteSource:e=>Te.delete(`/sources/${e}`).then(t=>t.data),listSourceWebhookFailures:(e,t)=>Te.get(`/sources/${e}/webhook-failures`,{params:t}).then(n=>n.data),listProjects:e=>Te.get("/projects",{params:e}).then(t=>t.data),getProject:e=>Te.get(`/projects/${e}`).then(t=>t.data),createProject:e=>Te.post("/projects",e).then(t=>t.data),updateProject:(e,t)=>Te.patch(`/projects/${e}`,t).then(n=>n.data),deleteProject:e=>Te.delete(`/projects/${e}`).then(t=>t.data),getSettings:()=>Te.get("/settings").then(e=>e.data),updateSettings:e=>Te.patch("/settings",e).then(t=>t.data),getNotificationProviders:()=>Te.get("/notification-providers").then(e=>e.data),getAllNotificationProviders:()=>Te.get("/notification-providers/all").then(e=>e.data),createNotificationProvider:e=>Te.post("/notification-providers",e).then(t=>t.data),updateNotificationProvider:(e,t)=>Te.put(`/notification-providers/${e}`,t).then(n=>n.data),deleteNotificationProvider:e=>Te.delete(`/notification-providers/${e}`).then(t=>t.data),getUsers:e=>Te.get("/users",{params:e}).then(t=>t.data),getPipelineStatus:()=>Te.get("/pipeline/status").then(e=>e.data),getPipelineEvents:e=>Te.get(`/pipeline/events/${e}`).then(t=>t.data),getPipelineDefaults:e=>Te.get(`/pipeline/defaults/${e}`).then(t=>t.data),listNormalizationConfigs:e=>Te.get("/pipeline/normalization-configs",{params:{sourceId:e}}).then(t=>t.data),getNormalizationConfig:e=>Te.get(`/pipeline/normalization-configs/${e}`).then(t=>t.data),createNormalizationConfig:e=>Te.post("/pipeline/normalization-configs",e).then(t=>t.data),updateNormalizationConfig:(e,t)=>Te.put(`/pipeline/normalization-configs/${e}`,t).then(n=>n.data),deleteNormalizationConfig:e=>Te.delete(`/pipeline/normalization-configs/${e}`).then(t=>t.data),testNormalizationConfig:(e,t,n)=>Te.post(`/pipeline/normalization-configs/${e}/test`,{sourceType:t,samplePayload:n}).then(r=>r.data),parseNormalizationYaml:e=>Te.post("/pipeline/normalization-configs/parse-yaml",{yaml:e}).then(t=>t.data),listDedupConfigs:e=>Yn(()=>Te.get("/pipeline/dedup-configs",{params:{sourceId:e}}).then(t=>t.data),()=>Te.get("/pipeline/dedup",{params:{sourceId:e}}).then(t=>t.data)),getDedupConfig:e=>Yn(()=>Te.get(`/pipeline/dedup-configs/${e}`).then(t=>t.data),()=>Te.get(`/pipeline/dedup/${e}`).then(t=>t.data)),createDedupConfig:e=>Yn(()=>Te.post("/pipeline/dedup-configs",e).then(t=>t.data),()=>Te.post("/pipeline/dedup",e).then(t=>t.data)),updateDedupConfig:(e,t)=>Yn(()=>Te.put(`/pipeline/dedup-configs/${e}`,t).then(n=>n.data),()=>Te.put(`/pipeline/dedup/${e}`,t).then(n=>n.data)),deleteDedupConfig:e=>Yn(()=>Te.delete(`/pipeline/dedup-configs/${e}`).then(t=>t.data),()=>Te.delete(`/pipeline/dedup/${e}`).then(t=>t.data)),parseDedupYaml:e=>Yn(()=>Te.post("/pipeline/dedup-configs/parse-yaml",{yaml:e}).then(t=>t.data),()=>Te.post("/pipeline/dedup/parse-yaml",{yaml:e}).then(t=>t.data)),listGroupingConfigs:e=>Yn(()=>Te.get("/pipeline/grouping-configs",{params:{sourceId:e}}).then(t=>t.data),()=>Te.get("/pipeline/grouping",{params:{sourceId:e}}).then(t=>t.data)),getGroupingConfig:e=>Yn(()=>Te.get(`/pipeline/grouping-configs/${e}`).then(t=>t.data),()=>Te.get(`/pipeline/grouping/${e}`).then(t=>t.data)),createGroupingConfig:e=>Yn(()=>Te.post("/pipeline/grouping-configs",e).then(t=>t.data),()=>Te.post("/pipeline/grouping",e).then(t=>t.data)),updateGroupingConfig:(e,t)=>Yn(()=>Te.put(`/pipeline/grouping-configs/${e}`,t).then(n=>n.data),()=>Te.put(`/pipeline/grouping/${e}`,t).then(n=>n.data)),deleteGroupingConfig:e=>Yn(()=>Te.delete(`/pipeline/grouping-configs/${e}`).then(t=>t.data),()=>Te.delete(`/pipeline/grouping/${e}`).then(t=>t.data)),parseGroupingYaml:e=>Yn(()=>Te.post("/pipeline/grouping-configs/parse-yaml",{yaml:e}).then(t=>t.data),()=>Te.post("/pipeline/grouping/parse-yaml",{yaml:e}).then(t=>t.data))},VF={list:async()=>(await Te.get("/pipeline/providers")).data.data,getById:async e=>(await Te.get(`/pipeline/providers/${e}`)).data.data,create:async e=>(await Te.post("/pipeline/providers",e)).data.data,update:async(e,t)=>(await Te.put(`/pipeline/providers/${e}`,t)).data.data,delete:async e=>{await Te.delete(`/pipeline/providers/${e}`)}},Rr={list:e=>Te.get("/sops",{params:e}).then(t=>t.data),get:e=>Te.get(`/sops/${e}`).then(t=>t.data),create:e=>Te.post("/sops",e).then(t=>t.data),update:(e,t)=>Te.patch(`/sops/${e}`,t).then(n=>n.data),delete:e=>Te.delete(`/sops/${e}`).then(t=>t.data),lookupByAlertName:async e=>{try{const t=await Te.get("/sops",{params:{alertName:e,limit:1}});return console.log(`[lookupByAlertName] alertName: "${e}", res.data:`,t.data),t.data?.ok&&t.data.sops?.length>0?t.data.sops[0].id:null}catch(t){return console.error(`[lookupByAlertName] failed for "${e}":`,t),null}}},HC=w.createContext({userRole:"user",userId:"",isAdmin:!1,isReadOnly:!0,openCostSources:void 0}),tr=()=>w.useContext(HC);function WF({role:e,userId:t,openCostSources:n,children:r}){const a=e==="admin",i=!a;return s.jsx(HC.Provider,{value:{userRole:e,userId:t,isAdmin:a,isReadOnly:i,openCostSources:n},children:r})}function zC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function GC(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zC(e))&&(r&&(r+=" "),r+=t);return r}const qF=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},YF=(e,t)=>({classGroupId:e,validator:t}),VC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),uu="-",US=[],KF="arbitrary..",XF=e=>{const t=QF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return ZF(o);const l=o.split(uu),c=l[0]===""&&l.length>1?1:0;return WC(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=r[o],u=n[o];return c?u?qF(u,c):c:u||US}return n[o]||US}}},WC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const u=WC(e,t+1,i);if(u)return u}const o=n.validators;if(o===null)return;const l=t===0?e.join(uu):e.slice(t).join(uu),c=o.length;for(let u=0;u<c;u++){const p=o[u];if(p.validator(l))return p.classGroupId}},ZF=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?KF+r:void 0})(),QF=e=>{const{theme:t,classGroups:n}=e;return JF(n,t)},JF=(e,t)=>{const n=VC();for(const r in e){const a=e[r];Yh(a,n,r,t)}return n},Yh=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];e6(o,t,n,r)}},e6=(e,t,n,r)=>{if(typeof e=="string"){t6(e,t,n);return}if(typeof e=="function"){n6(e,t,n,r);return}r6(e,t,n,r)},t6=(e,t,n)=>{const r=e===""?t:qC(t,e);r.classGroupId=n},n6=(e,t,n,r)=>{if(a6(e)){Yh(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(YF(n,e))},r6=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[l,c]=a[o];Yh(c,qC(t,l),n,r)}},qC=(e,t)=>{let n=e;const r=t.split(uu),a=r.length;for(let i=0;i<a;i++){const o=r[i];let l=n.nextPart.get(o);l||(l=VC(),n.nextPart.set(o,l)),n=l}return n},a6=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,s6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Nm="!",$S=":",i6=[],HS=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),o6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,l=0,c=0,u;const p=a.length;for(let g=0;g<p;g++){const b=a[g];if(o===0&&l===0){if(b===$S){i.push(a.slice(c,g)),c=g+1;continue}if(b==="/"){u=g;continue}}b==="["?o++:b==="]"?o--:b==="("?l++:b===")"&&l--}const d=i.length===0?a:a.slice(c);let f=d,m=!1;d.endsWith(Nm)?(f=d.slice(0,-1),m=!0):d.startsWith(Nm)&&(f=d.slice(1),m=!0);const h=u&&u>c?u-c:void 0;return HS(i,m,f,h)};if(t){const a=t+$S,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):HS(i6,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},l6=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],l=o[0]==="[",c=t.has(o);l||c?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},c6=e=>({cache:s6(e.cacheSize),parseClassName:o6(e),sortModifiers:l6(e),postfixLookupClassGroupIds:u6(e),...XF(e)}),u6=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},d6=/\s+/,p6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i,postfixLookupClassGroupIds:o}=t,l=[],c=e.trim().split(d6);let u="";for(let p=c.length-1;p>=0;p-=1){const d=c[p],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let x=!!b,S;if(x){const k=g.substring(0,b);S=r(k);const O=S&&o[S]?r(g):void 0;O&&O!==S&&(S=O,x=!1)}else S=r(g);if(!S){if(!x){u=d+(u.length>0?" "+u:u);continue}if(S=r(g),!S){u=d+(u.length>0?" "+u:u);continue}x=!1}const T=m.length===0?"":m.length===1?m[0]:i(m).join(":"),N=h?T+Nm:T,_=N+S;if(l.indexOf(_)>-1)continue;l.push(_);const C=a(S,x);for(let k=0;k<C.length;++k){const O=C[k];l.push(N+O)}u=d+(u.length>0?" "+u:u)}return u},f6=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=YC(n))&&(a&&(a+=" "),a+=r);return a},YC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=YC(e[r]))&&(n&&(n+=" "),n+=t);return n},m6=(e,...t)=>{let n,r,a,i;const o=c=>{const u=t.reduce((p,d)=>d(p),e());return n=c6(u),r=n.cache.get,a=n.cache.set,i=l,l(c)},l=c=>{const u=r(c);if(u)return u;const p=p6(c,n);return a(c,p),p};return i=o,(...c)=>i(f6(...c))},h6=[],Yt=e=>{const t=n=>n[e]||h6;return t.isThemeGetter=!0,t},KC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,XC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,b6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,la=e=>g6.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),vr=e=>!!e&&Number.isInteger(Number(e)),Yp=e=>e.endsWith("%")&&ct(e.slice(0,-1)),$r=e=>b6.test(e),ZC=()=>!0,S6=e=>x6.test(e)&&!y6.test(e),Kh=()=>!1,w6=e=>E6.test(e),T6=e=>v6.test(e),N6=e=>!ze(e)&&!Ve(e),C6=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),A6=e=>ja(e,eA,Kh),ze=e=>KC.test(e),Ha=e=>ja(e,tA,S6),zS=e=>ja(e,j6,ct),_6=e=>ja(e,rA,ZC),R6=e=>ja(e,nA,Kh),GS=e=>ja(e,QC,Kh),k6=e=>ja(e,JC,T6),Zl=e=>ja(e,aA,w6),Ve=e=>XC.test(e),Qi=e=>xs(e,tA),I6=e=>xs(e,nA),VS=e=>xs(e,QC),D6=e=>xs(e,eA),O6=e=>xs(e,JC),Ql=e=>xs(e,aA,!0),L6=e=>xs(e,rA,!0),ja=(e,t,n)=>{const r=KC.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xs=(e,t,n=!1)=>{const r=XC.exec(e);return r?r[1]?t(r[1]):n:!1},QC=e=>e==="position"||e==="percentage",JC=e=>e==="image"||e==="url",eA=e=>e==="length"||e==="size"||e==="bg-size",tA=e=>e==="length",j6=e=>e==="number",nA=e=>e==="family-name",rA=e=>e==="number"||e==="weight",aA=e=>e==="shadow",M6=()=>{const e=Yt("color"),t=Yt("font"),n=Yt("text"),r=Yt("font-weight"),a=Yt("tracking"),i=Yt("leading"),o=Yt("breakpoint"),l=Yt("container"),c=Yt("spacing"),u=Yt("radius"),p=Yt("shadow"),d=Yt("inset-shadow"),f=Yt("text-shadow"),m=Yt("drop-shadow"),h=Yt("blur"),g=Yt("perspective"),b=Yt("aspect"),x=Yt("ease"),S=Yt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...N(),Ve,ze],C=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],O=()=>[Ve,ze,c],M=()=>[la,"full","auto",...O()],A=()=>[vr,"none","subgrid",Ve,ze],P=()=>["auto",{span:["full",vr,Ve,ze]},vr,Ve,ze],H=()=>[vr,"auto",Ve,ze],G=()=>["auto","min","max","fr",Ve,ze],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...O()],se=()=>[la,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],B=()=>[la,"screen","full","dvw","lvw","svw","min","max","fit",...O()],z=()=>[la,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],I=()=>[e,Ve,ze],V=()=>[...N(),VS,GS,{position:[Ve,ze]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",D6,A6,{size:[Ve,ze]}],ie=()=>[Yp,Qi,Ha],Q=()=>["","none","full",u,Ve,ze],re=()=>["",ct,Qi,Ha],K=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[ct,Yp,VS,GS],Ne=()=>["","none",h,Ve,ze],pe=()=>["none",ct,Ve,ze],te=()=>["none",ct,Ve,ze],Ae=()=>[ct,Ve,ze],$e=()=>[la,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[ZC],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[N6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",ct],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",la,ze,Ve,b]}],container:["container"],"container-type":[{"@container":["","normal","size",Ve,ze]}],"container-named":[C6],columns:[{columns:[ct,ze,Ve,l]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[vr,"auto",Ve,ze]}],basis:[{basis:[la,"full","auto",l,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,la,"auto","initial","none",ze]}],grow:[{grow:["",ct,Ve,ze]}],shrink:[{shrink:["",ct,Ve,ze]}],order:[{order:[vr,"first","last","none",Ve,ze]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[l,"screen",...se()]}],"min-w":[{"min-w":[l,"screen","none",...se()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,Qi,Ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L6,_6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yp,ze]}],"font-family":[{font:[I6,R6,t]}],"font-features":[{"font-features":[ze]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ve,ze]}],"line-clamp":[{"line-clamp":[ct,"none",Ve,zS]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",Ve,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",Ve,Ha]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ct,"auto",Ve,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[vr,Ve,ze]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vr,Ve,ze],radial:["",Ve,ze],conic:[vr,Ve,ze]},O6,k6]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,Ve,ze]}],"outline-w":[{outline:["",ct,Qi,Ha]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",p,Ql,Zl]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,Ql,Zl]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ct,Ha]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,Ql,Zl]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ct,Ve,ze]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Ve,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,ze]}],filter:[{filter:["","none",Ve,ze]}],blur:[{blur:Ne()}],brightness:[{brightness:[ct,Ve,ze]}],contrast:[{contrast:[ct,Ve,ze]}],"drop-shadow":[{"drop-shadow":["","none",m,Ql,Zl]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ct,Ve,ze]}],"hue-rotate":[{"hue-rotate":[ct,Ve,ze]}],invert:[{invert:["",ct,Ve,ze]}],saturate:[{saturate:[ct,Ve,ze]}],sepia:[{sepia:["",ct,Ve,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,ze]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ct,Ve,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ct,Ve,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,Ve,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,Ve,ze]}],"backdrop-invert":[{"backdrop-invert":["",ct,Ve,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ct,Ve,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ct,Ve,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,Ve,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",Ve,ze]}],ease:[{ease:["linear","initial",x,Ve,ze]}],delay:[{delay:[ct,Ve,ze]}],animate:[{animate:["none",S,Ve,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Ve,ze]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[Ve,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],zoom:[{zoom:[vr,Ve,ze]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,ze]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ct,Qi,Ha,zS]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},P6=m6(M6);function Pe(...e){return P6(GC(e))}function sA(e,t){const r=[];if(t<=5)for(let a=1;a<=t;a++)r.push(a);else if(r.push(1),e<=3){for(let a=2;a<=4;a++)r.push(a);r.push("...",t)}else if(e>=t-2){r.push("...");for(let a=t-3;a<=t;a++)r.push(a)}else{r.push("...");for(let a=e-1;a<=e+1;a++)r.push(a);r.push("...",t)}return r}async function Vn(e){if(!e)return!1;if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document>"u")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}function WS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dn(...e){return t=>{let n=!1;const r=e.map(a=>{const i=WS(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():WS(e[a],null)}}}}function xt(...e){return y.useCallback(Dn(...e),e)}var F6=Symbol.for("react.lazy"),du=y[" use ".trim().toString()];function B6(e){return typeof e=="object"&&e!==null&&"then"in e}function iA(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===F6&&"_payload"in e&&B6(e._payload)}function Xh(e){const t=$6(e),n=y.forwardRef((r,a)=>{let{children:i,...o}=r;iA(i)&&typeof du=="function"&&(i=du(i._payload));const l=y.Children.toArray(i),c=l.find(z6);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var U6=Xh("Slot");function $6(e){const t=y.forwardRef((n,r)=>{let{children:a,...i}=n;if(iA(a)&&typeof du=="function"&&(a=du(a._payload)),y.isValidElement(a)){const o=V6(a),l=G6(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H6=Symbol("radix.slottable");function z6(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H6}function G6(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function V6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const qS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,YS=GC,oA=(e,t)=>n=>{var r;if(t?.variants==null)return YS(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const p=n?.[u],d=i?.[u];if(p===null)return null;const f=qS(p)||qS(d);return a[u][f]}),l=n&&Object.entries(n).reduce((u,p)=>{let[d,f]=p;return f===void 0||(u[d]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:d,className:f,...m}=p;return Object.entries(m).every(h=>{let[g,b]=h;return Array.isArray(b)?b.includes({...i,...l}[g]):{...i,...l}[g]===b})?[...u,d,f]:u},[]);return YS(e,o,c,n?.class,n?.className)},Zh=oA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ae=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const o=r?U6:"button";return s.jsx(o,{className:Pe(Zh({variant:t,size:n,className:e})),ref:i,...a})});ae.displayName="Button";function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function Jr(e,t=[]){let n=[];function r(i,o){const l=y.createContext(o),c=n.length;n=[...n,o];const u=d=>{const{scope:f,children:m,...h}=d,g=f?.[e]?.[c]||l,b=y.useMemo(()=>h,Object.values(h));return s.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function p(d,f){const m=f?.[e]?.[c]||l,h=y.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,p]}const a=()=>{const i=n.map(o=>y.createContext(o));return function(l){const c=l?.[e]||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,W6(a,...t)]}function W6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function KS(e){const t=q6(e),n=y.forwardRef((r,a)=>{const{children:i,...o}=r,l=y.Children.toArray(i),c=l.find(K6);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function q6(e){const t=y.forwardRef((n,r)=>{const{children:a,...i}=n;if(y.isValidElement(a)){const o=Z6(a),l=X6(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y6=Symbol("radix.slottable");function K6(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y6}function X6(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function Z6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Qh(e){const t=e+"CollectionProvider",[n,r]=Jr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:x}=g,S=w.useRef(null),T=w.useRef(new Map).current;return s.jsx(a,{scope:b,itemMap:T,collectionRef:S,children:x})};o.displayName=t;const l=e+"CollectionSlot",c=KS(l),u=w.forwardRef((g,b)=>{const{scope:x,children:S}=g,T=i(l,x),N=xt(b,T.collectionRef);return s.jsx(c,{ref:N,children:S})});u.displayName=l;const p=e+"CollectionItemSlot",d="data-radix-collection-item",f=KS(p),m=w.forwardRef((g,b)=>{const{scope:x,children:S,...T}=g,N=w.useRef(null),_=xt(b,N),C=i(p,x);return w.useEffect(()=>(C.itemMap.set(N,{ref:N,...T}),()=>{C.itemMap.delete(N)})),s.jsx(f,{[d]:"",ref:_,children:S})});m.displayName=p;function h(g){const b=i(e+"CollectionConsumer",g);return w.useCallback(()=>{const S=b.collectionRef.current;if(!S)return[];const T=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((C,k)=>T.indexOf(C.ref.current)-T.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},h,r]}var an=globalThis?.document?y.useLayoutEffect:()=>{},Q6=y[" useId ".trim().toString()]||(()=>{}),J6=0;function kn(e){const[t,n]=y.useState(Q6());return an(()=>{n(r=>r??String(J6++))},[e]),t?`radix-${t}`:""}function e5(e){const t=t5(e),n=y.forwardRef((r,a)=>{const{children:i,...o}=r,l=y.Children.toArray(i),c=l.find(r5);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function t5(e){const t=y.forwardRef((n,r)=>{const{children:a,...i}=n;if(y.isValidElement(a)){const o=s5(a),l=a5(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var n5=Symbol("radix.slottable");function r5(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===n5}function a5(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function s5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var i5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],it=i5.reduce((e,t)=>{const n=e5(`Primitive.${t}`),r=y.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lA(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}function nn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>t.current?.(...n),[])}var o5=y[" useInsertionEffect ".trim().toString()]||an;function mi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=l5({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const d=p.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const u=y.useCallback(p=>{if(l){const d=c5(p)?p(e):p;d!==e&&o.current?.(d)}else i(p)},[l,e,i,o]);return[c,u]}function l5({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),a=y.useRef(n),i=y.useRef(t);return o5(()=>{i.current=t},[t]),y.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function c5(e){return typeof e=="function"}var u5=y.createContext(void 0);function fl(e){const t=y.useContext(u5);return e||t||"ltr"}var Kp="rovingFocusGroup.onEntryFocus",d5={bubbles:!1,cancelable:!0},ml="RovingFocusGroup",[Cm,cA,p5]=Qh(ml),[f5,td]=Jr(ml,[p5]),[m5,h5]=f5(ml),uA=y.forwardRef((e,t)=>s.jsx(Cm.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Cm.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(g5,{...e,ref:t})})}));uA.displayName=ml;var g5=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...d}=e,f=y.useRef(null),m=xt(t,f),h=fl(i),[g,b]=mi({prop:o,defaultProp:l??null,onChange:c,caller:ml}),[x,S]=y.useState(!1),T=nn(u),N=cA(n),_=y.useRef(!1),[C,k]=y.useState(0);return y.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(Kp,T),()=>O.removeEventListener(Kp,T)},[T]),s.jsx(m5,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:y.useCallback(O=>b(O),[b]),onItemShiftTab:y.useCallback(()=>S(!0),[]),onFocusableItemAdd:y.useCallback(()=>k(O=>O+1),[]),onFocusableItemRemove:y.useCallback(()=>k(O=>O-1),[]),children:s.jsx(it.div,{tabIndex:x||C===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{_.current=!0}),onFocus:We(e.onFocus,O=>{const M=!_.current;if(O.target===O.currentTarget&&M&&!x){const A=new CustomEvent(Kp,d5);if(O.currentTarget.dispatchEvent(A),!A.defaultPrevented){const P=N().filter(W=>W.focusable),H=P.find(W=>W.active),G=P.find(W=>W.id===g),j=[H,G,...P].filter(Boolean).map(W=>W.ref.current);fA(j,p)}}_.current=!1}),onBlur:We(e.onBlur,()=>S(!1))})})}),dA="RovingFocusGroupItem",pA=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:o,...l}=e,c=kn(),u=i||c,p=h5(dA,n),d=p.currentTabStopId===u,f=cA(n),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=p;return y.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),s.jsx(Cm.ItemSlot,{scope:n,id:u,focusable:r,active:a,children:s.jsx(it.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:We(e.onMouseDown,b=>{r?p.onItemFocus(u):b.preventDefault()}),onFocus:We(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:We(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=y5(b,p.orientation,p.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let T=f().filter(N=>N.focusable).map(N=>N.ref.current);if(x==="last")T.reverse();else if(x==="prev"||x==="next"){x==="prev"&&T.reverse();const N=T.indexOf(b.currentTarget);T=p.loop?E5(T,N+1):T.slice(N+1)}setTimeout(()=>fA(T))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:g!=null}):o})})});pA.displayName=dA;var b5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function x5(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function y5(e,t,n){const r=x5(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return b5[r]}function fA(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function E5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mA=uA,hA=pA;function v5(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var nr=e=>{const{present:t,children:n}=e,r=S5(t),a=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=xt(r.ref,w5(a));return typeof n=="function"||r.isPresent?y.cloneElement(a,{ref:i}):null};nr.displayName="Presence";function S5(e){const[t,n]=y.useState(),r=y.useRef(null),a=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=v5(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Jl(r.current);i.current=l==="mounted"?u:"none"},[l]),an(()=>{const u=r.current,p=a.current;if(p!==e){const f=i.current,m=Jl(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),an(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,d=m=>{const g=Jl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=Jl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Jl(e){return e?.animationName||"none"}function w5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nd="Tabs",[T5]=Jr(nd,[td]),gA=td(),[N5,Jh]=T5(nd),bA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,p=fl(l),[d,f]=mi({prop:r,onChange:a,defaultProp:i??"",caller:nd});return s.jsx(N5,{scope:n,baseId:kn(),value:d,onValueChange:f,orientation:o,dir:p,activationMode:c,children:s.jsx(it.div,{dir:p,"data-orientation":o,...u,ref:t})})});bA.displayName=nd;var xA="TabsList",yA=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=Jh(xA,n),o=gA(n);return s.jsx(mA,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:s.jsx(it.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});yA.displayName=xA;var EA="TabsTrigger",vA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,o=Jh(EA,n),l=gA(n),c=TA(o.baseId,r),u=NA(o.baseId,r),p=r===o.value;return s.jsx(hA,{asChild:!0,...l,focusable:!a,active:p,children:s.jsx(it.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":u,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:We(e.onMouseDown,d=>{!a&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:We(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:We(e.onFocus,()=>{const d=o.activationMode!=="manual";!p&&!a&&d&&o.onValueChange(r)})})})});vA.displayName=EA;var SA="TabsContent",wA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...o}=e,l=Jh(SA,n),c=TA(l.baseId,r),u=NA(l.baseId,r),p=r===l.value,d=y.useRef(p);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),s.jsx(nr,{present:a||p,children:({present:f})=>s.jsx(it.div,{"data-state":p?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});wA.displayName=SA;function TA(e,t){return`${e}-trigger-${t}`}function NA(e,t){return`${e}-content-${t}`}var C5=bA,CA=yA,AA=vA,_A=wA;const eg=C5,rd=y.forwardRef(({className:e,...t},n)=>s.jsx(CA,{ref:n,className:Pe("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));rd.displayName=CA.displayName;const is=y.forwardRef(({className:e,...t},n)=>s.jsx(AA,{ref:n,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));is.displayName=AA.displayName;const os=y.forwardRef(({className:e,...t},n)=>s.jsx(_A,{ref:n,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));os.displayName=_A.displayName;const Nn=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("rounded-lg border bg-card text-card-foreground shadow",e),...t}));Nn.displayName="Card";const RA=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));RA.displayName="CardHeader";const A5=y.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:Pe("font-semibold leading-none tracking-tight",e),...t}));A5.displayName="CardTitle";const _5=y.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));_5.displayName="CardDescription";const Cn=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));Cn.displayName="CardContent";const R5=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));R5.displayName="CardFooter";function k5({text:e}){const[t,n]=w.useState(!1);return s.jsx(ae,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-7 w-7 text-neutral-400 hover:text-neutral-100 hover:bg-neutral-800",onClick:()=>{Vn(e),n(!0),setTimeout(()=>n(!1),2e3)},children:t?s.jsx(Kt,{className:"h-3.5 w-3.5 text-emerald-400"}):s.jsx(yn,{className:"h-3.5 w-3.5"})})}function I5({result:e,remediationSteps:t,confidenceScore:n,aiModelUsed:r,isCompleted:a=!0}){const i=t&&typeof t=="object"&&!Array.isArray(t)?t:null,o=Array.isArray(t)?t:e.recommended_actions&&Array.isArray(e.recommended_actions)?e.recommended_actions:null,[l,c]=w.useState("overview"),u=!!(i?.immediate_actions?.length||i?.verification_steps?.length||i?.rollback_steps?.length||i?.communication_template||o?.length),p=n==null?"text-muted-foreground":n>=80?"text-emerald-600 dark:text-emerald-400":n>=50?"text-amber-600 dark:text-amber-400":"text-red-600 dark:text-red-400",d=[{label:"Confidence Score",value:n!=null?s.jsxs("span",{className:Pe("font-bold text-sm tabular-nums",p),children:[n,"%"]}):s.jsx("span",{className:"text-muted-foreground text-sm",children:"—"})},{label:"Status",value:a?s.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 text-xs font-semibold flex items-center justify-center gap-1",children:[s.jsx(FS,{className:"h-3.5 w-3.5"}),"Ready"]}):s.jsxs("span",{className:"text-amber-600 dark:text-amber-400 text-xs font-semibold flex items-center justify-center gap-1",children:[s.jsx(Ze,{className:"h-3.5 w-3.5 animate-spin"}),"Generating..."]})}];return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:Pe("grid gap-3",d.length===3?"grid-cols-3":"grid-cols-2"),children:d.map(({label:f,value:m})=>s.jsx(Nn,{className:"bg-muted/30 border-none shadow-none",children:s.jsxs(Cn,{className:"p-3 text-center flex flex-col items-center justify-center gap-1",children:[s.jsx("div",{className:"text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex items-center justify-center min-h-[20px] w-full",children:m})]})},f))}),s.jsxs(eg,{value:l,onValueChange:c,children:[s.jsxs(rd,{className:"w-full justify-start border-b rounded-none h-auto p-0 bg-transparent overflow-x-auto flex-nowrap",children:[s.jsx(is,{value:"overview",className:"rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent px-4 py-2",children:"Overview & RCA"}),s.jsx(is,{value:"remediation",disabled:!u&&a,className:"rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent px-4 py-2",children:"Remediation Plan"})]}),s.jsxs("div",{className:"pt-4",children:[s.jsxs(os,{value:"overview",className:"m-0 space-y-4",children:[e.threat_classification&&s.jsx(Nn,{className:Pe("border-l-4",e.threat_classification.toLowerCase().includes("malicious")?"border-l-red-500 bg-red-500/5":e.threat_classification.toLowerCase().includes("suspicious")?"border-l-amber-500 bg-amber-500/5":"border-l-emerald-500 bg-emerald-500/5"),children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm",children:[e.threat_classification.toLowerCase().includes("malicious")?s.jsx(TF,{className:"h-4 w-4 text-red-500"}):e.threat_classification.toLowerCase().includes("suspicious")?s.jsx(ul,{className:"h-4 w-4 text-amber-500"}):s.jsx(FS,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Threat Classification"})]}),s.jsx("p",{className:"text-sm font-medium capitalize",children:e.threat_classification})]})}),e.affected_identity&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(qh,{className:"h-4 w-4 text-blue-500"}),s.jsx("span",{children:"Affected Identity"})]}),s.jsx("p",{className:"text-sm text-foreground/90 font-mono bg-muted/50 w-fit px-2 py-1 rounded",children:e.affected_identity})]})}),e.actions_taken&&e.actions_taken.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(rF,{className:"h-4 w-4 text-indigo-500"}),s.jsx("span",{children:"Actions Taken By Identity"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.actions_taken.map((f,m)=>s.jsx("li",{className:"leading-relaxed font-mono text-xs",children:f},m))})]}),e.summary&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(dl,{className:"h-4 w-4 text-amber-500 animate-pulse"}),s.jsx("span",{children:"Executive Summary"})]}),s.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed whitespace-pre-wrap",children:e.summary})]})}),(e.root_cause_analysis||e.probable_root_cause)&&s.jsx(Nn,{className:"border-red-500/20 bg-red-500/5",children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-red-600 dark:text-red-400 text-sm",children:[s.jsx(cF,{className:"h-4 w-4"}),s.jsx("span",{children:"Root Cause Analysis"})]}),s.jsx("p",{className:"text-sm text-foreground/95 leading-relaxed whitespace-pre-wrap font-sans",children:e.probable_root_cause||e.root_cause_analysis})]})}),e.evidence&&e.evidence.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(ni,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Evidence Discovered"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.evidence.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]}),e.dependency_impact&&e.dependency_impact.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(_a,{className:"h-4 w-4 text-rose-500"}),s.jsx("span",{children:"Dependency Impact"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.dependency_impact.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]}),e.blast_radius!==void 0&&(!Array.isArray(e.blast_radius)||e.blast_radius.length>0)&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(_a,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-400"}),s.jsx("span",{children:"Blast Radius & Impact Scope"})]}),Array.isArray(e.blast_radius)?s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.blast_radius.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))}):s.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed whitespace-pre-wrap",children:e.blast_radius})]})}),e.contributing_factors&&e.contributing_factors.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(E4,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Contributing Factors"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.contributing_factors.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]})]}),s.jsxs(os,{value:"remediation",className:"m-0 space-y-6",children:[o&&o.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(ni,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Recommended Actions"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:o.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[i.immediate_actions&&i.immediate_actions.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(ni,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Immediate Actions"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.immediate_actions.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i.verification_steps&&i.verification_steps.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(DF,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Verification Steps"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.verification_steps.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})})]}),i.rollback_steps&&i.rollback_steps.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-foreground font-semibold text-sm",children:[s.jsx(W4,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Rollback Steps"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.rollback_steps.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i.communication_template&&s.jsx(Nn,{className:"relative",children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(oF,{className:"h-4 w-4 text-primary"}),s.jsx("span",{children:"Status Update / Communication Template"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("pre",{className:"text-xs whitespace-pre-wrap leading-relaxed font-sans text-foreground/90 bg-muted/40 p-4 pr-12 rounded-md border",children:i.communication_template}),s.jsx(k5,{text:i.communication_template})]})]})})]})]}),!a&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-8 mt-4 border-t border-dashed text-muted-foreground space-y-3",children:[s.jsx(Ze,{className:"h-6 w-6 animate-spin text-primary"}),s.jsx("span",{className:"text-sm font-medium animate-pulse",children:"AI is completing the report..."})]})]})]})]})}let Ea=null;async function XS(e=!1){if(Ea&&!e)return Ea;try{const t=await Pt.get("/api/v1/users?limit=100"),n=t.data?.data||t.data?.users||t.data||[],r=Array.isArray(n)?n:[];return Ea=r,r}catch(t){return console.error("Failed to fetch insight users",t),Ea||[]}}function tg(e){const[t,n]=w.useState(Ea||[]),[r,a]=w.useState(!Ea),i=w.useCallback(async()=>{a(!0);const o=await XS(!0);return n(o),a(!1),o},[]);return w.useEffect(()=>{let o=!0;return Ea?(n(Ea),a(!1)):(a(!0),XS(!!e?.refreshOnMount).then(l=>{o&&(n(l),a(!1))})),()=>{o=!1}},[e?.refreshOnMount]),{users:t,loading:r,refetch:i}}function Na(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function ZS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D5(...e){return t=>{let n=!1;const r=e.map(a=>{const i=ZS(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():ZS(e[a],null)}}}}function ys(...e){return y.useCallback(D5(...e),e)}function O5(e,t){const n=y.createContext(t);n.displayName=e+"Context";const r=i=>{const{children:o,...l}=i,c=y.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function a(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function L5(e,t=[]){let n=[];function r(i,o){const l=y.createContext(o);l.displayName=i+"Context";const c=n.length;n=[...n,o];const u=d=>{const{scope:f,children:m,...h}=d,g=f?.[e]?.[c]||l,b=y.useMemo(()=>h,Object.values(h));return s.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function p(d,f){const m=f?.[e]?.[c]||l,h=y.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,p]}const a=()=>{const i=n.map(o=>y.createContext(o));return function(l){const c=l?.[e]||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,j5(a,...t)]}function j5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Bo=globalThis?.document?y.useLayoutEffect:()=>{},M5=y[" useId ".trim().toString()]||(()=>{}),P5=0;function Xp(e){const[t,n]=y.useState(M5());return Bo(()=>{n(r=>r??String(P5++))},[e]),e||(t?`radix-${t}`:"")}var F5=y[" useInsertionEffect ".trim().toString()]||Bo;function B5({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=U5({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const d=p.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const u=y.useCallback(p=>{if(l){const d=$5(p)?p(e):p;d!==e&&o.current?.(d)}else i(p)},[l,e,i,o]);return[c,u]}function U5({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),a=y.useRef(n),i=y.useRef(t);return F5(()=>{i.current=t},[t]),y.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function $5(e){return typeof e=="function"}function kA(e){const t=y.forwardRef((n,r)=>{let{children:a,...i}=n,o=null,l=!1;const c=[];QS(a)&&typeof ec=="function"&&(a=ec(a._payload)),y.Children.forEach(a,f=>{if(W5(f)){l=!0;const m=f;let h="child"in m.props?m.props.child:m.props.children;QS(h)&&typeof ec=="function"&&(h=ec(h._payload)),o=z5(m,h),c.push(o?.props?.children)}else c.push(f)}),o?o=y.cloneElement(o,void 0,c):!l&&y.Children.count(a)===1&&y.isValidElement(a)&&(o=a);const u=o?V5(o):void 0,p=ys(r,u);if(!o){if(a||a===0)throw new Error(l?X5(e):K5(e));return a}const d=G5(i,o.props??{});return o.type!==y.Fragment&&(d.ref=r?p:u),y.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}var H5=Symbol.for("radix.slottable"),z5=(e,t)=>{if("child"in e.props){const n=e.props.child;return y.isValidElement(n)?y.cloneElement(n,void 0,e.props.children(n.props.children)):null}return y.isValidElement(t)?t:null};function G5(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function V5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function W5(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H5}var q5=Symbol.for("react.lazy");function QS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===q5&&"_payload"in e&&Y5(e._payload)}function Y5(e){return typeof e=="object"&&e!==null&&"then"in e}var K5=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,X5=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ec=y[" use ".trim().toString()],Z5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ea=Z5.reduce((e,t)=>{const n=kA(`Primitive.${t}`),r=y.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Q5(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}function Uo(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>((...n)=>t.current?.(...n)),[])}function J5(e,t=globalThis?.document){const n=Uo(e);y.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var eB="DismissableLayer",Am="dismissableLayer.update",tB="dismissableLayer.pointerDownOutside",nB="dismissableLayer.focusOutside",JS,IA=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DA=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=y.useContext(IA),[p,d]=y.useState(null),f=p?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=ys(t,k=>d(k)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),S=p?g.indexOf(p):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,N=S>=x,_=sB(k=>{const O=k.target,M=[...u.branches].some(A=>A.contains(O));!N||M||(a?.(k),o?.(k),k.defaultPrevented||l?.())},f),C=iB(k=>{const O=k.target;[...u.branches].some(A=>A.contains(O))||(i?.(k),o?.(k),k.defaultPrevented||l?.())},f);return J5(k=>{S===u.layers.size-1&&(r?.(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},f),y.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(JS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),e1(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(p),u.layersWithOutsidePointerEventsDisabled.size===0&&(f.body.style.pointerEvents=JS))}},[p,f,n,u]),y.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),e1())},[p,u]),y.useEffect(()=>{const k=()=>m({});return document.addEventListener(Am,k),()=>document.removeEventListener(Am,k)},[]),s.jsx(ea.div,{...c,ref:h,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:Na(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Na(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Na(e.onPointerDownCapture,_.onPointerDownCapture)})});DA.displayName=eB;var rB="DismissableLayerBranch",aB=y.forwardRef((e,t)=>{const n=y.useContext(IA),r=y.useRef(null),a=ys(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(ea.div,{...e,ref:a})});aB.displayName=rB;function sB(e,t=globalThis?.document){const n=Uo(e),r=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){OA(tB,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function iB(e,t=globalThis?.document){const n=Uo(e),r=y.useRef(!1);return y.useEffect(()=>{const a=i=>{i.target&&!r.current&&OA(nB,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function e1(){const e=new CustomEvent(Am);document.dispatchEvent(e)}function OA(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Q5(a,i):a.dispatchEvent(i)}var Zp="focusScope.autoFocusOnMount",Qp="focusScope.autoFocusOnUnmount",t1={bubbles:!1,cancelable:!0},oB="FocusScope",LA=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,c]=y.useState(null),u=Uo(a),p=Uo(i),d=y.useRef(null),f=ys(t,g=>c(g)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let g=function(T){if(m.paused||!l)return;const N=T.target;l.contains(N)?d.current=N:pa(d.current,{select:!0})},b=function(T){if(m.paused||!l)return;const N=T.relatedTarget;N!==null&&(l.contains(N)||pa(d.current,{select:!0}))},x=function(T){if(document.activeElement===document.body)for(const _ of T)_.removedNodes.length>0&&pa(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const S=new MutationObserver(x);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),S.disconnect()}}},[r,l,m.paused]),y.useEffect(()=>{if(l){r1.add(m);const g=document.activeElement;if(!l.contains(g)){const x=new CustomEvent(Zp,t1);l.addEventListener(Zp,u),l.dispatchEvent(x),x.defaultPrevented||(lB(fB(jA(l)),{select:!0}),document.activeElement===g&&pa(l))}return()=>{l.removeEventListener(Zp,u),setTimeout(()=>{const x=new CustomEvent(Qp,t1);l.addEventListener(Qp,p),l.dispatchEvent(x),x.defaultPrevented||pa(g??document.body,{select:!0}),l.removeEventListener(Qp,p),r1.remove(m)},0)}}},[l,u,p,m]);const h=y.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(b&&x){const S=g.currentTarget,[T,N]=cB(S);T&&N?!g.shiftKey&&x===N?(g.preventDefault(),n&&pa(T,{select:!0})):g.shiftKey&&x===T&&(g.preventDefault(),n&&pa(N,{select:!0})):x===S&&g.preventDefault()}},[n,r,m.paused]);return s.jsx(ea.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});LA.displayName=oB;function lB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pa(r,{select:t}),document.activeElement!==n)return}function cB(e){const t=jA(e),n=n1(t,e),r=n1(t.reverse(),e);return[n,r]}function jA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function n1(e,t){for(const n of e)if(!uB(n,{upTo:t}))return n}function uB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dB(e){return e instanceof HTMLInputElement&&"select"in e}function pa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dB(e)&&t&&e.select()}}var r1=pB();function pB(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=a1(e,t),e.unshift(t)},remove(t){e=a1(e,t),e[0]?.resume()}}}function a1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fB(e){return e.filter(t=>t.tagName!=="A")}var mB="Portal",MA=y.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=y.useState(!1);Bo(()=>i(!0),[]);const o=n||a&&globalThis?.document?.body;return o?vi.createPortal(s.jsx(ea.div,{...r,ref:t}),o):null});MA.displayName=mB;function hB(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var ad=e=>{const{present:t,children:n}=e,r=gB(t),a=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=bB(r.ref,xB(a));return typeof n=="function"||r.isPresent?y.cloneElement(a,{ref:i}):null};ad.displayName="Presence";function gB(e){const[t,n]=y.useState(),r=y.useRef(null),a=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=hB(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=tc(r.current);i.current=l==="mounted"?u:"none"},[l]),Bo(()=>{const u=r.current,p=a.current;if(p!==e){const f=i.current,m=tc(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Bo(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,d=m=>{const g=tc(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=tc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function s1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bB(...e){const t=y.useRef(e);return t.current=e,y.useCallback(n=>{const r=t.current;let a=!1;const i=r.map(o=>{const l=s1(o,n);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():s1(r[o],null)}}},[])}function tc(e){return e?.animationName||"none"}function xB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nc=0,Fs=null;function yB(){y.useEffect(()=>{Fs||(Fs={start:i1(),end:i1()});const{start:e,end:t}=Fs;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),nc++,()=>{nc===1&&(Fs?.start.remove(),Fs?.end.remove(),Fs=null),nc=Math.max(0,nc-1)}},[])}function i1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var kr=function(){return kr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kr.apply(this,arguments)};function PA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function EB(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Hc="right-scroll-bar-position",zc="width-before-scroll-bar",vB="with-scroll-bars-hidden",SB="--removed-body-scroll-bar-size";function Jp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wB(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var TB=typeof window<"u"?y.useLayoutEffect:y.useEffect,o1=new WeakMap;function NB(e,t){var n=wB(null,function(r){return e.forEach(function(a){return Jp(a,r)})});return TB(function(){var r=o1.get(n);if(r){var a=new Set(r),i=new Set(e),o=n.current;a.forEach(function(l){i.has(l)||Jp(l,null)}),i.forEach(function(l){a.has(l)||Jp(l,o)})}o1.set(n,e)},[e]),n}function CB(e){return e}function AB(e,t){t===void 0&&(t=CB);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var p=o;o=[],p.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){o.push(p),u()},filter:function(p){return o=o.filter(p),n}}}};return a}function _B(e){e===void 0&&(e={});var t=AB(null);return t.options=kr({async:!0,ssr:!1},e),t}var FA=function(e){var t=e.sideCar,n=PA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,kr({},n))};FA.isSideCarExport=!0;function RB(e,t){return e.useMedium(t),FA}var BA=_B(),ef=function(){},sd=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),a=r[0],i=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,x=e.as,S=x===void 0?"div":x,T=e.gapMode,N=PA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,C=NB([n,t]),k=kr(kr({},N),a);return y.createElement(y.Fragment,null,p&&y.createElement(_,{sideCar:BA,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:T}),o?y.cloneElement(y.Children.only(l),kr(kr({},k),{ref:C})):y.createElement(S,kr({},k,{className:c,ref:C}),l))});sd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sd.classNames={fullWidth:zc,zeroRight:Hc};var kB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kB();return t&&e.setAttribute("nonce",t),e}function DB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IB())&&(DB(t,n),OB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jB=function(){var e=LB();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},UA=function(){var e=jB(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},MB={left:0,top:0,right:0,gap:0},tf=function(e){return parseInt(e||"",10)||0},PB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[tf(n),tf(r),tf(a)]},FB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MB;var t=PB(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},BB=UA(),ri="data-scroll-locked",UB=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
14
|
+
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=as(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&$c.assertOptions(r,{silentJSONParsing:qn.transitional(qn.boolean),forcedJSONParsing:qn.transitional(qn.boolean),clarifyTimeoutError:qn.transitional(qn.boolean),legacyInterceptorReqResOrdering:qn.transitional(qn.boolean)},!1),a!=null&&(ce.isFunction(a)?n.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:qn.function,serialize:qn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$c.assertOptions(n,{baseUrl:qn.spelling("baseURL"),withXsrfToken:qn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ce.merge(i.common,i[n.method]);i&&ce.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete i[h]}),n.headers=xn.concat(o,i);const l=[];let c=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;c=c&&g.synchronous;const b=n.transitional||Ph;b&&b.legacyInterceptorReqResOrdering?l.unshift(g.fulfilled,g.rejected):l.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let p,d=0,f;if(!c){const h=[_S.bind(this),void 0];for(h.unshift(...l),h.push(...u),f=h.length,p=Promise.resolve(n);d<f;)p=p.then(h[d++],h[d++]);return p}f=l.length;let m=n;for(;d<f;){const h=l[d++],g=l[d++];try{m=h(m)}catch(b){g.call(this,b);break}}try{p=_S.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,f=u.length;d<f;)p=p.then(u[d++],u[d++]);return p}getUri(t){t=as(this.defaults,t);const n=gC(t.baseURL,t.url,t.allowAbsoluteUrls);return pC(n,t.params,t.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(t){ts.prototype[t]=function(n,r){return this.request(as(r||{},{method:t,url:n,data:(r||{}).data}))}});ce.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(as(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ts.prototype[t]=n(),t!=="query"&&(ts.prototype[t+"Form"]=n(!0))});let iP=class EC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new cl(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new EC(function(a){t=a}),cancel:t}}};function oP(e){return function(n){return e.apply(null,n)}}function lP(e){return ce.isObject(e)&&e.isAxiosError===!0}const vm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vm).forEach(([e,t])=>{vm[t]=e});function vC(e){const t=new ts(e),n=eC(ts.prototype.request,t);return ce.extend(n,ts.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return vC(as(e,a))},n}const Pt=vC(ll);Pt.Axios=ts;Pt.CanceledError=cl;Pt.CancelToken=iP;Pt.isCancel=mC;Pt.VERSION=Bh;Pt.toFormData=Yu;Pt.AxiosError=qe;Pt.Cancel=Pt.CanceledError;Pt.all=function(t){return Promise.all(t)};Pt.spread=oP;Pt.isAxiosError=lP;Pt.mergeConfig=as;Pt.AxiosHeaders=xn;Pt.formToJSON=e=>fC(ce.isHTMLForm(e)?new FormData(e):e);Pt.getAdapter=yC.getAdapter;Pt.HttpStatusCode=vm;Pt.default=Pt;const{Axios:sde,AxiosError:ide,CanceledError:ode,isCancel:lde,CancelToken:cde,VERSION:ude,all:dde,Cancel:pde,isAxiosError:fde,spread:mde,toFormData:hde,AxiosHeaders:gde,HttpStatusCode:bde,formToJSON:xde,getAdapter:yde,mergeConfig:Ede,create:vde}=Pt,cP={},Te=Pt.create({baseURL:"/api/v1/insight"}),uP=cP?.VITE_INSIGHT_DEFAULT_TENANT_ID||"default";Te.interceptors.request.use(e=>(typeof window<"u"&&(e.headers=e.headers||{},e.headers["X-Tenant-Id"]=window.localStorage.getItem("insightTenantId")||uP),e));function SC(e,t){Te.defaults.baseURL=`${e}/insight`,t&&(Te.defaults.headers.common.Authorization=`Bearer ${t}`)}function dP(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const pP=e=>{switch(e){case"success":return hP;case"info":return bP;case"warning":return gP;case"error":return xP;default:return null}},fP=Array(12).fill(0),mP=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},fP.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),hP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),gP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),bP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),xP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yP=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),EP=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Sm=1;class vP{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Sm++,o=this.toasts.find(c=>c.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:r}),{...c,...t,id:i,dismissible:l,title:r}):c):this.addToast({title:r,...a,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,o;const l=a.then(async u=>{if(o=["resolve",u],w.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(wP(u)&&!u.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(u instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof d=="object"&&!w.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...h})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){i=!1;const p=typeof n.error=="function"?await n.error(u):n.error,d=typeof n.description=="function"?await n.description(u):n.description,m=typeof p=="object"&&!w.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:d,...m})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,p)=>l.then(()=>o[0]==="reject"?p(o[1]):u(o[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||Sm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const An=new vP,SP=(e,t)=>{const n=t?.id||Sm++;return An.addToast({title:e,...t,id:n}),n},wP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TP=SP,NP=()=>An.toasts,CP=()=>An.getActiveToasts(),ne=Object.assign(TP,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:NP,getToasts:CP});dP("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Xl(e){return e.label!==void 0}const AP=3,_P="24px",RP="16px",kS=4e3,kP=356,IP=14,DP=45,OP=200;function Er(...e){return e.filter(Boolean).join(" ")}function LP(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const jP=e=>{var t,n,r,a,i,o,l,c,u;const{invert:p,toast:d,unstyled:f,interacting:m,setHeights:h,visibleToasts:g,heights:b,index:x,toasts:S,expanded:T,removeToast:N,defaultRichColors:_,closeButton:C,style:k,cancelButtonStyle:O,actionButtonStyle:M,className:A="",descriptionClassName:P="",duration:H,position:G,gap:U,expandByDefault:j,classNames:W,icons:se,closeButtonAriaLabel:B="Close toast"}=e,[z,I]=w.useState(null),[V,Z]=w.useState(null),[D,ie]=w.useState(!1),[Q,re]=w.useState(!1),[K,Y]=w.useState(!1),[J,Ne]=w.useState(!1),[pe,te]=w.useState(!1),[Ae,$e]=w.useState(0),[Ee,Qe]=w.useState(0),Ke=w.useRef(d.duration||H||kS),st=w.useRef(null),lt=w.useRef(null),Et=x===0,$t=x+1<=g,Se=d.type,ke=d.dismissible!==!1,Ue=d.className||"",He=d.descriptionClassName||"",le=w.useMemo(()=>b.findIndex(ye=>ye.toastId===d.id)||0,[b,d.id]),_e=w.useMemo(()=>{var ye;return(ye=d.closeButton)!=null?ye:C},[d.closeButton,C]),Xe=w.useMemo(()=>d.duration||H||kS,[d.duration,H]),tt=w.useRef(0),v=w.useRef(0),ee=w.useRef(0),fe=w.useRef(null),[he,de]=G.split("-"),Ce=w.useMemo(()=>b.reduce((ye,Le,Me)=>Me>=le?ye:ye+Le.height,0),[b,le]),R=EP(),X=d.invert||p,ge=Se==="loading";v.current=w.useMemo(()=>le*U+Ce,[le,Ce]),w.useEffect(()=>{Ke.current=Xe},[Xe]),w.useEffect(()=>{ie(!0)},[]),w.useEffect(()=>{const ye=lt.current;if(ye){const Le=ye.getBoundingClientRect().height;return Qe(Le),h(Me=>[{toastId:d.id,height:Le,position:d.position},...Me]),()=>h(Me=>Me.filter(Ye=>Ye.toastId!==d.id))}},[h,d.id]),w.useLayoutEffect(()=>{if(!D)return;const ye=lt.current,Le=ye.style.height;ye.style.height="auto";const Me=ye.getBoundingClientRect().height;ye.style.height=Le,Qe(Me),h(Ye=>Ye.find(Tt=>Tt.toastId===d.id)?Ye.map(Tt=>Tt.toastId===d.id?{...Tt,height:Me}:Tt):[{toastId:d.id,height:Me,position:d.position},...Ye])},[D,d.title,d.description,h,d.id,d.jsx,d.action,d.cancel]);const oe=w.useCallback(()=>{re(!0),$e(v.current),h(ye=>ye.filter(Le=>Le.toastId!==d.id)),setTimeout(()=>{N(d)},OP)},[d,N,h,v]);w.useEffect(()=>{if(d.promise&&Se==="loading"||d.duration===1/0||d.type==="loading")return;let ye;return T||m||R?(()=>{if(ee.current<tt.current){const Ye=new Date().getTime()-tt.current;Ke.current=Ke.current-Ye}ee.current=new Date().getTime()})():Ke.current!==1/0&&(tt.current=new Date().getTime(),ye=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),oe()},Ke.current)),()=>clearTimeout(ye)},[T,m,d,Se,R,oe]),w.useEffect(()=>{d.delete&&(oe(),d.onDismiss==null||d.onDismiss.call(d,d))},[oe,d.delete]);function xe(){var ye;if(se?.loading){var Le;return w.createElement("div",{className:Er(W?.loader,d==null||(Le=d.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":Se==="loading"},se.loading)}return w.createElement(mP,{className:Er(W?.loader,d==null||(ye=d.classNames)==null?void 0:ye.loader),visible:Se==="loading"})}const we=d.icon||se?.[Se]||pP(Se);var be,Fe;return w.createElement("li",{tabIndex:0,ref:lt,className:Er(A,Ue,W?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,W?.default,W?.[Se],d==null||(n=d.classNames)==null?void 0:n[Se]),"data-sonner-toast":"","data-rich-colors":(be=d.richColors)!=null?be:_,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":D,"data-promise":!!d.promise,"data-swiped":pe,"data-removed":Q,"data-visible":$t,"data-y-position":he,"data-x-position":de,"data-index":x,"data-front":Et,"data-swiping":K,"data-dismissible":ke,"data-type":Se,"data-invert":X,"data-swipe-out":J,"data-swipe-direction":V,"data-expanded":!!(T||j&&D),"data-testid":d.testId,style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Q?Ae:v.current}px`,"--initial-height":j?"auto":`${Ee}px`,...k,...d.style},onDragEnd:()=>{Y(!1),I(null),fe.current=null},onPointerDown:ye=>{ye.button!==2&&(ge||!ke||(st.current=new Date,$e(v.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(Y(!0),fe.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,Le,Me;if(J||!ke)return;fe.current=null;const Ye=Number(((ye=lt.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pt=Number(((Le=lt.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Tt=new Date().getTime()-((Me=st.current)==null?void 0:Me.getTime()),Ft=z==="x"?Ye:pt,Wt=Math.abs(Ft)/Tt;if(Math.abs(Ft)>=DP||Wt>.11){$e(v.current),d.onDismiss==null||d.onDismiss.call(d,d),Z(z==="x"?Ye>0?"right":"left":pt>0?"down":"up"),oe(),Ne(!0);return}else{var gn,Wn;(gn=lt.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(Wn=lt.current)==null||Wn.style.setProperty("--swipe-amount-y","0px")}te(!1),Y(!1),I(null)},onPointerMove:ye=>{var Le,Me,Ye;if(!fe.current||!ke||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;const Tt=ye.clientY-fe.current.y,Ft=ye.clientX-fe.current.x;var Wt;const gn=(Wt=e.swipeDirections)!=null?Wt:LP(G);!z&&(Math.abs(Ft)>1||Math.abs(Tt)>1)&&I(Math.abs(Ft)>Math.abs(Tt)?"x":"y");let Wn={x:0,y:0};const vp=oa=>1/(1.5+Math.abs(oa)/20);if(z==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&Tt<0||gn.includes("bottom")&&Tt>0)Wn.y=Tt;else{const oa=Tt*vp(Tt);Wn.y=Math.abs(oa)<Math.abs(Tt)?oa:Tt}}else if(z==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&Ft<0||gn.includes("right")&&Ft>0)Wn.x=Ft;else{const oa=Ft*vp(Ft);Wn.x=Math.abs(oa)<Math.abs(Ft)?oa:Ft}(Math.abs(Wn.x)>0||Math.abs(Wn.y)>0)&&te(!0),(Me=lt.current)==null||Me.style.setProperty("--swipe-amount-x",`${Wn.x}px`),(Ye=lt.current)==null||Ye.style.setProperty("--swipe-amount-y",`${Wn.y}px`)}},_e&&!d.jsx&&Se!=="loading"?w.createElement("button",{"aria-label":B,"data-disabled":ge,"data-close-button":!0,onClick:ge||!ke?()=>{}:()=>{oe(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Er(W?.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(Fe=se?.close)!=null?Fe:yP):null,(Se||d.icon||d.promise)&&d.icon!==null&&(se?.[Se]!==null||d.icon)?w.createElement("div",{"data-icon":"",className:Er(W?.icon,d==null||(a=d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||xe():null,d.type!=="loading"?we:null):null,w.createElement("div",{"data-content":"",className:Er(W?.content,d==null||(i=d.classNames)==null?void 0:i.content)},w.createElement("div",{"data-title":"",className:Er(W?.title,d==null||(o=d.classNames)==null?void 0:o.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:Er(P,He,W?.description,d==null||(l=d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Xl(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||O,onClick:ye=>{Xl(d.cancel)&&ke&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,ye),oe())},className:Er(W?.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Xl(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||M,onClick:ye=>{Xl(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,ye),!ye.defaultPrevented&&oe())},className:Er(W?.actionButton,d==null||(u=d.classNames)==null?void 0:u.actionButton)},d.action.label):null)};function IS(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function MP(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,o=i?"--mobile-offset":"--offset",l=i?RP:_P;function c(u){["top","right","bottom","left"].forEach(p=>{n[`${o}-${p}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=l:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}const PP=w.forwardRef(function(t,n){const{id:r,invert:a,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:p,mobileOffset:d,theme:f="light",richColors:m,duration:h,style:g,visibleToasts:b=AP,toastOptions:x,dir:S=IS(),gap:T=IP,icons:N,containerAriaLabel:_="Notifications"}=t,[C,k]=w.useState([]),O=w.useMemo(()=>r?C.filter(D=>D.toasterId===r):C.filter(D=>!D.toasterId),[C,r]),M=w.useMemo(()=>Array.from(new Set([i].concat(O.filter(D=>D.position).map(D=>D.position)))),[O,i]),[A,P]=w.useState([]),[H,G]=w.useState(!1),[U,j]=w.useState(!1),[W,se]=w.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=w.useRef(null),z=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=w.useRef(null),V=w.useRef(!1),Z=w.useCallback(D=>{k(ie=>{var Q;return(Q=ie.find(re=>re.id===D.id))!=null&&Q.delete||An.dismiss(D.id),ie.filter(({id:re})=>re!==D.id)})},[]);return w.useEffect(()=>An.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{k(ie=>ie.map(Q=>Q.id===D.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{Bu.flushSync(()=>{k(ie=>{const Q=ie.findIndex(re=>re.id===D.id);return Q!==-1?[...ie.slice(0,Q),{...ie[Q],...D},...ie.slice(Q+1)]:[D,...ie]})})})}),[C]),w.useEffect(()=>{if(f!=="system"){se(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:ie})=>{se(ie?"dark":"light")})}catch{D.addListener(({matches:Q})=>{try{se(Q?"dark":"light")}catch(re){console.error(re)}})}},[f]),w.useEffect(()=>{C.length<=1&&G(!1)},[C]),w.useEffect(()=>{const D=ie=>{var Q;if(o.every(Y=>ie[Y]||ie.code===Y)){var K;G(!0),(K=B.current)==null||K.focus()}ie.code==="Escape"&&(document.activeElement===B.current||(Q=B.current)!=null&&Q.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),w.useEffect(()=>{if(B.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,V.current=!1)}},[B.current]),w.createElement("section",{ref:n,"aria-label":`${_} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((D,ie)=>{var Q;const[re,K]=D.split("-");return O.length?w.createElement("ol",{key:D,dir:S==="auto"?IS():S,tabIndex:-1,ref:B,className:u,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":re,"data-x-position":K,style:{"--front-toast-height":`${((Q=A[0])==null?void 0:Q.height)||0}px`,"--width":`${kP}px`,"--gap":`${T}px`,...g,...MP(p,d)},onBlur:Y=>{V.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(V.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||V.current||(V.current=!0,I.current=Y.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{U||G(!1)},onDragEnd:()=>G(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},O.filter(Y=>!Y.position&&ie===0||Y.position===D).map((Y,J)=>{var Ne,pe;return w.createElement(jP,{key:Y.id,icons:N,index:J,toast:Y,defaultRichColors:m,duration:(Ne=x?.duration)!=null?Ne:h,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:a,visibleToasts:b,closeButton:(pe=x?.closeButton)!=null?pe:c,interacting:U,position:D,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,closeButtonAriaLabel:x?.closeButtonAriaLabel,removeToast:Z,toasts:O.filter(te=>te.position==Y.position),heights:A.filter(te=>te.position==Y.position),setHeights:P,expandByDefault:l,gap:T,expanded:H,swipeDirections:t.swipeDirections})})):null}))});const FP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),DS=e=>{const t=BP(e);return t.charAt(0).toUpperCase()+t.slice(1)},wC=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),UP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var $P={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const HP=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},c)=>w.createElement("svg",{ref:c,...$P,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wC("lucide",a),...!i&&!UP(l)&&{"aria-hidden":"true"},...l},[...o.map(([u,p])=>w.createElement(u,p)),...Array.isArray(i)?i:[i]]));const Be=(e,t)=>{const n=w.forwardRef(({className:r,...a},i)=>w.createElement(HP,{ref:i,iconNode:t,className:wC(`lucide-${FP(DS(e))}`,`lucide-${e}`,r),...a}));return n.displayName=DS(e),n};const zP=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],_a=Be("activity",zP);const GP=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],OS=Be("arrow-down",GP);const VP=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Yr=Be("arrow-left",VP);const WP=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],LS=Be("arrow-up",WP);const qP=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],YP=Be("bell",qP);const KP=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],jS=Be("book-open",KP);const XP=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],ZP=Be("book-plus",XP);const QP=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],TC=Be("boxes",QP);const JP=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],yo=Be("brain-circuit",JP);const e4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],t4=Be("chart-column",e4);const n4=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],$h=Be("chart-no-axes-column",n4);const r4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kt=Be("check",r4);const a4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xu=Be("chevron-down",a4);const s4=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],NC=Be("chevron-left",s4);const i4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],CC=Be("chevron-right",i4);const o4=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],l4=Be("chevron-up",o4);const c4=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],AC=Be("chevrons-left",c4);const u4=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],_C=Be("chevrons-right",u4);const d4=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],RC=Be("chevrons-up-down",d4);const p4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],f4=Be("circle-alert",p4);const m4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],Hh=Be("circle-arrow-up",m4);const h4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ni=Be("circle-check",h4);const g4=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],MS=Be("circle-check-big",g4);const b4=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kC=Be("circle-user-round",b4);const x4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],IC=Be("circle-x",x4);const y4=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],E4=Be("clipboard-list",y4);const v4=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ss=Be("clock",v4);const S4=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],PS=Be("cloud-upload",S4);const w4=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],cu=Be("cloud",w4);const T4=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],N4=Be("code-xml",T4);const C4=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],DC=Be("container",C4);const A4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],yn=Be("copy",A4);const _4=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],OC=Be("cpu",_4);const R4=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],k4=Be("dollar-sign",R4);const I4=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fo=Be("download",I4);const D4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],O4=Be("ellipsis-vertical",D4);const L4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Oa=Be("ellipsis",L4);const j4=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pi=Be("external-link",j4);const M4=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],P4=Be("eye-off",M4);const F4=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],LC=Be("eye",F4);const B4=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],zh=Be("file-code-2",B4);const U4=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],fi=Be("file-text",U4);const $4=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],wm=Be("folder-open",$4);const H4=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],jC=Be("gauge",H4);const z4=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],G4=Be("git-branch",z4);const V4=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],W4=Be("history",V4);const q4=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Y4=Be("inbox",q4);const K4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zu=Be("info",K4);const X4=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Z4=Be("key-round",X4);const Q4=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],J4=Be("layout-dashboard",Q4);const eF=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Gh=Be("layers",eF);const tF=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],MC=Be("layout-grid",tF);const nF=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],rF=Be("list-tree",nF);const aF=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],PC=Be("list",aF);const sF=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ze=Be("loader-circle",sF);const iF=[["path",{d:"M12 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4",key:"11da1y"}],["path",{d:"M16 3h6v6",key:"1bx56c"}],["path",{d:"m16 9 6-6",key:"m4dnic"}]],oF=Be("message-square-share",iF);const lF=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],cF=Be("octagon-alert",lF);const uF=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],dF=Be("package",uF);const pF=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Qu=Be("pencil",pF);const fF=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],mF=Be("percent",fF);const hF=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],Ju=Be("plug",hF);const gF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],cr=Be("plus",gF);const bF=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Qr=Be("refresh-ccw",bF);const xF=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],yF=Be("save",xF);const EF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],La=Be("search",EF);const vF=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],FC=Be("server",vF);const SF=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Vh=Be("settings-2",SF);const wF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],TF=Be("shield-alert",wF);const NF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],FS=Be("shield-check",NF);const CF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ul=Be("shield",CF);const AF=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],dl=Be("sparkles",AF);const _F=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ti=Be("square-pen",_F);const RF=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],BC=Be("table",RF);const kF=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],ed=Be("tag",kF);const IF=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],DF=Be("terminal",IF);const OF=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],pl=Be("trash-2",OF);const LF=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wh=Be("trash",LF);const jF=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bs=Be("triangle-alert",jF);const MF=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],UC=Be("user-plus",MF);const PF=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],qh=Be("user",PF);const FF=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],BF=Be("webhook",FF);const UF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],In=Be("x",UF);const $F=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],$C=Be("zap",$F);async function Yn(e,t){try{return await e()}catch(n){if(n?.response?.status===404)return t();throw n}}async function BS(e,t){try{return await e()}catch{return t()}}const _r=e=>e?new Date(e).getTime():0,qp=e=>e.status==="in_progress"?"P1":e.status==="resolved"?"P3":"P2";function HF(e){if(!e)return!1;const t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function Tm(e){return e.length?Math.round(e.reduce((t,n)=>t+n,0)/e.length):0}function zF(e){const t=Date.now(),n=u=>u?Math.max(0,Math.floor((t-_r(u))/6e4)):0,r=e.filter(u=>u.status!=="resolved"&&u.status!=="closed"),a=e.filter(u=>u.status==="resolved"&&HF(u.resolvedAt)),i=a.filter(u=>u.resolvedAt&&u.createdAt).map(u=>Math.max(0,Math.floor((_r(u.resolvedAt)-_r(u.createdAt))/6e4))),o=r.slice(0,6).map(u=>({id:u.id,aliasId:u.aliasId,name:u.name,resourceName:u.resourceName,status:u.status,priority:qp(u),createdAt:u.createdAt,assigneeIds:u.assigneeIds??[]})),l=[];for(const u of e){const p=u.aliasId?`INC-${String(u.aliasId).padStart(3,"0")}`:String(u.id).slice(0,7);u.createdAt&&l.push({t:u.createdAt,kind:"created",incidentId:u.id,label:p,resourceName:u.resourceName}),u.analysisCompletedAt&&l.push({t:u.analysisCompletedAt,kind:"ai_completed",incidentId:u.id,label:p,resourceName:u.resourceName}),u.status==="in_progress"&&u.analysisTriggeredAt&&l.push({t:u.analysisTriggeredAt,kind:"investigating",incidentId:u.id,label:p,resourceName:u.resourceName}),u.resolvedAt&&l.push({t:u.resolvedAt,kind:"resolved",incidentId:u.id,label:p,resourceName:u.resourceName})}const c=l.filter(u=>u.t).sort((u,p)=>_r(p.t)-_r(u.t)).slice(0,6);return{stats:{p1:r.filter(u=>qp(u)==="P1").length,p2:r.filter(u=>qp(u)==="P2").length,unacked:r.filter(u=>!u.assigneeIds?.length&&n(u.createdAt)>15).length,mttrMinutes:Tm(i),resolvedToday:a.length},openIncidents:o,activity:c}}function GF(e,t){const n=t==="30d"?30:7,r=Date.now()-n*864e5,a=e.filter(S=>S.createdAt&&_r(S.createdAt)>=r),i=(S,T)=>S&&T?Math.max(0,Math.floor((_r(T)-_r(S))/6e4)):null,o=Tm(a.map(S=>i(S.createdAt,S.analysisTriggeredAt)).filter(S=>S!==null)),l=Tm(a.filter(S=>S.status==="resolved").map(S=>i(S.createdAt,S.resolvedAt)).filter(S=>S!==null)),c=new Map;for(const S of a)S.resourceName&&c.set(S.resourceName,(c.get(S.resourceName)??0)+1);const u=[...c.values()].filter(S=>S>1).reduce((S,T)=>S+T,0),p=S=>{if(S.status==="resolved"||S.status==="closed"||!S.createdAt)return!1;const T=(Date.now()-_r(S.createdAt))/6e4,N=S.status!=="open",_=String(S.projectTag||"").toLowerCase();let C=30,k=120;return _==="critical"?(C=10,k=60):_==="high"&&(C=30,k=120),!N&&T>C||T>k},d=a.filter(p).length,f=a.length?Math.round(a.filter(S=>S.analysisStatus==="completed").length/a.length*100):0,m=[];for(let S=n-1;S>=0;S--){const T=new Date;T.setHours(0,0,0,0),T.setDate(T.getDate()-S);const N=T.getTime(),_=N+864e5;m.push({date:T.toISOString(),count:a.filter(C=>{const k=_r(C.createdAt);return k>=N&&k<_}).length})}const h=new Map;for(const S of a){const T=String(S.source||"custom").toLowerCase();h.set(T,(h.get(T)??0)+1)}const g=a.length||1,b=[...h.entries()].map(([S,T])=>({label:S,value:T,pct:Math.round(T/g*100)})).sort((S,T)=>T.value-S.value).slice(0,6),x=[...c.entries()].map(([S,T])=>({name:S,value:T})).sort((S,T)=>T.value-S.value).slice(0,5);return{range:t,totals:{total:a.length,mttaMinutes:o,mttrMinutes:l,repeat:u,sla:d,aiPct:f},timeline:m,bySource:b,topResources:x}}const Re={listIncidents:e=>{const t={...e,sourceTypes:e?.sourceTypes?.join(",")};return Te.get("/incidents",{params:t}).then(n=>n.data)},getIncidentDashboard:e=>BS(()=>Te.get("/incidents/dashboard",{params:{sourceTypes:e?.join(",")}}).then(t=>t.data),async()=>{const t=await Te.get("/incidents",{params:{page:1,limit:200,sourceTypes:e?.join(",")}}).then(n=>n.data);return{ok:!0,...zF(t.incidents??[])}}),getIncidentAnalytics:(e,t)=>BS(()=>Te.get("/incidents/analytics",{params:{range:e,sourceTypes:t?.join(",")}}).then(n=>n.data),async()=>{const n=await Te.get("/incidents",{params:{page:1,limit:500,sourceTypes:t?.join(",")}}).then(r=>r.data);return{ok:!0,...GF(n.incidents??[],e)}}),getIncident:e=>Te.get(`/incidents/${e}`).then(t=>t.data),createIncident:e=>Te.post("/incidents",e).then(t=>t.data),getIncidentStatus:e=>Te.get(`/incidents/${e}/status`).then(t=>t.data),triggerAnalysis:e=>Te.post(`/incidents/${e}/analyse`).then(t=>t.data),assignIncident:(e,t)=>Te.patch(`/incidents/${e}/assign`,{assigneeIds:t}).then(n=>n.data),updateIncident:(e,t)=>Te.patch(`/incidents/${e}`,t).then(n=>n.data),deleteIncident:e=>Te.delete(`/incidents/${e}`).then(t=>t.data),addIncidentComment:(e,t)=>Te.post(`/incidents/${e}/comments`,t).then(n=>n.data),listAlerts:e=>Te.get("/alerts",{params:e}).then(t=>t.data),getAlert:e=>Te.get(`/alerts/${e}`).then(t=>t.data),getAlertSummary:e=>Te.get("/alerts/summary",{params:e}).then(t=>t.data),convertAlert:e=>Te.post(`/alerts/${e}/convert`).then(t=>t.data),dismissAlert:e=>Te.post(`/alerts/${e}/dismiss`).then(t=>t.data),updateAlert:(e,t)=>Te.patch(`/alerts/${e}`,t).then(n=>n.data),async deleteAlert(e){return(await Te.delete(`/alerts/${e}`)).data},listSources:e=>Te.get("/sources",{params:e}).then(t=>t.data),createSource:e=>Te.post("/sources",e).then(t=>t.data),getSource:e=>Te.get(`/sources/${e}`).then(t=>t.data),getSourceOverview:e=>Te.get(`/sources/${e}/overview`).then(t=>t.data),listSourceAlarms:(e,t)=>Te.get(`/sources/${e}/alarms`,{params:t}).then(n=>n.data),listSourceLogs:(e,t)=>Te.get(`/sources/${e}/logs`,{params:t}).then(n=>n.data),testSource:e=>Te.post(`/sources/${e}/test`).then(t=>t.data),updateSource:(e,t)=>Te.patch(`/sources/${e}`,t).then(n=>n.data),rotateToken:e=>Te.post(`/sources/${e}/rotate-token`).then(t=>t.data),getSourceTokenPolicy:e=>Te.get(`/sources/${e}/token-policy`).then(t=>t.data),updateSourceTokenPolicy:(e,t)=>Te.patch(`/sources/${e}/token-policy`,t).then(n=>n.data),discoverCloudWatch:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/discover`,t).then(n=>n.data),getCloudWatchSetup:e=>Te.get(`/sources/${e}/aws/cloudwatch/setup`).then(t=>t.data),getCloudWatchConsoleDeploy:(e,t)=>Te.get(`/sources/${e}/aws/cloudwatch/console-deploy`,{params:t}).then(n=>n.data),startCloudWatchConsoleDeploy:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/console-deploy/start`,t).then(n=>n.data),deployCloudWatch:(e,t)=>Te.post(`/sources/${e}/aws/cloudwatch/deploy`,t).then(n=>n.data),getGrafanaOnboarding:e=>Te.get(`/sources/${e}/grafana/onboarding`).then(t=>t.data),saveGrafanaSetup:(e,t)=>Te.post(`/sources/${e}/grafana/save`,t).then(n=>n.data),setupGrafana:(e,t)=>Te.post(`/sources/${e}/grafana/setup`,t).then(n=>n.data),getPrometheusOnboarding:e=>Te.get(`/sources/${e}/prometheus/onboarding`).then(t=>t.data),checkPrometheusStatus:(e,t)=>Te.post(`/sources/${e}/prometheus/check-status`,t).then(n=>n.data),getDatadogOnboarding:e=>Te.get(`/sources/${e}/datadog/onboarding`).then(t=>t.data),setupDatadog:(e,t)=>Te.post(`/sources/${e}/datadog/setup`,t).then(n=>n.data),getCloudTrailConsoleDeploy:(e,t)=>Te.get(`/sources/${e}/aws/cloudtrail/console-deploy`,{params:t}).then(n=>n.data),startCloudTrailConsoleDeploy:(e,t)=>Te.post(`/sources/${e}/aws/cloudtrail/console-deploy/start`,t).then(n=>n.data),deleteSource:e=>Te.delete(`/sources/${e}`).then(t=>t.data),listSourceWebhookFailures:(e,t)=>Te.get(`/sources/${e}/webhook-failures`,{params:t}).then(n=>n.data),listProjects:e=>Te.get("/projects",{params:e}).then(t=>t.data),getProject:e=>Te.get(`/projects/${e}`).then(t=>t.data),createProject:e=>Te.post("/projects",e).then(t=>t.data),updateProject:(e,t)=>Te.patch(`/projects/${e}`,t).then(n=>n.data),deleteProject:e=>Te.delete(`/projects/${e}`).then(t=>t.data),getSettings:()=>Te.get("/settings").then(e=>e.data),updateSettings:e=>Te.patch("/settings",e).then(t=>t.data),getNotificationProviders:()=>Te.get("/notification-providers").then(e=>e.data),getAllNotificationProviders:()=>Te.get("/notification-providers/all").then(e=>e.data),createNotificationProvider:e=>Te.post("/notification-providers",e).then(t=>t.data),updateNotificationProvider:(e,t)=>Te.put(`/notification-providers/${e}`,t).then(n=>n.data),deleteNotificationProvider:e=>Te.delete(`/notification-providers/${e}`).then(t=>t.data),getUsers:e=>Te.get("/users",{params:e}).then(t=>t.data),getPipelineStatus:()=>Te.get("/pipeline/status").then(e=>e.data),getPipelineEvents:e=>Te.get(`/pipeline/events/${e}`).then(t=>t.data),getPipelineDefaults:e=>Te.get(`/pipeline/defaults/${e}`).then(t=>t.data),listNormalizationConfigs:e=>Te.get("/pipeline/normalization-configs",{params:{sourceId:e}}).then(t=>t.data),getNormalizationConfig:e=>Te.get(`/pipeline/normalization-configs/${e}`).then(t=>t.data),createNormalizationConfig:e=>Te.post("/pipeline/normalization-configs",e).then(t=>t.data),updateNormalizationConfig:(e,t)=>Te.put(`/pipeline/normalization-configs/${e}`,t).then(n=>n.data),deleteNormalizationConfig:e=>Te.delete(`/pipeline/normalization-configs/${e}`).then(t=>t.data),testNormalizationConfig:(e,t,n)=>Te.post(`/pipeline/normalization-configs/${e}/test`,{sourceType:t,samplePayload:n}).then(r=>r.data),parseNormalizationYaml:e=>Te.post("/pipeline/normalization-configs/parse-yaml",{yaml:e}).then(t=>t.data),listDedupConfigs:e=>Yn(()=>Te.get("/pipeline/dedup-configs",{params:{sourceId:e}}).then(t=>t.data),()=>Te.get("/pipeline/dedup",{params:{sourceId:e}}).then(t=>t.data)),getDedupConfig:e=>Yn(()=>Te.get(`/pipeline/dedup-configs/${e}`).then(t=>t.data),()=>Te.get(`/pipeline/dedup/${e}`).then(t=>t.data)),createDedupConfig:e=>Yn(()=>Te.post("/pipeline/dedup-configs",e).then(t=>t.data),()=>Te.post("/pipeline/dedup",e).then(t=>t.data)),updateDedupConfig:(e,t)=>Yn(()=>Te.put(`/pipeline/dedup-configs/${e}`,t).then(n=>n.data),()=>Te.put(`/pipeline/dedup/${e}`,t).then(n=>n.data)),deleteDedupConfig:e=>Yn(()=>Te.delete(`/pipeline/dedup-configs/${e}`).then(t=>t.data),()=>Te.delete(`/pipeline/dedup/${e}`).then(t=>t.data)),parseDedupYaml:e=>Yn(()=>Te.post("/pipeline/dedup-configs/parse-yaml",{yaml:e}).then(t=>t.data),()=>Te.post("/pipeline/dedup/parse-yaml",{yaml:e}).then(t=>t.data)),listGroupingConfigs:e=>Yn(()=>Te.get("/pipeline/grouping-configs",{params:{sourceId:e}}).then(t=>t.data),()=>Te.get("/pipeline/grouping",{params:{sourceId:e}}).then(t=>t.data)),getGroupingConfig:e=>Yn(()=>Te.get(`/pipeline/grouping-configs/${e}`).then(t=>t.data),()=>Te.get(`/pipeline/grouping/${e}`).then(t=>t.data)),createGroupingConfig:e=>Yn(()=>Te.post("/pipeline/grouping-configs",e).then(t=>t.data),()=>Te.post("/pipeline/grouping",e).then(t=>t.data)),updateGroupingConfig:(e,t)=>Yn(()=>Te.put(`/pipeline/grouping-configs/${e}`,t).then(n=>n.data),()=>Te.put(`/pipeline/grouping/${e}`,t).then(n=>n.data)),deleteGroupingConfig:e=>Yn(()=>Te.delete(`/pipeline/grouping-configs/${e}`).then(t=>t.data),()=>Te.delete(`/pipeline/grouping/${e}`).then(t=>t.data)),parseGroupingYaml:e=>Yn(()=>Te.post("/pipeline/grouping-configs/parse-yaml",{yaml:e}).then(t=>t.data),()=>Te.post("/pipeline/grouping/parse-yaml",{yaml:e}).then(t=>t.data))},VF={list:async()=>(await Te.get("/pipeline/providers")).data.data,getById:async e=>(await Te.get(`/pipeline/providers/${e}`)).data.data,create:async e=>(await Te.post("/pipeline/providers",e)).data.data,update:async(e,t)=>(await Te.put(`/pipeline/providers/${e}`,t)).data.data,delete:async e=>{await Te.delete(`/pipeline/providers/${e}`)}},Rr={list:e=>Te.get("/sops",{params:e}).then(t=>t.data),get:e=>Te.get(`/sops/${e}`).then(t=>t.data),create:e=>Te.post("/sops",e).then(t=>t.data),update:(e,t)=>Te.patch(`/sops/${e}`,t).then(n=>n.data),delete:e=>Te.delete(`/sops/${e}`).then(t=>t.data),lookupByAlertName:async e=>{try{const t=await Te.get("/sops",{params:{alertName:e,limit:1}});return console.log(`[lookupByAlertName] alertName: "${e}", res.data:`,t.data),t.data?.ok&&t.data.sops?.length>0?t.data.sops[0].id:null}catch(t){return console.error(`[lookupByAlertName] failed for "${e}":`,t),null}}},HC=w.createContext({userRole:"user",userId:"",isAdmin:!1,isReadOnly:!0,openCostSources:void 0}),tr=()=>w.useContext(HC);function WF({role:e,userId:t,openCostSources:n,children:r}){const a=e==="admin",i=!a;return s.jsx(HC.Provider,{value:{userRole:e,userId:t,isAdmin:a,isReadOnly:i,openCostSources:n},children:r})}function zC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function GC(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zC(e))&&(r&&(r+=" "),r+=t);return r}const qF=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},YF=(e,t)=>({classGroupId:e,validator:t}),VC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),uu="-",US=[],KF="arbitrary..",XF=e=>{const t=QF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return ZF(o);const l=o.split(uu),c=l[0]===""&&l.length>1?1:0;return WC(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=r[o],u=n[o];return c?u?qF(u,c):c:u||US}return n[o]||US}}},WC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const u=WC(e,t+1,i);if(u)return u}const o=n.validators;if(o===null)return;const l=t===0?e.join(uu):e.slice(t).join(uu),c=o.length;for(let u=0;u<c;u++){const p=o[u];if(p.validator(l))return p.classGroupId}},ZF=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?KF+r:void 0})(),QF=e=>{const{theme:t,classGroups:n}=e;return JF(n,t)},JF=(e,t)=>{const n=VC();for(const r in e){const a=e[r];Yh(a,n,r,t)}return n},Yh=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];e6(o,t,n,r)}},e6=(e,t,n,r)=>{if(typeof e=="string"){t6(e,t,n);return}if(typeof e=="function"){n6(e,t,n,r);return}r6(e,t,n,r)},t6=(e,t,n)=>{const r=e===""?t:qC(t,e);r.classGroupId=n},n6=(e,t,n,r)=>{if(a6(e)){Yh(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(YF(n,e))},r6=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[l,c]=a[o];Yh(c,qC(t,l),n,r)}},qC=(e,t)=>{let n=e;const r=t.split(uu),a=r.length;for(let i=0;i<a;i++){const o=r[i];let l=n.nextPart.get(o);l||(l=VC(),n.nextPart.set(o,l)),n=l}return n},a6=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,s6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Nm="!",$S=":",i6=[],HS=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),o6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,l=0,c=0,u;const p=a.length;for(let g=0;g<p;g++){const b=a[g];if(o===0&&l===0){if(b===$S){i.push(a.slice(c,g)),c=g+1;continue}if(b==="/"){u=g;continue}}b==="["?o++:b==="]"?o--:b==="("?l++:b===")"&&l--}const d=i.length===0?a:a.slice(c);let f=d,m=!1;d.endsWith(Nm)?(f=d.slice(0,-1),m=!0):d.startsWith(Nm)&&(f=d.slice(1),m=!0);const h=u&&u>c?u-c:void 0;return HS(i,m,f,h)};if(t){const a=t+$S,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):HS(i6,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},l6=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],l=o[0]==="[",c=t.has(o);l||c?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},c6=e=>({cache:s6(e.cacheSize),parseClassName:o6(e),sortModifiers:l6(e),postfixLookupClassGroupIds:u6(e),...XF(e)}),u6=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},d6=/\s+/,p6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i,postfixLookupClassGroupIds:o}=t,l=[],c=e.trim().split(d6);let u="";for(let p=c.length-1;p>=0;p-=1){const d=c[p],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let x=!!b,S;if(x){const k=g.substring(0,b);S=r(k);const O=S&&o[S]?r(g):void 0;O&&O!==S&&(S=O,x=!1)}else S=r(g);if(!S){if(!x){u=d+(u.length>0?" "+u:u);continue}if(S=r(g),!S){u=d+(u.length>0?" "+u:u);continue}x=!1}const T=m.length===0?"":m.length===1?m[0]:i(m).join(":"),N=h?T+Nm:T,_=N+S;if(l.indexOf(_)>-1)continue;l.push(_);const C=a(S,x);for(let k=0;k<C.length;++k){const O=C[k];l.push(N+O)}u=d+(u.length>0?" "+u:u)}return u},f6=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=YC(n))&&(a&&(a+=" "),a+=r);return a},YC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=YC(e[r]))&&(n&&(n+=" "),n+=t);return n},m6=(e,...t)=>{let n,r,a,i;const o=c=>{const u=t.reduce((p,d)=>d(p),e());return n=c6(u),r=n.cache.get,a=n.cache.set,i=l,l(c)},l=c=>{const u=r(c);if(u)return u;const p=p6(c,n);return a(c,p),p};return i=o,(...c)=>i(f6(...c))},h6=[],Yt=e=>{const t=n=>n[e]||h6;return t.isThemeGetter=!0,t},KC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,XC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,b6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,la=e=>g6.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),vr=e=>!!e&&Number.isInteger(Number(e)),Yp=e=>e.endsWith("%")&&ct(e.slice(0,-1)),$r=e=>b6.test(e),ZC=()=>!0,S6=e=>x6.test(e)&&!y6.test(e),Kh=()=>!1,w6=e=>E6.test(e),T6=e=>v6.test(e),N6=e=>!ze(e)&&!Ve(e),C6=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),A6=e=>ja(e,eA,Kh),ze=e=>KC.test(e),Ha=e=>ja(e,tA,S6),zS=e=>ja(e,j6,ct),_6=e=>ja(e,rA,ZC),R6=e=>ja(e,nA,Kh),GS=e=>ja(e,QC,Kh),k6=e=>ja(e,JC,T6),Zl=e=>ja(e,aA,w6),Ve=e=>XC.test(e),Qi=e=>xs(e,tA),I6=e=>xs(e,nA),VS=e=>xs(e,QC),D6=e=>xs(e,eA),O6=e=>xs(e,JC),Ql=e=>xs(e,aA,!0),L6=e=>xs(e,rA,!0),ja=(e,t,n)=>{const r=KC.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xs=(e,t,n=!1)=>{const r=XC.exec(e);return r?r[1]?t(r[1]):n:!1},QC=e=>e==="position"||e==="percentage",JC=e=>e==="image"||e==="url",eA=e=>e==="length"||e==="size"||e==="bg-size",tA=e=>e==="length",j6=e=>e==="number",nA=e=>e==="family-name",rA=e=>e==="number"||e==="weight",aA=e=>e==="shadow",M6=()=>{const e=Yt("color"),t=Yt("font"),n=Yt("text"),r=Yt("font-weight"),a=Yt("tracking"),i=Yt("leading"),o=Yt("breakpoint"),l=Yt("container"),c=Yt("spacing"),u=Yt("radius"),p=Yt("shadow"),d=Yt("inset-shadow"),f=Yt("text-shadow"),m=Yt("drop-shadow"),h=Yt("blur"),g=Yt("perspective"),b=Yt("aspect"),x=Yt("ease"),S=Yt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...N(),Ve,ze],C=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],O=()=>[Ve,ze,c],M=()=>[la,"full","auto",...O()],A=()=>[vr,"none","subgrid",Ve,ze],P=()=>["auto",{span:["full",vr,Ve,ze]},vr,Ve,ze],H=()=>[vr,"auto",Ve,ze],G=()=>["auto","min","max","fr",Ve,ze],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...O()],se=()=>[la,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],B=()=>[la,"screen","full","dvw","lvw","svw","min","max","fit",...O()],z=()=>[la,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],I=()=>[e,Ve,ze],V=()=>[...N(),VS,GS,{position:[Ve,ze]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",D6,A6,{size:[Ve,ze]}],ie=()=>[Yp,Qi,Ha],Q=()=>["","none","full",u,Ve,ze],re=()=>["",ct,Qi,Ha],K=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[ct,Yp,VS,GS],Ne=()=>["","none",h,Ve,ze],pe=()=>["none",ct,Ve,ze],te=()=>["none",ct,Ve,ze],Ae=()=>[ct,Ve,ze],$e=()=>[la,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[ZC],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[N6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",ct],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",la,ze,Ve,b]}],container:["container"],"container-type":[{"@container":["","normal","size",Ve,ze]}],"container-named":[C6],columns:[{columns:[ct,ze,Ve,l]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[vr,"auto",Ve,ze]}],basis:[{basis:[la,"full","auto",l,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,la,"auto","initial","none",ze]}],grow:[{grow:["",ct,Ve,ze]}],shrink:[{shrink:["",ct,Ve,ze]}],order:[{order:[vr,"first","last","none",Ve,ze]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[l,"screen",...se()]}],"min-w":[{"min-w":[l,"screen","none",...se()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,Qi,Ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L6,_6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yp,ze]}],"font-family":[{font:[I6,R6,t]}],"font-features":[{"font-features":[ze]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ve,ze]}],"line-clamp":[{"line-clamp":[ct,"none",Ve,zS]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",Ve,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",Ve,Ha]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ct,"auto",Ve,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[vr,Ve,ze]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vr,Ve,ze],radial:["",Ve,ze],conic:[vr,Ve,ze]},O6,k6]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,Ve,ze]}],"outline-w":[{outline:["",ct,Qi,Ha]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",p,Ql,Zl]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,Ql,Zl]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ct,Ha]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,Ql,Zl]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ct,Ve,ze]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Ve,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,ze]}],filter:[{filter:["","none",Ve,ze]}],blur:[{blur:Ne()}],brightness:[{brightness:[ct,Ve,ze]}],contrast:[{contrast:[ct,Ve,ze]}],"drop-shadow":[{"drop-shadow":["","none",m,Ql,Zl]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ct,Ve,ze]}],"hue-rotate":[{"hue-rotate":[ct,Ve,ze]}],invert:[{invert:["",ct,Ve,ze]}],saturate:[{saturate:[ct,Ve,ze]}],sepia:[{sepia:["",ct,Ve,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,ze]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ct,Ve,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ct,Ve,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,Ve,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,Ve,ze]}],"backdrop-invert":[{"backdrop-invert":["",ct,Ve,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ct,Ve,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ct,Ve,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,Ve,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",Ve,ze]}],ease:[{ease:["linear","initial",x,Ve,ze]}],delay:[{delay:[ct,Ve,ze]}],animate:[{animate:["none",S,Ve,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Ve,ze]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[Ve,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],zoom:[{zoom:[vr,Ve,ze]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,ze]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ct,Qi,Ha,zS]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},P6=m6(M6);function Pe(...e){return P6(GC(e))}function sA(e,t){const r=[];if(t<=5)for(let a=1;a<=t;a++)r.push(a);else if(r.push(1),e<=3){for(let a=2;a<=4;a++)r.push(a);r.push("...",t)}else if(e>=t-2){r.push("...");for(let a=t-3;a<=t;a++)r.push(a)}else{r.push("...");for(let a=e-1;a<=e+1;a++)r.push(a);r.push("...",t)}return r}async function Vn(e){if(!e)return!1;if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document>"u")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}function WS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dn(...e){return t=>{let n=!1;const r=e.map(a=>{const i=WS(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():WS(e[a],null)}}}}function xt(...e){return y.useCallback(Dn(...e),e)}var F6=Symbol.for("react.lazy"),du=y[" use ".trim().toString()];function B6(e){return typeof e=="object"&&e!==null&&"then"in e}function iA(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===F6&&"_payload"in e&&B6(e._payload)}function Xh(e){const t=$6(e),n=y.forwardRef((r,a)=>{let{children:i,...o}=r;iA(i)&&typeof du=="function"&&(i=du(i._payload));const l=y.Children.toArray(i),c=l.find(z6);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var U6=Xh("Slot");function $6(e){const t=y.forwardRef((n,r)=>{let{children:a,...i}=n;if(iA(a)&&typeof du=="function"&&(a=du(a._payload)),y.isValidElement(a)){const o=V6(a),l=G6(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H6=Symbol("radix.slottable");function z6(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H6}function G6(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function V6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const qS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,YS=GC,oA=(e,t)=>n=>{var r;if(t?.variants==null)return YS(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const p=n?.[u],d=i?.[u];if(p===null)return null;const f=qS(p)||qS(d);return a[u][f]}),l=n&&Object.entries(n).reduce((u,p)=>{let[d,f]=p;return f===void 0||(u[d]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:d,className:f,...m}=p;return Object.entries(m).every(h=>{let[g,b]=h;return Array.isArray(b)?b.includes({...i,...l}[g]):{...i,...l}[g]===b})?[...u,d,f]:u},[]);return YS(e,o,c,n?.class,n?.className)},Zh=oA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ae=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const o=r?U6:"button";return s.jsx(o,{className:Pe(Zh({variant:t,size:n,className:e})),ref:i,...a})});ae.displayName="Button";function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function Jr(e,t=[]){let n=[];function r(i,o){const l=y.createContext(o),c=n.length;n=[...n,o];const u=d=>{const{scope:f,children:m,...h}=d,g=f?.[e]?.[c]||l,b=y.useMemo(()=>h,Object.values(h));return s.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function p(d,f){const m=f?.[e]?.[c]||l,h=y.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,p]}const a=()=>{const i=n.map(o=>y.createContext(o));return function(l){const c=l?.[e]||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,W6(a,...t)]}function W6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function KS(e){const t=q6(e),n=y.forwardRef((r,a)=>{const{children:i,...o}=r,l=y.Children.toArray(i),c=l.find(K6);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function q6(e){const t=y.forwardRef((n,r)=>{const{children:a,...i}=n;if(y.isValidElement(a)){const o=Z6(a),l=X6(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y6=Symbol("radix.slottable");function K6(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y6}function X6(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function Z6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Qh(e){const t=e+"CollectionProvider",[n,r]=Jr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:x}=g,S=w.useRef(null),T=w.useRef(new Map).current;return s.jsx(a,{scope:b,itemMap:T,collectionRef:S,children:x})};o.displayName=t;const l=e+"CollectionSlot",c=KS(l),u=w.forwardRef((g,b)=>{const{scope:x,children:S}=g,T=i(l,x),N=xt(b,T.collectionRef);return s.jsx(c,{ref:N,children:S})});u.displayName=l;const p=e+"CollectionItemSlot",d="data-radix-collection-item",f=KS(p),m=w.forwardRef((g,b)=>{const{scope:x,children:S,...T}=g,N=w.useRef(null),_=xt(b,N),C=i(p,x);return w.useEffect(()=>(C.itemMap.set(N,{ref:N,...T}),()=>{C.itemMap.delete(N)})),s.jsx(f,{[d]:"",ref:_,children:S})});m.displayName=p;function h(g){const b=i(e+"CollectionConsumer",g);return w.useCallback(()=>{const S=b.collectionRef.current;if(!S)return[];const T=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((C,k)=>T.indexOf(C.ref.current)-T.indexOf(k.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},h,r]}var an=globalThis?.document?y.useLayoutEffect:()=>{},Q6=y[" useId ".trim().toString()]||(()=>{}),J6=0;function kn(e){const[t,n]=y.useState(Q6());return an(()=>{n(r=>r??String(J6++))},[e]),t?`radix-${t}`:""}function e5(e){const t=t5(e),n=y.forwardRef((r,a)=>{const{children:i,...o}=r,l=y.Children.toArray(i),c=l.find(r5);if(c){const u=c.props.children,p=l.map(d=>d===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...o,ref:a,children:y.isValidElement(u)?y.cloneElement(u,void 0,p):null})}return s.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function t5(e){const t=y.forwardRef((n,r)=>{const{children:a,...i}=n;if(y.isValidElement(a)){const o=s5(a),l=a5(i,a.props);return a.type!==y.Fragment&&(l.ref=r?Dn(r,o):o),y.cloneElement(a,l)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var n5=Symbol("radix.slottable");function r5(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===n5}function a5(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function s5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var i5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],it=i5.reduce((e,t)=>{const n=e5(`Primitive.${t}`),r=y.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lA(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}function nn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>t.current?.(...n),[])}var o5=y[" useInsertionEffect ".trim().toString()]||an;function mi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=l5({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const d=p.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const u=y.useCallback(p=>{if(l){const d=c5(p)?p(e):p;d!==e&&o.current?.(d)}else i(p)},[l,e,i,o]);return[c,u]}function l5({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),a=y.useRef(n),i=y.useRef(t);return o5(()=>{i.current=t},[t]),y.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function c5(e){return typeof e=="function"}var u5=y.createContext(void 0);function fl(e){const t=y.useContext(u5);return e||t||"ltr"}var Kp="rovingFocusGroup.onEntryFocus",d5={bubbles:!1,cancelable:!0},ml="RovingFocusGroup",[Cm,cA,p5]=Qh(ml),[f5,td]=Jr(ml,[p5]),[m5,h5]=f5(ml),uA=y.forwardRef((e,t)=>s.jsx(Cm.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Cm.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(g5,{...e,ref:t})})}));uA.displayName=ml;var g5=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...d}=e,f=y.useRef(null),m=xt(t,f),h=fl(i),[g,b]=mi({prop:o,defaultProp:l??null,onChange:c,caller:ml}),[x,S]=y.useState(!1),T=nn(u),N=cA(n),_=y.useRef(!1),[C,k]=y.useState(0);return y.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(Kp,T),()=>O.removeEventListener(Kp,T)},[T]),s.jsx(m5,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:y.useCallback(O=>b(O),[b]),onItemShiftTab:y.useCallback(()=>S(!0),[]),onFocusableItemAdd:y.useCallback(()=>k(O=>O+1),[]),onFocusableItemRemove:y.useCallback(()=>k(O=>O-1),[]),children:s.jsx(it.div,{tabIndex:x||C===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{_.current=!0}),onFocus:We(e.onFocus,O=>{const M=!_.current;if(O.target===O.currentTarget&&M&&!x){const A=new CustomEvent(Kp,d5);if(O.currentTarget.dispatchEvent(A),!A.defaultPrevented){const P=N().filter(W=>W.focusable),H=P.find(W=>W.active),G=P.find(W=>W.id===g),j=[H,G,...P].filter(Boolean).map(W=>W.ref.current);fA(j,p)}}_.current=!1}),onBlur:We(e.onBlur,()=>S(!1))})})}),dA="RovingFocusGroupItem",pA=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:o,...l}=e,c=kn(),u=i||c,p=h5(dA,n),d=p.currentTabStopId===u,f=cA(n),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=p;return y.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),s.jsx(Cm.ItemSlot,{scope:n,id:u,focusable:r,active:a,children:s.jsx(it.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:We(e.onMouseDown,b=>{r?p.onItemFocus(u):b.preventDefault()}),onFocus:We(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:We(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=y5(b,p.orientation,p.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let T=f().filter(N=>N.focusable).map(N=>N.ref.current);if(x==="last")T.reverse();else if(x==="prev"||x==="next"){x==="prev"&&T.reverse();const N=T.indexOf(b.currentTarget);T=p.loop?E5(T,N+1):T.slice(N+1)}setTimeout(()=>fA(T))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:g!=null}):o})})});pA.displayName=dA;var b5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function x5(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function y5(e,t,n){const r=x5(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return b5[r]}function fA(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function E5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mA=uA,hA=pA;function v5(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var nr=e=>{const{present:t,children:n}=e,r=S5(t),a=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=xt(r.ref,w5(a));return typeof n=="function"||r.isPresent?y.cloneElement(a,{ref:i}):null};nr.displayName="Presence";function S5(e){const[t,n]=y.useState(),r=y.useRef(null),a=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=v5(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Jl(r.current);i.current=l==="mounted"?u:"none"},[l]),an(()=>{const u=r.current,p=a.current;if(p!==e){const f=i.current,m=Jl(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),an(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,d=m=>{const g=Jl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=Jl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Jl(e){return e?.animationName||"none"}function w5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nd="Tabs",[T5]=Jr(nd,[td]),gA=td(),[N5,Jh]=T5(nd),bA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,p=fl(l),[d,f]=mi({prop:r,onChange:a,defaultProp:i??"",caller:nd});return s.jsx(N5,{scope:n,baseId:kn(),value:d,onValueChange:f,orientation:o,dir:p,activationMode:c,children:s.jsx(it.div,{dir:p,"data-orientation":o,...u,ref:t})})});bA.displayName=nd;var xA="TabsList",yA=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=Jh(xA,n),o=gA(n);return s.jsx(mA,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:s.jsx(it.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});yA.displayName=xA;var EA="TabsTrigger",vA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,o=Jh(EA,n),l=gA(n),c=TA(o.baseId,r),u=NA(o.baseId,r),p=r===o.value;return s.jsx(hA,{asChild:!0,...l,focusable:!a,active:p,children:s.jsx(it.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":u,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:We(e.onMouseDown,d=>{!a&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:We(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:We(e.onFocus,()=>{const d=o.activationMode!=="manual";!p&&!a&&d&&o.onValueChange(r)})})})});vA.displayName=EA;var SA="TabsContent",wA=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...o}=e,l=Jh(SA,n),c=TA(l.baseId,r),u=NA(l.baseId,r),p=r===l.value,d=y.useRef(p);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),s.jsx(nr,{present:a||p,children:({present:f})=>s.jsx(it.div,{"data-state":p?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});wA.displayName=SA;function TA(e,t){return`${e}-trigger-${t}`}function NA(e,t){return`${e}-content-${t}`}var C5=bA,CA=yA,AA=vA,_A=wA;const eg=C5,rd=y.forwardRef(({className:e,...t},n)=>s.jsx(CA,{ref:n,className:Pe("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));rd.displayName=CA.displayName;const is=y.forwardRef(({className:e,...t},n)=>s.jsx(AA,{ref:n,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));is.displayName=AA.displayName;const os=y.forwardRef(({className:e,...t},n)=>s.jsx(_A,{ref:n,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));os.displayName=_A.displayName;const Nn=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("rounded-lg border bg-card text-card-foreground shadow",e),...t}));Nn.displayName="Card";const RA=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));RA.displayName="CardHeader";const A5=y.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:Pe("font-semibold leading-none tracking-tight",e),...t}));A5.displayName="CardTitle";const _5=y.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));_5.displayName="CardDescription";const Cn=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));Cn.displayName="CardContent";const R5=y.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));R5.displayName="CardFooter";function k5({text:e}){const[t,n]=w.useState(!1);return s.jsx(ae,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-7 w-7 text-neutral-400 hover:text-neutral-100 hover:bg-neutral-800",onClick:()=>{Vn(e),n(!0),setTimeout(()=>n(!1),2e3)},children:t?s.jsx(Kt,{className:"h-3.5 w-3.5 text-emerald-400"}):s.jsx(yn,{className:"h-3.5 w-3.5"})})}function I5({result:e,remediationSteps:t,confidenceScore:n,aiModelUsed:r,isCompleted:a=!0}){const i=t&&typeof t=="object"&&!Array.isArray(t)?t:null,o=Array.isArray(t)&&t.length>0?t:e.recommended_actions&&Array.isArray(e.recommended_actions)?e.recommended_actions:null,[l,c]=w.useState("overview"),u=!!(i?.immediate_actions?.length||i?.verification_steps?.length||i?.rollback_steps?.length||i?.communication_template||o?.length),p=n==null?"text-muted-foreground":n>=80?"text-emerald-600 dark:text-emerald-400":n>=50?"text-amber-600 dark:text-amber-400":"text-red-600 dark:text-red-400",d=[{label:"Confidence Score",value:n!=null?s.jsxs("span",{className:Pe("font-bold text-sm tabular-nums",p),children:[n,"%"]}):s.jsx("span",{className:"text-muted-foreground text-sm",children:"—"})},{label:"Status",value:a?s.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 text-xs font-semibold flex items-center justify-center gap-1",children:[s.jsx(FS,{className:"h-3.5 w-3.5"}),"Ready"]}):s.jsxs("span",{className:"text-amber-600 dark:text-amber-400 text-xs font-semibold flex items-center justify-center gap-1",children:[s.jsx(Ze,{className:"h-3.5 w-3.5 animate-spin"}),"Generating..."]})}];return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:Pe("grid gap-3",d.length===3?"grid-cols-3":"grid-cols-2"),children:d.map(({label:f,value:m})=>s.jsx(Nn,{className:"bg-muted/30 border-none shadow-none",children:s.jsxs(Cn,{className:"p-3 text-center flex flex-col items-center justify-center gap-1",children:[s.jsx("div",{className:"text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex items-center justify-center min-h-[20px] w-full",children:m})]})},f))}),s.jsxs(eg,{value:l,onValueChange:c,children:[s.jsxs(rd,{className:"w-full justify-start border-b rounded-none h-auto p-0 bg-transparent overflow-x-auto flex-nowrap",children:[s.jsx(is,{value:"overview",className:"rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent px-4 py-2",children:"Overview & RCA"}),s.jsx(is,{value:"remediation",disabled:!u&&a,className:"rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent px-4 py-2",children:"Remediation Plan"})]}),s.jsxs("div",{className:"pt-4",children:[s.jsxs(os,{value:"overview",className:"m-0 space-y-4",children:[e.threat_classification&&s.jsx(Nn,{className:Pe("border-l-4",e.threat_classification.toLowerCase().includes("malicious")?"border-l-red-500 bg-red-500/5":e.threat_classification.toLowerCase().includes("suspicious")?"border-l-amber-500 bg-amber-500/5":"border-l-emerald-500 bg-emerald-500/5"),children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm",children:[e.threat_classification.toLowerCase().includes("malicious")?s.jsx(TF,{className:"h-4 w-4 text-red-500"}):e.threat_classification.toLowerCase().includes("suspicious")?s.jsx(ul,{className:"h-4 w-4 text-amber-500"}):s.jsx(FS,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Threat Classification"})]}),s.jsx("p",{className:"text-sm font-medium capitalize",children:e.threat_classification})]})}),e.affected_identity&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(qh,{className:"h-4 w-4 text-blue-500"}),s.jsx("span",{children:"Affected Identity"})]}),s.jsx("p",{className:"text-sm text-foreground/90 font-mono bg-muted/50 w-fit px-2 py-1 rounded",children:e.affected_identity})]})}),e.actions_taken&&e.actions_taken.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(rF,{className:"h-4 w-4 text-indigo-500"}),s.jsx("span",{children:"Actions Taken By Identity"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.actions_taken.map((f,m)=>s.jsx("li",{className:"leading-relaxed font-mono text-xs",children:f},m))})]}),e.summary&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(dl,{className:"h-4 w-4 text-amber-500 animate-pulse"}),s.jsx("span",{children:"Executive Summary"})]}),s.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed whitespace-pre-wrap",children:e.summary})]})}),(e.root_cause_analysis||e.probable_root_cause)&&s.jsx(Nn,{className:"border-red-500/20 bg-red-500/5",children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-red-600 dark:text-red-400 text-sm",children:[s.jsx(cF,{className:"h-4 w-4"}),s.jsx("span",{children:"Root Cause Analysis"})]}),s.jsx("p",{className:"text-sm text-foreground/95 leading-relaxed whitespace-pre-wrap font-sans",children:e.probable_root_cause||e.root_cause_analysis})]})}),e.evidence&&e.evidence.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(ni,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Evidence Discovered"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.evidence.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]}),e.dependency_impact&&e.dependency_impact.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(_a,{className:"h-4 w-4 text-rose-500"}),s.jsx("span",{children:"Dependency Impact"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.dependency_impact.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]}),e.blast_radius!==void 0&&(!Array.isArray(e.blast_radius)||e.blast_radius.length>0)&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(_a,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-400"}),s.jsx("span",{children:"Blast Radius & Impact Scope"})]}),Array.isArray(e.blast_radius)?s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.blast_radius.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))}):s.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed whitespace-pre-wrap",children:e.blast_radius})]})}),e.contributing_factors&&e.contributing_factors.length>0&&s.jsxs("div",{className:"rounded-lg border bg-muted/20 p-4 space-y-2",children:[s.jsxs("div",{className:"font-semibold text-sm text-foreground flex items-center gap-2",children:[s.jsx(E4,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Contributing Factors"})]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-muted-foreground space-y-1.5 pl-1",children:e.contributing_factors.map((f,m)=>s.jsx("li",{className:"leading-relaxed",children:f},m))})]})]}),s.jsxs(os,{value:"remediation",className:"m-0 space-y-6",children:[o&&o.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(ni,{className:"h-4 w-4 text-emerald-500"}),s.jsx("span",{children:"Recommended Actions"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:o.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[i.immediate_actions&&i.immediate_actions.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(ni,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Immediate Actions"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.immediate_actions.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i.verification_steps&&i.verification_steps.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-foreground",children:[s.jsx(DF,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Verification Steps"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.verification_steps.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})})]}),i.rollback_steps&&i.rollback_steps.length>0&&s.jsx(Nn,{children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-foreground font-semibold text-sm",children:[s.jsx(W4,{className:"h-4 w-4 text-amber-500"}),s.jsx("span",{children:"Rollback Steps"})]}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 pl-1",children:i.rollback_steps.map((f,m)=>s.jsxs("li",{className:"flex gap-2 items-start",children:[s.jsx("span",{className:"font-mono text-xs text-foreground/80 mt-0.5 shrink-0 bg-primary/10 px-1.5 py-0.5 rounded",children:m+1}),s.jsx("span",{className:"leading-relaxed text-foreground/80",children:f})]},m))})]})}),i.communication_template&&s.jsx(Nn,{className:"relative",children:s.jsxs(Cn,{className:"p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 font-semibold text-primary text-sm",children:[s.jsx(oF,{className:"h-4 w-4 text-primary"}),s.jsx("span",{children:"Status Update / Communication Template"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("pre",{className:"text-xs whitespace-pre-wrap leading-relaxed font-sans text-foreground/90 bg-muted/40 p-4 pr-12 rounded-md border",children:i.communication_template}),s.jsx(k5,{text:i.communication_template})]})]})})]})]}),!a&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-8 mt-4 border-t border-dashed text-muted-foreground space-y-3",children:[s.jsx(Ze,{className:"h-6 w-6 animate-spin text-primary"}),s.jsx("span",{className:"text-sm font-medium animate-pulse",children:"AI is completing the report..."})]})]})]})]})}let Ea=null;async function XS(e=!1){if(Ea&&!e)return Ea;try{const t=await Pt.get("/api/v1/users?limit=100"),n=t.data?.data||t.data?.users||t.data||[],r=Array.isArray(n)?n:[];return Ea=r,r}catch(t){return console.error("Failed to fetch insight users",t),Ea||[]}}function tg(e){const[t,n]=w.useState(Ea||[]),[r,a]=w.useState(!Ea),i=w.useCallback(async()=>{a(!0);const o=await XS(!0);return n(o),a(!1),o},[]);return w.useEffect(()=>{let o=!0;return Ea?(n(Ea),a(!1)):(a(!0),XS(!!e?.refreshOnMount).then(l=>{o&&(n(l),a(!1))})),()=>{o=!1}},[e?.refreshOnMount]),{users:t,loading:r,refetch:i}}function Na(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function ZS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D5(...e){return t=>{let n=!1;const r=e.map(a=>{const i=ZS(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():ZS(e[a],null)}}}}function ys(...e){return y.useCallback(D5(...e),e)}function O5(e,t){const n=y.createContext(t);n.displayName=e+"Context";const r=i=>{const{children:o,...l}=i,c=y.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function a(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function L5(e,t=[]){let n=[];function r(i,o){const l=y.createContext(o);l.displayName=i+"Context";const c=n.length;n=[...n,o];const u=d=>{const{scope:f,children:m,...h}=d,g=f?.[e]?.[c]||l,b=y.useMemo(()=>h,Object.values(h));return s.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function p(d,f){const m=f?.[e]?.[c]||l,h=y.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,p]}const a=()=>{const i=n.map(o=>y.createContext(o));return function(l){const c=l?.[e]||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,j5(a,...t)]}function j5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Bo=globalThis?.document?y.useLayoutEffect:()=>{},M5=y[" useId ".trim().toString()]||(()=>{}),P5=0;function Xp(e){const[t,n]=y.useState(M5());return Bo(()=>{n(r=>r??String(P5++))},[e]),e||(t?`radix-${t}`:"")}var F5=y[" useInsertionEffect ".trim().toString()]||Bo;function B5({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=U5({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const d=p.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const u=y.useCallback(p=>{if(l){const d=$5(p)?p(e):p;d!==e&&o.current?.(d)}else i(p)},[l,e,i,o]);return[c,u]}function U5({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),a=y.useRef(n),i=y.useRef(t);return F5(()=>{i.current=t},[t]),y.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function $5(e){return typeof e=="function"}function kA(e){const t=y.forwardRef((n,r)=>{let{children:a,...i}=n,o=null,l=!1;const c=[];QS(a)&&typeof ec=="function"&&(a=ec(a._payload)),y.Children.forEach(a,f=>{if(W5(f)){l=!0;const m=f;let h="child"in m.props?m.props.child:m.props.children;QS(h)&&typeof ec=="function"&&(h=ec(h._payload)),o=z5(m,h),c.push(o?.props?.children)}else c.push(f)}),o?o=y.cloneElement(o,void 0,c):!l&&y.Children.count(a)===1&&y.isValidElement(a)&&(o=a);const u=o?V5(o):void 0,p=ys(r,u);if(!o){if(a||a===0)throw new Error(l?X5(e):K5(e));return a}const d=G5(i,o.props??{});return o.type!==y.Fragment&&(d.ref=r?p:u),y.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}var H5=Symbol.for("radix.slottable"),z5=(e,t)=>{if("child"in e.props){const n=e.props.child;return y.isValidElement(n)?y.cloneElement(n,void 0,e.props.children(n.props.children)):null}return y.isValidElement(t)?t:null};function G5(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function V5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function W5(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H5}var q5=Symbol.for("react.lazy");function QS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===q5&&"_payload"in e&&Y5(e._payload)}function Y5(e){return typeof e=="object"&&e!==null&&"then"in e}var K5=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,X5=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ec=y[" use ".trim().toString()],Z5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ea=Z5.reduce((e,t)=>{const n=kA(`Primitive.${t}`),r=y.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Q5(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}function Uo(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>((...n)=>t.current?.(...n)),[])}function J5(e,t=globalThis?.document){const n=Uo(e);y.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var eB="DismissableLayer",Am="dismissableLayer.update",tB="dismissableLayer.pointerDownOutside",nB="dismissableLayer.focusOutside",JS,IA=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DA=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=y.useContext(IA),[p,d]=y.useState(null),f=p?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=ys(t,k=>d(k)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),S=p?g.indexOf(p):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,N=S>=x,_=sB(k=>{const O=k.target,M=[...u.branches].some(A=>A.contains(O));!N||M||(a?.(k),o?.(k),k.defaultPrevented||l?.())},f),C=iB(k=>{const O=k.target;[...u.branches].some(A=>A.contains(O))||(i?.(k),o?.(k),k.defaultPrevented||l?.())},f);return J5(k=>{S===u.layers.size-1&&(r?.(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},f),y.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(JS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),e1(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(p),u.layersWithOutsidePointerEventsDisabled.size===0&&(f.body.style.pointerEvents=JS))}},[p,f,n,u]),y.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),e1())},[p,u]),y.useEffect(()=>{const k=()=>m({});return document.addEventListener(Am,k),()=>document.removeEventListener(Am,k)},[]),s.jsx(ea.div,{...c,ref:h,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:Na(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Na(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Na(e.onPointerDownCapture,_.onPointerDownCapture)})});DA.displayName=eB;var rB="DismissableLayerBranch",aB=y.forwardRef((e,t)=>{const n=y.useContext(IA),r=y.useRef(null),a=ys(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(ea.div,{...e,ref:a})});aB.displayName=rB;function sB(e,t=globalThis?.document){const n=Uo(e),r=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){OA(tB,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function iB(e,t=globalThis?.document){const n=Uo(e),r=y.useRef(!1);return y.useEffect(()=>{const a=i=>{i.target&&!r.current&&OA(nB,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function e1(){const e=new CustomEvent(Am);document.dispatchEvent(e)}function OA(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Q5(a,i):a.dispatchEvent(i)}var Zp="focusScope.autoFocusOnMount",Qp="focusScope.autoFocusOnUnmount",t1={bubbles:!1,cancelable:!0},oB="FocusScope",LA=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,c]=y.useState(null),u=Uo(a),p=Uo(i),d=y.useRef(null),f=ys(t,g=>c(g)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let g=function(T){if(m.paused||!l)return;const N=T.target;l.contains(N)?d.current=N:pa(d.current,{select:!0})},b=function(T){if(m.paused||!l)return;const N=T.relatedTarget;N!==null&&(l.contains(N)||pa(d.current,{select:!0}))},x=function(T){if(document.activeElement===document.body)for(const _ of T)_.removedNodes.length>0&&pa(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const S=new MutationObserver(x);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),S.disconnect()}}},[r,l,m.paused]),y.useEffect(()=>{if(l){r1.add(m);const g=document.activeElement;if(!l.contains(g)){const x=new CustomEvent(Zp,t1);l.addEventListener(Zp,u),l.dispatchEvent(x),x.defaultPrevented||(lB(fB(jA(l)),{select:!0}),document.activeElement===g&&pa(l))}return()=>{l.removeEventListener(Zp,u),setTimeout(()=>{const x=new CustomEvent(Qp,t1);l.addEventListener(Qp,p),l.dispatchEvent(x),x.defaultPrevented||pa(g??document.body,{select:!0}),l.removeEventListener(Qp,p),r1.remove(m)},0)}}},[l,u,p,m]);const h=y.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(b&&x){const S=g.currentTarget,[T,N]=cB(S);T&&N?!g.shiftKey&&x===N?(g.preventDefault(),n&&pa(T,{select:!0})):g.shiftKey&&x===T&&(g.preventDefault(),n&&pa(N,{select:!0})):x===S&&g.preventDefault()}},[n,r,m.paused]);return s.jsx(ea.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});LA.displayName=oB;function lB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pa(r,{select:t}),document.activeElement!==n)return}function cB(e){const t=jA(e),n=n1(t,e),r=n1(t.reverse(),e);return[n,r]}function jA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function n1(e,t){for(const n of e)if(!uB(n,{upTo:t}))return n}function uB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dB(e){return e instanceof HTMLInputElement&&"select"in e}function pa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dB(e)&&t&&e.select()}}var r1=pB();function pB(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=a1(e,t),e.unshift(t)},remove(t){e=a1(e,t),e[0]?.resume()}}}function a1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fB(e){return e.filter(t=>t.tagName!=="A")}var mB="Portal",MA=y.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=y.useState(!1);Bo(()=>i(!0),[]);const o=n||a&&globalThis?.document?.body;return o?vi.createPortal(s.jsx(ea.div,{...r,ref:t}),o):null});MA.displayName=mB;function hB(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var ad=e=>{const{present:t,children:n}=e,r=gB(t),a=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=bB(r.ref,xB(a));return typeof n=="function"||r.isPresent?y.cloneElement(a,{ref:i}):null};ad.displayName="Presence";function gB(e){const[t,n]=y.useState(),r=y.useRef(null),a=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=hB(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=tc(r.current);i.current=l==="mounted"?u:"none"},[l]),Bo(()=>{const u=r.current,p=a.current;if(p!==e){const f=i.current,m=tc(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Bo(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,d=m=>{const g=tc(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=tc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function s1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bB(...e){const t=y.useRef(e);return t.current=e,y.useCallback(n=>{const r=t.current;let a=!1;const i=r.map(o=>{const l=s1(o,n);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():s1(r[o],null)}}},[])}function tc(e){return e?.animationName||"none"}function xB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nc=0,Fs=null;function yB(){y.useEffect(()=>{Fs||(Fs={start:i1(),end:i1()});const{start:e,end:t}=Fs;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),nc++,()=>{nc===1&&(Fs?.start.remove(),Fs?.end.remove(),Fs=null),nc=Math.max(0,nc-1)}},[])}function i1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var kr=function(){return kr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kr.apply(this,arguments)};function PA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function EB(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Hc="right-scroll-bar-position",zc="width-before-scroll-bar",vB="with-scroll-bars-hidden",SB="--removed-body-scroll-bar-size";function Jp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wB(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var TB=typeof window<"u"?y.useLayoutEffect:y.useEffect,o1=new WeakMap;function NB(e,t){var n=wB(null,function(r){return e.forEach(function(a){return Jp(a,r)})});return TB(function(){var r=o1.get(n);if(r){var a=new Set(r),i=new Set(e),o=n.current;a.forEach(function(l){i.has(l)||Jp(l,null)}),i.forEach(function(l){a.has(l)||Jp(l,o)})}o1.set(n,e)},[e]),n}function CB(e){return e}function AB(e,t){t===void 0&&(t=CB);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var p=o;o=[],p.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){o.push(p),u()},filter:function(p){return o=o.filter(p),n}}}};return a}function _B(e){e===void 0&&(e={});var t=AB(null);return t.options=kr({async:!0,ssr:!1},e),t}var FA=function(e){var t=e.sideCar,n=PA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,kr({},n))};FA.isSideCarExport=!0;function RB(e,t){return e.useMedium(t),FA}var BA=_B(),ef=function(){},sd=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),a=r[0],i=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,x=e.as,S=x===void 0?"div":x,T=e.gapMode,N=PA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,C=NB([n,t]),k=kr(kr({},N),a);return y.createElement(y.Fragment,null,p&&y.createElement(_,{sideCar:BA,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:T}),o?y.cloneElement(y.Children.only(l),kr(kr({},k),{ref:C})):y.createElement(S,kr({},k,{className:c,ref:C}),l))});sd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sd.classNames={fullWidth:zc,zeroRight:Hc};var kB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kB();return t&&e.setAttribute("nonce",t),e}function DB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IB())&&(DB(t,n),OB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jB=function(){var e=LB();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},UA=function(){var e=jB(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},MB={left:0,top:0,right:0,gap:0},tf=function(e){return parseInt(e||"",10)||0},PB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[tf(n),tf(r),tf(a)]},FB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MB;var t=PB(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},BB=UA(),ri="data-scroll-locked",UB=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
15
15
|
.`.concat(vB,` {
|
|
16
16
|
overflow: hidden `).concat(r,`;
|
|
17
17
|
padding-right: `).concat(l,"px ").concat(r,`;
|
package/dist/index.mjs
CHANGED
|
@@ -11934,7 +11934,7 @@ function z5({
|
|
|
11934
11934
|
aiModelUsed: r,
|
|
11935
11935
|
isCompleted: a = !0
|
|
11936
11936
|
}) {
|
|
11937
|
-
const i = t && typeof t == "object" && !Array.isArray(t) ? t : null, o = Array.isArray(t) ? t : e.recommended_actions && Array.isArray(e.recommended_actions) ? e.recommended_actions : null, [l, c] = L("overview"), u = !!(i?.immediate_actions?.length || i?.verification_steps?.length || i?.rollback_steps?.length || i?.communication_template || o?.length), p = n == null ? "text-muted-foreground" : n >= 80 ? "text-emerald-600 dark:text-emerald-400" : n >= 50 ? "text-amber-600 dark:text-amber-400" : "text-red-600 dark:text-red-400", d = [
|
|
11937
|
+
const i = t && typeof t == "object" && !Array.isArray(t) ? t : null, o = Array.isArray(t) && t.length > 0 ? t : e.recommended_actions && Array.isArray(e.recommended_actions) ? e.recommended_actions : null, [l, c] = L("overview"), u = !!(i?.immediate_actions?.length || i?.verification_steps?.length || i?.rollback_steps?.length || i?.communication_template || o?.length), p = n == null ? "text-muted-foreground" : n >= 80 ? "text-emerald-600 dark:text-emerald-400" : n >= 50 ? "text-amber-600 dark:text-amber-400" : "text-red-600 dark:text-red-400", d = [
|
|
11938
11938
|
{
|
|
11939
11939
|
label: "Confidence Score",
|
|
11940
11940
|
value: n != null ? /* @__PURE__ */ s.jsxs("span", { className: Fe("font-bold text-sm tabular-nums", p), children: [
|